diff --git a/JisolGameCocos/assets/res/UI.meta b/JisolGameCocos/assets/res/UI.meta new file mode 100644 index 00000000..05fbfd35 --- /dev/null +++ b/JisolGameCocos/assets/res/UI.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "8aad49c8-3dce-4946-aed9-9204e08a3372", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/res/UI/Loading.meta b/JisolGameCocos/assets/res/UI/Loading.meta new file mode 100644 index 00000000..0349c973 --- /dev/null +++ b/JisolGameCocos/assets/res/UI/Loading.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "be07960d-4bad-475c-8cd8-893ed0557a99", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/res/UI/Loading/bg.png b/JisolGameCocos/assets/res/UI/Loading/bg.png new file mode 100644 index 00000000..6900098c Binary files /dev/null and b/JisolGameCocos/assets/res/UI/Loading/bg.png differ diff --git a/JisolGameCocos/assets/res/UI/Loading/bg.png.meta b/JisolGameCocos/assets/res/UI/Loading/bg.png.meta new file mode 100644 index 00000000..740f9f36 --- /dev/null +++ b/JisolGameCocos/assets/res/UI/Loading/bg.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "76aadab4-10a3-4c8e-b4b9-dce7807050fc", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "76aadab4-10a3-4c8e-b4b9-dce7807050fc@6c48a", + "displayName": "bg", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "76aadab4-10a3-4c8e-b4b9-dce7807050fc", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "76aadab4-10a3-4c8e-b4b9-dce7807050fc@f9941", + "displayName": "bg", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 658, + "height": 1425, + "rawWidth": 658, + "rawHeight": 1425, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -329, + -712.5, + 0, + 329, + -712.5, + 0, + -329, + 712.5, + 0, + 329, + 712.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 1425, + 658, + 1425, + 0, + 0, + 658, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -329, + -712.5, + 0 + ], + "maxPos": [ + 329, + 712.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "76aadab4-10a3-4c8e-b4b9-dce7807050fc@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": false, + "fixAlphaTransparencyArtifacts": false, + "redirect": "76aadab4-10a3-4c8e-b4b9-dce7807050fc@f9941" + } +} diff --git a/JisolGameCocos/assets/resources/prefab/ui/Home/HomeView.prefab b/JisolGameCocos/assets/resources/prefab/ui/Home/HomeView.prefab index db526c2a..67e40c60 100644 --- a/JisolGameCocos/assets/resources/prefab/ui/Home/HomeView.prefab +++ b/JisolGameCocos/assets/resources/prefab/ui/Home/HomeView.prefab @@ -63,7 +63,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 0, + "x": 720, "y": 0, "z": 0 }, @@ -3095,8 +3095,8 @@ }, "_alignFlags": 45, "_target": null, - "_left": 0, - "_right": 0, + "_left": 720, + "_right": -720, "_top": 0, "_bottom": 0, "_horizontalCenter": 0, diff --git a/JisolGameCocos/assets/resources/prefab/ui/Loading.meta b/JisolGameCocos/assets/resources/prefab/ui/Loading.meta new file mode 100644 index 00000000..ad490b07 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/Loading.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "8a40f59c-0b6f-4904-9a13-29d84a8c03c7", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/resources/prefab/ui/Loading/LoadingView.prefab b/JisolGameCocos/assets/resources/prefab/ui/Loading/LoadingView.prefab new file mode 100644 index 00000000..f3c4acb3 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/Loading/LoadingView.prefab @@ -0,0 +1,819 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "LoadingView", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "LoadingView", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 10 + }, + { + "__id__": 18 + } + ], + "_active": true, + "_components": [ + { + "__id__": 32 + }, + { + "__id__": 34 + }, + { + "__id__": 36 + } + ], + "_prefab": { + "__id__": 38 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 720, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + } + ], + "_prefab": { + "__id__": 9 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 135, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 4 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 720, + "height": 1550 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8ftYzn1eBL/KI9lfvctDGE" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 6 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "76aadab4-10a3-4c8e-b4b9-dce7807050fc@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "72OG0M5ThEtaIaziixD4R1" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 8 + }, + "_alignFlags": 44, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 658, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e3DwW2DJVFXZGua4BUjaXa" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "85bQbPz7FPkaRPL/kSAwAE", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 13 + }, + { + "__id__": 15 + } + ], + "_prefab": { + "__id__": 17 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -404.685, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 150, + "height": 56.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "21zdTy8pVIQp5pY9vm9NHt" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 14 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "加载内容", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 36, + "_fontSize": 36, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d7LX6grh1E27UHz++aE7kC" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 16 + }, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_width": 3, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "24TEBL9uJClqHJ/C8FqV7L" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "25K8+LWY1HabU67cx0nsVl", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ProgressBar", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 19 + } + ], + "_active": true, + "_components": [ + { + "__id__": 25 + }, + { + "__id__": 27 + }, + { + "__id__": 29 + } + ], + "_prefab": { + "__id__": 31 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -459.803, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 2, + "y": 2, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Bar", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 18 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 20 + }, + { + "__id__": 22 + } + ], + "_prefab": { + "__id__": 24 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -150, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 21 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 15 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "26DgYhzC1A2rETR6Y5uuLm" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 23 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 65, + "g": 141, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "24a704da-2867-446d-8d1a-5e920c75e09d@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "01ztTBgsZOFoYCTwqE1l3J" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "57+wn/Ye1PlrYILhPjajwO", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 18 + }, + "_enabled": true, + "__prefab": { + "__id__": 26 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 15 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cc0fFjhwhMGaRQ0ubiGlqz" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 18 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 209, + "g": 225, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "24a704da-2867-446d-8d1a-5e920c75e09d@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "08q3gyRnNAXIdO7LfY62fu" + }, + { + "__type__": "cc.ProgressBar", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 18 + }, + "_enabled": true, + "__prefab": { + "__id__": 30 + }, + "_barSprite": { + "__id__": 22 + }, + "_mode": 0, + "_totalLength": 300, + "_progress": 0, + "_reverse": false, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2e2r1+eohH14TzfL+WHlxX" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "85RG8ssvJFB5oVHXPtWTfF", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 33 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 720, + "height": 1280 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1dgJxmIH5HIpXD6y0/xMwI" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 35 + }, + "_alignFlags": 45, + "_target": null, + "_left": 720, + "_right": -720, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "582zBz6m5DKqmkTkiS/LE0" + }, + { + "__type__": "7b00a/4yERL/LgI4ZobxPAs", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 37 + }, + "progress": { + "__id__": 29 + }, + "label": { + "__id__": 13 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "61l1724zhJtZN7fgUUejH7" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "08xLpDDa9NlK3pgR7XiOqb", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/JisolGameCocos/assets/resources/prefab/ui/Loading/LoadingView.prefab.meta b/JisolGameCocos/assets/resources/prefab/ui/Loading/LoadingView.prefab.meta new file mode 100644 index 00000000..0d2ecac9 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/Loading/LoadingView.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.49", + "importer": "prefab", + "imported": true, + "uuid": "ab7f7687-54ad-4afe-9362-646727942569", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "LoadingView" + } +} diff --git a/JisolGameCocos/assets/script/App.ts b/JisolGameCocos/assets/script/App.ts index 0b9346b1..337d801f 100644 --- a/JisolGameCocos/assets/script/App.ts +++ b/JisolGameCocos/assets/script/App.ts @@ -25,6 +25,7 @@ import { TableGRoleAttackEffect } from "../resources/config/ts/TableGRoleAttackE import { TableGRoleSkill } from "../resources/config/ts/TableGRoleSkill"; import { TableGRoleSkillEffect } from "../resources/config/ts/TableGRoleSkillEffect"; import { TableGMap } from "../resources/config/ts/TableGMap"; +import Loading from "../../extensions/ngame/assets/ngame/util/Loading"; let IP = "kyu.jisol.cn"; @@ -106,6 +107,8 @@ export abstract class JNGSyncProtoBase extends JNSyncFrameProtoComponent{ //读写config export class JNGConfig extends SystemBase{ + static loading = "JNGConfig"; + //配置JSON加载 jsons:JsonLoad[] = [ {name:TableGRole.TableName}, //角色 @@ -124,25 +127,40 @@ export class JNGConfig extends SystemBase{ }); async onInit(): Promise { + + app.loading.setCurrent(JNGConfig.loading); + for (const key in this.jsons) { const load = this.jsons[key]; await JsonUtil.load(load); } + + app.loading.ok(JNGConfig.loading); } } -//角色初始器 -export class JLoaderRole extends JLoaderSystem{ +//资源初始器 +export class JLoaderBattle extends JLoaderSystem{ + + static loading = "JLoaderBattle"; + static loadingInit = "JLoaderBattle_Init"; skData:{[id:number]:sp.SkeletonData} = {}; //角色Spine - bullets:{[id:number]:SpriteFrame} = {}; + bullets:{[id:number]:SpriteFrame} = {}; //子弹 effects:{[id:number]:sp.SkeletonData} = {}; //Spine特效 maps:{[id:number]:SpriteFrame[]} = {}; //地图 async onInit(): Promise { + + app.loading.setCurrent(JLoaderBattle.loading); + await super.onInit(); + app.loading.ok(JLoaderBattle.loading); + + app.loading.setCurrent(JLoaderBattle.loadingInit); + //将配置表的角色都读取出来 for (const info of Object.values(TableGRole.getAllConfig())) { this.skData[info.id] = await (new Promise(r => { @@ -193,6 +211,8 @@ export class JLoaderRole extends JLoaderSystem{ }))) } + + app.loading.ok(JLoaderBattle.loadingInit); } @@ -208,6 +228,11 @@ export const app = { baseURL: `http://${IP}:8080`, }), //请求 battle : GBattleModeManager.getIns(), //战斗 - config : new JNGConfig(), - battleRes : new JLoaderRole("battle"), //battle包 + config : new JNGConfig(), //配置文件 + battleRes : new JLoaderBattle("battle"), //battle包 + loading: new Loading({ + [JNGConfig.loading]:{title:"加载配置文件"}, + [JLoaderBattle.loading]:{title:"加载战斗资源"}, + [JLoaderBattle.loadingInit]:{title:"初始化战斗资源"}, + }) } \ No newline at end of file diff --git a/JisolGameCocos/assets/script/Main.ts b/JisolGameCocos/assets/script/Main.ts index 882fb3c1..693e6820 100644 --- a/JisolGameCocos/assets/script/Main.ts +++ b/JisolGameCocos/assets/script/Main.ts @@ -16,6 +16,9 @@ export class Main extends Component { async onLoad(){ + // 创建UI + director.getScene().addChild(instantiate(this.UIPrefab)); + //加载 APP await JNGame.Init(app,[ {path:"proto/GDemo"} @@ -26,10 +29,8 @@ export class Main extends Component { //发生帧同步开始 app.socket.Send(JNSyncAction.NSyncFrameStart); - // 创建UI - director.getScene().addChild(instantiate(this.UIPrefab)); // 创建世界 - director.getScene().addChild(instantiate(this.WorldPrefab)); + // director.getScene().addChild(instantiate(this.WorldPrefab)); } diff --git a/JisolGameCocos/assets/script/UICanvas.ts b/JisolGameCocos/assets/script/UICanvas.ts index 1763ed89..74c5c5d0 100644 --- a/JisolGameCocos/assets/script/UICanvas.ts +++ b/JisolGameCocos/assets/script/UICanvas.ts @@ -14,8 +14,8 @@ export class UICanvas extends Component { //绑定层级 app.layer.bind(this.root); - //显示Home - app.layer.Open(GUI.Home); + //显示Loading + app.layer.Open(GUI.Loading); } diff --git a/JisolGameCocos/assets/script/battle/modes/GOnHookMode.ts b/JisolGameCocos/assets/script/battle/modes/GOnHookMode.ts index 5f829f54..a07a4d95 100644 --- a/JisolGameCocos/assets/script/battle/modes/GOnHookMode.ts +++ b/JisolGameCocos/assets/script/battle/modes/GOnHookMode.ts @@ -97,6 +97,9 @@ export default class GOnHookMode extends GBaseMode<{}>{ fsm:GFSMOnHookMode; + //是否允许攻击 + isAllowAttack:boolean = false; + onSyncInitSuccess():void{ //初始化战斗 @@ -146,8 +149,13 @@ export default class GOnHookMode extends GBaseMode<{}>{ onUpdateCamera(dt:number){ //如果没有敌人相机永远锁定最前面的宠物 - if(!this.isHaveEnemy()){ + if(this.isAllowAttack && this.isHaveEnemy()){ + //如果有敌人则移动到战斗位置 + let cameraWorld = this.camera.node.worldPosition.clone(); + this.camera.node.worldPosition = cameraWorld.lerp(v3(this.nextFightX,cameraWorld.y,cameraWorld.z),(dt / 1000)); + + }else{ //获取冲到最前面的宠物 let roles = this.getOnesRoleAlive(GOnHookModePlayerEnum.PLAYER); let frontRole = roles.sort((role1,role2) => role2.v2World.x - role1.v2World.x)[0]; @@ -156,11 +164,6 @@ export default class GOnHookMode extends GBaseMode<{}>{ //设置相机 位置 let cameraWorld = this.camera.node.worldPosition.clone(); this.camera.node.worldPosition = cameraWorld.lerp(v3(frontRole.v2World.x,cameraWorld.y,cameraWorld.z),(dt / 1000)); - - }else{ - //如果有敌人则移动到战斗位置 - let cameraWorld = this.camera.node.worldPosition.clone(); - this.camera.node.worldPosition = cameraWorld.lerp(v3(this.nextFightX,cameraWorld.y,cameraWorld.z),(dt / 1000)); } } @@ -210,6 +213,8 @@ export default class GOnHookMode extends GBaseMode<{}>{ //获取敌人 getEnumy(player:GRoleDefault,type:GOnHookModePlayerEnum):GRoleDefault{ + if(!this.isAllowAttack) return null; + let enumyOnes = GOnHookModePlayerEnum.ENEMY //如果是ENEMY 则 它的敌人是 PLAYER if(type == GOnHookModePlayerEnum.ENEMY) enumyOnes = GOnHookModePlayerEnum.PLAYER @@ -253,6 +258,7 @@ export default class GOnHookMode extends GBaseMode<{}>{ //是否有怪物 isHaveEnemy(){ + if(!this.isAllowAttack) return []; return this.getOnesRoleAlive(GOnHookModePlayerEnum.ENEMY).filter(role => !!role.get()).length > 0; } diff --git a/JisolGameCocos/assets/script/battle/modes/OnHook/GFSMOnHookMode.ts b/JisolGameCocos/assets/script/battle/modes/OnHook/GFSMOnHookMode.ts index ede1c579..cc63c3ac 100644 --- a/JisolGameCocos/assets/script/battle/modes/OnHook/GFSMOnHookMode.ts +++ b/JisolGameCocos/assets/script/battle/modes/OnHook/GFSMOnHookMode.ts @@ -32,18 +32,18 @@ export default class GFSMOnHookMode extends GFSMBase{ title:"生成下一个战斗位置", mode:GFSMProcessMode.Execute, execute: this.onGenNextFightProcess.bind(this), - to:[ProcessEnum.LeaveFight] - }, - [ProcessEnum.LeaveFight]:{ - title:"前往战斗", - mode:GFSMProcessMode.WaitExecute, - execute: this.onLeaveFightProcess.bind(this), to:[ProcessEnum.GenEnemy] }, [ProcessEnum.GenEnemy]:{ title:"生成敌人", mode:GFSMProcessMode.Execute, execute: this.onGenEnemyProcess.bind(this), + to:[ProcessEnum.LeaveFight] + }, + [ProcessEnum.LeaveFight]:{ + title:"前往战斗", + mode:GFSMProcessMode.WaitExecute, + execute: this.onLeaveFightProcess.bind(this), to:[ProcessEnum.Fight] }, [ProcessEnum.Fight]:{ @@ -69,11 +69,21 @@ export default class GFSMOnHookMode extends GFSMBase{ //生成下一个战斗位置 onGenNextFightProcess(){ + this.mode.isAllowAttack = false; this.mode.onNextTarget(); - return ProcessEnum.LeaveFight; //前往战斗位置 + return ProcessEnum.GenEnemy; //生成敌人 } + //生成敌人 + onGenEnemyProcess(){ + + this.mode.onResetGenerateEnemy(); + return ProcessEnum.LeaveFight; //前往战斗 + + } + + //前往战斗 onLeaveFightProcess(){ @@ -90,22 +100,15 @@ export default class GFSMOnHookMode extends GFSMBase{ } //到达位置生成敌人 - return ProcessEnum.GenEnemy; - - } - - //生成敌人 - onGenEnemyProcess(){ - - this.mode.onResetGenerateEnemy(); return ProcessEnum.Fight; } - //战斗 onFightProcess(){ + + this.mode.isAllowAttack = true; //等待敌人击杀完 if(!(this.mode.isHaveEnemy())){ return ProcessEnum.SeekEnemy; //击杀完寻找敌人 diff --git a/JisolGameCocos/assets/script/ui/Loading.meta b/JisolGameCocos/assets/script/ui/Loading.meta new file mode 100644 index 00000000..b72765b6 --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Loading.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "65c8ddaf-bdfa-4c52-bcef-f952bf687165", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/script/ui/Loading/LoadingView.ts b/JisolGameCocos/assets/script/ui/Loading/LoadingView.ts new file mode 100644 index 00000000..4917a896 --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Loading/LoadingView.ts @@ -0,0 +1,39 @@ +import { ProgressBar } from "cc"; +import { _decorator } from "cc"; +import { JNGLayerBase, app } from "../../App"; +import { Label } from "cc"; +import { GUI } from "../UIConfig"; +const { ccclass, property } = _decorator; + +@ccclass('LoadingView') +export default class LoadingView extends JNGLayerBase { + + @property(ProgressBar) + progress:ProgressBar; + + @property(Label) + label:Label; + + //是否加载成功 + isOk:boolean = false; + + update(dt:number){ + if(app.loading.getCurrentInfo()) + this.label.string = app.loading.getCurrentInfo().title; + this.progress.progress = app.loading.progress(); + if(!this.isOk && app.loading.isAllSuccess()){ + this.isOk = true; + this.onSuccess(); + } + } + + async onSuccess(){ + + //打开主页 + await app.layer.Open(GUI.Home); + //关闭加载页 + app.layer.Close(GUI.Loading); + + } + +} diff --git a/JisolGameCocos/assets/script/ui/Loading/LoadingView.ts.meta b/JisolGameCocos/assets/script/ui/Loading/LoadingView.ts.meta new file mode 100644 index 00000000..9d9e9c0a --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Loading/LoadingView.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "7b00aff8-c844-4bfc-b808-e19a1bc4f02c", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/script/ui/UIConfig.ts b/JisolGameCocos/assets/script/ui/UIConfig.ts index 59afa81d..b78251e1 100644 --- a/JisolGameCocos/assets/script/ui/UIConfig.ts +++ b/JisolGameCocos/assets/script/ui/UIConfig.ts @@ -1,14 +1,33 @@ -import { JNLayerInfo } from "../../../extensions/ngame/assets/ngame/ui/JNLayer"; +import { v3 } from "cc"; +import { JNLayerAnim, JNLayerInfo } from "../../../extensions/ngame/assets/ngame/ui/JNLayer"; export enum GLayer{ View = "View", } export enum GUI{ + Loading = "Loading", Home = "Home", } export const UIConfig:{ [key: string]: JNLayerInfo; } = { - [GUI.Home]:{ layer:GLayer.View, uri: "prefab/ui/Home/HomeView"} + [GUI.Loading]:{ + layer:GLayer.View, + uri: "prefab/ui/Loading/LoadingView", + anims:{ + back:JNLayerAnim.Smaller, + backInfo:{key:"position",start:v3(0,0,0),end:v3(-720,0,0)} + }, + }, + [GUI.Home]:{ + layer:GLayer.View, + uri: "prefab/ui/Home/HomeView", + anims:{ + front:JNLayerAnim.Enlarge, + back:JNLayerAnim.Smaller, + frontInfo:{key:"position",start:v3(720,0,0),end:v3(0,0,0)}, + backInfo:{key:"position",start:v3(0,0,0),end:v3(-720,0,0)} + }, + }, } diff --git a/JisolGameCocos/extensions/oops-plugin-excel-to-json/dist/ExcelToJson.js b/JisolGameCocos/extensions/oops-plugin-excel-to-json/dist/ExcelToJson.js index 55bac7ea..248b8855 100644 --- a/JisolGameCocos/extensions/oops-plugin-excel-to-json/dist/ExcelToJson.js +++ b/JisolGameCocos/extensions/oops-plugin-excel-to-json/dist/ExcelToJson.js @@ -16,7 +16,7 @@ const excel = require('exceljs'); * @param {*} name excel文件名 * @param {*} isClient 是否为客户端数据 */ -async function convert(src, dst, name, isClient) { +async function convert(src, dst, name, isClient,outLocalJsonPath) { let r = {}; let names = []; // 文名字段名 let keys = []; // 字段名 @@ -282,11 +282,14 @@ async function convert(src, dst, name, isClient) { }); // 写入流 if (r["undefined"] == null) { + await fs.writeFileSync(dst, JSON.stringify(r)); + await fs.writeFileSync(outLocalJsonPath, JSON.stringify(r)); // 生成客户端脚本 if (isClient) (0, JsonToTs_1.createTs)(name, types_client, r, primary); console.log(isClient ? "客户端数据" : "服务器数据", "生成成功", dst); + } else { console.warn(isClient ? "客户端数据" : "服务器数据", "无数据", dst); @@ -296,12 +299,13 @@ async function convert(src, dst, name, isClient) { function run() { var inputExcelPath = path_1.default.join(__dirname, main_1.config.PathExcel); var outJsonPath = path_1.default.join(__dirname, main_1.config.PathJson); + var outLocalJsonPath = path_1.default.join(__dirname, "../json/"); const files = fs.readdirSync(inputExcelPath); files.forEach((f) => { let name = f.substring(0, f.indexOf(".")); let ext = f.toString().substring(f.lastIndexOf(".") + 1); if (ext == "xlsx") { - convert(inputExcelPath + f, outJsonPath + name + ".json", name, true); // 客户端数据 + convert(inputExcelPath + f, outJsonPath + name + ".json", name, true, outLocalJsonPath + name + ".json"); // 客户端数据 } }); } diff --git a/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/ExcelToJson.ts b/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/ExcelToJson.ts index 5a9bfae4..a0839b43 100644 --- a/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/ExcelToJson.ts +++ b/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/ExcelToJson.ts @@ -278,6 +278,7 @@ async function convert(src: string, dst: string, name: string, isClient: boolean }); // 写入流 if (r["undefined"] == null) { + await fs.writeFileSync(dst, JSON.stringify(r)); // 生成客户端脚本 diff --git a/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/JsonToTs.ts b/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/JsonToTs.ts index 7ea8ab51..987d2c5d 100644 --- a/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/JsonToTs.ts +++ b/JisolGameCocos/extensions/oops-plugin-excel-to-json/src/JsonToTs.ts @@ -32,7 +32,7 @@ export async function createTs(name: string, fieldType: any, data: any, primary: } var script = -`import { JsonUtil } from "../../../ngame/util/JsonUtil"; +`import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil"; export class Table${name} { static TableName: string = "${name}"; diff --git a/JisolGameCocos/settings/v2/packages/oops-plugin-excel-to-json.json b/JisolGameCocos/settings/v2/packages/oops-plugin-excel-to-json.json index ae2e62fd..555b7ee0 100644 --- a/JisolGameCocos/settings/v2/packages/oops-plugin-excel-to-json.json +++ b/JisolGameCocos/settings/v2/packages/oops-plugin-excel-to-json.json @@ -2,5 +2,6 @@ "__version__": "1.0.0", "PathExcel": "../../../config/", "PathJson": "../../../assets/resources/config/game/", - "PathTs": "../../../assets/resources/config/ts/" + "PathTs": "../../../assets/resources/config/ts/", + "PathServerJson": "../../../../JisolGameServer/Main/src/main/resources/json" } diff --git a/JisolGameCocos/settings/v2/packages/project.json b/JisolGameCocos/settings/v2/packages/project.json index b034c486..d2c2d5d5 100644 --- a/JisolGameCocos/settings/v2/packages/project.json +++ b/JisolGameCocos/settings/v2/packages/project.json @@ -10,6 +10,10 @@ { "name": "World", "value": 1 + }, + { + "name": "Loading", + "value": 2 } ], "custom_joint_texture_layouts": [], diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/json/GRole.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/json/GRole.java new file mode 100644 index 00000000..803256c2 --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/json/GRole.java @@ -0,0 +1,4 @@ +package cn.jisol.game.json; + +public class GRole { +} diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/listener/InitGameListener.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/listener/InitGameListener.java new file mode 100644 index 00000000..101e9df2 --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/listener/InitGameListener.java @@ -0,0 +1,17 @@ +package cn.jisol.game.listener; + +import org.springframework.context.event.ContextRefreshedEvent; +import org.springframework.context.event.EventListener; +import org.springframework.stereotype.Component; + +@Component +public class InitGameListener { + + @EventListener(ContextRefreshedEvent.class) + public void onApplicationEvent(ContextRefreshedEvent event) { + + + + } + +} diff --git a/JisolGameServer/Main/src/main/resources/json/GMap.json b/JisolGameServer/Main/src/main/resources/json/GMap.json new file mode 100644 index 00000000..a0ca9626 --- /dev/null +++ b/JisolGameServer/Main/src/main/resources/json/GMap.json @@ -0,0 +1 @@ +{"60001":{"id":60001,"mapName":"天空城","map1":"map/MAP6/MAP6_1/spriteFrame","map2":"map/MAP6/MAP6_2/spriteFrame","map3":"map/MAP6/MAP6_3/spriteFrame","map1OffsetY":100,"map2OffsetY":400,"map3OffsetY":400}} \ No newline at end of file diff --git a/JisolGameServer/Main/src/main/resources/json/GRole.json b/JisolGameServer/Main/src/main/resources/json/GRole.json new file mode 100644 index 00000000..5b08c8fd --- /dev/null +++ b/JisolGameServer/Main/src/main/resources/json/GRole.json @@ -0,0 +1 @@ +{"10001":{"id":10001,"roleName":"小石头","spine":"spine/召唤与合成819个Spine/小石头/guaiA1a/spine/guaiA1a","roleSkillIds":[],"roleAttackRange":100},"10002":{"id":10002,"roleName":"坚强小石","spine":"spine/召唤与合成819个Spine/坚强小石/guaiA1a_1/spine/guaiA1a","roleSkillIds":[],"roleAttackRange":100},"10003":{"id":10003,"roleName":"疯狂松鼠","spine":"spine/召唤与合成819个Spine/疯狂松鼠/guaiA4e_2/spine/guaiA4e","roleSkillIds":[40001],"roleAttackRange":500},"10004":{"id":10004,"roleName":"妙蛙种子","spine":"spine/神奇宝贝/001妙蛙种子/spine/001妙蛙种子","roleSkillIds":[40002],"roleAttackRange":350}} \ No newline at end of file diff --git a/JisolGameServer/Main/src/main/resources/json/GRoleAttack.json b/JisolGameServer/Main/src/main/resources/json/GRoleAttack.json new file mode 100644 index 00000000..8e7c2bd6 --- /dev/null +++ b/JisolGameServer/Main/src/main/resources/json/GRoleAttack.json @@ -0,0 +1 @@ +{"10001":{"roleId":10001,"attackWay":"Normal","attackArgs":[]},"10002":{"roleId":10002,"attackWay":"Normal","attackArgs":[]},"10003":{"roleId":10003,"attackWay":"ParabolicBangRemote","attackArgs":["20001","30001","timo5 007","0.6","100","100"]},"10004":{"roleId":10004,"attackWay":"Normal","attackArgs":[]}} \ No newline at end of file diff --git a/JisolGameServer/Main/src/main/resources/json/GRoleAttackBullet.json b/JisolGameServer/Main/src/main/resources/json/GRoleAttackBullet.json new file mode 100644 index 00000000..323febd2 --- /dev/null +++ b/JisolGameServer/Main/src/main/resources/json/GRoleAttackBullet.json @@ -0,0 +1 @@ +{"20001":{"id":20001,"bulletName":"炸弹","bulletSrc":"bullets/疯狂松鼠/attack/spriteFrame"}} \ No newline at end of file diff --git a/JisolGameServer/Main/src/main/resources/json/GRoleAttackEffect.json b/JisolGameServer/Main/src/main/resources/json/GRoleAttackEffect.json new file mode 100644 index 00000000..a9559c27 --- /dev/null +++ b/JisolGameServer/Main/src/main/resources/json/GRoleAttackEffect.json @@ -0,0 +1 @@ +{"30001":{"id":30001,"effectName":"爆炸","spine":"effect/爆炸效果/shouji_01/spine/shouji_01","animation":"animation"}} \ No newline at end of file diff --git a/JisolGameServer/Main/src/main/resources/json/GRoleSkill.json b/JisolGameServer/Main/src/main/resources/json/GRoleSkill.json new file mode 100644 index 00000000..5bb72942 --- /dev/null +++ b/JisolGameServer/Main/src/main/resources/json/GRoleSkill.json @@ -0,0 +1 @@ +{"40001":{"id":40001,"skillName":"疯狂松鼠","skillController":"GSkillCrazySquirrel","skillArgs":["5","250","250"],"skillText":"疯狂松鼠的技能 丢出巨大炸弹 轰炸全部玩家"},"40002":{"id":40002,"skillName":"妙蛙种子连击","skillController":"GSkillBulbasaurDoubleHit","skillArgs":["8"],"skillText":"妙蛙种子攻击8次 触发一次射叶子技能"}} \ No newline at end of file diff --git a/JisolGameServer/Main/src/main/resources/json/GRoleSkillEffect.json b/JisolGameServer/Main/src/main/resources/json/GRoleSkillEffect.json new file mode 100644 index 00000000..6f5f8899 --- /dev/null +++ b/JisolGameServer/Main/src/main/resources/json/GRoleSkillEffect.json @@ -0,0 +1 @@ +{"50001":{"id":50001,"text":"疯狂松鼠的技能开始 松鼠向天上丢出炸弹","spine":"spine/召唤与合成819个Spine/疯狂松鼠/guaiA4es_2/spine/guaiA4es"},"50002":{"id":50002,"text":"火球","spine":"effect/子弹效果/base_fly_fire/spine/buff_fire"},"50003":{"id":50003,"text":"火球爆炸","spine":"effect/爆炸效果/zhouyu_skill2_2/spine/zhouyu_skill2_2"}} \ No newline at end of file diff --git a/luban_examples/.gitignore b/luban_examples/.gitignore new file mode 100644 index 00000000..f88f42f9 --- /dev/null +++ b/luban_examples/.gitignore @@ -0,0 +1,342 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +ReaderLib/**/Config + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +# *.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +#*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# gen cache meta file +.cache.meta + +/Test/output +/Packages + +# unity +Library/ +Temp/ + +#unreal +Binaries/ +Intermediate/ +Saved/ + +# java gradle +.gradle +build +gradle/ + +.vscode/ + + +/Projects/java_bin/out/ +/Projects/Csharp_Unity_ILRuntime_bin/Logs +/Projects/Lua_Unity_tolua_bin/Logs +/Projects/Lua_Unity_tolua_lua/Logs +/Projects/TypeScript_NodeJs_json/package-lock.json +/Projects/TypeScript_Puerts_Bin/*.csproj +/Projects/TypeScript_Unity_Puerts_Bin/*.csproj +/Tools/build_luban_client.bat +/Tools/build_luban_server.bat +/Projects/TypeScript_NodeJs_Bin/dist +!/Projects/GenerateDatas/bin +/Benchmark/data_bin +/Benchmark/data_json +/Benchmark/data_lua +/Tools/build_luban_clientserver.bat +/Projects/TypeScript_NodeJs_json/dist +/Projects/Rust_Json/target +/Projects/GenerateDatas/convert_xlsx +/MiniDesignerConfigsTemplate/output_json +/Projects/GenerateDatas/conver_json_to_xlsx +/Projects/GenerateDatas/conver_xlsx_to_json +/Tools/build_excel2textdiff.bat +/Tools/build_luban_assistant.bat +/ProtoProjects/Typescript_Unity_Puerts/TsScripts/output +/ProtoProjects/Typescript_Unity_Puerts/UserSettings +/ProtoProjects/Csharp_Unity/UserSettings +/Projects/Protobuf_bin/pb_datas +/Projects/Csharp_Unity_bin/Logs +*.DS_Store + +Projects/Csharp_CustomTemplate_EncryptMemory/UserSettings/ +Projects/Csharp_CustomTemplate_EncryptMemory/*.csproj +Projects/Csharp_CustomTemplate_EncryptMemory/*.sln +/Projects/Flatbuffers_bin/datas_bin +/Projects/Flatbuffers_bin/datas +/Projects/Flatbuffers_json/datas +/Projects/Protobuf2_bin/pb_datas +/Projects/Flatbuffers_json/output +/Projects/Protobuf3_bin_json/pb_bin +/Projects/Protobuf3_bin_json/pb_json +/Projects/TypeScript_Unity_Puerts_Bin/Logs +/Projects/TypeScript_Unity_Puerts_Json/Logs +out/ +/Projects/GDScript_json/.godot +/Projects/GDScript_json/json +/Tools/Luban +/MiniTemplate/output_json +/Projects/GenerateDatas/bidx +/Projects/GenerateDatas/bin-offset +/Projects/GenerateDatas/bytes +/Projects/GenerateDatas/json +/Projects/GenerateDatas/json2 +/Projects/GenerateDatas/lua +/Projects/GenerateDatas/text +/Projects/GenerateDatas/xml +/Projects/GenerateDatas/yaml diff --git a/luban_examples/DataTables/Datas/__beans__.xlsx b/luban_examples/DataTables/Datas/__beans__.xlsx new file mode 100644 index 00000000..a18db287 Binary files /dev/null and b/luban_examples/DataTables/Datas/__beans__.xlsx differ diff --git a/luban_examples/DataTables/Datas/__enums__.xlsx b/luban_examples/DataTables/Datas/__enums__.xlsx new file mode 100644 index 00000000..bfe4256d Binary files /dev/null and b/luban_examples/DataTables/Datas/__enums__.xlsx differ diff --git a/luban_examples/DataTables/Datas/__tables__.xlsx b/luban_examples/DataTables/Datas/__tables__.xlsx new file mode 100644 index 00000000..becd6988 Binary files /dev/null and b/luban_examples/DataTables/Datas/__tables__.xlsx differ diff --git a/luban_examples/DataTables/Datas/ai/behaviortrees/random_move.lua b/luban_examples/DataTables/Datas/ai/behaviortrees/random_move.lua new file mode 100644 index 00000000..acc7a017 --- /dev/null +++ b/luban_examples/DataTables/Datas/ai/behaviortrees/random_move.lua @@ -0,0 +1,28 @@ + return { + id=10002, + name="random move", + desc="demo behaviour tree haha", + executor="SERVER", + blackboard_id="demo", + root= + { + __type__ = "Sequence", + id=1, + node_name="test", + desc="root", + services= + { + + }, + decorators= + { + { __type__="UeLoop", id=3,node_name="",flow_abort_mode="SELF", num_loops=0,infinite_loop=true,infinite_loop_timeout_time=-1,}, + }, + children = + { + {__type__="UeWait", id=30,node_name="", ignore_restart_self=false,wait_time=1,random_deviation=0.5, services={},decorators={},}, + {__type__="MoveToRandomLocation", id=75,node_name="", ignore_restart_self=false,origin_position_key="x5",radius=30, services={},decorators={}}, + --{__type__="DebugPrint", id=76,node_name="", ignore_restart_self=false,text="======= bt debug print ===", services={},decorators={}}, + }, + }, + } \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/ai/blackboards/attack_or_patrol.lua b/luban_examples/DataTables/Datas/ai/blackboards/attack_or_patrol.lua new file mode 100644 index 00000000..84fa1d7d --- /dev/null +++ b/luban_examples/DataTables/Datas/ai/blackboards/attack_or_patrol.lua @@ -0,0 +1,12 @@ +return { + name = "attack_or_patrol", + desc ="demo hahaha", + parent_name = "", + keys = + { + {name="OriginPosition",desc="", is_static=false, type="VECTOR", type_class_name=""}, + {name="TargetActor",desc="x2 haha", is_static=false, type="OBJECT", type_class_name=""}, + {name="AcceptableRadius",desc="x3 haha", is_static=false, type="FLOAT", type_class_name=""}, + {name="CurChooseSkillId",desc="x4 haha", is_static=false, type="INT", type_class_name=""}, + }, +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/ai/blackboards/demo_child.lua b/luban_examples/DataTables/Datas/ai/blackboards/demo_child.lua new file mode 100644 index 00000000..4564f47f --- /dev/null +++ b/luban_examples/DataTables/Datas/ai/blackboards/demo_child.lua @@ -0,0 +1,18 @@ +return { + name = "demo", + desc ="demo hahaha", + parent_name = "demo_parent", + keys = + { + {name="x1",desc="x1 haha", is_static=false, type="BOOL", type_class_name=""}, + {name="x2",desc="x2 haha", is_static=false, type="INT", type_class_name=""}, + {name="x3",desc="x3 haha", is_static=false, type="FLOAT", type_class_name=""}, + {name="x4",desc="x4 haha", is_static=false, type="STRING", type_class_name=""}, + {name="x5",desc="x5 haha", is_static=false, type="VECTOR", type_class_name=""}, + {name="x6",desc="x6 haha", is_static=false, type="ROTATOR", type_class_name=""}, + {name="x7",desc="x7 haha", is_static=false, type="NAME", type_class_name=""}, + {name="x8",desc="x8 haha", is_static=false, type="CLASS", type_class_name=""}, + {name="x9",desc="x9 haha", is_static=false, type="ENUM", type_class_name="ABC"}, + {name="x10",desc="x10 haha", is_static=false, type="OBJECT", type_class_name="OBJECT"}, + }, +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/ai/blackboards/demo_parent.lua b/luban_examples/DataTables/Datas/ai/blackboards/demo_parent.lua new file mode 100644 index 00000000..e8cff341 --- /dev/null +++ b/luban_examples/DataTables/Datas/ai/blackboards/demo_parent.lua @@ -0,0 +1,9 @@ +return { + name = "demo_parent", + desc ="demo parent", + parent_name = "", + keys = + { + {name="v1",desc="v1 haha", is_static=false, type="BOOL", type_class_name=""}, + }, +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/blueprint/classes/int.json b/luban_examples/DataTables/Datas/blueprint/classes/int.json new file mode 100644 index 00000000..6c1d921f --- /dev/null +++ b/luban_examples/DataTables/Datas/blueprint/classes/int.json @@ -0,0 +1,10 @@ +{ + "__type__":"NormalClazz", + "name":"int", + "desc":"primity type:int", + "parents":[], + "methods":[], + "is_abstract":false, + "fields":[] + +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/bonus/掉落表.xlsx b/luban_examples/DataTables/Datas/bonus/掉落表.xlsx new file mode 100644 index 00000000..a65d55b5 Binary files /dev/null and b/luban_examples/DataTables/Datas/bonus/掉落表.xlsx differ diff --git a/luban_examples/DataTables/Datas/clothes/套装表.xlsx b/luban_examples/DataTables/Datas/clothes/套装表.xlsx new file mode 100644 index 00000000..d43a5d32 Binary files /dev/null and b/luban_examples/DataTables/Datas/clothes/套装表.xlsx differ diff --git a/luban_examples/DataTables/Datas/clothes/服装系统.xlsx b/luban_examples/DataTables/Datas/clothes/服装系统.xlsx new file mode 100644 index 00000000..1f9b06dc Binary files /dev/null and b/luban_examples/DataTables/Datas/clothes/服装系统.xlsx differ diff --git a/luban_examples/DataTables/Datas/common/dummy.xlsx b/luban_examples/DataTables/Datas/common/dummy.xlsx new file mode 100644 index 00000000..e5caa4d5 Binary files /dev/null and b/luban_examples/DataTables/Datas/common/dummy.xlsx differ diff --git a/luban_examples/DataTables/Datas/common/全局常量配置表.xlsx b/luban_examples/DataTables/Datas/common/全局常量配置表.xlsx new file mode 100644 index 00000000..c914b9a8 Binary files /dev/null and b/luban_examples/DataTables/Datas/common/全局常量配置表.xlsx differ diff --git a/luban_examples/DataTables/Datas/demo.xlsx b/luban_examples/DataTables/Datas/demo.xlsx new file mode 100644 index 00000000..eede2bfc Binary files /dev/null and b/luban_examples/DataTables/Datas/demo.xlsx differ diff --git a/luban_examples/DataTables/Datas/error/错误码.xlsx b/luban_examples/DataTables/Datas/error/错误码.xlsx new file mode 100644 index 00000000..20464767 Binary files /dev/null and b/luban_examples/DataTables/Datas/error/错误码.xlsx differ diff --git a/luban_examples/DataTables/Datas/item/道具分类子表.xlsx b/luban_examples/DataTables/Datas/item/道具分类子表.xlsx new file mode 100644 index 00000000..57610117 Binary files /dev/null and b/luban_examples/DataTables/Datas/item/道具分类子表.xlsx differ diff --git a/luban_examples/DataTables/Datas/item/道具系统表.xlsx b/luban_examples/DataTables/Datas/item/道具系统表.xlsx new file mode 100644 index 00000000..4734d444 Binary files /dev/null and b/luban_examples/DataTables/Datas/item/道具系统表.xlsx differ diff --git a/luban_examples/DataTables/Datas/l10n/Demo.xlsx b/luban_examples/DataTables/Datas/l10n/Demo.xlsx new file mode 100644 index 00000000..c9032390 Binary files /dev/null and b/luban_examples/DataTables/Datas/l10n/Demo.xlsx differ diff --git a/luban_examples/DataTables/Datas/l10n/Patch.xlsx b/luban_examples/DataTables/Datas/l10n/Patch.xlsx new file mode 100644 index 00000000..77428df8 Binary files /dev/null and b/luban_examples/DataTables/Datas/l10n/Patch.xlsx differ diff --git a/luban_examples/DataTables/Datas/l10n/texts.json b/luban_examples/DataTables/Datas/l10n/texts.json new file mode 100644 index 00000000..0b59e3fa --- /dev/null +++ b/luban_examples/DataTables/Datas/l10n/texts.json @@ -0,0 +1,9 @@ +[ + {"key":"/apple", "en":"apple", "zh":"苹果"}, + {"key":"/abc", "en":"apple", "zh":"苹果"}, + {"key":"/def", "en":"apple", "zh":"苹果"}, + {"key":"key_name", "en":"apple", "zh":"苹果"}, + {"key":"test/a", "en":"apple", "zh":"苹果"}, + {"key":"name", "en":"apple", "zh":"苹果"}, + {"key":"/banana", "en":"banana", "zh":"香蕉"} +] \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/mail/邮箱系统数据表.xlsx b/luban_examples/DataTables/Datas/mail/邮箱系统数据表.xlsx new file mode 100644 index 00000000..84c3d2e6 Binary files /dev/null and b/luban_examples/DataTables/Datas/mail/邮箱系统数据表.xlsx differ diff --git a/luban_examples/DataTables/Datas/role/等级信息表.xlsx b/luban_examples/DataTables/Datas/role/等级信息表.xlsx new file mode 100644 index 00000000..1f6760fc Binary files /dev/null and b/luban_examples/DataTables/Datas/role/等级信息表.xlsx differ diff --git a/luban_examples/DataTables/Datas/tag_datas/j_not_tag.json b/luban_examples/DataTables/Datas/tag_datas/j_not_tag.json new file mode 100644 index 00000000..24bff63d --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/j_not_tag.json @@ -0,0 +1,4 @@ +{ + "id":2001, + "value": "导出" +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/j_tag_any.json b/luban_examples/DataTables/Datas/tag_datas/j_tag_any.json new file mode 100644 index 00000000..df68f618 --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/j_tag_any.json @@ -0,0 +1,5 @@ +{ + "__tag__":"any", + "id":2004, + "value": "any" +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/j_tag_test.json b/luban_examples/DataTables/Datas/tag_datas/j_tag_test.json new file mode 100644 index 00000000..8be521ed --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/j_tag_test.json @@ -0,0 +1,5 @@ +{ + "__tag__":"test", + "id":2003, + "value": "test" +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/not_tag.lua b/luban_examples/DataTables/Datas/tag_datas/not_tag.lua new file mode 100644 index 00000000..76b5d3c9 --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/not_tag.lua @@ -0,0 +1,5 @@ + +return { + id = 100, + value = "导出", +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/tag.xlsx b/luban_examples/DataTables/Datas/tag_datas/tag.xlsx new file mode 100644 index 00000000..6c41a618 Binary files /dev/null and b/luban_examples/DataTables/Datas/tag_datas/tag.xlsx differ diff --git a/luban_examples/DataTables/Datas/tag_datas/tag_any.lua b/luban_examples/DataTables/Datas/tag_datas/tag_any.lua new file mode 100644 index 00000000..3c1dad7b --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/tag_any.lua @@ -0,0 +1,5 @@ +return { + __tag__ = "any", + id = 104, + value="any", +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/tag_test.lua b/luban_examples/DataTables/Datas/tag_datas/tag_test.lua new file mode 100644 index 00000000..80e38822 --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/tag_test.lua @@ -0,0 +1,5 @@ +return { + __tag__ = "test", + id = 102, + value="test", +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/x_not_tag.xml b/luban_examples/DataTables/Datas/tag_datas/x_not_tag.xml new file mode 100644 index 00000000..9cb7ac1e --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/x_not_tag.xml @@ -0,0 +1,4 @@ + + 3001 + export + \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/x_tag_any.xml b/luban_examples/DataTables/Datas/tag_datas/x_tag_any.xml new file mode 100644 index 00000000..d899f20e --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/x_tag_any.xml @@ -0,0 +1,5 @@ + + <__tag__>any + 3004 + any + \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/tag_datas/x_tag_test.xml b/luban_examples/DataTables/Datas/tag_datas/x_tag_test.xml new file mode 100644 index 00000000..92252367 --- /dev/null +++ b/luban_examples/DataTables/Datas/tag_datas/x_tag_test.xml @@ -0,0 +1,5 @@ + + <__tag__>test + 3003 + test + \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/composite_tables.json b/luban_examples/DataTables/Datas/test/composite_tables.json new file mode 100644 index 00000000..adf7ef56 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/composite_tables.json @@ -0,0 +1,15 @@ + +{ + "table1":[ + {"id":1, "x":"aaa1"}, + {"id":2,"x":"xx2"} + ], + "table2":[ + {"id":1, "y":100}, + {"id":3, "y":300} + ], + "table3": { + "a":111, + "b":222 + } +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/composite_tables2.json b/luban_examples/DataTables/Datas/test/composite_tables2.json new file mode 100644 index 00000000..855bd2c7 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/composite_tables2.json @@ -0,0 +1,4 @@ +[ + {"id":11, "x":"aaa11"}, + {"id":12,"x":"xx12"} + ] \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/define_from_excel.xlsx b/luban_examples/DataTables/Datas/test/define_from_excel.xlsx new file mode 100644 index 00000000..2b2e6e5b Binary files /dev/null and b/luban_examples/DataTables/Datas/test/define_from_excel.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/define_from_excel_one.xlsx b/luban_examples/DataTables/Datas/test/define_from_excel_one.xlsx new file mode 100644 index 00000000..fc716ada Binary files /dev/null and b/luban_examples/DataTables/Datas/test/define_from_excel_one.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/demo_group.xlsx b/luban_examples/DataTables/Datas/test/demo_group.xlsx new file mode 100644 index 00000000..d4006344 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/demo_group.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/demo_primitive.xlsx b/luban_examples/DataTables/Datas/test/demo_primitive.xlsx new file mode 100644 index 00000000..9074026d Binary files /dev/null and b/luban_examples/DataTables/Datas/test/demo_primitive.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/demos.xlsx b/luban_examples/DataTables/Datas/test/demos.xlsx new file mode 100644 index 00000000..d26b647f Binary files /dev/null and b/luban_examples/DataTables/Datas/test/demos.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/detect_csv_encoding_ansi.csv b/luban_examples/DataTables/Datas/test/detect_csv_encoding_ansi.csv new file mode 100644 index 00000000..d9e3b26e --- /dev/null +++ b/luban_examples/DataTables/Datas/test/detect_csv_encoding_ansi.csv @@ -0,0 +1,5 @@ +##,id,name +,, +,11,Ա +,12,԰Ҫ +,13,ݼ diff --git a/luban_examples/DataTables/Datas/test/detect_csv_encoding_big5.csv b/luban_examples/DataTables/Datas/test/detect_csv_encoding_big5.csv new file mode 100644 index 00000000..3d708001 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/detect_csv_encoding_big5.csv differ diff --git a/luban_examples/DataTables/Datas/test/detect_csv_encoding_gb2312.csv b/luban_examples/DataTables/Datas/test/detect_csv_encoding_gb2312.csv new file mode 100644 index 00000000..adde7277 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/detect_csv_encoding_gb2312.csv @@ -0,0 +1,5 @@ +##,id,name +, +,1,Ա +,2,԰Ҫ +,3,ݼ diff --git a/luban_examples/DataTables/Datas/test/detect_csv_encoding_utf8.csv b/luban_examples/DataTables/Datas/test/detect_csv_encoding_utf8.csv new file mode 100644 index 00000000..b8ff4996 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/detect_csv_encoding_utf8.csv @@ -0,0 +1,5 @@ +##,id,name +, +,21,测试编码 +,22,还果园国要 +,23,工枯加盟仍 diff --git a/luban_examples/DataTables/Datas/test/excel_jsons/1.json b/luban_examples/DataTables/Datas/test/excel_jsons/1.json new file mode 100644 index 00000000..b6151732 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/excel_jsons/1.json @@ -0,0 +1,68 @@ +{ + "x4": 1, + "x1": true, + "x5": 100, + "x6": 1.20000005, + "s1": "hq", + "s2": "/abc", + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 1.10000002, + "y": 2.20000005, + "z": 3.4000001 + }, + "v4": { + "x": 10.1000004, + "y": 11.1999998, + "z": 12.3000002, + "w": 13.3999996 + }, + "t1": "1990-1-1 00:00:00", + "x12": { + "x1": 10 + }, + "x13": "A", + "x14": { + "__type__": "DemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + 2, + 2 + ], + [ + 4, + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "__type__": "DemoD2", + "x1": 1, + "x2": 2 + }, + { + "__type__": "DemoD2", + "x1": 2, + "x2": 3 + } + ] +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/excel_jsons/2.json b/luban_examples/DataTables/Datas/test/excel_jsons/2.json new file mode 100644 index 00000000..979eb83a --- /dev/null +++ b/luban_examples/DataTables/Datas/test/excel_jsons/2.json @@ -0,0 +1,68 @@ +{ + "x4": 2, + "x1": true, + "x5": 100, + "x6": 1.20000005, + "s1": "hq", + "s2": "/abc", + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 1.10000002, + "y": 2.20000005, + "z": 3.4000001 + }, + "v4": { + "x": 10.1000004, + "y": 11.1999998, + "z": 12.3000002, + "w": 13.3999996 + }, + "t1": "1990-1-1 00:00:00", + "x12": { + "x1": 10 + }, + "x13": "B", + "x14": { + "__type__": "DemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + 2, + 2 + ], + [ + 4, + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "__type__": "DemoD2", + "x1": 1, + "x2": 2 + }, + { + "__type__": "DemoD2", + "x1": 2, + "x2": 3 + } + ] +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/excel_jsons/3.json b/luban_examples/DataTables/Datas/test/excel_jsons/3.json new file mode 100644 index 00000000..a13f4931 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/excel_jsons/3.json @@ -0,0 +1,68 @@ +{ + "x4": 3, + "x1": true, + "x5": 100, + "x6": 1.20000005, + "s1": "hq", + "s2": "/abc", + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 1.10000002, + "y": 2.20000005, + "z": 3.4000001 + }, + "v4": { + "x": 10.1000004, + "y": 11.1999998, + "z": 12.3000002, + "w": 13.3999996 + }, + "t1": "1990-1-1 00:00:00", + "x12": { + "x1": 10 + }, + "x13": "C", + "x14": { + "__type__": "DemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + 2, + 2 + ], + [ + 4, + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "__type__": "DemoD2", + "x1": 1, + "x2": 2 + }, + { + "__type__": "DemoD2", + "x1": 2, + "x2": 3 + } + ] +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/excel_multi_row_jsons/1.json b/luban_examples/DataTables/Datas/test/excel_multi_row_jsons/1.json new file mode 100644 index 00000000..a08d24a2 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/excel_multi_row_jsons/1.json @@ -0,0 +1,33 @@ +{ + "id": 1, + "x": 5, + "items": [ + { + "x": 1, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 100 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 2, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/excel_multi_row_jsons/2.json b/luban_examples/DataTables/Datas/test/excel_multi_row_jsons/2.json new file mode 100644 index 00000000..b07f5cd5 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/excel_multi_row_jsons/2.json @@ -0,0 +1,46 @@ +{ + "id": 2, + "x": 9, + "items": [ + { + "x": 2, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 11 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 4, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + }, + { + "x": 5, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/external_type.xlsx b/luban_examples/DataTables/Datas/test/external_type.xlsx new file mode 100644 index 00000000..073bd7bb Binary files /dev/null and b/luban_examples/DataTables/Datas/test/external_type.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/full_type.xlsx b/luban_examples/DataTables/Datas/test/full_type.xlsx new file mode 100644 index 00000000..e7836f63 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/full_type.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/global.xlsx b/luban_examples/DataTables/Datas/test/global.xlsx new file mode 100644 index 00000000..f3540c32 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/global.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/item.xlsx b/luban_examples/DataTables/Datas/test/item.xlsx new file mode 100644 index 00000000..8e0892a9 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/item.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/list.xlsx b/luban_examples/DataTables/Datas/test/list.xlsx new file mode 100644 index 00000000..bd05a1ff Binary files /dev/null and b/luban_examples/DataTables/Datas/test/list.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/luban_assistant_test_json.xlsx b/luban_examples/DataTables/Datas/test/luban_assistant_test_json.xlsx new file mode 100644 index 00000000..052b911e Binary files /dev/null and b/luban_examples/DataTables/Datas/test/luban_assistant_test_json.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/luban_assistant_test_multi_rows.xlsx b/luban_examples/DataTables/Datas/test/luban_assistant_test_multi_rows.xlsx new file mode 100644 index 00000000..c8f1908c Binary files /dev/null and b/luban_examples/DataTables/Datas/test/luban_assistant_test_multi_rows.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/misc_datas/1.json b/luban_examples/DataTables/Datas/test/misc_datas/1.json new file mode 100644 index 00000000..6776dd78 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/misc_datas/1.json @@ -0,0 +1,31 @@ + { + "x1":true, + "x2":3, + "x3":128, + "x4":1, + "x5":11223344, + "x6":1.2, + "x7":1.23432, + "x8_0":12312, + "x8":112233, + "x9":223344, + "x10":"hq", + "x12": { "x1":10}, + "x13":"B", + "x14":{"$type": "DemoD2", "x1":1, "x2":2}, + "s1": "/def", + "v2":{"x":1, "y":2}, + "v3":{"x":1.1, "y":2.2, "z":3.4}, + "v4":{"x":10.1, "y":11.2, "z":12.3, "w":13.4}, + "t1":"1970-01-01 00:00:00", + "k1":[1,2], + "k2":[2,3], + "k3":[1,3], + "k4":[1,5], + "k5":[1,6], + "k6":[1,7], + "k7":[2,3], + "k8":[[2,2],[4,10]], + "k9":[{"y1":1, "y2":true},{"y1":2, "y2":false}], + "k15":[{"$type": "DemoD2", "x1":1, "x2":2}] + } \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/misc_datas/1.xml b/luban_examples/DataTables/Datas/test/misc_datas/1.xml new file mode 100644 index 00000000..7b6379c5 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/misc_datas/1.xml @@ -0,0 +1,78 @@ + + true + 4 + 128 + 11 + 112233445566 + 1.3 + 1112232.43123 + 112233 + 123 + 112334 + yf + + 1 + + C + + 1 + 2 + + /apple + 1,2 + 1.2,2.3,3.4 + 1.2,2.2,3.2,4.3 + + 1970-01-01 00:00:00 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 3 + + + + 210 + 330 + + + + + 1 + true + + + 2 + false + + + + + 1 + 2 + + + \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/misc_datas/2.json b/luban_examples/DataTables/Datas/test/misc_datas/2.json new file mode 100644 index 00000000..f2f00640 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/misc_datas/2.json @@ -0,0 +1,31 @@ + { + "x1":true, + "x2":3, + "x3":128, + "x4":2, + "x5":11223344, + "x6":1.2, + "x7":1.23432, + "x8_0":12312, + "x8":112233, + "x9":223344, + "x10":"hq", + "x12": { "x1":10}, + "x13":"B", + "x14":{"__type__": "DemoD2", "x1":1, "x2":2}, + "s1": "/apple", + "v2":{"x":1, "y":2}, + "v3":{"x":1.1, "y":2.2, "z":3.4}, + "v4":{"x":10.1, "y":11.2, "z":12.3, "w":13.4}, + "t1":"1970-01-01 00:00:00", + "k1":[1,2], + "k2":[2,3], + "k3":[1,3], + "k4":[1,5], + "k5":[1,6], + "k6":[1,7], + "k7":[2,3], + "k8":[[2,2],[4,10]], + "k9":[{"y1":1, "y2":true},{"y1":2, "y2":false}], + "k15":[{"__type__": "DemoD2", "x1":1, "x2":2}] + } \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/misc_datas/2.xml b/luban_examples/DataTables/Datas/test/misc_datas/2.xml new file mode 100644 index 00000000..9fc9f481 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/misc_datas/2.xml @@ -0,0 +1,78 @@ + + true + 4 + 128 + 12 + 112233445566 + 1.3 + 1112232.43123 + 112233 + 123 + 112334 + yf + + 1 + + C + + 1 + 2 + + /apple + 1,2 + 1.2,2.3,3.4 + 1.2,2.2,3.2,4.3 + + 1970-01-01 00:00:00 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 2 + + + 1 + 3 + + + + 210 + 330 + + + + + 1 + true + + + 2 + false + + + + + 1 + 2 + + + \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/misc_datas/3.yml b/luban_examples/DataTables/Datas/test/misc_datas/3.yml new file mode 100644 index 00000000..487dad91 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/misc_datas/3.yml @@ -0,0 +1,68 @@ +--- +x1: true +x2: 3 +x3: 128 +x4: 40 +x5: 11223344 +x6: 1.2 +x7: 1.23432 +x8_0: 12312 +x8: 112233 +x9: 223344 +x10: hq +x12: + x1: 10 +x13: B +x14: + $type: DemoD2 + x1: 1 + x2: 2 +s1: /apple +v2: + x: 1 + y: 2 +v3: + x: 1.1 + y: 2.2 + z: 3.4 +v4: + x: 10.1 + y: 11.2 + z: 12.3 + w: 13.4 +t1: '1970-01-01 00:00:00' +k1: +- 1 +- 2 +k2: +- 2 +- 3 +k3: +- 1 +- 3 +k4: +- 1 +- 5 +k5: +- 1 +- 6 +k6: +- 1 +- 7 +k7: +- 2 +- 3 +k8: +- - 2 + - 2 +- - 4 + - 10 +k9: +- y1: 1 + y2: true +- y1: 2 + y2: false +k15: +- $type: DemoD2 + x1: 1 + x2: 2 diff --git a/luban_examples/DataTables/Datas/test/misc_datas/demo.lua b/luban_examples/DataTables/Datas/test/misc_datas/demo.lua new file mode 100644 index 00000000..eea261c3 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/misc_datas/demo.lua @@ -0,0 +1,32 @@ +return +{ + x1 = false, + x2 = 2, + x3 = 128, + x4 = 22, + x5 = 112233445566, + x6 = 1.3, + x7 = 1122, + x8 = 12, + x8_0 = 13, + x9 = 123, + x10 = "yf", + x12 = {x1=1}, + x13 = "D", + x14 = { __type__="DemoD2", x1 = 1, x2=3}, + s1 = '/apple', + v2 = {x= 1,y = 2}, + v3 = {x=0.1, y= 0.2,z=0.3}, + v4 = {x=1,y=2,z=3.5,w=4}, + t1 = "1970-01-01 00:00:00", + k1 = {1,2}, + k2 = {2,3}, + k3 = {3,4}, + k4 = {1,2}, + k5 = {1,3}, + k6 = {1,2}, + k7 = {1,8}, + k8 = {[2]=10,[3]=12}, + k9 = {{y1=1,y2=true}, {y1=10,y2=false}}, + k15 = {{ __type__="DemoD2", x1 = 1, x2=3}}, +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/multi_column.xlsx b/luban_examples/DataTables/Datas/test/multi_column.xlsx new file mode 100644 index 00000000..a79ee09c Binary files /dev/null and b/luban_examples/DataTables/Datas/test/multi_column.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/multi_level_title.xlsx b/luban_examples/DataTables/Datas/test/multi_level_title.xlsx new file mode 100644 index 00000000..b634771d Binary files /dev/null and b/luban_examples/DataTables/Datas/test/multi_level_title.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/multi_rows_record.xlsx b/luban_examples/DataTables/Datas/test/multi_rows_record.xlsx new file mode 100644 index 00000000..9ab64500 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/multi_rows_record.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/path.xlsx b/luban_examples/DataTables/Datas/test/path.xlsx new file mode 100644 index 00000000..535b93a4 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/path.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/table_one.xlsx b/luban_examples/DataTables/Datas/test/table_one.xlsx new file mode 100644 index 00000000..d2af6c44 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/table_one.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/tag_switch.xlsx b/luban_examples/DataTables/Datas/test/tag_switch.xlsx new file mode 100644 index 00000000..bb805b25 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/tag_switch.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_desc.xlsx b/luban_examples/DataTables/Datas/test/test_desc.xlsx new file mode 100644 index 00000000..baaaa363 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_desc.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_excel_bean.xlsx b/luban_examples/DataTables/Datas/test/test_excel_bean.xlsx new file mode 100644 index 00000000..773ce9be Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_excel_bean.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_index.xlsx b/luban_examples/DataTables/Datas/test/test_index.xlsx new file mode 100644 index 00000000..526ac15f Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_index.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_json2.xlsx b/luban_examples/DataTables/Datas/test/test_json2.xlsx new file mode 100644 index 00000000..50a9e42d Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_json2.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_map.xlsx b/luban_examples/DataTables/Datas/test/test_map.xlsx new file mode 100644 index 00000000..b91a08fd Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_map.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/10.json b/luban_examples/DataTables/Datas/test/test_null_datas/10.json new file mode 100644 index 00000000..108adb16 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/10.json @@ -0,0 +1,9 @@ +{ + "id":10, + "x1":null, + "x2":null, + "x3":null, + "x4":null, + "s1":null, + "s2":null +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/11.json b/luban_examples/DataTables/Datas/test/test_null_datas/11.json new file mode 100644 index 00000000..f148b8d8 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/11.json @@ -0,0 +1,3 @@ +{ + "id":11 +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/12.json b/luban_examples/DataTables/Datas/test/test_null_datas/12.json new file mode 100644 index 00000000..05c27974 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/12.json @@ -0,0 +1,9 @@ +{ + "id":12, + "x1":1, + "x2":"A", + "x3":{"x1":1}, + "x4":{"__type__":"DemoD2", "x1":2, "x2":3}, + "s1":"asf", + "s2":"/abc" +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/20.lua b/luban_examples/DataTables/Datas/test/test_null_datas/20.lua new file mode 100644 index 00000000..b3f53d8b --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/20.lua @@ -0,0 +1,10 @@ +return +{ + id=20, + x1 = nil, + x2 = nil, + x3 = nil, + x4 = nil, + s1 = nil, + s2 = nil, +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/21.lua b/luban_examples/DataTables/Datas/test/test_null_datas/21.lua new file mode 100644 index 00000000..cdc9d432 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/21.lua @@ -0,0 +1,4 @@ +return +{ + id=21, +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/22.lua b/luban_examples/DataTables/Datas/test/test_null_datas/22.lua new file mode 100644 index 00000000..4541541a --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/22.lua @@ -0,0 +1,10 @@ +return +{ + id=22, + x1 = 1, + x2 = "B", + x3 = {x1=3}, + x4 = {__type__="DemoD2", x1=1, x2=2}, + s1 = "asfs", + s2 = "/abc", +} \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/30.xml b/luban_examples/DataTables/Datas/test/test_null_datas/30.xml new file mode 100644 index 00000000..7e151c5e --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/30.xml @@ -0,0 +1,9 @@ + +30 +1 +A +1 +122 +/apple +/apple + \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/31.xml b/luban_examples/DataTables/Datas/test/test_null_datas/31.xml new file mode 100644 index 00000000..ef14973d --- /dev/null +++ b/luban_examples/DataTables/Datas/test/test_null_datas/31.xml @@ -0,0 +1,3 @@ + +31 + \ No newline at end of file diff --git a/luban_examples/DataTables/Datas/test/test_null_datas/test_null.xlsx b/luban_examples/DataTables/Datas/test/test_null_datas/test_null.xlsx new file mode 100644 index 00000000..974826f8 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_null_datas/test_null.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_ref.xlsx b/luban_examples/DataTables/Datas/test/test_ref.xlsx new file mode 100644 index 00000000..b3abb2d8 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_ref.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_sep.xlsx b/luban_examples/DataTables/Datas/test/test_sep.xlsx new file mode 100644 index 00000000..7d71533f Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_sep.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_set.xlsx b/luban_examples/DataTables/Datas/test/test_set.xlsx new file mode 100644 index 00000000..dcd45376 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_set.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_size.xlsx b/luban_examples/DataTables/Datas/test/test_size.xlsx new file mode 100644 index 00000000..7c49cd89 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_size.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_stream.xlsx b/luban_examples/DataTables/Datas/test/test_stream.xlsx new file mode 100644 index 00000000..cdbc3caa Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_stream.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/test_string.xlsx b/luban_examples/DataTables/Datas/test/test_string.xlsx new file mode 100644 index 00000000..5e119786 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/test_string.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/type_mapper.xlsx b/luban_examples/DataTables/Datas/test/type_mapper.xlsx new file mode 100644 index 00000000..3f0879c7 Binary files /dev/null and b/luban_examples/DataTables/Datas/test/type_mapper.xlsx differ diff --git a/luban_examples/DataTables/Datas/test/unity_scriptable_objects/1.asset b/luban_examples/DataTables/Datas/test/unity_scriptable_objects/1.asset new file mode 100644 index 00000000..be8acdc7 --- /dev/null +++ b/luban_examples/DataTables/Datas/test/unity_scriptable_objects/1.asset @@ -0,0 +1,21 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1cbff1bfa4708914aaa381b1dd914663, type: 3} + m_Name: 1 + m_EditorClassIdentifier: + id: 1 + desc: aaaa + rate: 0.45 + num: 12131 + v2: {x: 1, y: 1} + v3: {x: 2, y: 2, z: 2} + v4: {x: 3, y: 3, z: 4, w: 4} diff --git a/luban_examples/DataTables/Datas/test/unity_scriptable_objects/2.asset b/luban_examples/DataTables/Datas/test/unity_scriptable_objects/2.asset new file mode 100644 index 00000000..3c157a3c --- /dev/null +++ b/luban_examples/DataTables/Datas/test/unity_scriptable_objects/2.asset @@ -0,0 +1,21 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1cbff1bfa4708914aaa381b1dd914663, type: 3} + m_Name: 2 + m_EditorClassIdentifier: + id: 2 + desc: bbbbb + rate: 0.8 + num: 1111 + v2: {x: 1, y: 2} + v3: {x: 1, y: 2, z: 3} + v4: {x: 1, y: 2, z: 3, w: 4} diff --git a/luban_examples/DataTables/Defines/ai.xml b/luban_examples/DataTables/Defines/ai.xml new file mode 100644 index 00000000..0bb23811 --- /dev/null +++ b/luban_examples/DataTables/Defines/ai.xml @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + vector3 + vector3 + + + type name + + + + + + + + + 是否为全局共享字段。 对应 ue 里 InstanceSynced 字段 + + 具体类型名. 只对 ENUM,OBJECT 类型有意义 + + + + + + + + + + + + + + + + + + + + + + + + + + 当值改变时就通知 + 当PerformaConditionCheck计算结果发生变化时通知 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 这两个类型只对 bool,class,enum,name,object,rotator,vector 有效 + + + + + + + +对于与ue4内置节点完全一致的实现,我们都加上Ue前缀。 + + + + + + + + NOT + + + 统计子节点执行时间.执行完毕后打印日志 + + + actor + + + actor + + + player + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NOT + + + + + + + actor 对象1 + actor 对象2 + float 距离 + 是否取反结果 + + + + + + + + + + + + + + + + + + + + + + + + + + + + float + + + actor + float + + + actor + int + + + vector3 + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/luban_examples/DataTables/Defines/builtin.xml b/luban_examples/DataTables/Defines/builtin.xml new file mode 100644 index 00000000..21d41cfc --- /dev/null +++ b/luban_examples/DataTables/Defines/builtin.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/luban_examples/DataTables/Defines/common.xml b/luban_examples/DataTables/Defines/common.xml new file mode 100644 index 00000000..72b2ad41 --- /dev/null +++ b/luban_examples/DataTables/Defines/common.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/luban_examples/DataTables/Defines/item.xml b/luban_examples/DataTables/Defines/item.xml new file mode 100644 index 00000000..adcd096c --- /dev/null +++ b/luban_examples/DataTables/Defines/item.xml @@ -0,0 +1,152 @@ + + + 道具的品质 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 风格标签 + + + + + 使用类型 + + + + + 服装隐藏部位类型 + + + + + + + + + + + 服装属性 + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/luban_examples/DataTables/Defines/l10n.xml b/luban_examples/DataTables/Defines/l10n.xml new file mode 100644 index 00000000..96eb50b3 --- /dev/null +++ b/luban_examples/DataTables/Defines/l10n.xml @@ -0,0 +1,14 @@ + + + + + + +
+ + + + + +
+ \ No newline at end of file diff --git a/luban_examples/DataTables/Defines/tag.xml b/luban_examples/DataTables/Defines/tag.xml new file mode 100644 index 00000000..2469783b --- /dev/null +++ b/luban_examples/DataTables/Defines/tag.xml @@ -0,0 +1,13 @@ + + + + + +
+ + + \ No newline at end of file diff --git a/luban_examples/DataTables/Defines/test.xml b/luban_examples/DataTables/Defines/test.xml new file mode 100644 index 00000000..30778bfd --- /dev/null +++ b/luban_examples/DataTables/Defines/test.xml @@ -0,0 +1,529 @@ + + + + + + + + + + + + + + + + + + + + + + 多态数据结构 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 多态数据结构 + + + + + + + + + + + + + +
最常见的普通 key-value表 + + + + + + + + + + + + +
单例表,只有一个记录 + + + + + +
+ + + + + + + + + +
+ + + + + + + + + +
+ +
普通表,不过数据从misc_datas目录递归读入各种类型的数据源 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
+ + + 默认属于所有分组c,s,e + 属于 c 分组 + 属于s分组 + 属于c,s分组 + + + + + 默认属于所有分组c,s,e + 属于 c 分组 + 属于s分组 + 属于c,s分组 + + +
+ + +
此表只属于c分组 +
此表只属于s分组 +
此表只属于e分组 + + + + + +
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + var中的ref属性纯粹是语法糖,理论上只应该如x2那样定义在type里 + var中的ref属性纯粹是语法糖,理论上只应该如x2那样定义在type里 + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + 多态数据结构 + + + + + + +
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + +
+ + + 支持在一个定义文件中 定义多个模块。 一般来说一个定义文件中一个模块比较好,但有些情况下为了方便可以定义多个。 + + + + + + \ No newline at end of file diff --git a/luban_examples/DataTables/check.bat b/luban_examples/DataTables/check.bat new file mode 100644 index 00000000..65aedea5 --- /dev/null +++ b/luban_examples/DataTables/check.bat @@ -0,0 +1,13 @@ +set WORKSPACE=.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=. + +dotnet %LUBAN_DLL% ^ + -t all ^ + -f ^ + --conf %CONF_ROOT%\luban.conf ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%CONF_ROOT%\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/DataTables/check.sh b/luban_examples/DataTables/check.sh new file mode 100644 index 00000000..52a70be3 --- /dev/null +++ b/luban_examples/DataTables/check.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +WORKSPACE=.. + +LUBAN_DLL=$WORKSPACE/Tools/Luban/Luban.dll +CONF_ROOT=. + +dotnet $LUBAN_DLL \ + -t all \ + -f \ + --conf $CONF_ROOT/luban.conf \ + -x pathValidator.rootDir=$WORKSPACE/Projects/Csharp_Unity_bin \ + -x l10n.textProviderFile=$CONF_ROOT/Datas/l10n/texts.json \ No newline at end of file diff --git a/luban_examples/DataTables/luban.conf b/luban_examples/DataTables/luban.conf new file mode 100644 index 00000000..12fbd3d7 --- /dev/null +++ b/luban_examples/DataTables/luban.conf @@ -0,0 +1,22 @@ +{ + "groups": + [ + {"names":["c"], "default":true}, + {"names":["s"], "default":true}, + {"names":["e"], "default":true} + ], + "schemaFiles": + [ + {"fileName":"Defines", "type":""}, + {"fileName":"Datas/__tables__.xlsx", "type":"table"}, + {"fileName":"Datas/__beans__.xlsx", "type":"bean"}, + {"fileName":"Datas/__enums__.xlsx", "type":"enum"} + ], + "dataDir": "Datas", + "targets": + [ + {"name":"server", "manager":"Tables", "groups":["s"], "topModule":"cfg"}, + {"name":"client", "manager":"Tables", "groups":["c"], "topModule":"cfg"}, + {"name":"all", "manager":"Tables", "groups":["c","s","e"], "topModule":"cfg"} + ] +} \ No newline at end of file diff --git a/luban_examples/LICENSE b/luban_examples/LICENSE new file mode 100644 index 00000000..5b5c3909 --- /dev/null +++ b/luban_examples/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 focus creative games + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/luban_examples/MiniTemplate/Datas/__beans__.xlsx b/luban_examples/MiniTemplate/Datas/__beans__.xlsx new file mode 100644 index 00000000..0af4c6ac Binary files /dev/null and b/luban_examples/MiniTemplate/Datas/__beans__.xlsx differ diff --git a/luban_examples/MiniTemplate/Datas/__enums__.xlsx b/luban_examples/MiniTemplate/Datas/__enums__.xlsx new file mode 100644 index 00000000..ec60d067 Binary files /dev/null and b/luban_examples/MiniTemplate/Datas/__enums__.xlsx differ diff --git a/luban_examples/MiniTemplate/Datas/__tables__.xlsx b/luban_examples/MiniTemplate/Datas/__tables__.xlsx new file mode 100644 index 00000000..11e4ad23 Binary files /dev/null and b/luban_examples/MiniTemplate/Datas/__tables__.xlsx differ diff --git a/luban_examples/MiniTemplate/Datas/item.xlsx b/luban_examples/MiniTemplate/Datas/item.xlsx new file mode 100644 index 00000000..c463653e Binary files /dev/null and b/luban_examples/MiniTemplate/Datas/item.xlsx differ diff --git a/luban_examples/MiniTemplate/Defines/builtin.xml b/luban_examples/MiniTemplate/Defines/builtin.xml new file mode 100644 index 00000000..e535ff48 --- /dev/null +++ b/luban_examples/MiniTemplate/Defines/builtin.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/luban_examples/MiniTemplate/gen.bat b/luban_examples/MiniTemplate/gen.bat new file mode 100644 index 00000000..3eef6241 --- /dev/null +++ b/luban_examples/MiniTemplate/gen.bat @@ -0,0 +1,11 @@ +set WORKSPACE=.. +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=. + +dotnet %LUBAN_DLL% ^ + -t all ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputDataDir=output + +pause \ No newline at end of file diff --git a/luban_examples/MiniTemplate/gen.sh b/luban_examples/MiniTemplate/gen.sh new file mode 100644 index 00000000..5f48c8e8 --- /dev/null +++ b/luban_examples/MiniTemplate/gen.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +WORKSPACE=.. +LUBAN_DLL=$WORKSPACE/Tools/Luban/Luban.dll +CONF_ROOT=. + +dotnet $LUBAN_DLL \ + -t all \ + -d json \ + --conf $CONF_ROOT/luban.conf \ + -x outputDataDir=output \ No newline at end of file diff --git a/luban_examples/MiniTemplate/luban.conf b/luban_examples/MiniTemplate/luban.conf new file mode 100644 index 00000000..9bbac950 --- /dev/null +++ b/luban_examples/MiniTemplate/luban.conf @@ -0,0 +1,22 @@ +{ + "groups": + [ + {"names":["c"], "default":true}, + {"names":["s"], "default":true}, + {"names":["e"], "default":true} + ], + "schemaFiles": + [ + {"fileName":"Defines", "type":""}, + {"fileName":"Datas/__tables__.xlsx", "type":"table"}, + {"fileName":"Datas/__beans__.xlsx", "type":"bean"}, + {"fileName":"Datas/__enums__.xlsx", "type":"enum"} + ], + "dataDir": "Datas", + "targets": + [ + {"name":"server", "manager":"Tables", "groups":["s"], "topModule":"cfg"}, + {"name":"client", "manager":"Tables", "groups":["c"], "topModule":"cfg"}, + {"name":"all", "manager":"Tables", "groups":["c,s,e"], "topModule":"cfg"} + ] +} \ No newline at end of file diff --git a/luban_examples/MiniTemplate/output/item_tbitem.json b/luban_examples/MiniTemplate/output/item_tbitem.json new file mode 100644 index 00000000..d1b27bfc --- /dev/null +++ b/luban_examples/MiniTemplate/output/item_tbitem.json @@ -0,0 +1,104 @@ +[ + { + "id": 10000, + "name": "发型", + "price": 100, + "upgrade_to_item_id": 10001, + "exchange_column": { + "id": 10001, + "num": 2 + } + }, + { + "id": 10001, + "name": "外套", + "price": 100, + "upgrade_to_item_id": 10002, + "exchange_column": { + "id": 10001, + "num": 3 + } + }, + { + "id": 10002, + "name": "上衣", + "price": 100, + "upgrade_to_item_id": 10003, + "exchange_column": { + "id": 10001, + "num": 4 + } + }, + { + "id": 10003, + "name": "裙子", + "price": 100, + "upgrade_to_item_id": 10004, + "exchange_column": { + "id": 10001, + "num": 5 + } + }, + { + "id": 10004, + "name": "袜子", + "price": 100, + "upgrade_to_item_id": 10005, + "exchange_column": { + "id": 10001, + "num": 6 + } + }, + { + "id": 10005, + "name": "鞋子", + "price": 100, + "upgrade_to_item_id": 10006, + "exchange_column": { + "id": 10001, + "num": 7 + } + }, + { + "id": 10006, + "name": "发饰", + "price": 100, + "upgrade_to_item_id": 10007, + "exchange_column": { + "id": 10001, + "num": 8 + } + }, + { + "id": 10007, + "name": "中秋节发饰", + "price": 200, + "upgrade_to_item_id": 10008, + "expire_time": 1633881599, + "exchange_column": { + "id": 10001, + "num": 9 + } + }, + { + "id": 10008, + "name": "中秋节鞋子", + "price": 300, + "upgrade_to_item_id": 10009, + "expire_time": 1633967999, + "exchange_column": { + "id": 10001, + "num": 10 + } + }, + { + "id": 10009, + "name": "礼包", + "price": 100, + "upgrade_to_item_id": 10000, + "exchange_column": { + "id": 10001, + "num": 11 + } + } +] \ No newline at end of file diff --git a/luban_examples/Projects/CfgValidator/AssertExtensions.cs b/luban_examples/Projects/CfgValidator/AssertExtensions.cs new file mode 100644 index 00000000..8c5d4f56 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/AssertExtensions.cs @@ -0,0 +1,11 @@ +using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using CfgCheck; + +namespace CfgCheck +{ + public static class AssertExtensions + { + + } +} diff --git a/luban_examples/Projects/CfgValidator/CfgValidator.csproj b/luban_examples/Projects/CfgValidator/CfgValidator.csproj new file mode 100644 index 00000000..e101b9d4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/CfgValidator.csproj @@ -0,0 +1,39 @@ + + + + net6.0 + + false + + + + 8669 + true + + + + true + + + + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/luban_examples/Projects/CfgValidator/CfgValidator.sln b/luban_examples/Projects/CfgValidator/CfgValidator.sln new file mode 100644 index 00000000..490c4683 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/CfgValidator.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30104.148 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CfgValidator", "CfgValidator.csproj", "{F1B77CC1-CAEF-44A8-9AA2-F3B485BA8201}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F1B77CC1-CAEF-44A8-9AA2-F3B485BA8201}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F1B77CC1-CAEF-44A8-9AA2-F3B485BA8201}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F1B77CC1-CAEF-44A8-9AA2-F3B485BA8201}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F1B77CC1-CAEF-44A8-9AA2-F3B485BA8201}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6E9D8CDD-0F67-4703-89F0-A4E03F4D9FFF} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/CfgValidator/ConfigSetUp.cs b/luban_examples/Projects/CfgValidator/ConfigSetUp.cs new file mode 100644 index 00000000..484dfcda --- /dev/null +++ b/luban_examples/Projects/CfgValidator/ConfigSetUp.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Reflection; +using System.Text; +using Bright.Serialization; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using CfgCheck; +using System.Text.Json; + +namespace CfgCheck +{ + [TestClass] + public class ConfigSetUp + { + public static cfg.Tables Configs { get; set; } + + [AssemblyInitialize] + public static void Initialize(TestContext testContext) + { + LoadConfig(); + } + + public static void LoadConfig() + { + Configs = new cfg.Tables(LoadJson); + } + + private static JsonElement LoadJson(string file) + { + var configDir = "../../../../../Projects/GenerateDatas/json"; + return JsonDocument.Parse(File.ReadAllBytes(Path.Combine(configDir, file + ".json"))).RootElement; + } + + [AssemblyCleanup] + public static void CleanUp() + { + Close(); + } + + public static void Init() + { + + } + + public static void Close() + { + + } + + } +} diff --git a/luban_examples/Projects/CfgValidator/Gen/AudioType.cs b/luban_examples/Projects/CfgValidator/Gen/AudioType.cs new file mode 100644 index 00000000..3ac4c0e7 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/AudioType.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/DefineFromExcel2.cs b/luban_examples/Projects/CfgValidator/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..b70c1d5e --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/DefineFromExcel2.cs @@ -0,0 +1,120 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public sealed partial class DefineFromExcel2 : Luban.BeanBase +{ + public DefineFromExcel2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X8 = _buf.GetProperty("x8").GetInt32(); + X10 = _buf.GetProperty("x10").GetString(); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X132 = (test.DemoFlag)_buf.GetProperty("x13_2").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + X15 = test.Shape.DeserializeShape(_buf.GetProperty("x15")); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + T1 = _buf.GetProperty("t1").GetInt64(); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k2"); int _n0 = __json0.GetArrayLength(); K2 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k10"); K10 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { vec3 __v0; __v0 = vec3.Deserializevec3(__e0); K10.Add(__v0); } } + { var __json0 = _buf.GetProperty("k11"); K11 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { vec4 __v0; __v0 = vec4.Deserializevec4(__e0); K11.Add(__v0); } } + } + + public static DefineFromExcel2 DeserializeDefineFromExcel2(JsonElement _buf) + { + return new DefineFromExcel2(_buf); + } + + /// + /// 这是id + /// + public readonly int Id; + /// + /// 字段x1 + /// + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly int X8; + public readonly string X10; + public readonly test.DemoEnum X13; + public readonly test.DemoFlag X132; + public readonly test.DemoDynamic X14; + public readonly test.Shape X15; + public readonly vec2 V2; + public readonly long T1; + public readonly int[] K1; + public readonly int[] K2; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly System.Collections.Generic.List K10; + public readonly System.Collections.Generic.List K11; + + public const int __ID__ = 482045152; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + X14?.ResolveRef(tables); + X15?.ResolveRef(tables); + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x8:" + X8 + "," + + "x10:" + X10 + "," + + "x13:" + X13 + "," + + "x132:" + X132 + "," + + "x14:" + X14 + "," + + "x15:" + X15 + "," + + "v2:" + V2 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k10:" + Luban.StringUtil.CollectionToString(K10) + "," + + "k11:" + Luban.StringUtil.CollectionToString(K11) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/Tables.cs b/luban_examples/Projects/CfgValidator/Gen/Tables.cs new file mode 100644 index 00000000..596f5cad --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/Tables.cs @@ -0,0 +1,145 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + +namespace cfg +{ +public partial class Tables +{ + public ai.TbBlackboard TbBlackboard {get; } + public ai.TbBehaviorTree TbBehaviorTree {get; } + public common.TbGlobalConfig TbGlobalConfig {get; } + /// + /// 道具表 + /// + public item.TbItem TbItem {get; } + public l10n.TbL10NDemo TbL10NDemo {get; } + public l10n.TbPatchDemo TbPatchDemo {get; } + public tag.TbTestTag TbTestTag {get; } + public test.TbFullTypes TbFullTypes {get; } + public test.TbSingleton TbSingleton {get; } + public test.TbNotIndexList TbNotIndexList {get; } + public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; } + public test.TbMultiIndexList TbMultiIndexList {get; } + public test.TbDataFromMisc TbDataFromMisc {get; } + public test.TbMultiRowRecord TbMultiRowRecord {get; } + public test.TbTestMultiColumn TbTestMultiColumn {get; } + public test.TbMultiRowTitle TbMultiRowTitle {get; } + public test.TbTestNull TbTestNull {get; } + public test.TbDemoPrimitive TbDemoPrimitive {get; } + public test.TbTestString TbTestString {get; } + public test.TbDemoGroup TbDemoGroup {get; } + public test.TbTestGlobal TbTestGlobal {get; } + public test.TbTestBeRef TbTestBeRef {get; } + public test.TbTestBeRef2 TbTestBeRef2 {get; } + public test.TbTestRef TbTestRef {get; } + public test.TbTestSize TbTestSize {get; } + public test.TbTestSet TbTestSet {get; } + public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; } + public test.TbItem2 TbItem2 {get; } + public test.TbTestIndex TbTestIndex {get; } + public test.TbTestMap TbTestMap {get; } + public test.TbExcelFromJson TbExcelFromJson {get; } + public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; } + public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; } + public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; } + public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; } + public test.TbTestScriptableObject TbTestScriptableObject {get; } + public test.TbTestMapper TbTestMapper {get; } + public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; } + + public Tables(System.Func loader) + { + TbBlackboard = new ai.TbBlackboard(loader("ai_tbblackboard")); + TbBehaviorTree = new ai.TbBehaviorTree(loader("ai_tbbehaviortree")); + TbGlobalConfig = new common.TbGlobalConfig(loader("common_tbglobalconfig")); + TbItem = new item.TbItem(loader("item_tbitem")); + TbL10NDemo = new l10n.TbL10NDemo(loader("l10n_tbl10ndemo")); + TbPatchDemo = new l10n.TbPatchDemo(loader("l10n_tbpatchdemo")); + TbTestTag = new tag.TbTestTag(loader("tag_tbtesttag")); + TbFullTypes = new test.TbFullTypes(loader("test_tbfulltypes")); + TbSingleton = new test.TbSingleton(loader("test_tbsingleton")); + TbNotIndexList = new test.TbNotIndexList(loader("test_tbnotindexlist")); + TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader("test_tbmultiunionindexlist")); + TbMultiIndexList = new test.TbMultiIndexList(loader("test_tbmultiindexlist")); + TbDataFromMisc = new test.TbDataFromMisc(loader("test_tbdatafrommisc")); + TbMultiRowRecord = new test.TbMultiRowRecord(loader("test_tbmultirowrecord")); + TbTestMultiColumn = new test.TbTestMultiColumn(loader("test_tbtestmulticolumn")); + TbMultiRowTitle = new test.TbMultiRowTitle(loader("test_tbmultirowtitle")); + TbTestNull = new test.TbTestNull(loader("test_tbtestnull")); + TbDemoPrimitive = new test.TbDemoPrimitive(loader("test_tbdemoprimitive")); + TbTestString = new test.TbTestString(loader("test_tbteststring")); + TbDemoGroup = new test.TbDemoGroup(loader("test_tbdemogroup")); + TbTestGlobal = new test.TbTestGlobal(loader("test_tbtestglobal")); + TbTestBeRef = new test.TbTestBeRef(loader("test_tbtestberef")); + TbTestBeRef2 = new test.TbTestBeRef2(loader("test_tbtestberef2")); + TbTestRef = new test.TbTestRef(loader("test_tbtestref")); + TbTestSize = new test.TbTestSize(loader("test_tbtestsize")); + TbTestSet = new test.TbTestSet(loader("test_tbtestset")); + TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader("test_tbdetectcsvencoding")); + TbItem2 = new test.TbItem2(loader("test_tbitem2")); + TbTestIndex = new test.TbTestIndex(loader("test_tbtestindex")); + TbTestMap = new test.TbTestMap(loader("test_tbtestmap")); + TbExcelFromJson = new test.TbExcelFromJson(loader("test_tbexcelfromjson")); + TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader("test_tbcompositejsontable1")); + TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader("test_tbcompositejsontable2")); + TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader("test_tbcompositejsontable3")); + TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader("test_tbexcelfromjsonmultirow")); + TbTestScriptableObject = new test.TbTestScriptableObject(loader("test_tbtestscriptableobject")); + TbTestMapper = new test.TbTestMapper(loader("test_tbtestmapper")); + TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader("test_tbdefinefromexcel2")); + ResolveRef(); + } + + private void ResolveRef() + { + TbBlackboard.ResolveRef(this); + TbBehaviorTree.ResolveRef(this); + TbGlobalConfig.ResolveRef(this); + TbItem.ResolveRef(this); + TbL10NDemo.ResolveRef(this); + TbPatchDemo.ResolveRef(this); + TbTestTag.ResolveRef(this); + TbFullTypes.ResolveRef(this); + TbSingleton.ResolveRef(this); + TbNotIndexList.ResolveRef(this); + TbMultiUnionIndexList.ResolveRef(this); + TbMultiIndexList.ResolveRef(this); + TbDataFromMisc.ResolveRef(this); + TbMultiRowRecord.ResolveRef(this); + TbTestMultiColumn.ResolveRef(this); + TbMultiRowTitle.ResolveRef(this); + TbTestNull.ResolveRef(this); + TbDemoPrimitive.ResolveRef(this); + TbTestString.ResolveRef(this); + TbDemoGroup.ResolveRef(this); + TbTestGlobal.ResolveRef(this); + TbTestBeRef.ResolveRef(this); + TbTestBeRef2.ResolveRef(this); + TbTestRef.ResolveRef(this); + TbTestSize.ResolveRef(this); + TbTestSet.ResolveRef(this); + TbDetectCsvEncoding.ResolveRef(this); + TbItem2.ResolveRef(this); + TbTestIndex.ResolveRef(this); + TbTestMap.ResolveRef(this); + TbExcelFromJson.ResolveRef(this); + TbCompositeJsonTable1.ResolveRef(this); + TbCompositeJsonTable2.ResolveRef(this); + TbCompositeJsonTable3.ResolveRef(this); + TbExcelFromJsonMultiRow.ResolveRef(this); + TbTestScriptableObject.ResolveRef(this); + TbTestMapper.ResolveRef(this); + TbDefineFromExcel2.ResolveRef(this); + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/CfgValidator/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..a60c74bb --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.BehaviorTree.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BehaviorTree : Luban.BeanBase +{ + public BehaviorTree(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + BlackboardId = _buf.GetProperty("blackboard_id").GetString(); + BlackboardId_Ref = null; + Root = ai.ComposeNode.DeserializeComposeNode(_buf.GetProperty("root")); + } + + public static BehaviorTree DeserializeBehaviorTree(JsonElement _buf) + { + return new ai.BehaviorTree(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + public readonly string BlackboardId; + public ai.Blackboard BlackboardId_Ref; + public readonly ai.ComposeNode Root; + + public const int __ID__ = 159552822; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId); + Root?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "blackboardId:" + BlackboardId + "," + + "root:" + Root + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/CfgValidator/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..50ee6430 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.BinaryOperator.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BinaryOperator : ai.KeyQueryOperator +{ + public BinaryOperator(JsonElement _buf) : base(_buf) + { + Oper = (ai.EOperator)_buf.GetProperty("oper").GetInt32(); + Data = ai.KeyData.DeserializeKeyData(_buf.GetProperty("data")); + } + + public static BinaryOperator DeserializeBinaryOperator(JsonElement _buf) + { + return new ai.BinaryOperator(_buf); + } + + public readonly ai.EOperator Oper; + public readonly ai.KeyData Data; + + public const int __ID__ = -979891605; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + Data?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "oper:" + Oper + "," + + "data:" + Data + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.Blackboard.cs b/luban_examples/Projects/CfgValidator/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..1d21ad4a --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.Blackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Blackboard : Luban.BeanBase +{ + public Blackboard(JsonElement _buf) + { + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + ParentName = _buf.GetProperty("parent_name").GetString(); + { var __json0 = _buf.GetProperty("keys"); Keys = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.BlackboardKey __v0; __v0 = ai.BlackboardKey.DeserializeBlackboardKey(__e0); Keys.Add(__v0); } } + } + + public static Blackboard DeserializeBlackboard(JsonElement _buf) + { + return new ai.Blackboard(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly string ParentName; + public readonly System.Collections.Generic.List Keys; + + public const int __ID__ = 1576193005; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + foreach (var _e in Keys) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "parentName:" + ParentName + "," + + "keys:" + Luban.StringUtil.CollectionToString(Keys) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/CfgValidator/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..31288819 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.BlackboardKey.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKey : Luban.BeanBase +{ + public BlackboardKey(JsonElement _buf) + { + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + IsStatic = _buf.GetProperty("is_static").GetBoolean(); + Type = (ai.EKeyType)_buf.GetProperty("type").GetInt32(); + TypeClassName = _buf.GetProperty("type_class_name").GetString(); + } + + public static BlackboardKey DeserializeBlackboardKey(JsonElement _buf) + { + return new ai.BlackboardKey(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly bool IsStatic; + public readonly ai.EKeyType Type; + public readonly string TypeClassName; + + public const int __ID__ = -511559886; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "isStatic:" + IsStatic + "," + + "type:" + Type + "," + + "typeClassName:" + TypeClassName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/CfgValidator/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..3aa1f756 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.BlackboardKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKeyData : ai.KeyData +{ + public BlackboardKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetString(); + } + + public static BlackboardKeyData DeserializeBlackboardKeyData(JsonElement _buf) + { + return new ai.BlackboardKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = 1517269500; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/CfgValidator/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..729eacde --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.ChooseSkill.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ChooseSkill : ai.Task +{ + public ChooseSkill(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + ResultSkillIdKey = _buf.GetProperty("result_skill_id_key").GetString(); + } + + public static ChooseSkill DeserializeChooseSkill(JsonElement _buf) + { + return new ai.ChooseSkill(_buf); + } + + public readonly string TargetActorKey; + public readonly string ResultSkillIdKey; + + public const int __ID__ = -918812268; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "resultSkillIdKey:" + ResultSkillIdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/CfgValidator/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..a1cfa676 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.ChooseTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ChooseTarget : ai.Service +{ + public ChooseTarget(JsonElement _buf) : base(_buf) + { + ResultTargetKey = _buf.GetProperty("result_target_key").GetString(); + } + + public static ChooseTarget DeserializeChooseTarget(JsonElement _buf) + { + return new ai.ChooseTarget(_buf); + } + + public readonly string ResultTargetKey; + + public const int __ID__ = 1601247918; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "resultTargetKey:" + ResultTargetKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.ComposeNode.cs b/luban_examples/Projects/CfgValidator/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..2cad7957 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.ComposeNode.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class ComposeNode : ai.FlowNode +{ + public ComposeNode(JsonElement _buf) : base(_buf) + { + } + + public static ComposeNode DeserializeComposeNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.DebugPrint.cs b/luban_examples/Projects/CfgValidator/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..cf9eca40 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.DebugPrint.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class DebugPrint : ai.Task +{ + public DebugPrint(JsonElement _buf) : base(_buf) + { + Text = _buf.GetProperty("text").GetString(); + } + + public static DebugPrint DeserializeDebugPrint(JsonElement _buf) + { + return new ai.DebugPrint(_buf); + } + + public readonly string Text; + + public const int __ID__ = 1357409728; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.Decorator.cs b/luban_examples/Projects/CfgValidator/Gen/ai.Decorator.cs new file mode 100644 index 00000000..12295127 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.Decorator.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Decorator : ai.Node +{ + public Decorator(JsonElement _buf) : base(_buf) + { + FlowAbortMode = (ai.EFlowAbortMode)_buf.GetProperty("flow_abort_mode").GetInt32(); + } + + public static Decorator DeserializeDecorator(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public readonly ai.EFlowAbortMode FlowAbortMode; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/CfgValidator/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..72e749ae --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class DistanceLessThan : ai.Decorator +{ + public DistanceLessThan(JsonElement _buf) : base(_buf) + { + Actor1Key = _buf.GetProperty("actor1_key").GetString(); + Actor2Key = _buf.GetProperty("actor2_key").GetString(); + Distance = _buf.GetProperty("distance").GetSingle(); + ReverseResult = _buf.GetProperty("reverse_result").GetBoolean(); + } + + public static DistanceLessThan DeserializeDistanceLessThan(JsonElement _buf) + { + return new ai.DistanceLessThan(_buf); + } + + public readonly string Actor1Key; + public readonly string Actor2Key; + public readonly float Distance; + public readonly bool ReverseResult; + + public const int __ID__ = -1207170283; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "actor1Key:" + Actor1Key + "," + + "actor2Key:" + Actor2Key + "," + + "distance:" + Distance + "," + + "reverseResult:" + ReverseResult + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.EExecutor.cs b/luban_examples/Projects/CfgValidator/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..27ea93ba --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.EExecutor.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.EFinishMode.cs b/luban_examples/Projects/CfgValidator/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..94a7b4c8 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.EFinishMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/CfgValidator/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..6c97a981 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.EFlowAbortMode.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.EKeyType.cs b/luban_examples/Projects/CfgValidator/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..97110a59 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.EKeyType.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/CfgValidator/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..61d634f7 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.EOperator.cs b/luban_examples/Projects/CfgValidator/Gen/ai.EOperator.cs new file mode 100644 index 00000000..25aac54d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.EOperator.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/CfgValidator/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..2c0c7895 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ExecuteTimeStatistic : ai.Service +{ + public ExecuteTimeStatistic(JsonElement _buf) : base(_buf) + { + } + + public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(JsonElement _buf) + { + return new ai.ExecuteTimeStatistic(_buf); + } + + + public const int __ID__ = 990693812; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/CfgValidator/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..8a508474 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.FloatKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class FloatKeyData : ai.KeyData +{ + public FloatKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetSingle(); + } + + public static FloatKeyData DeserializeFloatKeyData(JsonElement _buf) + { + return new ai.FloatKeyData(_buf); + } + + public readonly float Value; + + public const int __ID__ = -719747885; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.FlowNode.cs b/luban_examples/Projects/CfgValidator/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..cfc9001d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.FlowNode.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class FlowNode : ai.Node +{ + public FlowNode(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("decorators"); Decorators = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.Decorator __v0; __v0 = ai.Decorator.DeserializeDecorator(__e0); Decorators.Add(__v0); } } + { var __json0 = _buf.GetProperty("services"); Services = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.Service __v0; __v0 = ai.Service.DeserializeService(__e0); Services.Add(__v0); } } + } + + public static FlowNode DeserializeFlowNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly System.Collections.Generic.List Decorators; + public readonly System.Collections.Generic.List Services; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Decorators) { _e?.ResolveRef(tables); } + foreach (var _e in Services) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/CfgValidator/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..070ad41f --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class GetOwnerPlayer : ai.Service +{ + public GetOwnerPlayer(JsonElement _buf) : base(_buf) + { + PlayerActorKey = _buf.GetProperty("player_actor_key").GetString(); + } + + public static GetOwnerPlayer DeserializeGetOwnerPlayer(JsonElement _buf) + { + return new ai.GetOwnerPlayer(_buf); + } + + public readonly string PlayerActorKey; + + public const int __ID__ = -999247644; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "playerActorKey:" + PlayerActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.IntKeyData.cs b/luban_examples/Projects/CfgValidator/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..16b52da7 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.IntKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IntKeyData : ai.KeyData +{ + public IntKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetInt32(); + } + + public static IntKeyData DeserializeIntKeyData(JsonElement _buf) + { + return new ai.IntKeyData(_buf); + } + + public readonly int Value; + + public const int __ID__ = -342751904; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/CfgValidator/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..05c723f4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.IsAtLocation.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsAtLocation : ai.Decorator +{ + public IsAtLocation(JsonElement _buf) : base(_buf) + { + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + KeyboardKey = _buf.GetProperty("keyboard_key").GetString(); + InverseCondition = _buf.GetProperty("inverse_condition").GetBoolean(); + } + + public static IsAtLocation DeserializeIsAtLocation(JsonElement _buf) + { + return new ai.IsAtLocation(_buf); + } + + public readonly float AcceptableRadius; + public readonly string KeyboardKey; + public readonly bool InverseCondition; + + public const int __ID__ = 1255972344; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "keyboardKey:" + KeyboardKey + "," + + "inverseCondition:" + InverseCondition + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.IsNotSet.cs b/luban_examples/Projects/CfgValidator/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..956d7d27 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.IsNotSet.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsNotSet : ai.KeyQueryOperator +{ + public IsNotSet(JsonElement _buf) : base(_buf) + { + } + + public static IsNotSet DeserializeIsNotSet(JsonElement _buf) + { + return new ai.IsNotSet(_buf); + } + + + public const int __ID__ = 790736255; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.IsSet.cs b/luban_examples/Projects/CfgValidator/Gen/ai.IsSet.cs new file mode 100644 index 00000000..dfe332b4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.IsSet.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsSet : ai.KeyQueryOperator +{ + public IsSet(JsonElement _buf) : base(_buf) + { + } + + public static IsSet DeserializeIsSet(JsonElement _buf) + { + return new ai.IsSet(_buf); + } + + + public const int __ID__ = 1635350898; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/CfgValidator/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..9fae6045 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class KeepFaceTarget : ai.Service +{ + public KeepFaceTarget(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + } + + public static KeepFaceTarget DeserializeKeepFaceTarget(JsonElement _buf) + { + return new ai.KeepFaceTarget(_buf); + } + + public readonly string TargetActorKey; + + public const int __ID__ = 1195270745; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "targetActorKey:" + TargetActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.KeyData.cs b/luban_examples/Projects/CfgValidator/Gen/ai.KeyData.cs new file mode 100644 index 00000000..2f62ce66 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.KeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class KeyData : Luban.BeanBase +{ + public KeyData(JsonElement _buf) + { + } + + public static KeyData DeserializeKeyData(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "FloatKeyData": return new ai.FloatKeyData(_buf); + case "IntKeyData": return new ai.IntKeyData(_buf); + case "StringKeyData": return new ai.StringKeyData(_buf); + case "BlackboardKeyData": return new ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/CfgValidator/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..22a682d8 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.KeyQueryOperator.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class KeyQueryOperator : Luban.BeanBase +{ + public KeyQueryOperator(JsonElement _buf) + { + } + + public static KeyQueryOperator DeserializeKeyQueryOperator(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "IsSet": return new ai.IsSet(_buf); + case "IsNotSet": return new ai.IsNotSet(_buf); + case "BinaryOperator": return new ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/CfgValidator/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..3040c8cc --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.MoveToLocation.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToLocation : ai.Task +{ + public MoveToLocation(JsonElement _buf) : base(_buf) + { + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + } + + public static MoveToLocation DeserializeMoveToLocation(JsonElement _buf) + { + return new ai.MoveToLocation(_buf); + } + + public readonly float AcceptableRadius; + + public const int __ID__ = -969953113; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/CfgValidator/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..94ae32d2 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.MoveToRandomLocation.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToRandomLocation : ai.Task +{ + public MoveToRandomLocation(JsonElement _buf) : base(_buf) + { + OriginPositionKey = _buf.GetProperty("origin_position_key").GetString(); + Radius = _buf.GetProperty("radius").GetSingle(); + } + + public static MoveToRandomLocation DeserializeMoveToRandomLocation(JsonElement _buf) + { + return new ai.MoveToRandomLocation(_buf); + } + + public readonly string OriginPositionKey; + public readonly float Radius; + + public const int __ID__ = -2140042998; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "originPositionKey:" + OriginPositionKey + "," + + "radius:" + Radius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/CfgValidator/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..c98719dd --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.MoveToTarget.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToTarget : ai.Task +{ + public MoveToTarget(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + } + + public static MoveToTarget DeserializeMoveToTarget(JsonElement _buf) + { + return new ai.MoveToTarget(_buf); + } + + public readonly string TargetActorKey; + public readonly float AcceptableRadius; + + public const int __ID__ = 514987779; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.Node.cs b/luban_examples/Projects/CfgValidator/Gen/ai.Node.cs new file mode 100644 index 00000000..f10fea6b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.Node.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Node : Luban.BeanBase +{ + public Node(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + NodeName = _buf.GetProperty("node_name").GetString(); + } + + public static Node DeserializeNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string NodeName; + + + public virtual void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.Selector.cs b/luban_examples/Projects/CfgValidator/Gen/ai.Selector.cs new file mode 100644 index 00000000..8ecd85d3 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.Selector.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Selector : ai.ComposeNode +{ + public Selector(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("children"); Children = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.FlowNode __v0; __v0 = ai.FlowNode.DeserializeFlowNode(__e0); Children.Add(__v0); } } + } + + public static Selector DeserializeSelector(JsonElement _buf) + { + return new ai.Selector(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1946981627; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.Sequence.cs b/luban_examples/Projects/CfgValidator/Gen/ai.Sequence.cs new file mode 100644 index 00000000..37ade687 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.Sequence.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Sequence : ai.ComposeNode +{ + public Sequence(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("children"); Children = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.FlowNode __v0; __v0 = ai.FlowNode.DeserializeFlowNode(__e0); Children.Add(__v0); } } + } + + public static Sequence DeserializeSequence(JsonElement _buf) + { + return new ai.Sequence(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1789006105; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.Service.cs b/luban_examples/Projects/CfgValidator/Gen/ai.Service.cs new file mode 100644 index 00000000..6a70e8bc --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.Service.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Service : ai.Node +{ + public Service(JsonElement _buf) : base(_buf) + { + } + + public static Service DeserializeService(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/CfgValidator/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..5678713b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.SimpleParallel.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class SimpleParallel : ai.ComposeNode +{ + public SimpleParallel(JsonElement _buf) : base(_buf) + { + FinishMode = (ai.EFinishMode)_buf.GetProperty("finish_mode").GetInt32(); + MainTask = ai.Task.DeserializeTask(_buf.GetProperty("main_task")); + BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf.GetProperty("background_node")); + } + + public static SimpleParallel DeserializeSimpleParallel(JsonElement _buf) + { + return new ai.SimpleParallel(_buf); + } + + public readonly ai.EFinishMode FinishMode; + public readonly ai.Task MainTask; + public readonly ai.FlowNode BackgroundNode; + + public const int __ID__ = -1952582529; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + MainTask?.ResolveRef(tables); + BackgroundNode?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "finishMode:" + FinishMode + "," + + "mainTask:" + MainTask + "," + + "backgroundNode:" + BackgroundNode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.StringKeyData.cs b/luban_examples/Projects/CfgValidator/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..2d784877 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.StringKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class StringKeyData : ai.KeyData +{ + public StringKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetString(); + } + + public static StringKeyData DeserializeStringKeyData(JsonElement _buf) + { + return new ai.StringKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = -307888654; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.Task.cs b/luban_examples/Projects/CfgValidator/Gen/ai.Task.cs new file mode 100644 index 00000000..381878b2 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.Task.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Task : ai.FlowNode +{ + public Task(JsonElement _buf) : base(_buf) + { + IgnoreRestartSelf = _buf.GetProperty("ignore_restart_self").GetBoolean(); + } + + public static Task DeserializeTask(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly bool IgnoreRestartSelf; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.TbBehaviorTree.cs b/luban_examples/Projects/CfgValidator/Gen/ai.TbBehaviorTree.cs new file mode 100644 index 00000000..5c060d88 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.TbBehaviorTree.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public partial class TbBehaviorTree +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBehaviorTree(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + ai.BehaviorTree _v; + _v = ai.BehaviorTree.DeserializeBehaviorTree(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.BehaviorTree GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.BehaviorTree Get(int key) => _dataMap[key]; + public ai.BehaviorTree this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.TbBlackboard.cs b/luban_examples/Projects/CfgValidator/Gen/ai.TbBlackboard.cs new file mode 100644 index 00000000..c654bd87 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.TbBlackboard.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public partial class TbBlackboard +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBlackboard(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + ai.Blackboard _v; + _v = ai.Blackboard.DeserializeBlackboard(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Name, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.Blackboard GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.Blackboard Get(string key) => _dataMap[key]; + public ai.Blackboard this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..8945bd7c --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeBlackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeBlackboard : ai.Decorator +{ + public UeBlackboard(JsonElement _buf) : base(_buf) + { + NotifyObserver = (ai.ENotifyObserverMode)_buf.GetProperty("notify_observer").GetInt32(); + BlackboardKey = _buf.GetProperty("blackboard_key").GetString(); + KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf.GetProperty("key_query")); + } + + public static UeBlackboard DeserializeUeBlackboard(JsonElement _buf) + { + return new ai.UeBlackboard(_buf); + } + + public readonly ai.ENotifyObserverMode NotifyObserver; + public readonly string BlackboardKey; + public readonly ai.KeyQueryOperator KeyQuery; + + public const int __ID__ = -315297507; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + KeyQuery?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "notifyObserver:" + NotifyObserver + "," + + "blackboardKey:" + BlackboardKey + "," + + "keyQuery:" + KeyQuery + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeCooldown.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..9f61d7f7 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeCooldown.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeCooldown : ai.Decorator +{ + public UeCooldown(JsonElement _buf) : base(_buf) + { + CooldownTime = _buf.GetProperty("cooldown_time").GetSingle(); + } + + public static UeCooldown DeserializeUeCooldown(JsonElement _buf) + { + return new ai.UeCooldown(_buf); + } + + public readonly float CooldownTime; + + public const int __ID__ = -951439423; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "cooldownTime:" + CooldownTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..4299e556 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeForceSuccess.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeForceSuccess : ai.Decorator +{ + public UeForceSuccess(JsonElement _buf) : base(_buf) + { + } + + public static UeForceSuccess DeserializeUeForceSuccess(JsonElement _buf) + { + return new ai.UeForceSuccess(_buf); + } + + + public const int __ID__ = 195054574; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeLoop.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..c939e806 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeLoop.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeLoop : ai.Decorator +{ + public UeLoop(JsonElement _buf) : base(_buf) + { + NumLoops = _buf.GetProperty("num_loops").GetInt32(); + InfiniteLoop = _buf.GetProperty("infinite_loop").GetBoolean(); + InfiniteLoopTimeoutTime = _buf.GetProperty("infinite_loop_timeout_time").GetSingle(); + } + + public static UeLoop DeserializeUeLoop(JsonElement _buf) + { + return new ai.UeLoop(_buf); + } + + public readonly int NumLoops; + public readonly bool InfiniteLoop; + public readonly float InfiniteLoopTimeoutTime; + + public const int __ID__ = -513308166; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "numLoops:" + NumLoops + "," + + "infiniteLoop:" + InfiniteLoop + "," + + "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..6cbe6388 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeSetDefaultFocus : ai.Service +{ + public UeSetDefaultFocus(JsonElement _buf) : base(_buf) + { + KeyboardKey = _buf.GetProperty("keyboard_key").GetString(); + } + + public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(JsonElement _buf) + { + return new ai.UeSetDefaultFocus(_buf); + } + + public readonly string KeyboardKey; + + public const int __ID__ = 1812449155; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "keyboardKey:" + KeyboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..a7c54f07 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeTimeLimit.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeTimeLimit : ai.Decorator +{ + public UeTimeLimit(JsonElement _buf) : base(_buf) + { + LimitTime = _buf.GetProperty("limit_time").GetSingle(); + } + + public static UeTimeLimit DeserializeUeTimeLimit(JsonElement _buf) + { + return new ai.UeTimeLimit(_buf); + } + + public readonly float LimitTime; + + public const int __ID__ = 338469720; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "limitTime:" + LimitTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeWait.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeWait.cs new file mode 100644 index 00000000..02e5e4b7 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeWait.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeWait : ai.Task +{ + public UeWait(JsonElement _buf) : base(_buf) + { + WaitTime = _buf.GetProperty("wait_time").GetSingle(); + RandomDeviation = _buf.GetProperty("random_deviation").GetSingle(); + } + + public static UeWait DeserializeUeWait(JsonElement _buf) + { + return new ai.UeWait(_buf); + } + + public readonly float WaitTime; + public readonly float RandomDeviation; + + public const int __ID__ = -512994101; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "waitTime:" + WaitTime + "," + + "randomDeviation:" + RandomDeviation + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..6a6e9b24 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeWaitBlackboardTime : ai.Task +{ + public UeWaitBlackboardTime(JsonElement _buf) : base(_buf) + { + BlackboardKey = _buf.GetProperty("blackboard_key").GetString(); + } + + public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(JsonElement _buf) + { + return new ai.UeWaitBlackboardTime(_buf); + } + + public readonly string BlackboardKey; + + public const int __ID__ = 1215378271; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "blackboardKey:" + BlackboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/CfgValidator/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..cc528f4b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UpdateDailyBehaviorProps : ai.Service +{ + public UpdateDailyBehaviorProps(JsonElement _buf) : base(_buf) + { + SatietyKey = _buf.GetProperty("satiety_key").GetString(); + EnergyKey = _buf.GetProperty("energy_key").GetString(); + MoodKey = _buf.GetProperty("mood_key").GetString(); + SatietyLowerThresholdKey = _buf.GetProperty("satiety_lower_threshold_key").GetString(); + SatietyUpperThresholdKey = _buf.GetProperty("satiety_upper_threshold_key").GetString(); + EnergyLowerThresholdKey = _buf.GetProperty("energy_lower_threshold_key").GetString(); + EnergyUpperThresholdKey = _buf.GetProperty("energy_upper_threshold_key").GetString(); + MoodLowerThresholdKey = _buf.GetProperty("mood_lower_threshold_key").GetString(); + MoodUpperThresholdKey = _buf.GetProperty("mood_upper_threshold_key").GetString(); + } + + public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(JsonElement _buf) + { + return new ai.UpdateDailyBehaviorProps(_buf); + } + + public readonly string SatietyKey; + public readonly string EnergyKey; + public readonly string MoodKey; + public readonly string SatietyLowerThresholdKey; + public readonly string SatietyUpperThresholdKey; + public readonly string EnergyLowerThresholdKey; + public readonly string EnergyUpperThresholdKey; + public readonly string MoodLowerThresholdKey; + public readonly string MoodUpperThresholdKey; + + public const int __ID__ = -61887372; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "satietyKey:" + SatietyKey + "," + + "energyKey:" + EnergyKey + "," + + "moodKey:" + MoodKey + "," + + "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + "," + + "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + "," + + "energyLowerThresholdKey:" + EnergyLowerThresholdKey + "," + + "energyUpperThresholdKey:" + EnergyUpperThresholdKey + "," + + "moodLowerThresholdKey:" + MoodLowerThresholdKey + "," + + "moodUpperThresholdKey:" + MoodUpperThresholdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/common.EBoolOperator.cs b/luban_examples/Projects/CfgValidator/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..4e7f1379 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/common.EBoolOperator.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/common.GlobalConfig.cs b/luban_examples/Projects/CfgValidator/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..9d205db4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/common.GlobalConfig.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 System.Text.Json; + + +namespace cfg.common +{ +public sealed partial class GlobalConfig : Luban.BeanBase +{ + public GlobalConfig(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + X2 = _buf.GetProperty("x2").GetInt32(); + X3 = _buf.GetProperty("x3").GetInt32(); + X4 = _buf.GetProperty("x4").GetInt32(); + X5 = _buf.GetProperty("x5").GetInt32(); + X6 = _buf.GetProperty("x6").GetInt32(); + { var __json0 = _buf.GetProperty("x7"); X7 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X7.Add(__v0); } } + } + + public static GlobalConfig DeserializeGlobalConfig(JsonElement _buf) + { + return new common.GlobalConfig(_buf); + } + + /// + /// 背包容量 + /// + public readonly int X1; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public readonly int X5; + public readonly int X6; + public readonly System.Collections.Generic.List X7; + + public const int __ID__ = -848234488; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/common.TbGlobalConfig.cs b/luban_examples/Projects/CfgValidator/Gen/common.TbGlobalConfig.cs new file mode 100644 index 00000000..ade36cf7 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/common.TbGlobalConfig.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 System.Text.Json; + + +namespace cfg.common +{ +public partial class TbGlobalConfig +{ + + private readonly common.GlobalConfig _data; + + public TbGlobalConfig(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = common.GlobalConfig.DeserializeGlobalConfig(_buf[0]); + } + + + /// + /// 背包容量 + /// + public int X1 => _data.X1; + public int X2 => _data.X2; + public int X3 => _data.X3; + public int X4 => _data.X4; + public int X5 => _data.X5; + public int X6 => _data.X6; + public System.Collections.Generic.List X7 => _data.X7; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/CfgValidator/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..f148097b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EClothersStarQualityType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EClothersTag.cs b/luban_examples/Projects/CfgValidator/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..c7bfd3cb --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EClothersTag.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/CfgValidator/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..401492ae --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EClothesHidePartType.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/CfgValidator/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..b0b224b8 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EClothesPropertyType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.ECurrencyType.cs b/luban_examples/Projects/CfgValidator/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..7dfcba3c --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.ECurrencyType.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EItemQuality.cs b/luban_examples/Projects/CfgValidator/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..74fcfbf2 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EItemQuality.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// 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 EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EMajorType.cs b/luban_examples/Projects/CfgValidator/Gen/item.EMajorType.cs new file mode 100644 index 00000000..c19157ce --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EMajorType.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EMinorType.cs b/luban_examples/Projects/CfgValidator/Gen/item.EMinorType.cs new file mode 100644 index 00000000..936a15ab --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EMinorType.cs @@ -0,0 +1,215 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.EUseType.cs b/luban_examples/Projects/CfgValidator/Gen/item.EUseType.cs new file mode 100644 index 00000000..20f635dd --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.EUseType.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/item.Item.cs b/luban_examples/Projects/CfgValidator/Gen/item.Item.cs new file mode 100644 index 00000000..d69ea021 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.Item.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.item +{ +/// +/// 道具 +/// +public sealed partial class Item : Luban.BeanBase +{ + public Item(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + MinorType = (item.EMinorType)_buf.GetProperty("minor_type").GetInt32(); + Quality = (item.EItemQuality)_buf.GetProperty("quality").GetInt32(); + IconBackgroud = _buf.GetProperty("icon_backgroud").GetString(); + IconMask = _buf.GetProperty("icon_mask").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + ShowOrder = _buf.GetProperty("show_order").GetInt32(); + } + + public static Item DeserializeItem(JsonElement _buf) + { + return new item.Item(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + public readonly string Name; + public readonly item.EMinorType MinorType; + public readonly item.EItemQuality Quality; + public readonly string IconBackgroud; + public readonly string IconMask; + public readonly string Desc; + public readonly int ShowOrder; + + public const int __ID__ = 2107285806; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "minorType:" + MinorType + "," + + "quality:" + Quality + "," + + "iconBackgroud:" + IconBackgroud + "," + + "iconMask:" + IconMask + "," + + "desc:" + Desc + "," + + "showOrder:" + ShowOrder + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/item.TbItem.cs b/luban_examples/Projects/CfgValidator/Gen/item.TbItem.cs new file mode 100644 index 00000000..9b6fa4a2 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/item.TbItem.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 System.Text.Json; + + +namespace cfg.item +{ +/// +/// 道具表 +/// +public partial class TbItem +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + item.Item _v; + _v = item.Item.DeserializeItem(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public item.Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public item.Item Get(int key) => _dataMap[key]; + public item.Item this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/CfgValidator/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..e4676fec --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/l10n.L10NDemo.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 System.Text.Json; + + +namespace cfg.l10n +{ +public sealed partial class L10NDemo : Luban.BeanBase +{ + public L10NDemo(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Text = _buf.GetProperty("text").GetString(); + } + + public static L10NDemo DeserializeL10NDemo(JsonElement _buf) + { + return new l10n.L10NDemo(_buf); + } + + public readonly int Id; + public readonly string Text; + + public const int __ID__ = -331195887; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/CfgValidator/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..152d4ca3 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/l10n.PatchDemo.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 System.Text.Json; + + +namespace cfg.l10n +{ +public sealed partial class PatchDemo : Luban.BeanBase +{ + public PatchDemo(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Value = _buf.GetProperty("value").GetInt32(); + } + + public static PatchDemo DeserializePatchDemo(JsonElement _buf) + { + return new l10n.PatchDemo(_buf); + } + + public readonly int Id; + public readonly int Value; + + public const int __ID__ = -1707294656; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/l10n.TbL10NDemo.cs b/luban_examples/Projects/CfgValidator/Gen/l10n.TbL10NDemo.cs new file mode 100644 index 00000000..82755a05 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/l10n.TbL10NDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.l10n +{ +public partial class TbL10NDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbL10NDemo(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + l10n.L10NDemo _v; + _v = l10n.L10NDemo.DeserializeL10NDemo(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.L10NDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.L10NDemo Get(int key) => _dataMap[key]; + public l10n.L10NDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/l10n.TbPatchDemo.cs b/luban_examples/Projects/CfgValidator/Gen/l10n.TbPatchDemo.cs new file mode 100644 index 00000000..63d50c55 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/l10n.TbPatchDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.l10n +{ +public partial class TbPatchDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPatchDemo(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + l10n.PatchDemo _v; + _v = l10n.PatchDemo.DeserializePatchDemo(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.PatchDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.PatchDemo Get(int key) => _dataMap[key]; + public l10n.PatchDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/tag.TbTestTag.cs b/luban_examples/Projects/CfgValidator/Gen/tag.TbTestTag.cs new file mode 100644 index 00000000..8a31ba5d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/tag.TbTestTag.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.tag +{ +public partial class TbTestTag +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestTag(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + tag.TestTag _v; + _v = tag.TestTag.DeserializeTestTag(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public tag.TestTag GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public tag.TestTag Get(int key) => _dataMap[key]; + public tag.TestTag this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/tag.TestTag.cs b/luban_examples/Projects/CfgValidator/Gen/tag.TestTag.cs new file mode 100644 index 00000000..894cebcd --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/tag.TestTag.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 System.Text.Json; + + +namespace cfg.tag +{ +public sealed partial class TestTag : Luban.BeanBase +{ + public TestTag(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Value = _buf.GetProperty("value").GetString(); + } + + public static TestTag DeserializeTestTag(JsonElement _buf) + { + return new tag.TestTag(_buf); + } + + public readonly int Id; + public readonly string Value; + + public const int __ID__ = 1742933812; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.AccessFlag.cs b/luban_examples/Projects/CfgValidator/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..9bd3f0c8 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.AccessFlag.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// 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/luban_examples/Projects/CfgValidator/Gen/test.Circle.cs b/luban_examples/Projects/CfgValidator/Gen/test.Circle.cs new file mode 100644 index 00000000..e174f731 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/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 System.Text.Json; + + +namespace cfg.test +{ +/// +/// 圆 +/// +public sealed partial class Circle : Shape +{ + public Circle(JsonElement _buf) : base(_buf) + { + Radius = _buf.GetProperty("radius").GetSingle(); + } + + public static Circle DeserializeCircle(JsonElement _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/luban_examples/Projects/CfgValidator/Gen/test.CompactString.cs b/luban_examples/Projects/CfgValidator/Gen/test.CompactString.cs new file mode 100644 index 00000000..4531de79 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.CompactString.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompactString : Luban.BeanBase +{ + public CompactString(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + S2 = _buf.GetProperty("s2").GetString(); + S3 = _buf.GetProperty("s3").GetString(); + } + + public static CompactString DeserializeCompactString(JsonElement _buf) + { + return new test.CompactString(_buf); + } + + public readonly int Id; + public readonly string S2; + public readonly string S3; + + public const int __ID__ = 1968089240; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s2:" + S2 + "," + + "s3:" + S3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..5cb970fc --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable1 : Luban.BeanBase +{ + public CompositeJsonTable1(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetString(); + } + + public static CompositeJsonTable1 DeserializeCompositeJsonTable1(JsonElement _buf) + { + return new test.CompositeJsonTable1(_buf); + } + + public readonly int Id; + public readonly string X; + + public const int __ID__ = 1566207894; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..e23318fe --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable2.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable2 : Luban.BeanBase +{ + public CompositeJsonTable2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static CompositeJsonTable2 DeserializeCompositeJsonTable2(JsonElement _buf) + { + return new test.CompositeJsonTable2(_buf); + } + + public readonly int Id; + public readonly int Y; + + public const int __ID__ = 1566207895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..3767af20 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.CompositeJsonTable3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable3 : Luban.BeanBase +{ + public CompositeJsonTable3(JsonElement _buf) + { + A = _buf.GetProperty("a").GetInt32(); + B = _buf.GetProperty("b").GetInt32(); + } + + public static CompositeJsonTable3 DeserializeCompositeJsonTable3(JsonElement _buf) + { + return new test.CompositeJsonTable3(_buf); + } + + public readonly int A; + public readonly int B; + + public const int __ID__ = 1566207896; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "a:" + A + "," + + "b:" + B + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DateTimeRange.cs b/luban_examples/Projects/CfgValidator/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..887f1b47 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DateTimeRange.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DateTimeRange : Luban.BeanBase +{ + public DateTimeRange(JsonElement _buf) + { + StartTime = _buf.GetProperty("start_time").GetInt64(); + EndTime = _buf.GetProperty("end_time").GetInt64(); + } + + public static DateTimeRange DeserializeDateTimeRange(JsonElement _buf) + { + return new test.DateTimeRange(_buf); + } + + public readonly long StartTime; + public readonly long EndTime; + + public const int __ID__ = 495315430; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "startTime:" + StartTime + "," + + "endTime:" + EndTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.Decorator.cs b/luban_examples/Projects/CfgValidator/Gen/test.Decorator.cs new file mode 100644 index 00000000..86bc8712 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.Decorator.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Decorator : test.ItemBase +{ + public Decorator(JsonElement _buf) : base(_buf) + { + Duration = _buf.GetProperty("duration").GetInt32(); + } + + public static Decorator DeserializeDecorator(JsonElement _buf) + { + return new test.Decorator(_buf); + } + + public readonly int Duration; + + public const int __ID__ = -625155649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "duration:" + Duration + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoD2.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoD2.cs new file mode 100644 index 00000000..14eec596 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoD2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoD2 : test.DemoDynamic +{ + public DemoD2(JsonElement _buf) : base(_buf) + { + X2 = _buf.GetProperty("x2").GetInt32(); + } + + public static DemoD2 DeserializeDemoD2(JsonElement _buf) + { + return new test.DemoD2(_buf); + } + + public readonly int X2; + + public const int __ID__ = -2138341747; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoD3.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoD3.cs new file mode 100644 index 00000000..56b1b39d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoD3.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class DemoD3 : test.DemoDynamic +{ + public DemoD3(JsonElement _buf) : base(_buf) + { + X3 = _buf.GetProperty("x3").GetInt32(); + } + + public static DemoD3 DeserializeDemoD3(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X3; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoD5.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoD5.cs new file mode 100644 index 00000000..b2c01c29 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoD5.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoD5 : test.DemoDynamic +{ + public DemoD5(JsonElement _buf) : base(_buf) + { + Time = test.DateTimeRange.DeserializeDateTimeRange(_buf.GetProperty("time")); + } + + public static DemoD5 DeserializeDemoD5(JsonElement _buf) + { + return new test.DemoD5(_buf); + } + + public readonly test.DateTimeRange Time; + + public const int __ID__ = -2138341744; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + Time?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "time:" + Time + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoDynamic.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..b1757c88 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoDynamic.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class DemoDynamic : Luban.BeanBase +{ + public DemoDynamic(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + } + + public static DemoDynamic DeserializeDemoDynamic(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "DemoD2": return new test.DemoD2(_buf); + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + case "DemoD5": return new test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X1; + + + public virtual void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoE1.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoE1.cs new file mode 100644 index 00000000..71046815 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoE1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoE1 : test.DemoD3 +{ + public DemoE1(JsonElement _buf) : base(_buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + } + + public static DemoE1 DeserializeDemoE1(JsonElement _buf) + { + return new test.DemoE1(_buf); + } + + public readonly int X4; + + public const int __ID__ = -2138341717; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoE2.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoE2.cs new file mode 100644 index 00000000..37bbcb8b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoE2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial struct DemoE2 +{ + public DemoE2(JsonElement _buf) + { + {if (_buf.TryGetProperty("y1", out var _j) && _j.ValueKind != JsonValueKind.Null) { Y1 = _j.GetInt32(); } else { Y1 = null; } } + Y2 = _buf.GetProperty("y2").GetBoolean(); + } + + public static DemoE2 DeserializeDemoE2(JsonElement _buf) + { + return new test.DemoE2(_buf); + } + + public readonly int? Y1; + public readonly bool Y2; + + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoEnum.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..aab395ed --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoEnum.cs @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoFlag.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..b9b5d903 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoFlag.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoGroup.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..3e95f4f4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoGroup.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoGroup : Luban.BeanBase +{ + public DemoGroup(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X5 = test.InnerGroup.DeserializeInnerGroup(_buf.GetProperty("x5")); + } + + public static DemoGroup DeserializeDemoGroup(JsonElement _buf) + { + return new test.DemoGroup(_buf); + } + + public readonly int Id; + public readonly test.InnerGroup X5; + + public const int __ID__ = -379263008; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X5?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x5:" + X5 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..024d8bd4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,94 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoPrimitiveTypesTable : Luban.BeanBase +{ + public DemoPrimitiveTypesTable(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetBoolean(); + X2 = _buf.GetProperty("x2").GetByte(); + X3 = _buf.GetProperty("x3").GetInt16(); + X4 = _buf.GetProperty("x4").GetInt32(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X7 = _buf.GetProperty("x7").GetDouble(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + V3 = vec3.Deserializevec3(_buf.GetProperty("v3")); + V4 = vec4.Deserializevec4(_buf.GetProperty("v4")); + T1 = _buf.GetProperty("t1").GetInt64(); + } + + public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(JsonElement _buf) + { + return new test.DemoPrimitiveTypesTable(_buf); + } + + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly int X4; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly string S1; + public readonly string S2; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + public readonly long T1; + + public const int __ID__ = -370934083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "t1:" + T1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..0637f2d1 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoSingletonType.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoSingletonType : Luban.BeanBase +{ + public DemoSingletonType(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Date = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("date")); + } + + public static DemoSingletonType DeserializeDemoSingletonType(JsonElement _buf) + { + return new test.DemoSingletonType(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.DemoDynamic Date; + + public const int __ID__ = 539196998; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + Date?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "date:" + Date + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoType1.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoType1.cs new file mode 100644 index 00000000..da73e7da --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoType1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoType1 : Luban.BeanBase +{ + public DemoType1(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + } + + public static DemoType1 DeserializeDemoType1(JsonElement _buf) + { + return new test.DemoType1(_buf); + } + + public readonly int X1; + + public const int __ID__ = -367048296; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DemoType2.cs b/luban_examples/Projects/CfgValidator/Gen/test.DemoType2.cs new file mode 100644 index 00000000..1771eb83 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DemoType2.cs @@ -0,0 +1,130 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoType2 : Luban.BeanBase +{ + public DemoType2(JsonElement _buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X2 = _buf.GetProperty("x2").GetByte(); + X3 = _buf.GetProperty("x3").GetInt16(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X7 = _buf.GetProperty("x7").GetDouble(); + X80 = _buf.GetProperty("x8_0").GetInt16(); + X8 = _buf.GetProperty("x8").GetInt32(); + X9 = _buf.GetProperty("x9").GetInt64(); + X10 = _buf.GetProperty("x10").GetString(); + X12 = test.DemoType1.DeserializeDemoType1(_buf.GetProperty("x12")); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + S1 = _buf.GetProperty("s1").GetString(); + T1 = _buf.GetProperty("t1").GetInt64(); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k2"); K2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K2.Add(__v0); } } + { var __json0 = _buf.GetProperty("k5"); K5 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K5.Add(__v0); } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k15"); int _n0 = __json0.GetArrayLength(); K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoDynamic __v0; __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); K15[__index0++] = __v0; } } + } + + public static DemoType2 DeserializeDemoType2(JsonElement _buf) + { + return new test.DemoType2(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly short X80; + public readonly int X8; + public readonly long X9; + public readonly string X10; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly string S1; + public readonly long T1; + public readonly int[] K1; + public readonly System.Collections.Generic.List K2; + public readonly System.Collections.Generic.HashSet K5; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -367048295; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "x80:" + X80 + "," + + "x8:" + X8 + "," + + "x9:" + X9 + "," + + "x10:" + X10 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "s1:" + S1 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k5:" + Luban.StringUtil.CollectionToString(K5) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.DetectEncoding.cs b/luban_examples/Projects/CfgValidator/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..04b4cf0a --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.DetectEncoding.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DetectEncoding : Luban.BeanBase +{ + public DetectEncoding(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + } + + public static DetectEncoding DeserializeDetectEncoding(JsonElement _buf) + { + return new test.DetectEncoding(_buf); + } + + public readonly int Id; + public readonly string Name; + + public const int __ID__ = -1154609646; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/CfgValidator/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..db34ab8d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.ETestEmptyEnum.cs @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum + { + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/CfgValidator/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..2b27e566 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/test.ETestQuality.cs b/luban_examples/Projects/CfgValidator/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..f82389f7 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.ETestQuality.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.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/test.ETestUeType.cs b/luban_examples/Projects/CfgValidator/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..c69207fe --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.ETestUeType.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + +} + diff --git a/luban_examples/Projects/CfgValidator/Gen/test.Equipment.cs b/luban_examples/Projects/CfgValidator/Gen/test.Equipment.cs new file mode 100644 index 00000000..e8561b59 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.Equipment.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Equipment : test.ItemBase +{ + public Equipment(JsonElement _buf) : base(_buf) + { + Attr = (test.DemoEnum)_buf.GetProperty("attr").GetInt32(); + Value = _buf.GetProperty("value").GetInt32(); + } + + public static Equipment DeserializeEquipment(JsonElement _buf) + { + return new test.Equipment(_buf); + } + + public readonly test.DemoEnum Attr; + public readonly int Value; + + public const int __ID__ = -76837102; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "attr:" + Attr + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/CfgValidator/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..e6dd890a --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.ExcelFromJson.cs @@ -0,0 +1,98 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJson : Luban.BeanBase +{ + public ExcelFromJson(JsonElement _buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + T1 = _buf.GetProperty("t1").GetInt64(); + X12 = test.DemoType1.DeserializeDemoType1(_buf.GetProperty("x12")); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k15"); int _n0 = __json0.GetArrayLength(); K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoDynamic __v0; __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); K15[__index0++] = __v0; } } + } + + public static ExcelFromJson DeserializeExcelFromJson(JsonElement _buf) + { + return new test.ExcelFromJson(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly string S1; + public readonly string S2; + public readonly long T1; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly int[] K1; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -1485706483; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "t1:" + T1 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/CfgValidator/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..0c254890 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.ExcelFromJsonMultiRow.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJsonMultiRow : Luban.BeanBase +{ + public ExcelFromJsonMultiRow(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + { var __json0 = _buf.GetProperty("items"); Items = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.TestRow __v0; __v0 = test.TestRow.DeserializeTestRow(__e0); Items.Add(__v0); } } + } + + public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(JsonElement _buf) + { + return new test.ExcelFromJsonMultiRow(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 715335694; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.Foo.cs b/luban_examples/Projects/CfgValidator/Gen/test.Foo.cs new file mode 100644 index 00000000..95de0c5f --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.Foo.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Foo : Luban.BeanBase +{ + public Foo(JsonElement _buf) + { + Y1 = _buf.GetProperty("y1").GetInt32(); + Y2 = _buf.GetProperty("y2").GetInt32(); + Y3 = _buf.GetProperty("y3").GetInt32(); + } + + public static Foo DeserializeFoo(JsonElement _buf) + { + return new test.Foo(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + + public const int __ID__ = -1147950774; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.H1.cs b/luban_examples/Projects/CfgValidator/Gen/test.H1.cs new file mode 100644 index 00000000..1e1b6416 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.H1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class H1 : Luban.BeanBase +{ + public H1(JsonElement _buf) + { + Y2 = test.H2.DeserializeH2(_buf.GetProperty("y2")); + Y3 = _buf.GetProperty("y3").GetInt32(); + } + + public static H1 DeserializeH1(JsonElement _buf) + { + return new test.H1(_buf); + } + + public readonly test.H2 Y2; + public readonly int Y3; + + public const int __ID__ = -1422503995; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Y2?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.H2.cs b/luban_examples/Projects/CfgValidator/Gen/test.H2.cs new file mode 100644 index 00000000..77206a07 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.H2.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class H2 : Luban.BeanBase +{ + public H2(JsonElement _buf) + { + Z2 = _buf.GetProperty("z2").GetInt32(); + Z3 = _buf.GetProperty("z3").GetInt32(); + } + + public static H2 DeserializeH2(JsonElement _buf) + { + return new test.H2(_buf); + } + + public readonly int Z2; + public readonly int Z3; + + public const int __ID__ = -1422503994; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "z2:" + Z2 + "," + + "z3:" + Z3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.InnerGroup.cs b/luban_examples/Projects/CfgValidator/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..eff9471c --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.InnerGroup.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class InnerGroup : Luban.BeanBase +{ + public InnerGroup(JsonElement _buf) + { + Y1 = _buf.GetProperty("y1").GetInt32(); + } + + public static InnerGroup DeserializeInnerGroup(JsonElement _buf) + { + return new test.InnerGroup(_buf); + } + + public readonly int Y1; + + public const int __ID__ = -587873083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.Item.cs b/luban_examples/Projects/CfgValidator/Gen/test.Item.cs new file mode 100644 index 00000000..e760f925 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.Item.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Item : test.ItemBase +{ + public Item(JsonElement _buf) : base(_buf) + { + Num = _buf.GetProperty("num").GetInt32(); + Price = _buf.GetProperty("price").GetInt32(); + } + + public static Item DeserializeItem(JsonElement _buf) + { + return new test.Item(_buf); + } + + public readonly int Num; + public readonly int Price; + + public const int __ID__ = -1226641649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "num:" + Num + "," + + "price:" + Price + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.ItemBase.cs b/luban_examples/Projects/CfgValidator/Gen/test.ItemBase.cs new file mode 100644 index 00000000..12eadb88 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.ItemBase.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class ItemBase : Luban.BeanBase +{ + public ItemBase(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static ItemBase DeserializeItemBase(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Item": return new test.Item(_buf); + case "Equipment": return new test.Equipment(_buf); + case "Decorator": return new test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + + + public virtual void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.MultiIndexList.cs b/luban_examples/Projects/CfgValidator/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..ea6512dd --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.MultiIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiIndexList : Luban.BeanBase +{ + public MultiIndexList(JsonElement _buf) + { + Id1 = _buf.GetProperty("id1").GetInt32(); + Id2 = _buf.GetProperty("id2").GetInt64(); + Id3 = _buf.GetProperty("id3").GetString(); + Num = _buf.GetProperty("num").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static MultiIndexList DeserializeMultiIndexList(JsonElement _buf) + { + return new test.MultiIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 2016237651; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..1ad73eab --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowRecord.cs @@ -0,0 +1,78 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowRecord : Luban.BeanBase +{ + public MultiRowRecord(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + { var __json0 = _buf.GetProperty("one_rows"); OneRows = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); OneRows.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows1"); MultiRows1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); MultiRows1.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows2"); int _n0 = __json0.GetArrayLength(); MultiRows2 = new test.MultiRowType1[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); MultiRows2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("multi_rows4"); MultiRows4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); MultiRows4.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("multi_rows5"); MultiRows5 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType3 __v0; __v0 = test.MultiRowType3.DeserializeMultiRowType3(__e0); MultiRows5.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows6"); MultiRows6 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); MultiRows6.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("multi_rows7"); MultiRows7 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); MultiRows7.Add(_k0, _v0); } } + } + + public static MultiRowRecord DeserializeMultiRowRecord(JsonElement _buf) + { + return new test.MultiRowRecord(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly System.Collections.Generic.List OneRows; + public readonly System.Collections.Generic.List MultiRows1; + public readonly test.MultiRowType1[] MultiRows2; + public readonly System.Collections.Generic.Dictionary MultiRows4; + public readonly System.Collections.Generic.List MultiRows5; + public readonly System.Collections.Generic.Dictionary MultiRows6; + public readonly System.Collections.Generic.Dictionary MultiRows7; + + public const int __ID__ = -501249394; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in OneRows) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows1) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows2) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows4.Values) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows5) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows6.Values) { _e?.ResolveRef(tables); } + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "oneRows:" + Luban.StringUtil.CollectionToString(OneRows) + "," + + "multiRows1:" + Luban.StringUtil.CollectionToString(MultiRows1) + "," + + "multiRows2:" + Luban.StringUtil.CollectionToString(MultiRows2) + "," + + "multiRows4:" + Luban.StringUtil.CollectionToString(MultiRows4) + "," + + "multiRows5:" + Luban.StringUtil.CollectionToString(MultiRows5) + "," + + "multiRows6:" + Luban.StringUtil.CollectionToString(MultiRows6) + "," + + "multiRows7:" + Luban.StringUtil.CollectionToString(MultiRows7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..07ff31c4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowTitle.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowTitle : Luban.BeanBase +{ + public MultiRowTitle(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + X1 = test.H1.DeserializeH1(_buf.GetProperty("x1")); + {if (_buf.TryGetProperty("x2_0", out var _j) && _j.ValueKind != JsonValueKind.Null) { X20 = test.H2.DeserializeH2(_j); } else { X20 = null; } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); int _n0 = __json0.GetArrayLength(); X3 = new test.H2[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X3[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("x4"); int _n0 = __json0.GetArrayLength(); X4 = new test.H2[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X4[__index0++] = __v0; } } + } + + public static MultiRowTitle DeserializeMultiRowTitle(JsonElement _buf) + { + return new test.MultiRowTitle(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.H1 X1; + public readonly test.H2 X20; + public readonly System.Collections.Generic.List X2; + public readonly test.H2[] X3; + public readonly test.H2[] X4; + + public const int __ID__ = 540002427; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + X1?.ResolveRef(tables); + X20?.ResolveRef(tables); + foreach (var _e in X2) { _e?.ResolveRef(tables); } + foreach (var _e in X3) { _e?.ResolveRef(tables); } + foreach (var _e in X4) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "x1:" + X1 + "," + + "x20:" + X20 + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType1.cs b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..d4b0d7a9 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType1 : Luban.BeanBase +{ + public MultiRowType1(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + } + + public static MultiRowType1 DeserializeMultiRowType1(JsonElement _buf) + { + return new test.MultiRowType1(_buf); + } + + public readonly int Id; + public readonly int X; + + public const int __ID__ = 540474970; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType2.cs b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..6670ad14 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType2 : Luban.BeanBase +{ + public MultiRowType2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetSingle(); + } + + public static MultiRowType2 DeserializeMultiRowType2(JsonElement _buf) + { + return new test.MultiRowType2(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly float Y; + + public const int __ID__ = 540474971; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType3.cs b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..b8f08399 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.MultiRowType3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType3 : Luban.BeanBase +{ + public MultiRowType3(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("items"); Items = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); Items.Add(__v0); } } + } + + public static MultiRowType3 DeserializeMultiRowType3(JsonElement _buf) + { + return new test.MultiRowType3(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 540474972; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/CfgValidator/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..ecaa1c27 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiUnionIndexList : Luban.BeanBase +{ + public MultiUnionIndexList(JsonElement _buf) + { + Id1 = _buf.GetProperty("id1").GetInt32(); + Id2 = _buf.GetProperty("id2").GetInt64(); + Id3 = _buf.GetProperty("id3").GetString(); + Num = _buf.GetProperty("num").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static MultiUnionIndexList DeserializeMultiUnionIndexList(JsonElement _buf) + { + return new test.MultiUnionIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 1966847134; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.NotIndexList.cs b/luban_examples/Projects/CfgValidator/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..1ca6ebec --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.NotIndexList.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class NotIndexList : Luban.BeanBase +{ + public NotIndexList(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static NotIndexList DeserializeNotIndexList(JsonElement _buf) + { + return new test.NotIndexList(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = -50446599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.RefBean.cs b/luban_examples/Projects/CfgValidator/Gen/test.RefBean.cs new file mode 100644 index 00000000..be59886d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.RefBean.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class RefBean : test.RefDynamicBase +{ + public RefBean(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("arr"); Arr = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); Arr.Add(__v0); } } + } + + public static RefBean DeserializeRefBean(JsonElement _buf) + { + return new test.RefBean(_buf); + } + + public readonly System.Collections.Generic.List Arr; + + public const int __ID__ = 1963260263; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "arr:" + Luban.StringUtil.CollectionToString(Arr) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/CfgValidator/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..8c378c02 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.RefDynamicBase.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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class RefDynamicBase : Luban.BeanBase +{ + public RefDynamicBase(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + X_Ref = null; + } + + public static RefDynamicBase DeserializeRefDynamicBase(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "RefBean": return new test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X; + public test.TestBeRef X_Ref; + + + public virtual void ResolveRef(Tables tables) + { + X_Ref = tables.TbTestBeRef.GetOrDefault(X); + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.Shape.cs b/luban_examples/Projects/CfgValidator/Gen/test.Shape.cs new file mode 100644 index 00000000..36d3c17a --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.Shape.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class Shape : Luban.BeanBase +{ + public Shape(JsonElement _buf) + { + } + + public static Shape DeserializeShape(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Circle": return new test.Circle(_buf); + case "test2.Rectangle": return new test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable1.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable1.cs new file mode 100644 index 00000000..ab333b9f --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable1.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable1 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable1(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.CompositeJsonTable1 _v; + _v = test.CompositeJsonTable1.DeserializeCompositeJsonTable1(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable1 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable1 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable1 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable2.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable2.cs new file mode 100644 index 00000000..0a0b26ad --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.CompositeJsonTable2 _v; + _v = test.CompositeJsonTable2.DeserializeCompositeJsonTable2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable2 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable3.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable3.cs new file mode 100644 index 00000000..674f8d2b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbCompositeJsonTable3.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable3 +{ + + private readonly test.CompositeJsonTable3 _data; + + public TbCompositeJsonTable3(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(_buf[0]); + } + + + public int A => _data.A; + public int B => _data.B; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbDataFromMisc.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbDataFromMisc.cs new file mode 100644 index 00000000..5931a166 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbDataFromMisc.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDataFromMisc +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDataFromMisc(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbDefineFromExcel2.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbDefineFromExcel2.cs new file mode 100644 index 00000000..dc08e676 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbDefineFromExcel2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDefineFromExcel2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDefineFromExcel2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + DefineFromExcel2 _v; + _v = DefineFromExcel2.DeserializeDefineFromExcel2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public DefineFromExcel2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public DefineFromExcel2 Get(int key) => _dataMap[key]; + public DefineFromExcel2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbDemoGroup.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbDemoGroup.cs new file mode 100644 index 00000000..651a7146 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbDemoGroup.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDemoGroup +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbDemoPrimitive.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbDemoPrimitive.cs new file mode 100644 index 00000000..7d4b3e46 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbDemoPrimitive.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDemoPrimitive +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoPrimitive(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoPrimitiveTypesTable _v; + _v = test.DemoPrimitiveTypesTable.DeserializeDemoPrimitiveTypesTable(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoPrimitiveTypesTable GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoPrimitiveTypesTable Get(int key) => _dataMap[key]; + public test.DemoPrimitiveTypesTable this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbDetectCsvEncoding.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbDetectCsvEncoding.cs new file mode 100644 index 00000000..f5d39fa4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbDetectCsvEncoding.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDetectCsvEncoding +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDetectCsvEncoding(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DetectEncoding _v; + _v = test.DetectEncoding.DeserializeDetectEncoding(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DetectEncoding GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DetectEncoding Get(int key) => _dataMap[key]; + public test.DetectEncoding this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbExcelFromJson.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbExcelFromJson.cs new file mode 100644 index 00000000..f665b8d2 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbExcelFromJson.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbExcelFromJson +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJson(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ExcelFromJson _v; + _v = test.ExcelFromJson.DeserializeExcelFromJson(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJson GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJson Get(int key) => _dataMap[key]; + public test.ExcelFromJson this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbExcelFromJsonMultiRow.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..a27ae538 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbExcelFromJsonMultiRow.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbExcelFromJsonMultiRow +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJsonMultiRow(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ExcelFromJsonMultiRow _v; + _v = test.ExcelFromJsonMultiRow.DeserializeExcelFromJsonMultiRow(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJsonMultiRow GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJsonMultiRow Get(int key) => _dataMap[key]; + public test.ExcelFromJsonMultiRow this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbFullTypes.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbFullTypes.cs new file mode 100644 index 00000000..5f16bc2e --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbFullTypes.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbFullTypes +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbFullTypes(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbItem2.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbItem2.cs new file mode 100644 index 00000000..47af5b56 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbItem2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbItem2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ItemBase _v; + _v = test.ItemBase.DeserializeItemBase(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public T GetOrDefaultAs(int key) where T : test.ItemBase => _dataMap.TryGetValue(key, out var v) ? (T)v : null; + public T GetAs(int key) where T : test.ItemBase => (T)_dataMap[key]; + public test.ItemBase GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ItemBase Get(int key) => _dataMap[key]; + public test.ItemBase this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbMultiIndexList.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiIndexList.cs new file mode 100644 index 00000000..858084fb --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiIndexList.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary _dataMap_id1; + private System.Collections.Generic.Dictionary _dataMap_id2; + private System.Collections.Generic.Dictionary _dataMap_id3; + + public TbMultiIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiIndexList _v; + _v = test.MultiIndexList.DeserializeMultiIndexList(_ele); + _dataList.Add(_v); + } + _dataMap_id1 = new System.Collections.Generic.Dictionary(); + _dataMap_id2 = new System.Collections.Generic.Dictionary(); + _dataMap_id3 = new System.Collections.Generic.Dictionary(); + foreach(var _v in _dataList) + { + _dataMap_id1.Add(_v.Id1, _v); + _dataMap_id2.Add(_v.Id2, _v); + _dataMap_id3.Add(_v.Id3, _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiIndexList GetById1(int key) => _dataMap_id1.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById2(long key) => _dataMap_id2.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById3(string key) => _dataMap_id3.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbMultiRowRecord.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiRowRecord.cs new file mode 100644 index 00000000..10817eca --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiRowRecord.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiRowRecord +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowRecord(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiRowRecord _v; + _v = test.MultiRowRecord.DeserializeMultiRowRecord(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowRecord GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowRecord Get(int key) => _dataMap[key]; + public test.MultiRowRecord this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbMultiRowTitle.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiRowTitle.cs new file mode 100644 index 00000000..a56ba92a --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiRowTitle.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiRowTitle +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowTitle(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiRowTitle _v; + _v = test.MultiRowTitle.DeserializeMultiRowTitle(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowTitle GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowTitle Get(int key) => _dataMap[key]; + public test.MultiRowTitle this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbMultiUnionIndexList.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiUnionIndexList.cs new file mode 100644 index 00000000..79e8a6b9 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbMultiUnionIndexList.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiUnionIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList> _dataMapUnion; + + public TbMultiUnionIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiUnionIndexList _v; + _v = test.MultiUnionIndexList.DeserializeMultiUnionIndexList(_ele); + _dataList.Add(_v); + } + _dataMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList>(); + foreach(var _v in _dataList) + { + _dataMapUnion.Add((_v.Id1, _v.Id2, _v.Id3), _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiUnionIndexList Get(int id1, long id2, string id3) => _dataMapUnion.TryGetValue((id1, id2, id3), out test.MultiUnionIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbNotIndexList.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbNotIndexList.cs new file mode 100644 index 00000000..f687e02f --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbNotIndexList.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbNotIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + + public TbNotIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.NotIndexList _v; + _v = test.NotIndexList.DeserializeNotIndexList(_ele); + _dataList.Add(_v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbSingleton.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbSingleton.cs new file mode 100644 index 00000000..a2b54d67 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbSingleton.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbSingleton +{ + + private readonly test.DemoSingletonType _data; + + public TbSingleton(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.DemoSingletonType.DeserializeDemoSingletonType(_buf[0]); + } + + + public int Id => _data.Id; + public string Name => _data.Name; + public test.DemoDynamic Date => _data.Date; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestBeRef.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestBeRef.cs new file mode 100644 index 00000000..53bc5e4f --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestBeRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestBeRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestBeRef2.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestBeRef2.cs new file mode 100644 index 00000000..03dc0464 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestBeRef2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestBeRef2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestGlobal.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestGlobal.cs new file mode 100644 index 00000000..2dffa1e5 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestGlobal.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestGlobal +{ + + private readonly test.TestGlobal _data; + + public TbTestGlobal(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.TestGlobal.DeserializeTestGlobal(_buf[0]); + } + + + public int UnlockEquip => _data.UnlockEquip; + public int UnlockHero => _data.UnlockHero; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestIndex.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestIndex.cs new file mode 100644 index 00000000..0ce908b3 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestIndex.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestIndex +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestIndex(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestIndex _v; + _v = test.TestIndex.DeserializeTestIndex(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestIndex GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestIndex Get(int key) => _dataMap[key]; + public test.TestIndex this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestMap.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestMap.cs new file mode 100644 index 00000000..f96894e2 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestMap.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMap +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMap(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMap _v; + _v = test.TestMap.DeserializeTestMap(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMap GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMap Get(int key) => _dataMap[key]; + public test.TestMap this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestMapper.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestMapper.cs new file mode 100644 index 00000000..98874868 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestMapper.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMapper +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMapper(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMapper _v; + _v = test.TestMapper.DeserializeTestMapper(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMapper GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMapper Get(int key) => _dataMap[key]; + public test.TestMapper this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestMultiColumn.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestMultiColumn.cs new file mode 100644 index 00000000..43e45c39 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestMultiColumn.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMultiColumn +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMultiColumn(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMultiColumn _v; + _v = test.TestMultiColumn.DeserializeTestMultiColumn(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMultiColumn GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMultiColumn Get(int key) => _dataMap[key]; + public test.TestMultiColumn this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestNull.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestNull.cs new file mode 100644 index 00000000..7dcda5df --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestNull.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestNull +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestNull(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestNull _v; + _v = test.TestNull.DeserializeTestNull(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestNull GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestNull Get(int key) => _dataMap[key]; + public test.TestNull this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestRef.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestRef.cs new file mode 100644 index 00000000..fa0c1acc --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestRef(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestRef _v; + _v = test.TestRef.DeserializeTestRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestRef Get(int key) => _dataMap[key]; + public test.TestRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestScriptableObject.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestScriptableObject.cs new file mode 100644 index 00000000..3b9ce5d1 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestScriptableObject.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestScriptableObject +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestScriptableObject(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestScriptableObject _v; + _v = test.TestScriptableObject.DeserializeTestScriptableObject(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestScriptableObject GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestScriptableObject Get(int key) => _dataMap[key]; + public test.TestScriptableObject this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestSet.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestSet.cs new file mode 100644 index 00000000..f598f867 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestSet.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestSet +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSet(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestSet _v; + _v = test.TestSet.DeserializeTestSet(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSet GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSet Get(int key) => _dataMap[key]; + public test.TestSet this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestSize.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestSize.cs new file mode 100644 index 00000000..41eecd72 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestSize.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestSize +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSize(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestSize _v; + _v = test.TestSize.DeserializeTestSize(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSize GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSize Get(int key) => _dataMap[key]; + public test.TestSize this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TbTestString.cs b/luban_examples/Projects/CfgValidator/Gen/test.TbTestString.cs new file mode 100644 index 00000000..87bb85ab --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TbTestString.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestString +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestString(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestString _v; + _v = test.TestString.DeserializeTestString(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestString GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestString Get(string key) => _dataMap[key]; + public test.TestString this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.Test3.cs b/luban_examples/Projects/CfgValidator/Gen/test.Test3.cs new file mode 100644 index 00000000..cdd2258b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.Test3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Test3 : Luban.BeanBase +{ + public Test3(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static Test3 DeserializeTest3(JsonElement _buf) + { + return new test.Test3(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = 638540133; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestBeRef.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..842069cd --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestBeRef.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestBeRef : Luban.BeanBase +{ + public TestBeRef(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Count = _buf.GetProperty("count").GetInt32(); + } + + public static TestBeRef DeserializeTestBeRef(JsonElement _buf) + { + return new test.TestBeRef(_buf); + } + + public readonly int Id; + public readonly int Count; + + public const int __ID__ = 1934403938; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "count:" + Count + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestGlobal.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..c5f0262b --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestGlobal.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestGlobal : Luban.BeanBase +{ + public TestGlobal(JsonElement _buf) + { + UnlockEquip = _buf.GetProperty("unlock_equip").GetInt32(); + UnlockHero = _buf.GetProperty("unlock_hero").GetInt32(); + } + + public static TestGlobal DeserializeTestGlobal(JsonElement _buf) + { + return new test.TestGlobal(_buf); + } + + public readonly int UnlockEquip; + public readonly int UnlockHero; + + public const int __ID__ = -12548655; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "unlockEquip:" + UnlockEquip + "," + + "unlockHero:" + UnlockHero + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestIndex.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestIndex.cs new file mode 100644 index 00000000..8a5f60a0 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestIndex.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestIndex : Luban.BeanBase +{ + public TestIndex(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("eles"); Eles = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoType1 __v0; __v0 = test.DemoType1.DeserializeDemoType1(__e0); Eles.Add(__v0); } } + foreach(var _v in Eles) + { + Eles_Index.Add(_v.X1, _v); + } + } + + public static TestIndex DeserializeTestIndex(JsonElement _buf) + { + return new test.TestIndex(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Eles; + public readonly System.Collections.Generic.Dictionary Eles_Index = new System.Collections.Generic.Dictionary(); + + public const int __ID__ = 1941154020; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Eles) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "eles:" + Luban.StringUtil.CollectionToString(Eles) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestMap.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestMap.cs new file mode 100644 index 00000000..5297d7c8 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestMap.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMap : Luban.BeanBase +{ + public TestMap(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Id_Ref = null; + { var __json0 = _buf.GetProperty("x1"); X1 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X1.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { long _k0; _k0 = __e0[0].GetInt64(); int _v0; _v0 = __e0[1].GetInt32(); X2.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { string _k0; _k0 = __e0[0].GetString(); int _v0; _v0 = __e0[1].GetInt32(); X3.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoEnum _k0; _k0 = (test.DemoEnum)__e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X4.Add(_k0, _v0); } } + } + + public static TestMap DeserializeTestMap(JsonElement _buf) + { + return new test.TestMap(_buf); + } + + public readonly int Id; + public test.TestIndex Id_Ref; + public readonly System.Collections.Generic.Dictionary X1; + public readonly System.Collections.Generic.Dictionary X2; + public readonly System.Collections.Generic.Dictionary X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = -543227410; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Id_Ref = tables.TbTestIndex.GetOrDefault(Id); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestMapper.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestMapper.cs new file mode 100644 index 00000000..ee5e655a --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestMapper.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMapper : Luban.BeanBase +{ + public TestMapper(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + AudioType = (AudioType)_buf.GetProperty("audio_type").GetInt32(); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + } + + public static TestMapper DeserializeTestMapper(JsonElement _buf) + { + return new test.TestMapper(_buf); + } + + public readonly int Id; + public readonly AudioType AudioType; + public readonly vec2 V2; + + public const int __ID__ = 149110895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "audioType:" + AudioType + "," + + "v2:" + V2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..3b6ee1de --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestMultiColumn.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMultiColumn : Luban.BeanBase +{ + public TestMultiColumn(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + A = test.Foo.DeserializeFoo(_buf.GetProperty("a")); + B = test.Foo.DeserializeFoo(_buf.GetProperty("b")); + C = test.Foo.DeserializeFoo(_buf.GetProperty("c")); + } + + public static TestMultiColumn DeserializeTestMultiColumn(JsonElement _buf) + { + return new test.TestMultiColumn(_buf); + } + + public readonly int Id; + public readonly test.Foo A; + public readonly test.Foo B; + public readonly test.Foo C; + + public const int __ID__ = -294473599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + A?.ResolveRef(tables); + B?.ResolveRef(tables); + C?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "a:" + A + "," + + "b:" + B + "," + + "c:" + C + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestNull.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestNull.cs new file mode 100644 index 00000000..397a60a4 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestNull.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestNull : Luban.BeanBase +{ + public TestNull(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + {if (_buf.TryGetProperty("x1", out var _j) && _j.ValueKind != JsonValueKind.Null) { X1 = _j.GetInt32(); } else { X1 = null; } } + {if (_buf.TryGetProperty("x2", out var _j) && _j.ValueKind != JsonValueKind.Null) { X2 = (test.DemoEnum?)_j.GetInt32(); } else { X2 = null; } } + {if (_buf.TryGetProperty("x3", out var _j) && _j.ValueKind != JsonValueKind.Null) { X3 = test.DemoType1.DeserializeDemoType1(_j); } else { X3 = null; } } + {if (_buf.TryGetProperty("x4", out var _j) && _j.ValueKind != JsonValueKind.Null) { X4 = test.DemoDynamic.DeserializeDemoDynamic(_j); } else { X4 = null; } } + {if (_buf.TryGetProperty("s1", out var _j) && _j.ValueKind != JsonValueKind.Null) { S1 = _j.GetString(); } else { S1 = null; } } + {if (_buf.TryGetProperty("s2", out var _j) && _j.ValueKind != JsonValueKind.Null) { S2 = _j.GetString(); } else { S2 = null; } } + } + + public static TestNull DeserializeTestNull(JsonElement _buf) + { + return new test.TestNull(_buf); + } + + public readonly int Id; + public readonly int? X1; + public readonly test.DemoEnum? X2; + public readonly test.DemoType1 X3; + public readonly test.DemoDynamic X4; + public readonly string S1; + public readonly string S2; + + public const int __ID__ = 339868469; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + X3?.ResolveRef(tables); + X4?.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestRef.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestRef.cs new file mode 100644 index 00000000..93ea83a3 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestRef.cs @@ -0,0 +1,132 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestRef : Luban.BeanBase +{ + public TestRef(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X1 = _buf.GetProperty("x1").GetInt32(); + X1_Ref = null; + X12 = _buf.GetProperty("x1_2").GetInt32(); + X12_Ref = null; + X2 = _buf.GetProperty("x2").GetInt32(); + X3 = _buf.GetProperty("x3").GetInt32(); + X4 = _buf.GetProperty("x4").GetInt32(); + X4_Ref = null; + { var __json0 = _buf.GetProperty("a1"); int _n0 = __json0.GetArrayLength(); A1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); A1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("a2"); int _n0 = __json0.GetArrayLength(); A2 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); A2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("b1"); B1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B1.Add(__v0); } } + { var __json0 = _buf.GetProperty("b2"); B2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B2.Add(__v0); } } + { var __json0 = _buf.GetProperty("c1"); C1 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); C1.Add(__v0); } } + { var __json0 = _buf.GetProperty("c2"); C2 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); C2.Add(__v0); } } + { var __json0 = _buf.GetProperty("d1"); D1 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); D1.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("d2"); D2 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); D2.Add(_k0, _v0); } } + E1 = _buf.GetProperty("e1").GetInt32(); + E2 = _buf.GetProperty("e2").GetInt64(); + E3 = _buf.GetProperty("e3").GetString(); + F1 = _buf.GetProperty("f1").GetInt32(); + F2 = _buf.GetProperty("f2").GetInt64(); + F3 = _buf.GetProperty("f3").GetString(); + S1 = test.RefDynamicBase.DeserializeRefDynamicBase(_buf.GetProperty("s1")); + } + + public static TestRef DeserializeTestRef(JsonElement _buf) + { + return new test.TestRef(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.TestBeRef X1_Ref; + public readonly int X12; + public test.TestBeRef X12_Ref; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public tag.TestTag X4_Ref; + public readonly int[] A1; + public readonly int[] A2; + public readonly System.Collections.Generic.List B1; + public readonly System.Collections.Generic.List B2; + public readonly System.Collections.Generic.HashSet C1; + public readonly System.Collections.Generic.HashSet C2; + public readonly System.Collections.Generic.Dictionary D1; + public readonly System.Collections.Generic.Dictionary D2; + public readonly int E1; + public readonly long E2; + public readonly string E3; + public readonly int F1; + public readonly long F2; + public readonly string F3; + public readonly test.RefDynamicBase S1; + + public const int __ID__ = -543222491; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbTestBeRef.GetOrDefault(X1); + X12_Ref = tables.TbTestBeRef.GetOrDefault(X12); + + + X4_Ref = tables.TbTestTag.GetOrDefault(X4); + + + + + + + + + + + + + + + S1?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x12:" + X12 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "a1:" + Luban.StringUtil.CollectionToString(A1) + "," + + "a2:" + Luban.StringUtil.CollectionToString(A2) + "," + + "b1:" + Luban.StringUtil.CollectionToString(B1) + "," + + "b2:" + Luban.StringUtil.CollectionToString(B2) + "," + + "c1:" + Luban.StringUtil.CollectionToString(C1) + "," + + "c2:" + Luban.StringUtil.CollectionToString(C2) + "," + + "d1:" + Luban.StringUtil.CollectionToString(D1) + "," + + "d2:" + Luban.StringUtil.CollectionToString(D2) + "," + + "e1:" + E1 + "," + + "e2:" + E2 + "," + + "e3:" + E3 + "," + + "f1:" + F1 + "," + + "f2:" + F2 + "," + + "f3:" + F3 + "," + + "s1:" + S1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestRow.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestRow.cs new file mode 100644 index 00000000..ea8c3dd6 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestRow.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestRow : Luban.BeanBase +{ + public TestRow(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetBoolean(); + Z = _buf.GetProperty("z").GetString(); + A = test.Test3.DeserializeTest3(_buf.GetProperty("a")); + { var __json0 = _buf.GetProperty("b"); B = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B.Add(__v0); } } + } + + public static TestRow DeserializeTestRow(JsonElement _buf) + { + return new test.TestRow(_buf); + } + + public readonly int X; + public readonly bool Y; + public readonly string Z; + public readonly test.Test3 A; + public readonly System.Collections.Generic.List B; + + public const int __ID__ = -543222164; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + A?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "a:" + A + "," + + "b:" + Luban.StringUtil.CollectionToString(B) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..089e3979 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestScriptableObject.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestScriptableObject : Luban.BeanBase +{ + public TestScriptableObject(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + Rate = _buf.GetProperty("rate").GetSingle(); + Num = _buf.GetProperty("num").GetInt32(); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + V3 = vec3.Deserializevec3(_buf.GetProperty("v3")); + V4 = vec4.Deserializevec4(_buf.GetProperty("v4")); + } + + public static TestScriptableObject DeserializeTestScriptableObject(JsonElement _buf) + { + return new test.TestScriptableObject(_buf); + } + + public readonly int Id; + public readonly string Desc; + public readonly float Rate; + public readonly int Num; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + + public const int __ID__ = -1896814350; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "desc:" + Desc + "," + + "rate:" + Rate + "," + + "num:" + Num + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestSet.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestSet.cs new file mode 100644 index 00000000..bc8fb836 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestSet.cs @@ -0,0 +1,66 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestSet : Luban.BeanBase +{ + public TestSet(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X0 = _buf.GetProperty("x0").GetString(); + { var __json0 = _buf.GetProperty("x1"); X1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X1.Add(__v0); } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { long __v0; __v0 = __e0.GetInt64(); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { string __v0; __v0 = __e0.GetString(); X3.Add(__v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoEnum __v0; __v0 = (test.DemoEnum)__e0.GetInt32(); X4.Add(__v0); } } + } + + public static TestSet DeserializeTestSet(JsonElement _buf) + { + return new test.TestSet(_buf); + } + + public readonly int Id; + public readonly string X0; + public readonly System.Collections.Generic.List X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.List X3; + public readonly System.Collections.Generic.List X4; + + public const int __ID__ = -543221516; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x0:" + X0 + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestSize.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestSize.cs new file mode 100644 index 00000000..05ef8e8d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestSize.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestSize : Luban.BeanBase +{ + public TestSize(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("x1"); int _n0 = __json0.GetArrayLength(); X1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X3.Add(__v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X4.Add(_k0, _v0); } } + } + + public static TestSize DeserializeTestSize(JsonElement _buf) + { + return new test.TestSize(_buf); + } + + public readonly int Id; + public readonly int[] X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.HashSet X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = 340006319; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.TestString.cs b/luban_examples/Projects/CfgValidator/Gen/test.TestString.cs new file mode 100644 index 00000000..56a5912c --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.TestString.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestString : Luban.BeanBase +{ + public TestString(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetString(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + Cs1 = test.CompactString.DeserializeCompactString(_buf.GetProperty("cs1")); + Cs2 = test.CompactString.DeserializeCompactString(_buf.GetProperty("cs2")); + } + + public static TestString DeserializeTestString(JsonElement _buf) + { + return new test.TestString(_buf); + } + + public readonly string Id; + public readonly string S1; + public readonly string S2; + public readonly test.CompactString Cs1; + public readonly test.CompactString Cs2; + + public const int __ID__ = 338485823; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + Cs1?.ResolveRef(tables); + Cs2?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "cs1:" + Cs1 + "," + + "cs2:" + Cs2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/CfgValidator/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..048ae322 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test.login.RoleInfo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test.login +{ +public sealed partial class RoleInfo : test.DemoD3 +{ + public RoleInfo(JsonElement _buf) : base(_buf) + { + RoleId = _buf.GetProperty("role_id").GetInt64(); + } + + public static RoleInfo DeserializeRoleInfo(JsonElement _buf) + { + return new test.login.RoleInfo(_buf); + } + + public readonly long RoleId; + + public const int __ID__ = -989153243; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "roleId:" + RoleId + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/CfgValidator/Gen/test2.Rectangle.cs b/luban_examples/Projects/CfgValidator/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..6242e117 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/test2.Rectangle.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test2 +{ +/// +/// 矩形 +/// +public sealed partial class Rectangle : test.Shape +{ + public Rectangle(JsonElement _buf) : base(_buf) + { + Width = _buf.GetProperty("width").GetSingle(); + Height = _buf.GetProperty("height").GetSingle(); + } + + public static Rectangle DeserializeRectangle(JsonElement _buf) + { + return new test2.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = 694982337; + 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/luban_examples/Projects/CfgValidator/Gen/vec2.cs b/luban_examples/Projects/CfgValidator/Gen/vec2.cs new file mode 100644 index 00000000..cedcc8d8 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/vec2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec2 +{ + public vec2(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + } + + public static vec2 Deserializevec2(JsonElement _buf) + { + return new vec2(_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/luban_examples/Projects/CfgValidator/Gen/vec3.cs b/luban_examples/Projects/CfgValidator/Gen/vec3.cs new file mode 100644 index 00000000..10bf9442 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/vec3.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec3 +{ + public vec3(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + Z = _buf.GetProperty("z").GetSingle(); + } + + public static vec3 Deserializevec3(JsonElement _buf) + { + return new vec3(_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/luban_examples/Projects/CfgValidator/Gen/vec4.cs b/luban_examples/Projects/CfgValidator/Gen/vec4.cs new file mode 100644 index 00000000..978601dd --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Gen/vec4.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec4 +{ + public vec4(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + Z = _buf.GetProperty("z").GetSingle(); + W = _buf.GetProperty("w").GetSingle(); + } + + public static vec4 Deserializevec4(JsonElement _buf) + { + return new vec4(_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/luban_examples/Projects/CfgValidator/LubanLib/BeanBase.cs b/luban_examples/Projects/CfgValidator/LubanLib/BeanBase.cs new file mode 100644 index 00000000..dcc5b16d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/LubanLib/BeanBase.cs @@ -0,0 +1,8 @@ + +namespace Luban +{ + public abstract class BeanBase : ITypeId + { + public abstract int GetTypeId(); + } +} diff --git a/luban_examples/Projects/CfgValidator/LubanLib/ByteBuf.cs b/luban_examples/Projects/CfgValidator/LubanLib/ByteBuf.cs new file mode 100644 index 00000000..54b56b13 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/LubanLib/ByteBuf.cs @@ -0,0 +1,1568 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Text; + +namespace Luban +{ + + public enum EDeserializeError + { + OK, + NOT_ENOUGH, + EXCEED_SIZE, + // UNMARSHAL_ERR, + } + + public class SerializationException : Exception + { + public SerializationException() { } + public SerializationException(string msg) : base(msg) { } + + public SerializationException(string message, Exception innerException) : base(message, innerException) + { + } + } + + public readonly struct SegmentSaveState + { + public SegmentSaveState(int readerIndex, int writerIndex) + { + ReaderIndex = readerIndex; + WriterIndex = writerIndex; + } + + public int ReaderIndex { get; } + + public int WriterIndex { get; } + } + + public sealed class ByteBuf : ICloneable, IEquatable + { + public ByteBuf() + { + Bytes = Array.Empty(); + ReaderIndex = WriterIndex = 0; + } + + public ByteBuf(int capacity) + { + Bytes = capacity > 0 ? new byte[capacity] : Array.Empty(); + ReaderIndex = 0; + WriterIndex = 0; + } + + public ByteBuf(byte[] bytes) + { + Bytes = bytes; + ReaderIndex = 0; + WriterIndex = Capacity; + } + + public ByteBuf(byte[] bytes, int readIndex, int writeIndex) + { + Bytes = bytes; + ReaderIndex = readIndex; + WriterIndex = writeIndex; + } + + public ByteBuf(int capacity, Action releaser) : this(capacity) + { + _releaser = releaser; + } + + public static ByteBuf Wrap(byte[] bytes) + { + return new ByteBuf(bytes, 0, bytes.Length); + } + + public void Replace(byte[] bytes) + { + Bytes = bytes; + ReaderIndex = 0; + WriterIndex = Capacity; + } + + public void Replace(byte[] bytes, int beginPos, int endPos) + { + Bytes = bytes; + ReaderIndex = beginPos; + WriterIndex = endPos; + } + + public int ReaderIndex { get; set; } + + public int WriterIndex { get; set; } + + private readonly Action _releaser; + + public int Capacity => Bytes.Length; + + public int Size { get { return WriterIndex - ReaderIndex; } } + + public bool Empty => WriterIndex <= ReaderIndex; + + public bool NotEmpty => WriterIndex > ReaderIndex; + + + public void AddWriteIndex(int add) + { + WriterIndex += add; + } + + public void AddReadIndex(int add) + { + ReaderIndex += add; + } + +#pragma warning disable CA1819 // 属性不应返回数组 + public byte[] Bytes { get; private set; } +#pragma warning restore CA1819 // 属性不应返回数组 + + public byte[] CopyData() + { + var n = Remaining; + if (n > 0) + { + var arr = new byte[n]; + Buffer.BlockCopy(Bytes, ReaderIndex, arr, 0, n); + return arr; + } + else + { + return Array.Empty(); + } + } + + public int Remaining { get { return WriterIndex - ReaderIndex; } } + + public void DiscardReadBytes() + { + WriterIndex -= ReaderIndex; + Array.Copy(Bytes, ReaderIndex, Bytes, 0, WriterIndex); + ReaderIndex = 0; + } + + public int NotCompactWritable { get { return Capacity - WriterIndex; } } + + public void WriteBytesWithoutSize(byte[] bs) + { + WriteBytesWithoutSize(bs, 0, bs.Length); + } + + public void WriteBytesWithoutSize(byte[] bs, int offset, int len) + { + EnsureWrite(len); + Buffer.BlockCopy(bs, offset, Bytes, WriterIndex, len); + WriterIndex += len; + } + + public void Clear() + { + ReaderIndex = WriterIndex = 0; + } + + private const int MIN_CAPACITY = 16; + + private static int PropSize(int initSize, int needSize) + { + for (int i = Math.Max(initSize, MIN_CAPACITY); ; i <<= 1) + { + if (i >= needSize) + { + return i; + } + } + } + + private void EnsureWrite0(int size) + { + var needSize = WriterIndex + size - ReaderIndex; + if (needSize < Capacity) + { + WriterIndex -= ReaderIndex; + Array.Copy(Bytes, ReaderIndex, Bytes, 0, WriterIndex); + ReaderIndex = 0; + } + else + { + int newCapacity = PropSize(Capacity, needSize); + var newBytes = new byte[newCapacity]; + WriterIndex -= ReaderIndex; + Buffer.BlockCopy(Bytes, ReaderIndex, newBytes, 0, WriterIndex); + ReaderIndex = 0; + Bytes = newBytes; + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void EnsureWrite(int size) + { + if (WriterIndex + size > Capacity) + { + EnsureWrite0(size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private void EnsureRead(int size) + { + if (ReaderIndex + size > WriterIndex) + { + throw new SerializationException(); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private bool CanRead(int size) + { + return (ReaderIndex + size <= WriterIndex); + } + + public void Append(byte x) + { + EnsureWrite(1); + Bytes[WriterIndex++] = x; + } + + public void WriteBool(bool b) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)(b ? 1 : 0); + } + + public bool ReadBool() + { + EnsureRead(1); + return Bytes[ReaderIndex++] != 0; + } + + public void WriteByte(byte x) + { + EnsureWrite(1); + Bytes[WriterIndex++] = x; + } + + public byte ReadByte() + { + EnsureRead(1); + return Bytes[ReaderIndex++]; + } + + + public void WriteShort(short x) + { + if (x >= 0) + { + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + return; + } + else if (x < 0x4000) + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + return; + } + } + EnsureWrite(3); + Bytes[WriterIndex] = 0xff; + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + WriterIndex += 3; + } + + public short ReadShort() + { + EnsureRead(1); + int h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return (short)h; + } + else if (h < 0xc0) + { + EnsureRead(2); + int x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return (short)x; + } + else if ((h == 0xff)) + { + EnsureRead(3); + int x = (Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return (short)x; + } + else + { + throw new SerializationException(); + } + } + + public short ReadFshort() + { + EnsureRead(2); + short x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(short*)b; + } + } +#else + x = (short)((Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex]); + +#endif + ReaderIndex += 2; + return x; + } + + public void WriteFshort(short x) + { + EnsureWrite(2); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(short*)b = x; + } + } +#else + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); +#endif + WriterIndex += 2; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void WriteInt(int x) + { + WriteUint((uint)x); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int ReadInt() + { + return (int)ReadUint(); + } + + + public void WriteUint(uint x) + { + // 如果有修改,记得也把 EndWriteSegment改了 + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex] = (byte)((x >> 16) | 0xc0); + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + Bytes[WriterIndex + 3] = (byte)x; + Bytes[WriterIndex + 2] = (byte)(x >> 8); + Bytes[WriterIndex + 1] = (byte)(x >> 16); + Bytes[WriterIndex] = (byte)((x >> 24) | 0xe0); + WriterIndex += 4; + } + else + { + EnsureWrite(5); + Bytes[WriterIndex] = 0xf0; + Bytes[WriterIndex + 4] = (byte)x; + Bytes[WriterIndex + 3] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 1] = (byte)(x >> 24); + WriterIndex += 5; + } + } + + public uint ReadUint() + { + /// + /// 警告! 如有修改,记得调整 TryDeserializeInplaceOctets + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return h; + } + else if (h < 0xc0) + { + EnsureRead(2); + uint x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return x; + } + else if (h < 0xe0) + { + EnsureRead(3); + uint x = ((h & 0x1f) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return x; + } + else if (h < 0xf0) + { + + EnsureRead(4); + uint x = ((h & 0x0f) << 24) | ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + return x; + } + else + { + EnsureRead(5); + uint x = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)(Bytes[ReaderIndex + 2] << 16)) | ((uint)Bytes[ReaderIndex + 3] << 8) | Bytes[ReaderIndex + 4]; + ReaderIndex += 5; + return x; + } + } + + public unsafe void WriteUint_Unsafe(uint x) + { + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)(x << 1); + } + else if (x < 0x4000)// 10 11 1111, - + { + EnsureWrite(2); + + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 2 | 0b01); + } + + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 3 | 0b011); + } + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 4 | 0b0111); + } + WriterIndex += 4; + } + else + { + EnsureWrite(5); + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 5 | 0b01111); + } + WriterIndex += 5; + } + } + + public unsafe uint ReadUint_Unsafe() + { + /// + /// 警告! 如有修改,记得调整 TryDeserializeInplaceOctets + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if ((h & 0b1) == 0b0) + { + ReaderIndex++; + return (h >> 1); + } + else if ((h & 0b11) == 0b01) + { + EnsureRead(2); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 2; + return (*(uint*)rb) >> 2; + } + } + else if ((h & 0b111) == 0b011) + { + EnsureRead(3); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 3; + return (*(uint*)rb) >> 3; + } + } + else if ((h & 0b1111) == 0b0111) + { + EnsureRead(4); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 4; + return (*(uint*)rb) >> 4; + } + } + else + { + EnsureRead(5); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 5; + return (*(uint*)rb) >> 5; + } + } + } + + public int ReadFint() + { + EnsureRead(4); + int x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(int*)b; + } + } +#else + x = (Bytes[ReaderIndex + 3] << 24) | (Bytes[ReaderIndex + 2] << 16) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + +#endif + ReaderIndex += 4; + return x; + } + + + public void WriteFint(int x) + { + EnsureWrite(4); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(int*)b = x; + } + } +#else + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); +#endif + WriterIndex += 4; + } + + public int ReadFint_Safe() + { + EnsureRead(4); + int x; + + x = (Bytes[ReaderIndex + 3] << 24) | (Bytes[ReaderIndex + 2] << 16) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + + ReaderIndex += 4; + return x; + } + + + public void WriteFint_Safe(int x) + { + EnsureWrite(4); + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + WriterIndex += 4; + } + + public void WriteLong(long x) + { + WriteUlong((ulong)x); + } + + public long ReadLong() + { + return (long)ReadUlong(); + } + + public void WriteNumberAsLong(double x) + { + WriteLong((long)x); + } + + public double ReadLongAsNumber() + { + return ReadLong(); + } + + private void WriteUlong(ulong x) + { + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex] = (byte)((x >> 16) | 0xc0); + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + Bytes[WriterIndex + 3] = (byte)x; + Bytes[WriterIndex + 2] = (byte)(x >> 8); + Bytes[WriterIndex + 1] = (byte)(x >> 16); + Bytes[WriterIndex] = (byte)((x >> 24) | 0xe0); + WriterIndex += 4; + } + else if (x < 0x800000000L) // 1111 0xxx,-,-,-,- + { + EnsureWrite(5); + Bytes[WriterIndex + 4] = (byte)x; + Bytes[WriterIndex + 3] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 1] = (byte)(x >> 24); + Bytes[WriterIndex] = (byte)((x >> 32) | 0xf0); + WriterIndex += 5; + } + else if (x < 0x40000000000L) // 1111 10xx, + { + EnsureWrite(6); + Bytes[WriterIndex + 5] = (byte)x; + Bytes[WriterIndex + 4] = (byte)(x >> 8); + Bytes[WriterIndex + 3] = (byte)(x >> 16); + Bytes[WriterIndex + 2] = (byte)(x >> 24); + Bytes[WriterIndex + 1] = (byte)(x >> 32); + Bytes[WriterIndex] = (byte)((x >> 40) | 0xf8); + WriterIndex += 6; + } + else if (x < 0x200000000000L) // 1111 110x, + { + EnsureWrite(7); + Bytes[WriterIndex + 6] = (byte)x; + Bytes[WriterIndex + 5] = (byte)(x >> 8); + Bytes[WriterIndex + 4] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + Bytes[WriterIndex + 2] = (byte)(x >> 32); + Bytes[WriterIndex + 1] = (byte)(x >> 40); + Bytes[WriterIndex] = (byte)((x >> 48) | 0xfc); + WriterIndex += 7; + } + else if (x < 0x100000000000000L) // 1111 1110 + { + EnsureWrite(8); + Bytes[WriterIndex + 7] = (byte)x; + Bytes[WriterIndex + 6] = (byte)(x >> 8); + Bytes[WriterIndex + 5] = (byte)(x >> 16); + Bytes[WriterIndex + 4] = (byte)(x >> 24); + Bytes[WriterIndex + 3] = (byte)(x >> 32); + Bytes[WriterIndex + 2] = (byte)(x >> 40); + Bytes[WriterIndex + 1] = (byte)(x >> 48); + Bytes[WriterIndex] = 0xfe; + WriterIndex += 8; + } + else // 1111 1111 + { + EnsureWrite(9); + Bytes[WriterIndex] = 0xff; + Bytes[WriterIndex + 8] = (byte)x; + Bytes[WriterIndex + 7] = (byte)(x >> 8); + Bytes[WriterIndex + 6] = (byte)(x >> 16); + Bytes[WriterIndex + 5] = (byte)(x >> 24); + Bytes[WriterIndex + 4] = (byte)(x >> 32); + Bytes[WriterIndex + 3] = (byte)(x >> 40); + Bytes[WriterIndex + 2] = (byte)(x >> 48); + Bytes[WriterIndex + 1] = (byte)(x >> 56); + WriterIndex += 9; + } + } + + public ulong ReadUlong() + { + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return h; + } + else if (h < 0xc0) + { + EnsureRead(2); + uint x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return x; + } + else if (h < 0xe0) + { + EnsureRead(3); + uint x = ((h & 0x1f) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return x; + } + else if (h < 0xf0) + { + EnsureRead(4); + uint x = ((h & 0x0f) << 24) | ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + return x; + } + else if (h < 0xf8) + { + EnsureRead(5); + uint xl = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)(Bytes[ReaderIndex + 2] << 16)) | ((uint)Bytes[ReaderIndex + 3] << 8) | (Bytes[ReaderIndex + 4]); + uint xh = h & 0x07; + ReaderIndex += 5; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xfc) + { + EnsureRead(6); + uint xl = ((uint)Bytes[ReaderIndex + 2] << 24) | ((uint)(Bytes[ReaderIndex + 3] << 16)) | ((uint)Bytes[ReaderIndex + 4] << 8) | (Bytes[ReaderIndex + 5]); + uint xh = ((h & 0x03) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 6; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xfe) + { + EnsureRead(7); + uint xl = ((uint)Bytes[ReaderIndex + 3] << 24) | ((uint)(Bytes[ReaderIndex + 4] << 16)) | ((uint)Bytes[ReaderIndex + 5] << 8) | (Bytes[ReaderIndex + 6]); + uint xh = ((h & 0x01) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 7; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xff) + { + EnsureRead(8); + uint xl = ((uint)Bytes[ReaderIndex + 4] << 24) | ((uint)(Bytes[ReaderIndex + 5] << 16)) | ((uint)Bytes[ReaderIndex + 6] << 8) | (Bytes[ReaderIndex + 7]); + uint xh = /*((h & 0x01) << 24) |*/ ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 8; + return ((ulong)xh << 32) | xl; + } + else + { + EnsureRead(9); + uint xl = ((uint)Bytes[ReaderIndex + 5] << 24) | ((uint)(Bytes[ReaderIndex + 6] << 16)) | ((uint)Bytes[ReaderIndex + 7] << 8) | (Bytes[ReaderIndex + 8]); + uint xh = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)Bytes[ReaderIndex + 2] << 16) | ((uint)Bytes[ReaderIndex + 3] << 8) | Bytes[ReaderIndex + 4]; + ReaderIndex += 9; + return ((ulong)xh << 32) | xl; + } + } + + + public void WriteFlong(long x) + { + EnsureWrite(8); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(long*)b = x; + } + } +#else + + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + Bytes[WriterIndex + 4] = (byte)(x >> 32); + Bytes[WriterIndex + 5] = (byte)(x >> 40); + Bytes[WriterIndex + 6] = (byte)(x >> 48); + Bytes[WriterIndex + 7] = (byte)(x >> 56); +#endif + WriterIndex += 8; + } + + public long ReadFlong() + { + EnsureRead(8); + long x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(long*)b; + } + } +#else + int xl = (Bytes[ReaderIndex + 3] << 24) | ((Bytes[ReaderIndex + 2] << 16)) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + int xh = (Bytes[ReaderIndex + 7] << 24) | (Bytes[ReaderIndex + 6] << 16) | (Bytes[ReaderIndex + 5] << 8) | Bytes[ReaderIndex + 4]; + x = ((long)xh << 32) | (long)xl; +#endif + ReaderIndex += 8; + return x; + } + + private static unsafe void Copy8(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + dst[4] = src[4]; + dst[5] = src[5]; + dst[6] = src[6]; + dst[7] = src[7]; + } + + private static unsafe void Copy4(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + } + + + //const bool isLittleEndian = true; + public void WriteFloat(float x) + { + EnsureWrite(4); + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 4 == 0) + { + *(float*)b = x; + } + else + { + Copy4(b, (byte*)&x); + } +#else + *(float*)b = x; +#endif + } + } + + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, endPos, 4); + //} + WriterIndex += 4; + } + + public float ReadFloat() + { + EnsureRead(4); + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, beginPos, 4); + //} + float x; + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 4 == 0) + { + x = *(float*)b; + } + else + { + *((int*)&x) = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24); + } +#else + x = *(float*)b; +#endif + } + } + + ReaderIndex += 4; + return x; + } + + public void WriteDouble(double x) + { + EnsureWrite(8); + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 8 == 0) + { + *(double*)b = x; + } + else + { + Copy8(b, (byte*)&x); + } +#else + *(double*)b = x; +#endif + } + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, endPos, 8); + //} + } + + WriterIndex += 8; + } + + public double ReadDouble() + { + EnsureRead(8); + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, beginPos, 8); + //} + double x; + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 8 == 0) + { + x = *(double*)b; + } + else + { + int low = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24); + int high = (b[4]) | (b[5] << 8) | (b[6] << 16) | (b[7] << 24); + *((long*)&x) = ((long)high << 32) | (uint)low; + } +#else + x = *(double*)b; +#endif + } + } + + ReaderIndex += 8; + return x; + } + + public void WriteSize(int n) + { + WriteUint((uint)n); + } + + public int ReadSize() + { + return (int)ReadUint(); + } + + // marshal int + // n -> (n << 1) ^ (n >> 31) + // Read + // (x >>> 1) ^ ((x << 31) >> 31) + // (x >>> 1) ^ -(n&1) + public void WriteSint(int x) + { + WriteUint(((uint)x << 1) ^ ((uint)x >> 31)); + } + + public int ReadSint() + { + uint x = ReadUint(); + return (int)((x >> 1) ^ ((x & 1) << 31)); + } + + + // marshal long + // n -> (n << 1) ^ (n >> 63) + // Read + // (x >>> 1) ^((x << 63) >> 63) + // (x >>> 1) ^ -(n&1L) + public void WriteSlong(long x) + { + WriteUlong(((ulong)x << 1) ^ ((ulong)x >> 63)); + } + + public long ReadSlong() + { + long x = ReadLong(); + return ((long)((ulong)x >> 1) ^ ((x & 1) << 63)); + } + + public void WriteString(string x) + { + var n = x != null ? Encoding.UTF8.GetByteCount(x) : 0; + WriteSize(n); + if (n > 0) + { + EnsureWrite(n); + Encoding.UTF8.GetBytes(x, 0, x.Length, Bytes, WriterIndex); + WriterIndex += n; + } + } + + // byte[], [start, end) + public static Func StringCacheFinder { get; set; } + + public string ReadString() + { + var n = ReadSize(); + if (n > 0) + { + EnsureRead(n); + string s; + + if (StringCacheFinder == null) + { + s = Encoding.UTF8.GetString(Bytes, ReaderIndex, n); + } + else + { + // 只缓存比较小的字符串 + s = StringCacheFinder(Bytes, ReaderIndex, n); + } + ReaderIndex += n; + return s; + } + else + { + return string.Empty; + } + } + + public void WriteBytes(byte[] x) + { + var n = x != null ? x.Length : 0; + WriteSize(n); + if (n > 0) + { + EnsureWrite(n); + x.CopyTo(Bytes, WriterIndex); + WriterIndex += n; + } + } + + public byte[] ReadBytes() + { + var n = ReadSize(); + if (n > 0) + { + EnsureRead(n); + var x = new byte[n]; + Buffer.BlockCopy(Bytes, ReaderIndex, x, 0, n); + ReaderIndex += n; + return x; + } + else + { + return Array.Empty(); + } + } + + // 以下是一些特殊类型 + + public void WriteComplex(Complex x) + { + WriteDouble(x.Real); + WriteDouble(x.Imaginary); + } + + public Complex ReadComplex() + { + var x = ReadDouble(); + var y = ReadDouble(); + return new Complex(x, y); + } + + public void WriteVector2(Vector2 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + } + + public Vector2 ReadVector2() + { + float x = ReadFloat(); + float y = ReadFloat(); + return new Vector2(x, y); + } + + public void WriteVector3(Vector3 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + } + + public Vector3 ReadVector3() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + return new Vector3(x, y, z); + } + + public void WriteVector4(Vector4 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + WriteFloat(x.W); + } + + public Vector4 ReadVector4() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + float w = ReadFloat(); + return new Vector4(x, y, z, w); + } + + + public void WriteQuaternion(Quaternion x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + WriteFloat(x.W); + } + + public Quaternion ReadQuaternion() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + float w = ReadFloat(); + return new Quaternion(x, y, z, w); + } + + + public void WriteMatrix4x4(Matrix4x4 x) + { + WriteFloat(x.M11); + WriteFloat(x.M12); + WriteFloat(x.M13); + WriteFloat(x.M14); + WriteFloat(x.M21); + WriteFloat(x.M22); + WriteFloat(x.M23); + WriteFloat(x.M24); + WriteFloat(x.M31); + WriteFloat(x.M32); + WriteFloat(x.M33); + WriteFloat(x.M34); + WriteFloat(x.M41); + WriteFloat(x.M42); + WriteFloat(x.M43); + WriteFloat(x.M44); + } + + public Matrix4x4 ReadMatrix4x4() + { + float m11 = ReadFloat(); + float m12 = ReadFloat(); + float m13 = ReadFloat(); + float m14 = ReadFloat(); + float m21 = ReadFloat(); + float m22 = ReadFloat(); + float m23 = ReadFloat(); + float m24 = ReadFloat(); + float m31 = ReadFloat(); + float m32 = ReadFloat(); + float m33 = ReadFloat(); + float m34 = ReadFloat(); + float m41 = ReadFloat(); + float m42 = ReadFloat(); + float m43 = ReadFloat(); + float m44 = ReadFloat(); + return new Matrix4x4(m11, m12, m13, m14, + m21, m22, m23, m24, + m31, m32, m33, m34, + m41, m42, m43, m44); + } + + internal void SkipBytes() + { + int n = ReadSize(); + EnsureRead(n); + ReaderIndex += n; + } + + + public void WriteByteBufWithSize(ByteBuf o) + { + int n = o.Size; + if (n > 0) + { + WriteSize(n); + WriteBytesWithoutSize(o.Bytes, o.ReaderIndex, n); + } + else + { + WriteByte(0); + } + } + + public void WriteByteBufWithoutSize(ByteBuf o) + { + int n = o.Size; + if (n > 0) + { + WriteBytesWithoutSize(o.Bytes, o.ReaderIndex, n); + } + } + + public bool TryReadByte(out byte x) + { + if (CanRead(1)) + { + x = Bytes[ReaderIndex++]; + return true; + } + else + { + x = 0; + return false; + } + } + + public EDeserializeError TryDeserializeInplaceByteBuf(int maxSize, ByteBuf inplaceTempBody) + { + //if (!CanRead(1)) { return EDeserializeError.NOT_ENOUGH; } + int oldReadIndex = ReaderIndex; + bool commit = false; + try + { + int n; + int h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + n = h; + } + else if (h < 0xc0) + { + if (!CanRead(2)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + } + else if (h < 0xe0) + { + if (!CanRead(3)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x1f) << 16) | (Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + } + else if (h < 0xf0) + { + if (!CanRead(4)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x0f) << 24) | (Bytes[ReaderIndex + 1] << 16) | (Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + } + else + { + return EDeserializeError.EXCEED_SIZE; + } + + if (n > maxSize) + { + return EDeserializeError.EXCEED_SIZE; + } + if (Remaining < n) + { + return EDeserializeError.NOT_ENOUGH; + } + + int inplaceReadIndex = ReaderIndex; + ReaderIndex += n; + + inplaceTempBody.Replace(Bytes, inplaceReadIndex, ReaderIndex); + commit = true; + } + finally + { + if (!commit) + { + ReaderIndex = oldReadIndex; + } + } + + return EDeserializeError.OK; + } + + public void WriteRawTag(byte b1) + { + EnsureWrite(1); + Bytes[WriterIndex++] = b1; + } + + public void WriteRawTag(byte b1, byte b2) + { + EnsureWrite(2); + Bytes[WriterIndex] = b1; + Bytes[WriterIndex + 1] = b2; + WriterIndex += 2; + } + + public void WriteRawTag(byte b1, byte b2, byte b3) + { + EnsureWrite(3); + Bytes[WriterIndex] = b1; + Bytes[WriterIndex + 1] = b2; + Bytes[WriterIndex + 2] = b3; + WriterIndex += 3; + } + + #region segment + + + public void BeginWriteSegment(out int oldSize) + { + oldSize = Size; + EnsureWrite(1); + WriterIndex += 1; + } + + public void EndWriteSegment(int oldSize) + { + int startPos = ReaderIndex + oldSize; + int segmentSize = WriterIndex - startPos - 1; + + // 0 111 1111 + if (segmentSize < 0x80) + { + Bytes[startPos] = (byte)segmentSize; + } + else if (segmentSize < 0x4000) // 10 11 1111, - + { + EnsureWrite(1); + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)segmentSize; + + Bytes[startPos] = (byte)((segmentSize >> 8) | 0x80); + WriterIndex += 1; + } + else if (segmentSize < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = Bytes[startPos + 2]; + Bytes[startPos + 2] = (byte)segmentSize; + + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)(segmentSize >> 8); + + Bytes[startPos] = (byte)((segmentSize >> 16) | 0xc0); + WriterIndex += 2; + } + else if (segmentSize < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = Bytes[startPos + 3]; + Bytes[startPos + 3] = (byte)segmentSize; + + Bytes[WriterIndex + 1] = Bytes[startPos + 2]; + Bytes[startPos + 2] = (byte)(segmentSize >> 8); + + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)(segmentSize >> 16); + + Bytes[startPos] = (byte)((segmentSize >> 24) | 0xe0); + WriterIndex += 3; + } + else + { + throw new SerializationException("exceed max segment size"); + } + } + + public void ReadSegment(out int startIndex, out int segmentSize) + { + EnsureRead(1); + int h = Bytes[ReaderIndex++]; + + startIndex = ReaderIndex; + + if (h < 0x80) + { + segmentSize = h; + ReaderIndex += segmentSize; + } + else if (h < 0xc0) + { + EnsureRead(1); + segmentSize = ((h & 0x3f) << 8) | Bytes[ReaderIndex]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + ReaderIndex += segmentSize + 1; + } + else if (h < 0xe0) + { + EnsureRead(2); + segmentSize = ((h & 0x1f) << 16) | ((int)Bytes[ReaderIndex] << 8) | Bytes[ReaderIndex + 1]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + Bytes[ReaderIndex + 1] = Bytes[endPos + 1]; + ReaderIndex += segmentSize + 2; + } + else if (h < 0xf0) + { + EnsureRead(3); + segmentSize = ((h & 0x0f) << 24) | ((int)Bytes[ReaderIndex] << 16) | ((int)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + Bytes[ReaderIndex + 1] = Bytes[endPos + 1]; + Bytes[ReaderIndex + 2] = Bytes[endPos + 2]; + ReaderIndex += segmentSize + 3; + } + else + { + throw new SerializationException("exceed max size"); + } + if (ReaderIndex > WriterIndex) + { + throw new SerializationException("segment data not enough"); + } + } + + public void ReadSegment(ByteBuf buf) + { + ReadSegment(out int startPos, out var size); + buf.Bytes = Bytes; + buf.ReaderIndex = startPos; + buf.WriterIndex = startPos + size; + } + + public void EnterSegment(out SegmentSaveState saveState) + { + ReadSegment(out int startPos, out int size); + + saveState = new SegmentSaveState(ReaderIndex, WriterIndex); + ReaderIndex = startPos; + WriterIndex = startPos + size; + } + + public void LeaveSegment(SegmentSaveState saveState) + { + ReaderIndex = saveState.ReaderIndex; + WriterIndex = saveState.WriterIndex; + } + + #endregion + + public override string ToString() + { + string[] datas = new string[WriterIndex - ReaderIndex]; + for (var i = ReaderIndex; i < WriterIndex; i++) + { + datas[i - ReaderIndex] = Bytes[i].ToString("X2"); + } + return string.Join(".", datas); + } + + public override bool Equals(object obj) + { + return (obj is ByteBuf other) && Equals(other); + } + + public bool Equals(ByteBuf other) + { + if (other == null) + { + return false; + } + if (Size != other.Size) + { + return false; + } + for (int i = 0, n = Size; i < n; i++) + { + if (Bytes[ReaderIndex + i] != other.Bytes[other.ReaderIndex + i]) + { + return false; + } + } + return true; + } + + public object Clone() + { + return new ByteBuf(CopyData()); + } + + + public static ByteBuf FromString(string value) + { + var ss = value.Split(','); + byte[] data = new byte[ss.Length]; + for (int i = 0; i < data.Length; i++) + { + data[i] = byte.Parse(ss[i]); + } + return new ByteBuf(data); + } + + public override int GetHashCode() + { + int hash = 17; + for (int i = ReaderIndex; i < WriterIndex; i++) + { + hash = hash * 23 + Bytes[i]; + } + return hash; + } + + public void Release() + { + _releaser?.Invoke(this); + } + +#if SUPPORT_PUERTS_ARRAYBUF + // -- add for puerts + public Puerts.ArrayBuffer ReadArrayBuffer() + { + return new Puerts.ArrayBuffer(ReadBytes()); + } + + public void WriteArrayBuffer(Puerts.ArrayBuffer bytes) + { + WriteBytes(bytes.Bytes); + } +#endif + } +} diff --git a/luban_examples/Projects/CfgValidator/LubanLib/ITypeId.cs b/luban_examples/Projects/CfgValidator/LubanLib/ITypeId.cs new file mode 100644 index 00000000..3ea44b39 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/LubanLib/ITypeId.cs @@ -0,0 +1,7 @@ +namespace Luban +{ + public interface ITypeId + { + int GetTypeId(); + } +} diff --git a/luban_examples/Projects/CfgValidator/LubanLib/StringUtil.cs b/luban_examples/Projects/CfgValidator/LubanLib/StringUtil.cs new file mode 100644 index 00000000..0648ffcc --- /dev/null +++ b/luban_examples/Projects/CfgValidator/LubanLib/StringUtil.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; +using System.Text; + +namespace Luban +{ + public static class StringUtil + { + public static string ToStr(object o) + { + return ToStr(o, new StringBuilder()); + } + + public static string ToStr(object o, StringBuilder sb) + { + foreach (var p in o.GetType().GetFields()) + { + + sb.Append($"{p.Name} = {p.GetValue(o)},"); + } + + foreach (var p in o.GetType().GetProperties()) + { + sb.Append($"{p.Name} = {p.GetValue(o)},"); + } + return sb.ToString(); + } + + public static string ArrayToString(T[] arr) + { + return "[" + string.Join(",", arr) + "]"; + } + + + public static string CollectionToString(IEnumerable arr) + { + return "[" + string.Join(",", arr) + "]"; + } + + + public static string CollectionToString(IDictionary dic) + { + var sb = new StringBuilder('{'); + foreach (var e in dic) + { + sb.Append(e.Key).Append(':'); + sb.Append(e.Value).Append(','); + } + sb.Append('}'); + return sb.ToString(); + } + } +} diff --git a/luban_examples/Projects/CfgValidator/Modules/Mail.cs b/luban_examples/Projects/CfgValidator/Modules/Mail.cs new file mode 100644 index 00000000..a141c552 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Modules/Mail.cs @@ -0,0 +1,27 @@ +using System.Linq; +using CfgCheck; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace CfgCheck.Modules +{ + [TestClass] + public class Mail + { + [TestMethod] + public void SystemMailAwardTest_NotEmpty() + { + // var mailConfig = ConfigSetUp.Configs.TbSystemMail; + // + // // 接下来就可以对邮件配置表进行check操作啦 + // // 下面是检查奖励是否为空的demo示例 + // // 建议测试用例的命名规则 使用 MethodName_ExpectedBehavior这样的方式 + // + // var mailList = mailConfig.DataList; + // foreach (var mailItem in mailList) + // { + // Assert.IsNotNull(mailItem.Award); + // } + } + + } +} diff --git a/luban_examples/Projects/CfgValidator/Modules/Misc.cs b/luban_examples/Projects/CfgValidator/Modules/Misc.cs new file mode 100644 index 00000000..96517b92 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Modules/Misc.cs @@ -0,0 +1,41 @@ +using cfg.item; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Text; + +namespace CfgCheck.Modules +{ + [TestClass] + public class Misc + { + + [TestMethod] + public void Check_TreasureBoxConfig() + { + // foreach (var itemConfig in ConfigSetUp.Configs.TbItem.DataList) + // { + // var itemId = itemConfig.Id; + // if (itemConfig.MajorType == EMajorType.TREASURE_BOX) + // { + // var boxConfig = (TreasureBox)ConfigSetUp.Configs.TbItemExtra.Get(itemId); + // if (itemConfig.MinorType == EMinorType.TREASURE_BOX) + // { + // Assert.AreNotEqual(0, boxConfig.DropIds.Count, $"宝箱掉落列表不能为空. itemId:{itemId}"); + // } + // + // if (itemConfig.MinorType == EMinorType.MULTI_CHOOSE_TREASURE_BOX) + // { + // Assert.AreNotEqual(0, boxConfig.ChooseList.Count, $"多选宝箱 选择列表不能为空. itemId:{itemId}"); + // + // foreach (var chooseConfig in boxConfig.ChooseList) + // { + // cfg.bonus.DropInfo dropConfig = ConfigSetUp.Configs.TbDrop.Get(chooseConfig.DropId); + // Assert.IsTrue(dropConfig.Bonus is cfg.bonus.Item, $"多选宝箱:{itemId} 中的 掉落id:{chooseConfig.DropId} 对应的bonus必须为 Item 类型"); + // } + // } + // } + // } + } + } +} diff --git a/luban_examples/Projects/CfgValidator/Modules/Role.cs b/luban_examples/Projects/CfgValidator/Modules/Role.cs new file mode 100644 index 00000000..343f8c59 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/Modules/Role.cs @@ -0,0 +1,48 @@ +using cfg.item; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; + +namespace CfgCheck.Modules +{ + [TestClass] + public class Role + { + [TestMethod] + public void Check_LevelConsequence() + { + // int curLevel = 0; + // foreach (var cfgLevel in ConfigSetUp.Configs.TbRoleLevelExpAttr.DataList) + // { + // ++curLevel; + // Assert.AreEqual(curLevel, cfgLevel.Level, "等级定义不连续"); + // } + } + + [TestMethod] + public void Check_DropBonusItem_ShouldAllBeContainedInLevelCoefficientBonus() + { + // var CoefficientDropBonus = ConfigSetUp.Configs.TbDrop.DataList; + // foreach (var dropItem in CoefficientDropBonus) + // { + // var curBonus = dropItem.Bonus; + // if (curBonus is cfg.bonus.CoefficientItem c) + // { + // var bonusId = c.BonusId; + // var bonusList = c.BonusList; + // var dropTypeSet = bonusList.ItemList.Select(c => c.ItemId).Distinct(); + // var levelBonusCoefficientCfg = ConfigSetUp.Configs.TbRoleLevelBonusCoefficient.Get(bonusId).DistinctBonusInfos; + // var bonusTypeSet = levelBonusCoefficientCfg.SelectMany(c => c.BonusInfo).Select(c => (int)c.Type).Distinct(); + // foreach (var item in dropTypeSet) + // { + // Assert.IsTrue(bonusTypeSet.Contains(item), $"类型{ConfigSetUp.Configs.TbItem.Get(item).MinorType} 没有在等级系数表里配置 等级系数奖励编号: {bonusId}"); + // } + // } + // } + } + + } +} diff --git a/luban_examples/Projects/CfgValidator/nuget.config b/luban_examples/Projects/CfgValidator/nuget.config new file mode 100644 index 00000000..05097ed5 --- /dev/null +++ b/luban_examples/Projects/CfgValidator/nuget.config @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/CfgValidator/run_CfgValidator.bat b/luban_examples/Projects/CfgValidator/run_CfgValidator.bat new file mode 100644 index 00000000..34b93b2d --- /dev/null +++ b/luban_examples/Projects/CfgValidator/run_CfgValidator.bat @@ -0,0 +1,18 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c cs-dotnet-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Gen ^ + -x outputDataDir=..\GenerateDatas\json ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + + +dotnet test -v m +pause \ No newline at end of file diff --git a/luban_examples/Projects/Cpp_bin/App.cpp b/luban_examples/Projects/Cpp_bin/App.cpp new file mode 100644 index 00000000..8a9916f5 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/App.cpp @@ -0,0 +1,21 @@ + + +#include + +#include "schema.h" + +int main() +{ + cfg::Tables tables; + if (tables.load([](::luban::ByteBuf& buf, const std::string& s) { return buf.loadFromFile("../GenerateDatas/bytes/" + s + ".bytes"); })) + { + std::cout << "== load succ == " << std::endl; + } + else + { + std::cout << "== load fail == " << std::endl; + } + return 0; +} + + diff --git a/luban_examples/Projects/Cpp_bin/Gen/schema.h b/luban_examples/Projects/Cpp_bin/Gen/schema.h new file mode 100644 index 00000000..68f8bbe3 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/Gen/schema.h @@ -0,0 +1,4786 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma once +#include +#include + +#include "CfgBean.h" + +namespace cfg { + +namespace ai { + enum class EExecutor + { + CLIENT = 0, + SERVER = 1, + }; + +} + + +namespace ai { + enum class EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + }; + +} + + +namespace ai { + enum class EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + }; + +} + + +namespace ai { + enum class EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + }; + +} + + +namespace ai { + enum class ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + }; + +} + + +namespace ai { + enum class EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + }; + +} + + + + enum class AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + }; + + + + +namespace common { + enum class EBoolOperator + { + AND = 0, + OR = 1, + }; + +} + + +namespace item { + /// + /// 道具品质 + /// + enum class EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + }; + +} + + +namespace item { + enum class ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + }; + +} + + +namespace item { + enum class EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + }; + +} + + +namespace item { + enum class EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + }; + +} + + +namespace item { + enum class EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + }; + +} + + +namespace item { + enum class EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + }; + +} + + +namespace item { + enum class EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + }; + +} + + +namespace item { + enum class EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + }; + +} + + +namespace item { + enum class EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + }; + +} + + +namespace test { + enum class DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + }; + +} + + +namespace test { + enum class DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + }; + +} + + +namespace test { + enum class ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + }; + +} + + +namespace test { + enum class ETestEmptyEnum + { + }; + +} + + +namespace test { + enum class ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + }; + +} + + +namespace test { + enum class ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + }; + +} + + +namespace test { + enum class AccessFlag + { + WRITE = 1, + READ = 2, + TRUNCATE = 4, + NEW = 8, + READ_WRITE = WRITE|READ, + }; + +} + + +namespace ai { struct Blackboard; } +namespace ai { struct BlackboardKey; } +namespace ai { struct BehaviorTree; } +namespace ai { struct Node; } +namespace ai { struct Service; } +namespace ai { struct UeSetDefaultFocus; } +namespace ai { struct ExecuteTimeStatistic; } +namespace ai { struct ChooseTarget; } +namespace ai { struct KeepFaceTarget; } +namespace ai { struct GetOwnerPlayer; } +namespace ai { struct UpdateDailyBehaviorProps; } +namespace ai { struct Decorator; } +namespace ai { struct UeLoop; } +namespace ai { struct UeCooldown; } +namespace ai { struct UeTimeLimit; } +namespace ai { struct UeBlackboard; } +namespace ai { struct KeyQueryOperator; } +namespace ai { struct IsSet; } +namespace ai { struct IsNotSet; } +namespace ai { struct BinaryOperator; } +namespace ai { struct KeyData; } +namespace ai { struct FloatKeyData; } +namespace ai { struct IntKeyData; } +namespace ai { struct StringKeyData; } +namespace ai { struct BlackboardKeyData; } +namespace ai { struct UeForceSuccess; } +namespace ai { struct IsAtLocation; } +namespace ai { struct DistanceLessThan; } +namespace ai { struct FlowNode; } +namespace ai { struct ComposeNode; } +namespace ai { struct Sequence; } +namespace ai { struct Selector; } +namespace ai { struct SimpleParallel; } +namespace ai { struct Task; } +namespace ai { struct UeWait; } +namespace ai { struct UeWaitBlackboardTime; } +namespace ai { struct MoveToTarget; } +namespace ai { struct ChooseSkill; } +namespace ai { struct MoveToRandomLocation; } +namespace ai { struct MoveToLocation; } +namespace ai { struct DebugPrint; } +namespace common { struct GlobalConfig; } +namespace item { struct Item; } +namespace l10n { struct L10NDemo; } +namespace l10n { struct PatchDemo; } +namespace tag { struct TestTag; } +namespace test { struct DemoType2; } +namespace test { struct DemoType1; } +namespace test { struct DemoDynamic; } +namespace test { struct DemoD2; } +namespace test { struct DemoD3; } +namespace test { struct DemoE1; } +namespace test {namespace login { struct RoleInfo; }} +namespace test { struct DemoD5; } +namespace test { struct DateTimeRange; } +namespace test { struct DemoE2; } +namespace test { struct DemoSingletonType; } +namespace test { struct NotIndexList; } +namespace test { struct MultiUnionIndexList; } +namespace test { struct MultiIndexList; } +namespace test { struct MultiRowRecord; } +namespace test { struct MultiRowType1; } +namespace test { struct MultiRowType2; } +namespace test { struct MultiRowType3; } +namespace test { struct TestMultiColumn; } +namespace test { struct Foo; } +namespace test { struct MultiRowTitle; } +namespace test { struct H1; } +namespace test { struct H2; } +namespace test { struct TestNull; } +namespace test { struct DemoPrimitiveTypesTable; } + struct vec2; + struct vec3; + struct vec4; +namespace test { struct TestString; } +namespace test { struct CompactString; } +namespace test { struct DemoGroup; } +namespace test { struct InnerGroup; } +namespace test { struct TestGlobal; } +namespace test { struct TestBeRef; } +namespace test { struct TestRef; } +namespace test { struct RefDynamicBase; } +namespace test { struct RefBean; } +namespace test { struct TestSize; } +namespace test { struct TestSet; } +namespace test { struct DetectEncoding; } +namespace test { struct ItemBase; } +namespace test { struct Item; } +namespace test { struct Equipment; } +namespace test { struct Decorator; } +namespace test { struct TestIndex; } +namespace test { struct TestMap; } +namespace test { struct ExcelFromJson; } +namespace test { struct CompositeJsonTable1; } +namespace test { struct CompositeJsonTable2; } +namespace test { struct CompositeJsonTable3; } +namespace test { struct ExcelFromJsonMultiRow; } +namespace test { struct TestRow; } +namespace test { struct Test3; } +namespace test { struct TestScriptableObject; } +namespace test { struct TestMapper; } + struct DefineFromExcel2; +namespace test { struct Shape; } +namespace test { struct Circle; } +namespace test2 { struct Rectangle; } + +namespace ai { + +struct Blackboard : public luban::CfgBean +{ + static bool deserializeBlackboard(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Blackboard() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String name; + ::luban::String desc; + ::luban::String parentName; + ::luban::Vector<::luban::SharedPtr> keys; + + static constexpr int __ID__ = 1576193005; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct BlackboardKey : public luban::CfgBean +{ + static bool deserializeBlackboardKey(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~BlackboardKey() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String name; + ::luban::String desc; + bool isStatic; + ai::EKeyType type; + ::luban::String typeClassName; + + static constexpr int __ID__ = -511559886; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct BehaviorTree : public luban::CfgBean +{ + static bool deserializeBehaviorTree(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~BehaviorTree() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String name; + ::luban::String desc; + ::luban::String blackboardId; + ::luban::SharedPtr root; + + static constexpr int __ID__ = 159552822; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct Node : public luban::CfgBean +{ + static bool deserializeNode(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Node() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String nodeName; + +}; + +} + +namespace ai { + +struct Service : public ai::Node +{ + static bool deserializeService(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Service() {} + + bool deserialize(::luban::ByteBuf& _buf); + + +}; + +} + +namespace ai { + +struct UeSetDefaultFocus : public ai::Service +{ + static bool deserializeUeSetDefaultFocus(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeSetDefaultFocus() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String keyboardKey; + + static constexpr int __ID__ = 1812449155; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct ExecuteTimeStatistic : public ai::Service +{ + static bool deserializeExecuteTimeStatistic(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~ExecuteTimeStatistic() {} + + bool deserialize(::luban::ByteBuf& _buf); + + + static constexpr int __ID__ = 990693812; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct ChooseTarget : public ai::Service +{ + static bool deserializeChooseTarget(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~ChooseTarget() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String resultTargetKey; + + static constexpr int __ID__ = 1601247918; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct KeepFaceTarget : public ai::Service +{ + static bool deserializeKeepFaceTarget(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~KeepFaceTarget() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String targetActorKey; + + static constexpr int __ID__ = 1195270745; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct GetOwnerPlayer : public ai::Service +{ + static bool deserializeGetOwnerPlayer(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~GetOwnerPlayer() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String playerActorKey; + + static constexpr int __ID__ = -999247644; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct UpdateDailyBehaviorProps : public ai::Service +{ + static bool deserializeUpdateDailyBehaviorProps(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UpdateDailyBehaviorProps() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String satietyKey; + ::luban::String energyKey; + ::luban::String moodKey; + ::luban::String satietyLowerThresholdKey; + ::luban::String satietyUpperThresholdKey; + ::luban::String energyLowerThresholdKey; + ::luban::String energyUpperThresholdKey; + ::luban::String moodLowerThresholdKey; + ::luban::String moodUpperThresholdKey; + + static constexpr int __ID__ = -61887372; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct Decorator : public ai::Node +{ + static bool deserializeDecorator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Decorator() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ai::EFlowAbortMode flowAbortMode; + +}; + +} + +namespace ai { + +struct UeLoop : public ai::Decorator +{ + static bool deserializeUeLoop(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeLoop() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 numLoops; + bool infiniteLoop; + ::luban::float32 infiniteLoopTimeoutTime; + + static constexpr int __ID__ = -513308166; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct UeCooldown : public ai::Decorator +{ + static bool deserializeUeCooldown(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeCooldown() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 cooldownTime; + + static constexpr int __ID__ = -951439423; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct UeTimeLimit : public ai::Decorator +{ + static bool deserializeUeTimeLimit(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeTimeLimit() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 limitTime; + + static constexpr int __ID__ = 338469720; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct UeBlackboard : public ai::Decorator +{ + static bool deserializeUeBlackboard(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeBlackboard() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ai::ENotifyObserverMode notifyObserver; + ::luban::String blackboardKey; + ::luban::SharedPtr keyQuery; + + static constexpr int __ID__ = -315297507; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct KeyQueryOperator : public luban::CfgBean +{ + static bool deserializeKeyQueryOperator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~KeyQueryOperator() {} + + bool deserialize(::luban::ByteBuf& _buf); + + +}; + +} + +namespace ai { + +struct IsSet : public ai::KeyQueryOperator +{ + static bool deserializeIsSet(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~IsSet() {} + + bool deserialize(::luban::ByteBuf& _buf); + + + static constexpr int __ID__ = 1635350898; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct IsNotSet : public ai::KeyQueryOperator +{ + static bool deserializeIsNotSet(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~IsNotSet() {} + + bool deserialize(::luban::ByteBuf& _buf); + + + static constexpr int __ID__ = 790736255; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct BinaryOperator : public ai::KeyQueryOperator +{ + static bool deserializeBinaryOperator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~BinaryOperator() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ai::EOperator oper; + ::luban::SharedPtr data; + + static constexpr int __ID__ = -979891605; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct KeyData : public luban::CfgBean +{ + static bool deserializeKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~KeyData() {} + + bool deserialize(::luban::ByteBuf& _buf); + + +}; + +} + +namespace ai { + +struct FloatKeyData : public ai::KeyData +{ + static bool deserializeFloatKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~FloatKeyData() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 value; + + static constexpr int __ID__ = -719747885; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct IntKeyData : public ai::KeyData +{ + static bool deserializeIntKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~IntKeyData() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 value; + + static constexpr int __ID__ = -342751904; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct StringKeyData : public ai::KeyData +{ + static bool deserializeStringKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~StringKeyData() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String value; + + static constexpr int __ID__ = -307888654; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct BlackboardKeyData : public ai::KeyData +{ + static bool deserializeBlackboardKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~BlackboardKeyData() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String value; + + static constexpr int __ID__ = 1517269500; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct UeForceSuccess : public ai::Decorator +{ + static bool deserializeUeForceSuccess(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeForceSuccess() {} + + bool deserialize(::luban::ByteBuf& _buf); + + + static constexpr int __ID__ = 195054574; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct IsAtLocation : public ai::Decorator +{ + static bool deserializeIsAtLocation(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~IsAtLocation() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 acceptableRadius; + ::luban::String keyboardKey; + bool inverseCondition; + + static constexpr int __ID__ = 1255972344; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct DistanceLessThan : public ai::Decorator +{ + static bool deserializeDistanceLessThan(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DistanceLessThan() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String actor1Key; + ::luban::String actor2Key; + ::luban::float32 distance; + bool reverseResult; + + static constexpr int __ID__ = -1207170283; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct FlowNode : public ai::Node +{ + static bool deserializeFlowNode(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~FlowNode() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::Vector<::luban::SharedPtr> decorators; + ::luban::Vector<::luban::SharedPtr> services; + +}; + +} + +namespace ai { + +struct ComposeNode : public ai::FlowNode +{ + static bool deserializeComposeNode(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~ComposeNode() {} + + bool deserialize(::luban::ByteBuf& _buf); + + +}; + +} + +namespace ai { + +struct Sequence : public ai::ComposeNode +{ + static bool deserializeSequence(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Sequence() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::Vector<::luban::SharedPtr> children; + + static constexpr int __ID__ = -1789006105; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct Selector : public ai::ComposeNode +{ + static bool deserializeSelector(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Selector() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::Vector<::luban::SharedPtr> children; + + static constexpr int __ID__ = -1946981627; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct SimpleParallel : public ai::ComposeNode +{ + static bool deserializeSimpleParallel(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~SimpleParallel() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ai::EFinishMode finishMode; + ::luban::SharedPtr mainTask; + ::luban::SharedPtr backgroundNode; + + static constexpr int __ID__ = -1952582529; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct Task : public ai::FlowNode +{ + static bool deserializeTask(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Task() {} + + bool deserialize(::luban::ByteBuf& _buf); + + bool ignoreRestartSelf; + +}; + +} + +namespace ai { + +struct UeWait : public ai::Task +{ + static bool deserializeUeWait(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeWait() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 waitTime; + ::luban::float32 randomDeviation; + + static constexpr int __ID__ = -512994101; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct UeWaitBlackboardTime : public ai::Task +{ + static bool deserializeUeWaitBlackboardTime(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~UeWaitBlackboardTime() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String blackboardKey; + + static constexpr int __ID__ = 1215378271; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct MoveToTarget : public ai::Task +{ + static bool deserializeMoveToTarget(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MoveToTarget() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String targetActorKey; + ::luban::float32 acceptableRadius; + + static constexpr int __ID__ = 514987779; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct ChooseSkill : public ai::Task +{ + static bool deserializeChooseSkill(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~ChooseSkill() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String targetActorKey; + ::luban::String resultSkillIdKey; + + static constexpr int __ID__ = -918812268; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct MoveToRandomLocation : public ai::Task +{ + static bool deserializeMoveToRandomLocation(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MoveToRandomLocation() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String originPositionKey; + ::luban::float32 radius; + + static constexpr int __ID__ = -2140042998; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct MoveToLocation : public ai::Task +{ + static bool deserializeMoveToLocation(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MoveToLocation() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 acceptableRadius; + + static constexpr int __ID__ = -969953113; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + +struct DebugPrint : public ai::Task +{ + static bool deserializeDebugPrint(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DebugPrint() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String text; + + static constexpr int __ID__ = 1357409728; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace common { + +struct GlobalConfig : public luban::CfgBean +{ + static bool deserializeGlobalConfig(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~GlobalConfig() {} + + bool deserialize(::luban::ByteBuf& _buf); + + /** + * 背包容量 + */ + ::luban::int32 x1; + ::luban::int32 x2; + ::luban::int32 x3; + ::luban::int32 x4; + ::luban::int32 x5; + ::luban::int32 x6; + ::luban::Vector<::luban::int32> x7; + + static constexpr int __ID__ = -848234488; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace item { + +/** + * 道具 + */ +struct Item : public luban::CfgBean +{ + static bool deserializeItem(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Item() {} + + bool deserialize(::luban::ByteBuf& _buf); + + /** + * 道具id + */ + ::luban::int32 id; + ::luban::String name; + item::EMinorType minorType; + item::EItemQuality quality; + ::luban::String iconBackgroud; + ::luban::String iconMask; + ::luban::String desc; + ::luban::int32 showOrder; + + static constexpr int __ID__ = 2107285806; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace l10n { + +struct L10NDemo : public luban::CfgBean +{ + static bool deserializeL10NDemo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~L10NDemo() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String text; + + static constexpr int __ID__ = -331195887; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace l10n { + +struct PatchDemo : public luban::CfgBean +{ + static bool deserializePatchDemo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~PatchDemo() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::int32 value; + + static constexpr int __ID__ = -1707294656; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace tag { + +struct TestTag : public luban::CfgBean +{ + static bool deserializeTestTag(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestTag() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String value; + + static constexpr int __ID__ = 1742933812; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoType2 : public luban::CfgBean +{ + static bool deserializeDemoType2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoType2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x4; + bool x1; + ::luban::byte x2; + ::luban::int16 x3; + ::luban::int64 x5; + ::luban::float32 x6; + ::luban::float64 x7; + ::luban::int16 x80; + ::luban::int32 x8; + ::luban::int64 x9; + ::luban::String x10; + ::luban::SharedPtr x12; + test::DemoEnum x13; + ::luban::SharedPtr x14; + ::luban::String s1; + ::luban::datetime t1; + ::luban::Array<::luban::int32> k1; + ::luban::Vector<::luban::int32> k2; + ::luban::HashSet<::luban::int32> k5; + ::luban::HashMap<::luban::int32, ::luban::int32> k8; + ::luban::Vector<::luban::SharedPtr> k9; + ::luban::Array<::luban::SharedPtr> k15; + + static constexpr int __ID__ = -367048295; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoType1 : public luban::CfgBean +{ + static bool deserializeDemoType1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoType1() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x1; + + static constexpr int __ID__ = -367048296; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoDynamic : public luban::CfgBean +{ + static bool deserializeDemoDynamic(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoDynamic() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x1; + +}; + +} + +namespace test { + +struct DemoD2 : public test::DemoDynamic +{ + static bool deserializeDemoD2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoD2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x2; + + static constexpr int __ID__ = -2138341747; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoD3 : public test::DemoDynamic +{ + static bool deserializeDemoD3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoD3() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x3; + +}; + +} + +namespace test { + +struct DemoE1 : public test::DemoD3 +{ + static bool deserializeDemoE1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoE1() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x4; + + static constexpr int __ID__ = -2138341717; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test {namespace login { + +struct RoleInfo : public test::DemoD3 +{ + static bool deserializeRoleInfo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~RoleInfo() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int64 roleId; + + static constexpr int __ID__ = -989153243; + + int getTypeId() const override { return __ID__; } +}; + +}} + +namespace test { + +struct DemoD5 : public test::DemoDynamic +{ + static bool deserializeDemoD5(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoD5() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::SharedPtr time; + + static constexpr int __ID__ = -2138341744; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DateTimeRange : public luban::CfgBean +{ + static bool deserializeDateTimeRange(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DateTimeRange() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::datetime startTime; + ::luban::datetime endTime; + + static constexpr int __ID__ = 495315430; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoE2 : public luban::CfgBean +{ + static bool deserializeDemoE2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoE2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::SharedPtr<::luban::int32> y1; + bool y2; + + static constexpr int __ID__ = -2138341716; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoSingletonType : public luban::CfgBean +{ + static bool deserializeDemoSingletonType(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoSingletonType() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String name; + ::luban::SharedPtr date; + + static constexpr int __ID__ = 539196998; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct NotIndexList : public luban::CfgBean +{ + static bool deserializeNotIndexList(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~NotIndexList() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x; + ::luban::int32 y; + + static constexpr int __ID__ = -50446599; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct MultiUnionIndexList : public luban::CfgBean +{ + static bool deserializeMultiUnionIndexList(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MultiUnionIndexList() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id1; + ::luban::int64 id2; + ::luban::String id3; + ::luban::int32 num; + ::luban::String desc; + + static constexpr int __ID__ = 1966847134; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct MultiIndexList : public luban::CfgBean +{ + static bool deserializeMultiIndexList(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MultiIndexList() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id1; + ::luban::int64 id2; + ::luban::String id3; + ::luban::int32 num; + ::luban::String desc; + + static constexpr int __ID__ = 2016237651; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct MultiRowRecord : public luban::CfgBean +{ + static bool deserializeMultiRowRecord(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MultiRowRecord() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String name; + ::luban::Vector<::luban::SharedPtr> oneRows; + ::luban::Vector<::luban::SharedPtr> multiRows1; + ::luban::Array<::luban::SharedPtr> multiRows2; + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> multiRows4; + ::luban::Vector<::luban::SharedPtr> multiRows5; + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> multiRows6; + ::luban::HashMap<::luban::int32, ::luban::int32> multiRows7; + + static constexpr int __ID__ = -501249394; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct MultiRowType1 : public luban::CfgBean +{ + static bool deserializeMultiRowType1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MultiRowType1() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::int32 x; + + static constexpr int __ID__ = 540474970; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct MultiRowType2 : public luban::CfgBean +{ + static bool deserializeMultiRowType2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MultiRowType2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::int32 x; + ::luban::float32 y; + + static constexpr int __ID__ = 540474971; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct MultiRowType3 : public luban::CfgBean +{ + static bool deserializeMultiRowType3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MultiRowType3() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::Vector<::luban::SharedPtr> items; + + static constexpr int __ID__ = 540474972; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestMultiColumn : public luban::CfgBean +{ + static bool deserializeTestMultiColumn(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestMultiColumn() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::SharedPtr a; + ::luban::SharedPtr b; + ::luban::SharedPtr c; + + static constexpr int __ID__ = -294473599; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct Foo : public luban::CfgBean +{ + static bool deserializeFoo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Foo() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 y1; + ::luban::int32 y2; + ::luban::int32 y3; + + static constexpr int __ID__ = -1147950774; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct MultiRowTitle : public luban::CfgBean +{ + static bool deserializeMultiRowTitle(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~MultiRowTitle() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String name; + ::luban::SharedPtr x1; + ::luban::SharedPtr x20; + ::luban::Vector<::luban::SharedPtr> x2; + ::luban::Array<::luban::SharedPtr> x3; + ::luban::Array<::luban::SharedPtr> x4; + + static constexpr int __ID__ = 540002427; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct H1 : public luban::CfgBean +{ + static bool deserializeH1(::luban::ByteBuf& _buf, ::luban::SharedPtr

& _out); + + virtual ~H1() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::SharedPtr y2; + ::luban::int32 y3; + + static constexpr int __ID__ = -1422503995; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct H2 : public luban::CfgBean +{ + static bool deserializeH2(::luban::ByteBuf& _buf, ::luban::SharedPtr

& _out); + + virtual ~H2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 z2; + ::luban::int32 z3; + + static constexpr int __ID__ = -1422503994; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestNull : public luban::CfgBean +{ + static bool deserializeTestNull(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestNull() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::SharedPtr<::luban::int32> x1; + ::luban::SharedPtr x2; + ::luban::SharedPtr x3; + ::luban::SharedPtr x4; + ::luban::SharedPtr<::luban::String> s1; + ::luban::SharedPtr<::luban::String> s2; + + static constexpr int __ID__ = 339868469; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoPrimitiveTypesTable : public luban::CfgBean +{ + static bool deserializeDemoPrimitiveTypesTable(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoPrimitiveTypesTable() {} + + bool deserialize(::luban::ByteBuf& _buf); + + bool x1; + ::luban::byte x2; + ::luban::int16 x3; + ::luban::int32 x4; + ::luban::int64 x5; + ::luban::float32 x6; + ::luban::float64 x7; + ::luban::String s1; + ::luban::String s2; + ::luban::SharedPtr v2; + ::luban::SharedPtr v3; + ::luban::SharedPtr v4; + ::luban::datetime t1; + + static constexpr int __ID__ = -370934083; + + int getTypeId() const override { return __ID__; } +}; + +} + + + +struct vec2 : public luban::CfgBean +{ + static bool deserializevec2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~vec2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 x; + ::luban::float32 y; + + static constexpr int __ID__ = 3615518; + + int getTypeId() const override { return __ID__; } +}; + + + + + +struct vec3 : public luban::CfgBean +{ + static bool deserializevec3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~vec3() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 x; + ::luban::float32 y; + ::luban::float32 z; + + static constexpr int __ID__ = 3615519; + + int getTypeId() const override { return __ID__; } +}; + + + + + +struct vec4 : public luban::CfgBean +{ + static bool deserializevec4(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~vec4() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::float32 x; + ::luban::float32 y; + ::luban::float32 z; + ::luban::float32 w; + + static constexpr int __ID__ = 3615520; + + int getTypeId() const override { return __ID__; } +}; + + + +namespace test { + +struct TestString : public luban::CfgBean +{ + static bool deserializeTestString(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestString() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::String id; + ::luban::String s1; + ::luban::String s2; + ::luban::SharedPtr cs1; + ::luban::SharedPtr cs2; + + static constexpr int __ID__ = 338485823; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct CompactString : public luban::CfgBean +{ + static bool deserializeCompactString(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~CompactString() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String s2; + ::luban::String s3; + + static constexpr int __ID__ = 1968089240; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DemoGroup : public luban::CfgBean +{ + static bool deserializeDemoGroup(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DemoGroup() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::SharedPtr x5; + + static constexpr int __ID__ = -379263008; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct InnerGroup : public luban::CfgBean +{ + static bool deserializeInnerGroup(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~InnerGroup() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 y1; + + static constexpr int __ID__ = -587873083; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestGlobal : public luban::CfgBean +{ + static bool deserializeTestGlobal(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestGlobal() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 unlockEquip; + ::luban::int32 unlockHero; + + static constexpr int __ID__ = -12548655; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestBeRef : public luban::CfgBean +{ + static bool deserializeTestBeRef(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestBeRef() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::int32 count; + + static constexpr int __ID__ = 1934403938; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestRef : public luban::CfgBean +{ + static bool deserializeTestRef(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestRef() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::int32 x1; + ::luban::int32 x12; + ::luban::int32 x2; + ::luban::int32 x3; + ::luban::int32 x4; + ::luban::Array<::luban::int32> a1; + ::luban::Array<::luban::int32> a2; + ::luban::Vector<::luban::int32> b1; + ::luban::Vector<::luban::int32> b2; + ::luban::HashSet<::luban::int32> c1; + ::luban::HashSet<::luban::int32> c2; + ::luban::HashMap<::luban::int32, ::luban::int32> d1; + ::luban::HashMap<::luban::int32, ::luban::int32> d2; + ::luban::int32 e1; + ::luban::int64 e2; + ::luban::String e3; + ::luban::int32 f1; + ::luban::int64 f2; + ::luban::String f3; + ::luban::SharedPtr s1; + + static constexpr int __ID__ = -543222491; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct RefDynamicBase : public luban::CfgBean +{ + static bool deserializeRefDynamicBase(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~RefDynamicBase() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x; + +}; + +} + +namespace test { + +struct RefBean : public test::RefDynamicBase +{ + static bool deserializeRefBean(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~RefBean() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::Vector<::luban::int32> arr; + + static constexpr int __ID__ = 1963260263; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestSize : public luban::CfgBean +{ + static bool deserializeTestSize(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestSize() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::Array<::luban::int32> x1; + ::luban::Vector<::luban::int32> x2; + ::luban::HashSet<::luban::int32> x3; + ::luban::HashMap<::luban::int32, ::luban::int32> x4; + + static constexpr int __ID__ = 340006319; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestSet : public luban::CfgBean +{ + static bool deserializeTestSet(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestSet() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String x0; + ::luban::Vector<::luban::int32> x1; + ::luban::Vector<::luban::int64> x2; + ::luban::Vector<::luban::String> x3; + ::luban::Vector x4; + + static constexpr int __ID__ = -543221516; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct DetectEncoding : public luban::CfgBean +{ + static bool deserializeDetectEncoding(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DetectEncoding() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String name; + + static constexpr int __ID__ = -1154609646; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct ItemBase : public luban::CfgBean +{ + static bool deserializeItemBase(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~ItemBase() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String name; + ::luban::String desc; + +}; + +} + +namespace test { + +struct Item : public test::ItemBase +{ + static bool deserializeItem(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Item() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 num; + ::luban::int32 price; + + static constexpr int __ID__ = -1226641649; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct Equipment : public test::ItemBase +{ + static bool deserializeEquipment(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Equipment() {} + + bool deserialize(::luban::ByteBuf& _buf); + + test::DemoEnum attr; + ::luban::int32 value; + + static constexpr int __ID__ = -76837102; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct Decorator : public test::ItemBase +{ + static bool deserializeDecorator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Decorator() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 duration; + + static constexpr int __ID__ = -625155649; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestIndex : public luban::CfgBean +{ + static bool deserializeTestIndex(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestIndex() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::Vector<::luban::SharedPtr> eles; + + static constexpr int __ID__ = 1941154020; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestMap : public luban::CfgBean +{ + static bool deserializeTestMap(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestMap() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::HashMap<::luban::int32, ::luban::int32> x1; + ::luban::HashMap<::luban::int64, ::luban::int32> x2; + ::luban::HashMap<::luban::String, ::luban::int32> x3; + ::luban::HashMap x4; + + static constexpr int __ID__ = -543227410; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct ExcelFromJson : public luban::CfgBean +{ + static bool deserializeExcelFromJson(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~ExcelFromJson() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x4; + bool x1; + ::luban::int64 x5; + ::luban::float32 x6; + ::luban::String s1; + ::luban::String s2; + ::luban::datetime t1; + ::luban::SharedPtr x12; + test::DemoEnum x13; + ::luban::SharedPtr x14; + ::luban::Array<::luban::int32> k1; + ::luban::HashMap<::luban::int32, ::luban::int32> k8; + ::luban::Vector<::luban::SharedPtr> k9; + ::luban::Array<::luban::SharedPtr> k15; + + static constexpr int __ID__ = -1485706483; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct CompositeJsonTable1 : public luban::CfgBean +{ + static bool deserializeCompositeJsonTable1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~CompositeJsonTable1() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String x; + + static constexpr int __ID__ = 1566207894; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct CompositeJsonTable2 : public luban::CfgBean +{ + static bool deserializeCompositeJsonTable2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~CompositeJsonTable2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::int32 y; + + static constexpr int __ID__ = 1566207895; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct CompositeJsonTable3 : public luban::CfgBean +{ + static bool deserializeCompositeJsonTable3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~CompositeJsonTable3() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 a; + ::luban::int32 b; + + static constexpr int __ID__ = 1566207896; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct ExcelFromJsonMultiRow : public luban::CfgBean +{ + static bool deserializeExcelFromJsonMultiRow(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~ExcelFromJsonMultiRow() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::int32 x; + ::luban::Vector<::luban::SharedPtr> items; + + static constexpr int __ID__ = 715335694; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestRow : public luban::CfgBean +{ + static bool deserializeTestRow(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestRow() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x; + bool y; + ::luban::String z; + ::luban::SharedPtr a; + ::luban::Vector<::luban::int32> b; + + static constexpr int __ID__ = -543222164; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct Test3 : public luban::CfgBean +{ + static bool deserializeTest3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Test3() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 x; + ::luban::int32 y; + + static constexpr int __ID__ = 638540133; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestScriptableObject : public luban::CfgBean +{ + static bool deserializeTestScriptableObject(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestScriptableObject() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + ::luban::String desc; + ::luban::float32 rate; + ::luban::int32 num; + ::luban::SharedPtr v2; + ::luban::SharedPtr v3; + ::luban::SharedPtr v4; + + static constexpr int __ID__ = -1896814350; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test { + +struct TestMapper : public luban::CfgBean +{ + static bool deserializeTestMapper(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~TestMapper() {} + + bool deserialize(::luban::ByteBuf& _buf); + + ::luban::int32 id; + AudioType audioType; + ::luban::SharedPtr v2; + + static constexpr int __ID__ = 149110895; + + int getTypeId() const override { return __ID__; } +}; + +} + + + +struct DefineFromExcel2 : public luban::CfgBean +{ + static bool deserializeDefineFromExcel2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~DefineFromExcel2() {} + + bool deserialize(::luban::ByteBuf& _buf); + + /** + * 这是id + */ + ::luban::int32 id; + /** + * 字段x1 + */ + bool x1; + ::luban::int64 x5; + ::luban::float32 x6; + ::luban::int32 x8; + ::luban::String x10; + test::DemoEnum x13; + test::DemoFlag x132; + ::luban::SharedPtr x14; + ::luban::SharedPtr x15; + ::luban::SharedPtr v2; + ::luban::datetime t1; + ::luban::Array<::luban::int32> k1; + ::luban::Array<::luban::int32> k2; + ::luban::HashMap<::luban::int32, ::luban::int32> k8; + ::luban::Vector<::luban::SharedPtr> k9; + ::luban::Vector<::luban::SharedPtr> k10; + ::luban::Vector<::luban::SharedPtr> k11; + + static constexpr int __ID__ = 482045152; + + int getTypeId() const override { return __ID__; } +}; + + + +namespace test { + +struct Shape : public luban::CfgBean +{ + static bool deserializeShape(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Shape() {} + + bool deserialize(::luban::ByteBuf& _buf); + + +}; + +} + +namespace test { + +/** + * 圆 + */ +struct Circle : public test::Shape +{ + static bool deserializeCircle(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Circle() {} + + bool deserialize(::luban::ByteBuf& _buf); + + /** + * 半径 + */ + ::luban::float32 radius; + + static constexpr int __ID__ = 2131829196; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace test2 { + +/** + * 矩形 + */ +struct Rectangle : public test::Shape +{ + static bool deserializeRectangle(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out); + + virtual ~Rectangle() {} + + bool deserialize(::luban::ByteBuf& _buf); + + /** + * 宽度 + */ + ::luban::float32 width; + /** + * 高度 + */ + ::luban::float32 height; + + static constexpr int __ID__ = 694982337; + + int getTypeId() const override { return __ID__; } +}; + +} + +namespace ai { + + +class TbBlackboard +{ + private: + ::luban::HashMap<::luban::String, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!ai::Blackboard::deserializeBlackboard(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->name] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::String, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + ai::Blackboard* getRaw(::luban::String key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::String key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace ai { + + +class TbBehaviorTree +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!ai::BehaviorTree::deserializeBehaviorTree(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + ai::BehaviorTree* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace common { + + +class TbGlobalConfig +{ + private: + ::luban::SharedPtr _data; + + public: + ::luban::SharedPtr data() const { return _data; } + + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + if (n != 1) return false; + if(!common::GlobalConfig::deserializeGlobalConfig(_buf, _data)) return false; + return true; + } + + + /** + * 背包容量 + */ + ::luban::int32& getX1() const { return _data->x1; } + ::luban::int32& getX2() const { return _data->x2; } + ::luban::int32& getX3() const { return _data->x3; } + ::luban::int32& getX4() const { return _data->x4; } + ::luban::int32& getX5() const { return _data->x5; } + ::luban::int32& getX6() const { return _data->x6; } + ::luban::Vector<::luban::int32>& getX7() const { return _data->x7; } +}; + +} + +namespace item { + +/** + * 道具表 + */ + +class TbItem +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!item::Item::deserializeItem(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + item::Item* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace l10n { + + +class TbL10NDemo +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!l10n::L10NDemo::deserializeL10NDemo(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + l10n::L10NDemo* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace l10n { + + +class TbPatchDemo +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!l10n::PatchDemo::deserializePatchDemo(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + l10n::PatchDemo* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace tag { + + +class TbTestTag +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!tag::TestTag::deserializeTestTag(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + tag::TestTag* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbFullTypes +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::DemoType2::deserializeDemoType2(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->x4] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::DemoType2* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbSingleton +{ + private: + ::luban::SharedPtr _data; + + public: + ::luban::SharedPtr data() const { return _data; } + + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + if (n != 1) return false; + if(!test::DemoSingletonType::deserializeDemoSingletonType(_buf, _data)) return false; + return true; + } + + + ::luban::int32& getId() const { return _data->id; } + ::luban::String& getName() const { return _data->name; } + ::luban::SharedPtr& getDate() const { return _data->date; } +}; + +} + +namespace test { + + +class TbNotIndexList +{ + private: + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::NotIndexList::deserializeNotIndexList(_buf, _v)) return false; + _dataList.push_back(_v); + } + return true; + } + + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::NotIndexList* getRaw(size_t index) const + { + return _dataList[index].get(); + } + + ::luban::SharedPtr get(size_t index) const + { + return _dataList[index]; + } +}; + +} + +namespace test { + + +class TbMultiUnionIndexList +{ + private: + ::luban::Vector<::luban::SharedPtr> _dataList; + + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::MultiUnionIndexList::deserializeMultiUnionIndexList(_buf, _v)) return false; + _dataList.push_back(_v); + + } + return true; + } + + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + +}; + +} + +namespace test { + + +class TbMultiIndexList +{ + private: + ::luban::Vector<::luban::SharedPtr> _dataList; + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap_id1; + ::luban::HashMap<::luban::int64, ::luban::SharedPtr> _dataMap_id2; + ::luban::HashMap<::luban::String, ::luban::SharedPtr> _dataMap_id3; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::MultiIndexList::deserializeMultiIndexList(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap_id1[_v->id1] = _v; + _dataMap_id2[_v->id2] = _v; + _dataMap_id3[_v->id3] = _v; + } + return true; + } + + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMapByid1() + { + return _dataMap_id1; + } + test::MultiIndexList* getRawByid1(::luban::int32 key) + { + auto it = _dataMap_id1.find(key); + return it != _dataMap_id1.end() ? it->second.get() : nullptr; + } + ::luban::SharedPtr getByid1(::luban::int32 key) + { + auto it = _dataMap_id1.find(key); + return it != _dataMap_id1.end() ? it->second : nullptr; + } + ::luban::HashMap<::luban::int64, ::luban::SharedPtr>& getDataMapByid2() + { + return _dataMap_id2; + } + test::MultiIndexList* getRawByid2(::luban::int64 key) + { + auto it = _dataMap_id2.find(key); + return it != _dataMap_id2.end() ? it->second.get() : nullptr; + } + ::luban::SharedPtr getByid2(::luban::int64 key) + { + auto it = _dataMap_id2.find(key); + return it != _dataMap_id2.end() ? it->second : nullptr; + } + ::luban::HashMap<::luban::String, ::luban::SharedPtr>& getDataMapByid3() + { + return _dataMap_id3; + } + test::MultiIndexList* getRawByid3(::luban::String key) + { + auto it = _dataMap_id3.find(key); + return it != _dataMap_id3.end() ? it->second.get() : nullptr; + } + ::luban::SharedPtr getByid3(::luban::String key) + { + auto it = _dataMap_id3.find(key); + return it != _dataMap_id3.end() ? it->second : nullptr; + } +}; + +} + +namespace test { + + +class TbDataFromMisc +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::DemoType2::deserializeDemoType2(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->x4] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::DemoType2* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbMultiRowRecord +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::MultiRowRecord::deserializeMultiRowRecord(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::MultiRowRecord* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestMultiColumn +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestMultiColumn::deserializeTestMultiColumn(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestMultiColumn* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbMultiRowTitle +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::MultiRowTitle::deserializeMultiRowTitle(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::MultiRowTitle* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestNull +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestNull::deserializeTestNull(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestNull* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbDemoPrimitive +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::DemoPrimitiveTypesTable::deserializeDemoPrimitiveTypesTable(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->x4] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::DemoPrimitiveTypesTable* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestString +{ + private: + ::luban::HashMap<::luban::String, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestString::deserializeTestString(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::String, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestString* getRaw(::luban::String key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::String key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbDemoGroup +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::DemoGroup::deserializeDemoGroup(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::DemoGroup* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestGlobal +{ + private: + ::luban::SharedPtr _data; + + public: + ::luban::SharedPtr data() const { return _data; } + + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + if (n != 1) return false; + if(!test::TestGlobal::deserializeTestGlobal(_buf, _data)) return false; + return true; + } + + + ::luban::int32& getUnlockEquip() const { return _data->unlockEquip; } + ::luban::int32& getUnlockHero() const { return _data->unlockHero; } +}; + +} + +namespace test { + + +class TbTestBeRef +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestBeRef::deserializeTestBeRef(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestBeRef* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestBeRef2 +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestBeRef::deserializeTestBeRef(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestBeRef* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestRef +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestRef::deserializeTestRef(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestRef* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestSize +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestSize::deserializeTestSize(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestSize* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestSet +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestSet::deserializeTestSet(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestSet* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbDetectCsvEncoding +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::DetectEncoding::deserializeDetectEncoding(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::DetectEncoding* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbItem2 +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::ItemBase::deserializeItemBase(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::ItemBase* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestIndex +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestIndex::deserializeTestIndex(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestIndex* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestMap +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestMap::deserializeTestMap(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestMap* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbExcelFromJson +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::ExcelFromJson::deserializeExcelFromJson(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->x4] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::ExcelFromJson* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbCompositeJsonTable1 +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::CompositeJsonTable1::deserializeCompositeJsonTable1(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::CompositeJsonTable1* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbCompositeJsonTable2 +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::CompositeJsonTable2::deserializeCompositeJsonTable2(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::CompositeJsonTable2* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbCompositeJsonTable3 +{ + private: + ::luban::SharedPtr _data; + + public: + ::luban::SharedPtr data() const { return _data; } + + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + if (n != 1) return false; + if(!test::CompositeJsonTable3::deserializeCompositeJsonTable3(_buf, _data)) return false; + return true; + } + + + ::luban::int32& getA() const { return _data->a; } + ::luban::int32& getB() const { return _data->b; } +}; + +} + +namespace test { + + +class TbExcelFromJsonMultiRow +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::ExcelFromJsonMultiRow::deserializeExcelFromJsonMultiRow(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::ExcelFromJsonMultiRow* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestScriptableObject +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestScriptableObject::deserializeTestScriptableObject(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestScriptableObject* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbTestMapper +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!test::TestMapper::deserializeTestMapper(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + test::TestMapper* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +namespace test { + + +class TbDefineFromExcel2 +{ + private: + ::luban::HashMap<::luban::int32, ::luban::SharedPtr> _dataMap; + ::luban::Vector<::luban::SharedPtr> _dataList; + + public: + bool load(::luban::ByteBuf& _buf) + { + int n; + if (!_buf.readSize(n)) return false; + for(; n > 0 ; --n) + { + ::luban::SharedPtr _v; + if(!DefineFromExcel2::deserializeDefineFromExcel2(_buf, _v)) return false; + _dataList.push_back(_v); + _dataMap[_v->id] = _v; + } + return true; + } + + const ::luban::HashMap<::luban::int32, ::luban::SharedPtr>& getDataMap() const { return _dataMap; } + const ::luban::Vector<::luban::SharedPtr>& getDataList() const { return _dataList; } + + DefineFromExcel2* getRaw(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second.get() : nullptr; + } + + ::luban::SharedPtr get(::luban::int32 key) + { + auto it = _dataMap.find(key); + return it != _dataMap.end() ? it->second : nullptr; + } + +}; + +} + +class Tables +{ + public: + ai::TbBlackboard TbBlackboard; + ai::TbBehaviorTree TbBehaviorTree; + common::TbGlobalConfig TbGlobalConfig; + /** + * 道具表 + */ + item::TbItem TbItem; + l10n::TbL10NDemo TbL10NDemo; + l10n::TbPatchDemo TbPatchDemo; + tag::TbTestTag TbTestTag; + test::TbFullTypes TbFullTypes; + test::TbSingleton TbSingleton; + test::TbNotIndexList TbNotIndexList; + test::TbMultiUnionIndexList TbMultiUnionIndexList; + test::TbMultiIndexList TbMultiIndexList; + test::TbDataFromMisc TbDataFromMisc; + test::TbMultiRowRecord TbMultiRowRecord; + test::TbTestMultiColumn TbTestMultiColumn; + test::TbMultiRowTitle TbMultiRowTitle; + test::TbTestNull TbTestNull; + test::TbDemoPrimitive TbDemoPrimitive; + test::TbTestString TbTestString; + test::TbDemoGroup TbDemoGroup; + test::TbTestGlobal TbTestGlobal; + test::TbTestBeRef TbTestBeRef; + test::TbTestBeRef2 TbTestBeRef2; + test::TbTestRef TbTestRef; + test::TbTestSize TbTestSize; + test::TbTestSet TbTestSet; + test::TbDetectCsvEncoding TbDetectCsvEncoding; + test::TbItem2 TbItem2; + test::TbTestIndex TbTestIndex; + test::TbTestMap TbTestMap; + test::TbExcelFromJson TbExcelFromJson; + test::TbCompositeJsonTable1 TbCompositeJsonTable1; + test::TbCompositeJsonTable2 TbCompositeJsonTable2; + test::TbCompositeJsonTable3 TbCompositeJsonTable3; + test::TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow; + test::TbTestScriptableObject TbTestScriptableObject; + test::TbTestMapper TbTestMapper; + test::TbDefineFromExcel2 TbDefineFromExcel2; + + bool load(::luban::Loader<::luban::ByteBuf> loader) + { + ::luban::ByteBuf buf; + buf.clear(); + if (!loader(buf, "ai_tbblackboard")) return false; + if (!TbBlackboard.load(buf)) return false; + buf.clear(); + if (!loader(buf, "ai_tbbehaviortree")) return false; + if (!TbBehaviorTree.load(buf)) return false; + buf.clear(); + if (!loader(buf, "common_tbglobalconfig")) return false; + if (!TbGlobalConfig.load(buf)) return false; + buf.clear(); + if (!loader(buf, "item_tbitem")) return false; + if (!TbItem.load(buf)) return false; + buf.clear(); + if (!loader(buf, "l10n_tbl10ndemo")) return false; + if (!TbL10NDemo.load(buf)) return false; + buf.clear(); + if (!loader(buf, "l10n_tbpatchdemo")) return false; + if (!TbPatchDemo.load(buf)) return false; + buf.clear(); + if (!loader(buf, "tag_tbtesttag")) return false; + if (!TbTestTag.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbfulltypes")) return false; + if (!TbFullTypes.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbsingleton")) return false; + if (!TbSingleton.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbnotindexlist")) return false; + if (!TbNotIndexList.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbmultiunionindexlist")) return false; + if (!TbMultiUnionIndexList.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbmultiindexlist")) return false; + if (!TbMultiIndexList.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbdatafrommisc")) return false; + if (!TbDataFromMisc.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbmultirowrecord")) return false; + if (!TbMultiRowRecord.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestmulticolumn")) return false; + if (!TbTestMultiColumn.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbmultirowtitle")) return false; + if (!TbMultiRowTitle.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestnull")) return false; + if (!TbTestNull.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbdemoprimitive")) return false; + if (!TbDemoPrimitive.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbteststring")) return false; + if (!TbTestString.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbdemogroup")) return false; + if (!TbDemoGroup.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestglobal")) return false; + if (!TbTestGlobal.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestberef")) return false; + if (!TbTestBeRef.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestberef2")) return false; + if (!TbTestBeRef2.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestref")) return false; + if (!TbTestRef.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestsize")) return false; + if (!TbTestSize.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestset")) return false; + if (!TbTestSet.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbdetectcsvencoding")) return false; + if (!TbDetectCsvEncoding.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbitem2")) return false; + if (!TbItem2.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestindex")) return false; + if (!TbTestIndex.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestmap")) return false; + if (!TbTestMap.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbexcelfromjson")) return false; + if (!TbExcelFromJson.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbcompositejsontable1")) return false; + if (!TbCompositeJsonTable1.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbcompositejsontable2")) return false; + if (!TbCompositeJsonTable2.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbcompositejsontable3")) return false; + if (!TbCompositeJsonTable3.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbexcelfromjsonmultirow")) return false; + if (!TbExcelFromJsonMultiRow.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestscriptableobject")) return false; + if (!TbTestScriptableObject.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbtestmapper")) return false; + if (!TbTestMapper.load(buf)) return false; + buf.clear(); + if (!loader(buf, "test_tbdefinefromexcel2")) return false; + if (!TbDefineFromExcel2.load(buf)) return false; + return true; + } +}; + + + +} + diff --git a/luban_examples/Projects/Cpp_bin/Gen/schema_0.cpp b/luban_examples/Projects/Cpp_bin/Gen/schema_0.cpp new file mode 100644 index 00000000..a18cded7 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/Gen/schema_0.cpp @@ -0,0 +1,2720 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#include "schema.h" + +namespace cfg { + + +bool ai::Blackboard::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readString(name)) return false; + if(!_buf.readString(desc)) return false; + if(!_buf.readString(parentName)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); keys.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!ai::BlackboardKey::deserializeBlackboardKey(_buf, _e)) return false; keys.push_back(_e);}} + + return true; +} + +bool ai::Blackboard::deserializeBlackboard(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::Blackboard()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::BlackboardKey::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readString(name)) return false; + if(!_buf.readString(desc)) return false; + if (!_buf.readBool(isStatic)) return false; + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; type = ai::EKeyType(__enum_temp__); } + if(!_buf.readString(typeClassName)) return false; + + return true; +} + +bool ai::BlackboardKey::deserializeBlackboardKey(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::BlackboardKey()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::BehaviorTree::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(name)) return false; + if(!_buf.readString(desc)) return false; + if(!_buf.readString(blackboardId)) return false; + if(!ai::ComposeNode::deserializeComposeNode(_buf, root)) return false; + + return true; +} + +bool ai::BehaviorTree::deserializeBehaviorTree(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::BehaviorTree()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::Node::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(nodeName)) return false; + + return true; +} + +bool ai::Node::deserializeNode(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::UeSetDefaultFocus::__ID__: { _out.reset(new ai::UeSetDefaultFocus()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::ExecuteTimeStatistic::__ID__: { _out.reset(new ai::ExecuteTimeStatistic()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::ChooseTarget::__ID__: { _out.reset(new ai::ChooseTarget()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::KeepFaceTarget::__ID__: { _out.reset(new ai::KeepFaceTarget()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::GetOwnerPlayer::__ID__: { _out.reset(new ai::GetOwnerPlayer()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UpdateDailyBehaviorProps::__ID__: { _out.reset(new ai::UpdateDailyBehaviorProps()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeLoop::__ID__: { _out.reset(new ai::UeLoop()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeCooldown::__ID__: { _out.reset(new ai::UeCooldown()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeTimeLimit::__ID__: { _out.reset(new ai::UeTimeLimit()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeBlackboard::__ID__: { _out.reset(new ai::UeBlackboard()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeForceSuccess::__ID__: { _out.reset(new ai::UeForceSuccess()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::IsAtLocation::__ID__: { _out.reset(new ai::IsAtLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::DistanceLessThan::__ID__: { _out.reset(new ai::DistanceLessThan()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::Sequence::__ID__: { _out.reset(new ai::Sequence()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::Selector::__ID__: { _out.reset(new ai::Selector()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::SimpleParallel::__ID__: { _out.reset(new ai::SimpleParallel()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeWait::__ID__: { _out.reset(new ai::UeWait()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeWaitBlackboardTime::__ID__: { _out.reset(new ai::UeWaitBlackboardTime()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToTarget::__ID__: { _out.reset(new ai::MoveToTarget()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::ChooseSkill::__ID__: { _out.reset(new ai::ChooseSkill()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToRandomLocation::__ID__: { _out.reset(new ai::MoveToRandomLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToLocation::__ID__: { _out.reset(new ai::MoveToLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::DebugPrint::__ID__: { _out.reset(new ai::DebugPrint()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::Service::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Node::deserialize(_buf)) + { + return false; + } + + + return true; +} + +bool ai::Service::deserializeService(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::UeSetDefaultFocus::__ID__: { _out.reset(new ai::UeSetDefaultFocus()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::ExecuteTimeStatistic::__ID__: { _out.reset(new ai::ExecuteTimeStatistic()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::ChooseTarget::__ID__: { _out.reset(new ai::ChooseTarget()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::KeepFaceTarget::__ID__: { _out.reset(new ai::KeepFaceTarget()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::GetOwnerPlayer::__ID__: { _out.reset(new ai::GetOwnerPlayer()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UpdateDailyBehaviorProps::__ID__: { _out.reset(new ai::UpdateDailyBehaviorProps()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::UeSetDefaultFocus::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Service::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(keyboardKey)) return false; + + return true; +} + +bool ai::UeSetDefaultFocus::deserializeUeSetDefaultFocus(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeSetDefaultFocus()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::ExecuteTimeStatistic::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Service::deserialize(_buf)) + { + return false; + } + + + return true; +} + +bool ai::ExecuteTimeStatistic::deserializeExecuteTimeStatistic(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::ExecuteTimeStatistic()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::ChooseTarget::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Service::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(resultTargetKey)) return false; + + return true; +} + +bool ai::ChooseTarget::deserializeChooseTarget(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::ChooseTarget()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::KeepFaceTarget::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Service::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(targetActorKey)) return false; + + return true; +} + +bool ai::KeepFaceTarget::deserializeKeepFaceTarget(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::KeepFaceTarget()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::GetOwnerPlayer::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Service::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(playerActorKey)) return false; + + return true; +} + +bool ai::GetOwnerPlayer::deserializeGetOwnerPlayer(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::GetOwnerPlayer()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::UpdateDailyBehaviorProps::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Service::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(satietyKey)) return false; + if(!_buf.readString(energyKey)) return false; + if(!_buf.readString(moodKey)) return false; + if(!_buf.readString(satietyLowerThresholdKey)) return false; + if(!_buf.readString(satietyUpperThresholdKey)) return false; + if(!_buf.readString(energyLowerThresholdKey)) return false; + if(!_buf.readString(energyUpperThresholdKey)) return false; + if(!_buf.readString(moodLowerThresholdKey)) return false; + if(!_buf.readString(moodUpperThresholdKey)) return false; + + return true; +} + +bool ai::UpdateDailyBehaviorProps::deserializeUpdateDailyBehaviorProps(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UpdateDailyBehaviorProps()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::Decorator::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Node::deserialize(_buf)) + { + return false; + } + + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; flowAbortMode = ai::EFlowAbortMode(__enum_temp__); } + + return true; +} + +bool ai::Decorator::deserializeDecorator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::UeLoop::__ID__: { _out.reset(new ai::UeLoop()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeCooldown::__ID__: { _out.reset(new ai::UeCooldown()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeTimeLimit::__ID__: { _out.reset(new ai::UeTimeLimit()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeBlackboard::__ID__: { _out.reset(new ai::UeBlackboard()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeForceSuccess::__ID__: { _out.reset(new ai::UeForceSuccess()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::IsAtLocation::__ID__: { _out.reset(new ai::IsAtLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::DistanceLessThan::__ID__: { _out.reset(new ai::DistanceLessThan()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::UeLoop::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Decorator::deserialize(_buf)) + { + return false; + } + + if(!_buf.readInt(numLoops)) return false; + if (!_buf.readBool(infiniteLoop)) return false; + if(!_buf.readFloat(infiniteLoopTimeoutTime)) return false; + + return true; +} + +bool ai::UeLoop::deserializeUeLoop(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeLoop()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::UeCooldown::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Decorator::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(cooldownTime)) return false; + + return true; +} + +bool ai::UeCooldown::deserializeUeCooldown(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeCooldown()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::UeTimeLimit::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Decorator::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(limitTime)) return false; + + return true; +} + +bool ai::UeTimeLimit::deserializeUeTimeLimit(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeTimeLimit()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::UeBlackboard::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Decorator::deserialize(_buf)) + { + return false; + } + + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; notifyObserver = ai::ENotifyObserverMode(__enum_temp__); } + if(!_buf.readString(blackboardKey)) return false; + if(!ai::KeyQueryOperator::deserializeKeyQueryOperator(_buf, keyQuery)) return false; + + return true; +} + +bool ai::UeBlackboard::deserializeUeBlackboard(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeBlackboard()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::KeyQueryOperator::deserialize(::luban::ByteBuf& _buf) +{ + + + return true; +} + +bool ai::KeyQueryOperator::deserializeKeyQueryOperator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::IsSet::__ID__: { _out.reset(new ai::IsSet()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::IsNotSet::__ID__: { _out.reset(new ai::IsNotSet()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::BinaryOperator::__ID__: { _out.reset(new ai::BinaryOperator()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::IsSet::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::KeyQueryOperator::deserialize(_buf)) + { + return false; + } + + + return true; +} + +bool ai::IsSet::deserializeIsSet(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::IsSet()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::IsNotSet::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::KeyQueryOperator::deserialize(_buf)) + { + return false; + } + + + return true; +} + +bool ai::IsNotSet::deserializeIsNotSet(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::IsNotSet()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::BinaryOperator::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::KeyQueryOperator::deserialize(_buf)) + { + return false; + } + + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; oper = ai::EOperator(__enum_temp__); } + if(!ai::KeyData::deserializeKeyData(_buf, data)) return false; + + return true; +} + +bool ai::BinaryOperator::deserializeBinaryOperator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::BinaryOperator()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::KeyData::deserialize(::luban::ByteBuf& _buf) +{ + + + return true; +} + +bool ai::KeyData::deserializeKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::FloatKeyData::__ID__: { _out.reset(new ai::FloatKeyData()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::IntKeyData::__ID__: { _out.reset(new ai::IntKeyData()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::StringKeyData::__ID__: { _out.reset(new ai::StringKeyData()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::BlackboardKeyData::__ID__: { _out.reset(new ai::BlackboardKeyData()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::FloatKeyData::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::KeyData::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(value)) return false; + + return true; +} + +bool ai::FloatKeyData::deserializeFloatKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::FloatKeyData()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::IntKeyData::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::KeyData::deserialize(_buf)) + { + return false; + } + + if(!_buf.readInt(value)) return false; + + return true; +} + +bool ai::IntKeyData::deserializeIntKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::IntKeyData()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::StringKeyData::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::KeyData::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(value)) return false; + + return true; +} + +bool ai::StringKeyData::deserializeStringKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::StringKeyData()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::BlackboardKeyData::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::KeyData::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(value)) return false; + + return true; +} + +bool ai::BlackboardKeyData::deserializeBlackboardKeyData(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::BlackboardKeyData()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::UeForceSuccess::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Decorator::deserialize(_buf)) + { + return false; + } + + + return true; +} + +bool ai::UeForceSuccess::deserializeUeForceSuccess(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeForceSuccess()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::IsAtLocation::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Decorator::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(acceptableRadius)) return false; + if(!_buf.readString(keyboardKey)) return false; + if (!_buf.readBool(inverseCondition)) return false; + + return true; +} + +bool ai::IsAtLocation::deserializeIsAtLocation(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::IsAtLocation()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::DistanceLessThan::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Decorator::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(actor1Key)) return false; + if(!_buf.readString(actor2Key)) return false; + if(!_buf.readFloat(distance)) return false; + if (!_buf.readBool(reverseResult)) return false; + + return true; +} + +bool ai::DistanceLessThan::deserializeDistanceLessThan(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::DistanceLessThan()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::FlowNode::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Node::deserialize(_buf)) + { + return false; + } + + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); decorators.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!ai::Decorator::deserializeDecorator(_buf, _e)) return false; decorators.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); services.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!ai::Service::deserializeService(_buf, _e)) return false; services.push_back(_e);}} + + return true; +} + +bool ai::FlowNode::deserializeFlowNode(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::Sequence::__ID__: { _out.reset(new ai::Sequence()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::Selector::__ID__: { _out.reset(new ai::Selector()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::SimpleParallel::__ID__: { _out.reset(new ai::SimpleParallel()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeWait::__ID__: { _out.reset(new ai::UeWait()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeWaitBlackboardTime::__ID__: { _out.reset(new ai::UeWaitBlackboardTime()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToTarget::__ID__: { _out.reset(new ai::MoveToTarget()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::ChooseSkill::__ID__: { _out.reset(new ai::ChooseSkill()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToRandomLocation::__ID__: { _out.reset(new ai::MoveToRandomLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToLocation::__ID__: { _out.reset(new ai::MoveToLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::DebugPrint::__ID__: { _out.reset(new ai::DebugPrint()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::ComposeNode::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::FlowNode::deserialize(_buf)) + { + return false; + } + + + return true; +} + +bool ai::ComposeNode::deserializeComposeNode(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::Sequence::__ID__: { _out.reset(new ai::Sequence()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::Selector::__ID__: { _out.reset(new ai::Selector()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::SimpleParallel::__ID__: { _out.reset(new ai::SimpleParallel()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::Sequence::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::ComposeNode::deserialize(_buf)) + { + return false; + } + + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); children.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!ai::FlowNode::deserializeFlowNode(_buf, _e)) return false; children.push_back(_e);}} + + return true; +} + +bool ai::Sequence::deserializeSequence(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::Sequence()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::Selector::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::ComposeNode::deserialize(_buf)) + { + return false; + } + + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); children.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!ai::FlowNode::deserializeFlowNode(_buf, _e)) return false; children.push_back(_e);}} + + return true; +} + +bool ai::Selector::deserializeSelector(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::Selector()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::SimpleParallel::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::ComposeNode::deserialize(_buf)) + { + return false; + } + + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; finishMode = ai::EFinishMode(__enum_temp__); } + if(!ai::Task::deserializeTask(_buf, mainTask)) return false; + if(!ai::FlowNode::deserializeFlowNode(_buf, backgroundNode)) return false; + + return true; +} + +bool ai::SimpleParallel::deserializeSimpleParallel(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::SimpleParallel()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::Task::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::FlowNode::deserialize(_buf)) + { + return false; + } + + if (!_buf.readBool(ignoreRestartSelf)) return false; + + return true; +} + +bool ai::Task::deserializeTask(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case ai::UeWait::__ID__: { _out.reset(new ai::UeWait()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::UeWaitBlackboardTime::__ID__: { _out.reset(new ai::UeWaitBlackboardTime()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToTarget::__ID__: { _out.reset(new ai::MoveToTarget()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::ChooseSkill::__ID__: { _out.reset(new ai::ChooseSkill()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToRandomLocation::__ID__: { _out.reset(new ai::MoveToRandomLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::MoveToLocation::__ID__: { _out.reset(new ai::MoveToLocation()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case ai::DebugPrint::__ID__: { _out.reset(new ai::DebugPrint()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool ai::UeWait::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Task::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(waitTime)) return false; + if(!_buf.readFloat(randomDeviation)) return false; + + return true; +} + +bool ai::UeWait::deserializeUeWait(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeWait()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::UeWaitBlackboardTime::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Task::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(blackboardKey)) return false; + + return true; +} + +bool ai::UeWaitBlackboardTime::deserializeUeWaitBlackboardTime(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::UeWaitBlackboardTime()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::MoveToTarget::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Task::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(targetActorKey)) return false; + if(!_buf.readFloat(acceptableRadius)) return false; + + return true; +} + +bool ai::MoveToTarget::deserializeMoveToTarget(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::MoveToTarget()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::ChooseSkill::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Task::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(targetActorKey)) return false; + if(!_buf.readString(resultSkillIdKey)) return false; + + return true; +} + +bool ai::ChooseSkill::deserializeChooseSkill(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::ChooseSkill()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::MoveToRandomLocation::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Task::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(originPositionKey)) return false; + if(!_buf.readFloat(radius)) return false; + + return true; +} + +bool ai::MoveToRandomLocation::deserializeMoveToRandomLocation(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::MoveToRandomLocation()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::MoveToLocation::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Task::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(acceptableRadius)) return false; + + return true; +} + +bool ai::MoveToLocation::deserializeMoveToLocation(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::MoveToLocation()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool ai::DebugPrint::deserialize(::luban::ByteBuf& _buf) +{ + if (!ai::Task::deserialize(_buf)) + { + return false; + } + + if(!_buf.readString(text)) return false; + + return true; +} + +bool ai::DebugPrint::deserializeDebugPrint(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new ai::DebugPrint()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool common::GlobalConfig::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x1)) return false; + if(!_buf.readInt(x2)) return false; + if(!_buf.readInt(x3)) return false; + if(!_buf.readInt(x4)) return false; + if(!_buf.readInt(x5)) return false; + if(!_buf.readInt(x6)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x7.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; x7.push_back(_e);}} + + return true; +} + +bool common::GlobalConfig::deserializeGlobalConfig(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new common::GlobalConfig()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool item::Item::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(name)) return false; + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; minorType = item::EMinorType(__enum_temp__); } + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; quality = item::EItemQuality(__enum_temp__); } + if(!_buf.readString(iconBackgroud)) return false; + if(!_buf.readString(iconMask)) return false; + if(!_buf.readString(desc)) return false; + if(!_buf.readInt(showOrder)) return false; + + return true; +} + +bool item::Item::deserializeItem(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new item::Item()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool l10n::L10NDemo::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(text)) return false; + + return true; +} + +bool l10n::L10NDemo::deserializeL10NDemo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new l10n::L10NDemo()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool l10n::PatchDemo::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readInt(value)) return false; + + return true; +} + +bool l10n::PatchDemo::deserializePatchDemo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new l10n::PatchDemo()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool tag::TestTag::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(value)) return false; + + return true; +} + +bool tag::TestTag::deserializeTestTag(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new tag::TestTag()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoType2::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x4)) return false; + if (!_buf.readBool(x1)) return false; + if(!_buf.readByte(x2)) return false; + if(!_buf.readShort(x3)) return false; + if(!_buf.readLong(x5)) return false; + if(!_buf.readFloat(x6)) return false; + if(!_buf.readDouble(x7)) return false; + if(!_buf.readShort(x80)) return false; + if(!_buf.readInt(x8)) return false; + if(!_buf.readLong(x9)) return false; + if(!_buf.readString(x10)) return false; + if(!test::DemoType1::deserializeDemoType1(_buf, x12)) return false; + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; x13 = test::DemoEnum(__enum_temp__); } + if(!test::DemoDynamic::deserializeDemoDynamic(_buf, x14)) return false; + if(!_buf.readString(s1)) return false; + if(!_buf.readLong(t1)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));k1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e;if(!_buf.readInt(_e)) return false; k1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); k2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; k2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); k5.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; k5.insert(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); k8.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; k8[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); k9.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::DemoE2::deserializeDemoE2(_buf, _e)) return false; k9.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));k15.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e;if(!test::DemoDynamic::deserializeDemoDynamic(_buf, _e)) return false; k15.push_back(_e);}} + + return true; +} + +bool test::DemoType2::deserializeDemoType2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoType2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoType1::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x1)) return false; + + return true; +} + +bool test::DemoType1::deserializeDemoType1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoType1()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoDynamic::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x1)) return false; + + return true; +} + +bool test::DemoDynamic::deserializeDemoDynamic(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case test::DemoD2::__ID__: { _out.reset(new test::DemoD2()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case test::DemoE1::__ID__: { _out.reset(new test::DemoE1()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case test::login::RoleInfo::__ID__: { _out.reset(new test::login::RoleInfo()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case test::DemoD5::__ID__: { _out.reset(new test::DemoD5()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool test::DemoD2::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::DemoDynamic::deserialize(_buf)) + { + return false; + } + + if(!_buf.readInt(x2)) return false; + + return true; +} + +bool test::DemoD2::deserializeDemoD2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoD2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoD3::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::DemoDynamic::deserialize(_buf)) + { + return false; + } + + if(!_buf.readInt(x3)) return false; + + return true; +} + +bool test::DemoD3::deserializeDemoD3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case test::DemoE1::__ID__: { _out.reset(new test::DemoE1()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case test::login::RoleInfo::__ID__: { _out.reset(new test::login::RoleInfo()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool test::DemoE1::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::DemoD3::deserialize(_buf)) + { + return false; + } + + if(!_buf.readInt(x4)) return false; + + return true; +} + +bool test::DemoE1::deserializeDemoE1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoE1()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::login::RoleInfo::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::DemoD3::deserialize(_buf)) + { + return false; + } + + if(!_buf.readLong(roleId)) return false; + + return true; +} + +bool test::login::RoleInfo::deserializeRoleInfo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::login::RoleInfo()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoD5::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::DemoDynamic::deserialize(_buf)) + { + return false; + } + + if(!test::DateTimeRange::deserializeDateTimeRange(_buf, time)) return false; + + return true; +} + +bool test::DemoD5::deserializeDemoD5(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoD5()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DateTimeRange::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readLong(startTime)) return false; + if(!_buf.readLong(endTime)) return false; + + return true; +} + +bool test::DateTimeRange::deserializeDateTimeRange(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DateTimeRange()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoE2::deserialize(::luban::ByteBuf& _buf) +{ + + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { y1.reset(new ::luban::int32()); if(!_buf.readInt(*y1)) return false; } else { y1.reset(); } } + if (!_buf.readBool(y2)) return false; + + return true; +} + +bool test::DemoE2::deserializeDemoE2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoE2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoSingletonType::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(name)) return false; + if(!test::DemoDynamic::deserializeDemoDynamic(_buf, date)) return false; + + return true; +} + +bool test::DemoSingletonType::deserializeDemoSingletonType(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoSingletonType()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::NotIndexList::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x)) return false; + if(!_buf.readInt(y)) return false; + + return true; +} + +bool test::NotIndexList::deserializeNotIndexList(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::NotIndexList()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::MultiUnionIndexList::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id1)) return false; + if(!_buf.readLong(id2)) return false; + if(!_buf.readString(id3)) return false; + if(!_buf.readInt(num)) return false; + if(!_buf.readString(desc)) return false; + + return true; +} + +bool test::MultiUnionIndexList::deserializeMultiUnionIndexList(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::MultiUnionIndexList()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::MultiIndexList::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id1)) return false; + if(!_buf.readLong(id2)) return false; + if(!_buf.readString(id3)) return false; + if(!_buf.readInt(num)) return false; + if(!_buf.readString(desc)) return false; + + return true; +} + +bool test::MultiIndexList::deserializeMultiIndexList(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::MultiIndexList()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::MultiRowRecord::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(name)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); oneRows.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::MultiRowType1::deserializeMultiRowType1(_buf, _e)) return false; oneRows.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); multiRows1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::MultiRowType1::deserializeMultiRowType1(_buf, _e)) return false; multiRows1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));multiRows2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e;if(!test::MultiRowType1::deserializeMultiRowType1(_buf, _e)) return false; multiRows2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); multiRows4.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::SharedPtr _v; if(!test::MultiRowType2::deserializeMultiRowType2(_buf, _v)) return false; multiRows4[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); multiRows5.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::MultiRowType3::deserializeMultiRowType3(_buf, _e)) return false; multiRows5.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); multiRows6.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::SharedPtr _v; if(!test::MultiRowType2::deserializeMultiRowType2(_buf, _v)) return false; multiRows6[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); multiRows7.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; multiRows7[_k] = _v;}} + + return true; +} + +bool test::MultiRowRecord::deserializeMultiRowRecord(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::MultiRowRecord()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::MultiRowType1::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readInt(x)) return false; + + return true; +} + +bool test::MultiRowType1::deserializeMultiRowType1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::MultiRowType1()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::MultiRowType2::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readInt(x)) return false; + if(!_buf.readFloat(y)) return false; + + return true; +} + +bool test::MultiRowType2::deserializeMultiRowType2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::MultiRowType2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::MultiRowType3::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); items.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::MultiRowType1::deserializeMultiRowType1(_buf, _e)) return false; items.push_back(_e);}} + + return true; +} + +bool test::MultiRowType3::deserializeMultiRowType3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::MultiRowType3()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestMultiColumn::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!test::Foo::deserializeFoo(_buf, a)) return false; + if(!test::Foo::deserializeFoo(_buf, b)) return false; + if(!test::Foo::deserializeFoo(_buf, c)) return false; + + return true; +} + +bool test::TestMultiColumn::deserializeTestMultiColumn(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestMultiColumn()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::Foo::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(y1)) return false; + if(!_buf.readInt(y2)) return false; + if(!_buf.readInt(y3)) return false; + + return true; +} + +bool test::Foo::deserializeFoo(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::Foo()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::MultiRowTitle::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(name)) return false; + if(!test::H1::deserializeH1(_buf, x1)) return false; + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { x20.reset(); if(!test::H2::deserializeH2(_buf, x20)) return false; } else { x20.reset(); } } + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::H2::deserializeH2(_buf, _e)) return false; x2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));x3.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e;if(!test::H2::deserializeH2(_buf, _e)) return false; x3.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));x4.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e;if(!test::H2::deserializeH2(_buf, _e)) return false; x4.push_back(_e);}} + + return true; +} + +bool test::MultiRowTitle::deserializeMultiRowTitle(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::MultiRowTitle()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::H1::deserialize(::luban::ByteBuf& _buf) +{ + + if(!test::H2::deserializeH2(_buf, y2)) return false; + if(!_buf.readInt(y3)) return false; + + return true; +} + +bool test::H1::deserializeH1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::H1()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::H2::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(z2)) return false; + if(!_buf.readInt(z3)) return false; + + return true; +} + +bool test::H2::deserializeH2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::H2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestNull::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { x1.reset(new ::luban::int32()); if(!_buf.readInt(*x1)) return false; } else { x1.reset(); } } + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { x2.reset(new test::DemoEnum()); {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; *x2 = test::DemoEnum(__enum_temp__); } } else { x2.reset(); } } + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { x3.reset(); if(!test::DemoType1::deserializeDemoType1(_buf, x3)) return false; } else { x3.reset(); } } + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { x4.reset(); if(!test::DemoDynamic::deserializeDemoDynamic(_buf, x4)) return false; } else { x4.reset(); } } + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { s1.reset(new ::luban::String()); if(!_buf.readString(*s1)) return false; } else { s1.reset(); } } + { bool _has_value_; if(!_buf.readBool(_has_value_)){return false;} if(_has_value_) { s2.reset(new ::luban::String()); if(!_buf.readString(*s2)) return false; } else { s2.reset(); } } + + return true; +} + +bool test::TestNull::deserializeTestNull(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestNull()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoPrimitiveTypesTable::deserialize(::luban::ByteBuf& _buf) +{ + + if (!_buf.readBool(x1)) return false; + if(!_buf.readByte(x2)) return false; + if(!_buf.readShort(x3)) return false; + if(!_buf.readInt(x4)) return false; + if(!_buf.readLong(x5)) return false; + if(!_buf.readFloat(x6)) return false; + if(!_buf.readDouble(x7)) return false; + if(!_buf.readString(s1)) return false; + if(!_buf.readString(s2)) return false; + if(!vec2::deserializevec2(_buf, v2)) return false; + if(!vec3::deserializevec3(_buf, v3)) return false; + if(!vec4::deserializevec4(_buf, v4)) return false; + if(!_buf.readLong(t1)) return false; + + return true; +} + +bool test::DemoPrimitiveTypesTable::deserializeDemoPrimitiveTypesTable(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoPrimitiveTypesTable()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool vec2::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readFloat(x)) return false; + if(!_buf.readFloat(y)) return false; + + return true; +} + +bool vec2::deserializevec2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new vec2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool vec3::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readFloat(x)) return false; + if(!_buf.readFloat(y)) return false; + if(!_buf.readFloat(z)) return false; + + return true; +} + +bool vec3::deserializevec3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new vec3()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool vec4::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readFloat(x)) return false; + if(!_buf.readFloat(y)) return false; + if(!_buf.readFloat(z)) return false; + if(!_buf.readFloat(w)) return false; + + return true; +} + +bool vec4::deserializevec4(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new vec4()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestString::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readString(id)) return false; + if(!_buf.readString(s1)) return false; + if(!_buf.readString(s2)) return false; + if(!test::CompactString::deserializeCompactString(_buf, cs1)) return false; + if(!test::CompactString::deserializeCompactString(_buf, cs2)) return false; + + return true; +} + +bool test::TestString::deserializeTestString(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestString()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::CompactString::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(s2)) return false; + if(!_buf.readString(s3)) return false; + + return true; +} + +bool test::CompactString::deserializeCompactString(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::CompactString()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DemoGroup::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!test::InnerGroup::deserializeInnerGroup(_buf, x5)) return false; + + return true; +} + +bool test::DemoGroup::deserializeDemoGroup(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DemoGroup()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::InnerGroup::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(y1)) return false; + + return true; +} + +bool test::InnerGroup::deserializeInnerGroup(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::InnerGroup()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestGlobal::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(unlockEquip)) return false; + if(!_buf.readInt(unlockHero)) return false; + + return true; +} + +bool test::TestGlobal::deserializeTestGlobal(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestGlobal()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestBeRef::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readInt(count)) return false; + + return true; +} + +bool test::TestBeRef::deserializeTestBeRef(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestBeRef()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestRef::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readInt(x1)) return false; + if(!_buf.readInt(x12)) return false; + if(!_buf.readInt(x2)) return false; + if(!_buf.readInt(x3)) return false; + if(!_buf.readInt(x4)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));a1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e;if(!_buf.readInt(_e)) return false; a1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));a2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e;if(!_buf.readInt(_e)) return false; a2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); b1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; b1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); b2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; b2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); c1.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; c1.insert(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); c2.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; c2.insert(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); d1.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; d1[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); d2.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; d2[_k] = _v;}} + if(!_buf.readInt(e1)) return false; + if(!_buf.readLong(e2)) return false; + if(!_buf.readString(e3)) return false; + if(!_buf.readInt(f1)) return false; + if(!_buf.readLong(f2)) return false; + if(!_buf.readString(f3)) return false; + if(!test::RefDynamicBase::deserializeRefDynamicBase(_buf, s1)) return false; + + return true; +} + +bool test::TestRef::deserializeTestRef(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestRef()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::RefDynamicBase::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x)) return false; + + return true; +} + +bool test::RefDynamicBase::deserializeRefDynamicBase(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case test::RefBean::__ID__: { _out.reset(new test::RefBean()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool test::RefBean::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::RefDynamicBase::deserialize(_buf)) + { + return false; + } + + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); arr.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; arr.push_back(_e);}} + + return true; +} + +bool test::RefBean::deserializeRefBean(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::RefBean()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestSize::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));x1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e;if(!_buf.readInt(_e)) return false; x1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; x2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x3.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; x3.insert(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); x4.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; x4[_k] = _v;}} + + return true; +} + +bool test::TestSize::deserializeTestSize(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestSize()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestSet::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(x0)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; x1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int64 _e; if(!_buf.readLong(_e)) return false; x2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x3.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::String _e; if(!_buf.readString(_e)) return false; x3.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); x4.reserve(n);for(int i = 0 ; i < n ; i++) { test::DemoEnum _e; {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; _e = test::DemoEnum(__enum_temp__); } x4.push_back(_e);}} + + return true; +} + +bool test::TestSet::deserializeTestSet(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestSet()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::DetectEncoding::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(name)) return false; + + return true; +} + +bool test::DetectEncoding::deserializeDetectEncoding(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::DetectEncoding()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::ItemBase::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(name)) return false; + if(!_buf.readString(desc)) return false; + + return true; +} + +bool test::ItemBase::deserializeItemBase(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case test::Item::__ID__: { _out.reset(new test::Item()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case test::Equipment::__ID__: { _out.reset(new test::Equipment()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case test::Decorator::__ID__: { _out.reset(new test::Decorator()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool test::Item::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::ItemBase::deserialize(_buf)) + { + return false; + } + + if(!_buf.readInt(num)) return false; + if(!_buf.readInt(price)) return false; + + return true; +} + +bool test::Item::deserializeItem(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::Item()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::Equipment::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::ItemBase::deserialize(_buf)) + { + return false; + } + + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; attr = test::DemoEnum(__enum_temp__); } + if(!_buf.readInt(value)) return false; + + return true; +} + +bool test::Equipment::deserializeEquipment(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::Equipment()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::Decorator::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::ItemBase::deserialize(_buf)) + { + return false; + } + + if(!_buf.readInt(duration)) return false; + + return true; +} + +bool test::Decorator::deserializeDecorator(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::Decorator()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestIndex::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); eles.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::DemoType1::deserializeDemoType1(_buf, _e)) return false; eles.push_back(_e);}} + + return true; +} + +bool test::TestIndex::deserializeTestIndex(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestIndex()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestMap::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); x1.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; x1[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); x2.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int64 _k; if(!_buf.readLong(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; x2[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); x3.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::String _k; if(!_buf.readString(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; x3[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); x4.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { test::DemoEnum _k; {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; _k = test::DemoEnum(__enum_temp__); } ::luban::int32 _v; if(!_buf.readInt(_v)) return false; x4[_k] = _v;}} + + return true; +} + +bool test::TestMap::deserializeTestMap(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestMap()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::ExcelFromJson::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x4)) return false; + if (!_buf.readBool(x1)) return false; + if(!_buf.readLong(x5)) return false; + if(!_buf.readFloat(x6)) return false; + if(!_buf.readString(s1)) return false; + if(!_buf.readString(s2)) return false; + if(!_buf.readLong(t1)) return false; + if(!test::DemoType1::deserializeDemoType1(_buf, x12)) return false; + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; x13 = test::DemoEnum(__enum_temp__); } + if(!test::DemoDynamic::deserializeDemoDynamic(_buf, x14)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));k1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e;if(!_buf.readInt(_e)) return false; k1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); k8.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; k8[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); k9.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::DemoE2::deserializeDemoE2(_buf, _e)) return false; k9.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));k15.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e;if(!test::DemoDynamic::deserializeDemoDynamic(_buf, _e)) return false; k15.push_back(_e);}} + + return true; +} + +bool test::ExcelFromJson::deserializeExcelFromJson(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::ExcelFromJson()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::CompositeJsonTable1::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(x)) return false; + + return true; +} + +bool test::CompositeJsonTable1::deserializeCompositeJsonTable1(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::CompositeJsonTable1()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::CompositeJsonTable2::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readInt(y)) return false; + + return true; +} + +bool test::CompositeJsonTable2::deserializeCompositeJsonTable2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::CompositeJsonTable2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::CompositeJsonTable3::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(a)) return false; + if(!_buf.readInt(b)) return false; + + return true; +} + +bool test::CompositeJsonTable3::deserializeCompositeJsonTable3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::CompositeJsonTable3()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::ExcelFromJsonMultiRow::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readInt(x)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); items.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::TestRow::deserializeTestRow(_buf, _e)) return false; items.push_back(_e);}} + + return true; +} + +bool test::ExcelFromJsonMultiRow::deserializeExcelFromJsonMultiRow(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::ExcelFromJsonMultiRow()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestRow::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x)) return false; + if (!_buf.readBool(y)) return false; + if(!_buf.readString(z)) return false; + if(!test::Test3::deserializeTest3(_buf, a)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); b.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e; if(!_buf.readInt(_e)) return false; b.push_back(_e);}} + + return true; +} + +bool test::TestRow::deserializeTestRow(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestRow()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::Test3::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(x)) return false; + if(!_buf.readInt(y)) return false; + + return true; +} + +bool test::Test3::deserializeTest3(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::Test3()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::TestScriptableObject::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if(!_buf.readString(desc)) return false; + if(!_buf.readFloat(rate)) return false; + if(!_buf.readInt(num)) return false; + if(!vec2::deserializevec2(_buf, v2)) return false; + if(!vec3::deserializevec3(_buf, v3)) return false; + if(!vec4::deserializevec4(_buf, v4)) return false; + + return true; +} + +bool test::TestScriptableObject::deserializeTestScriptableObject(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestScriptableObject()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + +} diff --git a/luban_examples/Projects/Cpp_bin/Gen/schema_1.cpp b/luban_examples/Projects/Cpp_bin/Gen/schema_1.cpp new file mode 100644 index 00000000..5a29f3d9 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/Gen/schema_1.cpp @@ -0,0 +1,154 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#include "schema.h" + +namespace cfg { + + +bool test::TestMapper::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; audioType = AudioType(__enum_temp__); } + if(!vec2::deserializevec2(_buf, v2)) return false; + + return true; +} + +bool test::TestMapper::deserializeTestMapper(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::TestMapper()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool DefineFromExcel2::deserialize(::luban::ByteBuf& _buf) +{ + + if(!_buf.readInt(id)) return false; + if (!_buf.readBool(x1)) return false; + if(!_buf.readLong(x5)) return false; + if(!_buf.readFloat(x6)) return false; + if(!_buf.readInt(x8)) return false; + if(!_buf.readString(x10)) return false; + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; x13 = test::DemoEnum(__enum_temp__); } + {int __enum_temp__; if(!_buf.readInt(__enum_temp__)) return false; x132 = test::DemoFlag(__enum_temp__); } + if(!test::DemoDynamic::deserializeDemoDynamic(_buf, x14)) return false; + if(!test::Shape::deserializeShape(_buf, x15)) return false; + if(!vec2::deserializevec2(_buf, v2)) return false; + if(!_buf.readLong(t1)) return false; + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));k1.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e;if(!_buf.readInt(_e)) return false; k1.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size()));k2.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::int32 _e;if(!_buf.readInt(_e)) return false; k2.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, (::luban::int32)_buf.size()); k8.reserve(n * 3 / 2);for(int i = 0 ; i < n ; i++) { ::luban::int32 _k; if(!_buf.readInt(_k)) return false; ::luban::int32 _v; if(!_buf.readInt(_v)) return false; k8[_k] = _v;}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); k9.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!test::DemoE2::deserializeDemoE2(_buf, _e)) return false; k9.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); k10.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!vec3::deserializevec3(_buf, _e)) return false; k10.push_back(_e);}} + {::luban::int32 n; if(!_buf.readSize(n)) return false; n = std::min(n, ::luban::int32(_buf.size())); k11.reserve(n);for(int i = 0 ; i < n ; i++) { ::luban::SharedPtr _e; if(!vec4::deserializevec4(_buf, _e)) return false; k11.push_back(_e);}} + + return true; +} + +bool DefineFromExcel2::deserializeDefineFromExcel2(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new DefineFromExcel2()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test::Shape::deserialize(::luban::ByteBuf& _buf) +{ + + + return true; +} + +bool test::Shape::deserializeShape(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + int id; + if (!_buf.readInt(id)) return false; + switch (id) + { + case test::Circle::__ID__: { _out.reset(new test::Circle()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + case test2::Rectangle::__ID__: { _out.reset(new test2::Rectangle()); if (_out->deserialize(_buf)) { return true; } else { _out.reset(); return false;} } + default: { _out = nullptr; return false;} + } +} + + +bool test::Circle::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::Shape::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(radius)) return false; + + return true; +} + +bool test::Circle::deserializeCircle(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test::Circle()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + + +bool test2::Rectangle::deserialize(::luban::ByteBuf& _buf) +{ + if (!test::Shape::deserialize(_buf)) + { + return false; + } + + if(!_buf.readFloat(width)) return false; + if(!_buf.readFloat(height)) return false; + + return true; +} + +bool test2::Rectangle::deserializeRectangle(::luban::ByteBuf& _buf, ::luban::SharedPtr& _out) +{ + _out.reset(new test2::Rectangle()); + if (_out->deserialize(_buf)) + { + return true; + } + else + { + _out.reset(); + return false; + } +} + +} diff --git a/luban_examples/Projects/Cpp_bin/TestGen.sln b/luban_examples/Projects/Cpp_bin/TestGen.sln new file mode 100644 index 00000000..5e1dc8d1 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/TestGen.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestGen", "TestGen.vcxproj", "{D4314D34-4930-454D-9B66-004460B326E9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D4314D34-4930-454D-9B66-004460B326E9}.Debug|x64.ActiveCfg = Debug|x64 + {D4314D34-4930-454D-9B66-004460B326E9}.Debug|x64.Build.0 = Debug|x64 + {D4314D34-4930-454D-9B66-004460B326E9}.Debug|x86.ActiveCfg = Debug|Win32 + {D4314D34-4930-454D-9B66-004460B326E9}.Debug|x86.Build.0 = Debug|Win32 + {D4314D34-4930-454D-9B66-004460B326E9}.Release|x64.ActiveCfg = Release|x64 + {D4314D34-4930-454D-9B66-004460B326E9}.Release|x64.Build.0 = Release|x64 + {D4314D34-4930-454D-9B66-004460B326E9}.Release|x86.ActiveCfg = Release|Win32 + {D4314D34-4930-454D-9B66-004460B326E9}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CFE39AA5-08F9-4301-8607-A9A4DD2B2E18} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Cpp_bin/TestGen.vcxproj b/luban_examples/Projects/Cpp_bin/TestGen.vcxproj new file mode 100644 index 00000000..7f8ef593 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/TestGen.vcxproj @@ -0,0 +1,167 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {D4314D34-4930-454D-9B66-004460B326E9} + Win32Proj + TestGen + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + $(ProjectDir);$(IncludePath) + + + true + $(ProjectDir)/luban;$(ProjectDir)/Gen;$(ProjectDir);$(IncludePath) + + + false + + + false + $(ProjectDir)/Gen;$(ProjectDir);$(IncludePath) + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Cpp_bin/TestGen.vcxproj.filters b/luban_examples/Projects/Cpp_bin/TestGen.vcxproj.filters new file mode 100644 index 00000000..4b334822 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/TestGen.vcxproj.filters @@ -0,0 +1,45 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + + + 头文件 + + + 头文件 + + + 头文件 + + + 头文件 + + + \ No newline at end of file diff --git a/luban_examples/Projects/Cpp_bin/gen.bat b/luban_examples/Projects/Cpp_bin/gen.bat new file mode 100644 index 00000000..5084c82d --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c cpp-bin ^ + -d bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Gen ^ + -x outputDataDir=..\GenerateDatas\bytes ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Cpp_bin/luban/ByteBuf.cpp b/luban_examples/Projects/Cpp_bin/luban/ByteBuf.cpp new file mode 100644 index 00000000..073b843e --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/luban/ByteBuf.cpp @@ -0,0 +1,7 @@ +#include "ByteBuf.h" + +namespace luban +{ + const int ByteBuf::INIT_CAPACITY = 16; + const byte ByteBuf::EMPTY_BYTES[1] = { '\0' }; +} \ No newline at end of file diff --git a/luban_examples/Projects/Cpp_bin/luban/ByteBuf.h b/luban_examples/Projects/Cpp_bin/luban/ByteBuf.h new file mode 100644 index 00000000..8725647e --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/luban/ByteBuf.h @@ -0,0 +1,953 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include + +#include "CommonMacros.h" + +namespace luban +{ + class ByteBuf + { + private: + static const int INIT_CAPACITY; // 默认空间 + static const byte EMPTY_BYTES[1]; + + byte* data_; + int beginPos_; + int endPos_; + int capacity_; + + public: + ByteBuf() : data_((byte*)(EMPTY_BYTES)), beginPos_(0), endPos_(0), capacity_(0) + { + + } + + + + ~ByteBuf() + { + deleteOldData(); + } + + ByteBuf(int capacity) + { + init(new byte[capacity], capacity, 0, 0); + } + + ByteBuf(byte* bytes, int capacity, int beginPos_, int endPos_) + { + this->capacity_ = capacity; + this->data_ = bytes; + this->beginPos_ = beginPos_; + this->endPos_ = endPos_; + } + + + + int getCapacity() const + { + return capacity_; + } + + int size() const + { + return endPos_ - beginPos_; + } + + int getReadIndex() const + { + return beginPos_; + } + + int getWriteIndex() const + { + return endPos_; + } + + byte* getDataUnsafe() const + { + return data_; + } + + + void replace(byte* bytes, int size) + { + deleteOldData(); + this->capacity_ = size; + this->data_ = bytes; + this->beginPos_ = 0; + this->endPos_ = size; + } + + + bool skipBytes() + { + int oldReadIndex = beginPos_; + int n; + if (!readSize(n) || !ensureRead(n)) + { + beginPos_ = oldReadIndex; + return false; + } + beginPos_ += n; + return true; + } + + void addWriteIndexUnsafe(int add) + { + endPos_ += add; + } + + void addReadIndexUnsafe(int add) + { + beginPos_ += add; + } + + + byte* copyRemainData(int& len) + { + int n = size(); + len = n; + if (n > 0) + { + byte* arr = new byte[n]; + std::memcpy(arr, this->data_ + beginPos_, n); + return arr; + } + else + { + return const_cast(EMPTY_BYTES); + } + } + + void clear() + { + beginPos_ = endPos_ = 0; + } + + void append(byte x) + { + reserveWrite(1); + data_[endPos_++] = x; + } + + + // ================================== + // 以下是序列化具体数据类型相关函数 + // ================================== + + void writeBool(bool b) + { + reserveWrite(1); + data_[endPos_++] = b; + } + + bool readBool(bool& out) + { + if (!ensureRead(1)) return false;; + out = bool(data_[beginPos_++]); + return true; + } + + void writeByte(byte x) + { + reserveWrite(1); + data_[endPos_++] = x; + } + + bool readByte(byte& out) + { + if (!ensureRead(1)) return false; + out = data_[beginPos_++]; + return true; + } + + + void writeShort(int16_t x) + { + if (x >= 0) + { + if (x < 0x80) + { + reserveWrite(1); + data_[endPos_++] = (byte)x; + return; + } + else if (x < 0x4000) + { + reserveWrite(2); + data_[endPos_ + 1] = (byte)x; + data_[endPos_] = (byte)((x >> 8) | 0x80); + endPos_ += 2; + return; + } + } + reserveWrite(3); + data_[endPos_] = byte{ 0xff }; + data_[endPos_ + 2] = (byte)x; + data_[endPos_ + 1] = (byte)(x >> 8); + endPos_ += 3; + } + + bool readShort(int16_t& out) + { + if (!ensureRead(1)) return false; + int32_t h = (data_[beginPos_] & 0xff); + if (h < 0x80) + { + beginPos_++; + out = (int16_t)h; + } + else if (h < 0xc0) + { + if (!ensureRead(2)) return false; + int32_t x = ((h & 0x3f) << 8) | (data_[beginPos_ + 1] & 0xff); + beginPos_ += 2; + out = (int16_t)x; + } + else if (h == 0xff) + { + if (!ensureRead(3)) return false; + int32_t x = ((data_[beginPos_ + 1] & 0xff) << 8) | (data_[beginPos_ + 2] & 0xff); + beginPos_ += 3; + out = (int16_t)x; + } + else + { + return false; + } + return true; + } + + + void writeFshort(int16_t x) + { + reserveWrite(2); + copy2(getWriteData(), (byte*)&x); + endPos_ += 2; + } + + bool readFshort(int16_t& out) + { + if (!ensureRead(2)) return false; + copy2((byte*)&out, getReadData()); + beginPos_ += 2; + return true; + } + + void writeInt(int32_t x) + { + writeUint((uint32_t)x); + } + + bool readInt(int32_t& out) + { + return (int32_t)readUint(*(uint32_t*)&out); + } + + void writeFint(int32_t x) + { + reserveWrite(4); + copy4(getWriteData(), (byte*)&x); + endPos_ += 4; + } + + bool readFint(int32_t& out) + { + if (!ensureRead(4)) return false; + copy4((byte*)&out, getReadData()); + beginPos_ += 4; + return true; + } + + // marshal int + // n -> (n << 1) ^ (n >> 31) + // read + // (x >>> 1) ^ ((x << 31) >> 31) + // (x >>> 1) ^ -(n&1) + void writeSint(int32_t x) + { + writeUint((x << 1) ^ (x >> 31)); + } + + bool readSint(int32_t& out) + { + uint32_t x; + if (readUint(x)) + { + out = ((int32_t)(x >> 1) ^ -((int32_t)x & 1)); + return true; + } + else + { + return false; + } + } + + void writeUint(uint32_t x) + { + // 0 111 1111 + if (x < 0x80) + { + reserveWrite(1); + data_[endPos_++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + reserveWrite(2); + data_[endPos_ + 1] = (byte)x; + data_[endPos_] = (byte)((x >> 8) | 0x80); + endPos_ += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + reserveWrite(3); + data_[endPos_ + 2] = (byte)x; + data_[endPos_ + 1] = (byte)(x >> 8); + data_[endPos_] = (byte)((x >> 16) | 0xc0); + endPos_ += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + reserveWrite(4); + data_[endPos_ + 3] = (byte)x; + data_[endPos_ + 2] = (byte)(x >> 8); + data_[endPos_ + 1] = (byte)(x >> 16); + data_[endPos_] = (byte)((x >> 24) | 0xe0); + endPos_ += 4; + } + else + { + reserveWrite(5); + data_[endPos_] = 0xf0; + data_[endPos_ + 4] = (byte)x; + data_[endPos_ + 3] = (byte)(x >> 8); + data_[endPos_ + 2] = (byte)(x >> 16); + data_[endPos_ + 1] = (byte)(x >> 24); + endPos_ += 5; + } + } + + bool readUint(uint32_t& out) + { + if (!ensureRead(1)) return false; + uint32_t h = data_[beginPos_]; + if (h < 0x80) + { + beginPos_++; + out = h; + } + else if (h < 0xc0) + { + if (!ensureRead(2)) return false; + uint32_t x = ((h & 0x3f) << 8) | data_[beginPos_ + 1]; + beginPos_ += 2; + out = x; + } + else if (h < 0xe0) + { + if (!ensureRead(3)) return false; + uint32_t x = ((h & 0x1f) << 16) | ((uint32_t)data_[beginPos_ + 1] << 8) | data_[beginPos_ + 2]; + beginPos_ += 3; + out = x; + } + else if (h < 0xf0) + { + + if (!ensureRead(4)) return false; + uint32_t x = ((h & 0x0f) << 24) | ((uint32_t)data_[beginPos_ + 1] << 16) | ((uint32_t)data_[beginPos_ + 2] << 8) | data_[beginPos_ + 3]; + beginPos_ += 4; + out = x; + } + else + { + if (!ensureRead(5)) return false; + uint32_t x = ((uint32_t)data_[beginPos_ + 1] << 24) | ((uint32_t)(data_[beginPos_ + 2] << 16)) + | ((uint32_t)data_[beginPos_ + 3] << 8) | ((uint32_t)data_[beginPos_ + 4]); + beginPos_ += 5; + out = x; + } + return true; + } + + + void writeLong(int64_t x) + { + writeUlong((uint64_t)x); + } + + bool readLong(int64_t& out) + { + return readUlong((uint64_t&)*(uint64_t*)&out); + } + + // marshal long + // n -> (n << 1) ^ (n >> 63) + // read + // (x >>> 1) ^((x << 63) >> 63) + // (x >>> 1) ^ -(n&1L) + void writeSlong(int64_t x) + { + writeUlong((x << 1) ^ (x >> 63)); + } + + bool readSlong(int64_t& out) + { + uint64_t x; + if (readUlong(x)) + { + out = ((int64_t)(x >> 1) ^ -((int64_t)x & 1)); + return true; + } + else + { + return false; + } + } + + + void writeFlong(int64_t x) + { + reserveWrite(8); + copy8(getWriteData(), (byte*)&x); + endPos_ += 8; + } + + bool readFlong(int64_t& out) + { + if (!ensureRead(8)) return false; + copy8((byte*)&out, getReadData()); + beginPos_ += 8; + return true; + } + + void writeUlong(uint64_t x) + { + // 0 111 1111 + if (x < 0x80) + { + reserveWrite(1); + data_[endPos_++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + reserveWrite(2); + data_[endPos_ + 1] = (byte)x; + data_[endPos_] = (byte)((x >> 8) | 0x80); + endPos_ += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + reserveWrite(3); + data_[endPos_ + 2] = (byte)x; + data_[endPos_ + 1] = (byte)(x >> 8); + data_[endPos_] = (byte)((x >> 16) | 0xc0); + endPos_ += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + reserveWrite(4); + data_[endPos_ + 3] = (byte)x; + data_[endPos_ + 2] = (byte)(x >> 8); + data_[endPos_ + 1] = (byte)(x >> 16); + data_[endPos_] = (byte)((x >> 24) | 0xe0); + endPos_ += 4; + } + else if (x < 0x800000000L) // 1111 0xxx,-,-,-,- + { + reserveWrite(5); + data_[endPos_ + 4] = (byte)x; + data_[endPos_ + 3] = (byte)(x >> 8); + data_[endPos_ + 2] = (byte)(x >> 16); + data_[endPos_ + 1] = (byte)(x >> 24); + data_[endPos_] = (byte)((x >> 32) | 0xf0); + endPos_ += 5; + } + else if (x < 0x40000000000L) // 1111 10xx, + { + reserveWrite(6); + data_[endPos_ + 5] = (byte)x; + data_[endPos_ + 4] = (byte)(x >> 8); + data_[endPos_ + 3] = (byte)(x >> 16); + data_[endPos_ + 2] = (byte)(x >> 24); + data_[endPos_ + 1] = (byte)(x >> 32); + data_[endPos_] = (byte)((x >> 40) | 0xf8); + endPos_ += 6; + } + else if (x < 0x200000000000L) // 1111 110x, + { + reserveWrite(7); + data_[endPos_ + 6] = (byte)x; + data_[endPos_ + 5] = (byte)(x >> 8); + data_[endPos_ + 4] = (byte)(x >> 16); + data_[endPos_ + 3] = (byte)(x >> 24); + data_[endPos_ + 2] = (byte)(x >> 32); + data_[endPos_ + 1] = (byte)(x >> 40); + data_[endPos_] = (byte)((x >> 48) | 0xfc); + endPos_ += 7; + } + else if (x < 0x100000000000000L) // 1111 1110 + { + reserveWrite(8); + data_[endPos_ + 7] = (byte)x; + data_[endPos_ + 6] = (byte)(x >> 8); + data_[endPos_ + 5] = (byte)(x >> 16); + data_[endPos_ + 4] = (byte)(x >> 24); + data_[endPos_ + 3] = (byte)(x >> 32); + data_[endPos_ + 2] = (byte)(x >> 40); + data_[endPos_ + 1] = (byte)(x >> 48); + data_[endPos_] = 0xfe; + endPos_ += 8; + } + else // 1111 1111 + { + reserveWrite(9); + data_[endPos_] = 0xff; + data_[endPos_ + 8] = (byte)x; + data_[endPos_ + 7] = (byte)(x >> 8); + data_[endPos_ + 6] = (byte)(x >> 16); + data_[endPos_ + 5] = (byte)(x >> 24); + data_[endPos_ + 4] = (byte)(x >> 32); + data_[endPos_ + 3] = (byte)(x >> 40); + data_[endPos_ + 2] = (byte)(x >> 48); + data_[endPos_ + 1] = (byte)(x >> 56); + endPos_ += 9; + } + } + + bool readUlong(uint64_t& out) + { + if (!ensureRead(1)) return false; + uint32_t h = data_[beginPos_]; + if (h < 0x80) + { + beginPos_++; + out = h; + } + else if (h < 0xc0) + { + if (!ensureRead(2)) return false; + uint32_t x = ((h & 0x3f) << 8) | data_[beginPos_ + 1]; + beginPos_ += 2; + out = x; + } + else if (h < 0xe0) + { + if (!ensureRead(3)) return false; + uint32_t x = ((h & 0x1f) << 16) | ((uint32_t)data_[beginPos_ + 1] << 8) | data_[beginPos_ + 2]; + beginPos_ += 3; + out = x; + } + else if (h < 0xf0) + { + if (!ensureRead(4)) return false; + uint32_t x = ((h & 0x0f) << 24) | ((uint32_t)data_[beginPos_ + 1] << 16) | ((uint32_t)data_[beginPos_ + 2] << 8) | data_[beginPos_ + 3]; + beginPos_ += 4; + out = x; + } + else if (h < 0xf8) + { + if (!ensureRead(5)) return false; + uint32_t xl = ((uint32_t)data_[beginPos_ + 1] << 24) | ((uint32_t)(data_[beginPos_ + 2] << 16)) | ((uint32_t)data_[beginPos_ + 3] << 8) | (data_[beginPos_ + 4]); + uint32_t xh = h & 0x07; + beginPos_ += 5; + out = ((uint64_t)xh << 32) | xl; + } + else if (h < 0xfc) + { + if (!ensureRead(6)) return false; + uint32_t xl = ((uint32_t)data_[beginPos_ + 2] << 24) | ((uint32_t)(data_[beginPos_ + 3] << 16)) | ((uint32_t)data_[beginPos_ + 4] << 8) | (data_[beginPos_ + 5]); + uint32_t xh = ((h & 0x03) << 8) | data_[beginPos_ + 1]; + beginPos_ += 6; + out = ((uint64_t)xh << 32) | xl; + } + else if (h < 0xfe) + { + if (!ensureRead(7)) return false; + uint32_t xl = ((uint32_t)data_[beginPos_ + 3] << 24) | ((uint32_t)(data_[beginPos_ + 4] << 16)) | ((uint32_t)data_[beginPos_ + 5] << 8) | (data_[beginPos_ + 6]); + uint32_t xh = ((h & 0x01) << 16) | ((uint32_t)data_[beginPos_ + 1] << 8) | data_[beginPos_ + 2]; + beginPos_ += 7; + out = ((uint64_t)xh << 32) | xl; + } + else if (h < 0xff) + { + if (!ensureRead(8)) return false; + uint32_t xl = ((uint32_t)data_[beginPos_ + 4] << 24) | ((uint32_t)(data_[beginPos_ + 5] << 16)) | ((uint32_t)data_[beginPos_ + 6] << 8) | (data_[beginPos_ + 7]); + uint32_t xh = /*((h & 0x01) << 24) |*/ ((uint32_t)data_[beginPos_ + 1] << 16) | ((uint32_t)data_[beginPos_ + 2] << 8) | data_[beginPos_ + 3]; + beginPos_ += 8; + out = ((uint64_t)xh << 32) | xl; + } + else + { + if (!ensureRead(9)) return false; + uint32_t xl = ((uint32_t)data_[beginPos_ + 5] << 24) | ((uint32_t)(data_[beginPos_ + 6] << 16)) | ((uint32_t)data_[beginPos_ + 7] << 8) | (data_[beginPos_ + 8]); + uint32_t xh = ((uint32_t)data_[beginPos_ + 1] << 24) | ((uint32_t)data_[beginPos_ + 2] << 16) | ((uint32_t)data_[beginPos_ + 3] << 8) | data_[beginPos_ + 4]; + beginPos_ += 9; + out = ((uint64_t)xh << 32) | xl; + } + return true; + } + + + void writeFloat(float x) + { + reserveWrite(4); + + byte* b = &data_[endPos_]; + + if ((int64_t)b % 4 == 0) + { + *(float*)b = x; + } + else + { + // TODO x是对齐的, 可以优化 + copy4(b, (byte*)&x); + } + + endPos_ += 4; + } + + bool readFloat(float& out) + { + if (!ensureRead(4)) return false; + + float x; + byte* b = &data_[beginPos_]; + + if ((int64_t)b % 4 == 0) + { + x = *(float*)b; + } + else + { + // TODO x是对齐的, 可以优化 + copy4((byte*)&x, b); + } + beginPos_ += 4; + out = x; + return true; + } + + void writeDouble(double x) + { + reserveWrite(8); + byte* b = &data_[endPos_]; + + if ((int64_t)b % 8 == 0) + { + *(double*)b = x; + } + else + { + copy8(b, (byte*)&x); + } + + endPos_ += 8; + } + + bool readDouble(double& out) + { + if (!ensureRead(8)) return false; + + double x; + byte* b = &data_[beginPos_]; + + if ((int64_t)b % 8 == 0) + { + x = *(double*)b; + } + else + { + // TODO x是对齐的, 可以优化 + copy8((byte*)&x, b); + } + + beginPos_ += 8; + out = x; + return true; + } + + void writeString(const std::string& x) + { + int n = (int)x.length(); + writeSize(n); + if (n > 0) + { + reserveWrite(n); + std::memcpy(data_ + endPos_, x.data(), n); + endPos_ += n; + } + } + + bool readString(std::string& x) + { + int n; + if (!readSize(n)) return false; + if (!ensureRead(n)) return false; + x.resize(n); + if (n > 0) + { + std::memcpy((void*)x.data(), data_ + beginPos_, n); + beginPos_ += n; + } + return true; + } + + void writeBytes(const char* buff, int len) + { + int n = len; + writeSize(n); + reserveWrite(n); + std::memcpy(data_ + endPos_, buff, n); + endPos_ += n; + } + + bool readBytesNotCopy(char*& buffer, int& len) + { + int n; + if (!readSize(n) || !ensureRead(n)) return false; + len = n; + buffer = (char*)this->getReadData(); + beginPos_ += n; + return true; + } + + + void writeSize(int n) + { + writeUint(n); + } + + bool readSize(int& out) + { + uint32_t re; + if (readUint(re)) + { + out = re; + return true; + } + else + { + return false; + } + } + + void appendBuffer(const char* buf, int len) + { + int n = len; + reserveWrite(n); + std::memcpy(data_ + endPos_, buf, n); + endPos_ += n; + } + + std::string toString() + { + std::string re; + char hex[2]; + for (int i = beginPos_; i < endPos_; i++) + { + if (i != beginPos_) + { + re.append("."); + } + hex[0] = toHex(data_[i] >> 4); + hex[1] = toHex(data_[i] & 0xf); + re.append(hex, 2); + } + return re;//std::move(re); + } + + static ByteBuf* fromString(const std::string& value) + { + + ByteBuf* re = new ByteBuf(); + char* str = const_cast(value.c_str()); + for (; *str; ) + { + if (*str == ',' || *str == '.') + { + ++str; + } + re->append(byte(std::strtoul(str, &str, 16))); + } + return re; + } + + enum class UnmarshalError : int + { + OK, + NOT_ENOUGH, + EXCEED_SIZE, + UNMARSHAL_ERR, + }; + + UnmarshalError TryInplaceUnmarshalBuf(int maxSize, ByteBuf& body) + { + int oldReadIndex = beginPos_; + + int n; + if (!readSize(n)) + { + this->beginPos_ = oldReadIndex; + return UnmarshalError::NOT_ENOUGH; + } + if (n > maxSize) + { + this->beginPos_ = oldReadIndex; + return UnmarshalError::EXCEED_SIZE; + } + if (size() < n) + { + this->beginPos_ = oldReadIndex; + return UnmarshalError::NOT_ENOUGH; + } + body.data_ = data_; + body.beginPos_ = beginPos_; + beginPos_ += n; + body.endPos_ = beginPos_; + return UnmarshalError::OK; + } + + static int calcNewCapacity(int initSize, int needSize) + { + for (int i = std::max(initSize * 2, INIT_CAPACITY); ; i <<= 1) + { + if (i >= needSize) + return i; + } + } + + void compactBuffer() + { + int remainSize = (endPos_ -= beginPos_); + + std::memmove(data_, data_ + beginPos_, remainSize); + beginPos_ = 0; + } + + bool loadFromFile(const std::string& file) + { + clear(); + std::ifstream infile(file, std::ios_base::binary); + if (infile.fail()) return false; + std::istreambuf_iterator beginIt(infile); + std::vector arr(beginIt, std::istreambuf_iterator()); + appendBuffer(arr.data(), int(arr.size())); + return true; + } + private: + void init(byte* data, int capacity, int beginPos, int endPos) + { + this->data_ = data; + this->capacity_ = capacity; + this->beginPos_ = beginPos; + this->endPos_ = endPos; + } + + ByteBuf(const ByteBuf& o) = delete; + ByteBuf& operator = (const ByteBuf& o) = delete; + ByteBuf(ByteBuf&& o) = delete; + + void deleteOldData() + { + if (data_ != EMPTY_BYTES) + { + + delete[] data_; + data_ = nullptr; + + } + } + + + byte* getReadData() const + { + return data_ + beginPos_; + } + + byte* getWriteData() const + { + return data_ + endPos_; + } + + + int notCompactWritable() + { + return capacity_ - endPos_; + } + + void compactOrResize(int size) + { + int remainSize = (endPos_ -= beginPos_); + int needCapacity = remainSize + size; + + if (needCapacity <= (int)capacity_) + { + std::memmove(data_, data_ + beginPos_, remainSize); + beginPos_ = 0; + } + else + { + capacity_ = calcNewCapacity(capacity_, needCapacity); + byte* newBytes = new byte[capacity_]; + std::memmove(newBytes, data_ + beginPos_, remainSize); + beginPos_ = 0; + data_ = newBytes; + } + } + + inline void reserveWrite(int size) + { + if (endPos_ + size > (int)capacity_) + { + compactOrResize(size); + } + } + + inline bool ensureRead(int size) + { + return (beginPos_ + size <= endPos_); + } + + + + static void copy8(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + dst[4] = src[4]; + dst[5] = src[5]; + dst[6] = src[6]; + dst[7] = src[7]; + } + + static void copy4(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + } + + static void copy2(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + } + + static char toHex(int num) + { + return num < 10 ? '0' + num : 'A' + num - 10; + } + }; +} \ No newline at end of file diff --git a/luban_examples/Projects/Cpp_bin/luban/CfgBean.h b/luban_examples/Projects/Cpp_bin/luban/CfgBean.h new file mode 100644 index 00000000..6d81e05b --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/luban/CfgBean.h @@ -0,0 +1,15 @@ +#pragma once + +#include "ByteBuf.h" + +namespace luban +{ + + class CfgBean + { + public: + virtual int getTypeId() const = 0; + + virtual bool deserialize(ByteBuf& buf) = 0; + }; +} \ No newline at end of file diff --git a/luban_examples/Projects/Cpp_bin/luban/CommonMacros.h b/luban_examples/Projects/Cpp_bin/luban/CommonMacros.h new file mode 100644 index 00000000..2b228762 --- /dev/null +++ b/luban_examples/Projects/Cpp_bin/luban/CommonMacros.h @@ -0,0 +1,43 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +namespace luban +{ + typedef std::uint8_t byte; + typedef std::int16_t int16; + typedef std::int32_t int32; + typedef std::int64_t int64; + typedef float float32; + typedef double float64; + + typedef std::string String; + + typedef std::int64_t datetime; + + template + using Vector = std::vector; + + template + using Array = std::vector; + + template + using HashSet = std::unordered_set; + + template + using HashMap = std::unordered_map; + + template + using SharedPtr = std::shared_ptr; + + template + using Function = std::function; + + template + using Loader=std::function; +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/AudioType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/AudioType.cs new file mode 100644 index 00000000..3ac4c0e7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/AudioType.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/DefineFromExcel2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..0a0820ca --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/DefineFromExcel2.cs @@ -0,0 +1,120 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public sealed partial class DefineFromExcel2 : Luban.BeanBase +{ + public DefineFromExcel2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X8 = _buf.GetProperty("x8").GetInt32(); + X10 = _buf.GetProperty("x10").GetString(); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X132 = (test.DemoFlag)_buf.GetProperty("x13_2").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + X15 = test.Shape.DeserializeShape(_buf.GetProperty("x15")); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf.GetProperty("v2"))); + T1 = _buf.GetProperty("t1").GetInt64(); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k2"); int _n0 = __json0.GetArrayLength(); K2 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k10"); K10 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { System.Numerics.Vector3 __v0; __v0 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(__e0)); K10.Add(__v0); } } + { var __json0 = _buf.GetProperty("k11"); K11 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { System.Numerics.Vector4 __v0; __v0 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(__e0)); K11.Add(__v0); } } + } + + public static DefineFromExcel2 DeserializeDefineFromExcel2(JsonElement _buf) + { + return new DefineFromExcel2(_buf); + } + + /// + /// 这是id + /// + public readonly int Id; + /// + /// 字段x1 + /// + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly int X8; + public readonly string X10; + public readonly test.DemoEnum X13; + public readonly test.DemoFlag X132; + public readonly test.DemoDynamic X14; + public readonly test.Shape X15; + public readonly System.Numerics.Vector2 V2; + public readonly long T1; + public readonly int[] K1; + public readonly int[] K2; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly System.Collections.Generic.List K10; + public readonly System.Collections.Generic.List K11; + + public const int __ID__ = 482045152; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + X14?.ResolveRef(tables); + X15?.ResolveRef(tables); + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x8:" + X8 + "," + + "x10:" + X10 + "," + + "x13:" + X13 + "," + + "x132:" + X132 + "," + + "x14:" + X14 + "," + + "x15:" + X15 + "," + + "v2:" + V2 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k10:" + Luban.StringUtil.CollectionToString(K10) + "," + + "k11:" + Luban.StringUtil.CollectionToString(K11) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/Tables.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/Tables.cs new file mode 100644 index 00000000..e879419d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/Tables.cs @@ -0,0 +1,148 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + +namespace cfg +{ +public partial class Tables +{ + public ai.TbBlackboard TbBlackboard {get; } + public ai.TbBehaviorTree TbBehaviorTree {get; } + public common.TbGlobalConfig TbGlobalConfig {get; } + /// + /// 道具表 + /// + public item.TbItem TbItem {get; } + public l10n.TbL10NDemo TbL10NDemo {get; } + public l10n.TbPatchDemo TbPatchDemo {get; } + public tag.TbTestTag TbTestTag {get; } + public test.TbFullTypes TbFullTypes {get; } + public test.TbSingleton TbSingleton {get; } + public test.TbNotIndexList TbNotIndexList {get; } + public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; } + public test.TbMultiIndexList TbMultiIndexList {get; } + public test.TbDataFromMisc TbDataFromMisc {get; } + public test.TbMultiRowRecord TbMultiRowRecord {get; } + public test.TbTestMultiColumn TbTestMultiColumn {get; } + public test.TbMultiRowTitle TbMultiRowTitle {get; } + public test.TbTestNull TbTestNull {get; } + public test.TbDemoPrimitive TbDemoPrimitive {get; } + public test.TbTestString TbTestString {get; } + public test.TbDemoGroup TbDemoGroup {get; } + public test.TbDemoGroup_S TbDemoGroupS {get; } + public test.TbTestGlobal TbTestGlobal {get; } + public test.TbTestBeRef TbTestBeRef {get; } + public test.TbTestBeRef2 TbTestBeRef2 {get; } + public test.TbTestRef TbTestRef {get; } + public test.TbTestSize TbTestSize {get; } + public test.TbTestSet TbTestSet {get; } + public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; } + public test.TbItem2 TbItem2 {get; } + public test.TbTestIndex TbTestIndex {get; } + public test.TbTestMap TbTestMap {get; } + public test.TbExcelFromJson TbExcelFromJson {get; } + public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; } + public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; } + public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; } + public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; } + public test.TbTestScriptableObject TbTestScriptableObject {get; } + public test.TbTestMapper TbTestMapper {get; } + public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; } + + public Tables(System.Func loader) + { + TbBlackboard = new ai.TbBlackboard(loader("ai_tbblackboard")); + TbBehaviorTree = new ai.TbBehaviorTree(loader("ai_tbbehaviortree")); + TbGlobalConfig = new common.TbGlobalConfig(loader("common_tbglobalconfig")); + TbItem = new item.TbItem(loader("item_tbitem")); + TbL10NDemo = new l10n.TbL10NDemo(loader("l10n_tbl10ndemo")); + TbPatchDemo = new l10n.TbPatchDemo(loader("l10n_tbpatchdemo")); + TbTestTag = new tag.TbTestTag(loader("tag_tbtesttag")); + TbFullTypes = new test.TbFullTypes(loader("test_tbfulltypes")); + TbSingleton = new test.TbSingleton(loader("test_tbsingleton")); + TbNotIndexList = new test.TbNotIndexList(loader("test_tbnotindexlist")); + TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader("test_tbmultiunionindexlist")); + TbMultiIndexList = new test.TbMultiIndexList(loader("test_tbmultiindexlist")); + TbDataFromMisc = new test.TbDataFromMisc(loader("test_tbdatafrommisc")); + TbMultiRowRecord = new test.TbMultiRowRecord(loader("test_tbmultirowrecord")); + TbTestMultiColumn = new test.TbTestMultiColumn(loader("test_tbtestmulticolumn")); + TbMultiRowTitle = new test.TbMultiRowTitle(loader("test_tbmultirowtitle")); + TbTestNull = new test.TbTestNull(loader("test_tbtestnull")); + TbDemoPrimitive = new test.TbDemoPrimitive(loader("test_tbdemoprimitive")); + TbTestString = new test.TbTestString(loader("test_tbteststring")); + TbDemoGroup = new test.TbDemoGroup(loader("test_tbdemogroup")); + TbDemoGroupS = new test.TbDemoGroup_S(loader("test_tbdemogroup_s")); + TbTestGlobal = new test.TbTestGlobal(loader("test_tbtestglobal")); + TbTestBeRef = new test.TbTestBeRef(loader("test_tbtestberef")); + TbTestBeRef2 = new test.TbTestBeRef2(loader("test_tbtestberef2")); + TbTestRef = new test.TbTestRef(loader("test_tbtestref")); + TbTestSize = new test.TbTestSize(loader("test_tbtestsize")); + TbTestSet = new test.TbTestSet(loader("test_tbtestset")); + TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader("test_tbdetectcsvencoding")); + TbItem2 = new test.TbItem2(loader("test_tbitem2")); + TbTestIndex = new test.TbTestIndex(loader("test_tbtestindex")); + TbTestMap = new test.TbTestMap(loader("test_tbtestmap")); + TbExcelFromJson = new test.TbExcelFromJson(loader("test_tbexcelfromjson")); + TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader("test_tbcompositejsontable1")); + TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader("test_tbcompositejsontable2")); + TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader("test_tbcompositejsontable3")); + TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader("test_tbexcelfromjsonmultirow")); + TbTestScriptableObject = new test.TbTestScriptableObject(loader("test_tbtestscriptableobject")); + TbTestMapper = new test.TbTestMapper(loader("test_tbtestmapper")); + TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader("test_tbdefinefromexcel2")); + ResolveRef(); + } + + private void ResolveRef() + { + TbBlackboard.ResolveRef(this); + TbBehaviorTree.ResolveRef(this); + TbGlobalConfig.ResolveRef(this); + TbItem.ResolveRef(this); + TbL10NDemo.ResolveRef(this); + TbPatchDemo.ResolveRef(this); + TbTestTag.ResolveRef(this); + TbFullTypes.ResolveRef(this); + TbSingleton.ResolveRef(this); + TbNotIndexList.ResolveRef(this); + TbMultiUnionIndexList.ResolveRef(this); + TbMultiIndexList.ResolveRef(this); + TbDataFromMisc.ResolveRef(this); + TbMultiRowRecord.ResolveRef(this); + TbTestMultiColumn.ResolveRef(this); + TbMultiRowTitle.ResolveRef(this); + TbTestNull.ResolveRef(this); + TbDemoPrimitive.ResolveRef(this); + TbTestString.ResolveRef(this); + TbDemoGroup.ResolveRef(this); + TbDemoGroupS.ResolveRef(this); + TbTestGlobal.ResolveRef(this); + TbTestBeRef.ResolveRef(this); + TbTestBeRef2.ResolveRef(this); + TbTestRef.ResolveRef(this); + TbTestSize.ResolveRef(this); + TbTestSet.ResolveRef(this); + TbDetectCsvEncoding.ResolveRef(this); + TbItem2.ResolveRef(this); + TbTestIndex.ResolveRef(this); + TbTestMap.ResolveRef(this); + TbExcelFromJson.ResolveRef(this); + TbCompositeJsonTable1.ResolveRef(this); + TbCompositeJsonTable2.ResolveRef(this); + TbCompositeJsonTable3.ResolveRef(this); + TbExcelFromJsonMultiRow.ResolveRef(this); + TbTestScriptableObject.ResolveRef(this); + TbTestMapper.ResolveRef(this); + TbDefineFromExcel2.ResolveRef(this); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..a60c74bb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BehaviorTree.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BehaviorTree : Luban.BeanBase +{ + public BehaviorTree(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + BlackboardId = _buf.GetProperty("blackboard_id").GetString(); + BlackboardId_Ref = null; + Root = ai.ComposeNode.DeserializeComposeNode(_buf.GetProperty("root")); + } + + public static BehaviorTree DeserializeBehaviorTree(JsonElement _buf) + { + return new ai.BehaviorTree(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + public readonly string BlackboardId; + public ai.Blackboard BlackboardId_Ref; + public readonly ai.ComposeNode Root; + + public const int __ID__ = 159552822; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId); + Root?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "blackboardId:" + BlackboardId + "," + + "root:" + Root + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..50ee6430 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BinaryOperator.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BinaryOperator : ai.KeyQueryOperator +{ + public BinaryOperator(JsonElement _buf) : base(_buf) + { + Oper = (ai.EOperator)_buf.GetProperty("oper").GetInt32(); + Data = ai.KeyData.DeserializeKeyData(_buf.GetProperty("data")); + } + + public static BinaryOperator DeserializeBinaryOperator(JsonElement _buf) + { + return new ai.BinaryOperator(_buf); + } + + public readonly ai.EOperator Oper; + public readonly ai.KeyData Data; + + public const int __ID__ = -979891605; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + Data?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "oper:" + Oper + "," + + "data:" + Data + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Blackboard.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..1d21ad4a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Blackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Blackboard : Luban.BeanBase +{ + public Blackboard(JsonElement _buf) + { + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + ParentName = _buf.GetProperty("parent_name").GetString(); + { var __json0 = _buf.GetProperty("keys"); Keys = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.BlackboardKey __v0; __v0 = ai.BlackboardKey.DeserializeBlackboardKey(__e0); Keys.Add(__v0); } } + } + + public static Blackboard DeserializeBlackboard(JsonElement _buf) + { + return new ai.Blackboard(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly string ParentName; + public readonly System.Collections.Generic.List Keys; + + public const int __ID__ = 1576193005; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + foreach (var _e in Keys) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "parentName:" + ParentName + "," + + "keys:" + Luban.StringUtil.CollectionToString(Keys) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..31288819 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BlackboardKey.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKey : Luban.BeanBase +{ + public BlackboardKey(JsonElement _buf) + { + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + IsStatic = _buf.GetProperty("is_static").GetBoolean(); + Type = (ai.EKeyType)_buf.GetProperty("type").GetInt32(); + TypeClassName = _buf.GetProperty("type_class_name").GetString(); + } + + public static BlackboardKey DeserializeBlackboardKey(JsonElement _buf) + { + return new ai.BlackboardKey(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly bool IsStatic; + public readonly ai.EKeyType Type; + public readonly string TypeClassName; + + public const int __ID__ = -511559886; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "isStatic:" + IsStatic + "," + + "type:" + Type + "," + + "typeClassName:" + TypeClassName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..3aa1f756 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.BlackboardKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKeyData : ai.KeyData +{ + public BlackboardKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetString(); + } + + public static BlackboardKeyData DeserializeBlackboardKeyData(JsonElement _buf) + { + return new ai.BlackboardKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = 1517269500; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..729eacde --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ChooseSkill.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ChooseSkill : ai.Task +{ + public ChooseSkill(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + ResultSkillIdKey = _buf.GetProperty("result_skill_id_key").GetString(); + } + + public static ChooseSkill DeserializeChooseSkill(JsonElement _buf) + { + return new ai.ChooseSkill(_buf); + } + + public readonly string TargetActorKey; + public readonly string ResultSkillIdKey; + + public const int __ID__ = -918812268; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "resultSkillIdKey:" + ResultSkillIdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..a1cfa676 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ChooseTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ChooseTarget : ai.Service +{ + public ChooseTarget(JsonElement _buf) : base(_buf) + { + ResultTargetKey = _buf.GetProperty("result_target_key").GetString(); + } + + public static ChooseTarget DeserializeChooseTarget(JsonElement _buf) + { + return new ai.ChooseTarget(_buf); + } + + public readonly string ResultTargetKey; + + public const int __ID__ = 1601247918; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "resultTargetKey:" + ResultTargetKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ComposeNode.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..2cad7957 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ComposeNode.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class ComposeNode : ai.FlowNode +{ + public ComposeNode(JsonElement _buf) : base(_buf) + { + } + + public static ComposeNode DeserializeComposeNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.DebugPrint.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..cf9eca40 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.DebugPrint.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class DebugPrint : ai.Task +{ + public DebugPrint(JsonElement _buf) : base(_buf) + { + Text = _buf.GetProperty("text").GetString(); + } + + public static DebugPrint DeserializeDebugPrint(JsonElement _buf) + { + return new ai.DebugPrint(_buf); + } + + public readonly string Text; + + public const int __ID__ = 1357409728; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Decorator.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Decorator.cs new file mode 100644 index 00000000..12295127 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Decorator.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Decorator : ai.Node +{ + public Decorator(JsonElement _buf) : base(_buf) + { + FlowAbortMode = (ai.EFlowAbortMode)_buf.GetProperty("flow_abort_mode").GetInt32(); + } + + public static Decorator DeserializeDecorator(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public readonly ai.EFlowAbortMode FlowAbortMode; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..72e749ae --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class DistanceLessThan : ai.Decorator +{ + public DistanceLessThan(JsonElement _buf) : base(_buf) + { + Actor1Key = _buf.GetProperty("actor1_key").GetString(); + Actor2Key = _buf.GetProperty("actor2_key").GetString(); + Distance = _buf.GetProperty("distance").GetSingle(); + ReverseResult = _buf.GetProperty("reverse_result").GetBoolean(); + } + + public static DistanceLessThan DeserializeDistanceLessThan(JsonElement _buf) + { + return new ai.DistanceLessThan(_buf); + } + + public readonly string Actor1Key; + public readonly string Actor2Key; + public readonly float Distance; + public readonly bool ReverseResult; + + public const int __ID__ = -1207170283; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "actor1Key:" + Actor1Key + "," + + "actor2Key:" + Actor2Key + "," + + "distance:" + Distance + "," + + "reverseResult:" + ReverseResult + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EExecutor.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..27ea93ba --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EExecutor.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EFinishMode.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..94a7b4c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EFinishMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..6c97a981 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EFlowAbortMode.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EKeyType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..97110a59 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EKeyType.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..61d634f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EOperator.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EOperator.cs new file mode 100644 index 00000000..25aac54d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.EOperator.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..2c0c7895 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ExecuteTimeStatistic : ai.Service +{ + public ExecuteTimeStatistic(JsonElement _buf) : base(_buf) + { + } + + public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(JsonElement _buf) + { + return new ai.ExecuteTimeStatistic(_buf); + } + + + public const int __ID__ = 990693812; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..8a508474 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.FloatKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class FloatKeyData : ai.KeyData +{ + public FloatKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetSingle(); + } + + public static FloatKeyData DeserializeFloatKeyData(JsonElement _buf) + { + return new ai.FloatKeyData(_buf); + } + + public readonly float Value; + + public const int __ID__ = -719747885; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.FlowNode.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..cfc9001d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.FlowNode.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class FlowNode : ai.Node +{ + public FlowNode(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("decorators"); Decorators = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.Decorator __v0; __v0 = ai.Decorator.DeserializeDecorator(__e0); Decorators.Add(__v0); } } + { var __json0 = _buf.GetProperty("services"); Services = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.Service __v0; __v0 = ai.Service.DeserializeService(__e0); Services.Add(__v0); } } + } + + public static FlowNode DeserializeFlowNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly System.Collections.Generic.List Decorators; + public readonly System.Collections.Generic.List Services; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Decorators) { _e?.ResolveRef(tables); } + foreach (var _e in Services) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..070ad41f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class GetOwnerPlayer : ai.Service +{ + public GetOwnerPlayer(JsonElement _buf) : base(_buf) + { + PlayerActorKey = _buf.GetProperty("player_actor_key").GetString(); + } + + public static GetOwnerPlayer DeserializeGetOwnerPlayer(JsonElement _buf) + { + return new ai.GetOwnerPlayer(_buf); + } + + public readonly string PlayerActorKey; + + public const int __ID__ = -999247644; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "playerActorKey:" + PlayerActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IntKeyData.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..16b52da7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IntKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IntKeyData : ai.KeyData +{ + public IntKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetInt32(); + } + + public static IntKeyData DeserializeIntKeyData(JsonElement _buf) + { + return new ai.IntKeyData(_buf); + } + + public readonly int Value; + + public const int __ID__ = -342751904; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..05c723f4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsAtLocation.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsAtLocation : ai.Decorator +{ + public IsAtLocation(JsonElement _buf) : base(_buf) + { + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + KeyboardKey = _buf.GetProperty("keyboard_key").GetString(); + InverseCondition = _buf.GetProperty("inverse_condition").GetBoolean(); + } + + public static IsAtLocation DeserializeIsAtLocation(JsonElement _buf) + { + return new ai.IsAtLocation(_buf); + } + + public readonly float AcceptableRadius; + public readonly string KeyboardKey; + public readonly bool InverseCondition; + + public const int __ID__ = 1255972344; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "keyboardKey:" + KeyboardKey + "," + + "inverseCondition:" + InverseCondition + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsNotSet.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..956d7d27 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsNotSet.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsNotSet : ai.KeyQueryOperator +{ + public IsNotSet(JsonElement _buf) : base(_buf) + { + } + + public static IsNotSet DeserializeIsNotSet(JsonElement _buf) + { + return new ai.IsNotSet(_buf); + } + + + public const int __ID__ = 790736255; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsSet.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsSet.cs new file mode 100644 index 00000000..dfe332b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.IsSet.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsSet : ai.KeyQueryOperator +{ + public IsSet(JsonElement _buf) : base(_buf) + { + } + + public static IsSet DeserializeIsSet(JsonElement _buf) + { + return new ai.IsSet(_buf); + } + + + public const int __ID__ = 1635350898; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..9fae6045 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class KeepFaceTarget : ai.Service +{ + public KeepFaceTarget(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + } + + public static KeepFaceTarget DeserializeKeepFaceTarget(JsonElement _buf) + { + return new ai.KeepFaceTarget(_buf); + } + + public readonly string TargetActorKey; + + public const int __ID__ = 1195270745; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "targetActorKey:" + TargetActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeyData.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeyData.cs new file mode 100644 index 00000000..2f62ce66 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class KeyData : Luban.BeanBase +{ + public KeyData(JsonElement _buf) + { + } + + public static KeyData DeserializeKeyData(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "FloatKeyData": return new ai.FloatKeyData(_buf); + case "IntKeyData": return new ai.IntKeyData(_buf); + case "StringKeyData": return new ai.StringKeyData(_buf); + case "BlackboardKeyData": return new ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..22a682d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.KeyQueryOperator.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class KeyQueryOperator : Luban.BeanBase +{ + public KeyQueryOperator(JsonElement _buf) + { + } + + public static KeyQueryOperator DeserializeKeyQueryOperator(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "IsSet": return new ai.IsSet(_buf); + case "IsNotSet": return new ai.IsNotSet(_buf); + case "BinaryOperator": return new ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..3040c8cc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToLocation.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToLocation : ai.Task +{ + public MoveToLocation(JsonElement _buf) : base(_buf) + { + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + } + + public static MoveToLocation DeserializeMoveToLocation(JsonElement _buf) + { + return new ai.MoveToLocation(_buf); + } + + public readonly float AcceptableRadius; + + public const int __ID__ = -969953113; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..94ae32d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToRandomLocation.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToRandomLocation : ai.Task +{ + public MoveToRandomLocation(JsonElement _buf) : base(_buf) + { + OriginPositionKey = _buf.GetProperty("origin_position_key").GetString(); + Radius = _buf.GetProperty("radius").GetSingle(); + } + + public static MoveToRandomLocation DeserializeMoveToRandomLocation(JsonElement _buf) + { + return new ai.MoveToRandomLocation(_buf); + } + + public readonly string OriginPositionKey; + public readonly float Radius; + + public const int __ID__ = -2140042998; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "originPositionKey:" + OriginPositionKey + "," + + "radius:" + Radius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..c98719dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.MoveToTarget.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToTarget : ai.Task +{ + public MoveToTarget(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + } + + public static MoveToTarget DeserializeMoveToTarget(JsonElement _buf) + { + return new ai.MoveToTarget(_buf); + } + + public readonly string TargetActorKey; + public readonly float AcceptableRadius; + + public const int __ID__ = 514987779; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Node.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Node.cs new file mode 100644 index 00000000..f10fea6b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Node.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Node : Luban.BeanBase +{ + public Node(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + NodeName = _buf.GetProperty("node_name").GetString(); + } + + public static Node DeserializeNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string NodeName; + + + public virtual void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Selector.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Selector.cs new file mode 100644 index 00000000..8ecd85d3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Selector.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Selector : ai.ComposeNode +{ + public Selector(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("children"); Children = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.FlowNode __v0; __v0 = ai.FlowNode.DeserializeFlowNode(__e0); Children.Add(__v0); } } + } + + public static Selector DeserializeSelector(JsonElement _buf) + { + return new ai.Selector(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1946981627; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Sequence.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Sequence.cs new file mode 100644 index 00000000..37ade687 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Sequence.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Sequence : ai.ComposeNode +{ + public Sequence(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("children"); Children = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.FlowNode __v0; __v0 = ai.FlowNode.DeserializeFlowNode(__e0); Children.Add(__v0); } } + } + + public static Sequence DeserializeSequence(JsonElement _buf) + { + return new ai.Sequence(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1789006105; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Service.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Service.cs new file mode 100644 index 00000000..6a70e8bc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Service.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Service : ai.Node +{ + public Service(JsonElement _buf) : base(_buf) + { + } + + public static Service DeserializeService(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..5678713b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.SimpleParallel.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class SimpleParallel : ai.ComposeNode +{ + public SimpleParallel(JsonElement _buf) : base(_buf) + { + FinishMode = (ai.EFinishMode)_buf.GetProperty("finish_mode").GetInt32(); + MainTask = ai.Task.DeserializeTask(_buf.GetProperty("main_task")); + BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf.GetProperty("background_node")); + } + + public static SimpleParallel DeserializeSimpleParallel(JsonElement _buf) + { + return new ai.SimpleParallel(_buf); + } + + public readonly ai.EFinishMode FinishMode; + public readonly ai.Task MainTask; + public readonly ai.FlowNode BackgroundNode; + + public const int __ID__ = -1952582529; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + MainTask?.ResolveRef(tables); + BackgroundNode?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "finishMode:" + FinishMode + "," + + "mainTask:" + MainTask + "," + + "backgroundNode:" + BackgroundNode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.StringKeyData.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..2d784877 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.StringKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class StringKeyData : ai.KeyData +{ + public StringKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetString(); + } + + public static StringKeyData DeserializeStringKeyData(JsonElement _buf) + { + return new ai.StringKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = -307888654; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Task.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Task.cs new file mode 100644 index 00000000..381878b2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.Task.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Task : ai.FlowNode +{ + public Task(JsonElement _buf) : base(_buf) + { + IgnoreRestartSelf = _buf.GetProperty("ignore_restart_self").GetBoolean(); + } + + public static Task DeserializeTask(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly bool IgnoreRestartSelf; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.TbBehaviorTree.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.TbBehaviorTree.cs new file mode 100644 index 00000000..5c060d88 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.TbBehaviorTree.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public partial class TbBehaviorTree +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBehaviorTree(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + ai.BehaviorTree _v; + _v = ai.BehaviorTree.DeserializeBehaviorTree(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.BehaviorTree GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.BehaviorTree Get(int key) => _dataMap[key]; + public ai.BehaviorTree this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.TbBlackboard.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.TbBlackboard.cs new file mode 100644 index 00000000..c654bd87 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.TbBlackboard.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public partial class TbBlackboard +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBlackboard(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + ai.Blackboard _v; + _v = ai.Blackboard.DeserializeBlackboard(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Name, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.Blackboard GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.Blackboard Get(string key) => _dataMap[key]; + public ai.Blackboard this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..8945bd7c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeBlackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeBlackboard : ai.Decorator +{ + public UeBlackboard(JsonElement _buf) : base(_buf) + { + NotifyObserver = (ai.ENotifyObserverMode)_buf.GetProperty("notify_observer").GetInt32(); + BlackboardKey = _buf.GetProperty("blackboard_key").GetString(); + KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf.GetProperty("key_query")); + } + + public static UeBlackboard DeserializeUeBlackboard(JsonElement _buf) + { + return new ai.UeBlackboard(_buf); + } + + public readonly ai.ENotifyObserverMode NotifyObserver; + public readonly string BlackboardKey; + public readonly ai.KeyQueryOperator KeyQuery; + + public const int __ID__ = -315297507; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + KeyQuery?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "notifyObserver:" + NotifyObserver + "," + + "blackboardKey:" + BlackboardKey + "," + + "keyQuery:" + KeyQuery + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeCooldown.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..9f61d7f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeCooldown.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeCooldown : ai.Decorator +{ + public UeCooldown(JsonElement _buf) : base(_buf) + { + CooldownTime = _buf.GetProperty("cooldown_time").GetSingle(); + } + + public static UeCooldown DeserializeUeCooldown(JsonElement _buf) + { + return new ai.UeCooldown(_buf); + } + + public readonly float CooldownTime; + + public const int __ID__ = -951439423; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "cooldownTime:" + CooldownTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..4299e556 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeForceSuccess.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeForceSuccess : ai.Decorator +{ + public UeForceSuccess(JsonElement _buf) : base(_buf) + { + } + + public static UeForceSuccess DeserializeUeForceSuccess(JsonElement _buf) + { + return new ai.UeForceSuccess(_buf); + } + + + public const int __ID__ = 195054574; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeLoop.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..c939e806 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeLoop.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeLoop : ai.Decorator +{ + public UeLoop(JsonElement _buf) : base(_buf) + { + NumLoops = _buf.GetProperty("num_loops").GetInt32(); + InfiniteLoop = _buf.GetProperty("infinite_loop").GetBoolean(); + InfiniteLoopTimeoutTime = _buf.GetProperty("infinite_loop_timeout_time").GetSingle(); + } + + public static UeLoop DeserializeUeLoop(JsonElement _buf) + { + return new ai.UeLoop(_buf); + } + + public readonly int NumLoops; + public readonly bool InfiniteLoop; + public readonly float InfiniteLoopTimeoutTime; + + public const int __ID__ = -513308166; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "numLoops:" + NumLoops + "," + + "infiniteLoop:" + InfiniteLoop + "," + + "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..6cbe6388 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeSetDefaultFocus : ai.Service +{ + public UeSetDefaultFocus(JsonElement _buf) : base(_buf) + { + KeyboardKey = _buf.GetProperty("keyboard_key").GetString(); + } + + public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(JsonElement _buf) + { + return new ai.UeSetDefaultFocus(_buf); + } + + public readonly string KeyboardKey; + + public const int __ID__ = 1812449155; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "keyboardKey:" + KeyboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..a7c54f07 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeTimeLimit.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeTimeLimit : ai.Decorator +{ + public UeTimeLimit(JsonElement _buf) : base(_buf) + { + LimitTime = _buf.GetProperty("limit_time").GetSingle(); + } + + public static UeTimeLimit DeserializeUeTimeLimit(JsonElement _buf) + { + return new ai.UeTimeLimit(_buf); + } + + public readonly float LimitTime; + + public const int __ID__ = 338469720; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "limitTime:" + LimitTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeWait.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeWait.cs new file mode 100644 index 00000000..02e5e4b7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeWait.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeWait : ai.Task +{ + public UeWait(JsonElement _buf) : base(_buf) + { + WaitTime = _buf.GetProperty("wait_time").GetSingle(); + RandomDeviation = _buf.GetProperty("random_deviation").GetSingle(); + } + + public static UeWait DeserializeUeWait(JsonElement _buf) + { + return new ai.UeWait(_buf); + } + + public readonly float WaitTime; + public readonly float RandomDeviation; + + public const int __ID__ = -512994101; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "waitTime:" + WaitTime + "," + + "randomDeviation:" + RandomDeviation + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..6a6e9b24 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeWaitBlackboardTime : ai.Task +{ + public UeWaitBlackboardTime(JsonElement _buf) : base(_buf) + { + BlackboardKey = _buf.GetProperty("blackboard_key").GetString(); + } + + public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(JsonElement _buf) + { + return new ai.UeWaitBlackboardTime(_buf); + } + + public readonly string BlackboardKey; + + public const int __ID__ = 1215378271; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "blackboardKey:" + BlackboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..cc528f4b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UpdateDailyBehaviorProps : ai.Service +{ + public UpdateDailyBehaviorProps(JsonElement _buf) : base(_buf) + { + SatietyKey = _buf.GetProperty("satiety_key").GetString(); + EnergyKey = _buf.GetProperty("energy_key").GetString(); + MoodKey = _buf.GetProperty("mood_key").GetString(); + SatietyLowerThresholdKey = _buf.GetProperty("satiety_lower_threshold_key").GetString(); + SatietyUpperThresholdKey = _buf.GetProperty("satiety_upper_threshold_key").GetString(); + EnergyLowerThresholdKey = _buf.GetProperty("energy_lower_threshold_key").GetString(); + EnergyUpperThresholdKey = _buf.GetProperty("energy_upper_threshold_key").GetString(); + MoodLowerThresholdKey = _buf.GetProperty("mood_lower_threshold_key").GetString(); + MoodUpperThresholdKey = _buf.GetProperty("mood_upper_threshold_key").GetString(); + } + + public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(JsonElement _buf) + { + return new ai.UpdateDailyBehaviorProps(_buf); + } + + public readonly string SatietyKey; + public readonly string EnergyKey; + public readonly string MoodKey; + public readonly string SatietyLowerThresholdKey; + public readonly string SatietyUpperThresholdKey; + public readonly string EnergyLowerThresholdKey; + public readonly string EnergyUpperThresholdKey; + public readonly string MoodLowerThresholdKey; + public readonly string MoodUpperThresholdKey; + + public const int __ID__ = -61887372; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "satietyKey:" + SatietyKey + "," + + "energyKey:" + EnergyKey + "," + + "moodKey:" + MoodKey + "," + + "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + "," + + "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + "," + + "energyLowerThresholdKey:" + EnergyLowerThresholdKey + "," + + "energyUpperThresholdKey:" + EnergyUpperThresholdKey + "," + + "moodLowerThresholdKey:" + MoodLowerThresholdKey + "," + + "moodUpperThresholdKey:" + MoodUpperThresholdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.EBoolOperator.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..4e7f1379 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.EBoolOperator.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.GlobalConfig.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..9d205db4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.GlobalConfig.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 System.Text.Json; + + +namespace cfg.common +{ +public sealed partial class GlobalConfig : Luban.BeanBase +{ + public GlobalConfig(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + X2 = _buf.GetProperty("x2").GetInt32(); + X3 = _buf.GetProperty("x3").GetInt32(); + X4 = _buf.GetProperty("x4").GetInt32(); + X5 = _buf.GetProperty("x5").GetInt32(); + X6 = _buf.GetProperty("x6").GetInt32(); + { var __json0 = _buf.GetProperty("x7"); X7 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X7.Add(__v0); } } + } + + public static GlobalConfig DeserializeGlobalConfig(JsonElement _buf) + { + return new common.GlobalConfig(_buf); + } + + /// + /// 背包容量 + /// + public readonly int X1; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public readonly int X5; + public readonly int X6; + public readonly System.Collections.Generic.List X7; + + public const int __ID__ = -848234488; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.TbGlobalConfig.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.TbGlobalConfig.cs new file mode 100644 index 00000000..ade36cf7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/common.TbGlobalConfig.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 System.Text.Json; + + +namespace cfg.common +{ +public partial class TbGlobalConfig +{ + + private readonly common.GlobalConfig _data; + + public TbGlobalConfig(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = common.GlobalConfig.DeserializeGlobalConfig(_buf[0]); + } + + + /// + /// 背包容量 + /// + public int X1 => _data.X1; + public int X2 => _data.X2; + public int X3 => _data.X3; + public int X4 => _data.X4; + public int X5 => _data.X5; + public int X6 => _data.X6; + public System.Collections.Generic.List X7 => _data.X7; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..f148097b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothersStarQualityType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothersTag.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..c7bfd3cb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothersTag.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..401492ae --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothesHidePartType.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..b0b224b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EClothesPropertyType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.ECurrencyType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..7dfcba3c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.ECurrencyType.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EItemQuality.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..74fcfbf2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EItemQuality.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// 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 EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EMajorType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EMajorType.cs new file mode 100644 index 00000000..c19157ce --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EMajorType.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EMinorType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EMinorType.cs new file mode 100644 index 00000000..936a15ab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EMinorType.cs @@ -0,0 +1,215 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EUseType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EUseType.cs new file mode 100644 index 00000000..20f635dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.EUseType.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.Item.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.Item.cs new file mode 100644 index 00000000..c16cc166 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.Item.cs @@ -0,0 +1,88 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.item +{ +/// +/// 道具 +/// +public sealed partial class Item : Luban.BeanBase +{ + public Item(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + MajorType = (item.EMajorType)_buf.GetProperty("major_type").GetInt32(); + MinorType = (item.EMinorType)_buf.GetProperty("minor_type").GetInt32(); + MaxPileNum = _buf.GetProperty("max_pile_num").GetInt32(); + Quality = (item.EItemQuality)_buf.GetProperty("quality").GetInt32(); + IconBackgroud = _buf.GetProperty("icon_backgroud").GetString(); + IconMask = _buf.GetProperty("icon_mask").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + ShowOrder = _buf.GetProperty("show_order").GetInt32(); + } + + public static Item DeserializeItem(JsonElement _buf) + { + return new item.Item(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + public readonly string Name; + public readonly item.EMajorType MajorType; + public readonly item.EMinorType MinorType; + public readonly int MaxPileNum; + public readonly item.EItemQuality Quality; + public readonly string IconBackgroud; + public readonly string IconMask; + public readonly string Desc; + public readonly int ShowOrder; + + public const int __ID__ = 2107285806; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "majorType:" + MajorType + "," + + "minorType:" + MinorType + "," + + "maxPileNum:" + MaxPileNum + "," + + "quality:" + Quality + "," + + "iconBackgroud:" + IconBackgroud + "," + + "iconMask:" + IconMask + "," + + "desc:" + Desc + "," + + "showOrder:" + ShowOrder + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.TbItem.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.TbItem.cs new file mode 100644 index 00000000..9b6fa4a2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/item.TbItem.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 System.Text.Json; + + +namespace cfg.item +{ +/// +/// 道具表 +/// +public partial class TbItem +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + item.Item _v; + _v = item.Item.DeserializeItem(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public item.Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public item.Item Get(int key) => _dataMap[key]; + public item.Item this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..e4676fec --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.L10NDemo.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 System.Text.Json; + + +namespace cfg.l10n +{ +public sealed partial class L10NDemo : Luban.BeanBase +{ + public L10NDemo(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Text = _buf.GetProperty("text").GetString(); + } + + public static L10NDemo DeserializeL10NDemo(JsonElement _buf) + { + return new l10n.L10NDemo(_buf); + } + + public readonly int Id; + public readonly string Text; + + public const int __ID__ = -331195887; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..152d4ca3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.PatchDemo.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 System.Text.Json; + + +namespace cfg.l10n +{ +public sealed partial class PatchDemo : Luban.BeanBase +{ + public PatchDemo(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Value = _buf.GetProperty("value").GetInt32(); + } + + public static PatchDemo DeserializePatchDemo(JsonElement _buf) + { + return new l10n.PatchDemo(_buf); + } + + public readonly int Id; + public readonly int Value; + + public const int __ID__ = -1707294656; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.TbL10NDemo.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.TbL10NDemo.cs new file mode 100644 index 00000000..82755a05 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.TbL10NDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.l10n +{ +public partial class TbL10NDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbL10NDemo(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + l10n.L10NDemo _v; + _v = l10n.L10NDemo.DeserializeL10NDemo(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.L10NDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.L10NDemo Get(int key) => _dataMap[key]; + public l10n.L10NDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.TbPatchDemo.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.TbPatchDemo.cs new file mode 100644 index 00000000..63d50c55 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/l10n.TbPatchDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.l10n +{ +public partial class TbPatchDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPatchDemo(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + l10n.PatchDemo _v; + _v = l10n.PatchDemo.DeserializePatchDemo(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.PatchDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.PatchDemo Get(int key) => _dataMap[key]; + public l10n.PatchDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/tag.TbTestTag.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/tag.TbTestTag.cs new file mode 100644 index 00000000..8a31ba5d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/tag.TbTestTag.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.tag +{ +public partial class TbTestTag +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestTag(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + tag.TestTag _v; + _v = tag.TestTag.DeserializeTestTag(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public tag.TestTag GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public tag.TestTag Get(int key) => _dataMap[key]; + public tag.TestTag this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/tag.TestTag.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/tag.TestTag.cs new file mode 100644 index 00000000..894cebcd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/tag.TestTag.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 System.Text.Json; + + +namespace cfg.tag +{ +public sealed partial class TestTag : Luban.BeanBase +{ + public TestTag(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Value = _buf.GetProperty("value").GetString(); + } + + public static TestTag DeserializeTestTag(JsonElement _buf) + { + return new tag.TestTag(_buf); + } + + public readonly int Id; + public readonly string Value; + + public const int __ID__ = 1742933812; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.AccessFlag.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..9bd3f0c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.AccessFlag.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// 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/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Circle.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Circle.cs new file mode 100644 index 00000000..e174f731 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/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 System.Text.Json; + + +namespace cfg.test +{ +/// +/// 圆 +/// +public sealed partial class Circle : Shape +{ + public Circle(JsonElement _buf) : base(_buf) + { + Radius = _buf.GetProperty("radius").GetSingle(); + } + + public static Circle DeserializeCircle(JsonElement _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/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompactString.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompactString.cs new file mode 100644 index 00000000..4531de79 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompactString.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompactString : Luban.BeanBase +{ + public CompactString(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + S2 = _buf.GetProperty("s2").GetString(); + S3 = _buf.GetProperty("s3").GetString(); + } + + public static CompactString DeserializeCompactString(JsonElement _buf) + { + return new test.CompactString(_buf); + } + + public readonly int Id; + public readonly string S2; + public readonly string S3; + + public const int __ID__ = 1968089240; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s2:" + S2 + "," + + "s3:" + S3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..5cb970fc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable1 : Luban.BeanBase +{ + public CompositeJsonTable1(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetString(); + } + + public static CompositeJsonTable1 DeserializeCompositeJsonTable1(JsonElement _buf) + { + return new test.CompositeJsonTable1(_buf); + } + + public readonly int Id; + public readonly string X; + + public const int __ID__ = 1566207894; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..e23318fe --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable2.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable2 : Luban.BeanBase +{ + public CompositeJsonTable2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static CompositeJsonTable2 DeserializeCompositeJsonTable2(JsonElement _buf) + { + return new test.CompositeJsonTable2(_buf); + } + + public readonly int Id; + public readonly int Y; + + public const int __ID__ = 1566207895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..3767af20 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.CompositeJsonTable3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable3 : Luban.BeanBase +{ + public CompositeJsonTable3(JsonElement _buf) + { + A = _buf.GetProperty("a").GetInt32(); + B = _buf.GetProperty("b").GetInt32(); + } + + public static CompositeJsonTable3 DeserializeCompositeJsonTable3(JsonElement _buf) + { + return new test.CompositeJsonTable3(_buf); + } + + public readonly int A; + public readonly int B; + + public const int __ID__ = 1566207896; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "a:" + A + "," + + "b:" + B + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DateTimeRange.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..887f1b47 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DateTimeRange.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DateTimeRange : Luban.BeanBase +{ + public DateTimeRange(JsonElement _buf) + { + StartTime = _buf.GetProperty("start_time").GetInt64(); + EndTime = _buf.GetProperty("end_time").GetInt64(); + } + + public static DateTimeRange DeserializeDateTimeRange(JsonElement _buf) + { + return new test.DateTimeRange(_buf); + } + + public readonly long StartTime; + public readonly long EndTime; + + public const int __ID__ = 495315430; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "startTime:" + StartTime + "," + + "endTime:" + EndTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Decorator.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Decorator.cs new file mode 100644 index 00000000..86bc8712 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Decorator.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Decorator : test.ItemBase +{ + public Decorator(JsonElement _buf) : base(_buf) + { + Duration = _buf.GetProperty("duration").GetInt32(); + } + + public static Decorator DeserializeDecorator(JsonElement _buf) + { + return new test.Decorator(_buf); + } + + public readonly int Duration; + + public const int __ID__ = -625155649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "duration:" + Duration + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD2.cs new file mode 100644 index 00000000..14eec596 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoD2 : test.DemoDynamic +{ + public DemoD2(JsonElement _buf) : base(_buf) + { + X2 = _buf.GetProperty("x2").GetInt32(); + } + + public static DemoD2 DeserializeDemoD2(JsonElement _buf) + { + return new test.DemoD2(_buf); + } + + public readonly int X2; + + public const int __ID__ = -2138341747; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD3.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD3.cs new file mode 100644 index 00000000..56b1b39d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD3.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class DemoD3 : test.DemoDynamic +{ + public DemoD3(JsonElement _buf) : base(_buf) + { + X3 = _buf.GetProperty("x3").GetInt32(); + } + + public static DemoD3 DeserializeDemoD3(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X3; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD5.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD5.cs new file mode 100644 index 00000000..b2c01c29 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoD5.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoD5 : test.DemoDynamic +{ + public DemoD5(JsonElement _buf) : base(_buf) + { + Time = test.DateTimeRange.DeserializeDateTimeRange(_buf.GetProperty("time")); + } + + public static DemoD5 DeserializeDemoD5(JsonElement _buf) + { + return new test.DemoD5(_buf); + } + + public readonly test.DateTimeRange Time; + + public const int __ID__ = -2138341744; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + Time?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "time:" + Time + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoDynamic.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..b1757c88 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoDynamic.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class DemoDynamic : Luban.BeanBase +{ + public DemoDynamic(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + } + + public static DemoDynamic DeserializeDemoDynamic(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "DemoD2": return new test.DemoD2(_buf); + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + case "DemoD5": return new test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X1; + + + public virtual void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoE1.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoE1.cs new file mode 100644 index 00000000..71046815 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoE1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoE1 : test.DemoD3 +{ + public DemoE1(JsonElement _buf) : base(_buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + } + + public static DemoE1 DeserializeDemoE1(JsonElement _buf) + { + return new test.DemoE1(_buf); + } + + public readonly int X4; + + public const int __ID__ = -2138341717; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoE2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoE2.cs new file mode 100644 index 00000000..37bbcb8b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoE2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial struct DemoE2 +{ + public DemoE2(JsonElement _buf) + { + {if (_buf.TryGetProperty("y1", out var _j) && _j.ValueKind != JsonValueKind.Null) { Y1 = _j.GetInt32(); } else { Y1 = null; } } + Y2 = _buf.GetProperty("y2").GetBoolean(); + } + + public static DemoE2 DeserializeDemoE2(JsonElement _buf) + { + return new test.DemoE2(_buf); + } + + public readonly int? Y1; + public readonly bool Y2; + + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoEnum.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..0a52c1e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoEnum.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + Any = 6, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoFlag.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..b9b5d903 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoFlag.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoGroup.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..145a12c5 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoGroup.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoGroup : Luban.BeanBase +{ + public DemoGroup(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X2 = _buf.GetProperty("x2").GetInt32(); + X2_Ref = null; + X4 = _buf.GetProperty("x4").GetInt32(); + X5 = test.InnerGroup.DeserializeInnerGroup(_buf.GetProperty("x5")); + } + + public static DemoGroup DeserializeDemoGroup(JsonElement _buf) + { + return new test.DemoGroup(_buf); + } + + public readonly int Id; + public readonly int X2; + public test.DemoGroup X2_Ref; + public readonly int X4; + public readonly test.InnerGroup X5; + + public const int __ID__ = -379263008; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X2_Ref = tables.TbDemoGroupS.GetOrDefault(X2); + + X5?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x2:" + X2 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..d8800a13 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,94 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoPrimitiveTypesTable : Luban.BeanBase +{ + public DemoPrimitiveTypesTable(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetBoolean(); + X2 = _buf.GetProperty("x2").GetByte(); + X3 = _buf.GetProperty("x3").GetInt16(); + X4 = _buf.GetProperty("x4").GetInt32(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X7 = _buf.GetProperty("x7").GetDouble(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf.GetProperty("v2"))); + V3 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf.GetProperty("v3"))); + V4 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf.GetProperty("v4"))); + T1 = _buf.GetProperty("t1").GetInt64(); + } + + public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(JsonElement _buf) + { + return new test.DemoPrimitiveTypesTable(_buf); + } + + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly int X4; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly string S1; + public readonly string S2; + public readonly System.Numerics.Vector2 V2; + public readonly System.Numerics.Vector3 V3; + public readonly System.Numerics.Vector4 V4; + public readonly long T1; + + public const int __ID__ = -370934083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "t1:" + T1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..0637f2d1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoSingletonType.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoSingletonType : Luban.BeanBase +{ + public DemoSingletonType(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Date = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("date")); + } + + public static DemoSingletonType DeserializeDemoSingletonType(JsonElement _buf) + { + return new test.DemoSingletonType(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.DemoDynamic Date; + + public const int __ID__ = 539196998; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + Date?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "date:" + Date + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoType1.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoType1.cs new file mode 100644 index 00000000..da73e7da --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoType1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoType1 : Luban.BeanBase +{ + public DemoType1(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + } + + public static DemoType1 DeserializeDemoType1(JsonElement _buf) + { + return new test.DemoType1(_buf); + } + + public readonly int X1; + + public const int __ID__ = -367048296; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoType2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoType2.cs new file mode 100644 index 00000000..1771eb83 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DemoType2.cs @@ -0,0 +1,130 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoType2 : Luban.BeanBase +{ + public DemoType2(JsonElement _buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X2 = _buf.GetProperty("x2").GetByte(); + X3 = _buf.GetProperty("x3").GetInt16(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X7 = _buf.GetProperty("x7").GetDouble(); + X80 = _buf.GetProperty("x8_0").GetInt16(); + X8 = _buf.GetProperty("x8").GetInt32(); + X9 = _buf.GetProperty("x9").GetInt64(); + X10 = _buf.GetProperty("x10").GetString(); + X12 = test.DemoType1.DeserializeDemoType1(_buf.GetProperty("x12")); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + S1 = _buf.GetProperty("s1").GetString(); + T1 = _buf.GetProperty("t1").GetInt64(); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k2"); K2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K2.Add(__v0); } } + { var __json0 = _buf.GetProperty("k5"); K5 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K5.Add(__v0); } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k15"); int _n0 = __json0.GetArrayLength(); K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoDynamic __v0; __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); K15[__index0++] = __v0; } } + } + + public static DemoType2 DeserializeDemoType2(JsonElement _buf) + { + return new test.DemoType2(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly short X80; + public readonly int X8; + public readonly long X9; + public readonly string X10; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly string S1; + public readonly long T1; + public readonly int[] K1; + public readonly System.Collections.Generic.List K2; + public readonly System.Collections.Generic.HashSet K5; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -367048295; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "x80:" + X80 + "," + + "x8:" + X8 + "," + + "x9:" + X9 + "," + + "x10:" + X10 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "s1:" + S1 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k5:" + Luban.StringUtil.CollectionToString(K5) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DetectEncoding.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..04b4cf0a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.DetectEncoding.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DetectEncoding : Luban.BeanBase +{ + public DetectEncoding(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + } + + public static DetectEncoding DeserializeDetectEncoding(JsonElement _buf) + { + return new test.DetectEncoding(_buf); + } + + public readonly int Id; + public readonly string Name; + + public const int __ID__ = -1154609646; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..db34ab8d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestEmptyEnum.cs @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum + { + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..2b27e566 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestQuality.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..f82389f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestQuality.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.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestUeType.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..c69207fe --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ETestUeType.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Equipment.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Equipment.cs new file mode 100644 index 00000000..e8561b59 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Equipment.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Equipment : test.ItemBase +{ + public Equipment(JsonElement _buf) : base(_buf) + { + Attr = (test.DemoEnum)_buf.GetProperty("attr").GetInt32(); + Value = _buf.GetProperty("value").GetInt32(); + } + + public static Equipment DeserializeEquipment(JsonElement _buf) + { + return new test.Equipment(_buf); + } + + public readonly test.DemoEnum Attr; + public readonly int Value; + + public const int __ID__ = -76837102; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "attr:" + Attr + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..e6dd890a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ExcelFromJson.cs @@ -0,0 +1,98 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJson : Luban.BeanBase +{ + public ExcelFromJson(JsonElement _buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + T1 = _buf.GetProperty("t1").GetInt64(); + X12 = test.DemoType1.DeserializeDemoType1(_buf.GetProperty("x12")); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k15"); int _n0 = __json0.GetArrayLength(); K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoDynamic __v0; __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); K15[__index0++] = __v0; } } + } + + public static ExcelFromJson DeserializeExcelFromJson(JsonElement _buf) + { + return new test.ExcelFromJson(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly string S1; + public readonly string S2; + public readonly long T1; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly int[] K1; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -1485706483; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "t1:" + T1 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..0c254890 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ExcelFromJsonMultiRow.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJsonMultiRow : Luban.BeanBase +{ + public ExcelFromJsonMultiRow(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + { var __json0 = _buf.GetProperty("items"); Items = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.TestRow __v0; __v0 = test.TestRow.DeserializeTestRow(__e0); Items.Add(__v0); } } + } + + public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(JsonElement _buf) + { + return new test.ExcelFromJsonMultiRow(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 715335694; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Foo.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Foo.cs new file mode 100644 index 00000000..95de0c5f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Foo.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Foo : Luban.BeanBase +{ + public Foo(JsonElement _buf) + { + Y1 = _buf.GetProperty("y1").GetInt32(); + Y2 = _buf.GetProperty("y2").GetInt32(); + Y3 = _buf.GetProperty("y3").GetInt32(); + } + + public static Foo DeserializeFoo(JsonElement _buf) + { + return new test.Foo(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + + public const int __ID__ = -1147950774; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.H1.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.H1.cs new file mode 100644 index 00000000..1e1b6416 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.H1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class H1 : Luban.BeanBase +{ + public H1(JsonElement _buf) + { + Y2 = test.H2.DeserializeH2(_buf.GetProperty("y2")); + Y3 = _buf.GetProperty("y3").GetInt32(); + } + + public static H1 DeserializeH1(JsonElement _buf) + { + return new test.H1(_buf); + } + + public readonly test.H2 Y2; + public readonly int Y3; + + public const int __ID__ = -1422503995; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Y2?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.H2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.H2.cs new file mode 100644 index 00000000..77206a07 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.H2.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class H2 : Luban.BeanBase +{ + public H2(JsonElement _buf) + { + Z2 = _buf.GetProperty("z2").GetInt32(); + Z3 = _buf.GetProperty("z3").GetInt32(); + } + + public static H2 DeserializeH2(JsonElement _buf) + { + return new test.H2(_buf); + } + + public readonly int Z2; + public readonly int Z3; + + public const int __ID__ = -1422503994; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "z2:" + Z2 + "," + + "z3:" + Z3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.InnerGroup.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..09974454 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.InnerGroup.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class InnerGroup : Luban.BeanBase +{ + public InnerGroup(JsonElement _buf) + { + Y1 = _buf.GetProperty("y1").GetInt32(); + Y3 = _buf.GetProperty("y3").GetInt32(); + Y4 = _buf.GetProperty("y4").GetInt32(); + } + + public static InnerGroup DeserializeInnerGroup(JsonElement _buf) + { + return new test.InnerGroup(_buf); + } + + public readonly int Y1; + public readonly int Y3; + public readonly int Y4; + + public const int __ID__ = -587873083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y3:" + Y3 + "," + + "y4:" + Y4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Item.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Item.cs new file mode 100644 index 00000000..e760f925 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Item.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Item : test.ItemBase +{ + public Item(JsonElement _buf) : base(_buf) + { + Num = _buf.GetProperty("num").GetInt32(); + Price = _buf.GetProperty("price").GetInt32(); + } + + public static Item DeserializeItem(JsonElement _buf) + { + return new test.Item(_buf); + } + + public readonly int Num; + public readonly int Price; + + public const int __ID__ = -1226641649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "num:" + Num + "," + + "price:" + Price + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ItemBase.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ItemBase.cs new file mode 100644 index 00000000..12eadb88 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.ItemBase.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class ItemBase : Luban.BeanBase +{ + public ItemBase(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static ItemBase DeserializeItemBase(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Item": return new test.Item(_buf); + case "Equipment": return new test.Equipment(_buf); + case "Decorator": return new test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + + + public virtual void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiIndexList.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..ea6512dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiIndexList : Luban.BeanBase +{ + public MultiIndexList(JsonElement _buf) + { + Id1 = _buf.GetProperty("id1").GetInt32(); + Id2 = _buf.GetProperty("id2").GetInt64(); + Id3 = _buf.GetProperty("id3").GetString(); + Num = _buf.GetProperty("num").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static MultiIndexList DeserializeMultiIndexList(JsonElement _buf) + { + return new test.MultiIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 2016237651; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..1ad73eab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowRecord.cs @@ -0,0 +1,78 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowRecord : Luban.BeanBase +{ + public MultiRowRecord(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + { var __json0 = _buf.GetProperty("one_rows"); OneRows = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); OneRows.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows1"); MultiRows1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); MultiRows1.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows2"); int _n0 = __json0.GetArrayLength(); MultiRows2 = new test.MultiRowType1[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); MultiRows2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("multi_rows4"); MultiRows4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); MultiRows4.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("multi_rows5"); MultiRows5 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType3 __v0; __v0 = test.MultiRowType3.DeserializeMultiRowType3(__e0); MultiRows5.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows6"); MultiRows6 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); MultiRows6.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("multi_rows7"); MultiRows7 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); MultiRows7.Add(_k0, _v0); } } + } + + public static MultiRowRecord DeserializeMultiRowRecord(JsonElement _buf) + { + return new test.MultiRowRecord(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly System.Collections.Generic.List OneRows; + public readonly System.Collections.Generic.List MultiRows1; + public readonly test.MultiRowType1[] MultiRows2; + public readonly System.Collections.Generic.Dictionary MultiRows4; + public readonly System.Collections.Generic.List MultiRows5; + public readonly System.Collections.Generic.Dictionary MultiRows6; + public readonly System.Collections.Generic.Dictionary MultiRows7; + + public const int __ID__ = -501249394; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in OneRows) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows1) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows2) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows4.Values) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows5) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows6.Values) { _e?.ResolveRef(tables); } + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "oneRows:" + Luban.StringUtil.CollectionToString(OneRows) + "," + + "multiRows1:" + Luban.StringUtil.CollectionToString(MultiRows1) + "," + + "multiRows2:" + Luban.StringUtil.CollectionToString(MultiRows2) + "," + + "multiRows4:" + Luban.StringUtil.CollectionToString(MultiRows4) + "," + + "multiRows5:" + Luban.StringUtil.CollectionToString(MultiRows5) + "," + + "multiRows6:" + Luban.StringUtil.CollectionToString(MultiRows6) + "," + + "multiRows7:" + Luban.StringUtil.CollectionToString(MultiRows7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..07ff31c4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowTitle.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowTitle : Luban.BeanBase +{ + public MultiRowTitle(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + X1 = test.H1.DeserializeH1(_buf.GetProperty("x1")); + {if (_buf.TryGetProperty("x2_0", out var _j) && _j.ValueKind != JsonValueKind.Null) { X20 = test.H2.DeserializeH2(_j); } else { X20 = null; } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); int _n0 = __json0.GetArrayLength(); X3 = new test.H2[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X3[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("x4"); int _n0 = __json0.GetArrayLength(); X4 = new test.H2[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X4[__index0++] = __v0; } } + } + + public static MultiRowTitle DeserializeMultiRowTitle(JsonElement _buf) + { + return new test.MultiRowTitle(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.H1 X1; + public readonly test.H2 X20; + public readonly System.Collections.Generic.List X2; + public readonly test.H2[] X3; + public readonly test.H2[] X4; + + public const int __ID__ = 540002427; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + X1?.ResolveRef(tables); + X20?.ResolveRef(tables); + foreach (var _e in X2) { _e?.ResolveRef(tables); } + foreach (var _e in X3) { _e?.ResolveRef(tables); } + foreach (var _e in X4) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "x1:" + X1 + "," + + "x20:" + X20 + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType1.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..d4b0d7a9 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType1 : Luban.BeanBase +{ + public MultiRowType1(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + } + + public static MultiRowType1 DeserializeMultiRowType1(JsonElement _buf) + { + return new test.MultiRowType1(_buf); + } + + public readonly int Id; + public readonly int X; + + public const int __ID__ = 540474970; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..6670ad14 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType2 : Luban.BeanBase +{ + public MultiRowType2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetSingle(); + } + + public static MultiRowType2 DeserializeMultiRowType2(JsonElement _buf) + { + return new test.MultiRowType2(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly float Y; + + public const int __ID__ = 540474971; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType3.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..b8f08399 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiRowType3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType3 : Luban.BeanBase +{ + public MultiRowType3(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("items"); Items = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); Items.Add(__v0); } } + } + + public static MultiRowType3 DeserializeMultiRowType3(JsonElement _buf) + { + return new test.MultiRowType3(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 540474972; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..ecaa1c27 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiUnionIndexList : Luban.BeanBase +{ + public MultiUnionIndexList(JsonElement _buf) + { + Id1 = _buf.GetProperty("id1").GetInt32(); + Id2 = _buf.GetProperty("id2").GetInt64(); + Id3 = _buf.GetProperty("id3").GetString(); + Num = _buf.GetProperty("num").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static MultiUnionIndexList DeserializeMultiUnionIndexList(JsonElement _buf) + { + return new test.MultiUnionIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 1966847134; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.NotIndexList.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..1ca6ebec --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.NotIndexList.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class NotIndexList : Luban.BeanBase +{ + public NotIndexList(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static NotIndexList DeserializeNotIndexList(JsonElement _buf) + { + return new test.NotIndexList(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = -50446599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.RefBean.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.RefBean.cs new file mode 100644 index 00000000..be59886d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.RefBean.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class RefBean : test.RefDynamicBase +{ + public RefBean(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("arr"); Arr = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); Arr.Add(__v0); } } + } + + public static RefBean DeserializeRefBean(JsonElement _buf) + { + return new test.RefBean(_buf); + } + + public readonly System.Collections.Generic.List Arr; + + public const int __ID__ = 1963260263; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "arr:" + Luban.StringUtil.CollectionToString(Arr) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..8c378c02 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.RefDynamicBase.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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class RefDynamicBase : Luban.BeanBase +{ + public RefDynamicBase(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + X_Ref = null; + } + + public static RefDynamicBase DeserializeRefDynamicBase(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "RefBean": return new test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X; + public test.TestBeRef X_Ref; + + + public virtual void ResolveRef(Tables tables) + { + X_Ref = tables.TbTestBeRef.GetOrDefault(X); + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Shape.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Shape.cs new file mode 100644 index 00000000..36d3c17a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Shape.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class Shape : Luban.BeanBase +{ + public Shape(JsonElement _buf) + { + } + + public static Shape DeserializeShape(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Circle": return new test.Circle(_buf); + case "test2.Rectangle": return new test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable1.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable1.cs new file mode 100644 index 00000000..ab333b9f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable1.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable1 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable1(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.CompositeJsonTable1 _v; + _v = test.CompositeJsonTable1.DeserializeCompositeJsonTable1(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable1 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable1 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable1 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable2.cs new file mode 100644 index 00000000..0a0b26ad --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.CompositeJsonTable2 _v; + _v = test.CompositeJsonTable2.DeserializeCompositeJsonTable2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable2 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable3.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable3.cs new file mode 100644 index 00000000..674f8d2b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbCompositeJsonTable3.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable3 +{ + + private readonly test.CompositeJsonTable3 _data; + + public TbCompositeJsonTable3(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(_buf[0]); + } + + + public int A => _data.A; + public int B => _data.B; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDataFromMisc.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDataFromMisc.cs new file mode 100644 index 00000000..5931a166 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDataFromMisc.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDataFromMisc +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDataFromMisc(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDefineFromExcel2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDefineFromExcel2.cs new file mode 100644 index 00000000..dc08e676 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDefineFromExcel2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDefineFromExcel2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDefineFromExcel2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + DefineFromExcel2 _v; + _v = DefineFromExcel2.DeserializeDefineFromExcel2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public DefineFromExcel2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public DefineFromExcel2 Get(int key) => _dataMap[key]; + public DefineFromExcel2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoGroup.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoGroup.cs new file mode 100644 index 00000000..651a7146 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoGroup.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDemoGroup +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoGroup_S.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoGroup_S.cs new file mode 100644 index 00000000..29ae8b7c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoGroup_S.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDemoGroup_S +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup_S(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoPrimitive.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoPrimitive.cs new file mode 100644 index 00000000..7d4b3e46 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDemoPrimitive.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDemoPrimitive +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoPrimitive(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoPrimitiveTypesTable _v; + _v = test.DemoPrimitiveTypesTable.DeserializeDemoPrimitiveTypesTable(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoPrimitiveTypesTable GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoPrimitiveTypesTable Get(int key) => _dataMap[key]; + public test.DemoPrimitiveTypesTable this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDetectCsvEncoding.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDetectCsvEncoding.cs new file mode 100644 index 00000000..f5d39fa4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbDetectCsvEncoding.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDetectCsvEncoding +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDetectCsvEncoding(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DetectEncoding _v; + _v = test.DetectEncoding.DeserializeDetectEncoding(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DetectEncoding GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DetectEncoding Get(int key) => _dataMap[key]; + public test.DetectEncoding this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbExcelFromJson.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbExcelFromJson.cs new file mode 100644 index 00000000..f665b8d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbExcelFromJson.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbExcelFromJson +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJson(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ExcelFromJson _v; + _v = test.ExcelFromJson.DeserializeExcelFromJson(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJson GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJson Get(int key) => _dataMap[key]; + public test.ExcelFromJson this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..a27ae538 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbExcelFromJsonMultiRow.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbExcelFromJsonMultiRow +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJsonMultiRow(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ExcelFromJsonMultiRow _v; + _v = test.ExcelFromJsonMultiRow.DeserializeExcelFromJsonMultiRow(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJsonMultiRow GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJsonMultiRow Get(int key) => _dataMap[key]; + public test.ExcelFromJsonMultiRow this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbFullTypes.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbFullTypes.cs new file mode 100644 index 00000000..5f16bc2e --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbFullTypes.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbFullTypes +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbFullTypes(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbItem2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbItem2.cs new file mode 100644 index 00000000..47af5b56 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbItem2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbItem2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ItemBase _v; + _v = test.ItemBase.DeserializeItemBase(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public T GetOrDefaultAs(int key) where T : test.ItemBase => _dataMap.TryGetValue(key, out var v) ? (T)v : null; + public T GetAs(int key) where T : test.ItemBase => (T)_dataMap[key]; + public test.ItemBase GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ItemBase Get(int key) => _dataMap[key]; + public test.ItemBase this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiIndexList.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiIndexList.cs new file mode 100644 index 00000000..858084fb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiIndexList.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary _dataMap_id1; + private System.Collections.Generic.Dictionary _dataMap_id2; + private System.Collections.Generic.Dictionary _dataMap_id3; + + public TbMultiIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiIndexList _v; + _v = test.MultiIndexList.DeserializeMultiIndexList(_ele); + _dataList.Add(_v); + } + _dataMap_id1 = new System.Collections.Generic.Dictionary(); + _dataMap_id2 = new System.Collections.Generic.Dictionary(); + _dataMap_id3 = new System.Collections.Generic.Dictionary(); + foreach(var _v in _dataList) + { + _dataMap_id1.Add(_v.Id1, _v); + _dataMap_id2.Add(_v.Id2, _v); + _dataMap_id3.Add(_v.Id3, _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiIndexList GetById1(int key) => _dataMap_id1.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById2(long key) => _dataMap_id2.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById3(string key) => _dataMap_id3.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiRowRecord.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiRowRecord.cs new file mode 100644 index 00000000..10817eca --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiRowRecord.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiRowRecord +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowRecord(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiRowRecord _v; + _v = test.MultiRowRecord.DeserializeMultiRowRecord(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowRecord GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowRecord Get(int key) => _dataMap[key]; + public test.MultiRowRecord this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiRowTitle.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiRowTitle.cs new file mode 100644 index 00000000..a56ba92a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiRowTitle.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiRowTitle +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowTitle(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiRowTitle _v; + _v = test.MultiRowTitle.DeserializeMultiRowTitle(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowTitle GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowTitle Get(int key) => _dataMap[key]; + public test.MultiRowTitle this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiUnionIndexList.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiUnionIndexList.cs new file mode 100644 index 00000000..79e8a6b9 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbMultiUnionIndexList.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiUnionIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList> _dataMapUnion; + + public TbMultiUnionIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiUnionIndexList _v; + _v = test.MultiUnionIndexList.DeserializeMultiUnionIndexList(_ele); + _dataList.Add(_v); + } + _dataMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList>(); + foreach(var _v in _dataList) + { + _dataMapUnion.Add((_v.Id1, _v.Id2, _v.Id3), _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiUnionIndexList Get(int id1, long id2, string id3) => _dataMapUnion.TryGetValue((id1, id2, id3), out test.MultiUnionIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbNotIndexList.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbNotIndexList.cs new file mode 100644 index 00000000..f687e02f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbNotIndexList.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbNotIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + + public TbNotIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.NotIndexList _v; + _v = test.NotIndexList.DeserializeNotIndexList(_ele); + _dataList.Add(_v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbSingleton.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbSingleton.cs new file mode 100644 index 00000000..a2b54d67 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbSingleton.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbSingleton +{ + + private readonly test.DemoSingletonType _data; + + public TbSingleton(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.DemoSingletonType.DeserializeDemoSingletonType(_buf[0]); + } + + + public int Id => _data.Id; + public string Name => _data.Name; + public test.DemoDynamic Date => _data.Date; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestBeRef.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestBeRef.cs new file mode 100644 index 00000000..53bc5e4f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestBeRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestBeRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestBeRef2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestBeRef2.cs new file mode 100644 index 00000000..03dc0464 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestBeRef2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestBeRef2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestGlobal.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestGlobal.cs new file mode 100644 index 00000000..2dffa1e5 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestGlobal.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestGlobal +{ + + private readonly test.TestGlobal _data; + + public TbTestGlobal(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.TestGlobal.DeserializeTestGlobal(_buf[0]); + } + + + public int UnlockEquip => _data.UnlockEquip; + public int UnlockHero => _data.UnlockHero; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestIndex.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestIndex.cs new file mode 100644 index 00000000..0ce908b3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestIndex.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestIndex +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestIndex(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestIndex _v; + _v = test.TestIndex.DeserializeTestIndex(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestIndex GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestIndex Get(int key) => _dataMap[key]; + public test.TestIndex this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMap.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMap.cs new file mode 100644 index 00000000..f96894e2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMap.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMap +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMap(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMap _v; + _v = test.TestMap.DeserializeTestMap(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMap GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMap Get(int key) => _dataMap[key]; + public test.TestMap this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMapper.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMapper.cs new file mode 100644 index 00000000..98874868 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMapper.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMapper +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMapper(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMapper _v; + _v = test.TestMapper.DeserializeTestMapper(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMapper GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMapper Get(int key) => _dataMap[key]; + public test.TestMapper this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMultiColumn.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMultiColumn.cs new file mode 100644 index 00000000..43e45c39 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestMultiColumn.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMultiColumn +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMultiColumn(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMultiColumn _v; + _v = test.TestMultiColumn.DeserializeTestMultiColumn(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMultiColumn GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMultiColumn Get(int key) => _dataMap[key]; + public test.TestMultiColumn this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestNull.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestNull.cs new file mode 100644 index 00000000..7dcda5df --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestNull.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestNull +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestNull(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestNull _v; + _v = test.TestNull.DeserializeTestNull(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestNull GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestNull Get(int key) => _dataMap[key]; + public test.TestNull this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestRef.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestRef.cs new file mode 100644 index 00000000..fa0c1acc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestRef(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestRef _v; + _v = test.TestRef.DeserializeTestRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestRef Get(int key) => _dataMap[key]; + public test.TestRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestScriptableObject.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestScriptableObject.cs new file mode 100644 index 00000000..3b9ce5d1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestScriptableObject.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestScriptableObject +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestScriptableObject(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestScriptableObject _v; + _v = test.TestScriptableObject.DeserializeTestScriptableObject(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestScriptableObject GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestScriptableObject Get(int key) => _dataMap[key]; + public test.TestScriptableObject this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestSet.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestSet.cs new file mode 100644 index 00000000..f598f867 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestSet.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestSet +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSet(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestSet _v; + _v = test.TestSet.DeserializeTestSet(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSet GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSet Get(int key) => _dataMap[key]; + public test.TestSet this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestSize.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestSize.cs new file mode 100644 index 00000000..41eecd72 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestSize.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestSize +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSize(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestSize _v; + _v = test.TestSize.DeserializeTestSize(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSize GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSize Get(int key) => _dataMap[key]; + public test.TestSize this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestString.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestString.cs new file mode 100644 index 00000000..87bb85ab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TbTestString.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestString +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestString(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestString _v; + _v = test.TestString.DeserializeTestString(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestString GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestString Get(string key) => _dataMap[key]; + public test.TestString this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Test3.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Test3.cs new file mode 100644 index 00000000..cdd2258b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.Test3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Test3 : Luban.BeanBase +{ + public Test3(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static Test3 DeserializeTest3(JsonElement _buf) + { + return new test.Test3(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = 638540133; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestBeRef.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..842069cd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestBeRef.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestBeRef : Luban.BeanBase +{ + public TestBeRef(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Count = _buf.GetProperty("count").GetInt32(); + } + + public static TestBeRef DeserializeTestBeRef(JsonElement _buf) + { + return new test.TestBeRef(_buf); + } + + public readonly int Id; + public readonly int Count; + + public const int __ID__ = 1934403938; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "count:" + Count + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestGlobal.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..c5f0262b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestGlobal.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestGlobal : Luban.BeanBase +{ + public TestGlobal(JsonElement _buf) + { + UnlockEquip = _buf.GetProperty("unlock_equip").GetInt32(); + UnlockHero = _buf.GetProperty("unlock_hero").GetInt32(); + } + + public static TestGlobal DeserializeTestGlobal(JsonElement _buf) + { + return new test.TestGlobal(_buf); + } + + public readonly int UnlockEquip; + public readonly int UnlockHero; + + public const int __ID__ = -12548655; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "unlockEquip:" + UnlockEquip + "," + + "unlockHero:" + UnlockHero + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestIndex.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestIndex.cs new file mode 100644 index 00000000..8a5f60a0 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestIndex.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestIndex : Luban.BeanBase +{ + public TestIndex(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("eles"); Eles = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoType1 __v0; __v0 = test.DemoType1.DeserializeDemoType1(__e0); Eles.Add(__v0); } } + foreach(var _v in Eles) + { + Eles_Index.Add(_v.X1, _v); + } + } + + public static TestIndex DeserializeTestIndex(JsonElement _buf) + { + return new test.TestIndex(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Eles; + public readonly System.Collections.Generic.Dictionary Eles_Index = new System.Collections.Generic.Dictionary(); + + public const int __ID__ = 1941154020; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Eles) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "eles:" + Luban.StringUtil.CollectionToString(Eles) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMap.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMap.cs new file mode 100644 index 00000000..5297d7c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMap.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMap : Luban.BeanBase +{ + public TestMap(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Id_Ref = null; + { var __json0 = _buf.GetProperty("x1"); X1 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X1.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { long _k0; _k0 = __e0[0].GetInt64(); int _v0; _v0 = __e0[1].GetInt32(); X2.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { string _k0; _k0 = __e0[0].GetString(); int _v0; _v0 = __e0[1].GetInt32(); X3.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoEnum _k0; _k0 = (test.DemoEnum)__e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X4.Add(_k0, _v0); } } + } + + public static TestMap DeserializeTestMap(JsonElement _buf) + { + return new test.TestMap(_buf); + } + + public readonly int Id; + public test.TestIndex Id_Ref; + public readonly System.Collections.Generic.Dictionary X1; + public readonly System.Collections.Generic.Dictionary X2; + public readonly System.Collections.Generic.Dictionary X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = -543227410; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Id_Ref = tables.TbTestIndex.GetOrDefault(Id); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMapper.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMapper.cs new file mode 100644 index 00000000..b38f1393 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMapper.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMapper : Luban.BeanBase +{ + public TestMapper(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + AudioType = (CustomAudioType)_buf.GetProperty("audio_type").GetInt32(); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf.GetProperty("v2"))); + } + + public static TestMapper DeserializeTestMapper(JsonElement _buf) + { + return new test.TestMapper(_buf); + } + + public readonly int Id; + public readonly CustomAudioType AudioType; + public readonly System.Numerics.Vector2 V2; + + public const int __ID__ = 149110895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "audioType:" + AudioType + "," + + "v2:" + V2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..3b6ee1de --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestMultiColumn.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMultiColumn : Luban.BeanBase +{ + public TestMultiColumn(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + A = test.Foo.DeserializeFoo(_buf.GetProperty("a")); + B = test.Foo.DeserializeFoo(_buf.GetProperty("b")); + C = test.Foo.DeserializeFoo(_buf.GetProperty("c")); + } + + public static TestMultiColumn DeserializeTestMultiColumn(JsonElement _buf) + { + return new test.TestMultiColumn(_buf); + } + + public readonly int Id; + public readonly test.Foo A; + public readonly test.Foo B; + public readonly test.Foo C; + + public const int __ID__ = -294473599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + A?.ResolveRef(tables); + B?.ResolveRef(tables); + C?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "a:" + A + "," + + "b:" + B + "," + + "c:" + C + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestNull.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestNull.cs new file mode 100644 index 00000000..397a60a4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestNull.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestNull : Luban.BeanBase +{ + public TestNull(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + {if (_buf.TryGetProperty("x1", out var _j) && _j.ValueKind != JsonValueKind.Null) { X1 = _j.GetInt32(); } else { X1 = null; } } + {if (_buf.TryGetProperty("x2", out var _j) && _j.ValueKind != JsonValueKind.Null) { X2 = (test.DemoEnum?)_j.GetInt32(); } else { X2 = null; } } + {if (_buf.TryGetProperty("x3", out var _j) && _j.ValueKind != JsonValueKind.Null) { X3 = test.DemoType1.DeserializeDemoType1(_j); } else { X3 = null; } } + {if (_buf.TryGetProperty("x4", out var _j) && _j.ValueKind != JsonValueKind.Null) { X4 = test.DemoDynamic.DeserializeDemoDynamic(_j); } else { X4 = null; } } + {if (_buf.TryGetProperty("s1", out var _j) && _j.ValueKind != JsonValueKind.Null) { S1 = _j.GetString(); } else { S1 = null; } } + {if (_buf.TryGetProperty("s2", out var _j) && _j.ValueKind != JsonValueKind.Null) { S2 = _j.GetString(); } else { S2 = null; } } + } + + public static TestNull DeserializeTestNull(JsonElement _buf) + { + return new test.TestNull(_buf); + } + + public readonly int Id; + public readonly int? X1; + public readonly test.DemoEnum? X2; + public readonly test.DemoType1 X3; + public readonly test.DemoDynamic X4; + public readonly string S1; + public readonly string S2; + + public const int __ID__ = 339868469; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + X3?.ResolveRef(tables); + X4?.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestRef.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestRef.cs new file mode 100644 index 00000000..93ea83a3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestRef.cs @@ -0,0 +1,132 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestRef : Luban.BeanBase +{ + public TestRef(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X1 = _buf.GetProperty("x1").GetInt32(); + X1_Ref = null; + X12 = _buf.GetProperty("x1_2").GetInt32(); + X12_Ref = null; + X2 = _buf.GetProperty("x2").GetInt32(); + X3 = _buf.GetProperty("x3").GetInt32(); + X4 = _buf.GetProperty("x4").GetInt32(); + X4_Ref = null; + { var __json0 = _buf.GetProperty("a1"); int _n0 = __json0.GetArrayLength(); A1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); A1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("a2"); int _n0 = __json0.GetArrayLength(); A2 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); A2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("b1"); B1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B1.Add(__v0); } } + { var __json0 = _buf.GetProperty("b2"); B2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B2.Add(__v0); } } + { var __json0 = _buf.GetProperty("c1"); C1 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); C1.Add(__v0); } } + { var __json0 = _buf.GetProperty("c2"); C2 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); C2.Add(__v0); } } + { var __json0 = _buf.GetProperty("d1"); D1 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); D1.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("d2"); D2 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); D2.Add(_k0, _v0); } } + E1 = _buf.GetProperty("e1").GetInt32(); + E2 = _buf.GetProperty("e2").GetInt64(); + E3 = _buf.GetProperty("e3").GetString(); + F1 = _buf.GetProperty("f1").GetInt32(); + F2 = _buf.GetProperty("f2").GetInt64(); + F3 = _buf.GetProperty("f3").GetString(); + S1 = test.RefDynamicBase.DeserializeRefDynamicBase(_buf.GetProperty("s1")); + } + + public static TestRef DeserializeTestRef(JsonElement _buf) + { + return new test.TestRef(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.TestBeRef X1_Ref; + public readonly int X12; + public test.TestBeRef X12_Ref; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public tag.TestTag X4_Ref; + public readonly int[] A1; + public readonly int[] A2; + public readonly System.Collections.Generic.List B1; + public readonly System.Collections.Generic.List B2; + public readonly System.Collections.Generic.HashSet C1; + public readonly System.Collections.Generic.HashSet C2; + public readonly System.Collections.Generic.Dictionary D1; + public readonly System.Collections.Generic.Dictionary D2; + public readonly int E1; + public readonly long E2; + public readonly string E3; + public readonly int F1; + public readonly long F2; + public readonly string F3; + public readonly test.RefDynamicBase S1; + + public const int __ID__ = -543222491; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbTestBeRef.GetOrDefault(X1); + X12_Ref = tables.TbTestBeRef.GetOrDefault(X12); + + + X4_Ref = tables.TbTestTag.GetOrDefault(X4); + + + + + + + + + + + + + + + S1?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x12:" + X12 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "a1:" + Luban.StringUtil.CollectionToString(A1) + "," + + "a2:" + Luban.StringUtil.CollectionToString(A2) + "," + + "b1:" + Luban.StringUtil.CollectionToString(B1) + "," + + "b2:" + Luban.StringUtil.CollectionToString(B2) + "," + + "c1:" + Luban.StringUtil.CollectionToString(C1) + "," + + "c2:" + Luban.StringUtil.CollectionToString(C2) + "," + + "d1:" + Luban.StringUtil.CollectionToString(D1) + "," + + "d2:" + Luban.StringUtil.CollectionToString(D2) + "," + + "e1:" + E1 + "," + + "e2:" + E2 + "," + + "e3:" + E3 + "," + + "f1:" + F1 + "," + + "f2:" + F2 + "," + + "f3:" + F3 + "," + + "s1:" + S1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestRow.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestRow.cs new file mode 100644 index 00000000..ea8c3dd6 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestRow.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestRow : Luban.BeanBase +{ + public TestRow(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetBoolean(); + Z = _buf.GetProperty("z").GetString(); + A = test.Test3.DeserializeTest3(_buf.GetProperty("a")); + { var __json0 = _buf.GetProperty("b"); B = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B.Add(__v0); } } + } + + public static TestRow DeserializeTestRow(JsonElement _buf) + { + return new test.TestRow(_buf); + } + + public readonly int X; + public readonly bool Y; + public readonly string Z; + public readonly test.Test3 A; + public readonly System.Collections.Generic.List B; + + public const int __ID__ = -543222164; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + A?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "a:" + A + "," + + "b:" + Luban.StringUtil.CollectionToString(B) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..bd7c5b7e --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestScriptableObject.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestScriptableObject : Luban.BeanBase +{ + public TestScriptableObject(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + Rate = _buf.GetProperty("rate").GetSingle(); + Num = _buf.GetProperty("num").GetInt32(); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf.GetProperty("v2"))); + V3 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf.GetProperty("v3"))); + V4 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf.GetProperty("v4"))); + } + + public static TestScriptableObject DeserializeTestScriptableObject(JsonElement _buf) + { + return new test.TestScriptableObject(_buf); + } + + public readonly int Id; + public readonly string Desc; + public readonly float Rate; + public readonly int Num; + public readonly System.Numerics.Vector2 V2; + public readonly System.Numerics.Vector3 V3; + public readonly System.Numerics.Vector4 V4; + + public const int __ID__ = -1896814350; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "desc:" + Desc + "," + + "rate:" + Rate + "," + + "num:" + Num + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestSet.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestSet.cs new file mode 100644 index 00000000..bc8fb836 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestSet.cs @@ -0,0 +1,66 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestSet : Luban.BeanBase +{ + public TestSet(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X0 = _buf.GetProperty("x0").GetString(); + { var __json0 = _buf.GetProperty("x1"); X1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X1.Add(__v0); } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { long __v0; __v0 = __e0.GetInt64(); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { string __v0; __v0 = __e0.GetString(); X3.Add(__v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoEnum __v0; __v0 = (test.DemoEnum)__e0.GetInt32(); X4.Add(__v0); } } + } + + public static TestSet DeserializeTestSet(JsonElement _buf) + { + return new test.TestSet(_buf); + } + + public readonly int Id; + public readonly string X0; + public readonly System.Collections.Generic.List X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.List X3; + public readonly System.Collections.Generic.List X4; + + public const int __ID__ = -543221516; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x0:" + X0 + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestSize.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestSize.cs new file mode 100644 index 00000000..05ef8e8d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestSize.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestSize : Luban.BeanBase +{ + public TestSize(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("x1"); int _n0 = __json0.GetArrayLength(); X1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X3.Add(__v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X4.Add(_k0, _v0); } } + } + + public static TestSize DeserializeTestSize(JsonElement _buf) + { + return new test.TestSize(_buf); + } + + public readonly int Id; + public readonly int[] X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.HashSet X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = 340006319; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestString.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestString.cs new file mode 100644 index 00000000..56a5912c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.TestString.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestString : Luban.BeanBase +{ + public TestString(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetString(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + Cs1 = test.CompactString.DeserializeCompactString(_buf.GetProperty("cs1")); + Cs2 = test.CompactString.DeserializeCompactString(_buf.GetProperty("cs2")); + } + + public static TestString DeserializeTestString(JsonElement _buf) + { + return new test.TestString(_buf); + } + + public readonly string Id; + public readonly string S1; + public readonly string S2; + public readonly test.CompactString Cs1; + public readonly test.CompactString Cs2; + + public const int __ID__ = 338485823; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + Cs1?.ResolveRef(tables); + Cs2?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "cs1:" + Cs1 + "," + + "cs2:" + Cs2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..048ae322 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test.login.RoleInfo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test.login +{ +public sealed partial class RoleInfo : test.DemoD3 +{ + public RoleInfo(JsonElement _buf) : base(_buf) + { + RoleId = _buf.GetProperty("role_id").GetInt64(); + } + + public static RoleInfo DeserializeRoleInfo(JsonElement _buf) + { + return new test.login.RoleInfo(_buf); + } + + public readonly long RoleId; + + public const int __ID__ = -989153243; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "roleId:" + RoleId + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet5_json/Gen/test2.Rectangle.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..6242e117 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/test2.Rectangle.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test2 +{ +/// +/// 矩形 +/// +public sealed partial class Rectangle : test.Shape +{ + public Rectangle(JsonElement _buf) : base(_buf) + { + Width = _buf.GetProperty("width").GetSingle(); + Height = _buf.GetProperty("height").GetSingle(); + } + + public static Rectangle DeserializeRectangle(JsonElement _buf) + { + return new test2.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = 694982337; + 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/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec2.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec2.cs new file mode 100644 index 00000000..cedcc8d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec2 +{ + public vec2(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + } + + public static vec2 Deserializevec2(JsonElement _buf) + { + return new vec2(_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/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec3.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec3.cs new file mode 100644 index 00000000..10bf9442 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec3.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec3 +{ + public vec3(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + Z = _buf.GetProperty("z").GetSingle(); + } + + public static vec3 Deserializevec3(JsonElement _buf) + { + return new vec3(_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/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec4.cs b/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec4.cs new file mode 100644 index 00000000..978601dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet5_json/Gen/vec4.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec4 +{ + public vec4(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + Z = _buf.GetProperty("z").GetSingle(); + W = _buf.GetProperty("w").GetSingle(); + } + + public static vec4 Deserializevec4(JsonElement _buf) + { + return new vec4(_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/luban_examples/Projects/Csharp_DotNet_bin/Csharp_Server_DotNet5_bin.csproj b/luban_examples/Projects/Csharp_DotNet_bin/Csharp_Server_DotNet5_bin.csproj new file mode 100644 index 00000000..d73f2a80 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Csharp_Server_DotNet5_bin.csproj @@ -0,0 +1,26 @@ + + + + Exe + net6.0 + True + + + + true + TRACE;CPU_SUPPORT_MEMORY_NOT_ALIGN + + + + TRACE;CPU_SUPPORT_MEMORY_NOT_ALIGN + + + + + + + + + + + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Csharp_Server_DotNet5_bin.sln b/luban_examples/Projects/Csharp_DotNet_bin/Csharp_Server_DotNet5_bin.sln new file mode 100644 index 00000000..f6d28cc8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Csharp_Server_DotNet5_bin.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30523.141 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Csharp_Server_DotNet5_bin", "Csharp_Server_DotNet5_bin.csproj", "{8AEED884-8DDE-47FC-8529-1A88EB02B019}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9C38A42-1380-4256-A6C2-23622BF39456} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Csharp_DotNet_bin/CustomAudioType.cs b/luban_examples/Projects/Csharp_DotNet_bin/CustomAudioType.cs new file mode 100644 index 00000000..040c1d08 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/CustomAudioType.cs @@ -0,0 +1,6 @@ + +public enum CustomAudioType +{ + A, + B, +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_DotNet_bin/ExternalTypeUtil.cs b/luban_examples/Projects/Csharp_DotNet_bin/ExternalTypeUtil.cs new file mode 100644 index 00000000..bac10bae --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/ExternalTypeUtil.cs @@ -0,0 +1,19 @@ +using System.Numerics; + +public static class ExternalTypeUtil +{ + public static Vector2 NewVector2(cfg.vec2 v) + { + return new Vector2(v.X, v.Y); + } + + public static Vector3 NewVector3(cfg.vec3 v) + { + return new Vector3(v.X, v.Y, v.Z); + } + + public static Vector4 NewVector4(cfg.vec4 v) + { + return new Vector4(v.X, v.Y, v.Z, v.W); + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/AudioType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/AudioType.cs new file mode 100644 index 00000000..3ac4c0e7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/AudioType.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/DefineFromExcel2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..31fc15c5 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/DefineFromExcel2.cs @@ -0,0 +1,119 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg +{ +public sealed partial class DefineFromExcel2 : Luban.BeanBase +{ + public DefineFromExcel2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X8 = _buf.ReadInt(); + X10 = _buf.ReadString(); + X13 = (test.DemoEnum)_buf.ReadInt(); + X132 = (test.DemoFlag)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + X15 = test.Shape.DeserializeShape(_buf); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf)); + T1 = _buf.ReadLong(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K10 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { System.Numerics.Vector3 _e0; _e0 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf)); K10.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K11 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { System.Numerics.Vector4 _e0; _e0 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf)); K11.Add(_e0);}} + } + + public static DefineFromExcel2 DeserializeDefineFromExcel2(ByteBuf _buf) + { + return new DefineFromExcel2(_buf); + } + + /// + /// 这是id + /// + public readonly int Id; + /// + /// 字段x1 + /// + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly int X8; + public readonly string X10; + public readonly test.DemoEnum X13; + public readonly test.DemoFlag X132; + public readonly test.DemoDynamic X14; + public readonly test.Shape X15; + public readonly System.Numerics.Vector2 V2; + public readonly long T1; + public readonly int[] K1; + public readonly int[] K2; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly System.Collections.Generic.List K10; + public readonly System.Collections.Generic.List K11; + + public const int __ID__ = 482045152; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + X14?.ResolveRef(tables); + X15?.ResolveRef(tables); + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x8:" + X8 + "," + + "x10:" + X10 + "," + + "x13:" + X13 + "," + + "x132:" + X132 + "," + + "x14:" + X14 + "," + + "x15:" + X15 + "," + + "v2:" + V2 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k10:" + Luban.StringUtil.CollectionToString(K10) + "," + + "k11:" + Luban.StringUtil.CollectionToString(K11) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/Tables.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/Tables.cs new file mode 100644 index 00000000..bf0916c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/Tables.cs @@ -0,0 +1,147 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + +namespace cfg +{ +public partial class Tables +{ + public ai.TbBlackboard TbBlackboard {get; } + public ai.TbBehaviorTree TbBehaviorTree {get; } + public common.TbGlobalConfig TbGlobalConfig {get; } + /// + /// 道具表 + /// + public item.TbItem TbItem {get; } + public l10n.TbL10NDemo TbL10NDemo {get; } + public l10n.TbPatchDemo TbPatchDemo {get; } + public tag.TbTestTag TbTestTag {get; } + public test.TbFullTypes TbFullTypes {get; } + public test.TbSingleton TbSingleton {get; } + public test.TbNotIndexList TbNotIndexList {get; } + public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; } + public test.TbMultiIndexList TbMultiIndexList {get; } + public test.TbDataFromMisc TbDataFromMisc {get; } + public test.TbMultiRowRecord TbMultiRowRecord {get; } + public test.TbTestMultiColumn TbTestMultiColumn {get; } + public test.TbMultiRowTitle TbMultiRowTitle {get; } + public test.TbTestNull TbTestNull {get; } + public test.TbDemoPrimitive TbDemoPrimitive {get; } + public test.TbTestString TbTestString {get; } + public test.TbDemoGroup TbDemoGroup {get; } + public test.TbDemoGroup_S TbDemoGroupS {get; } + public test.TbTestGlobal TbTestGlobal {get; } + public test.TbTestBeRef TbTestBeRef {get; } + public test.TbTestBeRef2 TbTestBeRef2 {get; } + public test.TbTestRef TbTestRef {get; } + public test.TbTestSize TbTestSize {get; } + public test.TbTestSet TbTestSet {get; } + public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; } + public test.TbItem2 TbItem2 {get; } + public test.TbTestIndex TbTestIndex {get; } + public test.TbTestMap TbTestMap {get; } + public test.TbExcelFromJson TbExcelFromJson {get; } + public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; } + public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; } + public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; } + public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; } + public test.TbTestScriptableObject TbTestScriptableObject {get; } + public test.TbTestMapper TbTestMapper {get; } + public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; } + + public Tables(System.Func loader) + { + TbBlackboard = new ai.TbBlackboard(loader("ai_tbblackboard")); + TbBehaviorTree = new ai.TbBehaviorTree(loader("ai_tbbehaviortree")); + TbGlobalConfig = new common.TbGlobalConfig(loader("common_tbglobalconfig")); + TbItem = new item.TbItem(loader("item_tbitem")); + TbL10NDemo = new l10n.TbL10NDemo(loader("l10n_tbl10ndemo")); + TbPatchDemo = new l10n.TbPatchDemo(loader("l10n_tbpatchdemo")); + TbTestTag = new tag.TbTestTag(loader("tag_tbtesttag")); + TbFullTypes = new test.TbFullTypes(loader("test_tbfulltypes")); + TbSingleton = new test.TbSingleton(loader("test_tbsingleton")); + TbNotIndexList = new test.TbNotIndexList(loader("test_tbnotindexlist")); + TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader("test_tbmultiunionindexlist")); + TbMultiIndexList = new test.TbMultiIndexList(loader("test_tbmultiindexlist")); + TbDataFromMisc = new test.TbDataFromMisc(loader("test_tbdatafrommisc")); + TbMultiRowRecord = new test.TbMultiRowRecord(loader("test_tbmultirowrecord")); + TbTestMultiColumn = new test.TbTestMultiColumn(loader("test_tbtestmulticolumn")); + TbMultiRowTitle = new test.TbMultiRowTitle(loader("test_tbmultirowtitle")); + TbTestNull = new test.TbTestNull(loader("test_tbtestnull")); + TbDemoPrimitive = new test.TbDemoPrimitive(loader("test_tbdemoprimitive")); + TbTestString = new test.TbTestString(loader("test_tbteststring")); + TbDemoGroup = new test.TbDemoGroup(loader("test_tbdemogroup")); + TbDemoGroupS = new test.TbDemoGroup_S(loader("test_tbdemogroup_s")); + TbTestGlobal = new test.TbTestGlobal(loader("test_tbtestglobal")); + TbTestBeRef = new test.TbTestBeRef(loader("test_tbtestberef")); + TbTestBeRef2 = new test.TbTestBeRef2(loader("test_tbtestberef2")); + TbTestRef = new test.TbTestRef(loader("test_tbtestref")); + TbTestSize = new test.TbTestSize(loader("test_tbtestsize")); + TbTestSet = new test.TbTestSet(loader("test_tbtestset")); + TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader("test_tbdetectcsvencoding")); + TbItem2 = new test.TbItem2(loader("test_tbitem2")); + TbTestIndex = new test.TbTestIndex(loader("test_tbtestindex")); + TbTestMap = new test.TbTestMap(loader("test_tbtestmap")); + TbExcelFromJson = new test.TbExcelFromJson(loader("test_tbexcelfromjson")); + TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader("test_tbcompositejsontable1")); + TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader("test_tbcompositejsontable2")); + TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader("test_tbcompositejsontable3")); + TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader("test_tbexcelfromjsonmultirow")); + TbTestScriptableObject = new test.TbTestScriptableObject(loader("test_tbtestscriptableobject")); + TbTestMapper = new test.TbTestMapper(loader("test_tbtestmapper")); + TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader("test_tbdefinefromexcel2")); + ResolveRef(); + } + + private void ResolveRef() + { + TbBlackboard.ResolveRef(this); + TbBehaviorTree.ResolveRef(this); + TbGlobalConfig.ResolveRef(this); + TbItem.ResolveRef(this); + TbL10NDemo.ResolveRef(this); + TbPatchDemo.ResolveRef(this); + TbTestTag.ResolveRef(this); + TbFullTypes.ResolveRef(this); + TbSingleton.ResolveRef(this); + TbNotIndexList.ResolveRef(this); + TbMultiUnionIndexList.ResolveRef(this); + TbMultiIndexList.ResolveRef(this); + TbDataFromMisc.ResolveRef(this); + TbMultiRowRecord.ResolveRef(this); + TbTestMultiColumn.ResolveRef(this); + TbMultiRowTitle.ResolveRef(this); + TbTestNull.ResolveRef(this); + TbDemoPrimitive.ResolveRef(this); + TbTestString.ResolveRef(this); + TbDemoGroup.ResolveRef(this); + TbDemoGroupS.ResolveRef(this); + TbTestGlobal.ResolveRef(this); + TbTestBeRef.ResolveRef(this); + TbTestBeRef2.ResolveRef(this); + TbTestRef.ResolveRef(this); + TbTestSize.ResolveRef(this); + TbTestSet.ResolveRef(this); + TbDetectCsvEncoding.ResolveRef(this); + TbItem2.ResolveRef(this); + TbTestIndex.ResolveRef(this); + TbTestMap.ResolveRef(this); + TbExcelFromJson.ResolveRef(this); + TbCompositeJsonTable1.ResolveRef(this); + TbCompositeJsonTable2.ResolveRef(this); + TbCompositeJsonTable3.ResolveRef(this); + TbExcelFromJsonMultiRow.ResolveRef(this); + TbTestScriptableObject.ResolveRef(this); + TbTestMapper.ResolveRef(this); + TbDefineFromExcel2.ResolveRef(this); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..e1510515 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BehaviorTree.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class BehaviorTree : Luban.BeanBase +{ + public BehaviorTree(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + BlackboardId = _buf.ReadString(); + BlackboardId_Ref = null; + Root = ai.ComposeNode.DeserializeComposeNode(_buf); + } + + public static BehaviorTree DeserializeBehaviorTree(ByteBuf _buf) + { + return new ai.BehaviorTree(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + public readonly string BlackboardId; + public ai.Blackboard BlackboardId_Ref; + public readonly ai.ComposeNode Root; + + public const int __ID__ = 159552822; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId); + Root?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "blackboardId:" + BlackboardId + "," + + "root:" + Root + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..bc72bb36 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BinaryOperator.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; + + +namespace cfg.ai +{ +public sealed partial class BinaryOperator : ai.KeyQueryOperator +{ + public BinaryOperator(ByteBuf _buf) : base(_buf) + { + Oper = (ai.EOperator)_buf.ReadInt(); + Data = ai.KeyData.DeserializeKeyData(_buf); + } + + public static BinaryOperator DeserializeBinaryOperator(ByteBuf _buf) + { + return new ai.BinaryOperator(_buf); + } + + public readonly ai.EOperator Oper; + public readonly ai.KeyData Data; + + public const int __ID__ = -979891605; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + Data?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "oper:" + Oper + "," + + "data:" + Data + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Blackboard.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..7bfae359 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Blackboard.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class Blackboard : Luban.BeanBase +{ + public Blackboard(ByteBuf _buf) + { + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + ParentName = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Keys = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.BlackboardKey _e0; _e0 = ai.BlackboardKey.DeserializeBlackboardKey(_buf); Keys.Add(_e0);}} + } + + public static Blackboard DeserializeBlackboard(ByteBuf _buf) + { + return new ai.Blackboard(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly string ParentName; + public readonly System.Collections.Generic.List Keys; + + public const int __ID__ = 1576193005; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + foreach (var _e in Keys) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "parentName:" + ParentName + "," + + "keys:" + Luban.StringUtil.CollectionToString(Keys) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..5df4ebb2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BlackboardKey.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKey : Luban.BeanBase +{ + public BlackboardKey(ByteBuf _buf) + { + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + IsStatic = _buf.ReadBool(); + Type = (ai.EKeyType)_buf.ReadInt(); + TypeClassName = _buf.ReadString(); + } + + public static BlackboardKey DeserializeBlackboardKey(ByteBuf _buf) + { + return new ai.BlackboardKey(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly bool IsStatic; + public readonly ai.EKeyType Type; + public readonly string TypeClassName; + + public const int __ID__ = -511559886; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "isStatic:" + IsStatic + "," + + "type:" + Type + "," + + "typeClassName:" + TypeClassName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..7464383a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.BlackboardKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKeyData : ai.KeyData +{ + public BlackboardKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadString(); + } + + public static BlackboardKeyData DeserializeBlackboardKeyData(ByteBuf _buf) + { + return new ai.BlackboardKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = 1517269500; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..975113ec --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ChooseSkill.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; + + +namespace cfg.ai +{ +public sealed partial class ChooseSkill : ai.Task +{ + public ChooseSkill(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + ResultSkillIdKey = _buf.ReadString(); + } + + public static ChooseSkill DeserializeChooseSkill(ByteBuf _buf) + { + return new ai.ChooseSkill(_buf); + } + + public readonly string TargetActorKey; + public readonly string ResultSkillIdKey; + + public const int __ID__ = -918812268; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "resultSkillIdKey:" + ResultSkillIdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..0e7e3235 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ChooseTarget.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class ChooseTarget : ai.Service +{ + public ChooseTarget(ByteBuf _buf) : base(_buf) + { + ResultTargetKey = _buf.ReadString(); + } + + public static ChooseTarget DeserializeChooseTarget(ByteBuf _buf) + { + return new ai.ChooseTarget(_buf); + } + + public readonly string ResultTargetKey; + + public const int __ID__ = 1601247918; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "resultTargetKey:" + ResultTargetKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ComposeNode.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..113fb6d0 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ComposeNode.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; + + +namespace cfg.ai +{ +public abstract partial class ComposeNode : ai.FlowNode +{ + public ComposeNode(ByteBuf _buf) : base(_buf) + { + } + + public static ComposeNode DeserializeComposeNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.DebugPrint.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..0d449530 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.DebugPrint.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class DebugPrint : ai.Task +{ + public DebugPrint(ByteBuf _buf) : base(_buf) + { + Text = _buf.ReadString(); + } + + public static DebugPrint DeserializeDebugPrint(ByteBuf _buf) + { + return new ai.DebugPrint(_buf); + } + + public readonly string Text; + + public const int __ID__ = 1357409728; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Decorator.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Decorator.cs new file mode 100644 index 00000000..b89dbce8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Decorator.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class Decorator : ai.Node +{ + public Decorator(ByteBuf _buf) : base(_buf) + { + FlowAbortMode = (ai.EFlowAbortMode)_buf.ReadInt(); + } + + public static Decorator DeserializeDecorator(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeLoop.__ID__: return new ai.UeLoop(_buf); + case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf); + case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf); + case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf); + case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf); + case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf); + case ai.DistanceLessThan.__ID__: return new ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public readonly ai.EFlowAbortMode FlowAbortMode; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..e0b35db6 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class DistanceLessThan : ai.Decorator +{ + public DistanceLessThan(ByteBuf _buf) : base(_buf) + { + Actor1Key = _buf.ReadString(); + Actor2Key = _buf.ReadString(); + Distance = _buf.ReadFloat(); + ReverseResult = _buf.ReadBool(); + } + + public static DistanceLessThan DeserializeDistanceLessThan(ByteBuf _buf) + { + return new ai.DistanceLessThan(_buf); + } + + public readonly string Actor1Key; + public readonly string Actor2Key; + public readonly float Distance; + public readonly bool ReverseResult; + + public const int __ID__ = -1207170283; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "actor1Key:" + Actor1Key + "," + + "actor2Key:" + Actor2Key + "," + + "distance:" + Distance + "," + + "reverseResult:" + ReverseResult + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EExecutor.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..27ea93ba --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EExecutor.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EFinishMode.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..94a7b4c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EFinishMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..6c97a981 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EFlowAbortMode.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EKeyType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..97110a59 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EKeyType.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..61d634f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EOperator.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EOperator.cs new file mode 100644 index 00000000..25aac54d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.EOperator.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..dc98f5d6 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class ExecuteTimeStatistic : ai.Service +{ + public ExecuteTimeStatistic(ByteBuf _buf) : base(_buf) + { + } + + public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(ByteBuf _buf) + { + return new ai.ExecuteTimeStatistic(_buf); + } + + + public const int __ID__ = 990693812; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..345697e2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.FloatKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class FloatKeyData : ai.KeyData +{ + public FloatKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadFloat(); + } + + public static FloatKeyData DeserializeFloatKeyData(ByteBuf _buf) + { + return new ai.FloatKeyData(_buf); + } + + public readonly float Value; + + public const int __ID__ = -719747885; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.FlowNode.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..f9997897 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.FlowNode.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class FlowNode : ai.Node +{ + public FlowNode(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Decorators = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Decorator _e0; _e0 = ai.Decorator.DeserializeDecorator(_buf); Decorators.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Services = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Service _e0; _e0 = ai.Service.DeserializeService(_buf); Services.Add(_e0);}} + } + + public static FlowNode DeserializeFlowNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly System.Collections.Generic.List Decorators; + public readonly System.Collections.Generic.List Services; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Decorators) { _e?.ResolveRef(tables); } + foreach (var _e in Services) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..001e29a8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class GetOwnerPlayer : ai.Service +{ + public GetOwnerPlayer(ByteBuf _buf) : base(_buf) + { + PlayerActorKey = _buf.ReadString(); + } + + public static GetOwnerPlayer DeserializeGetOwnerPlayer(ByteBuf _buf) + { + return new ai.GetOwnerPlayer(_buf); + } + + public readonly string PlayerActorKey; + + public const int __ID__ = -999247644; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "playerActorKey:" + PlayerActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IntKeyData.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..a18b9db6 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IntKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class IntKeyData : ai.KeyData +{ + public IntKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadInt(); + } + + public static IntKeyData DeserializeIntKeyData(ByteBuf _buf) + { + return new ai.IntKeyData(_buf); + } + + public readonly int Value; + + public const int __ID__ = -342751904; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..723b0eef --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsAtLocation.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class IsAtLocation : ai.Decorator +{ + public IsAtLocation(ByteBuf _buf) : base(_buf) + { + AcceptableRadius = _buf.ReadFloat(); + KeyboardKey = _buf.ReadString(); + InverseCondition = _buf.ReadBool(); + } + + public static IsAtLocation DeserializeIsAtLocation(ByteBuf _buf) + { + return new ai.IsAtLocation(_buf); + } + + public readonly float AcceptableRadius; + public readonly string KeyboardKey; + public readonly bool InverseCondition; + + public const int __ID__ = 1255972344; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "keyboardKey:" + KeyboardKey + "," + + "inverseCondition:" + InverseCondition + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsNotSet.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..790fe7b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsNotSet.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class IsNotSet : ai.KeyQueryOperator +{ + public IsNotSet(ByteBuf _buf) : base(_buf) + { + } + + public static IsNotSet DeserializeIsNotSet(ByteBuf _buf) + { + return new ai.IsNotSet(_buf); + } + + + public const int __ID__ = 790736255; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsSet.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsSet.cs new file mode 100644 index 00000000..36360f95 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.IsSet.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class IsSet : ai.KeyQueryOperator +{ + public IsSet(ByteBuf _buf) : base(_buf) + { + } + + public static IsSet DeserializeIsSet(ByteBuf _buf) + { + return new ai.IsSet(_buf); + } + + + public const int __ID__ = 1635350898; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..d5339bbe --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class KeepFaceTarget : ai.Service +{ + public KeepFaceTarget(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + } + + public static KeepFaceTarget DeserializeKeepFaceTarget(ByteBuf _buf) + { + return new ai.KeepFaceTarget(_buf); + } + + public readonly string TargetActorKey; + + public const int __ID__ = 1195270745; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "targetActorKey:" + TargetActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeyData.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeyData.cs new file mode 100644 index 00000000..2f68849f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeyData.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; + + +namespace cfg.ai +{ +public abstract partial class KeyData : Luban.BeanBase +{ + public KeyData(ByteBuf _buf) + { + } + + public static KeyData DeserializeKeyData(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.FloatKeyData.__ID__: return new ai.FloatKeyData(_buf); + case ai.IntKeyData.__ID__: return new ai.IntKeyData(_buf); + case ai.StringKeyData.__ID__: return new ai.StringKeyData(_buf); + case ai.BlackboardKeyData.__ID__: return new ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..67a1903d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.KeyQueryOperator.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class KeyQueryOperator : Luban.BeanBase +{ + public KeyQueryOperator(ByteBuf _buf) + { + } + + public static KeyQueryOperator DeserializeKeyQueryOperator(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.IsSet.__ID__: return new ai.IsSet(_buf); + case ai.IsNotSet.__ID__: return new ai.IsNotSet(_buf); + case ai.BinaryOperator.__ID__: return new ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..f0bc39a9 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToLocation.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class MoveToLocation : ai.Task +{ + public MoveToLocation(ByteBuf _buf) : base(_buf) + { + AcceptableRadius = _buf.ReadFloat(); + } + + public static MoveToLocation DeserializeMoveToLocation(ByteBuf _buf) + { + return new ai.MoveToLocation(_buf); + } + + public readonly float AcceptableRadius; + + public const int __ID__ = -969953113; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..f75a945d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToRandomLocation.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; + + +namespace cfg.ai +{ +public sealed partial class MoveToRandomLocation : ai.Task +{ + public MoveToRandomLocation(ByteBuf _buf) : base(_buf) + { + OriginPositionKey = _buf.ReadString(); + Radius = _buf.ReadFloat(); + } + + public static MoveToRandomLocation DeserializeMoveToRandomLocation(ByteBuf _buf) + { + return new ai.MoveToRandomLocation(_buf); + } + + public readonly string OriginPositionKey; + public readonly float Radius; + + public const int __ID__ = -2140042998; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "originPositionKey:" + OriginPositionKey + "," + + "radius:" + Radius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..74c4b5e8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.MoveToTarget.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; + + +namespace cfg.ai +{ +public sealed partial class MoveToTarget : ai.Task +{ + public MoveToTarget(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + AcceptableRadius = _buf.ReadFloat(); + } + + public static MoveToTarget DeserializeMoveToTarget(ByteBuf _buf) + { + return new ai.MoveToTarget(_buf); + } + + public readonly string TargetActorKey; + public readonly float AcceptableRadius; + + public const int __ID__ = 514987779; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Node.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Node.cs new file mode 100644 index 00000000..eb48d185 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Node.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; + + +namespace cfg.ai +{ +public abstract partial class Node : Luban.BeanBase +{ + public Node(ByteBuf _buf) + { + Id = _buf.ReadInt(); + NodeName = _buf.ReadString(); + } + + public static Node DeserializeNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf); + case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf); + case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf); + case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf); + case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf); + case ai.UpdateDailyBehaviorProps.__ID__: return new ai.UpdateDailyBehaviorProps(_buf); + case ai.UeLoop.__ID__: return new ai.UeLoop(_buf); + case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf); + case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf); + case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf); + case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf); + case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf); + case ai.DistanceLessThan.__ID__: return new ai.DistanceLessThan(_buf); + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string NodeName; + + + public virtual void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Selector.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Selector.cs new file mode 100644 index 00000000..d049521d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Selector.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; + + +namespace cfg.ai +{ +public sealed partial class Selector : ai.ComposeNode +{ + public Selector(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}} + } + + public static Selector DeserializeSelector(ByteBuf _buf) + { + return new ai.Selector(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1946981627; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Sequence.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Sequence.cs new file mode 100644 index 00000000..519bb9be --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Sequence.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; + + +namespace cfg.ai +{ +public sealed partial class Sequence : ai.ComposeNode +{ + public Sequence(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}} + } + + public static Sequence DeserializeSequence(ByteBuf _buf) + { + return new ai.Sequence(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1789006105; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Service.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Service.cs new file mode 100644 index 00000000..9c3be7c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Service.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class Service : ai.Node +{ + public Service(ByteBuf _buf) : base(_buf) + { + } + + public static Service DeserializeService(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf); + case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf); + case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf); + case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf); + case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf); + case ai.UpdateDailyBehaviorProps.__ID__: return new ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..87421693 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.SimpleParallel.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class SimpleParallel : ai.ComposeNode +{ + public SimpleParallel(ByteBuf _buf) : base(_buf) + { + FinishMode = (ai.EFinishMode)_buf.ReadInt(); + MainTask = ai.Task.DeserializeTask(_buf); + BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf); + } + + public static SimpleParallel DeserializeSimpleParallel(ByteBuf _buf) + { + return new ai.SimpleParallel(_buf); + } + + public readonly ai.EFinishMode FinishMode; + public readonly ai.Task MainTask; + public readonly ai.FlowNode BackgroundNode; + + public const int __ID__ = -1952582529; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + MainTask?.ResolveRef(tables); + BackgroundNode?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "finishMode:" + FinishMode + "," + + "mainTask:" + MainTask + "," + + "backgroundNode:" + BackgroundNode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.StringKeyData.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..20238a41 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.StringKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class StringKeyData : ai.KeyData +{ + public StringKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadString(); + } + + public static StringKeyData DeserializeStringKeyData(ByteBuf _buf) + { + return new ai.StringKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = -307888654; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Task.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Task.cs new file mode 100644 index 00000000..94b2c5fa --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.Task.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class Task : ai.FlowNode +{ + public Task(ByteBuf _buf) : base(_buf) + { + IgnoreRestartSelf = _buf.ReadBool(); + } + + public static Task DeserializeTask(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly bool IgnoreRestartSelf; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.TbBehaviorTree.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.TbBehaviorTree.cs new file mode 100644 index 00000000..d59e5ee0 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.TbBehaviorTree.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public partial class TbBehaviorTree +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBehaviorTree(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + ai.BehaviorTree _v; + _v = ai.BehaviorTree.DeserializeBehaviorTree(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.BehaviorTree GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.BehaviorTree Get(int key) => _dataMap[key]; + public ai.BehaviorTree this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.TbBlackboard.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.TbBlackboard.cs new file mode 100644 index 00000000..92b62447 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.TbBlackboard.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public partial class TbBlackboard +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBlackboard(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + ai.Blackboard _v; + _v = ai.Blackboard.DeserializeBlackboard(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Name, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.Blackboard GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.Blackboard Get(string key) => _dataMap[key]; + public ai.Blackboard this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..5ea4a151 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeBlackboard.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeBlackboard : ai.Decorator +{ + public UeBlackboard(ByteBuf _buf) : base(_buf) + { + NotifyObserver = (ai.ENotifyObserverMode)_buf.ReadInt(); + BlackboardKey = _buf.ReadString(); + KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf); + } + + public static UeBlackboard DeserializeUeBlackboard(ByteBuf _buf) + { + return new ai.UeBlackboard(_buf); + } + + public readonly ai.ENotifyObserverMode NotifyObserver; + public readonly string BlackboardKey; + public readonly ai.KeyQueryOperator KeyQuery; + + public const int __ID__ = -315297507; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + KeyQuery?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "notifyObserver:" + NotifyObserver + "," + + "blackboardKey:" + BlackboardKey + "," + + "keyQuery:" + KeyQuery + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeCooldown.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..e6847193 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeCooldown.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeCooldown : ai.Decorator +{ + public UeCooldown(ByteBuf _buf) : base(_buf) + { + CooldownTime = _buf.ReadFloat(); + } + + public static UeCooldown DeserializeUeCooldown(ByteBuf _buf) + { + return new ai.UeCooldown(_buf); + } + + public readonly float CooldownTime; + + public const int __ID__ = -951439423; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "cooldownTime:" + CooldownTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..2edb3e4f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeForceSuccess.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeForceSuccess : ai.Decorator +{ + public UeForceSuccess(ByteBuf _buf) : base(_buf) + { + } + + public static UeForceSuccess DeserializeUeForceSuccess(ByteBuf _buf) + { + return new ai.UeForceSuccess(_buf); + } + + + public const int __ID__ = 195054574; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeLoop.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..ef23b76d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeLoop.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeLoop : ai.Decorator +{ + public UeLoop(ByteBuf _buf) : base(_buf) + { + NumLoops = _buf.ReadInt(); + InfiniteLoop = _buf.ReadBool(); + InfiniteLoopTimeoutTime = _buf.ReadFloat(); + } + + public static UeLoop DeserializeUeLoop(ByteBuf _buf) + { + return new ai.UeLoop(_buf); + } + + public readonly int NumLoops; + public readonly bool InfiniteLoop; + public readonly float InfiniteLoopTimeoutTime; + + public const int __ID__ = -513308166; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "numLoops:" + NumLoops + "," + + "infiniteLoop:" + InfiniteLoop + "," + + "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..a515c985 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeSetDefaultFocus : ai.Service +{ + public UeSetDefaultFocus(ByteBuf _buf) : base(_buf) + { + KeyboardKey = _buf.ReadString(); + } + + public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(ByteBuf _buf) + { + return new ai.UeSetDefaultFocus(_buf); + } + + public readonly string KeyboardKey; + + public const int __ID__ = 1812449155; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "keyboardKey:" + KeyboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..315ebaf8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeTimeLimit.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeTimeLimit : ai.Decorator +{ + public UeTimeLimit(ByteBuf _buf) : base(_buf) + { + LimitTime = _buf.ReadFloat(); + } + + public static UeTimeLimit DeserializeUeTimeLimit(ByteBuf _buf) + { + return new ai.UeTimeLimit(_buf); + } + + public readonly float LimitTime; + + public const int __ID__ = 338469720; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "limitTime:" + LimitTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeWait.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeWait.cs new file mode 100644 index 00000000..46828239 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeWait.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; + + +namespace cfg.ai +{ +public sealed partial class UeWait : ai.Task +{ + public UeWait(ByteBuf _buf) : base(_buf) + { + WaitTime = _buf.ReadFloat(); + RandomDeviation = _buf.ReadFloat(); + } + + public static UeWait DeserializeUeWait(ByteBuf _buf) + { + return new ai.UeWait(_buf); + } + + public readonly float WaitTime; + public readonly float RandomDeviation; + + public const int __ID__ = -512994101; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "waitTime:" + WaitTime + "," + + "randomDeviation:" + RandomDeviation + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..37a134da --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeWaitBlackboardTime : ai.Task +{ + public UeWaitBlackboardTime(ByteBuf _buf) : base(_buf) + { + BlackboardKey = _buf.ReadString(); + } + + public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(ByteBuf _buf) + { + return new ai.UeWaitBlackboardTime(_buf); + } + + public readonly string BlackboardKey; + + public const int __ID__ = 1215378271; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "blackboardKey:" + BlackboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..3f4608b2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UpdateDailyBehaviorProps : ai.Service +{ + public UpdateDailyBehaviorProps(ByteBuf _buf) : base(_buf) + { + SatietyKey = _buf.ReadString(); + EnergyKey = _buf.ReadString(); + MoodKey = _buf.ReadString(); + SatietyLowerThresholdKey = _buf.ReadString(); + SatietyUpperThresholdKey = _buf.ReadString(); + EnergyLowerThresholdKey = _buf.ReadString(); + EnergyUpperThresholdKey = _buf.ReadString(); + MoodLowerThresholdKey = _buf.ReadString(); + MoodUpperThresholdKey = _buf.ReadString(); + } + + public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(ByteBuf _buf) + { + return new ai.UpdateDailyBehaviorProps(_buf); + } + + public readonly string SatietyKey; + public readonly string EnergyKey; + public readonly string MoodKey; + public readonly string SatietyLowerThresholdKey; + public readonly string SatietyUpperThresholdKey; + public readonly string EnergyLowerThresholdKey; + public readonly string EnergyUpperThresholdKey; + public readonly string MoodLowerThresholdKey; + public readonly string MoodUpperThresholdKey; + + public const int __ID__ = -61887372; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "satietyKey:" + SatietyKey + "," + + "energyKey:" + EnergyKey + "," + + "moodKey:" + MoodKey + "," + + "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + "," + + "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + "," + + "energyLowerThresholdKey:" + EnergyLowerThresholdKey + "," + + "energyUpperThresholdKey:" + EnergyUpperThresholdKey + "," + + "moodLowerThresholdKey:" + MoodLowerThresholdKey + "," + + "moodUpperThresholdKey:" + MoodUpperThresholdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.EBoolOperator.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..4e7f1379 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.EBoolOperator.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.GlobalConfig.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..68987d6f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.GlobalConfig.cs @@ -0,0 +1,72 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.common +{ +public sealed partial class GlobalConfig : Luban.BeanBase +{ + public GlobalConfig(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + X2 = _buf.ReadInt(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadInt(); + X5 = _buf.ReadInt(); + X6 = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X7 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X7.Add(_e0);}} + } + + public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf) + { + return new common.GlobalConfig(_buf); + } + + /// + /// 背包容量 + /// + public readonly int X1; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public readonly int X5; + public readonly int X6; + public readonly System.Collections.Generic.List X7; + + public const int __ID__ = -848234488; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.TbGlobalConfig.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.TbGlobalConfig.cs new file mode 100644 index 00000000..85d715b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/common.TbGlobalConfig.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.common +{ +public partial class TbGlobalConfig +{ + + private readonly common.GlobalConfig _data; + + public TbGlobalConfig(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = common.GlobalConfig.DeserializeGlobalConfig(_buf); + } + + + /// + /// 背包容量 + /// + public int X1 => _data.X1; + public int X2 => _data.X2; + public int X3 => _data.X3; + public int X4 => _data.X4; + public int X5 => _data.X5; + public int X6 => _data.X6; + public System.Collections.Generic.List X7 => _data.X7; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..f148097b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothersStarQualityType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothersTag.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..c7bfd3cb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothersTag.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..401492ae --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothesHidePartType.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..b0b224b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EClothesPropertyType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.ECurrencyType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..7dfcba3c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.ECurrencyType.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EItemQuality.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..74fcfbf2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EItemQuality.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// 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 EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EMajorType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EMajorType.cs new file mode 100644 index 00000000..c19157ce --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EMajorType.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EMinorType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EMinorType.cs new file mode 100644 index 00000000..936a15ab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EMinorType.cs @@ -0,0 +1,215 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EUseType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EUseType.cs new file mode 100644 index 00000000..20f635dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.EUseType.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.Item.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.Item.cs new file mode 100644 index 00000000..af37f626 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.Item.cs @@ -0,0 +1,87 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.item +{ +/// +/// 道具 +/// +public sealed partial class Item : Luban.BeanBase +{ + public Item(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + MajorType = (item.EMajorType)_buf.ReadInt(); + MinorType = (item.EMinorType)_buf.ReadInt(); + MaxPileNum = _buf.ReadInt(); + Quality = (item.EItemQuality)_buf.ReadInt(); + IconBackgroud = _buf.ReadString(); + IconMask = _buf.ReadString(); + Desc = _buf.ReadString(); + ShowOrder = _buf.ReadInt(); + } + + public static Item DeserializeItem(ByteBuf _buf) + { + return new item.Item(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + public readonly string Name; + public readonly item.EMajorType MajorType; + public readonly item.EMinorType MinorType; + public readonly int MaxPileNum; + public readonly item.EItemQuality Quality; + public readonly string IconBackgroud; + public readonly string IconMask; + public readonly string Desc; + public readonly int ShowOrder; + + public const int __ID__ = 2107285806; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "majorType:" + MajorType + "," + + "minorType:" + MinorType + "," + + "maxPileNum:" + MaxPileNum + "," + + "quality:" + Quality + "," + + "iconBackgroud:" + IconBackgroud + "," + + "iconMask:" + IconMask + "," + + "desc:" + Desc + "," + + "showOrder:" + ShowOrder + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.TbItem.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.TbItem.cs new file mode 100644 index 00000000..c93db4f6 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/item.TbItem.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.item +{ +/// +/// 道具表 +/// +public partial class TbItem +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + item.Item _v; + _v = item.Item.DeserializeItem(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public item.Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public item.Item Get(int key) => _dataMap[key]; + public item.Item this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..a7de7596 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.L10NDemo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public sealed partial class L10NDemo : Luban.BeanBase +{ + public L10NDemo(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Text = _buf.ReadString(); + } + + public static L10NDemo DeserializeL10NDemo(ByteBuf _buf) + { + return new l10n.L10NDemo(_buf); + } + + public readonly int Id; + public readonly string Text; + + public const int __ID__ = -331195887; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..f2f582d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.PatchDemo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public sealed partial class PatchDemo : Luban.BeanBase +{ + public PatchDemo(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Value = _buf.ReadInt(); + } + + public static PatchDemo DeserializePatchDemo(ByteBuf _buf) + { + return new l10n.PatchDemo(_buf); + } + + public readonly int Id; + public readonly int Value; + + public const int __ID__ = -1707294656; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.TbL10NDemo.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.TbL10NDemo.cs new file mode 100644 index 00000000..608bb458 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.TbL10NDemo.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public partial class TbL10NDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbL10NDemo(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + l10n.L10NDemo _v; + _v = l10n.L10NDemo.DeserializeL10NDemo(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.L10NDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.L10NDemo Get(int key) => _dataMap[key]; + public l10n.L10NDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.TbPatchDemo.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.TbPatchDemo.cs new file mode 100644 index 00000000..3f595f52 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/l10n.TbPatchDemo.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public partial class TbPatchDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPatchDemo(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + l10n.PatchDemo _v; + _v = l10n.PatchDemo.DeserializePatchDemo(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.PatchDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.PatchDemo Get(int key) => _dataMap[key]; + public l10n.PatchDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/tag.TbTestTag.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/tag.TbTestTag.cs new file mode 100644 index 00000000..f880e989 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/tag.TbTestTag.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.tag +{ +public partial class TbTestTag +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestTag(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + tag.TestTag _v; + _v = tag.TestTag.DeserializeTestTag(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public tag.TestTag GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public tag.TestTag Get(int key) => _dataMap[key]; + public tag.TestTag this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/tag.TestTag.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/tag.TestTag.cs new file mode 100644 index 00000000..8d280857 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/tag.TestTag.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.tag +{ +public sealed partial class TestTag : Luban.BeanBase +{ + public TestTag(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Value = _buf.ReadString(); + } + + public static TestTag DeserializeTestTag(ByteBuf _buf) + { + return new tag.TestTag(_buf); + } + + public readonly int Id; + public readonly string Value; + + public const int __ID__ = 1742933812; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.AccessFlag.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..9bd3f0c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.AccessFlag.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// 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/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Circle.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Circle.cs new file mode 100644 index 00000000..9c7c4ea8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Circle.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +/// +/// 圆 +/// +public sealed partial class Circle : Shape +{ + public Circle(ByteBuf _buf) : base(_buf) + { + Radius = _buf.ReadFloat(); + } + + public static Circle DeserializeCircle(ByteBuf _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/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompactString.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompactString.cs new file mode 100644 index 00000000..16aede11 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompactString.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; + + +namespace cfg.test +{ +public sealed partial class CompactString : Luban.BeanBase +{ + public CompactString(ByteBuf _buf) + { + Id = _buf.ReadInt(); + S2 = _buf.ReadString(); + S3 = _buf.ReadString(); + } + + public static CompactString DeserializeCompactString(ByteBuf _buf) + { + return new test.CompactString(_buf); + } + + public readonly int Id; + public readonly string S2; + public readonly string S3; + + public const int __ID__ = 1968089240; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s2:" + S2 + "," + + "s3:" + S3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..52eb6f19 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable1 : Luban.BeanBase +{ + public CompositeJsonTable1(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadString(); + } + + public static CompositeJsonTable1 DeserializeCompositeJsonTable1(ByteBuf _buf) + { + return new test.CompositeJsonTable1(_buf); + } + + public readonly int Id; + public readonly string X; + + public const int __ID__ = 1566207894; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..d3fd28fd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable2.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable2 : Luban.BeanBase +{ + public CompositeJsonTable2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static CompositeJsonTable2 DeserializeCompositeJsonTable2(ByteBuf _buf) + { + return new test.CompositeJsonTable2(_buf); + } + + public readonly int Id; + public readonly int Y; + + public const int __ID__ = 1566207895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..6888c532 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.CompositeJsonTable3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable3 : Luban.BeanBase +{ + public CompositeJsonTable3(ByteBuf _buf) + { + A = _buf.ReadInt(); + B = _buf.ReadInt(); + } + + public static CompositeJsonTable3 DeserializeCompositeJsonTable3(ByteBuf _buf) + { + return new test.CompositeJsonTable3(_buf); + } + + public readonly int A; + public readonly int B; + + public const int __ID__ = 1566207896; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "a:" + A + "," + + "b:" + B + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DateTimeRange.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..2624d9b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DateTimeRange.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DateTimeRange : Luban.BeanBase +{ + public DateTimeRange(ByteBuf _buf) + { + StartTime = _buf.ReadLong(); + EndTime = _buf.ReadLong(); + } + + public static DateTimeRange DeserializeDateTimeRange(ByteBuf _buf) + { + return new test.DateTimeRange(_buf); + } + + public readonly long StartTime; + public readonly long EndTime; + + public const int __ID__ = 495315430; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "startTime:" + StartTime + "," + + "endTime:" + EndTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Decorator.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Decorator.cs new file mode 100644 index 00000000..0d640e42 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Decorator.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class Decorator : test.ItemBase +{ + public Decorator(ByteBuf _buf) : base(_buf) + { + Duration = _buf.ReadInt(); + } + + public static Decorator DeserializeDecorator(ByteBuf _buf) + { + return new test.Decorator(_buf); + } + + public readonly int Duration; + + public const int __ID__ = -625155649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "duration:" + Duration + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD2.cs new file mode 100644 index 00000000..eac246ed --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD2.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; + + +namespace cfg.test +{ +public sealed partial class DemoD2 : test.DemoDynamic +{ + public DemoD2(ByteBuf _buf) : base(_buf) + { + X2 = _buf.ReadInt(); + } + + public static DemoD2 DeserializeDemoD2(ByteBuf _buf) + { + return new test.DemoD2(_buf); + } + + public readonly int X2; + + public const int __ID__ = -2138341747; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD3.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD3.cs new file mode 100644 index 00000000..eb456c30 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD3.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; + + +namespace cfg.test +{ +public abstract partial class DemoD3 : test.DemoDynamic +{ + public DemoD3(ByteBuf _buf) : base(_buf) + { + X3 = _buf.ReadInt(); + } + + public static DemoD3 DeserializeDemoD3(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.DemoE1.__ID__: return new test.DemoE1(_buf); + case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X3; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD5.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD5.cs new file mode 100644 index 00000000..01c0d6cd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoD5.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; + + +namespace cfg.test +{ +public sealed partial class DemoD5 : test.DemoDynamic +{ + public DemoD5(ByteBuf _buf) : base(_buf) + { + Time = test.DateTimeRange.DeserializeDateTimeRange(_buf); + } + + public static DemoD5 DeserializeDemoD5(ByteBuf _buf) + { + return new test.DemoD5(_buf); + } + + public readonly test.DateTimeRange Time; + + public const int __ID__ = -2138341744; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + Time?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "time:" + Time + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoDynamic.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..182dedd3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoDynamic.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; + + +namespace cfg.test +{ +public abstract partial class DemoDynamic : Luban.BeanBase +{ + public DemoDynamic(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + } + + public static DemoDynamic DeserializeDemoDynamic(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.DemoD2.__ID__: return new test.DemoD2(_buf); + case test.DemoE1.__ID__: return new test.DemoE1(_buf); + case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf); + case test.DemoD5.__ID__: return new test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X1; + + + public virtual void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoE1.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoE1.cs new file mode 100644 index 00000000..66660e6f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoE1.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoE1 : test.DemoD3 +{ + public DemoE1(ByteBuf _buf) : base(_buf) + { + X4 = _buf.ReadInt(); + } + + public static DemoE1 DeserializeDemoE1(ByteBuf _buf) + { + return new test.DemoE1(_buf); + } + + public readonly int X4; + + public const int __ID__ = -2138341717; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoE2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoE2.cs new file mode 100644 index 00000000..c91e1cb2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoE2.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; + + +namespace cfg.test +{ +public partial struct DemoE2 +{ + public DemoE2(ByteBuf _buf) + { + if(_buf.ReadBool()){ Y1 = _buf.ReadInt(); } else { Y1 = null; } + Y2 = _buf.ReadBool(); + } + + public static DemoE2 DeserializeDemoE2(ByteBuf _buf) + { + return new test.DemoE2(_buf); + } + + public readonly int? Y1; + public readonly bool Y2; + + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoEnum.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..0a52c1e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoEnum.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + Any = 6, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoFlag.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..b9b5d903 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoFlag.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoGroup.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..e355fd1a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoGroup.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; + + +namespace cfg.test +{ +public sealed partial class DemoGroup : Luban.BeanBase +{ + public DemoGroup(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X2 = _buf.ReadInt(); + X2_Ref = null; + X4 = _buf.ReadInt(); + X5 = test.InnerGroup.DeserializeInnerGroup(_buf); + } + + public static DemoGroup DeserializeDemoGroup(ByteBuf _buf) + { + return new test.DemoGroup(_buf); + } + + public readonly int Id; + public readonly int X2; + public test.DemoGroup X2_Ref; + public readonly int X4; + public readonly test.InnerGroup X5; + + public const int __ID__ = -379263008; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X2_Ref = tables.TbDemoGroupS.GetOrDefault(X2); + + X5?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x2:" + X2 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..1dc2cc55 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,93 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoPrimitiveTypesTable : Luban.BeanBase +{ + public DemoPrimitiveTypesTable(ByteBuf _buf) + { + X1 = _buf.ReadBool(); + X2 = _buf.ReadByte(); + X3 = _buf.ReadShort(); + X4 = _buf.ReadInt(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X7 = _buf.ReadDouble(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf)); + V3 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf)); + V4 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf)); + T1 = _buf.ReadLong(); + } + + public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(ByteBuf _buf) + { + return new test.DemoPrimitiveTypesTable(_buf); + } + + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly int X4; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly string S1; + public readonly string S2; + public readonly System.Numerics.Vector2 V2; + public readonly System.Numerics.Vector3 V3; + public readonly System.Numerics.Vector4 V4; + public readonly long T1; + + public const int __ID__ = -370934083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "t1:" + T1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..5a85122e --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoSingletonType.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; + + +namespace cfg.test +{ +public sealed partial class DemoSingletonType : Luban.BeanBase +{ + public DemoSingletonType(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Date = test.DemoDynamic.DeserializeDemoDynamic(_buf); + } + + public static DemoSingletonType DeserializeDemoSingletonType(ByteBuf _buf) + { + return new test.DemoSingletonType(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.DemoDynamic Date; + + public const int __ID__ = 539196998; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + Date?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "date:" + Date + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoType1.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoType1.cs new file mode 100644 index 00000000..5f6c1204 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoType1.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoType1 : Luban.BeanBase +{ + public DemoType1(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + } + + public static DemoType1 DeserializeDemoType1(ByteBuf _buf) + { + return new test.DemoType1(_buf); + } + + public readonly int X1; + + public const int __ID__ = -367048296; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoType2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoType2.cs new file mode 100644 index 00000000..44c9c321 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DemoType2.cs @@ -0,0 +1,129 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoType2 : Luban.BeanBase +{ + public DemoType2(ByteBuf _buf) + { + X4 = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X2 = _buf.ReadByte(); + X3 = _buf.ReadShort(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X7 = _buf.ReadDouble(); + X80 = _buf.ReadShort(); + X8 = _buf.ReadInt(); + X9 = _buf.ReadLong(); + X10 = _buf.ReadString(); + X12 = test.DemoType1.DeserializeDemoType1(_buf); + X13 = (test.DemoEnum)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + S1 = _buf.ReadString(); + T1 = _buf.ReadLong(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K5 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K5.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}} + } + + public static DemoType2 DeserializeDemoType2(ByteBuf _buf) + { + return new test.DemoType2(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly short X80; + public readonly int X8; + public readonly long X9; + public readonly string X10; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly string S1; + public readonly long T1; + public readonly int[] K1; + public readonly System.Collections.Generic.List K2; + public readonly System.Collections.Generic.HashSet K5; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -367048295; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "x80:" + X80 + "," + + "x8:" + X8 + "," + + "x9:" + X9 + "," + + "x10:" + X10 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "s1:" + S1 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k5:" + Luban.StringUtil.CollectionToString(K5) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DetectEncoding.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..e9daa617 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.DetectEncoding.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DetectEncoding : Luban.BeanBase +{ + public DetectEncoding(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + } + + public static DetectEncoding DeserializeDetectEncoding(ByteBuf _buf) + { + return new test.DetectEncoding(_buf); + } + + public readonly int Id; + public readonly string Name; + + public const int __ID__ = -1154609646; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..db34ab8d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestEmptyEnum.cs @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum + { + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..2b27e566 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestQuality.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..f82389f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestQuality.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.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestUeType.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..c69207fe --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ETestUeType.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Equipment.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Equipment.cs new file mode 100644 index 00000000..ec3c1b13 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Equipment.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; + + +namespace cfg.test +{ +public sealed partial class Equipment : test.ItemBase +{ + public Equipment(ByteBuf _buf) : base(_buf) + { + Attr = (test.DemoEnum)_buf.ReadInt(); + Value = _buf.ReadInt(); + } + + public static Equipment DeserializeEquipment(ByteBuf _buf) + { + return new test.Equipment(_buf); + } + + public readonly test.DemoEnum Attr; + public readonly int Value; + + public const int __ID__ = -76837102; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "attr:" + Attr + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..3b892268 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ExcelFromJson.cs @@ -0,0 +1,97 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJson : Luban.BeanBase +{ + public ExcelFromJson(ByteBuf _buf) + { + X4 = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + T1 = _buf.ReadLong(); + X12 = test.DemoType1.DeserializeDemoType1(_buf); + X13 = (test.DemoEnum)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}} + } + + public static ExcelFromJson DeserializeExcelFromJson(ByteBuf _buf) + { + return new test.ExcelFromJson(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly string S1; + public readonly string S2; + public readonly long T1; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly int[] K1; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -1485706483; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "t1:" + T1 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..cd6a7dea --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ExcelFromJsonMultiRow.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; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJsonMultiRow : Luban.BeanBase +{ + public ExcelFromJsonMultiRow(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Items = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.TestRow _e0; _e0 = test.TestRow.DeserializeTestRow(_buf); Items.Add(_e0);}} + } + + public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(ByteBuf _buf) + { + return new test.ExcelFromJsonMultiRow(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 715335694; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Foo.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Foo.cs new file mode 100644 index 00000000..e8c77c95 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Foo.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; + + +namespace cfg.test +{ +public sealed partial class Foo : Luban.BeanBase +{ + public Foo(ByteBuf _buf) + { + Y1 = _buf.ReadInt(); + Y2 = _buf.ReadInt(); + Y3 = _buf.ReadInt(); + } + + public static Foo DeserializeFoo(ByteBuf _buf) + { + return new test.Foo(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + + public const int __ID__ = -1147950774; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.H1.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.H1.cs new file mode 100644 index 00000000..2ba58bbb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.H1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class H1 : Luban.BeanBase +{ + public H1(ByteBuf _buf) + { + Y2 = test.H2.DeserializeH2(_buf); + Y3 = _buf.ReadInt(); + } + + public static H1 DeserializeH1(ByteBuf _buf) + { + return new test.H1(_buf); + } + + public readonly test.H2 Y2; + public readonly int Y3; + + public const int __ID__ = -1422503995; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Y2?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.H2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.H2.cs new file mode 100644 index 00000000..7f30eedc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.H2.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class H2 : Luban.BeanBase +{ + public H2(ByteBuf _buf) + { + Z2 = _buf.ReadInt(); + Z3 = _buf.ReadInt(); + } + + public static H2 DeserializeH2(ByteBuf _buf) + { + return new test.H2(_buf); + } + + public readonly int Z2; + public readonly int Z3; + + public const int __ID__ = -1422503994; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "z2:" + Z2 + "," + + "z3:" + Z3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.InnerGroup.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..4058a25f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.InnerGroup.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; + + +namespace cfg.test +{ +public sealed partial class InnerGroup : Luban.BeanBase +{ + public InnerGroup(ByteBuf _buf) + { + Y1 = _buf.ReadInt(); + Y3 = _buf.ReadInt(); + Y4 = _buf.ReadInt(); + } + + public static InnerGroup DeserializeInnerGroup(ByteBuf _buf) + { + return new test.InnerGroup(_buf); + } + + public readonly int Y1; + public readonly int Y3; + public readonly int Y4; + + public const int __ID__ = -587873083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y3:" + Y3 + "," + + "y4:" + Y4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Item.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Item.cs new file mode 100644 index 00000000..e52bbbf0 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Item.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; + + +namespace cfg.test +{ +public sealed partial class Item : test.ItemBase +{ + public Item(ByteBuf _buf) : base(_buf) + { + Num = _buf.ReadInt(); + Price = _buf.ReadInt(); + } + + public static Item DeserializeItem(ByteBuf _buf) + { + return new test.Item(_buf); + } + + public readonly int Num; + public readonly int Price; + + public const int __ID__ = -1226641649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "num:" + Num + "," + + "price:" + Price + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ItemBase.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ItemBase.cs new file mode 100644 index 00000000..f09e8c03 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.ItemBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public abstract partial class ItemBase : Luban.BeanBase +{ + public ItemBase(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + } + + public static ItemBase DeserializeItemBase(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.Item.__ID__: return new test.Item(_buf); + case test.Equipment.__ID__: return new test.Equipment(_buf); + case test.Decorator.__ID__: return new test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + + + public virtual void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiIndexList.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..74b497f3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiIndexList.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiIndexList : Luban.BeanBase +{ + public MultiIndexList(ByteBuf _buf) + { + Id1 = _buf.ReadInt(); + Id2 = _buf.ReadLong(); + Id3 = _buf.ReadString(); + Num = _buf.ReadInt(); + Desc = _buf.ReadString(); + } + + public static MultiIndexList DeserializeMultiIndexList(ByteBuf _buf) + { + return new test.MultiIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 2016237651; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..736ba4bf --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowRecord.cs @@ -0,0 +1,77 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowRecord : Luban.BeanBase +{ + public MultiRowRecord(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);OneRows = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); OneRows.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); MultiRows1.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows2 = new test.MultiRowType1[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.MultiRowType1 __e0;__e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); MultiRows2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(_buf); MultiRows4.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows5 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType3 _e0; _e0 = test.MultiRowType3.DeserializeMultiRowType3(_buf); MultiRows5.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows6 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(_buf); MultiRows6.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows7 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); MultiRows7.Add(_k0, _v0);}} + } + + public static MultiRowRecord DeserializeMultiRowRecord(ByteBuf _buf) + { + return new test.MultiRowRecord(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly System.Collections.Generic.List OneRows; + public readonly System.Collections.Generic.List MultiRows1; + public readonly test.MultiRowType1[] MultiRows2; + public readonly System.Collections.Generic.Dictionary MultiRows4; + public readonly System.Collections.Generic.List MultiRows5; + public readonly System.Collections.Generic.Dictionary MultiRows6; + public readonly System.Collections.Generic.Dictionary MultiRows7; + + public const int __ID__ = -501249394; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in OneRows) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows1) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows2) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows4.Values) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows5) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows6.Values) { _e?.ResolveRef(tables); } + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "oneRows:" + Luban.StringUtil.CollectionToString(OneRows) + "," + + "multiRows1:" + Luban.StringUtil.CollectionToString(MultiRows1) + "," + + "multiRows2:" + Luban.StringUtil.CollectionToString(MultiRows2) + "," + + "multiRows4:" + Luban.StringUtil.CollectionToString(MultiRows4) + "," + + "multiRows5:" + Luban.StringUtil.CollectionToString(MultiRows5) + "," + + "multiRows6:" + Luban.StringUtil.CollectionToString(MultiRows6) + "," + + "multiRows7:" + Luban.StringUtil.CollectionToString(MultiRows7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..844a4550 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowTitle.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowTitle : Luban.BeanBase +{ + public MultiRowTitle(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + X1 = test.H1.DeserializeH1(_buf); + if(_buf.ReadBool()){ X20 = test.H2.DeserializeH2(_buf); } else { X20 = null; } + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.H2 _e0; _e0 = test.H2.DeserializeH2(_buf); X2.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new test.H2[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.H2 __e0;__e0 = test.H2.DeserializeH2(_buf); X3[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new test.H2[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.H2 __e0;__e0 = test.H2.DeserializeH2(_buf); X4[__index0] = __e0;}} + } + + public static MultiRowTitle DeserializeMultiRowTitle(ByteBuf _buf) + { + return new test.MultiRowTitle(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.H1 X1; + public readonly test.H2 X20; + public readonly System.Collections.Generic.List X2; + public readonly test.H2[] X3; + public readonly test.H2[] X4; + + public const int __ID__ = 540002427; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + X1?.ResolveRef(tables); + X20?.ResolveRef(tables); + foreach (var _e in X2) { _e?.ResolveRef(tables); } + foreach (var _e in X3) { _e?.ResolveRef(tables); } + foreach (var _e in X4) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "x1:" + X1 + "," + + "x20:" + X20 + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType1.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..ab7dee91 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowType1 : Luban.BeanBase +{ + public MultiRowType1(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + } + + public static MultiRowType1 DeserializeMultiRowType1(ByteBuf _buf) + { + return new test.MultiRowType1(_buf); + } + + public readonly int Id; + public readonly int X; + + public const int __ID__ = 540474970; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..d588d421 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType2.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; + + +namespace cfg.test +{ +public sealed partial class MultiRowType2 : Luban.BeanBase +{ + public MultiRowType2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + Y = _buf.ReadFloat(); + } + + public static MultiRowType2 DeserializeMultiRowType2(ByteBuf _buf) + { + return new test.MultiRowType2(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly float Y; + + public const int __ID__ = 540474971; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType3.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..b8e221ca --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiRowType3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowType3 : Luban.BeanBase +{ + public MultiRowType3(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Items = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); Items.Add(_e0);}} + } + + public static MultiRowType3 DeserializeMultiRowType3(ByteBuf _buf) + { + return new test.MultiRowType3(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 540474972; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..5b570bd3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiUnionIndexList : Luban.BeanBase +{ + public MultiUnionIndexList(ByteBuf _buf) + { + Id1 = _buf.ReadInt(); + Id2 = _buf.ReadLong(); + Id3 = _buf.ReadString(); + Num = _buf.ReadInt(); + Desc = _buf.ReadString(); + } + + public static MultiUnionIndexList DeserializeMultiUnionIndexList(ByteBuf _buf) + { + return new test.MultiUnionIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 1966847134; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.NotIndexList.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..5cb96e6f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.NotIndexList.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class NotIndexList : Luban.BeanBase +{ + public NotIndexList(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static NotIndexList DeserializeNotIndexList(ByteBuf _buf) + { + return new test.NotIndexList(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = -50446599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.RefBean.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.RefBean.cs new file mode 100644 index 00000000..d90d1d83 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.RefBean.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; + + +namespace cfg.test +{ +public sealed partial class RefBean : test.RefDynamicBase +{ + public RefBean(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Arr = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); Arr.Add(_e0);}} + } + + public static RefBean DeserializeRefBean(ByteBuf _buf) + { + return new test.RefBean(_buf); + } + + public readonly System.Collections.Generic.List Arr; + + public const int __ID__ = 1963260263; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "arr:" + Luban.StringUtil.CollectionToString(Arr) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..f15d6f28 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.RefDynamicBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public abstract partial class RefDynamicBase : Luban.BeanBase +{ + public RefDynamicBase(ByteBuf _buf) + { + X = _buf.ReadInt(); + X_Ref = null; + } + + public static RefDynamicBase DeserializeRefDynamicBase(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.RefBean.__ID__: return new test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X; + public test.TestBeRef X_Ref; + + + public virtual void ResolveRef(Tables tables) + { + X_Ref = tables.TbTestBeRef.GetOrDefault(X); + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Shape.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Shape.cs new file mode 100644 index 00000000..6603e30d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Shape.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public abstract partial class Shape : Luban.BeanBase +{ + public Shape(ByteBuf _buf) + { + } + + public static Shape DeserializeShape(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.Circle.__ID__: return new test.Circle(_buf); + case test2.Rectangle.__ID__: return new test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable1.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable1.cs new file mode 100644 index 00000000..fb67de27 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable1.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable1 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable1(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.CompositeJsonTable1 _v; + _v = test.CompositeJsonTable1.DeserializeCompositeJsonTable1(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable1 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable1 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable1 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable2.cs new file mode 100644 index 00000000..184d075d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable2.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.CompositeJsonTable2 _v; + _v = test.CompositeJsonTable2.DeserializeCompositeJsonTable2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable2 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable3.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable3.cs new file mode 100644 index 00000000..c49db89d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbCompositeJsonTable3.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable3 +{ + + private readonly test.CompositeJsonTable3 _data; + + public TbCompositeJsonTable3(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(_buf); + } + + + public int A => _data.A; + public int B => _data.B; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDataFromMisc.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDataFromMisc.cs new file mode 100644 index 00000000..8eb49cab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDataFromMisc.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDataFromMisc +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDataFromMisc(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDefineFromExcel2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDefineFromExcel2.cs new file mode 100644 index 00000000..12db36bf --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDefineFromExcel2.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDefineFromExcel2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDefineFromExcel2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + DefineFromExcel2 _v; + _v = DefineFromExcel2.DeserializeDefineFromExcel2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public DefineFromExcel2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public DefineFromExcel2 Get(int key) => _dataMap[key]; + public DefineFromExcel2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoGroup.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoGroup.cs new file mode 100644 index 00000000..420f8c9f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoGroup.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoGroup +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoGroup_S.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoGroup_S.cs new file mode 100644 index 00000000..6bf79a1f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoGroup_S.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoGroup_S +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup_S(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoPrimitive.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoPrimitive.cs new file mode 100644 index 00000000..a028209a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDemoPrimitive.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoPrimitive +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoPrimitive(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoPrimitiveTypesTable _v; + _v = test.DemoPrimitiveTypesTable.DeserializeDemoPrimitiveTypesTable(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoPrimitiveTypesTable GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoPrimitiveTypesTable Get(int key) => _dataMap[key]; + public test.DemoPrimitiveTypesTable this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDetectCsvEncoding.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDetectCsvEncoding.cs new file mode 100644 index 00000000..d54332fc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbDetectCsvEncoding.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDetectCsvEncoding +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDetectCsvEncoding(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DetectEncoding _v; + _v = test.DetectEncoding.DeserializeDetectEncoding(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DetectEncoding GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DetectEncoding Get(int key) => _dataMap[key]; + public test.DetectEncoding this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbExcelFromJson.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbExcelFromJson.cs new file mode 100644 index 00000000..05355ac3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbExcelFromJson.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbExcelFromJson +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJson(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.ExcelFromJson _v; + _v = test.ExcelFromJson.DeserializeExcelFromJson(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJson GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJson Get(int key) => _dataMap[key]; + public test.ExcelFromJson this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..f832f2ea --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbExcelFromJsonMultiRow.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbExcelFromJsonMultiRow +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJsonMultiRow(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.ExcelFromJsonMultiRow _v; + _v = test.ExcelFromJsonMultiRow.DeserializeExcelFromJsonMultiRow(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJsonMultiRow GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJsonMultiRow Get(int key) => _dataMap[key]; + public test.ExcelFromJsonMultiRow this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbFullTypes.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbFullTypes.cs new file mode 100644 index 00000000..7afcb59a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbFullTypes.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbFullTypes +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbFullTypes(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbItem2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbItem2.cs new file mode 100644 index 00000000..4324c1c3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbItem2.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; + + +namespace cfg.test +{ +public partial class TbItem2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.ItemBase _v; + _v = test.ItemBase.DeserializeItemBase(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public T GetOrDefaultAs(int key) where T : test.ItemBase => _dataMap.TryGetValue(key, out var v) ? (T)v : null; + public T GetAs(int key) where T : test.ItemBase => (T)_dataMap[key]; + public test.ItemBase GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ItemBase Get(int key) => _dataMap[key]; + public test.ItemBase this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiIndexList.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiIndexList.cs new file mode 100644 index 00000000..37525d59 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiIndexList.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; + + +namespace cfg.test +{ +public partial class TbMultiIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary _dataMap_id1; + private System.Collections.Generic.Dictionary _dataMap_id2; + private System.Collections.Generic.Dictionary _dataMap_id3; + + public TbMultiIndexList(ByteBuf _buf) + { + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiIndexList _v; + _v = test.MultiIndexList.DeserializeMultiIndexList(_buf); + _dataList.Add(_v); + } + _dataMap_id1 = new System.Collections.Generic.Dictionary(); + _dataMap_id2 = new System.Collections.Generic.Dictionary(); + _dataMap_id3 = new System.Collections.Generic.Dictionary(); + foreach(var _v in _dataList) + { + _dataMap_id1.Add(_v.Id1, _v); + _dataMap_id2.Add(_v.Id2, _v); + _dataMap_id3.Add(_v.Id3, _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiIndexList GetById1(int key) => _dataMap_id1.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById2(long key) => _dataMap_id2.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById3(string key) => _dataMap_id3.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiRowRecord.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiRowRecord.cs new file mode 100644 index 00000000..3c587cb4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiRowRecord.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbMultiRowRecord +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowRecord(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiRowRecord _v; + _v = test.MultiRowRecord.DeserializeMultiRowRecord(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowRecord GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowRecord Get(int key) => _dataMap[key]; + public test.MultiRowRecord this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiRowTitle.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiRowTitle.cs new file mode 100644 index 00000000..ba987e67 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiRowTitle.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbMultiRowTitle +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowTitle(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiRowTitle _v; + _v = test.MultiRowTitle.DeserializeMultiRowTitle(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowTitle GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowTitle Get(int key) => _dataMap[key]; + public test.MultiRowTitle this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiUnionIndexList.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiUnionIndexList.cs new file mode 100644 index 00000000..80a0bc90 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbMultiUnionIndexList.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbMultiUnionIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList> _dataMapUnion; + + public TbMultiUnionIndexList(ByteBuf _buf) + { + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiUnionIndexList _v; + _v = test.MultiUnionIndexList.DeserializeMultiUnionIndexList(_buf); + _dataList.Add(_v); + } + _dataMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList>(); + foreach(var _v in _dataList) + { + _dataMapUnion.Add((_v.Id1, _v.Id2, _v.Id3), _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiUnionIndexList Get(int id1, long id2, string id3) => _dataMapUnion.TryGetValue((id1, id2, id3), out test.MultiUnionIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbNotIndexList.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbNotIndexList.cs new file mode 100644 index 00000000..02b05825 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbNotIndexList.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbNotIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + + public TbNotIndexList(ByteBuf _buf) + { + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.NotIndexList _v; + _v = test.NotIndexList.DeserializeNotIndexList(_buf); + _dataList.Add(_v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbSingleton.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbSingleton.cs new file mode 100644 index 00000000..55b36bb4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbSingleton.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbSingleton +{ + + private readonly test.DemoSingletonType _data; + + public TbSingleton(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.DemoSingletonType.DeserializeDemoSingletonType(_buf); + } + + + public int Id => _data.Id; + public string Name => _data.Name; + public test.DemoDynamic Date => _data.Date; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestBeRef.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestBeRef.cs new file mode 100644 index 00000000..a3b9ae59 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestBeRef.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestBeRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestBeRef2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestBeRef2.cs new file mode 100644 index 00000000..767d6300 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestBeRef2.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestBeRef2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestGlobal.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestGlobal.cs new file mode 100644 index 00000000..58392ac4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestGlobal.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestGlobal +{ + + private readonly test.TestGlobal _data; + + public TbTestGlobal(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.TestGlobal.DeserializeTestGlobal(_buf); + } + + + public int UnlockEquip => _data.UnlockEquip; + public int UnlockHero => _data.UnlockHero; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestIndex.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestIndex.cs new file mode 100644 index 00000000..1985a3ec --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestIndex.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestIndex +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestIndex(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestIndex _v; + _v = test.TestIndex.DeserializeTestIndex(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestIndex GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestIndex Get(int key) => _dataMap[key]; + public test.TestIndex this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMap.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMap.cs new file mode 100644 index 00000000..a52aae65 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMap.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestMap +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMap(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestMap _v; + _v = test.TestMap.DeserializeTestMap(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMap GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMap Get(int key) => _dataMap[key]; + public test.TestMap this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMapper.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMapper.cs new file mode 100644 index 00000000..a97f208a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMapper.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestMapper +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMapper(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestMapper _v; + _v = test.TestMapper.DeserializeTestMapper(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMapper GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMapper Get(int key) => _dataMap[key]; + public test.TestMapper this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMultiColumn.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMultiColumn.cs new file mode 100644 index 00000000..f0c1affb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestMultiColumn.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestMultiColumn +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMultiColumn(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestMultiColumn _v; + _v = test.TestMultiColumn.DeserializeTestMultiColumn(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMultiColumn GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMultiColumn Get(int key) => _dataMap[key]; + public test.TestMultiColumn this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestNull.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestNull.cs new file mode 100644 index 00000000..ad63a0f8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestNull.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestNull +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestNull(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestNull _v; + _v = test.TestNull.DeserializeTestNull(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestNull GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestNull Get(int key) => _dataMap[key]; + public test.TestNull this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestRef.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestRef.cs new file mode 100644 index 00000000..f10c3c4f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestRef.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestRef(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestRef _v; + _v = test.TestRef.DeserializeTestRef(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestRef Get(int key) => _dataMap[key]; + public test.TestRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestScriptableObject.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestScriptableObject.cs new file mode 100644 index 00000000..b783f507 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestScriptableObject.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestScriptableObject +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestScriptableObject(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestScriptableObject _v; + _v = test.TestScriptableObject.DeserializeTestScriptableObject(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestScriptableObject GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestScriptableObject Get(int key) => _dataMap[key]; + public test.TestScriptableObject this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestSet.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestSet.cs new file mode 100644 index 00000000..be2b5a67 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestSet.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestSet +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSet(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestSet _v; + _v = test.TestSet.DeserializeTestSet(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSet GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSet Get(int key) => _dataMap[key]; + public test.TestSet this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestSize.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestSize.cs new file mode 100644 index 00000000..d0727883 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestSize.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestSize +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSize(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestSize _v; + _v = test.TestSize.DeserializeTestSize(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSize GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSize Get(int key) => _dataMap[key]; + public test.TestSize this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestString.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestString.cs new file mode 100644 index 00000000..ebce78e0 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TbTestString.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestString +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestString(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestString _v; + _v = test.TestString.DeserializeTestString(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestString GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestString Get(string key) => _dataMap[key]; + public test.TestString this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Test3.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Test3.cs new file mode 100644 index 00000000..8962ba3b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.Test3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class Test3 : Luban.BeanBase +{ + public Test3(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static Test3 DeserializeTest3(ByteBuf _buf) + { + return new test.Test3(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = 638540133; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestBeRef.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..08677e6e --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestBeRef.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestBeRef : Luban.BeanBase +{ + public TestBeRef(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Count = _buf.ReadInt(); + } + + public static TestBeRef DeserializeTestBeRef(ByteBuf _buf) + { + return new test.TestBeRef(_buf); + } + + public readonly int Id; + public readonly int Count; + + public const int __ID__ = 1934403938; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "count:" + Count + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestGlobal.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..616585df --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestGlobal.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestGlobal : Luban.BeanBase +{ + public TestGlobal(ByteBuf _buf) + { + UnlockEquip = _buf.ReadInt(); + UnlockHero = _buf.ReadInt(); + } + + public static TestGlobal DeserializeTestGlobal(ByteBuf _buf) + { + return new test.TestGlobal(_buf); + } + + public readonly int UnlockEquip; + public readonly int UnlockHero; + + public const int __ID__ = -12548655; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "unlockEquip:" + UnlockEquip + "," + + "unlockHero:" + UnlockHero + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestIndex.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestIndex.cs new file mode 100644 index 00000000..a4c2450a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestIndex.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestIndex : Luban.BeanBase +{ + public TestIndex(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Eles = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoType1 _e0; _e0 = test.DemoType1.DeserializeDemoType1(_buf); Eles.Add(_e0);}} + foreach(var _v in Eles) + { + Eles_Index.Add(_v.X1, _v); + } + } + + public static TestIndex DeserializeTestIndex(ByteBuf _buf) + { + return new test.TestIndex(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Eles; + public readonly System.Collections.Generic.Dictionary Eles_Index = new System.Collections.Generic.Dictionary(); + + public const int __ID__ = 1941154020; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Eles) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "eles:" + Luban.StringUtil.CollectionToString(Eles) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMap.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMap.cs new file mode 100644 index 00000000..a3261db2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMap.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestMap : Luban.BeanBase +{ + public TestMap(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Id_Ref = null; + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X1.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { long _k0; _k0 = _buf.ReadLong(); int _v0; _v0 = _buf.ReadInt(); X2.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { string _k0; _k0 = _buf.ReadString(); int _v0; _v0 = _buf.ReadInt(); X3.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoEnum _k0; _k0 = (test.DemoEnum)_buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X4.Add(_k0, _v0);}} + } + + public static TestMap DeserializeTestMap(ByteBuf _buf) + { + return new test.TestMap(_buf); + } + + public readonly int Id; + public test.TestIndex Id_Ref; + public readonly System.Collections.Generic.Dictionary X1; + public readonly System.Collections.Generic.Dictionary X2; + public readonly System.Collections.Generic.Dictionary X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = -543227410; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Id_Ref = tables.TbTestIndex.GetOrDefault(Id); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMapper.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMapper.cs new file mode 100644 index 00000000..d122b451 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMapper.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; + + +namespace cfg.test +{ +public sealed partial class TestMapper : Luban.BeanBase +{ + public TestMapper(ByteBuf _buf) + { + Id = _buf.ReadInt(); + AudioType = (CustomAudioType)_buf.ReadInt(); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf)); + } + + public static TestMapper DeserializeTestMapper(ByteBuf _buf) + { + return new test.TestMapper(_buf); + } + + public readonly int Id; + public readonly CustomAudioType AudioType; + public readonly System.Numerics.Vector2 V2; + + public const int __ID__ = 149110895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "audioType:" + AudioType + "," + + "v2:" + V2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..3606b8ac --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestMultiColumn.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestMultiColumn : Luban.BeanBase +{ + public TestMultiColumn(ByteBuf _buf) + { + Id = _buf.ReadInt(); + A = test.Foo.DeserializeFoo(_buf); + B = test.Foo.DeserializeFoo(_buf); + C = test.Foo.DeserializeFoo(_buf); + } + + public static TestMultiColumn DeserializeTestMultiColumn(ByteBuf _buf) + { + return new test.TestMultiColumn(_buf); + } + + public readonly int Id; + public readonly test.Foo A; + public readonly test.Foo B; + public readonly test.Foo C; + + public const int __ID__ = -294473599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + A?.ResolveRef(tables); + B?.ResolveRef(tables); + C?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "a:" + A + "," + + "b:" + B + "," + + "c:" + C + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestNull.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestNull.cs new file mode 100644 index 00000000..808feb9b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestNull.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestNull : Luban.BeanBase +{ + public TestNull(ByteBuf _buf) + { + Id = _buf.ReadInt(); + if(_buf.ReadBool()){ X1 = _buf.ReadInt(); } else { X1 = null; } + if(_buf.ReadBool()){ X2 = (test.DemoEnum)_buf.ReadInt(); } else { X2 = null; } + if(_buf.ReadBool()){ X3 = test.DemoType1.DeserializeDemoType1(_buf); } else { X3 = null; } + if(_buf.ReadBool()){ X4 = test.DemoDynamic.DeserializeDemoDynamic(_buf); } else { X4 = null; } + if(_buf.ReadBool()){ S1 = _buf.ReadString(); } else { S1 = null; } + if(_buf.ReadBool()){ S2 = _buf.ReadString(); } else { S2 = null; } + } + + public static TestNull DeserializeTestNull(ByteBuf _buf) + { + return new test.TestNull(_buf); + } + + public readonly int Id; + public readonly int? X1; + public readonly test.DemoEnum? X2; + public readonly test.DemoType1 X3; + public readonly test.DemoDynamic X4; + public readonly string S1; + public readonly string S2; + + public const int __ID__ = 339868469; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + X3?.ResolveRef(tables); + X4?.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestRef.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestRef.cs new file mode 100644 index 00000000..0d46c9c5 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestRef.cs @@ -0,0 +1,131 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestRef : Luban.BeanBase +{ + public TestRef(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadInt(); + X1_Ref = null; + X12 = _buf.ReadInt(); + X12_Ref = null; + X2 = _buf.ReadInt(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadInt(); + X4_Ref = null; + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);A1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); A1[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);A2 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); A2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);C1 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); C1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);C2 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); C2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);D1 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); D1.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);D2 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); D2.Add(_k0, _v0);}} + E1 = _buf.ReadInt(); + E2 = _buf.ReadLong(); + E3 = _buf.ReadString(); + F1 = _buf.ReadInt(); + F2 = _buf.ReadLong(); + F3 = _buf.ReadString(); + S1 = test.RefDynamicBase.DeserializeRefDynamicBase(_buf); + } + + public static TestRef DeserializeTestRef(ByteBuf _buf) + { + return new test.TestRef(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.TestBeRef X1_Ref; + public readonly int X12; + public test.TestBeRef X12_Ref; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public tag.TestTag X4_Ref; + public readonly int[] A1; + public readonly int[] A2; + public readonly System.Collections.Generic.List B1; + public readonly System.Collections.Generic.List B2; + public readonly System.Collections.Generic.HashSet C1; + public readonly System.Collections.Generic.HashSet C2; + public readonly System.Collections.Generic.Dictionary D1; + public readonly System.Collections.Generic.Dictionary D2; + public readonly int E1; + public readonly long E2; + public readonly string E3; + public readonly int F1; + public readonly long F2; + public readonly string F3; + public readonly test.RefDynamicBase S1; + + public const int __ID__ = -543222491; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbTestBeRef.GetOrDefault(X1); + X12_Ref = tables.TbTestBeRef.GetOrDefault(X12); + + + X4_Ref = tables.TbTestTag.GetOrDefault(X4); + + + + + + + + + + + + + + + S1?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x12:" + X12 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "a1:" + Luban.StringUtil.CollectionToString(A1) + "," + + "a2:" + Luban.StringUtil.CollectionToString(A2) + "," + + "b1:" + Luban.StringUtil.CollectionToString(B1) + "," + + "b2:" + Luban.StringUtil.CollectionToString(B2) + "," + + "c1:" + Luban.StringUtil.CollectionToString(C1) + "," + + "c2:" + Luban.StringUtil.CollectionToString(C2) + "," + + "d1:" + Luban.StringUtil.CollectionToString(D1) + "," + + "d2:" + Luban.StringUtil.CollectionToString(D2) + "," + + "e1:" + E1 + "," + + "e2:" + E2 + "," + + "e3:" + E3 + "," + + "f1:" + F1 + "," + + "f2:" + F2 + "," + + "f3:" + F3 + "," + + "s1:" + S1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestRow.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestRow.cs new file mode 100644 index 00000000..27110fef --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestRow.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestRow : Luban.BeanBase +{ + public TestRow(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadBool(); + Z = _buf.ReadString(); + A = test.Test3.DeserializeTest3(_buf); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B.Add(_e0);}} + } + + public static TestRow DeserializeTestRow(ByteBuf _buf) + { + return new test.TestRow(_buf); + } + + public readonly int X; + public readonly bool Y; + public readonly string Z; + public readonly test.Test3 A; + public readonly System.Collections.Generic.List B; + + public const int __ID__ = -543222164; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + A?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "a:" + A + "," + + "b:" + Luban.StringUtil.CollectionToString(B) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..6e981c9c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestScriptableObject.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestScriptableObject : Luban.BeanBase +{ + public TestScriptableObject(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Desc = _buf.ReadString(); + Rate = _buf.ReadFloat(); + Num = _buf.ReadInt(); + V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf)); + V3 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf)); + V4 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf)); + } + + public static TestScriptableObject DeserializeTestScriptableObject(ByteBuf _buf) + { + return new test.TestScriptableObject(_buf); + } + + public readonly int Id; + public readonly string Desc; + public readonly float Rate; + public readonly int Num; + public readonly System.Numerics.Vector2 V2; + public readonly System.Numerics.Vector3 V3; + public readonly System.Numerics.Vector4 V4; + + public const int __ID__ = -1896814350; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "desc:" + Desc + "," + + "rate:" + Rate + "," + + "num:" + Num + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestSet.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestSet.cs new file mode 100644 index 00000000..1c40d35d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestSet.cs @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestSet : Luban.BeanBase +{ + public TestSet(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X0 = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { long _e0; _e0 = _buf.ReadLong(); X2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { string _e0; _e0 = _buf.ReadString(); X3.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoEnum _e0; _e0 = (test.DemoEnum)_buf.ReadInt(); X4.Add(_e0);}} + } + + public static TestSet DeserializeTestSet(ByteBuf _buf) + { + return new test.TestSet(_buf); + } + + public readonly int Id; + public readonly string X0; + public readonly System.Collections.Generic.List X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.List X3; + public readonly System.Collections.Generic.List X4; + + public const int __ID__ = -543221516; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x0:" + X0 + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestSize.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestSize.cs new file mode 100644 index 00000000..c339ff2e --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestSize.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestSize : Luban.BeanBase +{ + public TestSize(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); X1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X3.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X4.Add(_k0, _v0);}} + } + + public static TestSize DeserializeTestSize(ByteBuf _buf) + { + return new test.TestSize(_buf); + } + + public readonly int Id; + public readonly int[] X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.HashSet X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = 340006319; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestString.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestString.cs new file mode 100644 index 00000000..4b159160 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.TestString.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestString : Luban.BeanBase +{ + public TestString(ByteBuf _buf) + { + Id = _buf.ReadString(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + Cs1 = test.CompactString.DeserializeCompactString(_buf); + Cs2 = test.CompactString.DeserializeCompactString(_buf); + } + + public static TestString DeserializeTestString(ByteBuf _buf) + { + return new test.TestString(_buf); + } + + public readonly string Id; + public readonly string S1; + public readonly string S2; + public readonly test.CompactString Cs1; + public readonly test.CompactString Cs2; + + public const int __ID__ = 338485823; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + Cs1?.ResolveRef(tables); + Cs2?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "cs1:" + Cs1 + "," + + "cs2:" + Cs2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..03688784 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test.login.RoleInfo.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test.login +{ +public sealed partial class RoleInfo : test.DemoD3 +{ + public RoleInfo(ByteBuf _buf) : base(_buf) + { + RoleId = _buf.ReadLong(); + } + + public static RoleInfo DeserializeRoleInfo(ByteBuf _buf) + { + return new test.login.RoleInfo(_buf); + } + + public readonly long RoleId; + + public const int __ID__ = -989153243; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "roleId:" + RoleId + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Gen/test2.Rectangle.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..16ae24c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/test2.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; + + +namespace cfg.test2 +{ +/// +/// 矩形 +/// +public sealed partial class Rectangle : test.Shape +{ + public Rectangle(ByteBuf _buf) : base(_buf) + { + Width = _buf.ReadFloat(); + Height = _buf.ReadFloat(); + } + + public static Rectangle DeserializeRectangle(ByteBuf _buf) + { + return new test2.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = 694982337; + 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/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec2.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec2.cs new file mode 100644 index 00000000..b4d06c81 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec2.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; + + +namespace cfg +{ +public partial struct vec2 +{ + public vec2(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + } + + public static vec2 Deserializevec2(ByteBuf _buf) + { + return new vec2(_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/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec3.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec3.cs new file mode 100644 index 00000000..6b3392b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec3.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg +{ +public partial struct vec3 +{ + public vec3(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + Z = _buf.ReadFloat(); + } + + public static vec3 Deserializevec3(ByteBuf _buf) + { + return new vec3(_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/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec4.cs b/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec4.cs new file mode 100644 index 00000000..3e92e00c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Gen/vec4.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; + + +namespace cfg +{ +public partial struct vec4 +{ + public vec4(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + Z = _buf.ReadFloat(); + W = _buf.ReadFloat(); + } + + public static vec4 Deserializevec4(ByteBuf _buf) + { + return new vec4(_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/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/BeanBase.cs b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/BeanBase.cs new file mode 100644 index 00000000..dcc5b16d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/BeanBase.cs @@ -0,0 +1,8 @@ + +namespace Luban +{ + public abstract class BeanBase : ITypeId + { + public abstract int GetTypeId(); + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/BeanBase.cs.meta b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/BeanBase.cs.meta new file mode 100644 index 00000000..e08a56d0 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/BeanBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2a1978c3ede87404e99b5429f92b2eb9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ByteBuf.cs b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ByteBuf.cs new file mode 100644 index 00000000..54b56b13 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ByteBuf.cs @@ -0,0 +1,1568 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Text; + +namespace Luban +{ + + public enum EDeserializeError + { + OK, + NOT_ENOUGH, + EXCEED_SIZE, + // UNMARSHAL_ERR, + } + + public class SerializationException : Exception + { + public SerializationException() { } + public SerializationException(string msg) : base(msg) { } + + public SerializationException(string message, Exception innerException) : base(message, innerException) + { + } + } + + public readonly struct SegmentSaveState + { + public SegmentSaveState(int readerIndex, int writerIndex) + { + ReaderIndex = readerIndex; + WriterIndex = writerIndex; + } + + public int ReaderIndex { get; } + + public int WriterIndex { get; } + } + + public sealed class ByteBuf : ICloneable, IEquatable + { + public ByteBuf() + { + Bytes = Array.Empty(); + ReaderIndex = WriterIndex = 0; + } + + public ByteBuf(int capacity) + { + Bytes = capacity > 0 ? new byte[capacity] : Array.Empty(); + ReaderIndex = 0; + WriterIndex = 0; + } + + public ByteBuf(byte[] bytes) + { + Bytes = bytes; + ReaderIndex = 0; + WriterIndex = Capacity; + } + + public ByteBuf(byte[] bytes, int readIndex, int writeIndex) + { + Bytes = bytes; + ReaderIndex = readIndex; + WriterIndex = writeIndex; + } + + public ByteBuf(int capacity, Action releaser) : this(capacity) + { + _releaser = releaser; + } + + public static ByteBuf Wrap(byte[] bytes) + { + return new ByteBuf(bytes, 0, bytes.Length); + } + + public void Replace(byte[] bytes) + { + Bytes = bytes; + ReaderIndex = 0; + WriterIndex = Capacity; + } + + public void Replace(byte[] bytes, int beginPos, int endPos) + { + Bytes = bytes; + ReaderIndex = beginPos; + WriterIndex = endPos; + } + + public int ReaderIndex { get; set; } + + public int WriterIndex { get; set; } + + private readonly Action _releaser; + + public int Capacity => Bytes.Length; + + public int Size { get { return WriterIndex - ReaderIndex; } } + + public bool Empty => WriterIndex <= ReaderIndex; + + public bool NotEmpty => WriterIndex > ReaderIndex; + + + public void AddWriteIndex(int add) + { + WriterIndex += add; + } + + public void AddReadIndex(int add) + { + ReaderIndex += add; + } + +#pragma warning disable CA1819 // 属性不应返回数组 + public byte[] Bytes { get; private set; } +#pragma warning restore CA1819 // 属性不应返回数组 + + public byte[] CopyData() + { + var n = Remaining; + if (n > 0) + { + var arr = new byte[n]; + Buffer.BlockCopy(Bytes, ReaderIndex, arr, 0, n); + return arr; + } + else + { + return Array.Empty(); + } + } + + public int Remaining { get { return WriterIndex - ReaderIndex; } } + + public void DiscardReadBytes() + { + WriterIndex -= ReaderIndex; + Array.Copy(Bytes, ReaderIndex, Bytes, 0, WriterIndex); + ReaderIndex = 0; + } + + public int NotCompactWritable { get { return Capacity - WriterIndex; } } + + public void WriteBytesWithoutSize(byte[] bs) + { + WriteBytesWithoutSize(bs, 0, bs.Length); + } + + public void WriteBytesWithoutSize(byte[] bs, int offset, int len) + { + EnsureWrite(len); + Buffer.BlockCopy(bs, offset, Bytes, WriterIndex, len); + WriterIndex += len; + } + + public void Clear() + { + ReaderIndex = WriterIndex = 0; + } + + private const int MIN_CAPACITY = 16; + + private static int PropSize(int initSize, int needSize) + { + for (int i = Math.Max(initSize, MIN_CAPACITY); ; i <<= 1) + { + if (i >= needSize) + { + return i; + } + } + } + + private void EnsureWrite0(int size) + { + var needSize = WriterIndex + size - ReaderIndex; + if (needSize < Capacity) + { + WriterIndex -= ReaderIndex; + Array.Copy(Bytes, ReaderIndex, Bytes, 0, WriterIndex); + ReaderIndex = 0; + } + else + { + int newCapacity = PropSize(Capacity, needSize); + var newBytes = new byte[newCapacity]; + WriterIndex -= ReaderIndex; + Buffer.BlockCopy(Bytes, ReaderIndex, newBytes, 0, WriterIndex); + ReaderIndex = 0; + Bytes = newBytes; + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void EnsureWrite(int size) + { + if (WriterIndex + size > Capacity) + { + EnsureWrite0(size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private void EnsureRead(int size) + { + if (ReaderIndex + size > WriterIndex) + { + throw new SerializationException(); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private bool CanRead(int size) + { + return (ReaderIndex + size <= WriterIndex); + } + + public void Append(byte x) + { + EnsureWrite(1); + Bytes[WriterIndex++] = x; + } + + public void WriteBool(bool b) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)(b ? 1 : 0); + } + + public bool ReadBool() + { + EnsureRead(1); + return Bytes[ReaderIndex++] != 0; + } + + public void WriteByte(byte x) + { + EnsureWrite(1); + Bytes[WriterIndex++] = x; + } + + public byte ReadByte() + { + EnsureRead(1); + return Bytes[ReaderIndex++]; + } + + + public void WriteShort(short x) + { + if (x >= 0) + { + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + return; + } + else if (x < 0x4000) + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + return; + } + } + EnsureWrite(3); + Bytes[WriterIndex] = 0xff; + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + WriterIndex += 3; + } + + public short ReadShort() + { + EnsureRead(1); + int h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return (short)h; + } + else if (h < 0xc0) + { + EnsureRead(2); + int x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return (short)x; + } + else if ((h == 0xff)) + { + EnsureRead(3); + int x = (Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return (short)x; + } + else + { + throw new SerializationException(); + } + } + + public short ReadFshort() + { + EnsureRead(2); + short x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(short*)b; + } + } +#else + x = (short)((Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex]); + +#endif + ReaderIndex += 2; + return x; + } + + public void WriteFshort(short x) + { + EnsureWrite(2); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(short*)b = x; + } + } +#else + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); +#endif + WriterIndex += 2; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void WriteInt(int x) + { + WriteUint((uint)x); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int ReadInt() + { + return (int)ReadUint(); + } + + + public void WriteUint(uint x) + { + // 如果有修改,记得也把 EndWriteSegment改了 + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex] = (byte)((x >> 16) | 0xc0); + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + Bytes[WriterIndex + 3] = (byte)x; + Bytes[WriterIndex + 2] = (byte)(x >> 8); + Bytes[WriterIndex + 1] = (byte)(x >> 16); + Bytes[WriterIndex] = (byte)((x >> 24) | 0xe0); + WriterIndex += 4; + } + else + { + EnsureWrite(5); + Bytes[WriterIndex] = 0xf0; + Bytes[WriterIndex + 4] = (byte)x; + Bytes[WriterIndex + 3] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 1] = (byte)(x >> 24); + WriterIndex += 5; + } + } + + public uint ReadUint() + { + /// + /// 警告! 如有修改,记得调整 TryDeserializeInplaceOctets + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return h; + } + else if (h < 0xc0) + { + EnsureRead(2); + uint x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return x; + } + else if (h < 0xe0) + { + EnsureRead(3); + uint x = ((h & 0x1f) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return x; + } + else if (h < 0xf0) + { + + EnsureRead(4); + uint x = ((h & 0x0f) << 24) | ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + return x; + } + else + { + EnsureRead(5); + uint x = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)(Bytes[ReaderIndex + 2] << 16)) | ((uint)Bytes[ReaderIndex + 3] << 8) | Bytes[ReaderIndex + 4]; + ReaderIndex += 5; + return x; + } + } + + public unsafe void WriteUint_Unsafe(uint x) + { + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)(x << 1); + } + else if (x < 0x4000)// 10 11 1111, - + { + EnsureWrite(2); + + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 2 | 0b01); + } + + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 3 | 0b011); + } + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 4 | 0b0111); + } + WriterIndex += 4; + } + else + { + EnsureWrite(5); + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 5 | 0b01111); + } + WriterIndex += 5; + } + } + + public unsafe uint ReadUint_Unsafe() + { + /// + /// 警告! 如有修改,记得调整 TryDeserializeInplaceOctets + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if ((h & 0b1) == 0b0) + { + ReaderIndex++; + return (h >> 1); + } + else if ((h & 0b11) == 0b01) + { + EnsureRead(2); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 2; + return (*(uint*)rb) >> 2; + } + } + else if ((h & 0b111) == 0b011) + { + EnsureRead(3); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 3; + return (*(uint*)rb) >> 3; + } + } + else if ((h & 0b1111) == 0b0111) + { + EnsureRead(4); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 4; + return (*(uint*)rb) >> 4; + } + } + else + { + EnsureRead(5); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 5; + return (*(uint*)rb) >> 5; + } + } + } + + public int ReadFint() + { + EnsureRead(4); + int x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(int*)b; + } + } +#else + x = (Bytes[ReaderIndex + 3] << 24) | (Bytes[ReaderIndex + 2] << 16) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + +#endif + ReaderIndex += 4; + return x; + } + + + public void WriteFint(int x) + { + EnsureWrite(4); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(int*)b = x; + } + } +#else + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); +#endif + WriterIndex += 4; + } + + public int ReadFint_Safe() + { + EnsureRead(4); + int x; + + x = (Bytes[ReaderIndex + 3] << 24) | (Bytes[ReaderIndex + 2] << 16) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + + ReaderIndex += 4; + return x; + } + + + public void WriteFint_Safe(int x) + { + EnsureWrite(4); + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + WriterIndex += 4; + } + + public void WriteLong(long x) + { + WriteUlong((ulong)x); + } + + public long ReadLong() + { + return (long)ReadUlong(); + } + + public void WriteNumberAsLong(double x) + { + WriteLong((long)x); + } + + public double ReadLongAsNumber() + { + return ReadLong(); + } + + private void WriteUlong(ulong x) + { + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex] = (byte)((x >> 16) | 0xc0); + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + Bytes[WriterIndex + 3] = (byte)x; + Bytes[WriterIndex + 2] = (byte)(x >> 8); + Bytes[WriterIndex + 1] = (byte)(x >> 16); + Bytes[WriterIndex] = (byte)((x >> 24) | 0xe0); + WriterIndex += 4; + } + else if (x < 0x800000000L) // 1111 0xxx,-,-,-,- + { + EnsureWrite(5); + Bytes[WriterIndex + 4] = (byte)x; + Bytes[WriterIndex + 3] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 1] = (byte)(x >> 24); + Bytes[WriterIndex] = (byte)((x >> 32) | 0xf0); + WriterIndex += 5; + } + else if (x < 0x40000000000L) // 1111 10xx, + { + EnsureWrite(6); + Bytes[WriterIndex + 5] = (byte)x; + Bytes[WriterIndex + 4] = (byte)(x >> 8); + Bytes[WriterIndex + 3] = (byte)(x >> 16); + Bytes[WriterIndex + 2] = (byte)(x >> 24); + Bytes[WriterIndex + 1] = (byte)(x >> 32); + Bytes[WriterIndex] = (byte)((x >> 40) | 0xf8); + WriterIndex += 6; + } + else if (x < 0x200000000000L) // 1111 110x, + { + EnsureWrite(7); + Bytes[WriterIndex + 6] = (byte)x; + Bytes[WriterIndex + 5] = (byte)(x >> 8); + Bytes[WriterIndex + 4] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + Bytes[WriterIndex + 2] = (byte)(x >> 32); + Bytes[WriterIndex + 1] = (byte)(x >> 40); + Bytes[WriterIndex] = (byte)((x >> 48) | 0xfc); + WriterIndex += 7; + } + else if (x < 0x100000000000000L) // 1111 1110 + { + EnsureWrite(8); + Bytes[WriterIndex + 7] = (byte)x; + Bytes[WriterIndex + 6] = (byte)(x >> 8); + Bytes[WriterIndex + 5] = (byte)(x >> 16); + Bytes[WriterIndex + 4] = (byte)(x >> 24); + Bytes[WriterIndex + 3] = (byte)(x >> 32); + Bytes[WriterIndex + 2] = (byte)(x >> 40); + Bytes[WriterIndex + 1] = (byte)(x >> 48); + Bytes[WriterIndex] = 0xfe; + WriterIndex += 8; + } + else // 1111 1111 + { + EnsureWrite(9); + Bytes[WriterIndex] = 0xff; + Bytes[WriterIndex + 8] = (byte)x; + Bytes[WriterIndex + 7] = (byte)(x >> 8); + Bytes[WriterIndex + 6] = (byte)(x >> 16); + Bytes[WriterIndex + 5] = (byte)(x >> 24); + Bytes[WriterIndex + 4] = (byte)(x >> 32); + Bytes[WriterIndex + 3] = (byte)(x >> 40); + Bytes[WriterIndex + 2] = (byte)(x >> 48); + Bytes[WriterIndex + 1] = (byte)(x >> 56); + WriterIndex += 9; + } + } + + public ulong ReadUlong() + { + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return h; + } + else if (h < 0xc0) + { + EnsureRead(2); + uint x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return x; + } + else if (h < 0xe0) + { + EnsureRead(3); + uint x = ((h & 0x1f) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return x; + } + else if (h < 0xf0) + { + EnsureRead(4); + uint x = ((h & 0x0f) << 24) | ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + return x; + } + else if (h < 0xf8) + { + EnsureRead(5); + uint xl = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)(Bytes[ReaderIndex + 2] << 16)) | ((uint)Bytes[ReaderIndex + 3] << 8) | (Bytes[ReaderIndex + 4]); + uint xh = h & 0x07; + ReaderIndex += 5; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xfc) + { + EnsureRead(6); + uint xl = ((uint)Bytes[ReaderIndex + 2] << 24) | ((uint)(Bytes[ReaderIndex + 3] << 16)) | ((uint)Bytes[ReaderIndex + 4] << 8) | (Bytes[ReaderIndex + 5]); + uint xh = ((h & 0x03) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 6; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xfe) + { + EnsureRead(7); + uint xl = ((uint)Bytes[ReaderIndex + 3] << 24) | ((uint)(Bytes[ReaderIndex + 4] << 16)) | ((uint)Bytes[ReaderIndex + 5] << 8) | (Bytes[ReaderIndex + 6]); + uint xh = ((h & 0x01) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 7; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xff) + { + EnsureRead(8); + uint xl = ((uint)Bytes[ReaderIndex + 4] << 24) | ((uint)(Bytes[ReaderIndex + 5] << 16)) | ((uint)Bytes[ReaderIndex + 6] << 8) | (Bytes[ReaderIndex + 7]); + uint xh = /*((h & 0x01) << 24) |*/ ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 8; + return ((ulong)xh << 32) | xl; + } + else + { + EnsureRead(9); + uint xl = ((uint)Bytes[ReaderIndex + 5] << 24) | ((uint)(Bytes[ReaderIndex + 6] << 16)) | ((uint)Bytes[ReaderIndex + 7] << 8) | (Bytes[ReaderIndex + 8]); + uint xh = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)Bytes[ReaderIndex + 2] << 16) | ((uint)Bytes[ReaderIndex + 3] << 8) | Bytes[ReaderIndex + 4]; + ReaderIndex += 9; + return ((ulong)xh << 32) | xl; + } + } + + + public void WriteFlong(long x) + { + EnsureWrite(8); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(long*)b = x; + } + } +#else + + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + Bytes[WriterIndex + 4] = (byte)(x >> 32); + Bytes[WriterIndex + 5] = (byte)(x >> 40); + Bytes[WriterIndex + 6] = (byte)(x >> 48); + Bytes[WriterIndex + 7] = (byte)(x >> 56); +#endif + WriterIndex += 8; + } + + public long ReadFlong() + { + EnsureRead(8); + long x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(long*)b; + } + } +#else + int xl = (Bytes[ReaderIndex + 3] << 24) | ((Bytes[ReaderIndex + 2] << 16)) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + int xh = (Bytes[ReaderIndex + 7] << 24) | (Bytes[ReaderIndex + 6] << 16) | (Bytes[ReaderIndex + 5] << 8) | Bytes[ReaderIndex + 4]; + x = ((long)xh << 32) | (long)xl; +#endif + ReaderIndex += 8; + return x; + } + + private static unsafe void Copy8(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + dst[4] = src[4]; + dst[5] = src[5]; + dst[6] = src[6]; + dst[7] = src[7]; + } + + private static unsafe void Copy4(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + } + + + //const bool isLittleEndian = true; + public void WriteFloat(float x) + { + EnsureWrite(4); + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 4 == 0) + { + *(float*)b = x; + } + else + { + Copy4(b, (byte*)&x); + } +#else + *(float*)b = x; +#endif + } + } + + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, endPos, 4); + //} + WriterIndex += 4; + } + + public float ReadFloat() + { + EnsureRead(4); + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, beginPos, 4); + //} + float x; + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 4 == 0) + { + x = *(float*)b; + } + else + { + *((int*)&x) = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24); + } +#else + x = *(float*)b; +#endif + } + } + + ReaderIndex += 4; + return x; + } + + public void WriteDouble(double x) + { + EnsureWrite(8); + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 8 == 0) + { + *(double*)b = x; + } + else + { + Copy8(b, (byte*)&x); + } +#else + *(double*)b = x; +#endif + } + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, endPos, 8); + //} + } + + WriterIndex += 8; + } + + public double ReadDouble() + { + EnsureRead(8); + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, beginPos, 8); + //} + double x; + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 8 == 0) + { + x = *(double*)b; + } + else + { + int low = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24); + int high = (b[4]) | (b[5] << 8) | (b[6] << 16) | (b[7] << 24); + *((long*)&x) = ((long)high << 32) | (uint)low; + } +#else + x = *(double*)b; +#endif + } + } + + ReaderIndex += 8; + return x; + } + + public void WriteSize(int n) + { + WriteUint((uint)n); + } + + public int ReadSize() + { + return (int)ReadUint(); + } + + // marshal int + // n -> (n << 1) ^ (n >> 31) + // Read + // (x >>> 1) ^ ((x << 31) >> 31) + // (x >>> 1) ^ -(n&1) + public void WriteSint(int x) + { + WriteUint(((uint)x << 1) ^ ((uint)x >> 31)); + } + + public int ReadSint() + { + uint x = ReadUint(); + return (int)((x >> 1) ^ ((x & 1) << 31)); + } + + + // marshal long + // n -> (n << 1) ^ (n >> 63) + // Read + // (x >>> 1) ^((x << 63) >> 63) + // (x >>> 1) ^ -(n&1L) + public void WriteSlong(long x) + { + WriteUlong(((ulong)x << 1) ^ ((ulong)x >> 63)); + } + + public long ReadSlong() + { + long x = ReadLong(); + return ((long)((ulong)x >> 1) ^ ((x & 1) << 63)); + } + + public void WriteString(string x) + { + var n = x != null ? Encoding.UTF8.GetByteCount(x) : 0; + WriteSize(n); + if (n > 0) + { + EnsureWrite(n); + Encoding.UTF8.GetBytes(x, 0, x.Length, Bytes, WriterIndex); + WriterIndex += n; + } + } + + // byte[], [start, end) + public static Func StringCacheFinder { get; set; } + + public string ReadString() + { + var n = ReadSize(); + if (n > 0) + { + EnsureRead(n); + string s; + + if (StringCacheFinder == null) + { + s = Encoding.UTF8.GetString(Bytes, ReaderIndex, n); + } + else + { + // 只缓存比较小的字符串 + s = StringCacheFinder(Bytes, ReaderIndex, n); + } + ReaderIndex += n; + return s; + } + else + { + return string.Empty; + } + } + + public void WriteBytes(byte[] x) + { + var n = x != null ? x.Length : 0; + WriteSize(n); + if (n > 0) + { + EnsureWrite(n); + x.CopyTo(Bytes, WriterIndex); + WriterIndex += n; + } + } + + public byte[] ReadBytes() + { + var n = ReadSize(); + if (n > 0) + { + EnsureRead(n); + var x = new byte[n]; + Buffer.BlockCopy(Bytes, ReaderIndex, x, 0, n); + ReaderIndex += n; + return x; + } + else + { + return Array.Empty(); + } + } + + // 以下是一些特殊类型 + + public void WriteComplex(Complex x) + { + WriteDouble(x.Real); + WriteDouble(x.Imaginary); + } + + public Complex ReadComplex() + { + var x = ReadDouble(); + var y = ReadDouble(); + return new Complex(x, y); + } + + public void WriteVector2(Vector2 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + } + + public Vector2 ReadVector2() + { + float x = ReadFloat(); + float y = ReadFloat(); + return new Vector2(x, y); + } + + public void WriteVector3(Vector3 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + } + + public Vector3 ReadVector3() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + return new Vector3(x, y, z); + } + + public void WriteVector4(Vector4 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + WriteFloat(x.W); + } + + public Vector4 ReadVector4() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + float w = ReadFloat(); + return new Vector4(x, y, z, w); + } + + + public void WriteQuaternion(Quaternion x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + WriteFloat(x.W); + } + + public Quaternion ReadQuaternion() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + float w = ReadFloat(); + return new Quaternion(x, y, z, w); + } + + + public void WriteMatrix4x4(Matrix4x4 x) + { + WriteFloat(x.M11); + WriteFloat(x.M12); + WriteFloat(x.M13); + WriteFloat(x.M14); + WriteFloat(x.M21); + WriteFloat(x.M22); + WriteFloat(x.M23); + WriteFloat(x.M24); + WriteFloat(x.M31); + WriteFloat(x.M32); + WriteFloat(x.M33); + WriteFloat(x.M34); + WriteFloat(x.M41); + WriteFloat(x.M42); + WriteFloat(x.M43); + WriteFloat(x.M44); + } + + public Matrix4x4 ReadMatrix4x4() + { + float m11 = ReadFloat(); + float m12 = ReadFloat(); + float m13 = ReadFloat(); + float m14 = ReadFloat(); + float m21 = ReadFloat(); + float m22 = ReadFloat(); + float m23 = ReadFloat(); + float m24 = ReadFloat(); + float m31 = ReadFloat(); + float m32 = ReadFloat(); + float m33 = ReadFloat(); + float m34 = ReadFloat(); + float m41 = ReadFloat(); + float m42 = ReadFloat(); + float m43 = ReadFloat(); + float m44 = ReadFloat(); + return new Matrix4x4(m11, m12, m13, m14, + m21, m22, m23, m24, + m31, m32, m33, m34, + m41, m42, m43, m44); + } + + internal void SkipBytes() + { + int n = ReadSize(); + EnsureRead(n); + ReaderIndex += n; + } + + + public void WriteByteBufWithSize(ByteBuf o) + { + int n = o.Size; + if (n > 0) + { + WriteSize(n); + WriteBytesWithoutSize(o.Bytes, o.ReaderIndex, n); + } + else + { + WriteByte(0); + } + } + + public void WriteByteBufWithoutSize(ByteBuf o) + { + int n = o.Size; + if (n > 0) + { + WriteBytesWithoutSize(o.Bytes, o.ReaderIndex, n); + } + } + + public bool TryReadByte(out byte x) + { + if (CanRead(1)) + { + x = Bytes[ReaderIndex++]; + return true; + } + else + { + x = 0; + return false; + } + } + + public EDeserializeError TryDeserializeInplaceByteBuf(int maxSize, ByteBuf inplaceTempBody) + { + //if (!CanRead(1)) { return EDeserializeError.NOT_ENOUGH; } + int oldReadIndex = ReaderIndex; + bool commit = false; + try + { + int n; + int h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + n = h; + } + else if (h < 0xc0) + { + if (!CanRead(2)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + } + else if (h < 0xe0) + { + if (!CanRead(3)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x1f) << 16) | (Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + } + else if (h < 0xf0) + { + if (!CanRead(4)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x0f) << 24) | (Bytes[ReaderIndex + 1] << 16) | (Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + } + else + { + return EDeserializeError.EXCEED_SIZE; + } + + if (n > maxSize) + { + return EDeserializeError.EXCEED_SIZE; + } + if (Remaining < n) + { + return EDeserializeError.NOT_ENOUGH; + } + + int inplaceReadIndex = ReaderIndex; + ReaderIndex += n; + + inplaceTempBody.Replace(Bytes, inplaceReadIndex, ReaderIndex); + commit = true; + } + finally + { + if (!commit) + { + ReaderIndex = oldReadIndex; + } + } + + return EDeserializeError.OK; + } + + public void WriteRawTag(byte b1) + { + EnsureWrite(1); + Bytes[WriterIndex++] = b1; + } + + public void WriteRawTag(byte b1, byte b2) + { + EnsureWrite(2); + Bytes[WriterIndex] = b1; + Bytes[WriterIndex + 1] = b2; + WriterIndex += 2; + } + + public void WriteRawTag(byte b1, byte b2, byte b3) + { + EnsureWrite(3); + Bytes[WriterIndex] = b1; + Bytes[WriterIndex + 1] = b2; + Bytes[WriterIndex + 2] = b3; + WriterIndex += 3; + } + + #region segment + + + public void BeginWriteSegment(out int oldSize) + { + oldSize = Size; + EnsureWrite(1); + WriterIndex += 1; + } + + public void EndWriteSegment(int oldSize) + { + int startPos = ReaderIndex + oldSize; + int segmentSize = WriterIndex - startPos - 1; + + // 0 111 1111 + if (segmentSize < 0x80) + { + Bytes[startPos] = (byte)segmentSize; + } + else if (segmentSize < 0x4000) // 10 11 1111, - + { + EnsureWrite(1); + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)segmentSize; + + Bytes[startPos] = (byte)((segmentSize >> 8) | 0x80); + WriterIndex += 1; + } + else if (segmentSize < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = Bytes[startPos + 2]; + Bytes[startPos + 2] = (byte)segmentSize; + + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)(segmentSize >> 8); + + Bytes[startPos] = (byte)((segmentSize >> 16) | 0xc0); + WriterIndex += 2; + } + else if (segmentSize < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = Bytes[startPos + 3]; + Bytes[startPos + 3] = (byte)segmentSize; + + Bytes[WriterIndex + 1] = Bytes[startPos + 2]; + Bytes[startPos + 2] = (byte)(segmentSize >> 8); + + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)(segmentSize >> 16); + + Bytes[startPos] = (byte)((segmentSize >> 24) | 0xe0); + WriterIndex += 3; + } + else + { + throw new SerializationException("exceed max segment size"); + } + } + + public void ReadSegment(out int startIndex, out int segmentSize) + { + EnsureRead(1); + int h = Bytes[ReaderIndex++]; + + startIndex = ReaderIndex; + + if (h < 0x80) + { + segmentSize = h; + ReaderIndex += segmentSize; + } + else if (h < 0xc0) + { + EnsureRead(1); + segmentSize = ((h & 0x3f) << 8) | Bytes[ReaderIndex]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + ReaderIndex += segmentSize + 1; + } + else if (h < 0xe0) + { + EnsureRead(2); + segmentSize = ((h & 0x1f) << 16) | ((int)Bytes[ReaderIndex] << 8) | Bytes[ReaderIndex + 1]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + Bytes[ReaderIndex + 1] = Bytes[endPos + 1]; + ReaderIndex += segmentSize + 2; + } + else if (h < 0xf0) + { + EnsureRead(3); + segmentSize = ((h & 0x0f) << 24) | ((int)Bytes[ReaderIndex] << 16) | ((int)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + Bytes[ReaderIndex + 1] = Bytes[endPos + 1]; + Bytes[ReaderIndex + 2] = Bytes[endPos + 2]; + ReaderIndex += segmentSize + 3; + } + else + { + throw new SerializationException("exceed max size"); + } + if (ReaderIndex > WriterIndex) + { + throw new SerializationException("segment data not enough"); + } + } + + public void ReadSegment(ByteBuf buf) + { + ReadSegment(out int startPos, out var size); + buf.Bytes = Bytes; + buf.ReaderIndex = startPos; + buf.WriterIndex = startPos + size; + } + + public void EnterSegment(out SegmentSaveState saveState) + { + ReadSegment(out int startPos, out int size); + + saveState = new SegmentSaveState(ReaderIndex, WriterIndex); + ReaderIndex = startPos; + WriterIndex = startPos + size; + } + + public void LeaveSegment(SegmentSaveState saveState) + { + ReaderIndex = saveState.ReaderIndex; + WriterIndex = saveState.WriterIndex; + } + + #endregion + + public override string ToString() + { + string[] datas = new string[WriterIndex - ReaderIndex]; + for (var i = ReaderIndex; i < WriterIndex; i++) + { + datas[i - ReaderIndex] = Bytes[i].ToString("X2"); + } + return string.Join(".", datas); + } + + public override bool Equals(object obj) + { + return (obj is ByteBuf other) && Equals(other); + } + + public bool Equals(ByteBuf other) + { + if (other == null) + { + return false; + } + if (Size != other.Size) + { + return false; + } + for (int i = 0, n = Size; i < n; i++) + { + if (Bytes[ReaderIndex + i] != other.Bytes[other.ReaderIndex + i]) + { + return false; + } + } + return true; + } + + public object Clone() + { + return new ByteBuf(CopyData()); + } + + + public static ByteBuf FromString(string value) + { + var ss = value.Split(','); + byte[] data = new byte[ss.Length]; + for (int i = 0; i < data.Length; i++) + { + data[i] = byte.Parse(ss[i]); + } + return new ByteBuf(data); + } + + public override int GetHashCode() + { + int hash = 17; + for (int i = ReaderIndex; i < WriterIndex; i++) + { + hash = hash * 23 + Bytes[i]; + } + return hash; + } + + public void Release() + { + _releaser?.Invoke(this); + } + +#if SUPPORT_PUERTS_ARRAYBUF + // -- add for puerts + public Puerts.ArrayBuffer ReadArrayBuffer() + { + return new Puerts.ArrayBuffer(ReadBytes()); + } + + public void WriteArrayBuffer(Puerts.ArrayBuffer bytes) + { + WriteBytes(bytes.Bytes); + } +#endif + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ByteBuf.cs.meta b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ByteBuf.cs.meta new file mode 100644 index 00000000..86e2fd1c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ByteBuf.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 07bfa7e432cf1334ca285411f9c97a9a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ITypeId.cs b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ITypeId.cs new file mode 100644 index 00000000..3ea44b39 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ITypeId.cs @@ -0,0 +1,7 @@ +namespace Luban +{ + public interface ITypeId + { + int GetTypeId(); + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ITypeId.cs.meta b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ITypeId.cs.meta new file mode 100644 index 00000000..5ca1ea08 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/ITypeId.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 08eef6b77ab6ede4997166dc812a918f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/StringUtil.cs b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/StringUtil.cs new file mode 100644 index 00000000..0648ffcc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/StringUtil.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; +using System.Text; + +namespace Luban +{ + public static class StringUtil + { + public static string ToStr(object o) + { + return ToStr(o, new StringBuilder()); + } + + public static string ToStr(object o, StringBuilder sb) + { + foreach (var p in o.GetType().GetFields()) + { + + sb.Append($"{p.Name} = {p.GetValue(o)},"); + } + + foreach (var p in o.GetType().GetProperties()) + { + sb.Append($"{p.Name} = {p.GetValue(o)},"); + } + return sb.ToString(); + } + + public static string ArrayToString(T[] arr) + { + return "[" + string.Join(",", arr) + "]"; + } + + + public static string CollectionToString(IEnumerable arr) + { + return "[" + string.Join(",", arr) + "]"; + } + + + public static string CollectionToString(IDictionary dic) + { + var sb = new StringBuilder('{'); + foreach (var e in dic) + { + sb.Append(e.Key).Append(':'); + sb.Append(e.Value).Append(','); + } + sb.Append('}'); + return sb.ToString(); + } + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/StringUtil.cs.meta b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/StringUtil.cs.meta new file mode 100644 index 00000000..612d9e99 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/LubanLib/StringUtil.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ef82068810e5599439c5346fba3b0f97 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_DotNet_bin/Program.cs b/luban_examples/Projects/Csharp_DotNet_bin/Program.cs new file mode 100644 index 00000000..afc121c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/Program.cs @@ -0,0 +1,16 @@ +using System; +using System.IO; +using System.Text.Json; +using Luban; + +namespace Csharp_Server_DotNetCore +{ + class Program + { + static void Main(string[] args) + { + var tables = new cfg.Tables(file => new ByteBuf(File.ReadAllBytes("../../../../GenerateDatas/bytes/" + file + ".bytes"))); + Console.WriteLine("== load succ =="); + } + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_bin/gen.bat b/luban_examples/Projects/Csharp_DotNet_bin/gen.bat new file mode 100644 index 00000000..4a147a81 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_bin/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t server ^ + -c cs-bin ^ + -d bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Gen ^ + -x outputDataDir=..\GenerateDatas\bytes ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_DotNet_json/Benchmark.cs b/luban_examples/Projects/Csharp_DotNet_json/Benchmark.cs new file mode 100644 index 00000000..bfa21cb9 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Benchmark.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Text; +using System.Text.Json; + +class CacheLoader +{ + public string Dir { get; } + + + private readonly Dictionary cache = new(); + + public CacheLoader(string dir) + { + Dir = dir; + } + + public JsonElement LoadOrFromCache(string name) + { + if (!cache.TryGetValue(name, out byte[] result)) + { + result = File.ReadAllBytes($"{Dir}/{name}.json"); + cache.Add(name, result); + } + return JsonDocument.Parse(result).RootElement; + } +} + +internal class Benchmark +{ + public static void Run(string dir) + { + var loader = new CacheLoader(dir); + + var tables = new List(); + + for (int k = 0; k < 10; k++) + { + var w = new Stopwatch(); + w.Start(); + for (int i = 0; i < 100; i++) + { + tables.Add(new cfg.Tables(loader.LoadOrFromCache)); + } + w.Stop(); + Console.WriteLine("== cost {0} ms", w.ElapsedMilliseconds); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Csharp_Server_DotNet5_json.csproj b/luban_examples/Projects/Csharp_DotNet_json/Csharp_Server_DotNet5_json.csproj new file mode 100644 index 00000000..4d9f88d7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Csharp_Server_DotNet5_json.csproj @@ -0,0 +1,28 @@ + + + + Exe + net6.0 + True + + + + true + TRACE;CPU_SUPPORT_MEMORY_NOT_ALIGN + + + + TRACE;CPU_SUPPORT_MEMORY_NOT_ALIGN + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Csharp_Server_DotNet5_json.sln b/luban_examples/Projects/Csharp_DotNet_json/Csharp_Server_DotNet5_json.sln new file mode 100644 index 00000000..edee6793 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Csharp_Server_DotNet5_json.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30523.141 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Csharp_Server_DotNet5_json", "Csharp_Server_DotNet5_json.csproj", "{8AEED884-8DDE-47FC-8529-1A88EB02B019}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8AEED884-8DDE-47FC-8529-1A88EB02B019}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9C38A42-1380-4256-A6C2-23622BF39456} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Csharp_DotNet_json/CustomAudioType.cs b/luban_examples/Projects/Csharp_DotNet_json/CustomAudioType.cs new file mode 100644 index 00000000..040c1d08 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/CustomAudioType.cs @@ -0,0 +1,6 @@ + +public enum CustomAudioType +{ + A, + B, +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_DotNet_json/ExternalTypeUtil.cs b/luban_examples/Projects/Csharp_DotNet_json/ExternalTypeUtil.cs new file mode 100644 index 00000000..bac10bae --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/ExternalTypeUtil.cs @@ -0,0 +1,19 @@ +using System.Numerics; + +public static class ExternalTypeUtil +{ + public static Vector2 NewVector2(cfg.vec2 v) + { + return new Vector2(v.X, v.Y); + } + + public static Vector3 NewVector3(cfg.vec3 v) + { + return new Vector3(v.X, v.Y, v.Z); + } + + public static Vector4 NewVector4(cfg.vec4 v) + { + return new Vector4(v.X, v.Y, v.Z, v.W); + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/AudioType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/AudioType.cs new file mode 100644 index 00000000..3ac4c0e7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/AudioType.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/DefineFromExcel2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..b70c1d5e --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/DefineFromExcel2.cs @@ -0,0 +1,120 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public sealed partial class DefineFromExcel2 : Luban.BeanBase +{ + public DefineFromExcel2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X8 = _buf.GetProperty("x8").GetInt32(); + X10 = _buf.GetProperty("x10").GetString(); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X132 = (test.DemoFlag)_buf.GetProperty("x13_2").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + X15 = test.Shape.DeserializeShape(_buf.GetProperty("x15")); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + T1 = _buf.GetProperty("t1").GetInt64(); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k2"); int _n0 = __json0.GetArrayLength(); K2 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k10"); K10 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { vec3 __v0; __v0 = vec3.Deserializevec3(__e0); K10.Add(__v0); } } + { var __json0 = _buf.GetProperty("k11"); K11 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { vec4 __v0; __v0 = vec4.Deserializevec4(__e0); K11.Add(__v0); } } + } + + public static DefineFromExcel2 DeserializeDefineFromExcel2(JsonElement _buf) + { + return new DefineFromExcel2(_buf); + } + + /// + /// 这是id + /// + public readonly int Id; + /// + /// 字段x1 + /// + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly int X8; + public readonly string X10; + public readonly test.DemoEnum X13; + public readonly test.DemoFlag X132; + public readonly test.DemoDynamic X14; + public readonly test.Shape X15; + public readonly vec2 V2; + public readonly long T1; + public readonly int[] K1; + public readonly int[] K2; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly System.Collections.Generic.List K10; + public readonly System.Collections.Generic.List K11; + + public const int __ID__ = 482045152; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + X14?.ResolveRef(tables); + X15?.ResolveRef(tables); + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x8:" + X8 + "," + + "x10:" + X10 + "," + + "x13:" + X13 + "," + + "x132:" + X132 + "," + + "x14:" + X14 + "," + + "x15:" + X15 + "," + + "v2:" + V2 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k10:" + Luban.StringUtil.CollectionToString(K10) + "," + + "k11:" + Luban.StringUtil.CollectionToString(K11) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/Tables.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/Tables.cs new file mode 100644 index 00000000..596f5cad --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/Tables.cs @@ -0,0 +1,145 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + +namespace cfg +{ +public partial class Tables +{ + public ai.TbBlackboard TbBlackboard {get; } + public ai.TbBehaviorTree TbBehaviorTree {get; } + public common.TbGlobalConfig TbGlobalConfig {get; } + /// + /// 道具表 + /// + public item.TbItem TbItem {get; } + public l10n.TbL10NDemo TbL10NDemo {get; } + public l10n.TbPatchDemo TbPatchDemo {get; } + public tag.TbTestTag TbTestTag {get; } + public test.TbFullTypes TbFullTypes {get; } + public test.TbSingleton TbSingleton {get; } + public test.TbNotIndexList TbNotIndexList {get; } + public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; } + public test.TbMultiIndexList TbMultiIndexList {get; } + public test.TbDataFromMisc TbDataFromMisc {get; } + public test.TbMultiRowRecord TbMultiRowRecord {get; } + public test.TbTestMultiColumn TbTestMultiColumn {get; } + public test.TbMultiRowTitle TbMultiRowTitle {get; } + public test.TbTestNull TbTestNull {get; } + public test.TbDemoPrimitive TbDemoPrimitive {get; } + public test.TbTestString TbTestString {get; } + public test.TbDemoGroup TbDemoGroup {get; } + public test.TbTestGlobal TbTestGlobal {get; } + public test.TbTestBeRef TbTestBeRef {get; } + public test.TbTestBeRef2 TbTestBeRef2 {get; } + public test.TbTestRef TbTestRef {get; } + public test.TbTestSize TbTestSize {get; } + public test.TbTestSet TbTestSet {get; } + public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; } + public test.TbItem2 TbItem2 {get; } + public test.TbTestIndex TbTestIndex {get; } + public test.TbTestMap TbTestMap {get; } + public test.TbExcelFromJson TbExcelFromJson {get; } + public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; } + public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; } + public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; } + public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; } + public test.TbTestScriptableObject TbTestScriptableObject {get; } + public test.TbTestMapper TbTestMapper {get; } + public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; } + + public Tables(System.Func loader) + { + TbBlackboard = new ai.TbBlackboard(loader("ai_tbblackboard")); + TbBehaviorTree = new ai.TbBehaviorTree(loader("ai_tbbehaviortree")); + TbGlobalConfig = new common.TbGlobalConfig(loader("common_tbglobalconfig")); + TbItem = new item.TbItem(loader("item_tbitem")); + TbL10NDemo = new l10n.TbL10NDemo(loader("l10n_tbl10ndemo")); + TbPatchDemo = new l10n.TbPatchDemo(loader("l10n_tbpatchdemo")); + TbTestTag = new tag.TbTestTag(loader("tag_tbtesttag")); + TbFullTypes = new test.TbFullTypes(loader("test_tbfulltypes")); + TbSingleton = new test.TbSingleton(loader("test_tbsingleton")); + TbNotIndexList = new test.TbNotIndexList(loader("test_tbnotindexlist")); + TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader("test_tbmultiunionindexlist")); + TbMultiIndexList = new test.TbMultiIndexList(loader("test_tbmultiindexlist")); + TbDataFromMisc = new test.TbDataFromMisc(loader("test_tbdatafrommisc")); + TbMultiRowRecord = new test.TbMultiRowRecord(loader("test_tbmultirowrecord")); + TbTestMultiColumn = new test.TbTestMultiColumn(loader("test_tbtestmulticolumn")); + TbMultiRowTitle = new test.TbMultiRowTitle(loader("test_tbmultirowtitle")); + TbTestNull = new test.TbTestNull(loader("test_tbtestnull")); + TbDemoPrimitive = new test.TbDemoPrimitive(loader("test_tbdemoprimitive")); + TbTestString = new test.TbTestString(loader("test_tbteststring")); + TbDemoGroup = new test.TbDemoGroup(loader("test_tbdemogroup")); + TbTestGlobal = new test.TbTestGlobal(loader("test_tbtestglobal")); + TbTestBeRef = new test.TbTestBeRef(loader("test_tbtestberef")); + TbTestBeRef2 = new test.TbTestBeRef2(loader("test_tbtestberef2")); + TbTestRef = new test.TbTestRef(loader("test_tbtestref")); + TbTestSize = new test.TbTestSize(loader("test_tbtestsize")); + TbTestSet = new test.TbTestSet(loader("test_tbtestset")); + TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader("test_tbdetectcsvencoding")); + TbItem2 = new test.TbItem2(loader("test_tbitem2")); + TbTestIndex = new test.TbTestIndex(loader("test_tbtestindex")); + TbTestMap = new test.TbTestMap(loader("test_tbtestmap")); + TbExcelFromJson = new test.TbExcelFromJson(loader("test_tbexcelfromjson")); + TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader("test_tbcompositejsontable1")); + TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader("test_tbcompositejsontable2")); + TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader("test_tbcompositejsontable3")); + TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader("test_tbexcelfromjsonmultirow")); + TbTestScriptableObject = new test.TbTestScriptableObject(loader("test_tbtestscriptableobject")); + TbTestMapper = new test.TbTestMapper(loader("test_tbtestmapper")); + TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader("test_tbdefinefromexcel2")); + ResolveRef(); + } + + private void ResolveRef() + { + TbBlackboard.ResolveRef(this); + TbBehaviorTree.ResolveRef(this); + TbGlobalConfig.ResolveRef(this); + TbItem.ResolveRef(this); + TbL10NDemo.ResolveRef(this); + TbPatchDemo.ResolveRef(this); + TbTestTag.ResolveRef(this); + TbFullTypes.ResolveRef(this); + TbSingleton.ResolveRef(this); + TbNotIndexList.ResolveRef(this); + TbMultiUnionIndexList.ResolveRef(this); + TbMultiIndexList.ResolveRef(this); + TbDataFromMisc.ResolveRef(this); + TbMultiRowRecord.ResolveRef(this); + TbTestMultiColumn.ResolveRef(this); + TbMultiRowTitle.ResolveRef(this); + TbTestNull.ResolveRef(this); + TbDemoPrimitive.ResolveRef(this); + TbTestString.ResolveRef(this); + TbDemoGroup.ResolveRef(this); + TbTestGlobal.ResolveRef(this); + TbTestBeRef.ResolveRef(this); + TbTestBeRef2.ResolveRef(this); + TbTestRef.ResolveRef(this); + TbTestSize.ResolveRef(this); + TbTestSet.ResolveRef(this); + TbDetectCsvEncoding.ResolveRef(this); + TbItem2.ResolveRef(this); + TbTestIndex.ResolveRef(this); + TbTestMap.ResolveRef(this); + TbExcelFromJson.ResolveRef(this); + TbCompositeJsonTable1.ResolveRef(this); + TbCompositeJsonTable2.ResolveRef(this); + TbCompositeJsonTable3.ResolveRef(this); + TbExcelFromJsonMultiRow.ResolveRef(this); + TbTestScriptableObject.ResolveRef(this); + TbTestMapper.ResolveRef(this); + TbDefineFromExcel2.ResolveRef(this); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..a60c74bb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BehaviorTree.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BehaviorTree : Luban.BeanBase +{ + public BehaviorTree(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + BlackboardId = _buf.GetProperty("blackboard_id").GetString(); + BlackboardId_Ref = null; + Root = ai.ComposeNode.DeserializeComposeNode(_buf.GetProperty("root")); + } + + public static BehaviorTree DeserializeBehaviorTree(JsonElement _buf) + { + return new ai.BehaviorTree(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + public readonly string BlackboardId; + public ai.Blackboard BlackboardId_Ref; + public readonly ai.ComposeNode Root; + + public const int __ID__ = 159552822; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId); + Root?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "blackboardId:" + BlackboardId + "," + + "root:" + Root + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..50ee6430 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BinaryOperator.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BinaryOperator : ai.KeyQueryOperator +{ + public BinaryOperator(JsonElement _buf) : base(_buf) + { + Oper = (ai.EOperator)_buf.GetProperty("oper").GetInt32(); + Data = ai.KeyData.DeserializeKeyData(_buf.GetProperty("data")); + } + + public static BinaryOperator DeserializeBinaryOperator(JsonElement _buf) + { + return new ai.BinaryOperator(_buf); + } + + public readonly ai.EOperator Oper; + public readonly ai.KeyData Data; + + public const int __ID__ = -979891605; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + Data?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "oper:" + Oper + "," + + "data:" + Data + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Blackboard.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..1d21ad4a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Blackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Blackboard : Luban.BeanBase +{ + public Blackboard(JsonElement _buf) + { + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + ParentName = _buf.GetProperty("parent_name").GetString(); + { var __json0 = _buf.GetProperty("keys"); Keys = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.BlackboardKey __v0; __v0 = ai.BlackboardKey.DeserializeBlackboardKey(__e0); Keys.Add(__v0); } } + } + + public static Blackboard DeserializeBlackboard(JsonElement _buf) + { + return new ai.Blackboard(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly string ParentName; + public readonly System.Collections.Generic.List Keys; + + public const int __ID__ = 1576193005; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + foreach (var _e in Keys) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "parentName:" + ParentName + "," + + "keys:" + Luban.StringUtil.CollectionToString(Keys) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..31288819 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BlackboardKey.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKey : Luban.BeanBase +{ + public BlackboardKey(JsonElement _buf) + { + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + IsStatic = _buf.GetProperty("is_static").GetBoolean(); + Type = (ai.EKeyType)_buf.GetProperty("type").GetInt32(); + TypeClassName = _buf.GetProperty("type_class_name").GetString(); + } + + public static BlackboardKey DeserializeBlackboardKey(JsonElement _buf) + { + return new ai.BlackboardKey(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly bool IsStatic; + public readonly ai.EKeyType Type; + public readonly string TypeClassName; + + public const int __ID__ = -511559886; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "isStatic:" + IsStatic + "," + + "type:" + Type + "," + + "typeClassName:" + TypeClassName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..3aa1f756 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.BlackboardKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKeyData : ai.KeyData +{ + public BlackboardKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetString(); + } + + public static BlackboardKeyData DeserializeBlackboardKeyData(JsonElement _buf) + { + return new ai.BlackboardKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = 1517269500; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..729eacde --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ChooseSkill.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ChooseSkill : ai.Task +{ + public ChooseSkill(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + ResultSkillIdKey = _buf.GetProperty("result_skill_id_key").GetString(); + } + + public static ChooseSkill DeserializeChooseSkill(JsonElement _buf) + { + return new ai.ChooseSkill(_buf); + } + + public readonly string TargetActorKey; + public readonly string ResultSkillIdKey; + + public const int __ID__ = -918812268; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "resultSkillIdKey:" + ResultSkillIdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..a1cfa676 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ChooseTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ChooseTarget : ai.Service +{ + public ChooseTarget(JsonElement _buf) : base(_buf) + { + ResultTargetKey = _buf.GetProperty("result_target_key").GetString(); + } + + public static ChooseTarget DeserializeChooseTarget(JsonElement _buf) + { + return new ai.ChooseTarget(_buf); + } + + public readonly string ResultTargetKey; + + public const int __ID__ = 1601247918; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "resultTargetKey:" + ResultTargetKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ComposeNode.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..2cad7957 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ComposeNode.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class ComposeNode : ai.FlowNode +{ + public ComposeNode(JsonElement _buf) : base(_buf) + { + } + + public static ComposeNode DeserializeComposeNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.DebugPrint.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..cf9eca40 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.DebugPrint.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class DebugPrint : ai.Task +{ + public DebugPrint(JsonElement _buf) : base(_buf) + { + Text = _buf.GetProperty("text").GetString(); + } + + public static DebugPrint DeserializeDebugPrint(JsonElement _buf) + { + return new ai.DebugPrint(_buf); + } + + public readonly string Text; + + public const int __ID__ = 1357409728; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Decorator.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Decorator.cs new file mode 100644 index 00000000..12295127 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Decorator.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Decorator : ai.Node +{ + public Decorator(JsonElement _buf) : base(_buf) + { + FlowAbortMode = (ai.EFlowAbortMode)_buf.GetProperty("flow_abort_mode").GetInt32(); + } + + public static Decorator DeserializeDecorator(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public readonly ai.EFlowAbortMode FlowAbortMode; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..72e749ae --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class DistanceLessThan : ai.Decorator +{ + public DistanceLessThan(JsonElement _buf) : base(_buf) + { + Actor1Key = _buf.GetProperty("actor1_key").GetString(); + Actor2Key = _buf.GetProperty("actor2_key").GetString(); + Distance = _buf.GetProperty("distance").GetSingle(); + ReverseResult = _buf.GetProperty("reverse_result").GetBoolean(); + } + + public static DistanceLessThan DeserializeDistanceLessThan(JsonElement _buf) + { + return new ai.DistanceLessThan(_buf); + } + + public readonly string Actor1Key; + public readonly string Actor2Key; + public readonly float Distance; + public readonly bool ReverseResult; + + public const int __ID__ = -1207170283; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "actor1Key:" + Actor1Key + "," + + "actor2Key:" + Actor2Key + "," + + "distance:" + Distance + "," + + "reverseResult:" + ReverseResult + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EExecutor.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..27ea93ba --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EExecutor.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EFinishMode.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..94a7b4c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EFinishMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..6c97a981 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EFlowAbortMode.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EKeyType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..97110a59 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EKeyType.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..61d634f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EOperator.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EOperator.cs new file mode 100644 index 00000000..25aac54d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.EOperator.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..2c0c7895 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class ExecuteTimeStatistic : ai.Service +{ + public ExecuteTimeStatistic(JsonElement _buf) : base(_buf) + { + } + + public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(JsonElement _buf) + { + return new ai.ExecuteTimeStatistic(_buf); + } + + + public const int __ID__ = 990693812; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..8a508474 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.FloatKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class FloatKeyData : ai.KeyData +{ + public FloatKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetSingle(); + } + + public static FloatKeyData DeserializeFloatKeyData(JsonElement _buf) + { + return new ai.FloatKeyData(_buf); + } + + public readonly float Value; + + public const int __ID__ = -719747885; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.FlowNode.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..cfc9001d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.FlowNode.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class FlowNode : ai.Node +{ + public FlowNode(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("decorators"); Decorators = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.Decorator __v0; __v0 = ai.Decorator.DeserializeDecorator(__e0); Decorators.Add(__v0); } } + { var __json0 = _buf.GetProperty("services"); Services = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.Service __v0; __v0 = ai.Service.DeserializeService(__e0); Services.Add(__v0); } } + } + + public static FlowNode DeserializeFlowNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly System.Collections.Generic.List Decorators; + public readonly System.Collections.Generic.List Services; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Decorators) { _e?.ResolveRef(tables); } + foreach (var _e in Services) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..070ad41f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class GetOwnerPlayer : ai.Service +{ + public GetOwnerPlayer(JsonElement _buf) : base(_buf) + { + PlayerActorKey = _buf.GetProperty("player_actor_key").GetString(); + } + + public static GetOwnerPlayer DeserializeGetOwnerPlayer(JsonElement _buf) + { + return new ai.GetOwnerPlayer(_buf); + } + + public readonly string PlayerActorKey; + + public const int __ID__ = -999247644; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "playerActorKey:" + PlayerActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IntKeyData.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..16b52da7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IntKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IntKeyData : ai.KeyData +{ + public IntKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetInt32(); + } + + public static IntKeyData DeserializeIntKeyData(JsonElement _buf) + { + return new ai.IntKeyData(_buf); + } + + public readonly int Value; + + public const int __ID__ = -342751904; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..05c723f4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsAtLocation.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsAtLocation : ai.Decorator +{ + public IsAtLocation(JsonElement _buf) : base(_buf) + { + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + KeyboardKey = _buf.GetProperty("keyboard_key").GetString(); + InverseCondition = _buf.GetProperty("inverse_condition").GetBoolean(); + } + + public static IsAtLocation DeserializeIsAtLocation(JsonElement _buf) + { + return new ai.IsAtLocation(_buf); + } + + public readonly float AcceptableRadius; + public readonly string KeyboardKey; + public readonly bool InverseCondition; + + public const int __ID__ = 1255972344; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "keyboardKey:" + KeyboardKey + "," + + "inverseCondition:" + InverseCondition + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsNotSet.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..956d7d27 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsNotSet.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsNotSet : ai.KeyQueryOperator +{ + public IsNotSet(JsonElement _buf) : base(_buf) + { + } + + public static IsNotSet DeserializeIsNotSet(JsonElement _buf) + { + return new ai.IsNotSet(_buf); + } + + + public const int __ID__ = 790736255; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsSet.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsSet.cs new file mode 100644 index 00000000..dfe332b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.IsSet.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class IsSet : ai.KeyQueryOperator +{ + public IsSet(JsonElement _buf) : base(_buf) + { + } + + public static IsSet DeserializeIsSet(JsonElement _buf) + { + return new ai.IsSet(_buf); + } + + + public const int __ID__ = 1635350898; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..9fae6045 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class KeepFaceTarget : ai.Service +{ + public KeepFaceTarget(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + } + + public static KeepFaceTarget DeserializeKeepFaceTarget(JsonElement _buf) + { + return new ai.KeepFaceTarget(_buf); + } + + public readonly string TargetActorKey; + + public const int __ID__ = 1195270745; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "targetActorKey:" + TargetActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeyData.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeyData.cs new file mode 100644 index 00000000..2f62ce66 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class KeyData : Luban.BeanBase +{ + public KeyData(JsonElement _buf) + { + } + + public static KeyData DeserializeKeyData(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "FloatKeyData": return new ai.FloatKeyData(_buf); + case "IntKeyData": return new ai.IntKeyData(_buf); + case "StringKeyData": return new ai.StringKeyData(_buf); + case "BlackboardKeyData": return new ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..22a682d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.KeyQueryOperator.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class KeyQueryOperator : Luban.BeanBase +{ + public KeyQueryOperator(JsonElement _buf) + { + } + + public static KeyQueryOperator DeserializeKeyQueryOperator(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "IsSet": return new ai.IsSet(_buf); + case "IsNotSet": return new ai.IsNotSet(_buf); + case "BinaryOperator": return new ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..3040c8cc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToLocation.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToLocation : ai.Task +{ + public MoveToLocation(JsonElement _buf) : base(_buf) + { + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + } + + public static MoveToLocation DeserializeMoveToLocation(JsonElement _buf) + { + return new ai.MoveToLocation(_buf); + } + + public readonly float AcceptableRadius; + + public const int __ID__ = -969953113; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..94ae32d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToRandomLocation.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToRandomLocation : ai.Task +{ + public MoveToRandomLocation(JsonElement _buf) : base(_buf) + { + OriginPositionKey = _buf.GetProperty("origin_position_key").GetString(); + Radius = _buf.GetProperty("radius").GetSingle(); + } + + public static MoveToRandomLocation DeserializeMoveToRandomLocation(JsonElement _buf) + { + return new ai.MoveToRandomLocation(_buf); + } + + public readonly string OriginPositionKey; + public readonly float Radius; + + public const int __ID__ = -2140042998; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "originPositionKey:" + OriginPositionKey + "," + + "radius:" + Radius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..c98719dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.MoveToTarget.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class MoveToTarget : ai.Task +{ + public MoveToTarget(JsonElement _buf) : base(_buf) + { + TargetActorKey = _buf.GetProperty("target_actor_key").GetString(); + AcceptableRadius = _buf.GetProperty("acceptable_radius").GetSingle(); + } + + public static MoveToTarget DeserializeMoveToTarget(JsonElement _buf) + { + return new ai.MoveToTarget(_buf); + } + + public readonly string TargetActorKey; + public readonly float AcceptableRadius; + + public const int __ID__ = 514987779; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Node.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Node.cs new file mode 100644 index 00000000..f10fea6b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Node.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Node : Luban.BeanBase +{ + public Node(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + NodeName = _buf.GetProperty("node_name").GetString(); + } + + public static Node DeserializeNode(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string NodeName; + + + public virtual void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Selector.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Selector.cs new file mode 100644 index 00000000..8ecd85d3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Selector.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Selector : ai.ComposeNode +{ + public Selector(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("children"); Children = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.FlowNode __v0; __v0 = ai.FlowNode.DeserializeFlowNode(__e0); Children.Add(__v0); } } + } + + public static Selector DeserializeSelector(JsonElement _buf) + { + return new ai.Selector(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1946981627; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Sequence.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Sequence.cs new file mode 100644 index 00000000..37ade687 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Sequence.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class Sequence : ai.ComposeNode +{ + public Sequence(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("children"); Children = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.FlowNode __v0; __v0 = ai.FlowNode.DeserializeFlowNode(__e0); Children.Add(__v0); } } + } + + public static Sequence DeserializeSequence(JsonElement _buf) + { + return new ai.Sequence(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1789006105; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Service.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Service.cs new file mode 100644 index 00000000..6a70e8bc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Service.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Service : ai.Node +{ + public Service(JsonElement _buf) : base(_buf) + { + } + + public static Service DeserializeService(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..5678713b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.SimpleParallel.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class SimpleParallel : ai.ComposeNode +{ + public SimpleParallel(JsonElement _buf) : base(_buf) + { + FinishMode = (ai.EFinishMode)_buf.GetProperty("finish_mode").GetInt32(); + MainTask = ai.Task.DeserializeTask(_buf.GetProperty("main_task")); + BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf.GetProperty("background_node")); + } + + public static SimpleParallel DeserializeSimpleParallel(JsonElement _buf) + { + return new ai.SimpleParallel(_buf); + } + + public readonly ai.EFinishMode FinishMode; + public readonly ai.Task MainTask; + public readonly ai.FlowNode BackgroundNode; + + public const int __ID__ = -1952582529; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + MainTask?.ResolveRef(tables); + BackgroundNode?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "finishMode:" + FinishMode + "," + + "mainTask:" + MainTask + "," + + "backgroundNode:" + BackgroundNode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.StringKeyData.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..2d784877 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.StringKeyData.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class StringKeyData : ai.KeyData +{ + public StringKeyData(JsonElement _buf) : base(_buf) + { + Value = _buf.GetProperty("value").GetString(); + } + + public static StringKeyData DeserializeStringKeyData(JsonElement _buf) + { + return new ai.StringKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = -307888654; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Task.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Task.cs new file mode 100644 index 00000000..381878b2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.Task.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 System.Text.Json; + + +namespace cfg.ai +{ +public abstract partial class Task : ai.FlowNode +{ + public Task(JsonElement _buf) : base(_buf) + { + IgnoreRestartSelf = _buf.GetProperty("ignore_restart_self").GetBoolean(); + } + + public static Task DeserializeTask(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly bool IgnoreRestartSelf; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.TbBehaviorTree.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.TbBehaviorTree.cs new file mode 100644 index 00000000..5c060d88 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.TbBehaviorTree.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public partial class TbBehaviorTree +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBehaviorTree(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + ai.BehaviorTree _v; + _v = ai.BehaviorTree.DeserializeBehaviorTree(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.BehaviorTree GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.BehaviorTree Get(int key) => _dataMap[key]; + public ai.BehaviorTree this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.TbBlackboard.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.TbBlackboard.cs new file mode 100644 index 00000000..c654bd87 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.TbBlackboard.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public partial class TbBlackboard +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBlackboard(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + ai.Blackboard _v; + _v = ai.Blackboard.DeserializeBlackboard(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Name, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.Blackboard GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.Blackboard Get(string key) => _dataMap[key]; + public ai.Blackboard this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..8945bd7c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeBlackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeBlackboard : ai.Decorator +{ + public UeBlackboard(JsonElement _buf) : base(_buf) + { + NotifyObserver = (ai.ENotifyObserverMode)_buf.GetProperty("notify_observer").GetInt32(); + BlackboardKey = _buf.GetProperty("blackboard_key").GetString(); + KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf.GetProperty("key_query")); + } + + public static UeBlackboard DeserializeUeBlackboard(JsonElement _buf) + { + return new ai.UeBlackboard(_buf); + } + + public readonly ai.ENotifyObserverMode NotifyObserver; + public readonly string BlackboardKey; + public readonly ai.KeyQueryOperator KeyQuery; + + public const int __ID__ = -315297507; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + KeyQuery?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "notifyObserver:" + NotifyObserver + "," + + "blackboardKey:" + BlackboardKey + "," + + "keyQuery:" + KeyQuery + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeCooldown.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..9f61d7f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeCooldown.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeCooldown : ai.Decorator +{ + public UeCooldown(JsonElement _buf) : base(_buf) + { + CooldownTime = _buf.GetProperty("cooldown_time").GetSingle(); + } + + public static UeCooldown DeserializeUeCooldown(JsonElement _buf) + { + return new ai.UeCooldown(_buf); + } + + public readonly float CooldownTime; + + public const int __ID__ = -951439423; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "cooldownTime:" + CooldownTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..4299e556 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeForceSuccess.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeForceSuccess : ai.Decorator +{ + public UeForceSuccess(JsonElement _buf) : base(_buf) + { + } + + public static UeForceSuccess DeserializeUeForceSuccess(JsonElement _buf) + { + return new ai.UeForceSuccess(_buf); + } + + + public const int __ID__ = 195054574; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeLoop.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..c939e806 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeLoop.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeLoop : ai.Decorator +{ + public UeLoop(JsonElement _buf) : base(_buf) + { + NumLoops = _buf.GetProperty("num_loops").GetInt32(); + InfiniteLoop = _buf.GetProperty("infinite_loop").GetBoolean(); + InfiniteLoopTimeoutTime = _buf.GetProperty("infinite_loop_timeout_time").GetSingle(); + } + + public static UeLoop DeserializeUeLoop(JsonElement _buf) + { + return new ai.UeLoop(_buf); + } + + public readonly int NumLoops; + public readonly bool InfiniteLoop; + public readonly float InfiniteLoopTimeoutTime; + + public const int __ID__ = -513308166; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "numLoops:" + NumLoops + "," + + "infiniteLoop:" + InfiniteLoop + "," + + "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..6cbe6388 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeSetDefaultFocus : ai.Service +{ + public UeSetDefaultFocus(JsonElement _buf) : base(_buf) + { + KeyboardKey = _buf.GetProperty("keyboard_key").GetString(); + } + + public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(JsonElement _buf) + { + return new ai.UeSetDefaultFocus(_buf); + } + + public readonly string KeyboardKey; + + public const int __ID__ = 1812449155; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "keyboardKey:" + KeyboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..a7c54f07 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeTimeLimit.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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeTimeLimit : ai.Decorator +{ + public UeTimeLimit(JsonElement _buf) : base(_buf) + { + LimitTime = _buf.GetProperty("limit_time").GetSingle(); + } + + public static UeTimeLimit DeserializeUeTimeLimit(JsonElement _buf) + { + return new ai.UeTimeLimit(_buf); + } + + public readonly float LimitTime; + + public const int __ID__ = 338469720; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "limitTime:" + LimitTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeWait.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeWait.cs new file mode 100644 index 00000000..02e5e4b7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeWait.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeWait : ai.Task +{ + public UeWait(JsonElement _buf) : base(_buf) + { + WaitTime = _buf.GetProperty("wait_time").GetSingle(); + RandomDeviation = _buf.GetProperty("random_deviation").GetSingle(); + } + + public static UeWait DeserializeUeWait(JsonElement _buf) + { + return new ai.UeWait(_buf); + } + + public readonly float WaitTime; + public readonly float RandomDeviation; + + public const int __ID__ = -512994101; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "waitTime:" + WaitTime + "," + + "randomDeviation:" + RandomDeviation + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..6a6e9b24 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UeWaitBlackboardTime : ai.Task +{ + public UeWaitBlackboardTime(JsonElement _buf) : base(_buf) + { + BlackboardKey = _buf.GetProperty("blackboard_key").GetString(); + } + + public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(JsonElement _buf) + { + return new ai.UeWaitBlackboardTime(_buf); + } + + public readonly string BlackboardKey; + + public const int __ID__ = 1215378271; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "blackboardKey:" + BlackboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..cc528f4b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.ai +{ +public sealed partial class UpdateDailyBehaviorProps : ai.Service +{ + public UpdateDailyBehaviorProps(JsonElement _buf) : base(_buf) + { + SatietyKey = _buf.GetProperty("satiety_key").GetString(); + EnergyKey = _buf.GetProperty("energy_key").GetString(); + MoodKey = _buf.GetProperty("mood_key").GetString(); + SatietyLowerThresholdKey = _buf.GetProperty("satiety_lower_threshold_key").GetString(); + SatietyUpperThresholdKey = _buf.GetProperty("satiety_upper_threshold_key").GetString(); + EnergyLowerThresholdKey = _buf.GetProperty("energy_lower_threshold_key").GetString(); + EnergyUpperThresholdKey = _buf.GetProperty("energy_upper_threshold_key").GetString(); + MoodLowerThresholdKey = _buf.GetProperty("mood_lower_threshold_key").GetString(); + MoodUpperThresholdKey = _buf.GetProperty("mood_upper_threshold_key").GetString(); + } + + public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(JsonElement _buf) + { + return new ai.UpdateDailyBehaviorProps(_buf); + } + + public readonly string SatietyKey; + public readonly string EnergyKey; + public readonly string MoodKey; + public readonly string SatietyLowerThresholdKey; + public readonly string SatietyUpperThresholdKey; + public readonly string EnergyLowerThresholdKey; + public readonly string EnergyUpperThresholdKey; + public readonly string MoodLowerThresholdKey; + public readonly string MoodUpperThresholdKey; + + public const int __ID__ = -61887372; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "satietyKey:" + SatietyKey + "," + + "energyKey:" + EnergyKey + "," + + "moodKey:" + MoodKey + "," + + "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + "," + + "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + "," + + "energyLowerThresholdKey:" + EnergyLowerThresholdKey + "," + + "energyUpperThresholdKey:" + EnergyUpperThresholdKey + "," + + "moodLowerThresholdKey:" + MoodLowerThresholdKey + "," + + "moodUpperThresholdKey:" + MoodUpperThresholdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/common.EBoolOperator.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..4e7f1379 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/common.EBoolOperator.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/common.GlobalConfig.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..9d205db4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/common.GlobalConfig.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 System.Text.Json; + + +namespace cfg.common +{ +public sealed partial class GlobalConfig : Luban.BeanBase +{ + public GlobalConfig(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + X2 = _buf.GetProperty("x2").GetInt32(); + X3 = _buf.GetProperty("x3").GetInt32(); + X4 = _buf.GetProperty("x4").GetInt32(); + X5 = _buf.GetProperty("x5").GetInt32(); + X6 = _buf.GetProperty("x6").GetInt32(); + { var __json0 = _buf.GetProperty("x7"); X7 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X7.Add(__v0); } } + } + + public static GlobalConfig DeserializeGlobalConfig(JsonElement _buf) + { + return new common.GlobalConfig(_buf); + } + + /// + /// 背包容量 + /// + public readonly int X1; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public readonly int X5; + public readonly int X6; + public readonly System.Collections.Generic.List X7; + + public const int __ID__ = -848234488; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/common.TbGlobalConfig.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/common.TbGlobalConfig.cs new file mode 100644 index 00000000..ade36cf7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/common.TbGlobalConfig.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 System.Text.Json; + + +namespace cfg.common +{ +public partial class TbGlobalConfig +{ + + private readonly common.GlobalConfig _data; + + public TbGlobalConfig(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = common.GlobalConfig.DeserializeGlobalConfig(_buf[0]); + } + + + /// + /// 背包容量 + /// + public int X1 => _data.X1; + public int X2 => _data.X2; + public int X3 => _data.X3; + public int X4 => _data.X4; + public int X5 => _data.X5; + public int X6 => _data.X6; + public System.Collections.Generic.List X7 => _data.X7; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..f148097b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothersStarQualityType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothersTag.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..c7bfd3cb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothersTag.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..401492ae --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothesHidePartType.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..b0b224b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EClothesPropertyType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.ECurrencyType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..7dfcba3c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.ECurrencyType.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EItemQuality.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..74fcfbf2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EItemQuality.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// 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 EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EMajorType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EMajorType.cs new file mode 100644 index 00000000..c19157ce --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EMajorType.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EMinorType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EMinorType.cs new file mode 100644 index 00000000..936a15ab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EMinorType.cs @@ -0,0 +1,215 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EUseType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EUseType.cs new file mode 100644 index 00000000..20f635dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.EUseType.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.Item.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.Item.cs new file mode 100644 index 00000000..d69ea021 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.Item.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.item +{ +/// +/// 道具 +/// +public sealed partial class Item : Luban.BeanBase +{ + public Item(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + MinorType = (item.EMinorType)_buf.GetProperty("minor_type").GetInt32(); + Quality = (item.EItemQuality)_buf.GetProperty("quality").GetInt32(); + IconBackgroud = _buf.GetProperty("icon_backgroud").GetString(); + IconMask = _buf.GetProperty("icon_mask").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + ShowOrder = _buf.GetProperty("show_order").GetInt32(); + } + + public static Item DeserializeItem(JsonElement _buf) + { + return new item.Item(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + public readonly string Name; + public readonly item.EMinorType MinorType; + public readonly item.EItemQuality Quality; + public readonly string IconBackgroud; + public readonly string IconMask; + public readonly string Desc; + public readonly int ShowOrder; + + public const int __ID__ = 2107285806; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "minorType:" + MinorType + "," + + "quality:" + Quality + "," + + "iconBackgroud:" + IconBackgroud + "," + + "iconMask:" + IconMask + "," + + "desc:" + Desc + "," + + "showOrder:" + ShowOrder + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/item.TbItem.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.TbItem.cs new file mode 100644 index 00000000..9b6fa4a2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/item.TbItem.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 System.Text.Json; + + +namespace cfg.item +{ +/// +/// 道具表 +/// +public partial class TbItem +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + item.Item _v; + _v = item.Item.DeserializeItem(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public item.Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public item.Item Get(int key) => _dataMap[key]; + public item.Item this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..e4676fec --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.L10NDemo.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 System.Text.Json; + + +namespace cfg.l10n +{ +public sealed partial class L10NDemo : Luban.BeanBase +{ + public L10NDemo(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Text = _buf.GetProperty("text").GetString(); + } + + public static L10NDemo DeserializeL10NDemo(JsonElement _buf) + { + return new l10n.L10NDemo(_buf); + } + + public readonly int Id; + public readonly string Text; + + public const int __ID__ = -331195887; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..152d4ca3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.PatchDemo.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 System.Text.Json; + + +namespace cfg.l10n +{ +public sealed partial class PatchDemo : Luban.BeanBase +{ + public PatchDemo(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Value = _buf.GetProperty("value").GetInt32(); + } + + public static PatchDemo DeserializePatchDemo(JsonElement _buf) + { + return new l10n.PatchDemo(_buf); + } + + public readonly int Id; + public readonly int Value; + + public const int __ID__ = -1707294656; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.TbL10NDemo.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.TbL10NDemo.cs new file mode 100644 index 00000000..82755a05 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.TbL10NDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.l10n +{ +public partial class TbL10NDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbL10NDemo(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + l10n.L10NDemo _v; + _v = l10n.L10NDemo.DeserializeL10NDemo(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.L10NDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.L10NDemo Get(int key) => _dataMap[key]; + public l10n.L10NDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.TbPatchDemo.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.TbPatchDemo.cs new file mode 100644 index 00000000..63d50c55 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/l10n.TbPatchDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.l10n +{ +public partial class TbPatchDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPatchDemo(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + l10n.PatchDemo _v; + _v = l10n.PatchDemo.DeserializePatchDemo(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.PatchDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.PatchDemo Get(int key) => _dataMap[key]; + public l10n.PatchDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/tag.TbTestTag.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/tag.TbTestTag.cs new file mode 100644 index 00000000..8a31ba5d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/tag.TbTestTag.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.tag +{ +public partial class TbTestTag +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestTag(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + tag.TestTag _v; + _v = tag.TestTag.DeserializeTestTag(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public tag.TestTag GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public tag.TestTag Get(int key) => _dataMap[key]; + public tag.TestTag this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/tag.TestTag.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/tag.TestTag.cs new file mode 100644 index 00000000..894cebcd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/tag.TestTag.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 System.Text.Json; + + +namespace cfg.tag +{ +public sealed partial class TestTag : Luban.BeanBase +{ + public TestTag(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Value = _buf.GetProperty("value").GetString(); + } + + public static TestTag DeserializeTestTag(JsonElement _buf) + { + return new tag.TestTag(_buf); + } + + public readonly int Id; + public readonly string Value; + + public const int __ID__ = 1742933812; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.AccessFlag.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..9bd3f0c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.AccessFlag.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// 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/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Circle.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Circle.cs new file mode 100644 index 00000000..e174f731 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/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 System.Text.Json; + + +namespace cfg.test +{ +/// +/// 圆 +/// +public sealed partial class Circle : Shape +{ + public Circle(JsonElement _buf) : base(_buf) + { + Radius = _buf.GetProperty("radius").GetSingle(); + } + + public static Circle DeserializeCircle(JsonElement _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/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompactString.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompactString.cs new file mode 100644 index 00000000..4531de79 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompactString.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompactString : Luban.BeanBase +{ + public CompactString(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + S2 = _buf.GetProperty("s2").GetString(); + S3 = _buf.GetProperty("s3").GetString(); + } + + public static CompactString DeserializeCompactString(JsonElement _buf) + { + return new test.CompactString(_buf); + } + + public readonly int Id; + public readonly string S2; + public readonly string S3; + + public const int __ID__ = 1968089240; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s2:" + S2 + "," + + "s3:" + S3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..5cb970fc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable1 : Luban.BeanBase +{ + public CompositeJsonTable1(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetString(); + } + + public static CompositeJsonTable1 DeserializeCompositeJsonTable1(JsonElement _buf) + { + return new test.CompositeJsonTable1(_buf); + } + + public readonly int Id; + public readonly string X; + + public const int __ID__ = 1566207894; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..e23318fe --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable2.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable2 : Luban.BeanBase +{ + public CompositeJsonTable2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static CompositeJsonTable2 DeserializeCompositeJsonTable2(JsonElement _buf) + { + return new test.CompositeJsonTable2(_buf); + } + + public readonly int Id; + public readonly int Y; + + public const int __ID__ = 1566207895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..3767af20 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.CompositeJsonTable3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable3 : Luban.BeanBase +{ + public CompositeJsonTable3(JsonElement _buf) + { + A = _buf.GetProperty("a").GetInt32(); + B = _buf.GetProperty("b").GetInt32(); + } + + public static CompositeJsonTable3 DeserializeCompositeJsonTable3(JsonElement _buf) + { + return new test.CompositeJsonTable3(_buf); + } + + public readonly int A; + public readonly int B; + + public const int __ID__ = 1566207896; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "a:" + A + "," + + "b:" + B + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DateTimeRange.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..887f1b47 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DateTimeRange.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DateTimeRange : Luban.BeanBase +{ + public DateTimeRange(JsonElement _buf) + { + StartTime = _buf.GetProperty("start_time").GetInt64(); + EndTime = _buf.GetProperty("end_time").GetInt64(); + } + + public static DateTimeRange DeserializeDateTimeRange(JsonElement _buf) + { + return new test.DateTimeRange(_buf); + } + + public readonly long StartTime; + public readonly long EndTime; + + public const int __ID__ = 495315430; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "startTime:" + StartTime + "," + + "endTime:" + EndTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Decorator.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Decorator.cs new file mode 100644 index 00000000..86bc8712 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Decorator.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Decorator : test.ItemBase +{ + public Decorator(JsonElement _buf) : base(_buf) + { + Duration = _buf.GetProperty("duration").GetInt32(); + } + + public static Decorator DeserializeDecorator(JsonElement _buf) + { + return new test.Decorator(_buf); + } + + public readonly int Duration; + + public const int __ID__ = -625155649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "duration:" + Duration + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD2.cs new file mode 100644 index 00000000..14eec596 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoD2 : test.DemoDynamic +{ + public DemoD2(JsonElement _buf) : base(_buf) + { + X2 = _buf.GetProperty("x2").GetInt32(); + } + + public static DemoD2 DeserializeDemoD2(JsonElement _buf) + { + return new test.DemoD2(_buf); + } + + public readonly int X2; + + public const int __ID__ = -2138341747; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD3.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD3.cs new file mode 100644 index 00000000..56b1b39d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD3.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class DemoD3 : test.DemoDynamic +{ + public DemoD3(JsonElement _buf) : base(_buf) + { + X3 = _buf.GetProperty("x3").GetInt32(); + } + + public static DemoD3 DeserializeDemoD3(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X3; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD5.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD5.cs new file mode 100644 index 00000000..b2c01c29 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoD5.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoD5 : test.DemoDynamic +{ + public DemoD5(JsonElement _buf) : base(_buf) + { + Time = test.DateTimeRange.DeserializeDateTimeRange(_buf.GetProperty("time")); + } + + public static DemoD5 DeserializeDemoD5(JsonElement _buf) + { + return new test.DemoD5(_buf); + } + + public readonly test.DateTimeRange Time; + + public const int __ID__ = -2138341744; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + Time?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "time:" + Time + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoDynamic.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..b1757c88 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoDynamic.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class DemoDynamic : Luban.BeanBase +{ + public DemoDynamic(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + } + + public static DemoDynamic DeserializeDemoDynamic(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "DemoD2": return new test.DemoD2(_buf); + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + case "DemoD5": return new test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X1; + + + public virtual void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoE1.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoE1.cs new file mode 100644 index 00000000..71046815 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoE1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoE1 : test.DemoD3 +{ + public DemoE1(JsonElement _buf) : base(_buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + } + + public static DemoE1 DeserializeDemoE1(JsonElement _buf) + { + return new test.DemoE1(_buf); + } + + public readonly int X4; + + public const int __ID__ = -2138341717; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoE2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoE2.cs new file mode 100644 index 00000000..37bbcb8b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoE2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial struct DemoE2 +{ + public DemoE2(JsonElement _buf) + { + {if (_buf.TryGetProperty("y1", out var _j) && _j.ValueKind != JsonValueKind.Null) { Y1 = _j.GetInt32(); } else { Y1 = null; } } + Y2 = _buf.GetProperty("y2").GetBoolean(); + } + + public static DemoE2 DeserializeDemoE2(JsonElement _buf) + { + return new test.DemoE2(_buf); + } + + public readonly int? Y1; + public readonly bool Y2; + + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoEnum.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..aab395ed --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoEnum.cs @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoFlag.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..b9b5d903 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoFlag.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoGroup.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..3e95f4f4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoGroup.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoGroup : Luban.BeanBase +{ + public DemoGroup(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X5 = test.InnerGroup.DeserializeInnerGroup(_buf.GetProperty("x5")); + } + + public static DemoGroup DeserializeDemoGroup(JsonElement _buf) + { + return new test.DemoGroup(_buf); + } + + public readonly int Id; + public readonly test.InnerGroup X5; + + public const int __ID__ = -379263008; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X5?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x5:" + X5 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..024d8bd4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,94 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoPrimitiveTypesTable : Luban.BeanBase +{ + public DemoPrimitiveTypesTable(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetBoolean(); + X2 = _buf.GetProperty("x2").GetByte(); + X3 = _buf.GetProperty("x3").GetInt16(); + X4 = _buf.GetProperty("x4").GetInt32(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X7 = _buf.GetProperty("x7").GetDouble(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + V3 = vec3.Deserializevec3(_buf.GetProperty("v3")); + V4 = vec4.Deserializevec4(_buf.GetProperty("v4")); + T1 = _buf.GetProperty("t1").GetInt64(); + } + + public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(JsonElement _buf) + { + return new test.DemoPrimitiveTypesTable(_buf); + } + + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly int X4; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly string S1; + public readonly string S2; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + public readonly long T1; + + public const int __ID__ = -370934083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "t1:" + T1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..0637f2d1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoSingletonType.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoSingletonType : Luban.BeanBase +{ + public DemoSingletonType(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Date = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("date")); + } + + public static DemoSingletonType DeserializeDemoSingletonType(JsonElement _buf) + { + return new test.DemoSingletonType(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.DemoDynamic Date; + + public const int __ID__ = 539196998; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + Date?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "date:" + Date + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoType1.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoType1.cs new file mode 100644 index 00000000..da73e7da --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoType1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoType1 : Luban.BeanBase +{ + public DemoType1(JsonElement _buf) + { + X1 = _buf.GetProperty("x1").GetInt32(); + } + + public static DemoType1 DeserializeDemoType1(JsonElement _buf) + { + return new test.DemoType1(_buf); + } + + public readonly int X1; + + public const int __ID__ = -367048296; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoType2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoType2.cs new file mode 100644 index 00000000..1771eb83 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DemoType2.cs @@ -0,0 +1,130 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DemoType2 : Luban.BeanBase +{ + public DemoType2(JsonElement _buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X2 = _buf.GetProperty("x2").GetByte(); + X3 = _buf.GetProperty("x3").GetInt16(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + X7 = _buf.GetProperty("x7").GetDouble(); + X80 = _buf.GetProperty("x8_0").GetInt16(); + X8 = _buf.GetProperty("x8").GetInt32(); + X9 = _buf.GetProperty("x9").GetInt64(); + X10 = _buf.GetProperty("x10").GetString(); + X12 = test.DemoType1.DeserializeDemoType1(_buf.GetProperty("x12")); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + S1 = _buf.GetProperty("s1").GetString(); + T1 = _buf.GetProperty("t1").GetInt64(); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k2"); K2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K2.Add(__v0); } } + { var __json0 = _buf.GetProperty("k5"); K5 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K5.Add(__v0); } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k15"); int _n0 = __json0.GetArrayLength(); K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoDynamic __v0; __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); K15[__index0++] = __v0; } } + } + + public static DemoType2 DeserializeDemoType2(JsonElement _buf) + { + return new test.DemoType2(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly short X80; + public readonly int X8; + public readonly long X9; + public readonly string X10; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly string S1; + public readonly long T1; + public readonly int[] K1; + public readonly System.Collections.Generic.List K2; + public readonly System.Collections.Generic.HashSet K5; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -367048295; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "x80:" + X80 + "," + + "x8:" + X8 + "," + + "x9:" + X9 + "," + + "x10:" + X10 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "s1:" + S1 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k5:" + Luban.StringUtil.CollectionToString(K5) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DetectEncoding.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..04b4cf0a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.DetectEncoding.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class DetectEncoding : Luban.BeanBase +{ + public DetectEncoding(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + } + + public static DetectEncoding DeserializeDetectEncoding(JsonElement _buf) + { + return new test.DetectEncoding(_buf); + } + + public readonly int Id; + public readonly string Name; + + public const int __ID__ = -1154609646; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..db34ab8d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestEmptyEnum.cs @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum + { + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..2b27e566 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestQuality.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..f82389f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestQuality.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.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestUeType.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..c69207fe --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ETestUeType.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Equipment.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Equipment.cs new file mode 100644 index 00000000..e8561b59 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Equipment.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Equipment : test.ItemBase +{ + public Equipment(JsonElement _buf) : base(_buf) + { + Attr = (test.DemoEnum)_buf.GetProperty("attr").GetInt32(); + Value = _buf.GetProperty("value").GetInt32(); + } + + public static Equipment DeserializeEquipment(JsonElement _buf) + { + return new test.Equipment(_buf); + } + + public readonly test.DemoEnum Attr; + public readonly int Value; + + public const int __ID__ = -76837102; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "attr:" + Attr + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..e6dd890a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ExcelFromJson.cs @@ -0,0 +1,98 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJson : Luban.BeanBase +{ + public ExcelFromJson(JsonElement _buf) + { + X4 = _buf.GetProperty("x4").GetInt32(); + X1 = _buf.GetProperty("x1").GetBoolean(); + X5 = _buf.GetProperty("x5").GetInt64(); + X6 = _buf.GetProperty("x6").GetSingle(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + T1 = _buf.GetProperty("t1").GetInt64(); + X12 = test.DemoType1.DeserializeDemoType1(_buf.GetProperty("x12")); + X13 = (test.DemoEnum)_buf.GetProperty("x13").GetInt32(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf.GetProperty("x14")); + { var __json0 = _buf.GetProperty("k1"); int _n0 = __json0.GetArrayLength(); K1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); K1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("k8"); K8 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); K8.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("k9"); K9 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoE2 __v0; __v0 = test.DemoE2.DeserializeDemoE2(__e0); K9.Add(__v0); } } + { var __json0 = _buf.GetProperty("k15"); int _n0 = __json0.GetArrayLength(); K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoDynamic __v0; __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); K15[__index0++] = __v0; } } + } + + public static ExcelFromJson DeserializeExcelFromJson(JsonElement _buf) + { + return new test.ExcelFromJson(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly string S1; + public readonly string S2; + public readonly long T1; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly int[] K1; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -1485706483; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "t1:" + T1 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..0c254890 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ExcelFromJsonMultiRow.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJsonMultiRow : Luban.BeanBase +{ + public ExcelFromJsonMultiRow(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + { var __json0 = _buf.GetProperty("items"); Items = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.TestRow __v0; __v0 = test.TestRow.DeserializeTestRow(__e0); Items.Add(__v0); } } + } + + public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(JsonElement _buf) + { + return new test.ExcelFromJsonMultiRow(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 715335694; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Foo.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Foo.cs new file mode 100644 index 00000000..95de0c5f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Foo.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Foo : Luban.BeanBase +{ + public Foo(JsonElement _buf) + { + Y1 = _buf.GetProperty("y1").GetInt32(); + Y2 = _buf.GetProperty("y2").GetInt32(); + Y3 = _buf.GetProperty("y3").GetInt32(); + } + + public static Foo DeserializeFoo(JsonElement _buf) + { + return new test.Foo(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + + public const int __ID__ = -1147950774; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.H1.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.H1.cs new file mode 100644 index 00000000..1e1b6416 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.H1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class H1 : Luban.BeanBase +{ + public H1(JsonElement _buf) + { + Y2 = test.H2.DeserializeH2(_buf.GetProperty("y2")); + Y3 = _buf.GetProperty("y3").GetInt32(); + } + + public static H1 DeserializeH1(JsonElement _buf) + { + return new test.H1(_buf); + } + + public readonly test.H2 Y2; + public readonly int Y3; + + public const int __ID__ = -1422503995; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Y2?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.H2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.H2.cs new file mode 100644 index 00000000..77206a07 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.H2.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class H2 : Luban.BeanBase +{ + public H2(JsonElement _buf) + { + Z2 = _buf.GetProperty("z2").GetInt32(); + Z3 = _buf.GetProperty("z3").GetInt32(); + } + + public static H2 DeserializeH2(JsonElement _buf) + { + return new test.H2(_buf); + } + + public readonly int Z2; + public readonly int Z3; + + public const int __ID__ = -1422503994; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "z2:" + Z2 + "," + + "z3:" + Z3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.InnerGroup.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..eff9471c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.InnerGroup.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class InnerGroup : Luban.BeanBase +{ + public InnerGroup(JsonElement _buf) + { + Y1 = _buf.GetProperty("y1").GetInt32(); + } + + public static InnerGroup DeserializeInnerGroup(JsonElement _buf) + { + return new test.InnerGroup(_buf); + } + + public readonly int Y1; + + public const int __ID__ = -587873083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Item.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Item.cs new file mode 100644 index 00000000..e760f925 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Item.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Item : test.ItemBase +{ + public Item(JsonElement _buf) : base(_buf) + { + Num = _buf.GetProperty("num").GetInt32(); + Price = _buf.GetProperty("price").GetInt32(); + } + + public static Item DeserializeItem(JsonElement _buf) + { + return new test.Item(_buf); + } + + public readonly int Num; + public readonly int Price; + + public const int __ID__ = -1226641649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "num:" + Num + "," + + "price:" + Price + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ItemBase.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ItemBase.cs new file mode 100644 index 00000000..12eadb88 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.ItemBase.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class ItemBase : Luban.BeanBase +{ + public ItemBase(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static ItemBase DeserializeItemBase(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Item": return new test.Item(_buf); + case "Equipment": return new test.Equipment(_buf); + case "Decorator": return new test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + + + public virtual void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiIndexList.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..ea6512dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiIndexList : Luban.BeanBase +{ + public MultiIndexList(JsonElement _buf) + { + Id1 = _buf.GetProperty("id1").GetInt32(); + Id2 = _buf.GetProperty("id2").GetInt64(); + Id3 = _buf.GetProperty("id3").GetString(); + Num = _buf.GetProperty("num").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static MultiIndexList DeserializeMultiIndexList(JsonElement _buf) + { + return new test.MultiIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 2016237651; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..1ad73eab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowRecord.cs @@ -0,0 +1,78 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowRecord : Luban.BeanBase +{ + public MultiRowRecord(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + { var __json0 = _buf.GetProperty("one_rows"); OneRows = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); OneRows.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows1"); MultiRows1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); MultiRows1.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows2"); int _n0 = __json0.GetArrayLength(); MultiRows2 = new test.MultiRowType1[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); MultiRows2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("multi_rows4"); MultiRows4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); MultiRows4.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("multi_rows5"); MultiRows5 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType3 __v0; __v0 = test.MultiRowType3.DeserializeMultiRowType3(__e0); MultiRows5.Add(__v0); } } + { var __json0 = _buf.GetProperty("multi_rows6"); MultiRows6 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); MultiRows6.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("multi_rows7"); MultiRows7 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); MultiRows7.Add(_k0, _v0); } } + } + + public static MultiRowRecord DeserializeMultiRowRecord(JsonElement _buf) + { + return new test.MultiRowRecord(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly System.Collections.Generic.List OneRows; + public readonly System.Collections.Generic.List MultiRows1; + public readonly test.MultiRowType1[] MultiRows2; + public readonly System.Collections.Generic.Dictionary MultiRows4; + public readonly System.Collections.Generic.List MultiRows5; + public readonly System.Collections.Generic.Dictionary MultiRows6; + public readonly System.Collections.Generic.Dictionary MultiRows7; + + public const int __ID__ = -501249394; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in OneRows) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows1) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows2) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows4.Values) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows5) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows6.Values) { _e?.ResolveRef(tables); } + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "oneRows:" + Luban.StringUtil.CollectionToString(OneRows) + "," + + "multiRows1:" + Luban.StringUtil.CollectionToString(MultiRows1) + "," + + "multiRows2:" + Luban.StringUtil.CollectionToString(MultiRows2) + "," + + "multiRows4:" + Luban.StringUtil.CollectionToString(MultiRows4) + "," + + "multiRows5:" + Luban.StringUtil.CollectionToString(MultiRows5) + "," + + "multiRows6:" + Luban.StringUtil.CollectionToString(MultiRows6) + "," + + "multiRows7:" + Luban.StringUtil.CollectionToString(MultiRows7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..07ff31c4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowTitle.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowTitle : Luban.BeanBase +{ + public MultiRowTitle(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Name = _buf.GetProperty("name").GetString(); + X1 = test.H1.DeserializeH1(_buf.GetProperty("x1")); + {if (_buf.TryGetProperty("x2_0", out var _j) && _j.ValueKind != JsonValueKind.Null) { X20 = test.H2.DeserializeH2(_j); } else { X20 = null; } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); int _n0 = __json0.GetArrayLength(); X3 = new test.H2[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X3[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("x4"); int _n0 = __json0.GetArrayLength(); X4 = new test.H2[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.H2 __v0; __v0 = test.H2.DeserializeH2(__e0); X4[__index0++] = __v0; } } + } + + public static MultiRowTitle DeserializeMultiRowTitle(JsonElement _buf) + { + return new test.MultiRowTitle(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.H1 X1; + public readonly test.H2 X20; + public readonly System.Collections.Generic.List X2; + public readonly test.H2[] X3; + public readonly test.H2[] X4; + + public const int __ID__ = 540002427; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + X1?.ResolveRef(tables); + X20?.ResolveRef(tables); + foreach (var _e in X2) { _e?.ResolveRef(tables); } + foreach (var _e in X3) { _e?.ResolveRef(tables); } + foreach (var _e in X4) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "x1:" + X1 + "," + + "x20:" + X20 + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType1.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..d4b0d7a9 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType1.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType1 : Luban.BeanBase +{ + public MultiRowType1(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + } + + public static MultiRowType1 DeserializeMultiRowType1(JsonElement _buf) + { + return new test.MultiRowType1(_buf); + } + + public readonly int Id; + public readonly int X; + + public const int __ID__ = 540474970; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..6670ad14 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType2 : Luban.BeanBase +{ + public MultiRowType2(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetSingle(); + } + + public static MultiRowType2 DeserializeMultiRowType2(JsonElement _buf) + { + return new test.MultiRowType2(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly float Y; + + public const int __ID__ = 540474971; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType3.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..b8f08399 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiRowType3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiRowType3 : Luban.BeanBase +{ + public MultiRowType3(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("items"); Items = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.MultiRowType1 __v0; __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); Items.Add(__v0); } } + } + + public static MultiRowType3 DeserializeMultiRowType3(JsonElement _buf) + { + return new test.MultiRowType3(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 540474972; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..ecaa1c27 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class MultiUnionIndexList : Luban.BeanBase +{ + public MultiUnionIndexList(JsonElement _buf) + { + Id1 = _buf.GetProperty("id1").GetInt32(); + Id2 = _buf.GetProperty("id2").GetInt64(); + Id3 = _buf.GetProperty("id3").GetString(); + Num = _buf.GetProperty("num").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + } + + public static MultiUnionIndexList DeserializeMultiUnionIndexList(JsonElement _buf) + { + return new test.MultiUnionIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 1966847134; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.NotIndexList.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..1ca6ebec --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.NotIndexList.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class NotIndexList : Luban.BeanBase +{ + public NotIndexList(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static NotIndexList DeserializeNotIndexList(JsonElement _buf) + { + return new test.NotIndexList(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = -50446599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.RefBean.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.RefBean.cs new file mode 100644 index 00000000..be59886d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.RefBean.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class RefBean : test.RefDynamicBase +{ + public RefBean(JsonElement _buf) : base(_buf) + { + { var __json0 = _buf.GetProperty("arr"); Arr = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); Arr.Add(__v0); } } + } + + public static RefBean DeserializeRefBean(JsonElement _buf) + { + return new test.RefBean(_buf); + } + + public readonly System.Collections.Generic.List Arr; + + public const int __ID__ = 1963260263; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "arr:" + Luban.StringUtil.CollectionToString(Arr) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..8c378c02 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.RefDynamicBase.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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class RefDynamicBase : Luban.BeanBase +{ + public RefDynamicBase(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + X_Ref = null; + } + + public static RefDynamicBase DeserializeRefDynamicBase(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "RefBean": return new test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X; + public test.TestBeRef X_Ref; + + + public virtual void ResolveRef(Tables tables) + { + X_Ref = tables.TbTestBeRef.GetOrDefault(X); + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Shape.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Shape.cs new file mode 100644 index 00000000..36d3c17a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Shape.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public abstract partial class Shape : Luban.BeanBase +{ + public Shape(JsonElement _buf) + { + } + + public static Shape DeserializeShape(JsonElement _buf) + { + switch (_buf.GetProperty("$type").GetString()) + { + case "Circle": return new test.Circle(_buf); + case "test2.Rectangle": return new test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable1.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable1.cs new file mode 100644 index 00000000..ab333b9f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable1.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable1 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable1(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.CompositeJsonTable1 _v; + _v = test.CompositeJsonTable1.DeserializeCompositeJsonTable1(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable1 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable1 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable1 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable2.cs new file mode 100644 index 00000000..0a0b26ad --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.CompositeJsonTable2 _v; + _v = test.CompositeJsonTable2.DeserializeCompositeJsonTable2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable2 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable3.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable3.cs new file mode 100644 index 00000000..674f8d2b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbCompositeJsonTable3.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable3 +{ + + private readonly test.CompositeJsonTable3 _data; + + public TbCompositeJsonTable3(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(_buf[0]); + } + + + public int A => _data.A; + public int B => _data.B; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDataFromMisc.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDataFromMisc.cs new file mode 100644 index 00000000..5931a166 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDataFromMisc.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDataFromMisc +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDataFromMisc(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDefineFromExcel2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDefineFromExcel2.cs new file mode 100644 index 00000000..dc08e676 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDefineFromExcel2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDefineFromExcel2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDefineFromExcel2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + DefineFromExcel2 _v; + _v = DefineFromExcel2.DeserializeDefineFromExcel2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public DefineFromExcel2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public DefineFromExcel2 Get(int key) => _dataMap[key]; + public DefineFromExcel2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDemoGroup.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDemoGroup.cs new file mode 100644 index 00000000..651a7146 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDemoGroup.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDemoGroup +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDemoPrimitive.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDemoPrimitive.cs new file mode 100644 index 00000000..7d4b3e46 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDemoPrimitive.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDemoPrimitive +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoPrimitive(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoPrimitiveTypesTable _v; + _v = test.DemoPrimitiveTypesTable.DeserializeDemoPrimitiveTypesTable(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoPrimitiveTypesTable GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoPrimitiveTypesTable Get(int key) => _dataMap[key]; + public test.DemoPrimitiveTypesTable this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDetectCsvEncoding.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDetectCsvEncoding.cs new file mode 100644 index 00000000..f5d39fa4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbDetectCsvEncoding.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbDetectCsvEncoding +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDetectCsvEncoding(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DetectEncoding _v; + _v = test.DetectEncoding.DeserializeDetectEncoding(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DetectEncoding GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DetectEncoding Get(int key) => _dataMap[key]; + public test.DetectEncoding this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbExcelFromJson.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbExcelFromJson.cs new file mode 100644 index 00000000..f665b8d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbExcelFromJson.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbExcelFromJson +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJson(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ExcelFromJson _v; + _v = test.ExcelFromJson.DeserializeExcelFromJson(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJson GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJson Get(int key) => _dataMap[key]; + public test.ExcelFromJson this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..a27ae538 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbExcelFromJsonMultiRow.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbExcelFromJsonMultiRow +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJsonMultiRow(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ExcelFromJsonMultiRow _v; + _v = test.ExcelFromJsonMultiRow.DeserializeExcelFromJsonMultiRow(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJsonMultiRow GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJsonMultiRow Get(int key) => _dataMap[key]; + public test.ExcelFromJsonMultiRow this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbFullTypes.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbFullTypes.cs new file mode 100644 index 00000000..5f16bc2e --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbFullTypes.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbFullTypes +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbFullTypes(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbItem2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbItem2.cs new file mode 100644 index 00000000..47af5b56 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbItem2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbItem2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.ItemBase _v; + _v = test.ItemBase.DeserializeItemBase(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public T GetOrDefaultAs(int key) where T : test.ItemBase => _dataMap.TryGetValue(key, out var v) ? (T)v : null; + public T GetAs(int key) where T : test.ItemBase => (T)_dataMap[key]; + public test.ItemBase GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ItemBase Get(int key) => _dataMap[key]; + public test.ItemBase this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiIndexList.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiIndexList.cs new file mode 100644 index 00000000..858084fb --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiIndexList.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary _dataMap_id1; + private System.Collections.Generic.Dictionary _dataMap_id2; + private System.Collections.Generic.Dictionary _dataMap_id3; + + public TbMultiIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiIndexList _v; + _v = test.MultiIndexList.DeserializeMultiIndexList(_ele); + _dataList.Add(_v); + } + _dataMap_id1 = new System.Collections.Generic.Dictionary(); + _dataMap_id2 = new System.Collections.Generic.Dictionary(); + _dataMap_id3 = new System.Collections.Generic.Dictionary(); + foreach(var _v in _dataList) + { + _dataMap_id1.Add(_v.Id1, _v); + _dataMap_id2.Add(_v.Id2, _v); + _dataMap_id3.Add(_v.Id3, _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiIndexList GetById1(int key) => _dataMap_id1.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById2(long key) => _dataMap_id2.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById3(string key) => _dataMap_id3.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiRowRecord.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiRowRecord.cs new file mode 100644 index 00000000..10817eca --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiRowRecord.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiRowRecord +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowRecord(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiRowRecord _v; + _v = test.MultiRowRecord.DeserializeMultiRowRecord(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowRecord GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowRecord Get(int key) => _dataMap[key]; + public test.MultiRowRecord this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiRowTitle.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiRowTitle.cs new file mode 100644 index 00000000..a56ba92a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiRowTitle.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiRowTitle +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowTitle(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiRowTitle _v; + _v = test.MultiRowTitle.DeserializeMultiRowTitle(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowTitle GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowTitle Get(int key) => _dataMap[key]; + public test.MultiRowTitle this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiUnionIndexList.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiUnionIndexList.cs new file mode 100644 index 00000000..79e8a6b9 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbMultiUnionIndexList.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbMultiUnionIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList> _dataMapUnion; + + public TbMultiUnionIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.MultiUnionIndexList _v; + _v = test.MultiUnionIndexList.DeserializeMultiUnionIndexList(_ele); + _dataList.Add(_v); + } + _dataMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList>(); + foreach(var _v in _dataList) + { + _dataMapUnion.Add((_v.Id1, _v.Id2, _v.Id3), _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiUnionIndexList Get(int id1, long id2, string id3) => _dataMapUnion.TryGetValue((id1, id2, id3), out test.MultiUnionIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbNotIndexList.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbNotIndexList.cs new file mode 100644 index 00000000..f687e02f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbNotIndexList.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbNotIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + + public TbNotIndexList(JsonElement _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.NotIndexList _v; + _v = test.NotIndexList.DeserializeNotIndexList(_ele); + _dataList.Add(_v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbSingleton.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbSingleton.cs new file mode 100644 index 00000000..a2b54d67 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbSingleton.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbSingleton +{ + + private readonly test.DemoSingletonType _data; + + public TbSingleton(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.DemoSingletonType.DeserializeDemoSingletonType(_buf[0]); + } + + + public int Id => _data.Id; + public string Name => _data.Name; + public test.DemoDynamic Date => _data.Date; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestBeRef.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestBeRef.cs new file mode 100644 index 00000000..53bc5e4f --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestBeRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestBeRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestBeRef2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestBeRef2.cs new file mode 100644 index 00000000..03dc0464 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestBeRef2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestBeRef2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef2(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestGlobal.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestGlobal.cs new file mode 100644 index 00000000..2dffa1e5 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestGlobal.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestGlobal +{ + + private readonly test.TestGlobal _data; + + public TbTestGlobal(JsonElement _buf) + { + int n = _buf.GetArrayLength(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.TestGlobal.DeserializeTestGlobal(_buf[0]); + } + + + public int UnlockEquip => _data.UnlockEquip; + public int UnlockHero => _data.UnlockHero; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestIndex.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestIndex.cs new file mode 100644 index 00000000..0ce908b3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestIndex.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestIndex +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestIndex(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestIndex _v; + _v = test.TestIndex.DeserializeTestIndex(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestIndex GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestIndex Get(int key) => _dataMap[key]; + public test.TestIndex this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMap.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMap.cs new file mode 100644 index 00000000..f96894e2 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMap.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMap +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMap(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMap _v; + _v = test.TestMap.DeserializeTestMap(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMap GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMap Get(int key) => _dataMap[key]; + public test.TestMap this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMapper.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMapper.cs new file mode 100644 index 00000000..98874868 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMapper.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMapper +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMapper(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMapper _v; + _v = test.TestMapper.DeserializeTestMapper(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMapper GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMapper Get(int key) => _dataMap[key]; + public test.TestMapper this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMultiColumn.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMultiColumn.cs new file mode 100644 index 00000000..43e45c39 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestMultiColumn.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestMultiColumn +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMultiColumn(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestMultiColumn _v; + _v = test.TestMultiColumn.DeserializeTestMultiColumn(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMultiColumn GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMultiColumn Get(int key) => _dataMap[key]; + public test.TestMultiColumn this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestNull.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestNull.cs new file mode 100644 index 00000000..7dcda5df --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestNull.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestNull +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestNull(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestNull _v; + _v = test.TestNull.DeserializeTestNull(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestNull GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestNull Get(int key) => _dataMap[key]; + public test.TestNull this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestRef.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestRef.cs new file mode 100644 index 00000000..fa0c1acc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestRef(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestRef _v; + _v = test.TestRef.DeserializeTestRef(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestRef Get(int key) => _dataMap[key]; + public test.TestRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestScriptableObject.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestScriptableObject.cs new file mode 100644 index 00000000..3b9ce5d1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestScriptableObject.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestScriptableObject +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestScriptableObject(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestScriptableObject _v; + _v = test.TestScriptableObject.DeserializeTestScriptableObject(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestScriptableObject GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestScriptableObject Get(int key) => _dataMap[key]; + public test.TestScriptableObject this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestSet.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestSet.cs new file mode 100644 index 00000000..f598f867 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestSet.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestSet +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSet(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestSet _v; + _v = test.TestSet.DeserializeTestSet(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSet GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSet Get(int key) => _dataMap[key]; + public test.TestSet this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestSize.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestSize.cs new file mode 100644 index 00000000..41eecd72 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestSize.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestSize +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSize(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestSize _v; + _v = test.TestSize.DeserializeTestSize(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSize GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSize Get(int key) => _dataMap[key]; + public test.TestSize this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestString.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestString.cs new file mode 100644 index 00000000..87bb85ab --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TbTestString.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public partial class TbTestString +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestString(JsonElement _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JsonElement _ele in _buf.EnumerateArray()) + { + test.TestString _v; + _v = test.TestString.DeserializeTestString(_ele); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestString GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestString Get(string key) => _dataMap[key]; + public test.TestString this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Test3.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Test3.cs new file mode 100644 index 00000000..cdd2258b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.Test3.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class Test3 : Luban.BeanBase +{ + public Test3(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetInt32(); + } + + public static Test3 DeserializeTest3(JsonElement _buf) + { + return new test.Test3(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = 638540133; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestBeRef.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..842069cd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestBeRef.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestBeRef : Luban.BeanBase +{ + public TestBeRef(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Count = _buf.GetProperty("count").GetInt32(); + } + + public static TestBeRef DeserializeTestBeRef(JsonElement _buf) + { + return new test.TestBeRef(_buf); + } + + public readonly int Id; + public readonly int Count; + + public const int __ID__ = 1934403938; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "count:" + Count + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestGlobal.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..c5f0262b --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestGlobal.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestGlobal : Luban.BeanBase +{ + public TestGlobal(JsonElement _buf) + { + UnlockEquip = _buf.GetProperty("unlock_equip").GetInt32(); + UnlockHero = _buf.GetProperty("unlock_hero").GetInt32(); + } + + public static TestGlobal DeserializeTestGlobal(JsonElement _buf) + { + return new test.TestGlobal(_buf); + } + + public readonly int UnlockEquip; + public readonly int UnlockHero; + + public const int __ID__ = -12548655; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "unlockEquip:" + UnlockEquip + "," + + "unlockHero:" + UnlockHero + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestIndex.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestIndex.cs new file mode 100644 index 00000000..8a5f60a0 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestIndex.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestIndex : Luban.BeanBase +{ + public TestIndex(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("eles"); Eles = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoType1 __v0; __v0 = test.DemoType1.DeserializeDemoType1(__e0); Eles.Add(__v0); } } + foreach(var _v in Eles) + { + Eles_Index.Add(_v.X1, _v); + } + } + + public static TestIndex DeserializeTestIndex(JsonElement _buf) + { + return new test.TestIndex(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Eles; + public readonly System.Collections.Generic.Dictionary Eles_Index = new System.Collections.Generic.Dictionary(); + + public const int __ID__ = 1941154020; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Eles) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "eles:" + Luban.StringUtil.CollectionToString(Eles) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMap.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMap.cs new file mode 100644 index 00000000..5297d7c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMap.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMap : Luban.BeanBase +{ + public TestMap(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Id_Ref = null; + { var __json0 = _buf.GetProperty("x1"); X1 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X1.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { long _k0; _k0 = __e0[0].GetInt64(); int _v0; _v0 = __e0[1].GetInt32(); X2.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { string _k0; _k0 = __e0[0].GetString(); int _v0; _v0 = __e0[1].GetInt32(); X3.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoEnum _k0; _k0 = (test.DemoEnum)__e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X4.Add(_k0, _v0); } } + } + + public static TestMap DeserializeTestMap(JsonElement _buf) + { + return new test.TestMap(_buf); + } + + public readonly int Id; + public test.TestIndex Id_Ref; + public readonly System.Collections.Generic.Dictionary X1; + public readonly System.Collections.Generic.Dictionary X2; + public readonly System.Collections.Generic.Dictionary X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = -543227410; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Id_Ref = tables.TbTestIndex.GetOrDefault(Id); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMapper.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMapper.cs new file mode 100644 index 00000000..ee5e655a --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMapper.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMapper : Luban.BeanBase +{ + public TestMapper(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + AudioType = (AudioType)_buf.GetProperty("audio_type").GetInt32(); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + } + + public static TestMapper DeserializeTestMapper(JsonElement _buf) + { + return new test.TestMapper(_buf); + } + + public readonly int Id; + public readonly AudioType AudioType; + public readonly vec2 V2; + + public const int __ID__ = 149110895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "audioType:" + AudioType + "," + + "v2:" + V2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..3b6ee1de --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestMultiColumn.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestMultiColumn : Luban.BeanBase +{ + public TestMultiColumn(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + A = test.Foo.DeserializeFoo(_buf.GetProperty("a")); + B = test.Foo.DeserializeFoo(_buf.GetProperty("b")); + C = test.Foo.DeserializeFoo(_buf.GetProperty("c")); + } + + public static TestMultiColumn DeserializeTestMultiColumn(JsonElement _buf) + { + return new test.TestMultiColumn(_buf); + } + + public readonly int Id; + public readonly test.Foo A; + public readonly test.Foo B; + public readonly test.Foo C; + + public const int __ID__ = -294473599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + A?.ResolveRef(tables); + B?.ResolveRef(tables); + C?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "a:" + A + "," + + "b:" + B + "," + + "c:" + C + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestNull.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestNull.cs new file mode 100644 index 00000000..397a60a4 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestNull.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestNull : Luban.BeanBase +{ + public TestNull(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + {if (_buf.TryGetProperty("x1", out var _j) && _j.ValueKind != JsonValueKind.Null) { X1 = _j.GetInt32(); } else { X1 = null; } } + {if (_buf.TryGetProperty("x2", out var _j) && _j.ValueKind != JsonValueKind.Null) { X2 = (test.DemoEnum?)_j.GetInt32(); } else { X2 = null; } } + {if (_buf.TryGetProperty("x3", out var _j) && _j.ValueKind != JsonValueKind.Null) { X3 = test.DemoType1.DeserializeDemoType1(_j); } else { X3 = null; } } + {if (_buf.TryGetProperty("x4", out var _j) && _j.ValueKind != JsonValueKind.Null) { X4 = test.DemoDynamic.DeserializeDemoDynamic(_j); } else { X4 = null; } } + {if (_buf.TryGetProperty("s1", out var _j) && _j.ValueKind != JsonValueKind.Null) { S1 = _j.GetString(); } else { S1 = null; } } + {if (_buf.TryGetProperty("s2", out var _j) && _j.ValueKind != JsonValueKind.Null) { S2 = _j.GetString(); } else { S2 = null; } } + } + + public static TestNull DeserializeTestNull(JsonElement _buf) + { + return new test.TestNull(_buf); + } + + public readonly int Id; + public readonly int? X1; + public readonly test.DemoEnum? X2; + public readonly test.DemoType1 X3; + public readonly test.DemoDynamic X4; + public readonly string S1; + public readonly string S2; + + public const int __ID__ = 339868469; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + X3?.ResolveRef(tables); + X4?.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestRef.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestRef.cs new file mode 100644 index 00000000..93ea83a3 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestRef.cs @@ -0,0 +1,132 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestRef : Luban.BeanBase +{ + public TestRef(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X1 = _buf.GetProperty("x1").GetInt32(); + X1_Ref = null; + X12 = _buf.GetProperty("x1_2").GetInt32(); + X12_Ref = null; + X2 = _buf.GetProperty("x2").GetInt32(); + X3 = _buf.GetProperty("x3").GetInt32(); + X4 = _buf.GetProperty("x4").GetInt32(); + X4_Ref = null; + { var __json0 = _buf.GetProperty("a1"); int _n0 = __json0.GetArrayLength(); A1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); A1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("a2"); int _n0 = __json0.GetArrayLength(); A2 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); A2[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("b1"); B1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B1.Add(__v0); } } + { var __json0 = _buf.GetProperty("b2"); B2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B2.Add(__v0); } } + { var __json0 = _buf.GetProperty("c1"); C1 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); C1.Add(__v0); } } + { var __json0 = _buf.GetProperty("c2"); C2 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); C2.Add(__v0); } } + { var __json0 = _buf.GetProperty("d1"); D1 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); D1.Add(_k0, _v0); } } + { var __json0 = _buf.GetProperty("d2"); D2 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); D2.Add(_k0, _v0); } } + E1 = _buf.GetProperty("e1").GetInt32(); + E2 = _buf.GetProperty("e2").GetInt64(); + E3 = _buf.GetProperty("e3").GetString(); + F1 = _buf.GetProperty("f1").GetInt32(); + F2 = _buf.GetProperty("f2").GetInt64(); + F3 = _buf.GetProperty("f3").GetString(); + S1 = test.RefDynamicBase.DeserializeRefDynamicBase(_buf.GetProperty("s1")); + } + + public static TestRef DeserializeTestRef(JsonElement _buf) + { + return new test.TestRef(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.TestBeRef X1_Ref; + public readonly int X12; + public test.TestBeRef X12_Ref; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public tag.TestTag X4_Ref; + public readonly int[] A1; + public readonly int[] A2; + public readonly System.Collections.Generic.List B1; + public readonly System.Collections.Generic.List B2; + public readonly System.Collections.Generic.HashSet C1; + public readonly System.Collections.Generic.HashSet C2; + public readonly System.Collections.Generic.Dictionary D1; + public readonly System.Collections.Generic.Dictionary D2; + public readonly int E1; + public readonly long E2; + public readonly string E3; + public readonly int F1; + public readonly long F2; + public readonly string F3; + public readonly test.RefDynamicBase S1; + + public const int __ID__ = -543222491; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbTestBeRef.GetOrDefault(X1); + X12_Ref = tables.TbTestBeRef.GetOrDefault(X12); + + + X4_Ref = tables.TbTestTag.GetOrDefault(X4); + + + + + + + + + + + + + + + S1?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x12:" + X12 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "a1:" + Luban.StringUtil.CollectionToString(A1) + "," + + "a2:" + Luban.StringUtil.CollectionToString(A2) + "," + + "b1:" + Luban.StringUtil.CollectionToString(B1) + "," + + "b2:" + Luban.StringUtil.CollectionToString(B2) + "," + + "c1:" + Luban.StringUtil.CollectionToString(C1) + "," + + "c2:" + Luban.StringUtil.CollectionToString(C2) + "," + + "d1:" + Luban.StringUtil.CollectionToString(D1) + "," + + "d2:" + Luban.StringUtil.CollectionToString(D2) + "," + + "e1:" + E1 + "," + + "e2:" + E2 + "," + + "e3:" + E3 + "," + + "f1:" + F1 + "," + + "f2:" + F2 + "," + + "f3:" + F3 + "," + + "s1:" + S1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestRow.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestRow.cs new file mode 100644 index 00000000..ea8c3dd6 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestRow.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestRow : Luban.BeanBase +{ + public TestRow(JsonElement _buf) + { + X = _buf.GetProperty("x").GetInt32(); + Y = _buf.GetProperty("y").GetBoolean(); + Z = _buf.GetProperty("z").GetString(); + A = test.Test3.DeserializeTest3(_buf.GetProperty("a")); + { var __json0 = _buf.GetProperty("b"); B = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B.Add(__v0); } } + } + + public static TestRow DeserializeTestRow(JsonElement _buf) + { + return new test.TestRow(_buf); + } + + public readonly int X; + public readonly bool Y; + public readonly string Z; + public readonly test.Test3 A; + public readonly System.Collections.Generic.List B; + + public const int __ID__ = -543222164; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + A?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "a:" + A + "," + + "b:" + Luban.StringUtil.CollectionToString(B) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..089e3979 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestScriptableObject.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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestScriptableObject : Luban.BeanBase +{ + public TestScriptableObject(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + Desc = _buf.GetProperty("desc").GetString(); + Rate = _buf.GetProperty("rate").GetSingle(); + Num = _buf.GetProperty("num").GetInt32(); + V2 = vec2.Deserializevec2(_buf.GetProperty("v2")); + V3 = vec3.Deserializevec3(_buf.GetProperty("v3")); + V4 = vec4.Deserializevec4(_buf.GetProperty("v4")); + } + + public static TestScriptableObject DeserializeTestScriptableObject(JsonElement _buf) + { + return new test.TestScriptableObject(_buf); + } + + public readonly int Id; + public readonly string Desc; + public readonly float Rate; + public readonly int Num; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + + public const int __ID__ = -1896814350; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "desc:" + Desc + "," + + "rate:" + Rate + "," + + "num:" + Num + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestSet.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestSet.cs new file mode 100644 index 00000000..bc8fb836 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestSet.cs @@ -0,0 +1,66 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestSet : Luban.BeanBase +{ + public TestSet(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + X0 = _buf.GetProperty("x0").GetString(); + { var __json0 = _buf.GetProperty("x1"); X1 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X1.Add(__v0); } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { long __v0; __v0 = __e0.GetInt64(); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { string __v0; __v0 = __e0.GetString(); X3.Add(__v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { test.DemoEnum __v0; __v0 = (test.DemoEnum)__e0.GetInt32(); X4.Add(__v0); } } + } + + public static TestSet DeserializeTestSet(JsonElement _buf) + { + return new test.TestSet(_buf); + } + + public readonly int Id; + public readonly string X0; + public readonly System.Collections.Generic.List X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.List X3; + public readonly System.Collections.Generic.List X4; + + public const int __ID__ = -543221516; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x0:" + X0 + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestSize.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestSize.cs new file mode 100644 index 00000000..05ef8e8d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestSize.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestSize : Luban.BeanBase +{ + public TestSize(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetInt32(); + { var __json0 = _buf.GetProperty("x1"); int _n0 = __json0.GetArrayLength(); X1 = new int[_n0]; int __index0=0; foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X1[__index0++] = __v0; } } + { var __json0 = _buf.GetProperty("x2"); X2 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X2.Add(__v0); } } + { var __json0 = _buf.GetProperty("x3"); X3 = new System.Collections.Generic.HashSet(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X3.Add(__v0); } } + { var __json0 = _buf.GetProperty("x4"); X4 = new System.Collections.Generic.Dictionary(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int _k0; _k0 = __e0[0].GetInt32(); int _v0; _v0 = __e0[1].GetInt32(); X4.Add(_k0, _v0); } } + } + + public static TestSize DeserializeTestSize(JsonElement _buf) + { + return new test.TestSize(_buf); + } + + public readonly int Id; + public readonly int[] X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.HashSet X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = 340006319; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestString.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestString.cs new file mode 100644 index 00000000..56a5912c --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.TestString.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test +{ +public sealed partial class TestString : Luban.BeanBase +{ + public TestString(JsonElement _buf) + { + Id = _buf.GetProperty("id").GetString(); + S1 = _buf.GetProperty("s1").GetString(); + S2 = _buf.GetProperty("s2").GetString(); + Cs1 = test.CompactString.DeserializeCompactString(_buf.GetProperty("cs1")); + Cs2 = test.CompactString.DeserializeCompactString(_buf.GetProperty("cs2")); + } + + public static TestString DeserializeTestString(JsonElement _buf) + { + return new test.TestString(_buf); + } + + public readonly string Id; + public readonly string S1; + public readonly string S2; + public readonly test.CompactString Cs1; + public readonly test.CompactString Cs2; + + public const int __ID__ = 338485823; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + Cs1?.ResolveRef(tables); + Cs2?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "cs1:" + Cs1 + "," + + "cs2:" + Cs2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..048ae322 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test.login.RoleInfo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test.login +{ +public sealed partial class RoleInfo : test.DemoD3 +{ + public RoleInfo(JsonElement _buf) : base(_buf) + { + RoleId = _buf.GetProperty("role_id").GetInt64(); + } + + public static RoleInfo DeserializeRoleInfo(JsonElement _buf) + { + return new test.login.RoleInfo(_buf); + } + + public readonly long RoleId; + + public const int __ID__ = -989153243; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "roleId:" + RoleId + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Gen/test2.Rectangle.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..6242e117 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/test2.Rectangle.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg.test2 +{ +/// +/// 矩形 +/// +public sealed partial class Rectangle : test.Shape +{ + public Rectangle(JsonElement _buf) : base(_buf) + { + Width = _buf.GetProperty("width").GetSingle(); + Height = _buf.GetProperty("height").GetSingle(); + } + + public static Rectangle DeserializeRectangle(JsonElement _buf) + { + return new test2.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = 694982337; + 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/luban_examples/Projects/Csharp_DotNet_json/Gen/vec2.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/vec2.cs new file mode 100644 index 00000000..cedcc8d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/vec2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec2 +{ + public vec2(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + } + + public static vec2 Deserializevec2(JsonElement _buf) + { + return new vec2(_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/luban_examples/Projects/Csharp_DotNet_json/Gen/vec3.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/vec3.cs new file mode 100644 index 00000000..10bf9442 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/vec3.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec3 +{ + public vec3(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + Z = _buf.GetProperty("z").GetSingle(); + } + + public static vec3 Deserializevec3(JsonElement _buf) + { + return new vec3(_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/luban_examples/Projects/Csharp_DotNet_json/Gen/vec4.cs b/luban_examples/Projects/Csharp_DotNet_json/Gen/vec4.cs new file mode 100644 index 00000000..978601dd --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Gen/vec4.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Text.Json; + + +namespace cfg +{ +public partial struct vec4 +{ + public vec4(JsonElement _buf) + { + X = _buf.GetProperty("x").GetSingle(); + Y = _buf.GetProperty("y").GetSingle(); + Z = _buf.GetProperty("z").GetSingle(); + W = _buf.GetProperty("w").GetSingle(); + } + + public static vec4 Deserializevec4(JsonElement _buf) + { + return new vec4(_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/luban_examples/Projects/Csharp_DotNet_json/LubanLib/BeanBase.cs b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/BeanBase.cs new file mode 100644 index 00000000..dcc5b16d --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/BeanBase.cs @@ -0,0 +1,8 @@ + +namespace Luban +{ + public abstract class BeanBase : ITypeId + { + public abstract int GetTypeId(); + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/LubanLib/ByteBuf.cs b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/ByteBuf.cs new file mode 100644 index 00000000..54b56b13 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/ByteBuf.cs @@ -0,0 +1,1568 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using System.Numerics; +using System.Runtime.CompilerServices; +using System.Text; + +namespace Luban +{ + + public enum EDeserializeError + { + OK, + NOT_ENOUGH, + EXCEED_SIZE, + // UNMARSHAL_ERR, + } + + public class SerializationException : Exception + { + public SerializationException() { } + public SerializationException(string msg) : base(msg) { } + + public SerializationException(string message, Exception innerException) : base(message, innerException) + { + } + } + + public readonly struct SegmentSaveState + { + public SegmentSaveState(int readerIndex, int writerIndex) + { + ReaderIndex = readerIndex; + WriterIndex = writerIndex; + } + + public int ReaderIndex { get; } + + public int WriterIndex { get; } + } + + public sealed class ByteBuf : ICloneable, IEquatable + { + public ByteBuf() + { + Bytes = Array.Empty(); + ReaderIndex = WriterIndex = 0; + } + + public ByteBuf(int capacity) + { + Bytes = capacity > 0 ? new byte[capacity] : Array.Empty(); + ReaderIndex = 0; + WriterIndex = 0; + } + + public ByteBuf(byte[] bytes) + { + Bytes = bytes; + ReaderIndex = 0; + WriterIndex = Capacity; + } + + public ByteBuf(byte[] bytes, int readIndex, int writeIndex) + { + Bytes = bytes; + ReaderIndex = readIndex; + WriterIndex = writeIndex; + } + + public ByteBuf(int capacity, Action releaser) : this(capacity) + { + _releaser = releaser; + } + + public static ByteBuf Wrap(byte[] bytes) + { + return new ByteBuf(bytes, 0, bytes.Length); + } + + public void Replace(byte[] bytes) + { + Bytes = bytes; + ReaderIndex = 0; + WriterIndex = Capacity; + } + + public void Replace(byte[] bytes, int beginPos, int endPos) + { + Bytes = bytes; + ReaderIndex = beginPos; + WriterIndex = endPos; + } + + public int ReaderIndex { get; set; } + + public int WriterIndex { get; set; } + + private readonly Action _releaser; + + public int Capacity => Bytes.Length; + + public int Size { get { return WriterIndex - ReaderIndex; } } + + public bool Empty => WriterIndex <= ReaderIndex; + + public bool NotEmpty => WriterIndex > ReaderIndex; + + + public void AddWriteIndex(int add) + { + WriterIndex += add; + } + + public void AddReadIndex(int add) + { + ReaderIndex += add; + } + +#pragma warning disable CA1819 // 属性不应返回数组 + public byte[] Bytes { get; private set; } +#pragma warning restore CA1819 // 属性不应返回数组 + + public byte[] CopyData() + { + var n = Remaining; + if (n > 0) + { + var arr = new byte[n]; + Buffer.BlockCopy(Bytes, ReaderIndex, arr, 0, n); + return arr; + } + else + { + return Array.Empty(); + } + } + + public int Remaining { get { return WriterIndex - ReaderIndex; } } + + public void DiscardReadBytes() + { + WriterIndex -= ReaderIndex; + Array.Copy(Bytes, ReaderIndex, Bytes, 0, WriterIndex); + ReaderIndex = 0; + } + + public int NotCompactWritable { get { return Capacity - WriterIndex; } } + + public void WriteBytesWithoutSize(byte[] bs) + { + WriteBytesWithoutSize(bs, 0, bs.Length); + } + + public void WriteBytesWithoutSize(byte[] bs, int offset, int len) + { + EnsureWrite(len); + Buffer.BlockCopy(bs, offset, Bytes, WriterIndex, len); + WriterIndex += len; + } + + public void Clear() + { + ReaderIndex = WriterIndex = 0; + } + + private const int MIN_CAPACITY = 16; + + private static int PropSize(int initSize, int needSize) + { + for (int i = Math.Max(initSize, MIN_CAPACITY); ; i <<= 1) + { + if (i >= needSize) + { + return i; + } + } + } + + private void EnsureWrite0(int size) + { + var needSize = WriterIndex + size - ReaderIndex; + if (needSize < Capacity) + { + WriterIndex -= ReaderIndex; + Array.Copy(Bytes, ReaderIndex, Bytes, 0, WriterIndex); + ReaderIndex = 0; + } + else + { + int newCapacity = PropSize(Capacity, needSize); + var newBytes = new byte[newCapacity]; + WriterIndex -= ReaderIndex; + Buffer.BlockCopy(Bytes, ReaderIndex, newBytes, 0, WriterIndex); + ReaderIndex = 0; + Bytes = newBytes; + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void EnsureWrite(int size) + { + if (WriterIndex + size > Capacity) + { + EnsureWrite0(size); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private void EnsureRead(int size) + { + if (ReaderIndex + size > WriterIndex) + { + throw new SerializationException(); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private bool CanRead(int size) + { + return (ReaderIndex + size <= WriterIndex); + } + + public void Append(byte x) + { + EnsureWrite(1); + Bytes[WriterIndex++] = x; + } + + public void WriteBool(bool b) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)(b ? 1 : 0); + } + + public bool ReadBool() + { + EnsureRead(1); + return Bytes[ReaderIndex++] != 0; + } + + public void WriteByte(byte x) + { + EnsureWrite(1); + Bytes[WriterIndex++] = x; + } + + public byte ReadByte() + { + EnsureRead(1); + return Bytes[ReaderIndex++]; + } + + + public void WriteShort(short x) + { + if (x >= 0) + { + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + return; + } + else if (x < 0x4000) + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + return; + } + } + EnsureWrite(3); + Bytes[WriterIndex] = 0xff; + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + WriterIndex += 3; + } + + public short ReadShort() + { + EnsureRead(1); + int h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return (short)h; + } + else if (h < 0xc0) + { + EnsureRead(2); + int x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return (short)x; + } + else if ((h == 0xff)) + { + EnsureRead(3); + int x = (Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return (short)x; + } + else + { + throw new SerializationException(); + } + } + + public short ReadFshort() + { + EnsureRead(2); + short x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(short*)b; + } + } +#else + x = (short)((Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex]); + +#endif + ReaderIndex += 2; + return x; + } + + public void WriteFshort(short x) + { + EnsureWrite(2); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(short*)b = x; + } + } +#else + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); +#endif + WriterIndex += 2; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void WriteInt(int x) + { + WriteUint((uint)x); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int ReadInt() + { + return (int)ReadUint(); + } + + + public void WriteUint(uint x) + { + // 如果有修改,记得也把 EndWriteSegment改了 + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex] = (byte)((x >> 16) | 0xc0); + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + Bytes[WriterIndex + 3] = (byte)x; + Bytes[WriterIndex + 2] = (byte)(x >> 8); + Bytes[WriterIndex + 1] = (byte)(x >> 16); + Bytes[WriterIndex] = (byte)((x >> 24) | 0xe0); + WriterIndex += 4; + } + else + { + EnsureWrite(5); + Bytes[WriterIndex] = 0xf0; + Bytes[WriterIndex + 4] = (byte)x; + Bytes[WriterIndex + 3] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 1] = (byte)(x >> 24); + WriterIndex += 5; + } + } + + public uint ReadUint() + { + /// + /// 警告! 如有修改,记得调整 TryDeserializeInplaceOctets + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return h; + } + else if (h < 0xc0) + { + EnsureRead(2); + uint x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return x; + } + else if (h < 0xe0) + { + EnsureRead(3); + uint x = ((h & 0x1f) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return x; + } + else if (h < 0xf0) + { + + EnsureRead(4); + uint x = ((h & 0x0f) << 24) | ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + return x; + } + else + { + EnsureRead(5); + uint x = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)(Bytes[ReaderIndex + 2] << 16)) | ((uint)Bytes[ReaderIndex + 3] << 8) | Bytes[ReaderIndex + 4]; + ReaderIndex += 5; + return x; + } + } + + public unsafe void WriteUint_Unsafe(uint x) + { + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)(x << 1); + } + else if (x < 0x4000)// 10 11 1111, - + { + EnsureWrite(2); + + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 2 | 0b01); + } + + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 3 | 0b011); + } + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 4 | 0b0111); + } + WriterIndex += 4; + } + else + { + EnsureWrite(5); + fixed (byte* wb = &Bytes[WriterIndex]) + { + *(uint*)(wb) = (x << 5 | 0b01111); + } + WriterIndex += 5; + } + } + + public unsafe uint ReadUint_Unsafe() + { + /// + /// 警告! 如有修改,记得调整 TryDeserializeInplaceOctets + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if ((h & 0b1) == 0b0) + { + ReaderIndex++; + return (h >> 1); + } + else if ((h & 0b11) == 0b01) + { + EnsureRead(2); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 2; + return (*(uint*)rb) >> 2; + } + } + else if ((h & 0b111) == 0b011) + { + EnsureRead(3); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 3; + return (*(uint*)rb) >> 3; + } + } + else if ((h & 0b1111) == 0b0111) + { + EnsureRead(4); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 4; + return (*(uint*)rb) >> 4; + } + } + else + { + EnsureRead(5); + fixed (byte* rb = &Bytes[ReaderIndex]) + { + ReaderIndex += 5; + return (*(uint*)rb) >> 5; + } + } + } + + public int ReadFint() + { + EnsureRead(4); + int x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(int*)b; + } + } +#else + x = (Bytes[ReaderIndex + 3] << 24) | (Bytes[ReaderIndex + 2] << 16) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + +#endif + ReaderIndex += 4; + return x; + } + + + public void WriteFint(int x) + { + EnsureWrite(4); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(int*)b = x; + } + } +#else + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); +#endif + WriterIndex += 4; + } + + public int ReadFint_Safe() + { + EnsureRead(4); + int x; + + x = (Bytes[ReaderIndex + 3] << 24) | (Bytes[ReaderIndex + 2] << 16) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + + ReaderIndex += 4; + return x; + } + + + public void WriteFint_Safe(int x) + { + EnsureWrite(4); + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + WriterIndex += 4; + } + + public void WriteLong(long x) + { + WriteUlong((ulong)x); + } + + public long ReadLong() + { + return (long)ReadUlong(); + } + + public void WriteNumberAsLong(double x) + { + WriteLong((long)x); + } + + public double ReadLongAsNumber() + { + return ReadLong(); + } + + private void WriteUlong(ulong x) + { + // 0 111 1111 + if (x < 0x80) + { + EnsureWrite(1); + Bytes[WriterIndex++] = (byte)x; + } + else if (x < 0x4000) // 10 11 1111, - + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = (byte)x; + Bytes[WriterIndex] = (byte)((x >> 8) | 0x80); + WriterIndex += 2; + } + else if (x < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex] = (byte)((x >> 16) | 0xc0); + WriterIndex += 3; + } + else if (x < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(4); + Bytes[WriterIndex + 3] = (byte)x; + Bytes[WriterIndex + 2] = (byte)(x >> 8); + Bytes[WriterIndex + 1] = (byte)(x >> 16); + Bytes[WriterIndex] = (byte)((x >> 24) | 0xe0); + WriterIndex += 4; + } + else if (x < 0x800000000L) // 1111 0xxx,-,-,-,- + { + EnsureWrite(5); + Bytes[WriterIndex + 4] = (byte)x; + Bytes[WriterIndex + 3] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 1] = (byte)(x >> 24); + Bytes[WriterIndex] = (byte)((x >> 32) | 0xf0); + WriterIndex += 5; + } + else if (x < 0x40000000000L) // 1111 10xx, + { + EnsureWrite(6); + Bytes[WriterIndex + 5] = (byte)x; + Bytes[WriterIndex + 4] = (byte)(x >> 8); + Bytes[WriterIndex + 3] = (byte)(x >> 16); + Bytes[WriterIndex + 2] = (byte)(x >> 24); + Bytes[WriterIndex + 1] = (byte)(x >> 32); + Bytes[WriterIndex] = (byte)((x >> 40) | 0xf8); + WriterIndex += 6; + } + else if (x < 0x200000000000L) // 1111 110x, + { + EnsureWrite(7); + Bytes[WriterIndex + 6] = (byte)x; + Bytes[WriterIndex + 5] = (byte)(x >> 8); + Bytes[WriterIndex + 4] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + Bytes[WriterIndex + 2] = (byte)(x >> 32); + Bytes[WriterIndex + 1] = (byte)(x >> 40); + Bytes[WriterIndex] = (byte)((x >> 48) | 0xfc); + WriterIndex += 7; + } + else if (x < 0x100000000000000L) // 1111 1110 + { + EnsureWrite(8); + Bytes[WriterIndex + 7] = (byte)x; + Bytes[WriterIndex + 6] = (byte)(x >> 8); + Bytes[WriterIndex + 5] = (byte)(x >> 16); + Bytes[WriterIndex + 4] = (byte)(x >> 24); + Bytes[WriterIndex + 3] = (byte)(x >> 32); + Bytes[WriterIndex + 2] = (byte)(x >> 40); + Bytes[WriterIndex + 1] = (byte)(x >> 48); + Bytes[WriterIndex] = 0xfe; + WriterIndex += 8; + } + else // 1111 1111 + { + EnsureWrite(9); + Bytes[WriterIndex] = 0xff; + Bytes[WriterIndex + 8] = (byte)x; + Bytes[WriterIndex + 7] = (byte)(x >> 8); + Bytes[WriterIndex + 6] = (byte)(x >> 16); + Bytes[WriterIndex + 5] = (byte)(x >> 24); + Bytes[WriterIndex + 4] = (byte)(x >> 32); + Bytes[WriterIndex + 3] = (byte)(x >> 40); + Bytes[WriterIndex + 2] = (byte)(x >> 48); + Bytes[WriterIndex + 1] = (byte)(x >> 56); + WriterIndex += 9; + } + } + + public ulong ReadUlong() + { + EnsureRead(1); + uint h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + return h; + } + else if (h < 0xc0) + { + EnsureRead(2); + uint x = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + return x; + } + else if (h < 0xe0) + { + EnsureRead(3); + uint x = ((h & 0x1f) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + return x; + } + else if (h < 0xf0) + { + EnsureRead(4); + uint x = ((h & 0x0f) << 24) | ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + return x; + } + else if (h < 0xf8) + { + EnsureRead(5); + uint xl = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)(Bytes[ReaderIndex + 2] << 16)) | ((uint)Bytes[ReaderIndex + 3] << 8) | (Bytes[ReaderIndex + 4]); + uint xh = h & 0x07; + ReaderIndex += 5; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xfc) + { + EnsureRead(6); + uint xl = ((uint)Bytes[ReaderIndex + 2] << 24) | ((uint)(Bytes[ReaderIndex + 3] << 16)) | ((uint)Bytes[ReaderIndex + 4] << 8) | (Bytes[ReaderIndex + 5]); + uint xh = ((h & 0x03) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 6; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xfe) + { + EnsureRead(7); + uint xl = ((uint)Bytes[ReaderIndex + 3] << 24) | ((uint)(Bytes[ReaderIndex + 4] << 16)) | ((uint)Bytes[ReaderIndex + 5] << 8) | (Bytes[ReaderIndex + 6]); + uint xh = ((h & 0x01) << 16) | ((uint)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 7; + return ((ulong)xh << 32) | xl; + } + else if (h < 0xff) + { + EnsureRead(8); + uint xl = ((uint)Bytes[ReaderIndex + 4] << 24) | ((uint)(Bytes[ReaderIndex + 5] << 16)) | ((uint)Bytes[ReaderIndex + 6] << 8) | (Bytes[ReaderIndex + 7]); + uint xh = /*((h & 0x01) << 24) |*/ ((uint)Bytes[ReaderIndex + 1] << 16) | ((uint)Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 8; + return ((ulong)xh << 32) | xl; + } + else + { + EnsureRead(9); + uint xl = ((uint)Bytes[ReaderIndex + 5] << 24) | ((uint)(Bytes[ReaderIndex + 6] << 16)) | ((uint)Bytes[ReaderIndex + 7] << 8) | (Bytes[ReaderIndex + 8]); + uint xh = ((uint)Bytes[ReaderIndex + 1] << 24) | ((uint)Bytes[ReaderIndex + 2] << 16) | ((uint)Bytes[ReaderIndex + 3] << 8) | Bytes[ReaderIndex + 4]; + ReaderIndex += 9; + return ((ulong)xh << 32) | xl; + } + } + + + public void WriteFlong(long x) + { + EnsureWrite(8); +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { + *(long*)b = x; + } + } +#else + + Bytes[WriterIndex] = (byte)x; + Bytes[WriterIndex + 1] = (byte)(x >> 8); + Bytes[WriterIndex + 2] = (byte)(x >> 16); + Bytes[WriterIndex + 3] = (byte)(x >> 24); + Bytes[WriterIndex + 4] = (byte)(x >> 32); + Bytes[WriterIndex + 5] = (byte)(x >> 40); + Bytes[WriterIndex + 6] = (byte)(x >> 48); + Bytes[WriterIndex + 7] = (byte)(x >> 56); +#endif + WriterIndex += 8; + } + + public long ReadFlong() + { + EnsureRead(8); + long x; +#if CPU_SUPPORT_MEMORY_NOT_ALIGN + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { + x = *(long*)b; + } + } +#else + int xl = (Bytes[ReaderIndex + 3] << 24) | ((Bytes[ReaderIndex + 2] << 16)) | (Bytes[ReaderIndex + 1] << 8) | (Bytes[ReaderIndex]); + int xh = (Bytes[ReaderIndex + 7] << 24) | (Bytes[ReaderIndex + 6] << 16) | (Bytes[ReaderIndex + 5] << 8) | Bytes[ReaderIndex + 4]; + x = ((long)xh << 32) | (long)xl; +#endif + ReaderIndex += 8; + return x; + } + + private static unsafe void Copy8(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + dst[4] = src[4]; + dst[5] = src[5]; + dst[6] = src[6]; + dst[7] = src[7]; + } + + private static unsafe void Copy4(byte* dst, byte* src) + { + dst[0] = src[0]; + dst[1] = src[1]; + dst[2] = src[2]; + dst[3] = src[3]; + } + + + //const bool isLittleEndian = true; + public void WriteFloat(float x) + { + EnsureWrite(4); + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 4 == 0) + { + *(float*)b = x; + } + else + { + Copy4(b, (byte*)&x); + } +#else + *(float*)b = x; +#endif + } + } + + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, endPos, 4); + //} + WriterIndex += 4; + } + + public float ReadFloat() + { + EnsureRead(4); + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, beginPos, 4); + //} + float x; + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 4 == 0) + { + x = *(float*)b; + } + else + { + *((int*)&x) = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24); + } +#else + x = *(float*)b; +#endif + } + } + + ReaderIndex += 4; + return x; + } + + public void WriteDouble(double x) + { + EnsureWrite(8); + unsafe + { + fixed (byte* b = &Bytes[WriterIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 8 == 0) + { + *(double*)b = x; + } + else + { + Copy8(b, (byte*)&x); + } +#else + *(double*)b = x; +#endif + } + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, endPos, 8); + //} + } + + WriterIndex += 8; + } + + public double ReadDouble() + { + EnsureRead(8); + //if (!BitConverter.IsLittleEndian) + //{ + // Array.Reverse(data, beginPos, 8); + //} + double x; + unsafe + { + fixed (byte* b = &Bytes[ReaderIndex]) + { +#if !CPU_SUPPORT_MEMORY_NOT_ALIGN + if ((long)b % 8 == 0) + { + x = *(double*)b; + } + else + { + int low = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24); + int high = (b[4]) | (b[5] << 8) | (b[6] << 16) | (b[7] << 24); + *((long*)&x) = ((long)high << 32) | (uint)low; + } +#else + x = *(double*)b; +#endif + } + } + + ReaderIndex += 8; + return x; + } + + public void WriteSize(int n) + { + WriteUint((uint)n); + } + + public int ReadSize() + { + return (int)ReadUint(); + } + + // marshal int + // n -> (n << 1) ^ (n >> 31) + // Read + // (x >>> 1) ^ ((x << 31) >> 31) + // (x >>> 1) ^ -(n&1) + public void WriteSint(int x) + { + WriteUint(((uint)x << 1) ^ ((uint)x >> 31)); + } + + public int ReadSint() + { + uint x = ReadUint(); + return (int)((x >> 1) ^ ((x & 1) << 31)); + } + + + // marshal long + // n -> (n << 1) ^ (n >> 63) + // Read + // (x >>> 1) ^((x << 63) >> 63) + // (x >>> 1) ^ -(n&1L) + public void WriteSlong(long x) + { + WriteUlong(((ulong)x << 1) ^ ((ulong)x >> 63)); + } + + public long ReadSlong() + { + long x = ReadLong(); + return ((long)((ulong)x >> 1) ^ ((x & 1) << 63)); + } + + public void WriteString(string x) + { + var n = x != null ? Encoding.UTF8.GetByteCount(x) : 0; + WriteSize(n); + if (n > 0) + { + EnsureWrite(n); + Encoding.UTF8.GetBytes(x, 0, x.Length, Bytes, WriterIndex); + WriterIndex += n; + } + } + + // byte[], [start, end) + public static Func StringCacheFinder { get; set; } + + public string ReadString() + { + var n = ReadSize(); + if (n > 0) + { + EnsureRead(n); + string s; + + if (StringCacheFinder == null) + { + s = Encoding.UTF8.GetString(Bytes, ReaderIndex, n); + } + else + { + // 只缓存比较小的字符串 + s = StringCacheFinder(Bytes, ReaderIndex, n); + } + ReaderIndex += n; + return s; + } + else + { + return string.Empty; + } + } + + public void WriteBytes(byte[] x) + { + var n = x != null ? x.Length : 0; + WriteSize(n); + if (n > 0) + { + EnsureWrite(n); + x.CopyTo(Bytes, WriterIndex); + WriterIndex += n; + } + } + + public byte[] ReadBytes() + { + var n = ReadSize(); + if (n > 0) + { + EnsureRead(n); + var x = new byte[n]; + Buffer.BlockCopy(Bytes, ReaderIndex, x, 0, n); + ReaderIndex += n; + return x; + } + else + { + return Array.Empty(); + } + } + + // 以下是一些特殊类型 + + public void WriteComplex(Complex x) + { + WriteDouble(x.Real); + WriteDouble(x.Imaginary); + } + + public Complex ReadComplex() + { + var x = ReadDouble(); + var y = ReadDouble(); + return new Complex(x, y); + } + + public void WriteVector2(Vector2 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + } + + public Vector2 ReadVector2() + { + float x = ReadFloat(); + float y = ReadFloat(); + return new Vector2(x, y); + } + + public void WriteVector3(Vector3 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + } + + public Vector3 ReadVector3() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + return new Vector3(x, y, z); + } + + public void WriteVector4(Vector4 x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + WriteFloat(x.W); + } + + public Vector4 ReadVector4() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + float w = ReadFloat(); + return new Vector4(x, y, z, w); + } + + + public void WriteQuaternion(Quaternion x) + { + WriteFloat(x.X); + WriteFloat(x.Y); + WriteFloat(x.Z); + WriteFloat(x.W); + } + + public Quaternion ReadQuaternion() + { + float x = ReadFloat(); + float y = ReadFloat(); + float z = ReadFloat(); + float w = ReadFloat(); + return new Quaternion(x, y, z, w); + } + + + public void WriteMatrix4x4(Matrix4x4 x) + { + WriteFloat(x.M11); + WriteFloat(x.M12); + WriteFloat(x.M13); + WriteFloat(x.M14); + WriteFloat(x.M21); + WriteFloat(x.M22); + WriteFloat(x.M23); + WriteFloat(x.M24); + WriteFloat(x.M31); + WriteFloat(x.M32); + WriteFloat(x.M33); + WriteFloat(x.M34); + WriteFloat(x.M41); + WriteFloat(x.M42); + WriteFloat(x.M43); + WriteFloat(x.M44); + } + + public Matrix4x4 ReadMatrix4x4() + { + float m11 = ReadFloat(); + float m12 = ReadFloat(); + float m13 = ReadFloat(); + float m14 = ReadFloat(); + float m21 = ReadFloat(); + float m22 = ReadFloat(); + float m23 = ReadFloat(); + float m24 = ReadFloat(); + float m31 = ReadFloat(); + float m32 = ReadFloat(); + float m33 = ReadFloat(); + float m34 = ReadFloat(); + float m41 = ReadFloat(); + float m42 = ReadFloat(); + float m43 = ReadFloat(); + float m44 = ReadFloat(); + return new Matrix4x4(m11, m12, m13, m14, + m21, m22, m23, m24, + m31, m32, m33, m34, + m41, m42, m43, m44); + } + + internal void SkipBytes() + { + int n = ReadSize(); + EnsureRead(n); + ReaderIndex += n; + } + + + public void WriteByteBufWithSize(ByteBuf o) + { + int n = o.Size; + if (n > 0) + { + WriteSize(n); + WriteBytesWithoutSize(o.Bytes, o.ReaderIndex, n); + } + else + { + WriteByte(0); + } + } + + public void WriteByteBufWithoutSize(ByteBuf o) + { + int n = o.Size; + if (n > 0) + { + WriteBytesWithoutSize(o.Bytes, o.ReaderIndex, n); + } + } + + public bool TryReadByte(out byte x) + { + if (CanRead(1)) + { + x = Bytes[ReaderIndex++]; + return true; + } + else + { + x = 0; + return false; + } + } + + public EDeserializeError TryDeserializeInplaceByteBuf(int maxSize, ByteBuf inplaceTempBody) + { + //if (!CanRead(1)) { return EDeserializeError.NOT_ENOUGH; } + int oldReadIndex = ReaderIndex; + bool commit = false; + try + { + int n; + int h = Bytes[ReaderIndex]; + if (h < 0x80) + { + ReaderIndex++; + n = h; + } + else if (h < 0xc0) + { + if (!CanRead(2)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x3f) << 8) | Bytes[ReaderIndex + 1]; + ReaderIndex += 2; + } + else if (h < 0xe0) + { + if (!CanRead(3)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x1f) << 16) | (Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + ReaderIndex += 3; + } + else if (h < 0xf0) + { + if (!CanRead(4)) { return EDeserializeError.NOT_ENOUGH; } + n = ((h & 0x0f) << 24) | (Bytes[ReaderIndex + 1] << 16) | (Bytes[ReaderIndex + 2] << 8) | Bytes[ReaderIndex + 3]; + ReaderIndex += 4; + } + else + { + return EDeserializeError.EXCEED_SIZE; + } + + if (n > maxSize) + { + return EDeserializeError.EXCEED_SIZE; + } + if (Remaining < n) + { + return EDeserializeError.NOT_ENOUGH; + } + + int inplaceReadIndex = ReaderIndex; + ReaderIndex += n; + + inplaceTempBody.Replace(Bytes, inplaceReadIndex, ReaderIndex); + commit = true; + } + finally + { + if (!commit) + { + ReaderIndex = oldReadIndex; + } + } + + return EDeserializeError.OK; + } + + public void WriteRawTag(byte b1) + { + EnsureWrite(1); + Bytes[WriterIndex++] = b1; + } + + public void WriteRawTag(byte b1, byte b2) + { + EnsureWrite(2); + Bytes[WriterIndex] = b1; + Bytes[WriterIndex + 1] = b2; + WriterIndex += 2; + } + + public void WriteRawTag(byte b1, byte b2, byte b3) + { + EnsureWrite(3); + Bytes[WriterIndex] = b1; + Bytes[WriterIndex + 1] = b2; + Bytes[WriterIndex + 2] = b3; + WriterIndex += 3; + } + + #region segment + + + public void BeginWriteSegment(out int oldSize) + { + oldSize = Size; + EnsureWrite(1); + WriterIndex += 1; + } + + public void EndWriteSegment(int oldSize) + { + int startPos = ReaderIndex + oldSize; + int segmentSize = WriterIndex - startPos - 1; + + // 0 111 1111 + if (segmentSize < 0x80) + { + Bytes[startPos] = (byte)segmentSize; + } + else if (segmentSize < 0x4000) // 10 11 1111, - + { + EnsureWrite(1); + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)segmentSize; + + Bytes[startPos] = (byte)((segmentSize >> 8) | 0x80); + WriterIndex += 1; + } + else if (segmentSize < 0x200000) // 110 1 1111, -,- + { + EnsureWrite(2); + Bytes[WriterIndex + 1] = Bytes[startPos + 2]; + Bytes[startPos + 2] = (byte)segmentSize; + + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)(segmentSize >> 8); + + Bytes[startPos] = (byte)((segmentSize >> 16) | 0xc0); + WriterIndex += 2; + } + else if (segmentSize < 0x10000000) // 1110 1111,-,-,- + { + EnsureWrite(3); + Bytes[WriterIndex + 2] = Bytes[startPos + 3]; + Bytes[startPos + 3] = (byte)segmentSize; + + Bytes[WriterIndex + 1] = Bytes[startPos + 2]; + Bytes[startPos + 2] = (byte)(segmentSize >> 8); + + Bytes[WriterIndex] = Bytes[startPos + 1]; + Bytes[startPos + 1] = (byte)(segmentSize >> 16); + + Bytes[startPos] = (byte)((segmentSize >> 24) | 0xe0); + WriterIndex += 3; + } + else + { + throw new SerializationException("exceed max segment size"); + } + } + + public void ReadSegment(out int startIndex, out int segmentSize) + { + EnsureRead(1); + int h = Bytes[ReaderIndex++]; + + startIndex = ReaderIndex; + + if (h < 0x80) + { + segmentSize = h; + ReaderIndex += segmentSize; + } + else if (h < 0xc0) + { + EnsureRead(1); + segmentSize = ((h & 0x3f) << 8) | Bytes[ReaderIndex]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + ReaderIndex += segmentSize + 1; + } + else if (h < 0xe0) + { + EnsureRead(2); + segmentSize = ((h & 0x1f) << 16) | ((int)Bytes[ReaderIndex] << 8) | Bytes[ReaderIndex + 1]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + Bytes[ReaderIndex + 1] = Bytes[endPos + 1]; + ReaderIndex += segmentSize + 2; + } + else if (h < 0xf0) + { + EnsureRead(3); + segmentSize = ((h & 0x0f) << 24) | ((int)Bytes[ReaderIndex] << 16) | ((int)Bytes[ReaderIndex + 1] << 8) | Bytes[ReaderIndex + 2]; + int endPos = ReaderIndex + segmentSize; + Bytes[ReaderIndex] = Bytes[endPos]; + Bytes[ReaderIndex + 1] = Bytes[endPos + 1]; + Bytes[ReaderIndex + 2] = Bytes[endPos + 2]; + ReaderIndex += segmentSize + 3; + } + else + { + throw new SerializationException("exceed max size"); + } + if (ReaderIndex > WriterIndex) + { + throw new SerializationException("segment data not enough"); + } + } + + public void ReadSegment(ByteBuf buf) + { + ReadSegment(out int startPos, out var size); + buf.Bytes = Bytes; + buf.ReaderIndex = startPos; + buf.WriterIndex = startPos + size; + } + + public void EnterSegment(out SegmentSaveState saveState) + { + ReadSegment(out int startPos, out int size); + + saveState = new SegmentSaveState(ReaderIndex, WriterIndex); + ReaderIndex = startPos; + WriterIndex = startPos + size; + } + + public void LeaveSegment(SegmentSaveState saveState) + { + ReaderIndex = saveState.ReaderIndex; + WriterIndex = saveState.WriterIndex; + } + + #endregion + + public override string ToString() + { + string[] datas = new string[WriterIndex - ReaderIndex]; + for (var i = ReaderIndex; i < WriterIndex; i++) + { + datas[i - ReaderIndex] = Bytes[i].ToString("X2"); + } + return string.Join(".", datas); + } + + public override bool Equals(object obj) + { + return (obj is ByteBuf other) && Equals(other); + } + + public bool Equals(ByteBuf other) + { + if (other == null) + { + return false; + } + if (Size != other.Size) + { + return false; + } + for (int i = 0, n = Size; i < n; i++) + { + if (Bytes[ReaderIndex + i] != other.Bytes[other.ReaderIndex + i]) + { + return false; + } + } + return true; + } + + public object Clone() + { + return new ByteBuf(CopyData()); + } + + + public static ByteBuf FromString(string value) + { + var ss = value.Split(','); + byte[] data = new byte[ss.Length]; + for (int i = 0; i < data.Length; i++) + { + data[i] = byte.Parse(ss[i]); + } + return new ByteBuf(data); + } + + public override int GetHashCode() + { + int hash = 17; + for (int i = ReaderIndex; i < WriterIndex; i++) + { + hash = hash * 23 + Bytes[i]; + } + return hash; + } + + public void Release() + { + _releaser?.Invoke(this); + } + +#if SUPPORT_PUERTS_ARRAYBUF + // -- add for puerts + public Puerts.ArrayBuffer ReadArrayBuffer() + { + return new Puerts.ArrayBuffer(ReadBytes()); + } + + public void WriteArrayBuffer(Puerts.ArrayBuffer bytes) + { + WriteBytes(bytes.Bytes); + } +#endif + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/LubanLib/ITypeId.cs b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/ITypeId.cs new file mode 100644 index 00000000..3ea44b39 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/ITypeId.cs @@ -0,0 +1,7 @@ +namespace Luban +{ + public interface ITypeId + { + int GetTypeId(); + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/LubanLib/StringUtil.cs b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/StringUtil.cs new file mode 100644 index 00000000..0648ffcc --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/LubanLib/StringUtil.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; +using System.Text; + +namespace Luban +{ + public static class StringUtil + { + public static string ToStr(object o) + { + return ToStr(o, new StringBuilder()); + } + + public static string ToStr(object o, StringBuilder sb) + { + foreach (var p in o.GetType().GetFields()) + { + + sb.Append($"{p.Name} = {p.GetValue(o)},"); + } + + foreach (var p in o.GetType().GetProperties()) + { + sb.Append($"{p.Name} = {p.GetValue(o)},"); + } + return sb.ToString(); + } + + public static string ArrayToString(T[] arr) + { + return "[" + string.Join(",", arr) + "]"; + } + + + public static string CollectionToString(IEnumerable arr) + { + return "[" + string.Join(",", arr) + "]"; + } + + + public static string CollectionToString(IDictionary dic) + { + var sb = new StringBuilder('{'); + foreach (var e in dic) + { + sb.Append(e.Key).Append(':'); + sb.Append(e.Value).Append(','); + } + sb.Append('}'); + return sb.ToString(); + } + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/Program.cs b/luban_examples/Projects/Csharp_DotNet_json/Program.cs new file mode 100644 index 00000000..91998783 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.IO; +using System.Text.Json; + +namespace Csharp_Server_DotNetCore +{ + class Program + { + static void Main(string[] args) + { + var tables = new cfg.Tables(LoadJson); + Console.WriteLine("== load succ =="); + } + + private static JsonElement LoadJson(string file) + { + return JsonDocument.Parse(System.IO.File.ReadAllBytes("../../../../GenerateDatas/json/" + file + ".json")).RootElement; + } + } +} diff --git a/luban_examples/Projects/Csharp_DotNet_json/gen.bat b/luban_examples/Projects/Csharp_DotNet_json/gen.bat new file mode 100644 index 00000000..4d347bd1 --- /dev/null +++ b/luban_examples/Projects/Csharp_DotNet_json/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %GEN_CLIENT% ^ + -t server ^ + -c cs-dotnet-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Gen ^ + -x outputDataDir=..\GenerateDatas\json ^ + -x pathValidator.rootDir=D:\workspace2\luban_examples\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@D:\workspace2\luban_examples\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/.vsconfig b/luban_examples/Projects/Csharp_Unity_Editor_json/.vsconfig new file mode 100644 index 00000000..aade28f6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/.vsconfig @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Workload.ManagedGame" + ] +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp-Editor.csproj b/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp-Editor.csproj new file mode 100644 index 00000000..17abd56d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp-Editor.csproj @@ -0,0 +1,1023 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {6A74595F-DA90-2725-E9BA-7EE6224FDDCF} + Library + Properties + Assembly-CSharp-Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Editor:5 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.NVIDIAModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.ext.nunit@1.0.6\net35\unity-custom\nunit.framework.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEngine.TestRunner.dll + + + Library\ScriptAssemblies\UnityEditor.TestRunner.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.Editor.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Shared.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.SettingsProvider.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.PlasticSCM.Editor.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.dll + + + + + {5DB7945E-BB11-3390-ABBE-BD513F03D44E} + Assembly-CSharp + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp-firstpass.csproj b/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp-firstpass.csproj new file mode 100644 index 00000000..6336e20b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp-firstpass.csproj @@ -0,0 +1,672 @@ + + + + 8.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {766136D7-85E7-ED33-A946-4BCAD6D07CC2} + Library + Properties + Assembly-CSharp-firstpass + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + DEBUG;TRACE;UNITY_2020_3_7;UNITY_2020_3;UNITY_2020;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.7 + GamePlugins:3 + StandaloneWindows64:19 + 2020.3.7f1c1 + + + + + + + + + + + + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\mscorlib.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Core.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Runtime.Serialization.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Xml.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Xml.Linq.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Numerics.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Numerics.Vectors.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Net.Http.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Microsoft.CSharp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Data.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\Microsoft.Win32.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\netstandard.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.AppContext.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.Concurrent.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.NonGeneric.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.Specialized.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.Annotations.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.TypeConverter.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Console.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Data.Common.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Contracts.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Debug.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Process.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.StackTrace.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Tools.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.TraceSource.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Drawing.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Dynamic.Runtime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.Calendars.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.Compression.ZipFile.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.Watcher.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.IsolatedStorage.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.MemoryMappedFiles.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.Pipes.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Expressions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Parallel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Queryable.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Http.Rtc.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.NameResolution.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.NetworkInformation.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Ping.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Requests.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Security.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Sockets.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebHeaderCollection.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebSockets.Client.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebSockets.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ObjectModel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.Lightweight.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.Reader.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.ResourceManager.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.Writer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Handles.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Numerics.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Formatters.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Json.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Xml.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Claims.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Algorithms.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Csp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Encoding.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Principal.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.SecureString.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Duplex.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Http.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.NetTcp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Security.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.Encoding.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.Encoding.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.RegularExpressions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Overlapped.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Tasks.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Tasks.Parallel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Thread.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.ThreadPool.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Timer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ValueTuple.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.ReaderWriter.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XDocument.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XmlDocument.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XmlSerializer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XPath.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XPath.XDocument.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp.csproj b/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp.csproj new file mode 100644 index 00000000..8bd7a0eb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assembly-CSharp.csproj @@ -0,0 +1,1121 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {5DB7945E-BB11-3390-ABBE-BD513F03D44E} + Library + Properties + Assembly-CSharp + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Game:1 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.Editor.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Shared.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.SettingsProvider.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.PlasticSCM.Editor.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor.meta new file mode 100644 index 00000000..f1e5fea6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ad5d35ee8ca531843acdd423c4720da1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor/TestLoad.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor/TestLoad.cs new file mode 100644 index 00000000..8c935bd3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor/TestLoad.cs @@ -0,0 +1,61 @@ +using editor.cfg.test; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using UnityEngine; + +public class TestLoad : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + var t = new DemoType2() + { + x1 = true, + x2 = 12, + x3 = 1384, + x4 = 11223344, + x5 = 12345678901234, + x6 = 1.5f, + x7 = 1.2345678, + x8 = 12345, + x80 = 1122, + x9 = 11223344, + x10 = "walon", + x12 = new DemoType1() { x1 = 12 }, + x13 = DemoEnum.D, + x14 = new DemoD2() { x1 = 1, x2 = 2 }, + t1 = "2000-01-01 10:10:10", + k1 = new int[] { 1, 2, 3 }, + k2 = new List { 2, 3, 4 }, + k5 = new HashSet { 1, 2 }, + k8 = new Dictionary { { 1, 10 }, { 2, 20 } }, + k9 = new List { new DemoE2 { y1 = 1, y2 = false }, new DemoE2 { y1 = 2, y2 = true } }, + k15 = new DemoDynamic[] { new DemoD2 { x1 = 11, x2 = 22 }, new DemoE1 { x1 = 12, x3 = 32, x4 = 5 } }, + }; + + string fileA1 = Application.dataPath + "/../a1.json"; + string fileA2 = Application.dataPath + "/../a2.json"; + t.SaveJsonFile(fileA1); + + var t2 = new DemoType2(); + t2.LoadJsonFile(fileA1); + t2.SaveJsonFile(fileA2); + + Debug.Assert(File.ReadAllText(fileA1, System.Text.Encoding.UTF8) == File.ReadAllText(fileA2, System.Text.Encoding.UTF8)); + + + string fileD1 = Application.dataPath + "/../d1.json"; + string fileD2 = Application.dataPath + "/../d2.json"; + + var d = new DemoD2(); + d.LoadJsonFile(fileD1); + d.SaveJsonFile(fileD2); + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor/TestLoad.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor/TestLoad.cs.meta new file mode 100644 index 00000000..330ad964 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Editor/TestLoad.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f7721065f045561409a29d8a9d0fe5ae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen.meta new file mode 100644 index 00000000..8a2417ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1f51b80845c14ce4e8015f0e7c83c1c3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/AudioType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/AudioType.cs new file mode 100644 index 00000000..cce575cb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/AudioType.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + + public static class AudioType_Metadata + { + public static readonly Luban.EditorEnumItemInfo UNKNOWN = new Luban.EditorEnumItemInfo("UNKNOWN", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo ACC = new Luban.EditorEnumItemInfo("ACC", "", 1, ""); + public static readonly Luban.EditorEnumItemInfo AIFF = new Luban.EditorEnumItemInfo("AIFF", "", 2, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + UNKNOWN, + ACC, + AIFF, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/AudioType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/AudioType.cs.meta new file mode 100644 index 00000000..f61d1f43 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/AudioType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 47738fa8ae0cf514eb13ccffe39c6344 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/DefineFromExcel2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..ce545c33 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/DefineFromExcel2.cs @@ -0,0 +1,316 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg +{ + +public sealed class DefineFromExcel2 : Luban.EditorBeanBase +{ + public DefineFromExcel2() + { + x10 = ""; + x13 = test.DemoEnum.NONE; + x132 = test.DemoFlag.A; + v2 = new vec2(); + t1 = "1970-01-01 00:00:00"; + k1 = System.Array.Empty(); + k2 = System.Array.Empty(); + k8 = new System.Collections.Generic.Dictionary(); + k9 = new System.Collections.Generic.List(); + k10 = new System.Collections.Generic.List(); + k11 = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x5 = _fieldJson; + } + } + + { + var _fieldJson = _json["x6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x6 = _fieldJson; + } + } + + { + var _fieldJson = _json["x8"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x8 = _fieldJson; + } + } + + { + var _fieldJson = _json["x10"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } x10 = _fieldJson; + } + } + + { + var _fieldJson = _json["x13"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { x13 = (test.DemoEnum)System.Enum.Parse(typeof(test.DemoEnum), _fieldJson); } else if(_fieldJson.IsNumber) { x13 = (test.DemoEnum)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["x13_2"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { x132 = (test.DemoFlag)System.Enum.Parse(typeof(test.DemoFlag), _fieldJson); } else if(_fieldJson.IsNumber) { x132 = (test.DemoFlag)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["x14"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x14 = test.DemoDynamic.LoadJsonDemoDynamic(_fieldJson); + } + } + + { + var _fieldJson = _json["x15"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x15 = test.Shape.LoadJsonShape(_fieldJson); + } + } + + { + var _fieldJson = _json["v2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v2 = vec2.LoadJsonvec2(_fieldJson); + } + } + + { + var _fieldJson = _json["t1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } t1 = _fieldJson; + } + } + + { + var _fieldJson = _json["k1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; k1 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k1[_index++] = __v; } + } + } + + { + var _fieldJson = _json["k2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; k2 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k2[_index++] = __v; } + } + } + + { + var _fieldJson = _json["k8"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k8 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; k8.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["k9"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k9 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.DemoE2 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.DemoE2.LoadJsonDemoE2(__e); k9.Add(__v); } + } + } + + { + var _fieldJson = _json["k10"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k10 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { vec3 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = vec3.LoadJsonvec3(__e); k10.Add(__v); } + } + } + + { + var _fieldJson = _json["k11"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k11 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { vec4 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = vec4.LoadJsonvec4(__e); k11.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["x1"] = new JSONBool(x1); + } + { + _json["x5"] = new JSONNumber(x5); + } + { + _json["x6"] = new JSONNumber(x6); + } + { + _json["x8"] = new JSONNumber(x8); + } + { + + if (x10 == null) { throw new System.ArgumentNullException(); } + _json["x10"] = new JSONString(x10); + } + { + _json["x13"] = new JSONNumber((int)x13); + } + { + _json["x13_2"] = new JSONNumber((int)x132); + } + { + + if (x14 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DemoDynamic.SaveJsonDemoDynamic(x14, __bjson); _json["x14"] = __bjson; } + } + { + + if (x15 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.Shape.SaveJsonShape(x15, __bjson); _json["x15"] = __bjson; } + } + { + + if (v2 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec2.SaveJsonvec2(v2, __bjson); _json["v2"] = __bjson; } + } + { + _json["t1"] = new JSONString(t1); + } + { + + if (k1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k1) { __cjson["null"] = new JSONNumber(_e); } _json["k1"] = __cjson; } + } + { + + if (k2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k2) { __cjson["null"] = new JSONNumber(_e); } _json["k2"] = __cjson; } + } + { + + if (k8 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k8) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["k8"] = __cjson; } + } + { + + if (k9 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k9) { { var __bjson = new JSONObject(); test.DemoE2.SaveJsonDemoE2(_e, __bjson); __cjson["null"] = __bjson; } } _json["k9"] = __cjson; } + } + { + + if (k10 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k10) { { var __bjson = new JSONObject(); vec3.SaveJsonvec3(_e, __bjson); __cjson["null"] = __bjson; } } _json["k10"] = __cjson; } + } + { + + if (k11 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k11) { { var __bjson = new JSONObject(); vec4.SaveJsonvec4(_e, __bjson); __cjson["null"] = __bjson; } } _json["k11"] = __cjson; } + } + } + + public static DefineFromExcel2 LoadJsonDefineFromExcel2(SimpleJSON.JSONNode _json) + { + DefineFromExcel2 obj = new DefineFromExcel2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDefineFromExcel2(DefineFromExcel2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + /// + /// 这是id + /// + public int id; + + /// + /// 字段x1 + /// + public bool x1; + + public long x5; + + public float x6; + + public int x8; + + public string x10; + + public test.DemoEnum x13; + + public test.DemoFlag x132; + + public test.DemoDynamic x14; + + public test.Shape x15; + + public vec2 v2; + + public string t1; + + public int[] k1; + + public int[] k2; + + public System.Collections.Generic.Dictionary k8; + + public System.Collections.Generic.List k9; + + public System.Collections.Generic.List k10; + + public System.Collections.Generic.List k11; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/DefineFromExcel2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/DefineFromExcel2.cs.meta new file mode 100644 index 00000000..dfc18e70 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/DefineFromExcel2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 64921afc886038b44b6a19c83eb0c1c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/Editor.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/Editor.meta new file mode 100644 index 00000000..0fc98dba --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 94fb5ca4e49b94f4d80b09abbf4077b1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..64c3382a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BehaviorTree.cs @@ -0,0 +1,121 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class BehaviorTree : Luban.EditorBeanBase +{ + public BehaviorTree() + { + name = ""; + desc = ""; + blackboardId = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["blackboard_id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } blackboardId = _fieldJson; + } + } + + { + var _fieldJson = _json["root"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } root = ai.ComposeNode.LoadJsonComposeNode(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + + if (blackboardId == null) { throw new System.ArgumentNullException(); } + _json["blackboard_id"] = new JSONString(blackboardId); + } + { + + if (root == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); ai.ComposeNode.SaveJsonComposeNode(root, __bjson); _json["root"] = __bjson; } + } + } + + public static BehaviorTree LoadJsonBehaviorTree(SimpleJSON.JSONNode _json) + { + BehaviorTree obj = new ai.BehaviorTree(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonBehaviorTree(BehaviorTree _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string name; + + public string desc; + + public string blackboardId; + + public ai.ComposeNode root; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BehaviorTree.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BehaviorTree.cs.meta new file mode 100644 index 00000000..1cfe3bfd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BehaviorTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f93efbe9aa00c7c4ba349370a2162e03 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..cbca1052 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BinaryOperator.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class BinaryOperator : ai.KeyQueryOperator +{ + public BinaryOperator() + { + oper = ai.EOperator.IS_EQUAL_TO; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["oper"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { oper = (ai.EOperator)System.Enum.Parse(typeof(ai.EOperator), _fieldJson); } else if(_fieldJson.IsNumber) { oper = (ai.EOperator)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["data"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } data = ai.KeyData.LoadJsonKeyData(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["oper"] = new JSONNumber((int)oper); + } + { + + if (data == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); ai.KeyData.SaveJsonKeyData(data, __bjson); _json["data"] = __bjson; } + } + } + + public static BinaryOperator LoadJsonBinaryOperator(SimpleJSON.JSONNode _json) + { + BinaryOperator obj = new ai.BinaryOperator(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonBinaryOperator(BinaryOperator _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public ai.EOperator oper; + + public ai.KeyData data; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BinaryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BinaryOperator.cs.meta new file mode 100644 index 00000000..02b95254 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BinaryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33844106034dff84fad778a9b10c5e28 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Blackboard.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..6725e7f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Blackboard.cs @@ -0,0 +1,109 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class Blackboard : Luban.EditorBeanBase +{ + public Blackboard() + { + name = ""; + desc = ""; + parentName = ""; + keys = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["parent_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } parentName = _fieldJson; + } + } + + { + var _fieldJson = _json["keys"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } keys = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.BlackboardKey __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.BlackboardKey.LoadJsonBlackboardKey(__e); keys.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + + if (parentName == null) { throw new System.ArgumentNullException(); } + _json["parent_name"] = new JSONString(parentName); + } + { + + if (keys == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in keys) { { var __bjson = new JSONObject(); ai.BlackboardKey.SaveJsonBlackboardKey(_e, __bjson); __cjson["null"] = __bjson; } } _json["keys"] = __cjson; } + } + } + + public static Blackboard LoadJsonBlackboard(SimpleJSON.JSONNode _json) + { + Blackboard obj = new ai.Blackboard(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonBlackboard(Blackboard _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string name; + + public string desc; + + public string parentName; + + public System.Collections.Generic.List keys; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Blackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Blackboard.cs.meta new file mode 100644 index 00000000..8aef99ed --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Blackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e8c0ae2c7e380694499e6b5cde9c8bda +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..9aba52c5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKey.cs @@ -0,0 +1,120 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class BlackboardKey : Luban.EditorBeanBase +{ + public BlackboardKey() + { + name = ""; + desc = ""; + type = ai.EKeyType.BOOL; + typeClassName = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["is_static"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } isStatic = _fieldJson; + } + } + + { + var _fieldJson = _json["type"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { type = (ai.EKeyType)System.Enum.Parse(typeof(ai.EKeyType), _fieldJson); } else if(_fieldJson.IsNumber) { type = (ai.EKeyType)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["type_class_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } typeClassName = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + _json["is_static"] = new JSONBool(isStatic); + } + { + _json["type"] = new JSONNumber((int)type); + } + { + + if (typeClassName == null) { throw new System.ArgumentNullException(); } + _json["type_class_name"] = new JSONString(typeClassName); + } + } + + public static BlackboardKey LoadJsonBlackboardKey(SimpleJSON.JSONNode _json) + { + BlackboardKey obj = new ai.BlackboardKey(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonBlackboardKey(BlackboardKey _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string name; + + public string desc; + + public bool isStatic; + + public ai.EKeyType type; + + public string typeClassName; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKey.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKey.cs.meta new file mode 100644 index 00000000..20e15c9a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKey.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 15bc407550372ea4ca16318d32d26acf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..d5f116bd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKeyData.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class BlackboardKeyData : ai.KeyData +{ + public BlackboardKeyData() + { + value = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["value"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } value = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + + if (value == null) { throw new System.ArgumentNullException(); } + _json["value"] = new JSONString(value); + } + } + + public static BlackboardKeyData LoadJsonBlackboardKeyData(SimpleJSON.JSONNode _json) + { + BlackboardKeyData obj = new ai.BlackboardKeyData(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonBlackboardKeyData(BlackboardKeyData _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string value; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKeyData.cs.meta new file mode 100644 index 00000000..1c5d29ce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.BlackboardKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4b5834d07535b7241aba5b9043525d01 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..635cb93e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseSkill.cs @@ -0,0 +1,138 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class ChooseSkill : ai.Task +{ + public ChooseSkill() + { + targetActorKey = ""; + resultSkillIdKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["ignore_restart_self"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } ignoreRestartSelf = _fieldJson; + } + } + + { + var _fieldJson = _json["target_actor_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } targetActorKey = _fieldJson; + } + } + + { + var _fieldJson = _json["result_skill_id_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } resultSkillIdKey = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["ignore_restart_self"] = new JSONBool(ignoreRestartSelf); + } + { + + if (targetActorKey == null) { throw new System.ArgumentNullException(); } + _json["target_actor_key"] = new JSONString(targetActorKey); + } + { + + if (resultSkillIdKey == null) { throw new System.ArgumentNullException(); } + _json["result_skill_id_key"] = new JSONString(resultSkillIdKey); + } + } + + public static ChooseSkill LoadJsonChooseSkill(SimpleJSON.JSONNode _json) + { + ChooseSkill obj = new ai.ChooseSkill(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonChooseSkill(ChooseSkill _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string targetActorKey; + + public string resultSkillIdKey; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseSkill.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseSkill.cs.meta new file mode 100644 index 00000000..3bfe371a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseSkill.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 81d32f45418f4f24a90373254fb5cf19 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..68878d9a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseTarget.cs @@ -0,0 +1,85 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class ChooseTarget : ai.Service +{ + public ChooseTarget() + { + resultTargetKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["result_target_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } resultTargetKey = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (resultTargetKey == null) { throw new System.ArgumentNullException(); } + _json["result_target_key"] = new JSONString(resultTargetKey); + } + } + + public static ChooseTarget LoadJsonChooseTarget(SimpleJSON.JSONNode _json) + { + ChooseTarget obj = new ai.ChooseTarget(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonChooseTarget(ChooseTarget _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string resultTargetKey; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseTarget.cs.meta new file mode 100644 index 00000000..7d8ceacb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ChooseTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9eb4af83fa03d2043839bc6be8541bd1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ComposeNode.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..0961ef88 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ComposeNode.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class ComposeNode : ai.FlowNode +{ + public ComposeNode() + { + } + + + public static ComposeNode LoadJsonComposeNode(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + ComposeNode obj; + switch (type) + { + case "ai.Sequence": + case "Sequence":obj = new ai.Sequence(); break; + case "ai.Selector": + case "Selector":obj = new ai.Selector(); break; + case "ai.SimpleParallel": + case "SimpleParallel":obj = new ai.SimpleParallel(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonComposeNode(ComposeNode _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ComposeNode.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ComposeNode.cs.meta new file mode 100644 index 00000000..c8c2773f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ComposeNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 448c179a2cfe7014e9cad169e16d5f99 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DebugPrint.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..962fcd9c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DebugPrint.cs @@ -0,0 +1,122 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class DebugPrint : ai.Task +{ + public DebugPrint() + { + text = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["ignore_restart_self"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } ignoreRestartSelf = _fieldJson; + } + } + + { + var _fieldJson = _json["text"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } text = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["ignore_restart_self"] = new JSONBool(ignoreRestartSelf); + } + { + + if (text == null) { throw new System.ArgumentNullException(); } + _json["text"] = new JSONString(text); + } + } + + public static DebugPrint LoadJsonDebugPrint(SimpleJSON.JSONNode _json) + { + DebugPrint obj = new ai.DebugPrint(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDebugPrint(DebugPrint _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string text; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DebugPrint.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DebugPrint.cs.meta new file mode 100644 index 00000000..ba1693da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DebugPrint.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8a3af9556c8a48c4e9bcd919181b927d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Decorator.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Decorator.cs new file mode 100644 index 00000000..401a54fe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Decorator.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class Decorator : ai.Node +{ + public Decorator() + { + flowAbortMode = ai.EFlowAbortMode.NONE; + } + + + public static Decorator LoadJsonDecorator(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + Decorator obj; + switch (type) + { + case "ai.UeLoop": + case "UeLoop":obj = new ai.UeLoop(); break; + case "ai.UeCooldown": + case "UeCooldown":obj = new ai.UeCooldown(); break; + case "ai.UeTimeLimit": + case "UeTimeLimit":obj = new ai.UeTimeLimit(); break; + case "ai.UeBlackboard": + case "UeBlackboard":obj = new ai.UeBlackboard(); break; + case "ai.UeForceSuccess": + case "UeForceSuccess":obj = new ai.UeForceSuccess(); break; + case "ai.IsAtLocation": + case "IsAtLocation":obj = new ai.IsAtLocation(); break; + case "ai.DistanceLessThan": + case "DistanceLessThan":obj = new ai.DistanceLessThan(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDecorator(Decorator _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public ai.EFlowAbortMode flowAbortMode; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Decorator.cs.meta new file mode 100644 index 00000000..c7f8d260 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f13eec77c8177274283e17c5e9ac2af1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..5349ee5a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,138 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class DistanceLessThan : ai.Decorator +{ + public DistanceLessThan() + { + actor1Key = ""; + actor2Key = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["flow_abort_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { flowAbortMode = (ai.EFlowAbortMode)System.Enum.Parse(typeof(ai.EFlowAbortMode), _fieldJson); } else if(_fieldJson.IsNumber) { flowAbortMode = (ai.EFlowAbortMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["actor1_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } actor1Key = _fieldJson; + } + } + + { + var _fieldJson = _json["actor2_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } actor2Key = _fieldJson; + } + } + + { + var _fieldJson = _json["distance"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } distance = _fieldJson; + } + } + + { + var _fieldJson = _json["reverse_result"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } reverseResult = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + _json["flow_abort_mode"] = new JSONNumber((int)flowAbortMode); + } + { + + if (actor1Key == null) { throw new System.ArgumentNullException(); } + _json["actor1_key"] = new JSONString(actor1Key); + } + { + + if (actor2Key == null) { throw new System.ArgumentNullException(); } + _json["actor2_key"] = new JSONString(actor2Key); + } + { + _json["distance"] = new JSONNumber(distance); + } + { + _json["reverse_result"] = new JSONBool(reverseResult); + } + } + + public static DistanceLessThan LoadJsonDistanceLessThan(SimpleJSON.JSONNode _json) + { + DistanceLessThan obj = new ai.DistanceLessThan(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDistanceLessThan(DistanceLessThan _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string actor1Key; + + public string actor2Key; + + public float distance; + + public bool reverseResult; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DistanceLessThan.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DistanceLessThan.cs.meta new file mode 100644 index 00000000..3b6aae99 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.DistanceLessThan.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b20175517bbab8a4b9c43c93a6824c45 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EExecutor.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..aa0da6da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EExecutor.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + + public static class EExecutor_Metadata + { + public static readonly Luban.EditorEnumItemInfo CLIENT = new Luban.EditorEnumItemInfo("CLIENT", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo SERVER = new Luban.EditorEnumItemInfo("SERVER", "", 1, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + CLIENT, + SERVER, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EExecutor.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EExecutor.cs.meta new file mode 100644 index 00000000..8985e3b7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EExecutor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0cb3a6fb08abab84ba2b742f9fe3e238 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFinishMode.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..3ae26947 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFinishMode.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + + public static class EFinishMode_Metadata + { + public static readonly Luban.EditorEnumItemInfo IMMEDIATE = new Luban.EditorEnumItemInfo("IMMEDIATE", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo DELAYED = new Luban.EditorEnumItemInfo("DELAYED", "", 1, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + IMMEDIATE, + DELAYED, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFinishMode.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFinishMode.cs.meta new file mode 100644 index 00000000..5e9d3727 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFinishMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9c59630fd1c2134488b0162f2c0d0d04 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..1c2854b7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFlowAbortMode.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + + public static class EFlowAbortMode_Metadata + { + public static readonly Luban.EditorEnumItemInfo NONE = new Luban.EditorEnumItemInfo("NONE", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo LOWER_PRIORITY = new Luban.EditorEnumItemInfo("LOWER_PRIORITY", "", 1, ""); + public static readonly Luban.EditorEnumItemInfo SELF = new Luban.EditorEnumItemInfo("SELF", "", 2, ""); + public static readonly Luban.EditorEnumItemInfo BOTH = new Luban.EditorEnumItemInfo("BOTH", "", 3, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + NONE, + LOWER_PRIORITY, + SELF, + BOTH, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFlowAbortMode.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFlowAbortMode.cs.meta new file mode 100644 index 00000000..c314baca --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EFlowAbortMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33f53c431931483408c837b7e24e0369 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EKeyType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..6bf95172 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EKeyType.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + + public static class EKeyType_Metadata + { + public static readonly Luban.EditorEnumItemInfo BOOL = new Luban.EditorEnumItemInfo("BOOL", "", 1, ""); + public static readonly Luban.EditorEnumItemInfo INT = new Luban.EditorEnumItemInfo("INT", "", 2, ""); + public static readonly Luban.EditorEnumItemInfo FLOAT = new Luban.EditorEnumItemInfo("FLOAT", "", 3, ""); + public static readonly Luban.EditorEnumItemInfo STRING = new Luban.EditorEnumItemInfo("STRING", "", 4, ""); + public static readonly Luban.EditorEnumItemInfo VECTOR = new Luban.EditorEnumItemInfo("VECTOR", "", 5, ""); + public static readonly Luban.EditorEnumItemInfo ROTATOR = new Luban.EditorEnumItemInfo("ROTATOR", "", 6, ""); + public static readonly Luban.EditorEnumItemInfo NAME = new Luban.EditorEnumItemInfo("NAME", "", 7, ""); + public static readonly Luban.EditorEnumItemInfo CLASS = new Luban.EditorEnumItemInfo("CLASS", "", 8, ""); + public static readonly Luban.EditorEnumItemInfo ENUM = new Luban.EditorEnumItemInfo("ENUM", "", 9, ""); + public static readonly Luban.EditorEnumItemInfo OBJECT = new Luban.EditorEnumItemInfo("OBJECT", "", 10, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + BOOL, + INT, + FLOAT, + STRING, + VECTOR, + ROTATOR, + NAME, + CLASS, + ENUM, + OBJECT, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EKeyType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EKeyType.cs.meta new file mode 100644 index 00000000..527baab8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EKeyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7b41969cd144b9046a14477826a74c02 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..4963c745 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + + public static class ENotifyObserverMode_Metadata + { + public static readonly Luban.EditorEnumItemInfo ON_VALUE_CHANGE = new Luban.EditorEnumItemInfo("ON_VALUE_CHANGE", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo ON_RESULT_CHANGE = new Luban.EditorEnumItemInfo("ON_RESULT_CHANGE", "", 1, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + ON_VALUE_CHANGE, + ON_RESULT_CHANGE, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ENotifyObserverMode.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ENotifyObserverMode.cs.meta new file mode 100644 index 00000000..5f832ebb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ENotifyObserverMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 011333b3a695f3d41ba7b2c0603e69b5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EOperator.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EOperator.cs new file mode 100644 index 00000000..80719cd0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EOperator.cs @@ -0,0 +1,67 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + + public static class EOperator_Metadata + { + public static readonly Luban.EditorEnumItemInfo IS_EQUAL_TO = new Luban.EditorEnumItemInfo("IS_EQUAL_TO", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo IS_NOT_EQUAL_TO = new Luban.EditorEnumItemInfo("IS_NOT_EQUAL_TO", "", 1, ""); + public static readonly Luban.EditorEnumItemInfo IS_LESS_THAN = new Luban.EditorEnumItemInfo("IS_LESS_THAN", "", 2, ""); + public static readonly Luban.EditorEnumItemInfo IS_LESS_THAN_OR_EQUAL_TO = new Luban.EditorEnumItemInfo("IS_LESS_THAN_OR_EQUAL_TO", "", 3, ""); + public static readonly Luban.EditorEnumItemInfo IS_GREAT_THAN = new Luban.EditorEnumItemInfo("IS_GREAT_THAN", "", 4, ""); + public static readonly Luban.EditorEnumItemInfo IS_GREAT_THAN_OR_EQUAL_TO = new Luban.EditorEnumItemInfo("IS_GREAT_THAN_OR_EQUAL_TO", "", 5, ""); + public static readonly Luban.EditorEnumItemInfo CONTAINS = new Luban.EditorEnumItemInfo("CONTAINS", "", 6, ""); + public static readonly Luban.EditorEnumItemInfo NOT_CONTAINS = new Luban.EditorEnumItemInfo("NOT_CONTAINS", "", 7, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + IS_EQUAL_TO, + IS_NOT_EQUAL_TO, + IS_LESS_THAN, + IS_LESS_THAN_OR_EQUAL_TO, + IS_GREAT_THAN, + IS_GREAT_THAN_OR_EQUAL_TO, + CONTAINS, + NOT_CONTAINS, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EOperator.cs.meta new file mode 100644 index 00000000..b05b2e8c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.EOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cdf935f01a16d8247b77903d53584d18 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..559b72be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class ExecuteTimeStatistic : ai.Service +{ + public ExecuteTimeStatistic() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + } + + public static ExecuteTimeStatistic LoadJsonExecuteTimeStatistic(SimpleJSON.JSONNode _json) + { + ExecuteTimeStatistic obj = new ai.ExecuteTimeStatistic(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonExecuteTimeStatistic(ExecuteTimeStatistic _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta new file mode 100644 index 00000000..89ee4e2b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4160d37b3e2d6614eaf8644fb047f811 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..775ce9f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FloatKeyData.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class FloatKeyData : ai.KeyData +{ + public FloatKeyData() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["value"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } value = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["value"] = new JSONNumber(value); + } + } + + public static FloatKeyData LoadJsonFloatKeyData(SimpleJSON.JSONNode _json) + { + FloatKeyData obj = new ai.FloatKeyData(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonFloatKeyData(FloatKeyData _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float value; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FloatKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FloatKeyData.cs.meta new file mode 100644 index 00000000..a886ec39 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FloatKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f00dd1d45fe036b4b9761e746fe77651 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FlowNode.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..62c24846 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FlowNode.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class FlowNode : ai.Node +{ + public FlowNode() + { + decorators = new System.Collections.Generic.List(); + services = new System.Collections.Generic.List(); + } + + + public static FlowNode LoadJsonFlowNode(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + FlowNode obj; + switch (type) + { + case "ai.Sequence": + case "Sequence":obj = new ai.Sequence(); break; + case "ai.Selector": + case "Selector":obj = new ai.Selector(); break; + case "ai.SimpleParallel": + case "SimpleParallel":obj = new ai.SimpleParallel(); break; + case "ai.UeWait": + case "UeWait":obj = new ai.UeWait(); break; + case "ai.UeWaitBlackboardTime": + case "UeWaitBlackboardTime":obj = new ai.UeWaitBlackboardTime(); break; + case "ai.MoveToTarget": + case "MoveToTarget":obj = new ai.MoveToTarget(); break; + case "ai.ChooseSkill": + case "ChooseSkill":obj = new ai.ChooseSkill(); break; + case "ai.MoveToRandomLocation": + case "MoveToRandomLocation":obj = new ai.MoveToRandomLocation(); break; + case "ai.MoveToLocation": + case "MoveToLocation":obj = new ai.MoveToLocation(); break; + case "ai.DebugPrint": + case "DebugPrint":obj = new ai.DebugPrint(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonFlowNode(FlowNode _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public System.Collections.Generic.List decorators; + + public System.Collections.Generic.List services; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FlowNode.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FlowNode.cs.meta new file mode 100644 index 00000000..28273579 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.FlowNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 44813788c19016f418cf901a6f9b258c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..69428e7b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,85 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class GetOwnerPlayer : ai.Service +{ + public GetOwnerPlayer() + { + playerActorKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["player_actor_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } playerActorKey = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (playerActorKey == null) { throw new System.ArgumentNullException(); } + _json["player_actor_key"] = new JSONString(playerActorKey); + } + } + + public static GetOwnerPlayer LoadJsonGetOwnerPlayer(SimpleJSON.JSONNode _json) + { + GetOwnerPlayer obj = new ai.GetOwnerPlayer(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonGetOwnerPlayer(GetOwnerPlayer _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string playerActorKey; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.GetOwnerPlayer.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.GetOwnerPlayer.cs.meta new file mode 100644 index 00000000..7ad2fa02 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.GetOwnerPlayer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bf08e471b69779e4db4e80ce598e6f62 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IntKeyData.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..a209d7be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IntKeyData.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class IntKeyData : ai.KeyData +{ + public IntKeyData() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["value"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } value = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["value"] = new JSONNumber(value); + } + } + + public static IntKeyData LoadJsonIntKeyData(SimpleJSON.JSONNode _json) + { + IntKeyData obj = new ai.IntKeyData(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonIntKeyData(IntKeyData _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int value; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IntKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IntKeyData.cs.meta new file mode 100644 index 00000000..b0e429ce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IntKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 67182c2562a7f154e83349ee576b8b91 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..4f8c616b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsAtLocation.cs @@ -0,0 +1,122 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class IsAtLocation : ai.Decorator +{ + public IsAtLocation() + { + keyboardKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["flow_abort_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { flowAbortMode = (ai.EFlowAbortMode)System.Enum.Parse(typeof(ai.EFlowAbortMode), _fieldJson); } else if(_fieldJson.IsNumber) { flowAbortMode = (ai.EFlowAbortMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["acceptable_radius"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } acceptableRadius = _fieldJson; + } + } + + { + var _fieldJson = _json["keyboard_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } keyboardKey = _fieldJson; + } + } + + { + var _fieldJson = _json["inverse_condition"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } inverseCondition = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + _json["flow_abort_mode"] = new JSONNumber((int)flowAbortMode); + } + { + _json["acceptable_radius"] = new JSONNumber(acceptableRadius); + } + { + + if (keyboardKey == null) { throw new System.ArgumentNullException(); } + _json["keyboard_key"] = new JSONString(keyboardKey); + } + { + _json["inverse_condition"] = new JSONBool(inverseCondition); + } + } + + public static IsAtLocation LoadJsonIsAtLocation(SimpleJSON.JSONNode _json) + { + IsAtLocation obj = new ai.IsAtLocation(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonIsAtLocation(IsAtLocation _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float acceptableRadius; + + public string keyboardKey; + + public bool inverseCondition; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsAtLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsAtLocation.cs.meta new file mode 100644 index 00000000..a4e9c3ef --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsAtLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 47c55f7afaddd20489a631565eb6a05e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsNotSet.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..678a9885 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsNotSet.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class IsNotSet : ai.KeyQueryOperator +{ + public IsNotSet() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + } + + public static IsNotSet LoadJsonIsNotSet(SimpleJSON.JSONNode _json) + { + IsNotSet obj = new ai.IsNotSet(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonIsNotSet(IsNotSet _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsNotSet.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsNotSet.cs.meta new file mode 100644 index 00000000..0e74dc2f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsNotSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5a5ececec9555bd4cb34c9a4822a22e4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsSet.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsSet.cs new file mode 100644 index 00000000..b9e9044d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsSet.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class IsSet : ai.KeyQueryOperator +{ + public IsSet() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + } + + public static IsSet LoadJsonIsSet(SimpleJSON.JSONNode _json) + { + IsSet obj = new ai.IsSet(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonIsSet(IsSet _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsSet.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsSet.cs.meta new file mode 100644 index 00000000..d52fbb39 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.IsSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 14d61667b5a99b64ebe7da2f05f8ba8f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..5b9abb7a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,85 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class KeepFaceTarget : ai.Service +{ + public KeepFaceTarget() + { + targetActorKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["target_actor_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } targetActorKey = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (targetActorKey == null) { throw new System.ArgumentNullException(); } + _json["target_actor_key"] = new JSONString(targetActorKey); + } + } + + public static KeepFaceTarget LoadJsonKeepFaceTarget(SimpleJSON.JSONNode _json) + { + KeepFaceTarget obj = new ai.KeepFaceTarget(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonKeepFaceTarget(KeepFaceTarget _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string targetActorKey; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeepFaceTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeepFaceTarget.cs.meta new file mode 100644 index 00000000..9557b438 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeepFaceTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83bf0b50c4fe35d4288ae7898091dffe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyData.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyData.cs new file mode 100644 index 00000000..dda72544 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyData.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class KeyData : Luban.EditorBeanBase +{ + public KeyData() + { + } + + + public static KeyData LoadJsonKeyData(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + KeyData obj; + switch (type) + { + case "ai.FloatKeyData": + case "FloatKeyData":obj = new ai.FloatKeyData(); break; + case "ai.IntKeyData": + case "IntKeyData":obj = new ai.IntKeyData(); break; + case "ai.StringKeyData": + case "StringKeyData":obj = new ai.StringKeyData(); break; + case "ai.BlackboardKeyData": + case "BlackboardKeyData":obj = new ai.BlackboardKeyData(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonKeyData(KeyData _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyData.cs.meta new file mode 100644 index 00000000..7a8c0d1c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b0357d2a67671a14a887727acf06b47b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..4a54ab1e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyQueryOperator.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class KeyQueryOperator : Luban.EditorBeanBase +{ + public KeyQueryOperator() + { + } + + + public static KeyQueryOperator LoadJsonKeyQueryOperator(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + KeyQueryOperator obj; + switch (type) + { + case "ai.IsSet": + case "IsSet":obj = new ai.IsSet(); break; + case "ai.IsNotSet": + case "IsNotSet":obj = new ai.IsNotSet(); break; + case "ai.BinaryOperator": + case "BinaryOperator":obj = new ai.BinaryOperator(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonKeyQueryOperator(KeyQueryOperator _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyQueryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyQueryOperator.cs.meta new file mode 100644 index 00000000..b59042c4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.KeyQueryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cba045472f50eae4dae79d80256e5fe2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..9fdd302f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToLocation.cs @@ -0,0 +1,119 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class MoveToLocation : ai.Task +{ + public MoveToLocation() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["ignore_restart_self"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } ignoreRestartSelf = _fieldJson; + } + } + + { + var _fieldJson = _json["acceptable_radius"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } acceptableRadius = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["ignore_restart_self"] = new JSONBool(ignoreRestartSelf); + } + { + _json["acceptable_radius"] = new JSONNumber(acceptableRadius); + } + } + + public static MoveToLocation LoadJsonMoveToLocation(SimpleJSON.JSONNode _json) + { + MoveToLocation obj = new ai.MoveToLocation(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMoveToLocation(MoveToLocation _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float acceptableRadius; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToLocation.cs.meta new file mode 100644 index 00000000..6837074c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c72e192e6ddc24844b2b45b4f1bbc772 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..ada11be8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToRandomLocation.cs @@ -0,0 +1,135 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class MoveToRandomLocation : ai.Task +{ + public MoveToRandomLocation() + { + originPositionKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["ignore_restart_self"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } ignoreRestartSelf = _fieldJson; + } + } + + { + var _fieldJson = _json["origin_position_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } originPositionKey = _fieldJson; + } + } + + { + var _fieldJson = _json["radius"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } radius = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["ignore_restart_self"] = new JSONBool(ignoreRestartSelf); + } + { + + if (originPositionKey == null) { throw new System.ArgumentNullException(); } + _json["origin_position_key"] = new JSONString(originPositionKey); + } + { + _json["radius"] = new JSONNumber(radius); + } + } + + public static MoveToRandomLocation LoadJsonMoveToRandomLocation(SimpleJSON.JSONNode _json) + { + MoveToRandomLocation obj = new ai.MoveToRandomLocation(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMoveToRandomLocation(MoveToRandomLocation _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string originPositionKey; + + public float radius; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToRandomLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToRandomLocation.cs.meta new file mode 100644 index 00000000..adc81ef9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToRandomLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c60989744b5ee444296992f96057b976 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..3d7dc6e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToTarget.cs @@ -0,0 +1,135 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class MoveToTarget : ai.Task +{ + public MoveToTarget() + { + targetActorKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["ignore_restart_self"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } ignoreRestartSelf = _fieldJson; + } + } + + { + var _fieldJson = _json["target_actor_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } targetActorKey = _fieldJson; + } + } + + { + var _fieldJson = _json["acceptable_radius"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } acceptableRadius = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["ignore_restart_self"] = new JSONBool(ignoreRestartSelf); + } + { + + if (targetActorKey == null) { throw new System.ArgumentNullException(); } + _json["target_actor_key"] = new JSONString(targetActorKey); + } + { + _json["acceptable_radius"] = new JSONNumber(acceptableRadius); + } + } + + public static MoveToTarget LoadJsonMoveToTarget(SimpleJSON.JSONNode _json) + { + MoveToTarget obj = new ai.MoveToTarget(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMoveToTarget(MoveToTarget _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string targetActorKey; + + public float acceptableRadius; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToTarget.cs.meta new file mode 100644 index 00000000..75f924bc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.MoveToTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 13336fbf09779a94c89db24faf411df2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Node.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Node.cs new file mode 100644 index 00000000..01bdf857 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Node.cs @@ -0,0 +1,95 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class Node : Luban.EditorBeanBase +{ + public Node() + { + nodeName = ""; + } + + + public static Node LoadJsonNode(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + Node obj; + switch (type) + { + case "ai.UeSetDefaultFocus": + case "UeSetDefaultFocus":obj = new ai.UeSetDefaultFocus(); break; + case "ai.ExecuteTimeStatistic": + case "ExecuteTimeStatistic":obj = new ai.ExecuteTimeStatistic(); break; + case "ai.ChooseTarget": + case "ChooseTarget":obj = new ai.ChooseTarget(); break; + case "ai.KeepFaceTarget": + case "KeepFaceTarget":obj = new ai.KeepFaceTarget(); break; + case "ai.GetOwnerPlayer": + case "GetOwnerPlayer":obj = new ai.GetOwnerPlayer(); break; + case "ai.UpdateDailyBehaviorProps": + case "UpdateDailyBehaviorProps":obj = new ai.UpdateDailyBehaviorProps(); break; + case "ai.UeLoop": + case "UeLoop":obj = new ai.UeLoop(); break; + case "ai.UeCooldown": + case "UeCooldown":obj = new ai.UeCooldown(); break; + case "ai.UeTimeLimit": + case "UeTimeLimit":obj = new ai.UeTimeLimit(); break; + case "ai.UeBlackboard": + case "UeBlackboard":obj = new ai.UeBlackboard(); break; + case "ai.UeForceSuccess": + case "UeForceSuccess":obj = new ai.UeForceSuccess(); break; + case "ai.IsAtLocation": + case "IsAtLocation":obj = new ai.IsAtLocation(); break; + case "ai.DistanceLessThan": + case "DistanceLessThan":obj = new ai.DistanceLessThan(); break; + case "ai.Sequence": + case "Sequence":obj = new ai.Sequence(); break; + case "ai.Selector": + case "Selector":obj = new ai.Selector(); break; + case "ai.SimpleParallel": + case "SimpleParallel":obj = new ai.SimpleParallel(); break; + case "ai.UeWait": + case "UeWait":obj = new ai.UeWait(); break; + case "ai.UeWaitBlackboardTime": + case "UeWaitBlackboardTime":obj = new ai.UeWaitBlackboardTime(); break; + case "ai.MoveToTarget": + case "MoveToTarget":obj = new ai.MoveToTarget(); break; + case "ai.ChooseSkill": + case "ChooseSkill":obj = new ai.ChooseSkill(); break; + case "ai.MoveToRandomLocation": + case "MoveToRandomLocation":obj = new ai.MoveToRandomLocation(); break; + case "ai.MoveToLocation": + case "MoveToLocation":obj = new ai.MoveToLocation(); break; + case "ai.DebugPrint": + case "DebugPrint":obj = new ai.DebugPrint(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonNode(Node _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string nodeName; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Node.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Node.cs.meta new file mode 100644 index 00000000..a0010439 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Node.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 80056c09d6a14604589a5169a756a7db +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Selector.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Selector.cs new file mode 100644 index 00000000..98f89b77 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Selector.cs @@ -0,0 +1,111 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class Selector : ai.ComposeNode +{ + public Selector() + { + children = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["children"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } children = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.FlowNode __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.FlowNode.LoadJsonFlowNode(__e); children.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + + if (children == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in children) { { var __bjson = new JSONObject(); ai.FlowNode.SaveJsonFlowNode(_e, __bjson); __cjson["null"] = __bjson; } } _json["children"] = __cjson; } + } + } + + public static Selector LoadJsonSelector(SimpleJSON.JSONNode _json) + { + Selector obj = new ai.Selector(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonSelector(Selector _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public System.Collections.Generic.List children; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Selector.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Selector.cs.meta new file mode 100644 index 00000000..8e328861 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Selector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e788338354125114cb19dd6871a6fe99 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Sequence.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Sequence.cs new file mode 100644 index 00000000..62e7de8a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Sequence.cs @@ -0,0 +1,111 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class Sequence : ai.ComposeNode +{ + public Sequence() + { + children = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["children"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } children = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.FlowNode __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.FlowNode.LoadJsonFlowNode(__e); children.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + + if (children == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in children) { { var __bjson = new JSONObject(); ai.FlowNode.SaveJsonFlowNode(_e, __bjson); __cjson["null"] = __bjson; } } _json["children"] = __cjson; } + } + } + + public static Sequence LoadJsonSequence(SimpleJSON.JSONNode _json) + { + Sequence obj = new ai.Sequence(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonSequence(Sequence _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public System.Collections.Generic.List children; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Sequence.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Sequence.cs.meta new file mode 100644 index 00000000..4b34f3eb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Sequence.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b028cbc0ffd79f84f9c5c220ed87d0ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Service.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Service.cs new file mode 100644 index 00000000..6d27116b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Service.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class Service : ai.Node +{ + public Service() + { + } + + + public static Service LoadJsonService(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + Service obj; + switch (type) + { + case "ai.UeSetDefaultFocus": + case "UeSetDefaultFocus":obj = new ai.UeSetDefaultFocus(); break; + case "ai.ExecuteTimeStatistic": + case "ExecuteTimeStatistic":obj = new ai.ExecuteTimeStatistic(); break; + case "ai.ChooseTarget": + case "ChooseTarget":obj = new ai.ChooseTarget(); break; + case "ai.KeepFaceTarget": + case "KeepFaceTarget":obj = new ai.KeepFaceTarget(); break; + case "ai.GetOwnerPlayer": + case "GetOwnerPlayer":obj = new ai.GetOwnerPlayer(); break; + case "ai.UpdateDailyBehaviorProps": + case "UpdateDailyBehaviorProps":obj = new ai.UpdateDailyBehaviorProps(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonService(Service _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Service.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Service.cs.meta new file mode 100644 index 00000000..3f859771 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Service.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: be730bf271c02cf4fbeb11c8d32e697d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..1e1edc1e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.SimpleParallel.cs @@ -0,0 +1,139 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class SimpleParallel : ai.ComposeNode +{ + public SimpleParallel() + { + finishMode = ai.EFinishMode.IMMEDIATE; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["finish_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { finishMode = (ai.EFinishMode)System.Enum.Parse(typeof(ai.EFinishMode), _fieldJson); } else if(_fieldJson.IsNumber) { finishMode = (ai.EFinishMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["main_task"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } mainTask = ai.Task.LoadJsonTask(_fieldJson); + } + } + + { + var _fieldJson = _json["background_node"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } backgroundNode = ai.FlowNode.LoadJsonFlowNode(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["finish_mode"] = new JSONNumber((int)finishMode); + } + { + + if (mainTask == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); ai.Task.SaveJsonTask(mainTask, __bjson); _json["main_task"] = __bjson; } + } + { + + if (backgroundNode == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); ai.FlowNode.SaveJsonFlowNode(backgroundNode, __bjson); _json["background_node"] = __bjson; } + } + } + + public static SimpleParallel LoadJsonSimpleParallel(SimpleJSON.JSONNode _json) + { + SimpleParallel obj = new ai.SimpleParallel(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonSimpleParallel(SimpleParallel _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public ai.EFinishMode finishMode; + + public ai.Task mainTask; + + public ai.FlowNode backgroundNode; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.SimpleParallel.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.SimpleParallel.cs.meta new file mode 100644 index 00000000..dcb0f883 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.SimpleParallel.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 881630b8e5c4b844aafce063577128f4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.StringKeyData.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..472021db --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.StringKeyData.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class StringKeyData : ai.KeyData +{ + public StringKeyData() + { + value = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["value"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } value = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + + if (value == null) { throw new System.ArgumentNullException(); } + _json["value"] = new JSONString(value); + } + } + + public static StringKeyData LoadJsonStringKeyData(SimpleJSON.JSONNode _json) + { + StringKeyData obj = new ai.StringKeyData(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonStringKeyData(StringKeyData _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string value; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.StringKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.StringKeyData.cs.meta new file mode 100644 index 00000000..466c1f10 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.StringKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9aa2f3697b2d68a49aea1c85cfe6bd4c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Task.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Task.cs new file mode 100644 index 00000000..8f79b457 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Task.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public abstract class Task : ai.FlowNode +{ + public Task() + { + } + + + public static Task LoadJsonTask(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + Task obj; + switch (type) + { + case "ai.UeWait": + case "UeWait":obj = new ai.UeWait(); break; + case "ai.UeWaitBlackboardTime": + case "UeWaitBlackboardTime":obj = new ai.UeWaitBlackboardTime(); break; + case "ai.MoveToTarget": + case "MoveToTarget":obj = new ai.MoveToTarget(); break; + case "ai.ChooseSkill": + case "ChooseSkill":obj = new ai.ChooseSkill(); break; + case "ai.MoveToRandomLocation": + case "MoveToRandomLocation":obj = new ai.MoveToRandomLocation(); break; + case "ai.MoveToLocation": + case "MoveToLocation":obj = new ai.MoveToLocation(); break; + case "ai.DebugPrint": + case "DebugPrint":obj = new ai.DebugPrint(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTask(Task _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public bool ignoreRestartSelf; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Task.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Task.cs.meta new file mode 100644 index 00000000..8012073c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.Task.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 74b2c67bbf2a2184baf80d2555390bdc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..16a4a613 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeBlackboard.cs @@ -0,0 +1,125 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeBlackboard : ai.Decorator +{ + public UeBlackboard() + { + notifyObserver = ai.ENotifyObserverMode.ON_VALUE_CHANGE; + blackboardKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["flow_abort_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { flowAbortMode = (ai.EFlowAbortMode)System.Enum.Parse(typeof(ai.EFlowAbortMode), _fieldJson); } else if(_fieldJson.IsNumber) { flowAbortMode = (ai.EFlowAbortMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["notify_observer"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { notifyObserver = (ai.ENotifyObserverMode)System.Enum.Parse(typeof(ai.ENotifyObserverMode), _fieldJson); } else if(_fieldJson.IsNumber) { notifyObserver = (ai.ENotifyObserverMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["blackboard_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } blackboardKey = _fieldJson; + } + } + + { + var _fieldJson = _json["key_query"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } keyQuery = ai.KeyQueryOperator.LoadJsonKeyQueryOperator(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + _json["flow_abort_mode"] = new JSONNumber((int)flowAbortMode); + } + { + _json["notify_observer"] = new JSONNumber((int)notifyObserver); + } + { + + if (blackboardKey == null) { throw new System.ArgumentNullException(); } + _json["blackboard_key"] = new JSONString(blackboardKey); + } + { + + if (keyQuery == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); ai.KeyQueryOperator.SaveJsonKeyQueryOperator(keyQuery, __bjson); _json["key_query"] = __bjson; } + } + } + + public static UeBlackboard LoadJsonUeBlackboard(SimpleJSON.JSONNode _json) + { + UeBlackboard obj = new ai.UeBlackboard(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeBlackboard(UeBlackboard _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public ai.ENotifyObserverMode notifyObserver; + + public string blackboardKey; + + public ai.KeyQueryOperator keyQuery; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeBlackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeBlackboard.cs.meta new file mode 100644 index 00000000..fea8bffd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeBlackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 78af7cdb1af96b34685d668bff239aaf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeCooldown.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..affa8723 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeCooldown.cs @@ -0,0 +1,93 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeCooldown : ai.Decorator +{ + public UeCooldown() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["flow_abort_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { flowAbortMode = (ai.EFlowAbortMode)System.Enum.Parse(typeof(ai.EFlowAbortMode), _fieldJson); } else if(_fieldJson.IsNumber) { flowAbortMode = (ai.EFlowAbortMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["cooldown_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } cooldownTime = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + _json["flow_abort_mode"] = new JSONNumber((int)flowAbortMode); + } + { + _json["cooldown_time"] = new JSONNumber(cooldownTime); + } + } + + public static UeCooldown LoadJsonUeCooldown(SimpleJSON.JSONNode _json) + { + UeCooldown obj = new ai.UeCooldown(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeCooldown(UeCooldown _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float cooldownTime; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeCooldown.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeCooldown.cs.meta new file mode 100644 index 00000000..1e6fed84 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeCooldown.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e61377caad63adb4ca9a240a175d9b19 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..7fc6442c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeForceSuccess.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeForceSuccess : ai.Decorator +{ + public UeForceSuccess() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["flow_abort_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { flowAbortMode = (ai.EFlowAbortMode)System.Enum.Parse(typeof(ai.EFlowAbortMode), _fieldJson); } else if(_fieldJson.IsNumber) { flowAbortMode = (ai.EFlowAbortMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + _json["flow_abort_mode"] = new JSONNumber((int)flowAbortMode); + } + } + + public static UeForceSuccess LoadJsonUeForceSuccess(SimpleJSON.JSONNode _json) + { + UeForceSuccess obj = new ai.UeForceSuccess(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeForceSuccess(UeForceSuccess _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeForceSuccess.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeForceSuccess.cs.meta new file mode 100644 index 00000000..a80f20f4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeForceSuccess.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 481d6a9ecceb1aa46b2ec396b9b79518 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeLoop.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..d1b479b1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeLoop.cs @@ -0,0 +1,119 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeLoop : ai.Decorator +{ + public UeLoop() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["flow_abort_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { flowAbortMode = (ai.EFlowAbortMode)System.Enum.Parse(typeof(ai.EFlowAbortMode), _fieldJson); } else if(_fieldJson.IsNumber) { flowAbortMode = (ai.EFlowAbortMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["num_loops"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } numLoops = _fieldJson; + } + } + + { + var _fieldJson = _json["infinite_loop"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } infiniteLoop = _fieldJson; + } + } + + { + var _fieldJson = _json["infinite_loop_timeout_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } infiniteLoopTimeoutTime = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + _json["flow_abort_mode"] = new JSONNumber((int)flowAbortMode); + } + { + _json["num_loops"] = new JSONNumber(numLoops); + } + { + _json["infinite_loop"] = new JSONBool(infiniteLoop); + } + { + _json["infinite_loop_timeout_time"] = new JSONNumber(infiniteLoopTimeoutTime); + } + } + + public static UeLoop LoadJsonUeLoop(SimpleJSON.JSONNode _json) + { + UeLoop obj = new ai.UeLoop(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeLoop(UeLoop _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int numLoops; + + public bool infiniteLoop; + + public float infiniteLoopTimeoutTime; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeLoop.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeLoop.cs.meta new file mode 100644 index 00000000..5cc25416 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeLoop.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b5c7d4e956767614e96477ddfc04c8b8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..75667c74 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,85 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeSetDefaultFocus : ai.Service +{ + public UeSetDefaultFocus() + { + keyboardKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["keyboard_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } keyboardKey = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (keyboardKey == null) { throw new System.ArgumentNullException(); } + _json["keyboard_key"] = new JSONString(keyboardKey); + } + } + + public static UeSetDefaultFocus LoadJsonUeSetDefaultFocus(SimpleJSON.JSONNode _json) + { + UeSetDefaultFocus obj = new ai.UeSetDefaultFocus(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeSetDefaultFocus(UeSetDefaultFocus _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string keyboardKey; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeSetDefaultFocus.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeSetDefaultFocus.cs.meta new file mode 100644 index 00000000..c844349a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeSetDefaultFocus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f4755fee6b1f290459e0fcf8d48337fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..f64cb031 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeTimeLimit.cs @@ -0,0 +1,93 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeTimeLimit : ai.Decorator +{ + public UeTimeLimit() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["flow_abort_mode"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { flowAbortMode = (ai.EFlowAbortMode)System.Enum.Parse(typeof(ai.EFlowAbortMode), _fieldJson); } else if(_fieldJson.IsNumber) { flowAbortMode = (ai.EFlowAbortMode)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["limit_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } limitTime = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + _json["flow_abort_mode"] = new JSONNumber((int)flowAbortMode); + } + { + _json["limit_time"] = new JSONNumber(limitTime); + } + } + + public static UeTimeLimit LoadJsonUeTimeLimit(SimpleJSON.JSONNode _json) + { + UeTimeLimit obj = new ai.UeTimeLimit(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeTimeLimit(UeTimeLimit _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float limitTime; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeTimeLimit.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeTimeLimit.cs.meta new file mode 100644 index 00000000..dae13141 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeTimeLimit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cbd895efaf409094ea172655500ddeb8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWait.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWait.cs new file mode 100644 index 00000000..3fea30b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWait.cs @@ -0,0 +1,132 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeWait : ai.Task +{ + public UeWait() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["ignore_restart_self"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } ignoreRestartSelf = _fieldJson; + } + } + + { + var _fieldJson = _json["wait_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } waitTime = _fieldJson; + } + } + + { + var _fieldJson = _json["random_deviation"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } randomDeviation = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["ignore_restart_self"] = new JSONBool(ignoreRestartSelf); + } + { + _json["wait_time"] = new JSONNumber(waitTime); + } + { + _json["random_deviation"] = new JSONNumber(randomDeviation); + } + } + + public static UeWait LoadJsonUeWait(SimpleJSON.JSONNode _json) + { + UeWait obj = new ai.UeWait(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeWait(UeWait _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float waitTime; + + public float randomDeviation; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWait.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWait.cs.meta new file mode 100644 index 00000000..6ee6a336 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWait.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 758e78903b8243546aa81f3f85098bfa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..135c7ef0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,122 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UeWaitBlackboardTime : ai.Task +{ + public UeWaitBlackboardTime() + { + blackboardKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["decorators"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } decorators = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Decorator __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Decorator.LoadJsonDecorator(__e); decorators.Add(__v); } + } + } + + { + var _fieldJson = _json["services"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } services = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { ai.Service __v; if(!__e.IsObject) { throw new SerializationException(); } __v = ai.Service.LoadJsonService(__e); services.Add(__v); } + } + } + + { + var _fieldJson = _json["ignore_restart_self"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } ignoreRestartSelf = _fieldJson; + } + } + + { + var _fieldJson = _json["blackboard_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } blackboardKey = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (decorators == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in decorators) { { var __bjson = new JSONObject(); ai.Decorator.SaveJsonDecorator(_e, __bjson); __cjson["null"] = __bjson; } } _json["decorators"] = __cjson; } + } + { + + if (services == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in services) { { var __bjson = new JSONObject(); ai.Service.SaveJsonService(_e, __bjson); __cjson["null"] = __bjson; } } _json["services"] = __cjson; } + } + { + _json["ignore_restart_self"] = new JSONBool(ignoreRestartSelf); + } + { + + if (blackboardKey == null) { throw new System.ArgumentNullException(); } + _json["blackboard_key"] = new JSONString(blackboardKey); + } + } + + public static UeWaitBlackboardTime LoadJsonUeWaitBlackboardTime(SimpleJSON.JSONNode _json) + { + UeWaitBlackboardTime obj = new ai.UeWaitBlackboardTime(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUeWaitBlackboardTime(UeWaitBlackboardTime _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string blackboardKey; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta new file mode 100644 index 00000000..b6e24c66 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: af37e5609290413429dd0e850cff066d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..d72ee6b7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,213 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.ai +{ + +public sealed class UpdateDailyBehaviorProps : ai.Service +{ + public UpdateDailyBehaviorProps() + { + satietyKey = ""; + energyKey = ""; + moodKey = ""; + satietyLowerThresholdKey = ""; + satietyUpperThresholdKey = ""; + energyLowerThresholdKey = ""; + energyUpperThresholdKey = ""; + moodLowerThresholdKey = ""; + moodUpperThresholdKey = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["node_name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } nodeName = _fieldJson; + } + } + + { + var _fieldJson = _json["satiety_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } satietyKey = _fieldJson; + } + } + + { + var _fieldJson = _json["energy_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } energyKey = _fieldJson; + } + } + + { + var _fieldJson = _json["mood_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } moodKey = _fieldJson; + } + } + + { + var _fieldJson = _json["satiety_lower_threshold_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } satietyLowerThresholdKey = _fieldJson; + } + } + + { + var _fieldJson = _json["satiety_upper_threshold_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } satietyUpperThresholdKey = _fieldJson; + } + } + + { + var _fieldJson = _json["energy_lower_threshold_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } energyLowerThresholdKey = _fieldJson; + } + } + + { + var _fieldJson = _json["energy_upper_threshold_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } energyUpperThresholdKey = _fieldJson; + } + } + + { + var _fieldJson = _json["mood_lower_threshold_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } moodLowerThresholdKey = _fieldJson; + } + } + + { + var _fieldJson = _json["mood_upper_threshold_key"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } moodUpperThresholdKey = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (nodeName == null) { throw new System.ArgumentNullException(); } + _json["node_name"] = new JSONString(nodeName); + } + { + + if (satietyKey == null) { throw new System.ArgumentNullException(); } + _json["satiety_key"] = new JSONString(satietyKey); + } + { + + if (energyKey == null) { throw new System.ArgumentNullException(); } + _json["energy_key"] = new JSONString(energyKey); + } + { + + if (moodKey == null) { throw new System.ArgumentNullException(); } + _json["mood_key"] = new JSONString(moodKey); + } + { + + if (satietyLowerThresholdKey == null) { throw new System.ArgumentNullException(); } + _json["satiety_lower_threshold_key"] = new JSONString(satietyLowerThresholdKey); + } + { + + if (satietyUpperThresholdKey == null) { throw new System.ArgumentNullException(); } + _json["satiety_upper_threshold_key"] = new JSONString(satietyUpperThresholdKey); + } + { + + if (energyLowerThresholdKey == null) { throw new System.ArgumentNullException(); } + _json["energy_lower_threshold_key"] = new JSONString(energyLowerThresholdKey); + } + { + + if (energyUpperThresholdKey == null) { throw new System.ArgumentNullException(); } + _json["energy_upper_threshold_key"] = new JSONString(energyUpperThresholdKey); + } + { + + if (moodLowerThresholdKey == null) { throw new System.ArgumentNullException(); } + _json["mood_lower_threshold_key"] = new JSONString(moodLowerThresholdKey); + } + { + + if (moodUpperThresholdKey == null) { throw new System.ArgumentNullException(); } + _json["mood_upper_threshold_key"] = new JSONString(moodUpperThresholdKey); + } + } + + public static UpdateDailyBehaviorProps LoadJsonUpdateDailyBehaviorProps(SimpleJSON.JSONNode _json) + { + UpdateDailyBehaviorProps obj = new ai.UpdateDailyBehaviorProps(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonUpdateDailyBehaviorProps(UpdateDailyBehaviorProps _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string satietyKey; + + public string energyKey; + + public string moodKey; + + public string satietyLowerThresholdKey; + + public string satietyUpperThresholdKey; + + public string energyLowerThresholdKey; + + public string energyUpperThresholdKey; + + public string moodLowerThresholdKey; + + public string moodUpperThresholdKey; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta new file mode 100644 index 00000000..cb37d47d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9e33dccba45f9b046a07146031e4bc42 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.DateTimeRange.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.DateTimeRange.cs new file mode 100644 index 00000000..073ee5b2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.DateTimeRange.cs @@ -0,0 +1,75 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.common +{ + +public sealed class DateTimeRange : Luban.EditorBeanBase +{ + public DateTimeRange() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["start_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } startTime = _fieldJson; + } + } + + { + var _fieldJson = _json["end_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } endTime = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + + if (startTime != null) + { + _json["start_time"] = new JSONString(startTime); + } + + if (endTime != null) + { + _json["end_time"] = new JSONString(endTime); + } + } + + public static DateTimeRange LoadJsonDateTimeRange(SimpleJSON.JSONNode _json) + { + DateTimeRange obj = new common.DateTimeRange(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDateTimeRange(DateTimeRange _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string startTime; + + public string endTime; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.DateTimeRange.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.DateTimeRange.cs.meta new file mode 100644 index 00000000..43cf555a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.DateTimeRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d21229e849ed74a43a7e067c1d311b7e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.EBoolOperator.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..d972fa09 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.EBoolOperator.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + + public static class EBoolOperator_Metadata + { + public static readonly Luban.EditorEnumItemInfo AND = new Luban.EditorEnumItemInfo("AND", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo OR = new Luban.EditorEnumItemInfo("OR", "", 1, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + AND, + OR, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.EBoolOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.EBoolOperator.cs.meta new file mode 100644 index 00000000..c324a239 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.EBoolOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f634d1e5136bc2489aa3a5cc6a6202f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.FloatRange.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.FloatRange.cs new file mode 100644 index 00000000..6da61b22 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.FloatRange.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.common +{ + +public sealed class FloatRange : Luban.EditorBeanBase +{ + public FloatRange() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["min"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } min = _fieldJson; + } + } + + { + var _fieldJson = _json["max"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } max = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["min"] = new JSONNumber(min); + } + { + _json["max"] = new JSONNumber(max); + } + } + + public static FloatRange LoadJsonFloatRange(SimpleJSON.JSONNode _json) + { + FloatRange obj = new common.FloatRange(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonFloatRange(FloatRange _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float min; + + public float max; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.FloatRange.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.FloatRange.cs.meta new file mode 100644 index 00000000..ce1e425a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.FloatRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e919ff66f6e8ae84ca13787bcd1d4204 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.GlobalConfig.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..39144247 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.GlobalConfig.cs @@ -0,0 +1,142 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.common +{ + +public sealed class GlobalConfig : Luban.EditorBeanBase +{ + public GlobalConfig() + { + x7 = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x5 = _fieldJson; + } + } + + { + var _fieldJson = _json["x6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x6 = _fieldJson; + } + } + + { + var _fieldJson = _json["x7"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x7 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; x7.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + { + _json["x2"] = new JSONNumber(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + { + _json["x5"] = new JSONNumber(x5); + } + { + _json["x6"] = new JSONNumber(x6); + } + { + + if (x7 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x7) { __cjson["null"] = new JSONNumber(_e); } _json["x7"] = __cjson; } + } + } + + public static GlobalConfig LoadJsonGlobalConfig(SimpleJSON.JSONNode _json) + { + GlobalConfig obj = new common.GlobalConfig(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonGlobalConfig(GlobalConfig _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + /// + /// 背包容量 + /// + public int x1; + + public int x2; + + public int x3; + + public int x4; + + public int x5; + + public int x6; + + public System.Collections.Generic.List x7; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.GlobalConfig.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.GlobalConfig.cs.meta new file mode 100644 index 00000000..f56c89bb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.GlobalConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: acf5abf4122e7184cbd7bdbdebd27790 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.IntRange.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.IntRange.cs new file mode 100644 index 00000000..b6fae5a0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.IntRange.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.common +{ + +public sealed class IntRange : Luban.EditorBeanBase +{ + public IntRange() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["min"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } min = _fieldJson; + } + } + + { + var _fieldJson = _json["max"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } max = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["min"] = new JSONNumber(min); + } + { + _json["max"] = new JSONNumber(max); + } + } + + public static IntRange LoadJsonIntRange(SimpleJSON.JSONNode _json) + { + IntRange obj = new common.IntRange(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonIntRange(IntRange _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int min; + + public int max; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.IntRange.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.IntRange.cs.meta new file mode 100644 index 00000000..04b4d913 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.IntRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1938bb8da6dacb8488c208c421b042a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.OneDayTimeRange.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.OneDayTimeRange.cs new file mode 100644 index 00000000..75bee223 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.OneDayTimeRange.cs @@ -0,0 +1,77 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.common +{ + +public sealed class OneDayTimeRange : Luban.EditorBeanBase +{ + public OneDayTimeRange() + { + startTime = new common.TimeOfDay(); + endTime = new common.TimeOfDay(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["start_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } startTime = common.TimeOfDay.LoadJsonTimeOfDay(_fieldJson); + } + } + + { + var _fieldJson = _json["end_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } endTime = common.TimeOfDay.LoadJsonTimeOfDay(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + + if (startTime == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); common.TimeOfDay.SaveJsonTimeOfDay(startTime, __bjson); _json["start_time"] = __bjson; } + } + { + + if (endTime == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); common.TimeOfDay.SaveJsonTimeOfDay(endTime, __bjson); _json["end_time"] = __bjson; } + } + } + + public static OneDayTimeRange LoadJsonOneDayTimeRange(SimpleJSON.JSONNode _json) + { + OneDayTimeRange obj = new common.OneDayTimeRange(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonOneDayTimeRange(OneDayTimeRange _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public common.TimeOfDay startTime; + + public common.TimeOfDay endTime; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.OneDayTimeRange.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.OneDayTimeRange.cs.meta new file mode 100644 index 00000000..e9b3cf0c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.OneDayTimeRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 93926a95bd85f424b9caafc946672c2f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.TimeOfDay.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.TimeOfDay.cs new file mode 100644 index 00000000..94936139 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.TimeOfDay.cs @@ -0,0 +1,84 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.common +{ + +public sealed class TimeOfDay : Luban.EditorBeanBase +{ + public TimeOfDay() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["hour"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } hour = _fieldJson; + } + } + + { + var _fieldJson = _json["minute"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } minute = _fieldJson; + } + } + + { + var _fieldJson = _json["second"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } second = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["hour"] = new JSONNumber(hour); + } + { + _json["minute"] = new JSONNumber(minute); + } + { + _json["second"] = new JSONNumber(second); + } + } + + public static TimeOfDay LoadJsonTimeOfDay(SimpleJSON.JSONNode _json) + { + TimeOfDay obj = new common.TimeOfDay(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTimeOfDay(TimeOfDay _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int hour; + + public int minute; + + public int second; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.TimeOfDay.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.TimeOfDay.cs.meta new file mode 100644 index 00000000..11ee0ac3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/common.TimeOfDay.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f8a4304be85eaca438b25a86f83c6386 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..9ec61063 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersStarQualityType.cs @@ -0,0 +1,103 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + + public static class EClothersStarQualityType_Metadata + { + public static readonly Luban.EditorEnumItemInfo ONE = new Luban.EditorEnumItemInfo("ONE", "一星", 1, "一星"); + public static readonly Luban.EditorEnumItemInfo TWO = new Luban.EditorEnumItemInfo("TWO", "二星", 2, "二星"); + public static readonly Luban.EditorEnumItemInfo THREE = new Luban.EditorEnumItemInfo("THREE", "三星", 3, "三星"); + public static readonly Luban.EditorEnumItemInfo FOUR = new Luban.EditorEnumItemInfo("FOUR", "四星", 4, "四星"); + public static readonly Luban.EditorEnumItemInfo FIVE = new Luban.EditorEnumItemInfo("FIVE", "五星", 5, "五星"); + public static readonly Luban.EditorEnumItemInfo SIX = new Luban.EditorEnumItemInfo("SIX", "六星", 6, "六星"); + public static readonly Luban.EditorEnumItemInfo SEVEN = new Luban.EditorEnumItemInfo("SEVEN", "七星", 7, "七星"); + public static readonly Luban.EditorEnumItemInfo EIGHT = new Luban.EditorEnumItemInfo("EIGHT", "八星", 8, "八星"); + public static readonly Luban.EditorEnumItemInfo NINE = new Luban.EditorEnumItemInfo("NINE", "九星", 9, "九星"); + public static readonly Luban.EditorEnumItemInfo TEN = new Luban.EditorEnumItemInfo("TEN", "十星", 10, "十星"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + ONE, + TWO, + THREE, + FOUR, + FIVE, + SIX, + SEVEN, + EIGHT, + NINE, + TEN, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersStarQualityType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersStarQualityType.cs.meta new file mode 100644 index 00000000..bbe9ea51 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersStarQualityType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d73bc77bb0f0eb4dab614317c600eb2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersTag.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..893bfc3d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersTag.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.item +{ + public enum EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + + public static class EClothersTag_Metadata + { + public static readonly Luban.EditorEnumItemInfo FANG_SHAI = new Luban.EditorEnumItemInfo("FANG_SHAI", "防晒", 1, "防晒"); + public static readonly Luban.EditorEnumItemInfo WU_ZHE = new Luban.EditorEnumItemInfo("WU_ZHE", "舞者", 2, "舞者"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + FANG_SHAI, + WU_ZHE, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersTag.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersTag.cs.meta new file mode 100644 index 00000000..fb76f64f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothersTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f49afa237f8cf9144b1845bd9a325bdb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..8f9ca2f3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesHidePartType.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.item +{ + public enum EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + + public static class EClothesHidePartType_Metadata + { + public static readonly Luban.EditorEnumItemInfo CHEST = new Luban.EditorEnumItemInfo("CHEST", "胸部", 0, "胸部"); + public static readonly Luban.EditorEnumItemInfo HEAD = new Luban.EditorEnumItemInfo("HEAD", "手", 1, "手"); + public static readonly Luban.EditorEnumItemInfo SPINE_UPPER = new Luban.EditorEnumItemInfo("SPINE_UPPER", "脊柱上", 2, "脊柱上"); + public static readonly Luban.EditorEnumItemInfo SPINE_LOWER = new Luban.EditorEnumItemInfo("SPINE_LOWER", "脊柱下", 3, "脊柱下"); + public static readonly Luban.EditorEnumItemInfo HIP = new Luban.EditorEnumItemInfo("HIP", "臀部", 4, "臀部"); + public static readonly Luban.EditorEnumItemInfo LEG_UPPER = new Luban.EditorEnumItemInfo("LEG_UPPER", "腿上", 5, "腿上"); + public static readonly Luban.EditorEnumItemInfo LEG_MIDDLE = new Luban.EditorEnumItemInfo("LEG_MIDDLE", "腿中", 6, "腿中"); + public static readonly Luban.EditorEnumItemInfo LEG_LOWER = new Luban.EditorEnumItemInfo("LEG_LOWER", "腿下", 7, "腿下"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + CHEST, + HEAD, + SPINE_UPPER, + SPINE_LOWER, + HIP, + LEG_UPPER, + LEG_MIDDLE, + LEG_LOWER, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesHidePartType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesHidePartType.cs.meta new file mode 100644 index 00000000..5d5ad765 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesHidePartType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f8a89e36f5c5e614f8669330b2638c27 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..6ee1bd94 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesPropertyType.cs @@ -0,0 +1,103 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + + public static class EClothesPropertyType_Metadata + { + public static readonly Luban.EditorEnumItemInfo JIAN_YUE = new Luban.EditorEnumItemInfo("JIAN_YUE", "简约", 1, "简约"); + public static readonly Luban.EditorEnumItemInfo HUA_LI = new Luban.EditorEnumItemInfo("HUA_LI", "华丽", 2, "华丽"); + public static readonly Luban.EditorEnumItemInfo KE_AI = new Luban.EditorEnumItemInfo("KE_AI", "可爱", 3, "可爱"); + public static readonly Luban.EditorEnumItemInfo CHENG_SHU = new Luban.EditorEnumItemInfo("CHENG_SHU", "成熟", 4, "成熟"); + public static readonly Luban.EditorEnumItemInfo HUO_PO = new Luban.EditorEnumItemInfo("HUO_PO", "活泼", 5, "活泼"); + public static readonly Luban.EditorEnumItemInfo YOU_YA = new Luban.EditorEnumItemInfo("YOU_YA", "优雅", 6, "优雅"); + public static readonly Luban.EditorEnumItemInfo QING_CHUN = new Luban.EditorEnumItemInfo("QING_CHUN", "清纯", 7, "清纯"); + public static readonly Luban.EditorEnumItemInfo XING_GAN = new Luban.EditorEnumItemInfo("XING_GAN", "性感", 8, "性感"); + public static readonly Luban.EditorEnumItemInfo QING_LIANG = new Luban.EditorEnumItemInfo("QING_LIANG", "清凉", 9, "清凉"); + public static readonly Luban.EditorEnumItemInfo BAO_NUAN = new Luban.EditorEnumItemInfo("BAO_NUAN", "保暖", 10, "保暖"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + JIAN_YUE, + HUA_LI, + KE_AI, + CHENG_SHU, + HUO_PO, + YOU_YA, + QING_CHUN, + XING_GAN, + QING_LIANG, + BAO_NUAN, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesPropertyType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesPropertyType.cs.meta new file mode 100644 index 00000000..717bb8da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EClothesPropertyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4f37000ef84a63b4db397b5d20ca1490 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.ECurrencyType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..1d1a1e0d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.ECurrencyType.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.item +{ + public enum ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + + public static class ECurrencyType_Metadata + { + public static readonly Luban.EditorEnumItemInfo DIAMOND = new Luban.EditorEnumItemInfo("DIAMOND", "钻石", 1, "钻石"); + public static readonly Luban.EditorEnumItemInfo GOLD = new Luban.EditorEnumItemInfo("GOLD", "金币", 2, "金币"); + public static readonly Luban.EditorEnumItemInfo SILVER = new Luban.EditorEnumItemInfo("SILVER", "银币", 3, "银币"); + public static readonly Luban.EditorEnumItemInfo EXP = new Luban.EditorEnumItemInfo("EXP", "经验", 4, "经验"); + public static readonly Luban.EditorEnumItemInfo POWER_POINT = new Luban.EditorEnumItemInfo("POWER_POINT", "能量点", 5, "能量点"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + DIAMOND, + GOLD, + SILVER, + EXP, + POWER_POINT, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.ECurrencyType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.ECurrencyType.cs.meta new file mode 100644 index 00000000..4929a3c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.ECurrencyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a7f5298b5fcc412489d50549acc77fc8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EItemQuality.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..659fbd33 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EItemQuality.cs @@ -0,0 +1,76 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.item +{ + /// + /// 道具品质 + /// + public enum EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + + public static class EItemQuality_Metadata + { + public static readonly Luban.EditorEnumItemInfo WHITE = new Luban.EditorEnumItemInfo("WHITE", "白", 0, "白"); + public static readonly Luban.EditorEnumItemInfo GREEN = new Luban.EditorEnumItemInfo("GREEN", "绿", 1, "绿"); + public static readonly Luban.EditorEnumItemInfo BLUE = new Luban.EditorEnumItemInfo("BLUE", "蓝", 2, "蓝"); + public static readonly Luban.EditorEnumItemInfo PURPLE = new Luban.EditorEnumItemInfo("PURPLE", "紫", 3, "紫"); + public static readonly Luban.EditorEnumItemInfo GOLDEN = new Luban.EditorEnumItemInfo("GOLDEN", "金", 4, "金"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + WHITE, + GREEN, + BLUE, + PURPLE, + GOLDEN, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EItemQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EItemQuality.cs.meta new file mode 100644 index 00000000..d9fe2639 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EItemQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1afb7809a02c10c41bec988bce3d0c58 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMajorType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMajorType.cs new file mode 100644 index 00000000..0d880bbb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMajorType.cs @@ -0,0 +1,109 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.item +{ + public enum EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + + public static class EMajorType_Metadata + { + public static readonly Luban.EditorEnumItemInfo CURRENCY = new Luban.EditorEnumItemInfo("CURRENCY", "货币", 1, "货币"); + public static readonly Luban.EditorEnumItemInfo CLOTH = new Luban.EditorEnumItemInfo("CLOTH", "服装", 2, "服装"); + public static readonly Luban.EditorEnumItemInfo QUEST = new Luban.EditorEnumItemInfo("QUEST", "任务", 3, "任务"); + public static readonly Luban.EditorEnumItemInfo CONSUMABLES = new Luban.EditorEnumItemInfo("CONSUMABLES", "消耗品", 4, "消耗品"); + public static readonly Luban.EditorEnumItemInfo TREASURE_BOX = new Luban.EditorEnumItemInfo("TREASURE_BOX", "宝箱", 5, "宝箱"); + public static readonly Luban.EditorEnumItemInfo ACHIEVEMENT_AND_TITLE = new Luban.EditorEnumItemInfo("ACHIEVEMENT_AND_TITLE", "成就和称谓", 6, "成就和称谓"); + public static readonly Luban.EditorEnumItemInfo HEAD_FRAME = new Luban.EditorEnumItemInfo("HEAD_FRAME", "头像框", 7, "头像框"); + public static readonly Luban.EditorEnumItemInfo VOICE = new Luban.EditorEnumItemInfo("VOICE", "语音", 8, "语音"); + public static readonly Luban.EditorEnumItemInfo ACTION = new Luban.EditorEnumItemInfo("ACTION", "动作", 9, "动作"); + public static readonly Luban.EditorEnumItemInfo EXPANSION = new Luban.EditorEnumItemInfo("EXPANSION", "扩容道具", 10, "扩容道具"); + public static readonly Luban.EditorEnumItemInfo MATERIAL = new Luban.EditorEnumItemInfo("MATERIAL", "制作材料", 11, "制作材料"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + CURRENCY, + CLOTH, + QUEST, + CONSUMABLES, + TREASURE_BOX, + ACHIEVEMENT_AND_TITLE, + HEAD_FRAME, + VOICE, + ACTION, + EXPANSION, + MATERIAL, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMajorType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMajorType.cs.meta new file mode 100644 index 00000000..8c510ba4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMajorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 36f87492496395643b41aa95720e09fc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMinorType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMinorType.cs new file mode 100644 index 00000000..875f976d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMinorType.cs @@ -0,0 +1,337 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.item +{ + public enum EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + + public static class EMinorType_Metadata + { + public static readonly Luban.EditorEnumItemInfo DIAMOND = new Luban.EditorEnumItemInfo("DIAMOND", "钻石", 101, "钻石"); + public static readonly Luban.EditorEnumItemInfo GOLD = new Luban.EditorEnumItemInfo("GOLD", "金币", 102, "金币"); + public static readonly Luban.EditorEnumItemInfo SILVER = new Luban.EditorEnumItemInfo("SILVER", "银币", 103, "银币"); + public static readonly Luban.EditorEnumItemInfo EXP = new Luban.EditorEnumItemInfo("EXP", "经验", 104, "经验"); + public static readonly Luban.EditorEnumItemInfo POWER_POINT = new Luban.EditorEnumItemInfo("POWER_POINT", "能量点", 105, "能量点"); + public static readonly Luban.EditorEnumItemInfo HAIR_STYLE = new Luban.EditorEnumItemInfo("HAIR_STYLE", "发型", 210, "发型"); + public static readonly Luban.EditorEnumItemInfo COAT = new Luban.EditorEnumItemInfo("COAT", "外套", 220, "外套"); + public static readonly Luban.EditorEnumItemInfo UPPER_JACKET = new Luban.EditorEnumItemInfo("UPPER_JACKET", "上衣", 230, "上衣"); + public static readonly Luban.EditorEnumItemInfo TROUSERS = new Luban.EditorEnumItemInfo("TROUSERS", "裤子", 241, "裤子"); + public static readonly Luban.EditorEnumItemInfo SKIRT = new Luban.EditorEnumItemInfo("SKIRT", "裙子", 242, "裙子"); + public static readonly Luban.EditorEnumItemInfo SOCKS = new Luban.EditorEnumItemInfo("SOCKS", "袜子", 250, "袜子"); + public static readonly Luban.EditorEnumItemInfo SHOES = new Luban.EditorEnumItemInfo("SHOES", "鞋子", 260, "鞋子"); + public static readonly Luban.EditorEnumItemInfo HAIR_ACCESSORY = new Luban.EditorEnumItemInfo("HAIR_ACCESSORY", "发饰", 271, "发饰"); + public static readonly Luban.EditorEnumItemInfo HAT = new Luban.EditorEnumItemInfo("HAT", "帽子", 272, "帽子"); + public static readonly Luban.EditorEnumItemInfo EARRING = new Luban.EditorEnumItemInfo("EARRING", "耳饰", 273, "耳饰"); + public static readonly Luban.EditorEnumItemInfo NECKLACE = new Luban.EditorEnumItemInfo("NECKLACE", "颈饰", 274, "颈饰"); + public static readonly Luban.EditorEnumItemInfo BRACELET = new Luban.EditorEnumItemInfo("BRACELET", "腕饰", 275, "腕饰"); + public static readonly Luban.EditorEnumItemInfo HAIR_CLASP = new Luban.EditorEnumItemInfo("HAIR_CLASP", "发箍", 276, "发箍"); + public static readonly Luban.EditorEnumItemInfo GLOVE = new Luban.EditorEnumItemInfo("GLOVE", "手套", 277, "手套"); + public static readonly Luban.EditorEnumItemInfo HANDHELD_OBJECT = new Luban.EditorEnumItemInfo("HANDHELD_OBJECT", "手持物", 278, "手持物"); + public static readonly Luban.EditorEnumItemInfo SPECIAL = new Luban.EditorEnumItemInfo("SPECIAL", "特殊", 279, "特殊"); + public static readonly Luban.EditorEnumItemInfo BASE_COSMETIC = new Luban.EditorEnumItemInfo("BASE_COSMETIC", "底妆", 281, "底妆"); + public static readonly Luban.EditorEnumItemInfo EYEBROW_COSMETIC = new Luban.EditorEnumItemInfo("EYEBROW_COSMETIC", "眉妆", 282, "眉妆"); + public static readonly Luban.EditorEnumItemInfo EYELASH = new Luban.EditorEnumItemInfo("EYELASH", "睫毛", 283, "睫毛"); + public static readonly Luban.EditorEnumItemInfo COSMETIC_CONTACT_LENSES = new Luban.EditorEnumItemInfo("COSMETIC_CONTACT_LENSES", "美瞳", 284, "美瞳"); + public static readonly Luban.EditorEnumItemInfo LIP_COSMETIC = new Luban.EditorEnumItemInfo("LIP_COSMETIC", "唇妆", 285, "唇妆"); + public static readonly Luban.EditorEnumItemInfo SKIN_COLOR = new Luban.EditorEnumItemInfo("SKIN_COLOR", "肤色", 286, "肤色"); + public static readonly Luban.EditorEnumItemInfo ONE_PIECE_DRESS = new Luban.EditorEnumItemInfo("ONE_PIECE_DRESS", "连衣裙", 290, "连衣裙"); + public static readonly Luban.EditorEnumItemInfo SWITCH_CLOTHES_SCENE = new Luban.EditorEnumItemInfo("SWITCH_CLOTHES_SCENE", "换装场景", 291, "换装场景"); + public static readonly Luban.EditorEnumItemInfo QUEST = new Luban.EditorEnumItemInfo("QUEST", "任务道具", 301, "任务道具"); + public static readonly Luban.EditorEnumItemInfo CAST = new Luban.EditorEnumItemInfo("CAST", "投掷物", 401, "投掷物"); + public static readonly Luban.EditorEnumItemInfo SWORD = new Luban.EditorEnumItemInfo("SWORD", "刀剑", 421, "刀剑"); + public static readonly Luban.EditorEnumItemInfo BOW_ARROW = new Luban.EditorEnumItemInfo("BOW_ARROW", "弓箭", 422, "弓箭"); + public static readonly Luban.EditorEnumItemInfo WANDS = new Luban.EditorEnumItemInfo("WANDS", "法杖", 423, "法杖"); + public static readonly Luban.EditorEnumItemInfo SPECIAL_TOOL = new Luban.EditorEnumItemInfo("SPECIAL_TOOL", "特殊工具", 424, "特殊工具"); + public static readonly Luban.EditorEnumItemInfo FOOD = new Luban.EditorEnumItemInfo("FOOD", "食物", 403, "食物"); + public static readonly Luban.EditorEnumItemInfo TREASURE_BOX = new Luban.EditorEnumItemInfo("TREASURE_BOX", "宝箱", 501, "宝箱"); + public static readonly Luban.EditorEnumItemInfo KEY = new Luban.EditorEnumItemInfo("KEY", "钥匙", 502, "钥匙"); + public static readonly Luban.EditorEnumItemInfo MULTI_CHOOSE_TREASURE_BOX = new Luban.EditorEnumItemInfo("MULTI_CHOOSE_TREASURE_BOX", "多选一宝箱", 503, "多选一宝箱"); + public static readonly Luban.EditorEnumItemInfo ACHIEVEMENT = new Luban.EditorEnumItemInfo("ACHIEVEMENT", "成就相关", 601, "成就相关"); + public static readonly Luban.EditorEnumItemInfo TITLE = new Luban.EditorEnumItemInfo("TITLE", "称谓相关", 602, "称谓相关"); + public static readonly Luban.EditorEnumItemInfo AVATAR_FRAME = new Luban.EditorEnumItemInfo("AVATAR_FRAME", "头像框", 701, "头像框"); + public static readonly Luban.EditorEnumItemInfo VOICE = new Luban.EditorEnumItemInfo("VOICE", "语音", 801, "语音"); + public static readonly Luban.EditorEnumItemInfo IDLE_POSE = new Luban.EditorEnumItemInfo("IDLE_POSE", "特殊待机动作", 901, "特殊待机动作"); + public static readonly Luban.EditorEnumItemInfo PHOTO_POSE = new Luban.EditorEnumItemInfo("PHOTO_POSE", "拍照动作", 902, "拍照动作"); + public static readonly Luban.EditorEnumItemInfo BAG = new Luban.EditorEnumItemInfo("BAG", "背包", 1001, "背包"); + public static readonly Luban.EditorEnumItemInfo FRIEND_CAPACITY = new Luban.EditorEnumItemInfo("FRIEND_CAPACITY", "好友数量", 1002, "好友数量"); + public static readonly Luban.EditorEnumItemInfo CONSTRUCTION_MATERIAL = new Luban.EditorEnumItemInfo("CONSTRUCTION_MATERIAL", "制作材料", 1101, "制作材料"); + public static readonly Luban.EditorEnumItemInfo DESIGN_DRAWING = new Luban.EditorEnumItemInfo("DESIGN_DRAWING", "设计图纸", 1102, "设计图纸"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + DIAMOND, + GOLD, + SILVER, + EXP, + POWER_POINT, + HAIR_STYLE, + COAT, + UPPER_JACKET, + TROUSERS, + SKIRT, + SOCKS, + SHOES, + HAIR_ACCESSORY, + HAT, + EARRING, + NECKLACE, + BRACELET, + HAIR_CLASP, + GLOVE, + HANDHELD_OBJECT, + SPECIAL, + BASE_COSMETIC, + EYEBROW_COSMETIC, + EYELASH, + COSMETIC_CONTACT_LENSES, + LIP_COSMETIC, + SKIN_COLOR, + ONE_PIECE_DRESS, + SWITCH_CLOTHES_SCENE, + QUEST, + CAST, + SWORD, + BOW_ARROW, + WANDS, + SPECIAL_TOOL, + FOOD, + TREASURE_BOX, + KEY, + MULTI_CHOOSE_TREASURE_BOX, + ACHIEVEMENT, + TITLE, + AVATAR_FRAME, + VOICE, + IDLE_POSE, + PHOTO_POSE, + BAG, + FRIEND_CAPACITY, + CONSTRUCTION_MATERIAL, + DESIGN_DRAWING, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMinorType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMinorType.cs.meta new file mode 100644 index 00000000..aabcc92c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EMinorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 75a87f0390d3f674ebec28735ba792f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EUseType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EUseType.cs new file mode 100644 index 00000000..68a9ac92 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EUseType.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.item +{ + public enum EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + + public static class EUseType_Metadata + { + public static readonly Luban.EditorEnumItemInfo MANUAL = new Luban.EditorEnumItemInfo("MANUAL", "手动", 0, "手动"); + public static readonly Luban.EditorEnumItemInfo AUTO = new Luban.EditorEnumItemInfo("AUTO", "自动", 1, "自动"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + MANUAL, + AUTO, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EUseType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EUseType.cs.meta new file mode 100644 index 00000000..aa0b1a61 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.EUseType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 122731cf137f92144a56cf26db91946c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.Item.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.Item.cs new file mode 100644 index 00000000..da2b5b75 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.Item.cs @@ -0,0 +1,212 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.item +{ + +/// +/// 道具 +/// +public sealed class Item : Luban.EditorBeanBase +{ + public Item() + { + name = ""; + majorType = item.EMajorType.CURRENCY; + minorType = item.EMinorType.DIAMOND; + quality = item.EItemQuality.WHITE; + icon = ""; + iconBackgroud = ""; + iconMask = ""; + desc = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["major_type"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { majorType = (item.EMajorType)System.Enum.Parse(typeof(item.EMajorType), _fieldJson); } else if(_fieldJson.IsNumber) { majorType = (item.EMajorType)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["minor_type"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { minorType = (item.EMinorType)System.Enum.Parse(typeof(item.EMinorType), _fieldJson); } else if(_fieldJson.IsNumber) { minorType = (item.EMinorType)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["max_pile_num"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } maxPileNum = _fieldJson; + } + } + + { + var _fieldJson = _json["quality"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { quality = (item.EItemQuality)System.Enum.Parse(typeof(item.EItemQuality), _fieldJson); } else if(_fieldJson.IsNumber) { quality = (item.EItemQuality)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["icon"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } icon = _fieldJson; + } + } + + { + var _fieldJson = _json["icon_backgroud"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } iconBackgroud = _fieldJson; + } + } + + { + var _fieldJson = _json["icon_mask"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } iconMask = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["show_order"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } showOrder = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + _json["major_type"] = new JSONNumber((int)majorType); + } + { + _json["minor_type"] = new JSONNumber((int)minorType); + } + { + _json["max_pile_num"] = new JSONNumber(maxPileNum); + } + { + _json["quality"] = new JSONNumber((int)quality); + } + { + + if (icon == null) { throw new System.ArgumentNullException(); } + _json["icon"] = new JSONString(icon); + } + { + + if (iconBackgroud == null) { throw new System.ArgumentNullException(); } + _json["icon_backgroud"] = new JSONString(iconBackgroud); + } + { + + if (iconMask == null) { throw new System.ArgumentNullException(); } + _json["icon_mask"] = new JSONString(iconMask); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + _json["show_order"] = new JSONNumber(showOrder); + } + } + + public static Item LoadJsonItem(SimpleJSON.JSONNode _json) + { + Item obj = new item.Item(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonItem(Item _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + /// + /// 道具id + /// + public int id; + + public string name; + + public item.EMajorType majorType; + + public item.EMinorType minorType; + + public int maxPileNum; + + public item.EItemQuality quality; + + public string icon; + + public string iconBackgroud; + + public string iconMask; + + public string desc; + + public int showOrder; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.Item.cs.meta new file mode 100644 index 00000000..136962ca --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/item.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 96308cd825f3ce3488eab24ad39e55b0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..1dabc7c6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.L10NDemo.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.l10n +{ + +public sealed class L10NDemo : Luban.EditorBeanBase +{ + public L10NDemo() + { + text = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["text"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } text = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (text == null) { throw new System.ArgumentNullException(); } + _json["text"] = new JSONString(text); + } + } + + public static L10NDemo LoadJsonL10NDemo(SimpleJSON.JSONNode _json) + { + L10NDemo obj = new l10n.L10NDemo(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonL10NDemo(L10NDemo _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string text; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.L10NDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.L10NDemo.cs.meta new file mode 100644 index 00000000..4104f8be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.L10NDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe461078af0c90e409714f7f1fbbb760 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..1e409830 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.PatchDemo.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.l10n +{ + +public sealed class PatchDemo : Luban.EditorBeanBase +{ + public PatchDemo() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["value"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } value = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["value"] = new JSONNumber(value); + } + } + + public static PatchDemo LoadJsonPatchDemo(SimpleJSON.JSONNode _json) + { + PatchDemo obj = new l10n.PatchDemo(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonPatchDemo(PatchDemo _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int value; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.PatchDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.PatchDemo.cs.meta new file mode 100644 index 00000000..c89c3bbc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/l10n.PatchDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc2ebfc43a8812c4cb525f8325da15d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/tag.TestTag.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/tag.TestTag.cs new file mode 100644 index 00000000..51e051a5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/tag.TestTag.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.tag +{ + +public sealed class TestTag : Luban.EditorBeanBase +{ + public TestTag() + { + value = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["value"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } value = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (value == null) { throw new System.ArgumentNullException(); } + _json["value"] = new JSONString(value); + } + } + + public static TestTag LoadJsonTestTag(SimpleJSON.JSONNode _json) + { + TestTag obj = new tag.TestTag(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestTag(TestTag _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string value; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/tag.TestTag.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/tag.TestTag.cs.meta new file mode 100644 index 00000000..e05d8f52 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/tag.TestTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3cb07d2432385d24095297343d018775 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.AccessFlag.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..4ff1c703 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.AccessFlag.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.test +{ + [System.Flags] + public enum AccessFlag + { + WRITE = 1, + READ = 2, + TRUNCATE = 4, + NEW = 8, + READ_WRITE = WRITE|READ, + } + + public static class AccessFlag_Metadata + { + public static readonly Luban.EditorEnumItemInfo WRITE = new Luban.EditorEnumItemInfo("WRITE", "", 1, ""); + public static readonly Luban.EditorEnumItemInfo READ = new Luban.EditorEnumItemInfo("READ", "", 2, ""); + public static readonly Luban.EditorEnumItemInfo TRUNCATE = new Luban.EditorEnumItemInfo("TRUNCATE", "", 4, ""); + public static readonly Luban.EditorEnumItemInfo NEW = new Luban.EditorEnumItemInfo("NEW", "", 8, ""); + public static readonly Luban.EditorEnumItemInfo READ_WRITE = new Luban.EditorEnumItemInfo("READ_WRITE", "", 3, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + WRITE, + READ, + TRUNCATE, + NEW, + READ_WRITE, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.AccessFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.AccessFlag.cs.meta new file mode 100644 index 00000000..791b14c0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.AccessFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 48738d117cca0d54fb4a2f8aa129d2ff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Circle.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Circle.cs new file mode 100644 index 00000000..1357e6d4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Circle.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +/// +/// 圆 +/// +public sealed class Circle : Shape +{ + public Circle() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["radius"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } radius = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["radius"] = new JSONNumber(radius); + } + } + + public static Circle LoadJsonCircle(SimpleJSON.JSONNode _json) + { + Circle obj = new test.Circle(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonCircle(Circle _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + /// + /// 半径 + /// + public float radius; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Circle.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Circle.cs.meta new file mode 100644 index 00000000..7234a59c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Circle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9382a6b778f5e0e4d9b6f52cd9adadb6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompactString.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompactString.cs new file mode 100644 index 00000000..66ac13da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompactString.cs @@ -0,0 +1,90 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class CompactString : Luban.EditorBeanBase +{ + public CompactString() + { + s2 = ""; + s3 = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["s2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s2 = _fieldJson; + } + } + + { + var _fieldJson = _json["s3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s3 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (s2 == null) { throw new System.ArgumentNullException(); } + _json["s2"] = new JSONString(s2); + } + { + + if (s3 == null) { throw new System.ArgumentNullException(); } + _json["s3"] = new JSONString(s3); + } + } + + public static CompactString LoadJsonCompactString(SimpleJSON.JSONNode _json) + { + CompactString obj = new test.CompactString(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonCompactString(CompactString _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string s2; + + public string s3; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompactString.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompactString.cs.meta new file mode 100644 index 00000000..1a5b9a7d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompactString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fb89d3dbd56163b4dbc755b253e92ea9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..3b1d1b00 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable1.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class CompositeJsonTable1 : Luban.EditorBeanBase +{ + public CompositeJsonTable1() + { + x = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } x = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (x == null) { throw new System.ArgumentNullException(); } + _json["x"] = new JSONString(x); + } + } + + public static CompositeJsonTable1 LoadJsonCompositeJsonTable1(SimpleJSON.JSONNode _json) + { + CompositeJsonTable1 obj = new test.CompositeJsonTable1(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonCompositeJsonTable1(CompositeJsonTable1 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string x; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable1.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable1.cs.meta new file mode 100644 index 00000000..7f2520d3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5bab8d49dbb4ba2468dde4e8ede36392 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..bf42a8db --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable2.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class CompositeJsonTable2 : Luban.EditorBeanBase +{ + public CompositeJsonTable2() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["y"] = new JSONNumber(y); + } + } + + public static CompositeJsonTable2 LoadJsonCompositeJsonTable2(SimpleJSON.JSONNode _json) + { + CompositeJsonTable2 obj = new test.CompositeJsonTable2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonCompositeJsonTable2(CompositeJsonTable2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int y; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable2.cs.meta new file mode 100644 index 00000000..8eb5000e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 85a3a33cc61723044819f8ef65223a65 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..8b8f5084 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable3.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class CompositeJsonTable3 : Luban.EditorBeanBase +{ + public CompositeJsonTable3() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["a"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } a = _fieldJson; + } + } + + { + var _fieldJson = _json["b"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } b = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["a"] = new JSONNumber(a); + } + { + _json["b"] = new JSONNumber(b); + } + } + + public static CompositeJsonTable3 LoadJsonCompositeJsonTable3(SimpleJSON.JSONNode _json) + { + CompositeJsonTable3 obj = new test.CompositeJsonTable3(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonCompositeJsonTable3(CompositeJsonTable3 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int a; + + public int b; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable3.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable3.cs.meta new file mode 100644 index 00000000..a59d1479 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.CompositeJsonTable3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c83c9da7dfd458b41874c5a050c2266d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DateTimeRange.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..16c1f3a8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DateTimeRange.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DateTimeRange : Luban.EditorBeanBase +{ + public DateTimeRange() + { + startTime = "1970-01-01 00:00:00"; + endTime = "1970-01-01 00:00:00"; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["start_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } startTime = _fieldJson; + } + } + + { + var _fieldJson = _json["end_time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } endTime = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["start_time"] = new JSONString(startTime); + } + { + _json["end_time"] = new JSONString(endTime); + } + } + + public static DateTimeRange LoadJsonDateTimeRange(SimpleJSON.JSONNode _json) + { + DateTimeRange obj = new test.DateTimeRange(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDateTimeRange(DateTimeRange _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string startTime; + + public string endTime; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DateTimeRange.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DateTimeRange.cs.meta new file mode 100644 index 00000000..0b14c9ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DateTimeRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 497a8344e2462454f9b99f400a439cb9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Decorator.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Decorator.cs new file mode 100644 index 00000000..93612a21 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Decorator.cs @@ -0,0 +1,95 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class Decorator : test.ItemBase +{ + public Decorator() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["duration"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } duration = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + _json["duration"] = new JSONNumber(duration); + } + } + + public static Decorator LoadJsonDecorator(SimpleJSON.JSONNode _json) + { + Decorator obj = new test.Decorator(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDecorator(Decorator _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int duration; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Decorator.cs.meta new file mode 100644 index 00000000..88b144f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bcdd93dd39cd3f8469206b175ec69343 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD2.cs new file mode 100644 index 00000000..5163f49f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD2.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoD2 : test.DemoDynamic +{ + public DemoD2() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + { + _json["x2"] = new JSONNumber(x2); + } + } + + public static DemoD2 LoadJsonDemoD2(SimpleJSON.JSONNode _json) + { + DemoD2 obj = new test.DemoD2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoD2(DemoD2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x2; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD2.cs.meta new file mode 100644 index 00000000..616a9be9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 89ca2016bf528e54cbdb63b7f1ead50d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD3.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD3.cs new file mode 100644 index 00000000..9a852060 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public abstract class DemoD3 : test.DemoDynamic +{ + public DemoD3() + { + } + + + public static DemoD3 LoadJsonDemoD3(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + DemoD3 obj; + switch (type) + { + case "test.DemoE1": + case "DemoE1":obj = new test.DemoE1(); break; + case "test.login.RoleInfo":obj = new test.login.RoleInfo(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoD3(DemoD3 _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x3; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD3.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD3.cs.meta new file mode 100644 index 00000000..517dbb21 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bcb558f78eeee0b4988e8142b9f3e86e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD5.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD5.cs new file mode 100644 index 00000000..6e008ada --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD5.cs @@ -0,0 +1,72 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoD5 : test.DemoDynamic +{ + public DemoD5() + { + time = new test.DateTimeRange(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["time"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } time = test.DateTimeRange.LoadJsonDateTimeRange(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + { + + if (time == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DateTimeRange.SaveJsonDateTimeRange(time, __bjson); _json["time"] = __bjson; } + } + } + + public static DemoD5 LoadJsonDemoD5(SimpleJSON.JSONNode _json) + { + DemoD5 obj = new test.DemoD5(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoD5(DemoD5 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public test.DateTimeRange time; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD5.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD5.cs.meta new file mode 100644 index 00000000..6daa0979 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoD5.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3b3d23dee5540224da250d8aba0d4331 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoDynamic.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..802ae40a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoDynamic.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public abstract class DemoDynamic : Luban.EditorBeanBase +{ + public DemoDynamic() + { + } + + + public static DemoDynamic LoadJsonDemoDynamic(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + DemoDynamic obj; + switch (type) + { + case "test.DemoD2": + case "DemoD2":obj = new test.DemoD2(); break; + case "test.DemoE1": + case "DemoE1":obj = new test.DemoE1(); break; + case "test.login.RoleInfo":obj = new test.login.RoleInfo(); break; + case "test.DemoD5": + case "DemoD5":obj = new test.DemoD5(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoDynamic(DemoDynamic _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x1; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoDynamic.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoDynamic.cs.meta new file mode 100644 index 00000000..7a5a93d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoDynamic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a02f3c4216e24704e9496a6131f8c370 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE1.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE1.cs new file mode 100644 index 00000000..b27b9c4d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE1.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoE1 : test.DemoD3 +{ + public DemoE1() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + } + + public static DemoE1 LoadJsonDemoE1(SimpleJSON.JSONNode _json) + { + DemoE1 obj = new test.DemoE1(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoE1(DemoE1 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE1.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE1.cs.meta new file mode 100644 index 00000000..b47f0fb3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bddc9597320c7524ba57fdbe096b1081 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE2.cs new file mode 100644 index 00000000..69d9e201 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE2.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoE2 : Luban.EditorBeanBase +{ + public DemoE2() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["y1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y1 = _fieldJson; + } + } + + { + var _fieldJson = _json["y2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } y2 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + + if (y1 != null) + { + _json["y1"] = new JSONNumber(y1.Value); + } + { + _json["y2"] = new JSONBool(y2); + } + } + + public static DemoE2 LoadJsonDemoE2(SimpleJSON.JSONNode _json) + { + DemoE2 obj = new test.DemoE2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoE2(DemoE2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int? y1; + + public bool y2; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE2.cs.meta new file mode 100644 index 00000000..a72e9306 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoE2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a0d31026fc9c66844a5aaf1b78c3cf25 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoEnum.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..0e61c80b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoEnum.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.test +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + Any = 6, + } + + public static class DemoEnum_Metadata + { + public static readonly Luban.EditorEnumItemInfo NONE = new Luban.EditorEnumItemInfo("NONE", "", 0, ""); + public static readonly Luban.EditorEnumItemInfo A = new Luban.EditorEnumItemInfo("A", "aa", 1, "aa"); + public static readonly Luban.EditorEnumItemInfo B = new Luban.EditorEnumItemInfo("B", "bb", 2, "bb"); + public static readonly Luban.EditorEnumItemInfo C = new Luban.EditorEnumItemInfo("C", "cc", 4, "cc"); + public static readonly Luban.EditorEnumItemInfo D = new Luban.EditorEnumItemInfo("D", "dd", 5, "dd"); + public static readonly Luban.EditorEnumItemInfo Any = new Luban.EditorEnumItemInfo("Any", "", 6, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + NONE, + A, + B, + C, + D, + Any, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoEnum.cs.meta new file mode 100644 index 00000000..12ffb756 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd2c2015e9c6fde4699b5eca018c6600 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoExplicitType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoExplicitType.cs new file mode 100644 index 00000000..ef79f05a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoExplicitType.cs @@ -0,0 +1,136 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoExplicitType : Luban.EditorBeanBase +{ + public DemoExplicitType() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x5 = _fieldJson; + } + } + + { + var _fieldJson = _json["x6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x6 = _fieldJson; + } + } + + { + var _fieldJson = _json["x7"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x7 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + { + _json["x2"] = new JSONNumber(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + { + _json["x5"] = new JSONNumber(x5); + } + { + _json["x6"] = new JSONNumber(x6); + } + { + _json["x7"] = new JSONNumber(x7); + } + } + + public static DemoExplicitType LoadJsonDemoExplicitType(SimpleJSON.JSONNode _json) + { + DemoExplicitType obj = new test.DemoExplicitType(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoExplicitType(DemoExplicitType _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public byte x1; + + public short x2; + + public int x3; + + public long x4; + + public float x5; + + public double x6; + + public long x7; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoExplicitType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoExplicitType.cs.meta new file mode 100644 index 00000000..4b76ff36 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoExplicitType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c335945841b3f2942a0b0b628a5a8d95 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoFlag.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..7ad21a59 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoFlag.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.test +{ + [System.Flags] + public enum DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + + public static class DemoFlag_Metadata + { + public static readonly Luban.EditorEnumItemInfo A = new Luban.EditorEnumItemInfo("A", "", 1, ""); + public static readonly Luban.EditorEnumItemInfo B = new Luban.EditorEnumItemInfo("B", "", 2, ""); + public static readonly Luban.EditorEnumItemInfo C = new Luban.EditorEnumItemInfo("C", "", 4, ""); + public static readonly Luban.EditorEnumItemInfo D = new Luban.EditorEnumItemInfo("D", "", 8, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + A, + B, + C, + D, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoFlag.cs.meta new file mode 100644 index 00000000..ea5f2042 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 10a15f39fc8cfad45bac56de4eaba1b2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoGroup.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..46dacbff --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoGroup.cs @@ -0,0 +1,126 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoGroup : Luban.EditorBeanBase +{ + public DemoGroup() + { + x5 = new test.InnerGroup(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x5 = test.InnerGroup.LoadJsonInnerGroup(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["x1"] = new JSONNumber(x1); + } + { + _json["x2"] = new JSONNumber(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + { + + if (x5 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.InnerGroup.SaveJsonInnerGroup(x5, __bjson); _json["x5"] = __bjson; } + } + } + + public static DemoGroup LoadJsonDemoGroup(SimpleJSON.JSONNode _json) + { + DemoGroup obj = new test.DemoGroup(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoGroup(DemoGroup _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int x1; + + public int x2; + + public int x3; + + public int x4; + + public test.InnerGroup x5; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoGroup.cs.meta new file mode 100644 index 00000000..ba0deb84 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ef0355b723ae6f14198623790e2a5cae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..6d075251 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,230 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoPrimitiveTypesTable : Luban.EditorBeanBase +{ + public DemoPrimitiveTypesTable() + { + s1 = ""; + s2 = ""; + v2 = new vec2(); + v3 = new vec3(); + v4 = new vec4(); + t1 = "1970-01-01 00:00:00"; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x5 = _fieldJson; + } + } + + { + var _fieldJson = _json["x6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x6 = _fieldJson; + } + } + + { + var _fieldJson = _json["x7"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x7 = _fieldJson; + } + } + + { + var _fieldJson = _json["s1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s1 = _fieldJson; + } + } + + { + var _fieldJson = _json["s2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s2 = _fieldJson; + } + } + + { + var _fieldJson = _json["v2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v2 = vec2.LoadJsonvec2(_fieldJson); + } + } + + { + var _fieldJson = _json["v3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v3 = vec3.LoadJsonvec3(_fieldJson); + } + } + + { + var _fieldJson = _json["v4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v4 = vec4.LoadJsonvec4(_fieldJson); + } + } + + { + var _fieldJson = _json["t1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } t1 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONBool(x1); + } + { + _json["x2"] = new JSONNumber(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + { + _json["x5"] = new JSONNumber(x5); + } + { + _json["x6"] = new JSONNumber(x6); + } + { + _json["x7"] = new JSONNumber(x7); + } + { + + if (s1 == null) { throw new System.ArgumentNullException(); } + _json["s1"] = new JSONString(s1); + } + { + + if (s2 == null) { throw new System.ArgumentNullException(); } + _json["s2"] = new JSONString(s2); + } + { + + if (v2 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec2.SaveJsonvec2(v2, __bjson); _json["v2"] = __bjson; } + } + { + + if (v3 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec3.SaveJsonvec3(v3, __bjson); _json["v3"] = __bjson; } + } + { + + if (v4 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec4.SaveJsonvec4(v4, __bjson); _json["v4"] = __bjson; } + } + { + _json["t1"] = new JSONString(t1); + } + } + + public static DemoPrimitiveTypesTable LoadJsonDemoPrimitiveTypesTable(SimpleJSON.JSONNode _json) + { + DemoPrimitiveTypesTable obj = new test.DemoPrimitiveTypesTable(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoPrimitiveTypesTable(DemoPrimitiveTypesTable _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public bool x1; + + public byte x2; + + public short x3; + + public int x4; + + public long x5; + + public float x6; + + public double x7; + + public string s1; + + public string s2; + + public vec2 v2; + + public vec3 v3; + + public vec4 v4; + + public string t1; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta new file mode 100644 index 00000000..46c73cb8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7b2236880ec099b47a4d8d3592c598cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..c05fcee5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoSingletonType.cs @@ -0,0 +1,89 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoSingletonType : Luban.EditorBeanBase +{ + public DemoSingletonType() + { + name = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["date"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } date = test.DemoDynamic.LoadJsonDemoDynamic(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (date == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DemoDynamic.SaveJsonDemoDynamic(date, __bjson); _json["date"] = __bjson; } + } + } + + public static DemoSingletonType LoadJsonDemoSingletonType(SimpleJSON.JSONNode _json) + { + DemoSingletonType obj = new test.DemoSingletonType(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoSingletonType(DemoSingletonType _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string name; + + public test.DemoDynamic date; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoSingletonType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoSingletonType.cs.meta new file mode 100644 index 00000000..c4e62265 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoSingletonType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 52a8eb9c9e739954eb4cf0e46198768a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType1.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType1.cs new file mode 100644 index 00000000..cd2f3574 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType1.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoType1 : Luban.EditorBeanBase +{ + public DemoType1() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + } + + public static DemoType1 LoadJsonDemoType1(SimpleJSON.JSONNode _json) + { + DemoType1 obj = new test.DemoType1(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoType1(DemoType1 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x1; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType1.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType1.cs.meta new file mode 100644 index 00000000..6add6ab2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c2ce7cb259a1e52459601561b3a73a38 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType2.cs new file mode 100644 index 00000000..85abc3ad --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType2.cs @@ -0,0 +1,362 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DemoType2 : Luban.EditorBeanBase +{ + public DemoType2() + { + x10 = ""; + x12 = new test.DemoType1(); + x13 = test.DemoEnum.NONE; + s1 = ""; + t1 = "1970-01-01 00:00:00"; + k1 = System.Array.Empty(); + k2 = new System.Collections.Generic.List(); + k5 = new System.Collections.Generic.HashSet(); + k8 = new System.Collections.Generic.Dictionary(); + k9 = new System.Collections.Generic.List(); + k15 = System.Array.Empty(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x5 = _fieldJson; + } + } + + { + var _fieldJson = _json["x6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x6 = _fieldJson; + } + } + + { + var _fieldJson = _json["x7"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x7 = _fieldJson; + } + } + + { + var _fieldJson = _json["x8_0"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x80 = _fieldJson; + } + } + + { + var _fieldJson = _json["x8"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x8 = _fieldJson; + } + } + + { + var _fieldJson = _json["x9"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x9 = _fieldJson; + } + } + + { + var _fieldJson = _json["x10"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } x10 = _fieldJson; + } + } + + { + var _fieldJson = _json["x12"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x12 = test.DemoType1.LoadJsonDemoType1(_fieldJson); + } + } + + { + var _fieldJson = _json["x13"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { x13 = (test.DemoEnum)System.Enum.Parse(typeof(test.DemoEnum), _fieldJson); } else if(_fieldJson.IsNumber) { x13 = (test.DemoEnum)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["x14"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x14 = test.DemoDynamic.LoadJsonDemoDynamic(_fieldJson); + } + } + + { + var _fieldJson = _json["s1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s1 = _fieldJson; + } + } + + { + var _fieldJson = _json["t1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } t1 = _fieldJson; + } + } + + { + var _fieldJson = _json["k1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; k1 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k1[_index++] = __v; } + } + } + + { + var _fieldJson = _json["k2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k2 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k2.Add(__v); } + } + } + + { + var _fieldJson = _json["k5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k5 = new System.Collections.Generic.HashSet(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k5.Add(__v); } + } + } + + { + var _fieldJson = _json["k8"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k8 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; k8.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["k9"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k9 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.DemoE2 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.DemoE2.LoadJsonDemoE2(__e); k9.Add(__v); } + } + } + + { + var _fieldJson = _json["k15"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; k15 = new test.DemoDynamic[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { test.DemoDynamic __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.DemoDynamic.LoadJsonDemoDynamic(__e); k15[_index++] = __v; } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x4"] = new JSONNumber(x4); + } + { + _json["x1"] = new JSONBool(x1); + } + { + _json["x2"] = new JSONNumber(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x5"] = new JSONNumber(x5); + } + { + _json["x6"] = new JSONNumber(x6); + } + { + _json["x7"] = new JSONNumber(x7); + } + { + _json["x8_0"] = new JSONNumber(x80); + } + { + _json["x8"] = new JSONNumber(x8); + } + { + _json["x9"] = new JSONNumber(x9); + } + { + + if (x10 == null) { throw new System.ArgumentNullException(); } + _json["x10"] = new JSONString(x10); + } + { + + if (x12 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DemoType1.SaveJsonDemoType1(x12, __bjson); _json["x12"] = __bjson; } + } + { + _json["x13"] = new JSONNumber((int)x13); + } + { + + if (x14 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DemoDynamic.SaveJsonDemoDynamic(x14, __bjson); _json["x14"] = __bjson; } + } + { + + if (s1 == null) { throw new System.ArgumentNullException(); } + _json["s1"] = new JSONString(s1); + } + { + _json["t1"] = new JSONString(t1); + } + { + + if (k1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k1) { __cjson["null"] = new JSONNumber(_e); } _json["k1"] = __cjson; } + } + { + + if (k2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k2) { __cjson["null"] = new JSONNumber(_e); } _json["k2"] = __cjson; } + } + { + + if (k5 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k5) { __cjson["null"] = new JSONNumber(_e); } _json["k5"] = __cjson; } + } + { + + if (k8 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k8) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["k8"] = __cjson; } + } + { + + if (k9 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k9) { { var __bjson = new JSONObject(); test.DemoE2.SaveJsonDemoE2(_e, __bjson); __cjson["null"] = __bjson; } } _json["k9"] = __cjson; } + } + { + + if (k15 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k15) { { var __bjson = new JSONObject(); test.DemoDynamic.SaveJsonDemoDynamic(_e, __bjson); __cjson["null"] = __bjson; } } _json["k15"] = __cjson; } + } + } + + public static DemoType2 LoadJsonDemoType2(SimpleJSON.JSONNode _json) + { + DemoType2 obj = new test.DemoType2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDemoType2(DemoType2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x4; + + public bool x1; + + public byte x2; + + public short x3; + + public long x5; + + public float x6; + + public double x7; + + public short x80; + + public int x8; + + public long x9; + + public string x10; + + public test.DemoType1 x12; + + public test.DemoEnum x13; + + public test.DemoDynamic x14; + + public string s1; + + public string t1; + + public int[] k1; + + public System.Collections.Generic.List k2; + + public System.Collections.Generic.HashSet k5; + + public System.Collections.Generic.Dictionary k8; + + public System.Collections.Generic.List k9; + + public test.DemoDynamic[] k15; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType2.cs.meta new file mode 100644 index 00000000..8c17d95a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DemoType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e3869d3eddff4d743bd0d2f5092e95be +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DetectEncoding.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..6e85a561 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DetectEncoding.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class DetectEncoding : Luban.EditorBeanBase +{ + public DetectEncoding() + { + name = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + } + + public static DetectEncoding LoadJsonDetectEncoding(SimpleJSON.JSONNode _json) + { + DetectEncoding obj = new test.DetectEncoding(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonDetectEncoding(DetectEncoding _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string name; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DetectEncoding.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DetectEncoding.cs.meta new file mode 100644 index 00000000..07dc7f57 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.DetectEncoding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 48e9006715606cf4dac29d2f673ad5b6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..f963f34c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum.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. +// +//------------------------------------------------------------------------------ + + +namespace editor.cfg.test +{ + public enum ETestEmptyEnum + { + } + + public static class ETestEmptyEnum_Metadata + { + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum.cs.meta new file mode 100644 index 00000000..40e7deb8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5fec2ee0f2884f84abebe2de1eee4cd8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..f94bcc9b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.test +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + + public static class ETestEmptyEnum2_Metadata + { + public static readonly Luban.EditorEnumItemInfo SMALL_THAN_256 = new Luban.EditorEnumItemInfo("SMALL_THAN_256", "", 255, ""); + public static readonly Luban.EditorEnumItemInfo X_256 = new Luban.EditorEnumItemInfo("X_256", "", 256, ""); + public static readonly Luban.EditorEnumItemInfo X_257 = new Luban.EditorEnumItemInfo("X_257", "", 257, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + SMALL_THAN_256, + X_256, + X_257, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum2.cs.meta new file mode 100644 index 00000000..ba84db6e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestEmptyEnum2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d699c93a313119d41a4924b491e597eb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestQuality.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..85284035 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestQuality.cs @@ -0,0 +1,67 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + + public static class ETestQuality_Metadata + { + public static readonly Luban.EditorEnumItemInfo A = new Luban.EditorEnumItemInfo("A", "白", 1, "最高品质"); + public static readonly Luban.EditorEnumItemInfo B = new Luban.EditorEnumItemInfo("B", "黑", 2, "黑色的"); + public static readonly Luban.EditorEnumItemInfo C = new Luban.EditorEnumItemInfo("C", "蓝", 3, "蓝色的"); + public static readonly Luban.EditorEnumItemInfo D = new Luban.EditorEnumItemInfo("D", "红", 4, "最差品质"); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + A, + B, + C, + D, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestQuality.cs.meta new file mode 100644 index 00000000..1ebe5e43 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a648b3064ac8788488d62e70af0f2db9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestUeType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..fb048017 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestUeType.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 editor.cfg.test +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + + public static class ETestUeType_Metadata + { + public static readonly Luban.EditorEnumItemInfo WHITE = new Luban.EditorEnumItemInfo("WHITE", "白", 0, "白"); + public static readonly Luban.EditorEnumItemInfo BLACK = new Luban.EditorEnumItemInfo("BLACK", "", 1, ""); + + private static readonly System.Collections.Generic.List __items = new System.Collections.Generic.List + { + WHITE, + BLACK, + }; + + public static System.Collections.Generic.List GetItems() => __items; + + public static Luban.EditorEnumItemInfo GetByName(string name) + { + return __items.Find(c => c.Name == name); + } + + public static Luban.EditorEnumItemInfo GetByNameOrAlias(string name) + { + return __items.Find(c => c.Name == name || c.Alias == name); + } + + public static Luban.EditorEnumItemInfo GetByValue(int value) + { + return __items.Find(c => c.Value == value); + } + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestUeType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestUeType.cs.meta new file mode 100644 index 00000000..c1759b93 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ETestUeType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a3f3a4f39f21a4f4cbecb80f8e1ce423 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Equipment.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Equipment.cs new file mode 100644 index 00000000..8d5464b3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Equipment.cs @@ -0,0 +1,109 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class Equipment : test.ItemBase +{ + public Equipment() + { + attr = test.DemoEnum.NONE; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["attr"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { attr = (test.DemoEnum)System.Enum.Parse(typeof(test.DemoEnum), _fieldJson); } else if(_fieldJson.IsNumber) { attr = (test.DemoEnum)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["value"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } value = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + _json["attr"] = new JSONNumber((int)attr); + } + { + _json["value"] = new JSONNumber(value); + } + } + + public static Equipment LoadJsonEquipment(SimpleJSON.JSONNode _json) + { + Equipment obj = new test.Equipment(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonEquipment(Equipment _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public test.DemoEnum attr; + + public int value; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Equipment.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Equipment.cs.meta new file mode 100644 index 00000000..74f087af --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Equipment.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: faf600df4f73cc4408ba389a2d0b8e26 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..56fcde98 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJson.cs @@ -0,0 +1,252 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class ExcelFromJson : Luban.EditorBeanBase +{ + public ExcelFromJson() + { + s1 = ""; + s2 = ""; + t1 = "1970-01-01 00:00:00"; + x12 = new test.DemoType1(); + x13 = test.DemoEnum.NONE; + k1 = System.Array.Empty(); + k8 = new System.Collections.Generic.Dictionary(); + k9 = new System.Collections.Generic.List(); + k15 = System.Array.Empty(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x5 = _fieldJson; + } + } + + { + var _fieldJson = _json["x6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x6 = _fieldJson; + } + } + + { + var _fieldJson = _json["s1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s1 = _fieldJson; + } + } + + { + var _fieldJson = _json["s2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s2 = _fieldJson; + } + } + + { + var _fieldJson = _json["t1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } t1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x12"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x12 = test.DemoType1.LoadJsonDemoType1(_fieldJson); + } + } + + { + var _fieldJson = _json["x13"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { x13 = (test.DemoEnum)System.Enum.Parse(typeof(test.DemoEnum), _fieldJson); } else if(_fieldJson.IsNumber) { x13 = (test.DemoEnum)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["x14"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x14 = test.DemoDynamic.LoadJsonDemoDynamic(_fieldJson); + } + } + + { + var _fieldJson = _json["k1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; k1 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k1[_index++] = __v; } + } + } + + { + var _fieldJson = _json["k8"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k8 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; k8.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["k9"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k9 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.DemoE2 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.DemoE2.LoadJsonDemoE2(__e); k9.Add(__v); } + } + } + + { + var _fieldJson = _json["k15"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; k15 = new test.DemoDynamic[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { test.DemoDynamic __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.DemoDynamic.LoadJsonDemoDynamic(__e); k15[_index++] = __v; } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x4"] = new JSONNumber(x4); + } + { + _json["x1"] = new JSONBool(x1); + } + { + _json["x5"] = new JSONNumber(x5); + } + { + _json["x6"] = new JSONNumber(x6); + } + { + + if (s1 == null) { throw new System.ArgumentNullException(); } + _json["s1"] = new JSONString(s1); + } + { + + if (s2 == null) { throw new System.ArgumentNullException(); } + _json["s2"] = new JSONString(s2); + } + { + _json["t1"] = new JSONString(t1); + } + { + + if (x12 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DemoType1.SaveJsonDemoType1(x12, __bjson); _json["x12"] = __bjson; } + } + { + _json["x13"] = new JSONNumber((int)x13); + } + { + + if (x14 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DemoDynamic.SaveJsonDemoDynamic(x14, __bjson); _json["x14"] = __bjson; } + } + { + + if (k1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k1) { __cjson["null"] = new JSONNumber(_e); } _json["k1"] = __cjson; } + } + { + + if (k8 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k8) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["k8"] = __cjson; } + } + { + + if (k9 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k9) { { var __bjson = new JSONObject(); test.DemoE2.SaveJsonDemoE2(_e, __bjson); __cjson["null"] = __bjson; } } _json["k9"] = __cjson; } + } + { + + if (k15 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k15) { { var __bjson = new JSONObject(); test.DemoDynamic.SaveJsonDemoDynamic(_e, __bjson); __cjson["null"] = __bjson; } } _json["k15"] = __cjson; } + } + } + + public static ExcelFromJson LoadJsonExcelFromJson(SimpleJSON.JSONNode _json) + { + ExcelFromJson obj = new test.ExcelFromJson(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonExcelFromJson(ExcelFromJson _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x4; + + public bool x1; + + public long x5; + + public float x6; + + public string s1; + + public string s2; + + public string t1; + + public test.DemoType1 x12; + + public test.DemoEnum x13; + + public test.DemoDynamic x14; + + public int[] k1; + + public System.Collections.Generic.Dictionary k8; + + public System.Collections.Generic.List k9; + + public test.DemoDynamic[] k15; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJson.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJson.cs.meta new file mode 100644 index 00000000..735bc1d6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJson.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: db33c5437a57a084db2ef4ab144c2f90 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..057359ed --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs @@ -0,0 +1,87 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class ExcelFromJsonMultiRow : Luban.EditorBeanBase +{ + public ExcelFromJsonMultiRow() + { + items = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["items"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } items = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.TestRow __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.TestRow.LoadJsonTestRow(__e); items.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["x"] = new JSONNumber(x); + } + { + + if (items == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in items) { { var __bjson = new JSONObject(); test.TestRow.SaveJsonTestRow(_e, __bjson); __cjson["null"] = __bjson; } } _json["items"] = __cjson; } + } + } + + public static ExcelFromJsonMultiRow LoadJsonExcelFromJsonMultiRow(SimpleJSON.JSONNode _json) + { + ExcelFromJsonMultiRow obj = new test.ExcelFromJsonMultiRow(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonExcelFromJsonMultiRow(ExcelFromJsonMultiRow _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int x; + + public System.Collections.Generic.List items; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta new file mode 100644 index 00000000..947b9104 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 619966b0af8188b48a553a25cfc63b0a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Foo.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Foo.cs new file mode 100644 index 00000000..266033a9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Foo.cs @@ -0,0 +1,84 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class Foo : Luban.EditorBeanBase +{ + public Foo() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["y1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y1 = _fieldJson; + } + } + + { + var _fieldJson = _json["y2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y2 = _fieldJson; + } + } + + { + var _fieldJson = _json["y3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y3 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["y1"] = new JSONNumber(y1); + } + { + _json["y2"] = new JSONNumber(y2); + } + { + _json["y3"] = new JSONNumber(y3); + } + } + + public static Foo LoadJsonFoo(SimpleJSON.JSONNode _json) + { + Foo obj = new test.Foo(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonFoo(Foo _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int y1; + + public int y2; + + public int y3; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Foo.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Foo.cs.meta new file mode 100644 index 00000000..2653974a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Foo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b0a9f915b018934c8f3a6299c781267 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H1.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H1.cs new file mode 100644 index 00000000..a7bec590 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H1.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class H1 : Luban.EditorBeanBase +{ + public H1() + { + y2 = new test.H2(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["y2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } y2 = test.H2.LoadJsonH2(_fieldJson); + } + } + + { + var _fieldJson = _json["y3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y3 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + + if (y2 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.H2.SaveJsonH2(y2, __bjson); _json["y2"] = __bjson; } + } + { + _json["y3"] = new JSONNumber(y3); + } + } + + public static H1 LoadJsonH1(SimpleJSON.JSONNode _json) + { + H1 obj = new test.H1(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonH1(H1 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public test.H2 y2; + + public int y3; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H1.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H1.cs.meta new file mode 100644 index 00000000..aeb0377a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9afed569b2f352049ae494f0265d9258 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H2.cs new file mode 100644 index 00000000..ab18aeab --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H2.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class H2 : Luban.EditorBeanBase +{ + public H2() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["z2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } z2 = _fieldJson; + } + } + + { + var _fieldJson = _json["z3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } z3 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["z2"] = new JSONNumber(z2); + } + { + _json["z3"] = new JSONNumber(z3); + } + } + + public static H2 LoadJsonH2(SimpleJSON.JSONNode _json) + { + H2 obj = new test.H2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonH2(H2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int z2; + + public int z3; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H2.cs.meta new file mode 100644 index 00000000..b8a051a1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.H2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a2b259c7a9b2ff4caf23bb7816a1ca1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.InnerGroup.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..7457117d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.InnerGroup.cs @@ -0,0 +1,97 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class InnerGroup : Luban.EditorBeanBase +{ + public InnerGroup() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["y1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y1 = _fieldJson; + } + } + + { + var _fieldJson = _json["y2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y2 = _fieldJson; + } + } + + { + var _fieldJson = _json["y3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y3 = _fieldJson; + } + } + + { + var _fieldJson = _json["y4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y4 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["y1"] = new JSONNumber(y1); + } + { + _json["y2"] = new JSONNumber(y2); + } + { + _json["y3"] = new JSONNumber(y3); + } + { + _json["y4"] = new JSONNumber(y4); + } + } + + public static InnerGroup LoadJsonInnerGroup(SimpleJSON.JSONNode _json) + { + InnerGroup obj = new test.InnerGroup(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonInnerGroup(InnerGroup _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int y1; + + public int y2; + + public int y3; + + public int y4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.InnerGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.InnerGroup.cs.meta new file mode 100644 index 00000000..ea4c3cde --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.InnerGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f47110815a01fc045ab5ff05d70fe2f6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Item.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Item.cs new file mode 100644 index 00000000..0d3c0ee1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Item.cs @@ -0,0 +1,108 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class Item : test.ItemBase +{ + public Item() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["num"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } num = _fieldJson; + } + } + + { + var _fieldJson = _json["price"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } price = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + _json["num"] = new JSONNumber(num); + } + { + _json["price"] = new JSONNumber(price); + } + } + + public static Item LoadJsonItem(SimpleJSON.JSONNode _json) + { + Item obj = new test.Item(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonItem(Item _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int num; + + public int price; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Item.cs.meta new file mode 100644 index 00000000..3f97f479 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 64fe7e8ebb0907446882bca5046b69c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ItemBase.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ItemBase.cs new file mode 100644 index 00000000..0b1950dc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ItemBase.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public abstract class ItemBase : Luban.EditorBeanBase +{ + public ItemBase() + { + name = ""; + desc = ""; + } + + + public static ItemBase LoadJsonItemBase(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + ItemBase obj; + switch (type) + { + case "test.Item": + case "Item":obj = new test.Item(); break; + case "test.Equipment": + case "Equipment":obj = new test.Equipment(); break; + case "test.Decorator": + case "Decorator":obj = new test.Decorator(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonItemBase(ItemBase _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string name; + + public string desc; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ItemBase.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ItemBase.cs.meta new file mode 100644 index 00000000..cebc0bf1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.ItemBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac61505d25250af42b97db27179f9b08 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiIndexList.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..3a0de645 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiIndexList.cs @@ -0,0 +1,116 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class MultiIndexList : Luban.EditorBeanBase +{ + public MultiIndexList() + { + id3 = ""; + desc = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id1 = _fieldJson; + } + } + + { + var _fieldJson = _json["id2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id2 = _fieldJson; + } + } + + { + var _fieldJson = _json["id3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } id3 = _fieldJson; + } + } + + { + var _fieldJson = _json["num"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } num = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id1"] = new JSONNumber(id1); + } + { + _json["id2"] = new JSONNumber(id2); + } + { + + if (id3 == null) { throw new System.ArgumentNullException(); } + _json["id3"] = new JSONString(id3); + } + { + _json["num"] = new JSONNumber(num); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + } + + public static MultiIndexList LoadJsonMultiIndexList(SimpleJSON.JSONNode _json) + { + MultiIndexList obj = new test.MultiIndexList(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMultiIndexList(MultiIndexList _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id1; + + public long id2; + + public string id3; + + public int num; + + public string desc; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiIndexList.cs.meta new file mode 100644 index 00000000..66dbe55d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5e96dbebc1c472141b9cc015f52aff50 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..47613f0f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowRecord.cs @@ -0,0 +1,186 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class MultiRowRecord : Luban.EditorBeanBase +{ + public MultiRowRecord() + { + name = ""; + oneRows = new System.Collections.Generic.List(); + multiRows1 = new System.Collections.Generic.List(); + multiRows2 = System.Array.Empty(); + multiRows4 = new System.Collections.Generic.Dictionary(); + multiRows5 = new System.Collections.Generic.List(); + multiRows6 = new System.Collections.Generic.Dictionary(); + multiRows7 = new System.Collections.Generic.Dictionary(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["one_rows"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } oneRows = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.MultiRowType1 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.MultiRowType1.LoadJsonMultiRowType1(__e); oneRows.Add(__v); } + } + } + + { + var _fieldJson = _json["multi_rows1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } multiRows1 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.MultiRowType1 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.MultiRowType1.LoadJsonMultiRowType1(__e); multiRows1.Add(__v); } + } + } + + { + var _fieldJson = _json["multi_rows2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; multiRows2 = new test.MultiRowType1[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { test.MultiRowType1 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.MultiRowType1.LoadJsonMultiRowType1(__e); multiRows2[_index++] = __v; } + } + } + + { + var _fieldJson = _json["multi_rows4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } multiRows4 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; test.MultiRowType2 __v; if(!__e[1].IsObject) { throw new SerializationException(); } __v = test.MultiRowType2.LoadJsonMultiRowType2(__e[1]); multiRows4.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["multi_rows5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } multiRows5 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.MultiRowType3 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.MultiRowType3.LoadJsonMultiRowType3(__e); multiRows5.Add(__v); } + } + } + + { + var _fieldJson = _json["multi_rows6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } multiRows6 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; test.MultiRowType2 __v; if(!__e[1].IsObject) { throw new SerializationException(); } __v = test.MultiRowType2.LoadJsonMultiRowType2(__e[1]); multiRows6.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["multi_rows7"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } multiRows7 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; multiRows7.Add(__k, __v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (oneRows == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in oneRows) { { var __bjson = new JSONObject(); test.MultiRowType1.SaveJsonMultiRowType1(_e, __bjson); __cjson["null"] = __bjson; } } _json["one_rows"] = __cjson; } + } + { + + if (multiRows1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in multiRows1) { { var __bjson = new JSONObject(); test.MultiRowType1.SaveJsonMultiRowType1(_e, __bjson); __cjson["null"] = __bjson; } } _json["multi_rows1"] = __cjson; } + } + { + + if (multiRows2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in multiRows2) { { var __bjson = new JSONObject(); test.MultiRowType1.SaveJsonMultiRowType1(_e, __bjson); __cjson["null"] = __bjson; } } _json["multi_rows2"] = __cjson; } + } + { + + if (multiRows4 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in multiRows4) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); { var __bjson = new JSONObject(); test.MultiRowType2.SaveJsonMultiRowType2(_e.Value, __bjson); __entry["null"] = __bjson; } } _json["multi_rows4"] = __cjson; } + } + { + + if (multiRows5 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in multiRows5) { { var __bjson = new JSONObject(); test.MultiRowType3.SaveJsonMultiRowType3(_e, __bjson); __cjson["null"] = __bjson; } } _json["multi_rows5"] = __cjson; } + } + { + + if (multiRows6 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in multiRows6) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); { var __bjson = new JSONObject(); test.MultiRowType2.SaveJsonMultiRowType2(_e.Value, __bjson); __entry["null"] = __bjson; } } _json["multi_rows6"] = __cjson; } + } + { + + if (multiRows7 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in multiRows7) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["multi_rows7"] = __cjson; } + } + } + + public static MultiRowRecord LoadJsonMultiRowRecord(SimpleJSON.JSONNode _json) + { + MultiRowRecord obj = new test.MultiRowRecord(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMultiRowRecord(MultiRowRecord _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string name; + + public System.Collections.Generic.List oneRows; + + public System.Collections.Generic.List multiRows1; + + public test.MultiRowType1[] multiRows2; + + public System.Collections.Generic.Dictionary multiRows4; + + public System.Collections.Generic.List multiRows5; + + public System.Collections.Generic.Dictionary multiRows6; + + public System.Collections.Generic.Dictionary multiRows7; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowRecord.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowRecord.cs.meta new file mode 100644 index 00000000..d6146635 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowRecord.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 215a3c42f3716fc41887afda75c92d01 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..564d3024 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowTitle.cs @@ -0,0 +1,153 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class MultiRowTitle : Luban.EditorBeanBase +{ + public MultiRowTitle() + { + name = ""; + x1 = new test.H1(); + x2 = new System.Collections.Generic.List(); + x3 = System.Array.Empty(); + x4 = System.Array.Empty(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["name"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } name = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x1 = test.H1.LoadJsonH1(_fieldJson); + } + } + + { + var _fieldJson = _json["x2_0"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x20 = test.H2.LoadJsonH2(_fieldJson); + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x2 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.H2 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.H2.LoadJsonH2(__e); x2.Add(__v); } + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; x3 = new test.H2[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { test.H2 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.H2.LoadJsonH2(__e); x3[_index++] = __v; } + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; x4 = new test.H2[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { test.H2 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.H2.LoadJsonH2(__e); x4[_index++] = __v; } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (name == null) { throw new System.ArgumentNullException(); } + _json["name"] = new JSONString(name); + } + { + + if (x1 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.H1.SaveJsonH1(x1, __bjson); _json["x1"] = __bjson; } + } + + if (x20 != null) + { + { var __bjson = new JSONObject(); test.H2.SaveJsonH2(x20, __bjson); _json["x2_0"] = __bjson; } + } + { + + if (x2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x2) { { var __bjson = new JSONObject(); test.H2.SaveJsonH2(_e, __bjson); __cjson["null"] = __bjson; } } _json["x2"] = __cjson; } + } + { + + if (x3 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x3) { { var __bjson = new JSONObject(); test.H2.SaveJsonH2(_e, __bjson); __cjson["null"] = __bjson; } } _json["x3"] = __cjson; } + } + { + + if (x4 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x4) { { var __bjson = new JSONObject(); test.H2.SaveJsonH2(_e, __bjson); __cjson["null"] = __bjson; } } _json["x4"] = __cjson; } + } + } + + public static MultiRowTitle LoadJsonMultiRowTitle(SimpleJSON.JSONNode _json) + { + MultiRowTitle obj = new test.MultiRowTitle(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMultiRowTitle(MultiRowTitle _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string name; + + public test.H1 x1; + + public test.H2 x20; + + public System.Collections.Generic.List x2; + + public test.H2[] x3; + + public test.H2[] x4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowTitle.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowTitle.cs.meta new file mode 100644 index 00000000..4339a8f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f353bc27089917b408b2704237299be8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType1.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..295b8fe6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType1.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class MultiRowType1 : Luban.EditorBeanBase +{ + public MultiRowType1() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["x"] = new JSONNumber(x); + } + } + + public static MultiRowType1 LoadJsonMultiRowType1(SimpleJSON.JSONNode _json) + { + MultiRowType1 obj = new test.MultiRowType1(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMultiRowType1(MultiRowType1 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int x; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType1.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType1.cs.meta new file mode 100644 index 00000000..a8f322c6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b3cf56b02d35cf94aaa4cfada61bb604 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..055d459a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType2.cs @@ -0,0 +1,84 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class MultiRowType2 : Luban.EditorBeanBase +{ + public MultiRowType2() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONNumber(y); + } + } + + public static MultiRowType2 LoadJsonMultiRowType2(SimpleJSON.JSONNode _json) + { + MultiRowType2 obj = new test.MultiRowType2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMultiRowType2(MultiRowType2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int x; + + public float y; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType2.cs.meta new file mode 100644 index 00000000..ceee2dce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d4e238cc2bd3d3a418c9f8dd1fe22fdf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType3.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..2390494b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType3.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class MultiRowType3 : Luban.EditorBeanBase +{ + public MultiRowType3() + { + items = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["items"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } items = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.MultiRowType1 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.MultiRowType1.LoadJsonMultiRowType1(__e); items.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (items == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in items) { { var __bjson = new JSONObject(); test.MultiRowType1.SaveJsonMultiRowType1(_e, __bjson); __cjson["null"] = __bjson; } } _json["items"] = __cjson; } + } + } + + public static MultiRowType3 LoadJsonMultiRowType3(SimpleJSON.JSONNode _json) + { + MultiRowType3 obj = new test.MultiRowType3(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMultiRowType3(MultiRowType3 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public System.Collections.Generic.List items; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType3.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType3.cs.meta new file mode 100644 index 00000000..4d0e5563 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiRowType3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8654a51685774ab43b6cfe1665dad97c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..ab2a0e8b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,116 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class MultiUnionIndexList : Luban.EditorBeanBase +{ + public MultiUnionIndexList() + { + id3 = ""; + desc = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id1 = _fieldJson; + } + } + + { + var _fieldJson = _json["id2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id2 = _fieldJson; + } + } + + { + var _fieldJson = _json["id3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } id3 = _fieldJson; + } + } + + { + var _fieldJson = _json["num"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } num = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id1"] = new JSONNumber(id1); + } + { + _json["id2"] = new JSONNumber(id2); + } + { + + if (id3 == null) { throw new System.ArgumentNullException(); } + _json["id3"] = new JSONString(id3); + } + { + _json["num"] = new JSONNumber(num); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + } + + public static MultiUnionIndexList LoadJsonMultiUnionIndexList(SimpleJSON.JSONNode _json) + { + MultiUnionIndexList obj = new test.MultiUnionIndexList(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonMultiUnionIndexList(MultiUnionIndexList _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id1; + + public long id2; + + public string id3; + + public int num; + + public string desc; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiUnionIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiUnionIndexList.cs.meta new file mode 100644 index 00000000..f5e4d33e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.MultiUnionIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 244e603efe338bb478f70936447b79cf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.NotIndexList.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..f3523b28 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.NotIndexList.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class NotIndexList : Luban.EditorBeanBase +{ + public NotIndexList() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONNumber(y); + } + } + + public static NotIndexList LoadJsonNotIndexList(SimpleJSON.JSONNode _json) + { + NotIndexList obj = new test.NotIndexList(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonNotIndexList(NotIndexList _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x; + + public int y; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.NotIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.NotIndexList.cs.meta new file mode 100644 index 00000000..884e3a50 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.NotIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d4433d8f4a37a3e478f8530f9923797a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Path.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Path.cs new file mode 100644 index 00000000..106ef0fe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Path.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class Path : Luban.EditorBeanBase +{ + public Path() + { + res = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["res"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } res = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (res == null) { throw new System.ArgumentNullException(); } + _json["res"] = new JSONString(res); + } + } + + public static Path LoadJsonPath(SimpleJSON.JSONNode _json) + { + Path obj = new test.Path(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonPath(Path _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string res; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Path.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Path.cs.meta new file mode 100644 index 00000000..594559be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Path.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7fe50fcac1968a24aac02f721807e5c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefBean.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefBean.cs new file mode 100644 index 00000000..c849da6d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefBean.cs @@ -0,0 +1,72 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class RefBean : test.RefDynamicBase +{ + public RefBean() + { + arr = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["arr"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } arr = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; arr.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + + if (arr == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in arr) { __cjson["null"] = new JSONNumber(_e); } _json["arr"] = __cjson; } + } + } + + public static RefBean LoadJsonRefBean(SimpleJSON.JSONNode _json) + { + RefBean obj = new test.RefBean(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonRefBean(RefBean _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public System.Collections.Generic.List arr; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefBean.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefBean.cs.meta new file mode 100644 index 00000000..a34824e8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefBean.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a53c3d9ef7b85664fbc44b5c8a2b03bf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..0ccf5130 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefDynamicBase.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public abstract class RefDynamicBase : Luban.EditorBeanBase +{ + public RefDynamicBase() + { + } + + + public static RefDynamicBase LoadJsonRefDynamicBase(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + RefDynamicBase obj; + switch (type) + { + case "test.RefBean": + case "RefBean":obj = new test.RefBean(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonRefDynamicBase(RefDynamicBase _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefDynamicBase.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefDynamicBase.cs.meta new file mode 100644 index 00000000..1249bba6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.RefDynamicBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c3c7fc800da928447b25ca5b7db95269 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepBean1.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepBean1.cs new file mode 100644 index 00000000..e352e8da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepBean1.cs @@ -0,0 +1,87 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class SepBean1 : Luban.EditorBeanBase +{ + public SepBean1() + { + c = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["a"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } a = _fieldJson; + } + } + + { + var _fieldJson = _json["b"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } b = _fieldJson; + } + } + + { + var _fieldJson = _json["c"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } c = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["a"] = new JSONNumber(a); + } + { + _json["b"] = new JSONNumber(b); + } + { + + if (c == null) { throw new System.ArgumentNullException(); } + _json["c"] = new JSONString(c); + } + } + + public static SepBean1 LoadJsonSepBean1(SimpleJSON.JSONNode _json) + { + SepBean1 obj = new test.SepBean1(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonSepBean1(SepBean1 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int a; + + public int b; + + public string c; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepBean1.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepBean1.cs.meta new file mode 100644 index 00000000..cfe727df --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepBean1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3119148fe1fc70643a501ed79c2a0e2b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepVector.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepVector.cs new file mode 100644 index 00000000..1d01c558 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepVector.cs @@ -0,0 +1,84 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class SepVector : Luban.EditorBeanBase +{ + public SepVector() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + { + var _fieldJson = _json["z"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } z = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONNumber(y); + } + { + _json["z"] = new JSONNumber(z); + } + } + + public static SepVector LoadJsonSepVector(SimpleJSON.JSONNode _json) + { + SepVector obj = new test.SepVector(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonSepVector(SepVector _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x; + + public int y; + + public int z; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepVector.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepVector.cs.meta new file mode 100644 index 00000000..b4fc248a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.SepVector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: edc632b1fa54d9048b38b2c6c02a4acc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Shape.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Shape.cs new file mode 100644 index 00000000..c1987807 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Shape.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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public abstract class Shape : Luban.EditorBeanBase +{ + public Shape() + { + } + + + public static Shape LoadJsonShape(SimpleJSON.JSONNode _json) + { + string type = _json["$type"]; + Shape obj; + switch (type) + { + case "test.Circle": + case "Circle":obj = new test.Circle(); break; + case "test2.Rectangle":obj = new test2.Rectangle(); break; + default: throw new SerializationException(); + } + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonShape(Shape _obj, SimpleJSON.JSONNode _json) + { + _json["$type"] = _obj.GetType().Name; + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Shape.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Shape.cs.meta new file mode 100644 index 00000000..fc540e60 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Shape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd0392b0f565ba0438ca0d3284c53e4b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Test3.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Test3.cs new file mode 100644 index 00000000..fd7f8331 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Test3.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class Test3 : Luban.EditorBeanBase +{ + public Test3() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONNumber(y); + } + } + + public static Test3 LoadJsonTest3(SimpleJSON.JSONNode _json) + { + Test3 obj = new test.Test3(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTest3(Test3 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x; + + public int y; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Test3.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Test3.cs.meta new file mode 100644 index 00000000..fccfcc73 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.Test3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f6cdfc9e7d6c0ce48824b35935913f2c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestBeRef.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..9035b447 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestBeRef.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestBeRef : Luban.EditorBeanBase +{ + public TestBeRef() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["count"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } count = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["count"] = new JSONNumber(count); + } + } + + public static TestBeRef LoadJsonTestBeRef(SimpleJSON.JSONNode _json) + { + TestBeRef obj = new test.TestBeRef(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestBeRef(TestBeRef _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int count; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestBeRef.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestBeRef.cs.meta new file mode 100644 index 00000000..876a4e69 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestBeRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a58a090d077be6b4895858aa6534d045 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean1.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean1.cs new file mode 100644 index 00000000..2061e1e8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean1.cs @@ -0,0 +1,115 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +/// +/// 这是个测试excel结构 +/// +public sealed class TestExcelBean1 : Luban.EditorBeanBase +{ + public TestExcelBean1() + { + x2 = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + { + + if (x2 == null) { throw new System.ArgumentNullException(); } + _json["x2"] = new JSONString(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + } + + public static TestExcelBean1 LoadJsonTestExcelBean1(SimpleJSON.JSONNode _json) + { + TestExcelBean1 obj = new test.TestExcelBean1(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestExcelBean1(TestExcelBean1 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + /// + /// 最高品质 + /// + public int x1; + + /// + /// 黑色的 + /// + public string x2; + + /// + /// 蓝色的 + /// + public int x3; + + /// + /// 最差品质 + /// + public float x4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean1.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean1.cs.meta new file mode 100644 index 00000000..77eb0143 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f9db9d081da3d9c429b395e4082af009 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean2.cs new file mode 100644 index 00000000..079988e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean2.cs @@ -0,0 +1,99 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +/// +/// 这是个测试excel结构 +/// +public sealed class TestExcelBean2 : Luban.EditorBeanBase +{ + public TestExcelBean2() + { + y2 = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["y1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y1 = _fieldJson; + } + } + + { + var _fieldJson = _json["y2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } y2 = _fieldJson; + } + } + + { + var _fieldJson = _json["y3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y3 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["y1"] = new JSONNumber(y1); + } + { + + if (y2 == null) { throw new System.ArgumentNullException(); } + _json["y2"] = new JSONString(y2); + } + { + _json["y3"] = new JSONNumber(y3); + } + } + + public static TestExcelBean2 LoadJsonTestExcelBean2(SimpleJSON.JSONNode _json) + { + TestExcelBean2 obj = new test.TestExcelBean2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestExcelBean2(TestExcelBean2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + /// + /// 最高品质 + /// + public int y1; + + /// + /// 黑色的 + /// + public string y2; + + /// + /// 蓝色的 + /// + public float y3; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean2.cs.meta new file mode 100644 index 00000000..eafda063 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestExcelBean2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a517aaad195b033458acd2b264d48f0d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestGlobal.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..90c4e9f2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestGlobal.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestGlobal : Luban.EditorBeanBase +{ + public TestGlobal() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["unlock_equip"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } unlockEquip = _fieldJson; + } + } + + { + var _fieldJson = _json["unlock_hero"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } unlockHero = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["unlock_equip"] = new JSONNumber(unlockEquip); + } + { + _json["unlock_hero"] = new JSONNumber(unlockHero); + } + } + + public static TestGlobal LoadJsonTestGlobal(SimpleJSON.JSONNode _json) + { + TestGlobal obj = new test.TestGlobal(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestGlobal(TestGlobal _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int unlockEquip; + + public int unlockHero; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestGlobal.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestGlobal.cs.meta new file mode 100644 index 00000000..7468f049 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f6ba237049ee2d4faf6be71f9c3e7d1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestIndex.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestIndex.cs new file mode 100644 index 00000000..ebdc47fd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestIndex.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestIndex : Luban.EditorBeanBase +{ + public TestIndex() + { + eles = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["eles"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } eles = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.DemoType1 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.DemoType1.LoadJsonDemoType1(__e); eles.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (eles == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in eles) { { var __bjson = new JSONObject(); test.DemoType1.SaveJsonDemoType1(_e, __bjson); __cjson["null"] = __bjson; } } _json["eles"] = __cjson; } + } + } + + public static TestIndex LoadJsonTestIndex(SimpleJSON.JSONNode _json) + { + TestIndex obj = new test.TestIndex(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestIndex(TestIndex _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public System.Collections.Generic.List eles; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestIndex.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestIndex.cs.meta new file mode 100644 index 00000000..30366de2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestIndex.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c602c75fae3ba1740a27f0ba15671f92 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMap.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMap.cs new file mode 100644 index 00000000..ed71554b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMap.cs @@ -0,0 +1,122 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestMap : Luban.EditorBeanBase +{ + public TestMap() + { + x1 = new System.Collections.Generic.Dictionary(); + x2 = new System.Collections.Generic.Dictionary(); + x3 = new System.Collections.Generic.Dictionary(); + x4 = new System.Collections.Generic.Dictionary(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x1 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; x1.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x2 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { long __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; x2.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x3 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { string __k; if(!__e[0].IsString) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; x3.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x4 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { test.DemoEnum __k; if(__e[0].IsString) { __k = (test.DemoEnum)System.Enum.Parse(typeof(test.DemoEnum), __e[0]); } else if(__e[0].IsNumber) { __k = (test.DemoEnum)(int)__e[0]; } else { throw new SerializationException(); } int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; x4.Add(__k, __v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (x1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x1) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["x1"] = __cjson; } + } + { + + if (x2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x2) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["x2"] = __cjson; } + } + { + + if (x3 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x3) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONString(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["x3"] = __cjson; } + } + { + + if (x4 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x4) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber((int)_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["x4"] = __cjson; } + } + } + + public static TestMap LoadJsonTestMap(SimpleJSON.JSONNode _json) + { + TestMap obj = new test.TestMap(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestMap(TestMap _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public System.Collections.Generic.Dictionary x1; + + public System.Collections.Generic.Dictionary x2; + + public System.Collections.Generic.Dictionary x3; + + public System.Collections.Generic.Dictionary x4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMap.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMap.cs.meta new file mode 100644 index 00000000..4025e50f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8994e88db42a4d449a5d5bab139b8322 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMapper.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMapper.cs new file mode 100644 index 00000000..edb88be0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMapper.cs @@ -0,0 +1,88 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestMapper : Luban.EditorBeanBase +{ + public TestMapper() + { + audioType = AudioType.UNKNOWN; + v2 = new vec2(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["audio_type"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { audioType = (AudioType)System.Enum.Parse(typeof(AudioType), _fieldJson); } else if(_fieldJson.IsNumber) { audioType = (AudioType)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["v2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v2 = vec2.LoadJsonvec2(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["audio_type"] = new JSONNumber((int)audioType); + } + { + + if (v2 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec2.SaveJsonvec2(v2, __bjson); _json["v2"] = __bjson; } + } + } + + public static TestMapper LoadJsonTestMapper(SimpleJSON.JSONNode _json) + { + TestMapper obj = new test.TestMapper(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestMapper(TestMapper _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public AudioType audioType; + + public vec2 v2; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMapper.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMapper.cs.meta new file mode 100644 index 00000000..e2ab213b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMapper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0db39510ad92a1b4791899d4117eee59 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..2084240b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMultiColumn.cs @@ -0,0 +1,106 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestMultiColumn : Luban.EditorBeanBase +{ + public TestMultiColumn() + { + a = new test.Foo(); + b = new test.Foo(); + c = new test.Foo(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["a"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } a = test.Foo.LoadJsonFoo(_fieldJson); + } + } + + { + var _fieldJson = _json["b"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } b = test.Foo.LoadJsonFoo(_fieldJson); + } + } + + { + var _fieldJson = _json["c"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } c = test.Foo.LoadJsonFoo(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (a == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.Foo.SaveJsonFoo(a, __bjson); _json["a"] = __bjson; } + } + { + + if (b == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.Foo.SaveJsonFoo(b, __bjson); _json["b"] = __bjson; } + } + { + + if (c == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.Foo.SaveJsonFoo(c, __bjson); _json["c"] = __bjson; } + } + } + + public static TestMultiColumn LoadJsonTestMultiColumn(SimpleJSON.JSONNode _json) + { + TestMultiColumn obj = new test.TestMultiColumn(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestMultiColumn(TestMultiColumn _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public test.Foo a; + + public test.Foo b; + + public test.Foo c; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMultiColumn.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMultiColumn.cs.meta new file mode 100644 index 00000000..51df6cb7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestMultiColumn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1108d3cc76f0c9a469727a77a65adfe2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestNull.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestNull.cs new file mode 100644 index 00000000..0c722df0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestNull.cs @@ -0,0 +1,148 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestNull : Luban.EditorBeanBase +{ + public TestNull() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { x2 = (test.DemoEnum?)System.Enum.Parse(typeof(test.DemoEnum?), _fieldJson); } else if(_fieldJson.IsNumber) { x2 = (test.DemoEnum?)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x3 = test.DemoType1.LoadJsonDemoType1(_fieldJson); + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x4 = test.DemoDynamic.LoadJsonDemoDynamic(_fieldJson); + } + } + + { + var _fieldJson = _json["s1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s1 = _fieldJson; + } + } + + { + var _fieldJson = _json["s2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s2 = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + + if (x1 != null) + { + _json["x1"] = new JSONNumber(x1.Value); + } + + if (x2 != null) + { + _json["x2"] = new JSONNumber((int)x2); + } + + if (x3 != null) + { + { var __bjson = new JSONObject(); test.DemoType1.SaveJsonDemoType1(x3, __bjson); _json["x3"] = __bjson; } + } + + if (x4 != null) + { + { var __bjson = new JSONObject(); test.DemoDynamic.SaveJsonDemoDynamic(x4, __bjson); _json["x4"] = __bjson; } + } + + if (s1 != null) + { + _json["s1"] = new JSONString(s1); + } + + if (s2 != null) + { + _json["s2"] = new JSONString(s2); + } + } + + public static TestNull LoadJsonTestNull(SimpleJSON.JSONNode _json) + { + TestNull obj = new test.TestNull(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestNull(TestNull _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int? x1; + + public test.DemoEnum? x2; + + public test.DemoType1 x3; + + public test.DemoDynamic x4; + + public string s1; + + public string s2; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestNull.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestNull.cs.meta new file mode 100644 index 00000000..938db55a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 78b6fec0d8cee41458851373bc14d587 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRef.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRef.cs new file mode 100644 index 00000000..5abdd1f2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRef.cs @@ -0,0 +1,350 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestRef : Luban.EditorBeanBase +{ + public TestRef() + { + a1 = System.Array.Empty(); + a2 = System.Array.Empty(); + b1 = new System.Collections.Generic.List(); + b2 = new System.Collections.Generic.List(); + c1 = new System.Collections.Generic.HashSet(); + c2 = new System.Collections.Generic.HashSet(); + d1 = new System.Collections.Generic.Dictionary(); + d2 = new System.Collections.Generic.Dictionary(); + e3 = ""; + f3 = ""; + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x1_2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x12 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["a1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; a1 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; a1[_index++] = __v; } + } + } + + { + var _fieldJson = _json["a2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; a2 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; a2[_index++] = __v; } + } + } + + { + var _fieldJson = _json["b1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } b1 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; b1.Add(__v); } + } + } + + { + var _fieldJson = _json["b2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } b2 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; b2.Add(__v); } + } + } + + { + var _fieldJson = _json["c1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } c1 = new System.Collections.Generic.HashSet(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; c1.Add(__v); } + } + } + + { + var _fieldJson = _json["c2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } c2 = new System.Collections.Generic.HashSet(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; c2.Add(__v); } + } + } + + { + var _fieldJson = _json["d1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } d1 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; d1.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["d2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } d2 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; d2.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["e1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } e1 = _fieldJson; + } + } + + { + var _fieldJson = _json["e2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } e2 = _fieldJson; + } + } + + { + var _fieldJson = _json["e3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } e3 = _fieldJson; + } + } + + { + var _fieldJson = _json["f1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } f1 = _fieldJson; + } + } + + { + var _fieldJson = _json["f2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } f2 = _fieldJson; + } + } + + { + var _fieldJson = _json["f3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } f3 = _fieldJson; + } + } + + { + var _fieldJson = _json["s1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } s1 = test.RefDynamicBase.LoadJsonRefDynamicBase(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + _json["x1"] = new JSONNumber(x1); + } + { + _json["x1_2"] = new JSONNumber(x12); + } + { + _json["x2"] = new JSONNumber(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + { + + if (a1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in a1) { __cjson["null"] = new JSONNumber(_e); } _json["a1"] = __cjson; } + } + { + + if (a2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in a2) { __cjson["null"] = new JSONNumber(_e); } _json["a2"] = __cjson; } + } + { + + if (b1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in b1) { __cjson["null"] = new JSONNumber(_e); } _json["b1"] = __cjson; } + } + { + + if (b2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in b2) { __cjson["null"] = new JSONNumber(_e); } _json["b2"] = __cjson; } + } + { + + if (c1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in c1) { __cjson["null"] = new JSONNumber(_e); } _json["c1"] = __cjson; } + } + { + + if (c2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in c2) { __cjson["null"] = new JSONNumber(_e); } _json["c2"] = __cjson; } + } + { + + if (d1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in d1) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["d1"] = __cjson; } + } + { + + if (d2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in d2) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["d2"] = __cjson; } + } + { + _json["e1"] = new JSONNumber(e1); + } + { + _json["e2"] = new JSONNumber(e2); + } + { + + if (e3 == null) { throw new System.ArgumentNullException(); } + _json["e3"] = new JSONString(e3); + } + { + _json["f1"] = new JSONNumber(f1); + } + { + _json["f2"] = new JSONNumber(f2); + } + { + + if (f3 == null) { throw new System.ArgumentNullException(); } + _json["f3"] = new JSONString(f3); + } + { + + if (s1 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.RefDynamicBase.SaveJsonRefDynamicBase(s1, __bjson); _json["s1"] = __bjson; } + } + } + + public static TestRef LoadJsonTestRef(SimpleJSON.JSONNode _json) + { + TestRef obj = new test.TestRef(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestRef(TestRef _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int x1; + + public int x12; + + public int x2; + + public int x3; + + public int x4; + + public int[] a1; + + public int[] a2; + + public System.Collections.Generic.List b1; + + public System.Collections.Generic.List b2; + + public System.Collections.Generic.HashSet c1; + + public System.Collections.Generic.HashSet c2; + + public System.Collections.Generic.Dictionary d1; + + public System.Collections.Generic.Dictionary d2; + + public int e1; + + public long e2; + + public string e3; + + public int f1; + + public long f2; + + public string f3; + + public test.RefDynamicBase s1; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRef.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRef.cs.meta new file mode 100644 index 00000000..28b50a31 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e26bceef482883444a7d29010215158b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRow.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRow.cs new file mode 100644 index 00000000..05c83abe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRow.cs @@ -0,0 +1,119 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestRow : Luban.EditorBeanBase +{ + public TestRow() + { + z = ""; + a = new test.Test3(); + b = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } y = _fieldJson; + } + } + + { + var _fieldJson = _json["z"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } z = _fieldJson; + } + } + + { + var _fieldJson = _json["a"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } a = test.Test3.LoadJsonTest3(_fieldJson); + } + } + + { + var _fieldJson = _json["b"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } b = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; b.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONBool(y); + } + { + + if (z == null) { throw new System.ArgumentNullException(); } + _json["z"] = new JSONString(z); + } + { + + if (a == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.Test3.SaveJsonTest3(a, __bjson); _json["a"] = __bjson; } + } + { + + if (b == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in b) { __cjson["null"] = new JSONNumber(_e); } _json["b"] = __cjson; } + } + } + + public static TestRow LoadJsonTestRow(SimpleJSON.JSONNode _json) + { + TestRow obj = new test.TestRow(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestRow(TestRow _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int x; + + public bool y; + + public string z; + + public test.Test3 a; + + public System.Collections.Generic.List b; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRow.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRow.cs.meta new file mode 100644 index 00000000..d6107e13 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4d985862d904bda4e8ff67eaa83859c0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..c69f791a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestScriptableObject.cs @@ -0,0 +1,148 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestScriptableObject : Luban.EditorBeanBase +{ + public TestScriptableObject() + { + desc = ""; + v2 = new vec2(); + v3 = new vec3(); + v4 = new vec4(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["desc"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } desc = _fieldJson; + } + } + + { + var _fieldJson = _json["rate"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } rate = _fieldJson; + } + } + + { + var _fieldJson = _json["num"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } num = _fieldJson; + } + } + + { + var _fieldJson = _json["v2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v2 = vec2.LoadJsonvec2(_fieldJson); + } + } + + { + var _fieldJson = _json["v3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v3 = vec3.LoadJsonvec3(_fieldJson); + } + } + + { + var _fieldJson = _json["v4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } v4 = vec4.LoadJsonvec4(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (desc == null) { throw new System.ArgumentNullException(); } + _json["desc"] = new JSONString(desc); + } + { + _json["rate"] = new JSONNumber(rate); + } + { + _json["num"] = new JSONNumber(num); + } + { + + if (v2 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec2.SaveJsonvec2(v2, __bjson); _json["v2"] = __bjson; } + } + { + + if (v3 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec3.SaveJsonvec3(v3, __bjson); _json["v3"] = __bjson; } + } + { + + if (v4 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); vec4.SaveJsonvec4(v4, __bjson); _json["v4"] = __bjson; } + } + } + + public static TestScriptableObject LoadJsonTestScriptableObject(SimpleJSON.JSONNode _json) + { + TestScriptableObject obj = new test.TestScriptableObject(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestScriptableObject(TestScriptableObject _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string desc; + + public float rate; + + public int num; + + public vec2 v2; + + public vec3 v3; + + public vec4 v4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestScriptableObject.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestScriptableObject.cs.meta new file mode 100644 index 00000000..9860e526 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a3ddd621b1242e945ab76afa7f86acf6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSet.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSet.cs new file mode 100644 index 00000000..ad246ef1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSet.cs @@ -0,0 +1,138 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestSet : Luban.EditorBeanBase +{ + public TestSet() + { + x0 = ""; + x1 = new System.Collections.Generic.List(); + x2 = new System.Collections.Generic.List(); + x3 = new System.Collections.Generic.List(); + x4 = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x0"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } x0 = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x1 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; x1.Add(__v); } + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x2 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { long __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; x2.Add(__v); } + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x3 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { string __v; if(!__e.IsString) { throw new SerializationException(); } __v = __e; x3.Add(__v); } + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x4 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.DemoEnum __v; if(__e.IsString) { __v = (test.DemoEnum)System.Enum.Parse(typeof(test.DemoEnum), __e); } else if(__e.IsNumber) { __v = (test.DemoEnum)(int)__e; } else { throw new SerializationException(); } x4.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (x0 == null) { throw new System.ArgumentNullException(); } + _json["x0"] = new JSONString(x0); + } + { + + if (x1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x1) { __cjson["null"] = new JSONNumber(_e); } _json["x1"] = __cjson; } + } + { + + if (x2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x2) { __cjson["null"] = new JSONNumber(_e); } _json["x2"] = __cjson; } + } + { + + if (x3 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x3) { __cjson["null"] = new JSONString(_e); } _json["x3"] = __cjson; } + } + { + + if (x4 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x4) { __cjson["null"] = new JSONNumber((int)_e); } _json["x4"] = __cjson; } + } + } + + public static TestSet LoadJsonTestSet(SimpleJSON.JSONNode _json) + { + TestSet obj = new test.TestSet(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestSet(TestSet _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public string x0; + + public System.Collections.Generic.List x1; + + public System.Collections.Generic.List x2; + + public System.Collections.Generic.List x3; + + public System.Collections.Generic.List x4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSet.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSet.cs.meta new file mode 100644 index 00000000..fecd62a6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 460d2d70fbdb6834aa23ec4625952c11 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSize.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSize.cs new file mode 100644 index 00000000..50ae9e71 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSize.cs @@ -0,0 +1,122 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestSize : Luban.EditorBeanBase +{ + public TestSize() + { + x1 = System.Array.Empty(); + x2 = new System.Collections.Generic.List(); + x3 = new System.Collections.Generic.HashSet(); + x4 = new System.Collections.Generic.Dictionary(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; x1 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; x1[_index++] = __v; } + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x2 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; x2.Add(__v); } + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x3 = new System.Collections.Generic.HashSet(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; x3.Add(__v); } + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } x4 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; x4.Add(__k, __v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["id"] = new JSONNumber(id); + } + { + + if (x1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x1) { __cjson["null"] = new JSONNumber(_e); } _json["x1"] = __cjson; } + } + { + + if (x2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x2) { __cjson["null"] = new JSONNumber(_e); } _json["x2"] = __cjson; } + } + { + + if (x3 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x3) { __cjson["null"] = new JSONNumber(_e); } _json["x3"] = __cjson; } + } + { + + if (x4 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in x4) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["x4"] = __cjson; } + } + } + + public static TestSize LoadJsonTestSize(SimpleJSON.JSONNode _json) + { + TestSize obj = new test.TestSize(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestSize(TestSize _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public int id; + + public int[] x1; + + public System.Collections.Generic.List x2; + + public System.Collections.Generic.HashSet x3; + + public System.Collections.Generic.Dictionary x4; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSize.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSize.cs.meta new file mode 100644 index 00000000..81b01ed6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestSize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0099547c09ae4bb4d943415895f97a23 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestString.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestString.cs new file mode 100644 index 00000000..a3c96d01 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestString.cs @@ -0,0 +1,125 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestString : Luban.EditorBeanBase +{ + public TestString() + { + id = ""; + s1 = ""; + s2 = ""; + cs1 = new test.CompactString(); + cs2 = new test.CompactString(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } id = _fieldJson; + } + } + + { + var _fieldJson = _json["s1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s1 = _fieldJson; + } + } + + { + var _fieldJson = _json["s2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } s2 = _fieldJson; + } + } + + { + var _fieldJson = _json["cs1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } cs1 = test.CompactString.LoadJsonCompactString(_fieldJson); + } + } + + { + var _fieldJson = _json["cs2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } cs2 = test.CompactString.LoadJsonCompactString(_fieldJson); + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + + if (id == null) { throw new System.ArgumentNullException(); } + _json["id"] = new JSONString(id); + } + { + + if (s1 == null) { throw new System.ArgumentNullException(); } + _json["s1"] = new JSONString(s1); + } + { + + if (s2 == null) { throw new System.ArgumentNullException(); } + _json["s2"] = new JSONString(s2); + } + { + + if (cs1 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.CompactString.SaveJsonCompactString(cs1, __bjson); _json["cs1"] = __bjson; } + } + { + + if (cs2 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.CompactString.SaveJsonCompactString(cs2, __bjson); _json["cs2"] = __bjson; } + } + } + + public static TestString LoadJsonTestString(SimpleJSON.JSONNode _json) + { + TestString obj = new test.TestString(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestString(TestString _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public string id; + + public string s1; + + public string s2; + + public test.CompactString cs1; + + public test.CompactString cs2; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestString.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestString.cs.meta new file mode 100644 index 00000000..a5fdf3be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1cc2b08a39fd1584e8d49b54518401cd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestUeType.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestUeType.cs new file mode 100644 index 00000000..50c0e5f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestUeType.cs @@ -0,0 +1,263 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test +{ + +public sealed class TestUeType : Luban.EditorBeanBase +{ + public TestUeType() + { + x10 = ""; + x12 = new test.DemoType1(); + x13 = test.ETestUeType.WHITE; + t1 = "1970-01-01 00:00:00"; + k1 = System.Array.Empty(); + k2 = new System.Collections.Generic.List(); + k5 = new System.Collections.Generic.HashSet(); + k8 = new System.Collections.Generic.Dictionary(); + k9 = new System.Collections.Generic.List(); + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsBoolean) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x2 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["x4"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x4 = _fieldJson; + } + } + + { + var _fieldJson = _json["x5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x5 = _fieldJson; + } + } + + { + var _fieldJson = _json["x6"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x6 = _fieldJson; + } + } + + { + var _fieldJson = _json["x10"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } x10 = _fieldJson; + } + } + + { + var _fieldJson = _json["x12"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsObject) { throw new SerializationException(); } x12 = test.DemoType1.LoadJsonDemoType1(_fieldJson); + } + } + + { + var _fieldJson = _json["x13"]; + if (_fieldJson != null) + { + if(_fieldJson.IsString) { x13 = (test.ETestUeType)System.Enum.Parse(typeof(test.ETestUeType), _fieldJson); } else if(_fieldJson.IsNumber) { x13 = (test.ETestUeType)(int)_fieldJson; } else { throw new SerializationException(); } + } + } + + { + var _fieldJson = _json["t1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsString) { throw new SerializationException(); } t1 = _fieldJson; + } + } + + { + var _fieldJson = _json["k1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } int _n = _fieldJson.Count; k1 = new int[_n]; int _index=0; foreach(SimpleJSON.JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k1[_index++] = __v; } + } + } + + { + var _fieldJson = _json["k2"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k2 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k2.Add(__v); } + } + } + + { + var _fieldJson = _json["k5"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k5 = new System.Collections.Generic.HashSet(); foreach(JSONNode __e in _fieldJson.Children) { int __v; if(!__e.IsNumber) { throw new SerializationException(); } __v = __e; k5.Add(__v); } + } + } + + { + var _fieldJson = _json["k8"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k8 = new System.Collections.Generic.Dictionary(); foreach(JSONNode __e in _fieldJson.Children) { int __k; if(!__e[0].IsNumber) { throw new SerializationException(); } __k = __e[0]; int __v; if(!__e[1].IsNumber) { throw new SerializationException(); } __v = __e[1]; k8.Add(__k, __v); } + } + } + + { + var _fieldJson = _json["k9"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsArray) { throw new SerializationException(); } k9 = new System.Collections.Generic.List(); foreach(JSONNode __e in _fieldJson.Children) { test.DemoE2 __v; if(!__e.IsObject) { throw new SerializationException(); } __v = test.DemoE2.LoadJsonDemoE2(__e); k9.Add(__v); } + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONBool(x1); + } + { + _json["x2"] = new JSONNumber(x2); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["x4"] = new JSONNumber(x4); + } + { + _json["x5"] = new JSONNumber(x5); + } + { + _json["x6"] = new JSONNumber(x6); + } + { + + if (x10 == null) { throw new System.ArgumentNullException(); } + _json["x10"] = new JSONString(x10); + } + { + + if (x12 == null) { throw new System.ArgumentNullException(); } + { var __bjson = new JSONObject(); test.DemoType1.SaveJsonDemoType1(x12, __bjson); _json["x12"] = __bjson; } + } + { + _json["x13"] = new JSONNumber((int)x13); + } + { + _json["t1"] = new JSONString(t1); + } + { + + if (k1 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k1) { __cjson["null"] = new JSONNumber(_e); } _json["k1"] = __cjson; } + } + { + + if (k2 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k2) { __cjson["null"] = new JSONNumber(_e); } _json["k2"] = __cjson; } + } + { + + if (k5 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k5) { __cjson["null"] = new JSONNumber(_e); } _json["k5"] = __cjson; } + } + { + + if (k8 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k8) { var __entry = new JSONArray(); __cjson[null] = __entry; __entry["null"] = new JSONNumber(_e.Key); __entry["null"] = new JSONNumber(_e.Value); } _json["k8"] = __cjson; } + } + { + + if (k9 == null) { throw new System.ArgumentNullException(); } + { var __cjson = new JSONArray(); foreach(var _e in k9) { { var __bjson = new JSONObject(); test.DemoE2.SaveJsonDemoE2(_e, __bjson); __cjson["null"] = __bjson; } } _json["k9"] = __cjson; } + } + } + + public static TestUeType LoadJsonTestUeType(SimpleJSON.JSONNode _json) + { + TestUeType obj = new test.TestUeType(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonTestUeType(TestUeType _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public bool x1; + + public byte x2; + + public short x3; + + public int x4; + + public long x5; + + public float x6; + + public string x10; + + public test.DemoType1 x12; + + public test.ETestUeType x13; + + public string t1; + + public int[] k1; + + public System.Collections.Generic.List k2; + + public System.Collections.Generic.HashSet k5; + + public System.Collections.Generic.Dictionary k8; + + public System.Collections.Generic.List k9; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestUeType.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestUeType.cs.meta new file mode 100644 index 00000000..5c0b7baa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.TestUeType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 53c8f1d76559f904ab06193b37cb1167 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..557c0a4f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.login.RoleInfo.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test.login +{ + +public sealed class RoleInfo : test.DemoD3 +{ + public RoleInfo() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x1"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x1 = _fieldJson; + } + } + + { + var _fieldJson = _json["x3"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x3 = _fieldJson; + } + } + + { + var _fieldJson = _json["role_id"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } roleId = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x1"] = new JSONNumber(x1); + } + { + _json["x3"] = new JSONNumber(x3); + } + { + _json["role_id"] = new JSONNumber(roleId); + } + } + + public static RoleInfo LoadJsonRoleInfo(SimpleJSON.JSONNode _json) + { + RoleInfo obj = new test.login.RoleInfo(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonRoleInfo(RoleInfo _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public long roleId; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.login.RoleInfo.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.login.RoleInfo.cs.meta new file mode 100644 index 00000000..fcfa0b00 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test.login.RoleInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4db71ccdf0a33814e84ae50b3c2bd250 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test2.Rectangle.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..0f2087be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test2.Rectangle.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg.test2 +{ + +/// +/// 矩形 +/// +public sealed class Rectangle : test.Shape +{ + public Rectangle() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["width"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } width = _fieldJson; + } + } + + { + var _fieldJson = _json["height"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } height = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["width"] = new JSONNumber(width); + } + { + _json["height"] = new JSONNumber(height); + } + } + + public static Rectangle LoadJsonRectangle(SimpleJSON.JSONNode _json) + { + Rectangle obj = new test2.Rectangle(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonRectangle(Rectangle _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + /// + /// 宽度 + /// + public float width; + + /// + /// 高度 + /// + public float height; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test2.Rectangle.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test2.Rectangle.cs.meta new file mode 100644 index 00000000..37bb7def --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/test2.Rectangle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a5923555f178484fb31de2b19485992 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec2.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec2.cs new file mode 100644 index 00000000..ed7e7069 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec2.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg +{ + +public sealed class vec2 : Luban.EditorBeanBase +{ + public vec2() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONNumber(y); + } + } + + public static vec2 LoadJsonvec2(SimpleJSON.JSONNode _json) + { + vec2 obj = new vec2(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonvec2(vec2 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float x; + + public float y; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec2.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec2.cs.meta new file mode 100644 index 00000000..200149b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 65424dd4d5ca53341b6c1aae2ca0cc97 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec3.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec3.cs new file mode 100644 index 00000000..32cbf394 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec3.cs @@ -0,0 +1,84 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg +{ + +public sealed class vec3 : Luban.EditorBeanBase +{ + public vec3() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + { + var _fieldJson = _json["z"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } z = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONNumber(y); + } + { + _json["z"] = new JSONNumber(z); + } + } + + public static vec3 LoadJsonvec3(SimpleJSON.JSONNode _json) + { + vec3 obj = new vec3(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonvec3(vec3 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float x; + + public float y; + + public float z; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec3.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec3.cs.meta new file mode 100644 index 00000000..c3599d14 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 11679456aed5a41408004a2cb2328e8f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec4.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec4.cs new file mode 100644 index 00000000..817bf78f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec4.cs @@ -0,0 +1,97 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Collections.Generic; +using SimpleJSON; +using Luban; + +namespace editor.cfg +{ + +public sealed class vec4 : Luban.EditorBeanBase +{ + public vec4() + { + } + + public override void LoadJson(SimpleJSON.JSONObject _json) + { + { + var _fieldJson = _json["x"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } x = _fieldJson; + } + } + + { + var _fieldJson = _json["y"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } y = _fieldJson; + } + } + + { + var _fieldJson = _json["z"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } z = _fieldJson; + } + } + + { + var _fieldJson = _json["w"]; + if (_fieldJson != null) + { + if(!_fieldJson.IsNumber) { throw new SerializationException(); } w = _fieldJson; + } + } + + } + + public override void SaveJson(SimpleJSON.JSONObject _json) + { + { + _json["x"] = new JSONNumber(x); + } + { + _json["y"] = new JSONNumber(y); + } + { + _json["z"] = new JSONNumber(z); + } + { + _json["w"] = new JSONNumber(w); + } + } + + public static vec4 LoadJsonvec4(SimpleJSON.JSONNode _json) + { + vec4 obj = new vec4(); + obj.LoadJson((SimpleJSON.JSONObject)_json); + return obj; + } + + public static void SaveJsonvec4(vec4 _obj, SimpleJSON.JSONNode _json) + { + _obj.SaveJson((SimpleJSON.JSONObject)_json); + } + + public float x; + + public float y; + + public float z; + + public float w; + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec4.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec4.cs.meta new file mode 100644 index 00000000..5d03bd6d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Gen/vec4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3516bd01be80f3d47857308ecba98cd8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Main.cs b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Main.cs new file mode 100644 index 00000000..c6b7b598 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Main.cs @@ -0,0 +1,22 @@ +using System.Collections; +using System.Collections.Generic; +using System.IO; +using UnityEngine; +using SimpleJSON; +using Luban; + +public class Main : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Main.cs.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Main.cs.meta new file mode 100644 index 00000000..eba75ac3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Main.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 68efedfcdd561c447adb54013912e09c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes.meta new file mode 100644 index 00000000..934a73f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bec329fa68bcdff45b33176a93c796f8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes/SampleScene.unity b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes/SampleScene.unity new file mode 100644 index 00000000..a2476389 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes/SampleScene.unity @@ -0,0 +1,166 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &810827987 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 810827989} + - component: {fileID: 810827988} + m_Layer: 0 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &810827988 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 68efedfcdd561c447adb54013912e09c, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &810827989 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + 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_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes/SampleScene.unity.meta b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes/SampleScene.unity.meta new file mode 100644 index 00000000..2c1fece9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Assets/Scenes/SampleScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f47aaf9f1663a784b8c9e34aea07d71a +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Csharp_Unity_Editor_json.sln b/luban_examples/Projects/Csharp_Unity_Editor_json/Csharp_Unity_Editor_json.sln new file mode 100644 index 00000000..cb25ddd3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Csharp_Unity_Editor_json.sln @@ -0,0 +1,38 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{5DB7945E-BB11-3390-ABBE-BD513F03D44E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luban.Runtime", "Luban.Runtime.csproj", "{A6FE33CD-D58A-5D90-E255-F7C2105A9AF8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luban.Editor", "Luban.Editor.csproj", "{864617EB-2599-3432-5851-9CFB0F5268FA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{6A74595F-DA90-2725-E9BA-7EE6224FDDCF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5DB7945E-BB11-3390-ABBE-BD513F03D44E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5DB7945E-BB11-3390-ABBE-BD513F03D44E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5DB7945E-BB11-3390-ABBE-BD513F03D44E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5DB7945E-BB11-3390-ABBE-BD513F03D44E}.Release|Any CPU.Build.0 = Release|Any CPU + {A6FE33CD-D58A-5D90-E255-F7C2105A9AF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A6FE33CD-D58A-5D90-E255-F7C2105A9AF8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A6FE33CD-D58A-5D90-E255-F7C2105A9AF8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A6FE33CD-D58A-5D90-E255-F7C2105A9AF8}.Release|Any CPU.Build.0 = Release|Any CPU + {864617EB-2599-3432-5851-9CFB0F5268FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {864617EB-2599-3432-5851-9CFB0F5268FA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {864617EB-2599-3432-5851-9CFB0F5268FA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {864617EB-2599-3432-5851-9CFB0F5268FA}.Release|Any CPU.Build.0 = Release|Any CPU + {6A74595F-DA90-2725-E9BA-7EE6224FDDCF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6A74595F-DA90-2725-E9BA-7EE6224FDDCF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6A74595F-DA90-2725-E9BA-7EE6224FDDCF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6A74595F-DA90-2725-E9BA-7EE6224FDDCF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Logs/ApiUpdaterCheck.txt b/luban_examples/Projects/Csharp_Unity_Editor_json/Logs/ApiUpdaterCheck.txt new file mode 100644 index 00000000..76589ed5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Logs/ApiUpdaterCheck.txt @@ -0,0 +1,250 @@ +[api-updater (non-obsolete-error-filter)] 2021/7/30 18:17:53 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 97.7387ms +moved types parse time: 43ms +candidates parse time : 1ms +C# parse time : 192ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:02:21 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 46.875ms +moved types parse time: 38ms +candidates parse time : 1ms +C# parse time : 160ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:02:28 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.9039ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 128ms +candidates check time : 24ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:03:35 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.9065ms +moved types parse time: 38ms +candidates parse time : 0ms +C# parse time : 126ms +candidates check time : 23ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:10:21 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.8777ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 127ms +candidates check time : 23ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:11:11 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.9058ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 128ms +candidates check time : 23ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:11:43 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 49.867ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 160ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:22:14 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 46.0957ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 166ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:24:43 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 47.8713ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 161ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:30:36 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 46.5797ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 172ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:37:19 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 47.8727ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 152ms +candidates check time : 40ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:16:55 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 109.7068ms +moved types parse time: 47ms +candidates parse time : 0ms +C# parse time : 171ms +candidates check time : 27ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:24:30 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 59.8396ms +moved types parse time: 48ms +candidates parse time : 0ms +C# parse time : 151ms +candidates check time : 35ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:27:54 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 63.8286ms +moved types parse time: 42ms +candidates parse time : 0ms +C# parse time : 137ms +candidates check time : 26ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:33:11 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 52.8578ms +moved types parse time: 42ms +candidates parse time : 0ms +C# parse time : 136ms +candidates check time : 24ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:38:48 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 52.8584ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 137ms +candidates check time : 24ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:39:21 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 51.8619ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 134ms +candidates check time : 24ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:42:08 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 59.8408ms +moved types parse time: 41ms +candidates parse time : 0ms +C# parse time : 138ms +candidates check time : 24ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 16:43:12 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 63.8289ms +moved types parse time: 40ms +candidates parse time : 0ms +C# parse time : 143ms +candidates check time : 24ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 20:11:17 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 54.8536ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 141ms +candidates check time : 31ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 20:11:59 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 60.8382ms +moved types parse time: 42ms +candidates parse time : 0ms +C# parse time : 150ms +candidates check time : 32ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 20:12:55 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 56.8472ms +moved types parse time: 42ms +candidates parse time : 1ms +C# parse time : 160ms +candidates check time : 35ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 20:14:01 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 60.8374ms +moved types parse time: 44ms +candidates parse time : 1ms +C# parse time : 152ms +candidates check time : 32ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/1/26 21:36:06 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 65.8288ms +moved types parse time: 40ms +candidates parse time : 1ms +C# parse time : 169ms +candidates check time : 37ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2022/2/24 10:56:21 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 113.695ms +moved types parse time: 44ms +candidates parse time : 1ms +C# parse time : 190ms +candidates check time : 36ms +console write time : 0ms + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Luban.Editor.csproj b/luban_examples/Projects/Csharp_Unity_Editor_json/Luban.Editor.csproj new file mode 100644 index 00000000..bb3fc909 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Luban.Editor.csproj @@ -0,0 +1,979 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {864617EB-2599-3432-5851-9CFB0F5268FA} + Library + Properties + Luban.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Editor:5 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.NVIDIAModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.ext.nunit@1.0.6\net35\unity-custom\nunit.framework.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\UnityEngine.TestRunner.dll + + + Library\ScriptAssemblies\UnityEditor.TestRunner.dll + + + + + {A6FE33CD-D58A-5D90-E255-F7C2105A9AF8} + Luban.Runtime + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Luban.Runtime.csproj b/luban_examples/Projects/Csharp_Unity_Editor_json/Luban.Runtime.csproj new file mode 100644 index 00000000..fdbd44aa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Luban.Runtime.csproj @@ -0,0 +1,969 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {A6FE33CD-D58A-5D90-E255-F7C2105A9AF8} + Library + Properties + Luban.Runtime + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Game:1 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Packages/manifest.json b/luban_examples/Projects/Csharp_Unity_Editor_json/Packages/manifest.json new file mode 100644 index 00000000..be2f65e6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Packages/manifest.json @@ -0,0 +1,45 @@ +{ + "dependencies": { + "com.code-philosophy.luban": "https://github.com/focus-creative-games/luban_unity.git", + "com.unity.collab-proxy": "1.15.15", + "com.unity.ide.rider": "3.0.13", + "com.unity.ide.visualstudio": "2.0.14", + "com.unity.ide.vscode": "1.2.5", + "com.unity.test-framework": "1.1.31", + "com.unity.textmeshpro": "3.0.6", + "com.unity.timeline": "1.6.4", + "com.unity.ugui": "1.0.0", + "com.unity.visualscripting": "1.7.6", + "com.unity.modules.ai": "1.0.0", + "com.unity.modules.androidjni": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.cloth": "1.0.0", + "com.unity.modules.director": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.physics2d": "1.0.0", + "com.unity.modules.screencapture": "1.0.0", + "com.unity.modules.terrain": "1.0.0", + "com.unity.modules.terrainphysics": "1.0.0", + "com.unity.modules.tilemap": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.uielements": "1.0.0", + "com.unity.modules.umbra": "1.0.0", + "com.unity.modules.unityanalytics": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.unitywebrequesttexture": "1.0.0", + "com.unity.modules.unitywebrequestwww": "1.0.0", + "com.unity.modules.vehicles": "1.0.0", + "com.unity.modules.video": "1.0.0", + "com.unity.modules.vr": "1.0.0", + "com.unity.modules.wind": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/Packages/packages-lock.json b/luban_examples/Projects/Csharp_Unity_Editor_json/Packages/packages-lock.json new file mode 100644 index 00000000..c5f8a3c7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/Packages/packages-lock.json @@ -0,0 +1,366 @@ +{ + "dependencies": { + "com.code-philosophy.luban": { + "version": "https://github.com/focus-creative-games/luban_unity.git", + "depth": 0, + "source": "git", + "dependencies": {}, + "hash": "aa41b56501c9a7decf01dfd842a1e6ee894c85bb" + }, + "com.unity.collab-proxy": { + "version": "1.15.15", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.services.core": "1.0.1" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ext.nunit": { + "version": "1.0.6", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.ide.rider": { + "version": "3.0.13", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.visualstudio": { + "version": "2.0.14", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.test-framework": "1.1.9" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.vscode": { + "version": "1.2.5", + "depth": 0, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.services.core": { + "version": "1.0.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.test-framework": { + "version": "1.1.31", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.textmeshpro": { + "version": "3.0.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.timeline": { + "version": "1.6.4", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.modules.director": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ugui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0" + } + }, + "com.unity.visualscripting": { + "version": "1.7.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.modules.ai": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.androidjni": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.animation": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.assetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.audio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.cloth": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.director": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.animation": "1.0.0" + } + }, + "com.unity.modules.imageconversion": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.imgui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.jsonserialize": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.particlesystem": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics2d": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.screencapture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.subsystems": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.terrain": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.terrainphysics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.terrain": "1.0.0" + } + }, + "com.unity.modules.tilemap": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics2d": "1.0.0" + } + }, + "com.unity.modules.ui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.uielements": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.uielementsnative": "1.0.0" + } + }, + "com.unity.modules.uielementsnative": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.umbra": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unityanalytics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.unitywebrequest": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unitywebrequestassetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestaudio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.audio": "1.0.0" + } + }, + "com.unity.modules.unitywebrequesttexture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestwww": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.vehicles": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.video": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.vr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } + }, + "com.unity.modules.wind": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.xr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.subsystems": "1.0.0" + } + } + } +} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/AudioManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/AudioManager.asset new file mode 100644 index 00000000..07ebfb05 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/AudioManager.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 1024 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_SpatializerPlugin: + m_AmbisonicDecoderPlugin: + m_DisableAudio: 0 + m_VirtualizeEffects: 1 + m_RequestedDSPBufferSize: 1024 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ClusterInputManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 00000000..e7886b26 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/DynamicsManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/DynamicsManager.asset new file mode 100644 index 00000000..cdc1f3ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_Gravity: {x: 0, y: -9.81, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_SleepThreshold: 0.005 + m_DefaultContactOffset: 0.01 + m_DefaultSolverIterations: 6 + m_DefaultSolverVelocityIterations: 1 + m_QueriesHitBackfaces: 0 + m_QueriesHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_ClothInterCollisionDistance: 0 + m_ClothInterCollisionStiffness: 0 + m_ContactsGeneration: 1 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_AutoSimulation: 1 + m_AutoSyncTransforms: 0 + m_ReuseCollisionCallbacks: 1 + m_ClothInterCollisionSettingsToggle: 0 + m_ContactPairsMode: 0 + m_BroadphaseType: 0 + m_WorldBounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 250, y: 250, z: 250} + m_WorldSubdivisions: 8 + m_FrictionType: 0 + m_EnableEnhancedDeterminism: 0 + m_EnableUnifiedHeightmaps: 1 + m_DefaultMaxAngluarSpeed: 7 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/EditorBuildSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 00000000..0147887e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: [] + m_configObjects: {} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/EditorSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/EditorSettings.asset new file mode 100644 index 00000000..f9205447 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/EditorSettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_ExternalVersionControlSupport: Visible Meta Files + m_SerializationMode: 2 + m_LineEndingsForNewScripts: 0 + m_DefaultBehaviorMode: 0 + m_PrefabRegularEnvironment: {fileID: 0} + m_PrefabUIEnvironment: {fileID: 0} + m_SpritePackerMode: 0 + m_SpritePackerPaddingPower: 1 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 + m_EtcTextureNormalCompressor: 2 + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref + m_ProjectGenerationRootNamespace: + m_CollabEditorSettings: + inProgressEnabled: 1 + m_EnableTextureStreamingInEditMode: 1 + m_EnableTextureStreamingInPlayMode: 1 + m_AsyncShaderCompilation: 1 + m_EnterPlayModeOptionsEnabled: 0 + m_EnterPlayModeOptions: 3 + m_ShowLightmapResolutionOverlay: 1 + m_UseLegacyProbeSampleCount: 0 + m_AssetPipelineMode: 1 + m_CacheServerMode: 0 + m_CacheServerEndpoint: + m_CacheServerNamespacePrefix: default + m_CacheServerEnableDownload: 1 + m_CacheServerEnableUpload: 1 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/GraphicsSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 00000000..43369e3c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,63 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 13 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_ScreenSpaceShadows: + m_Mode: 1 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_DepthNormals: + m_Mode: 1 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} + m_MotionVectors: + m_Mode: 1 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} + m_LightHalo: + m_Mode: 1 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} + m_LensFlare: + m_Mode: 1 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} + m_AlwaysIncludedShaders: + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, + type: 0} + m_CustomRenderPipeline: {fileID: 0} + m_TransparencySortMode: 0 + m_TransparencySortAxis: {x: 0, y: 0, z: 1} + m_DefaultRenderingPath: 1 + m_DefaultMobileRenderingPath: 1 + m_TierSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_InstancingStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepShadowMask: 1 + m_LightmapKeepSubtractive: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 + m_AlbedoSwatchInfos: [] + m_LightsUseLinearIntensity: 0 + m_LightsUseColorTemperature: 0 + m_LogWhenShaderIsCompiled: 0 + m_AllowEnlightenSupportForUpgradedProject: 0 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/InputManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/InputManager.asset new file mode 100644 index 00000000..17c8f538 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/InputManager.asset @@ -0,0 +1,295 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/MemorySettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/MemorySettings.asset new file mode 100644 index 00000000..5b5facec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/MemorySettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!387306366 &1 +MemorySettings: + m_ObjectHideFlags: 0 + m_EditorMemorySettings: + m_MainAllocatorBlockSize: -1 + m_ThreadAllocatorBlockSize: -1 + m_MainGfxBlockSize: -1 + m_ThreadGfxBlockSize: -1 + m_CacheBlockSize: -1 + m_TypetreeBlockSize: -1 + m_ProfilerBlockSize: -1 + m_ProfilerEditorBlockSize: -1 + m_BucketAllocatorGranularity: -1 + m_BucketAllocatorBucketsCount: -1 + m_BucketAllocatorBlockSize: -1 + m_BucketAllocatorBlockCount: -1 + m_ProfilerBucketAllocatorGranularity: -1 + m_ProfilerBucketAllocatorBucketsCount: -1 + m_ProfilerBucketAllocatorBlockSize: -1 + m_ProfilerBucketAllocatorBlockCount: -1 + m_TempAllocatorSizeMain: -1 + m_JobTempAllocatorBlockSize: -1 + m_BackgroundJobTempAllocatorBlockSize: -1 + m_JobTempAllocatorReducedBlockSize: -1 + m_TempAllocatorSizeGIBakingWorker: -1 + m_TempAllocatorSizeNavMeshWorker: -1 + m_TempAllocatorSizeAudioWorker: -1 + m_TempAllocatorSizeCloudWorker: -1 + m_TempAllocatorSizeGfx: -1 + m_TempAllocatorSizeJobWorker: -1 + m_TempAllocatorSizeBackgroundWorker: -1 + m_TempAllocatorSizePreloadManager: -1 + m_PlatformMemorySettings: {} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/NavMeshAreas.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 00000000..3b0b7c3d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,91 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshProjectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + m_LastAgentTypeID: -887442657 + m_Settings: + - serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.75 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_SettingNames: + - Humanoid diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/PackageManagerSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/PackageManagerSettings.asset new file mode 100644 index 00000000..b2a928b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/PackageManagerSettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_EnablePreReleasePackages: 0 + m_EnablePackageDependencies: 0 + m_AdvancedSettingsExpanded: 1 + m_ScopedRegistriesSettingsExpanded: 1 + m_SeeAllPackageVersions: 0 + oneTimeWarningShown: 0 + m_Registries: + - m_Id: main + m_Name: + m_Url: https://packages.unity.com + m_Scopes: [] + m_IsDefault: 1 + m_Capabilities: 7 + m_UserSelectedRegistryName: + m_UserAddingNewScopedRegistry: 0 + m_RegistryInfoDraft: + m_Modified: 0 + m_ErrorMessage: + m_UserModificationsInstanceId: -848 + m_OriginalInstanceId: -850 + m_LoadAssets: 0 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/Physics2DSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 00000000..47880b1c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,56 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_Gravity: {x: 0, y: -9.81} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: 0.2 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_BaumgarteScale: 0.2 + m_BaumgarteTimeOfImpactScale: 0.75 + m_TimeToSleep: 0.5 + m_LinearSleepTolerance: 0.01 + m_AngularSleepTolerance: 2 + m_DefaultContactOffset: 0.01 + m_JobOptions: + serializedVersion: 2 + useMultithreading: 0 + useConsistencySorting: 0 + m_InterpolationPosesPerJob: 100 + m_NewContactsPerJob: 30 + m_CollideContactsPerJob: 100 + m_ClearFlagsPerJob: 200 + m_ClearBodyForcesPerJob: 200 + m_SyncDiscreteFixturesPerJob: 50 + m_SyncContinuousFixturesPerJob: 50 + m_FindNearestContactsPerJob: 100 + m_UpdateTriggerContactsPerJob: 100 + m_IslandSolverCostThreshold: 100 + m_IslandSolverBodyCostScale: 1 + m_IslandSolverContactCostScale: 10 + m_IslandSolverJointCostScale: 10 + m_IslandSolverBodiesPerJob: 50 + m_IslandSolverContactsPerJob: 50 + m_AutoSimulation: 1 + m_QueriesHitTriggers: 1 + m_QueriesStartInColliders: 1 + m_CallbacksOnDisable: 1 + m_ReuseCollisionCallbacks: 1 + m_AutoSyncTransforms: 0 + m_AlwaysShowColliders: 0 + m_ShowColliderSleep: 1 + m_ShowColliderContacts: 0 + m_ShowColliderAABB: 0 + m_ContactArrowScale: 0.2 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/PresetManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/PresetManager.asset new file mode 100644 index 00000000..67a94dae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/PresetManager.asset @@ -0,0 +1,7 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1386491679 &1 +PresetManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_DefaultPresets: {} diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ProjectSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ProjectSettings.asset new file mode 100644 index 00000000..bec97d59 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,885 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 23 + productGUID: 79020594a22363045965b78210aa6ed4 + AndroidProfiler: 0 + AndroidFilterTouchesWhenObscured: 0 + AndroidEnableSustainedPerformanceMode: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: DefaultCompany + productName: Csharp_Unity + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} + m_ShowUnitySplashScreen: 1 + m_ShowUnitySplashLogo: 1 + m_SplashScreenOverlayOpacity: 1 + m_SplashScreenAnimation: 1 + m_SplashScreenLogoStyle: 1 + m_SplashScreenDrawMode: 0 + m_SplashScreenBackgroundAnimationZoom: 1 + m_SplashScreenLogoAnimationZoom: 1 + m_SplashScreenBackgroundLandscapeAspect: 1 + m_SplashScreenBackgroundPortraitAspect: 1 + m_SplashScreenBackgroundLandscapeUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenBackgroundPortraitUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenLogos: [] + m_VirtualRealitySplashScreen: {fileID: 0} + m_HolographicTrackingLossScreen: {fileID: 0} + defaultScreenWidth: 1024 + defaultScreenHeight: 768 + defaultScreenWidthWeb: 960 + defaultScreenHeightWeb: 600 + m_StereoRenderingPath: 0 + m_ActiveColorSpace: 0 + m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosUseCustomAppBackgroundBehavior: 0 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + preserveFramebufferAlpha: 0 + disableDepthAndStencilBuffers: 0 + androidStartInFullscreen: 1 + androidRenderOutsideSafeArea: 1 + androidUseSwappy: 0 + androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 + defaultIsNativeResolution: 1 + macRetinaSupport: 1 + runInBackground: 1 + captureSingleScreen: 0 + muteOtherAudioSources: 0 + Prepare IOS For Recording: 0 + Force IOS Speakers When Recording: 0 + deferSystemGesturesMode: 0 + hideHomeButton: 0 + submitAnalytics: 1 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + useFlipModelSwapchain: 1 + resizableWindow: 0 + useMacAppStoreValidation: 0 + macAppStoreCategory: public.app-category.games + gpuSkinning: 1 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 1 + allowFullscreenSwitch: 1 + fullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + xboxEnablePIXSampling: 0 + metalFramebufferOnly: 0 + xboxOneResolution: 0 + xboxOneSResolution: 0 + xboxOneXResolution: 3 + xboxOneMonoLoggingLevel: 0 + xboxOneLoggingLevel: 1 + xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 + xboxOnePresentImmediateThreshold: 0 + switchQueueCommandMemory: 0 + switchQueueControlMemory: 16384 + switchQueueComputeMemory: 262144 + switchNVNShaderPoolsGranularity: 33554432 + switchNVNDefaultPoolsGranularity: 16777216 + switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 + vulkanNumSwapchainBuffers: 3 + vulkanEnableSetSRGBWrite: 0 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 + vulkanEnableCommandBufferRecycling: 1 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleVersion: 0.1 + preloadedAssets: [] + metroInputSource: 0 + wsaTransparentSwapchain: 0 + m_HolographicPauseOnTrackingLoss: 1 + xboxOneDisableKinectGpuReservation: 1 + xboxOneEnable7thCore: 1 + vrSettings: + enable360StereoCapture: 0 + isWsaHolographicRemotingEnabled: 0 + enableFrameTimingStats: 0 + useHDRDisplay: 0 + D3DHDRBitDepth: 0 + m_ColorGamuts: 00000000 + targetPixelDensity: 30 + resolutionScalingMode: 0 + androidSupportedAspectRatio: 1 + androidMaxAspectRatio: 2.1 + applicationIdentifier: {} + buildNumber: + Standalone: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 0 + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 22 + AndroidTargetSdkVersion: 0 + AndroidPreferredInstallLocation: 1 + aotOptions: + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + keepLoadedShadersAlive: 0 + StripUnusedMeshComponents: 1 + VertexChannelCompressionMask: 4054 + iPhoneSdkVersion: 988 + iOSTargetOSVersionString: 11.0 + tvOSSdkVersion: 0 + tvOSRequireExtendedGameController: 0 + tvOSTargetOSVersionString: 11.0 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + appleTVSplashScreen: {fileID: 0} + appleTVSplashScreen2x: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSSmallIconLayers2x: [] + tvOSLargeIconLayers: [] + tvOSLargeIconLayers2x: [] + tvOSTopShelfImageLayers: [] + tvOSTopShelfImageLayers2x: [] + tvOSTopShelfImageWideLayers: [] + tvOSTopShelfImageWideLayers2x: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: + iOSDeviceRequirements: [] + iOSURLSchemes: [] + macOSURLSchemes: [] + iOSBackgroundModes: 0 + iOSMetalForceHardShadows: 0 + metalEditorSupport: 1 + metalAPIValidation: 1 + iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 + appleDeveloperTeamID: + iOSManualSigningProvisioningProfileID: + tvOSManualSigningProvisioningProfileID: + iOSManualSigningProvisioningProfileType: 0 + tvOSManualSigningProvisioningProfileType: 0 + appleEnableAutomaticSigning: 0 + iOSRequireARKit: 0 + iOSAutomaticallyDetectAndAddCapabilities: 1 + appleEnableProMotion: 0 + shaderPrecisionModel: 0 + clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea + templatePackageId: com.unity.template.3d@4.2.8 + templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomProguardFile: 0 + AndroidTargetArchitectures: 1 + AndroidTargetDevices: 0 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidBuildApkPerCpuArchitecture: 0 + AndroidTVCompatibility: 0 + AndroidIsGame: 1 + AndroidEnableTango: 0 + androidEnableBanner: 1 + androidUseLowAccuracyLocation: 0 + androidUseCustomKeystore: 0 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidMinifyWithR8: 0 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 + AndroidValidateAppBundleSize: 1 + AndroidAppBundleSizeToValidate: 150 + m_BuildTargetIcons: [] + m_BuildTargetPlatformIcons: + - m_BuildTarget: iPhone + m_Icons: + - m_Textures: [] + m_Width: 180 + m_Height: 180 + m_Kind: 0 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 120 + m_Height: 120 + m_Kind: 0 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 167 + m_Height: 167 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 152 + m_Height: 152 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 76 + m_Height: 76 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 120 + m_Height: 120 + m_Kind: 3 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 80 + m_Height: 80 + m_Kind: 3 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 80 + m_Height: 80 + m_Kind: 3 + m_SubKind: iPad + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 3 + m_SubKind: iPad + - m_Textures: [] + m_Width: 87 + m_Height: 87 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 58 + m_Height: 58 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 29 + m_Height: 29 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 58 + m_Height: 58 + m_Kind: 1 + m_SubKind: iPad + - m_Textures: [] + m_Width: 29 + m_Height: 29 + m_Kind: 1 + m_SubKind: iPad + - m_Textures: [] + m_Width: 60 + m_Height: 60 + m_Kind: 2 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 2 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 2 + m_SubKind: iPad + - m_Textures: [] + m_Width: 20 + m_Height: 20 + m_Kind: 2 + m_SubKind: iPad + - m_Textures: [] + m_Width: 1024 + m_Height: 1024 + m_Kind: 4 + m_SubKind: App Store + - m_BuildTarget: Android + m_Icons: + - m_Textures: [] + m_Width: 432 + m_Height: 432 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 324 + m_Height: 324 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 216 + m_Height: 216 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 162 + m_Height: 162 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 108 + m_Height: 108 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 81 + m_Height: 81 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 0 + m_SubKind: + m_BuildTargetBatching: + - m_BuildTarget: Standalone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: tvOS + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: Android + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: iPhone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: WebGL + m_StaticBatching: 0 + m_DynamicBatching: 0 + m_BuildTargetGraphicsJobs: + - m_BuildTarget: MacStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: Switch + m_GraphicsJobs: 1 + - m_BuildTarget: MetroSupport + m_GraphicsJobs: 1 + - m_BuildTarget: AppleTVSupport + m_GraphicsJobs: 0 + - m_BuildTarget: BJMSupport + m_GraphicsJobs: 1 + - m_BuildTarget: LinuxStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: PS4Player + m_GraphicsJobs: 1 + - m_BuildTarget: iOSSupport + m_GraphicsJobs: 0 + - m_BuildTarget: WindowsStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobs: 1 + - m_BuildTarget: LuminSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AndroidPlayer + m_GraphicsJobs: 0 + - m_BuildTarget: WebGLSupport + m_GraphicsJobs: 0 + m_BuildTargetGraphicsJobMode: + - m_BuildTarget: PS4Player + m_GraphicsJobMode: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobMode: 0 + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: AndroidPlayer + m_APIs: 150000000b000000 + m_Automatic: 1 + - m_BuildTarget: iOSSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: AppleTVSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: WebGLSupport + m_APIs: 0b000000 + m_Automatic: 1 + m_BuildTargetVRSettings: + - m_BuildTarget: Standalone + m_Enabled: 0 + m_Devices: + - Oculus + - OpenVR + openGLRequireES31: 0 + openGLRequireES31AEP: 0 + openGLRequireES32: 0 + m_TemplateCustomTags: {} + mobileMTRendering: + Android: 1 + iPhone: 1 + tvOS: 1 + m_BuildTargetGroupLightmapEncodingQuality: [] + m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetNormalMapEncoding: [] + m_BuildTargetDefaultTextureCompressionFormat: [] + playModeTestRunnerEnabled: 0 + runPlayModeTestAsEditModeTest: 0 + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: + bluetoothUsageDescription: + switchNMETAOverride: + switchNetLibKey: + switchSocketMemoryPoolSize: 6144 + switchSocketAllocatorPoolSize: 128 + switchSocketConcurrencyLimit: 14 + switchScreenResolutionBehavior: 2 + switchUseCPUProfiler: 0 + switchUseGOLDLinker: 0 + switchLTOSetting: 0 + switchApplicationID: 0x01004b9000490000 + switchNSODependencies: + switchTitleNames_0: + switchTitleNames_1: + switchTitleNames_2: + switchTitleNames_3: + switchTitleNames_4: + switchTitleNames_5: + switchTitleNames_6: + switchTitleNames_7: + switchTitleNames_8: + switchTitleNames_9: + switchTitleNames_10: + switchTitleNames_11: + switchTitleNames_12: + switchTitleNames_13: + switchTitleNames_14: + switchTitleNames_15: + switchPublisherNames_0: + switchPublisherNames_1: + switchPublisherNames_2: + switchPublisherNames_3: + switchPublisherNames_4: + switchPublisherNames_5: + switchPublisherNames_6: + switchPublisherNames_7: + switchPublisherNames_8: + switchPublisherNames_9: + switchPublisherNames_10: + switchPublisherNames_11: + switchPublisherNames_12: + switchPublisherNames_13: + switchPublisherNames_14: + switchPublisherNames_15: + switchIcons_0: {fileID: 0} + switchIcons_1: {fileID: 0} + switchIcons_2: {fileID: 0} + switchIcons_3: {fileID: 0} + switchIcons_4: {fileID: 0} + switchIcons_5: {fileID: 0} + switchIcons_6: {fileID: 0} + switchIcons_7: {fileID: 0} + switchIcons_8: {fileID: 0} + switchIcons_9: {fileID: 0} + switchIcons_10: {fileID: 0} + switchIcons_11: {fileID: 0} + switchIcons_12: {fileID: 0} + switchIcons_13: {fileID: 0} + switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} + switchSmallIcons_0: {fileID: 0} + switchSmallIcons_1: {fileID: 0} + switchSmallIcons_2: {fileID: 0} + switchSmallIcons_3: {fileID: 0} + switchSmallIcons_4: {fileID: 0} + switchSmallIcons_5: {fileID: 0} + switchSmallIcons_6: {fileID: 0} + switchSmallIcons_7: {fileID: 0} + switchSmallIcons_8: {fileID: 0} + switchSmallIcons_9: {fileID: 0} + switchSmallIcons_10: {fileID: 0} + switchSmallIcons_11: {fileID: 0} + switchSmallIcons_12: {fileID: 0} + switchSmallIcons_13: {fileID: 0} + switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} + switchManualHTML: + switchAccessibleURLs: + switchLegalInformation: + switchMainThreadStackSize: 1048576 + switchPresenceGroupId: + switchLogoHandling: 0 + switchReleaseVersion: 0 + switchDisplayVersion: 1.0.0 + switchStartupUserAccount: 0 + switchTouchScreenUsage: 0 + switchSupportedLanguagesMask: 0 + switchLogoType: 0 + switchApplicationErrorCodeCategory: + switchUserAccountSaveDataSize: 0 + switchUserAccountSaveDataJournalSize: 0 + switchApplicationAttribute: 0 + switchCardSpecSize: -1 + switchCardSpecClock: -1 + switchRatingsMask: 0 + switchRatingsInt_0: 0 + switchRatingsInt_1: 0 + switchRatingsInt_2: 0 + switchRatingsInt_3: 0 + switchRatingsInt_4: 0 + switchRatingsInt_5: 0 + switchRatingsInt_6: 0 + switchRatingsInt_7: 0 + switchRatingsInt_8: 0 + switchRatingsInt_9: 0 + switchRatingsInt_10: 0 + switchRatingsInt_11: 0 + switchRatingsInt_12: 0 + switchLocalCommunicationIds_0: + switchLocalCommunicationIds_1: + switchLocalCommunicationIds_2: + switchLocalCommunicationIds_3: + switchLocalCommunicationIds_4: + switchLocalCommunicationIds_5: + switchLocalCommunicationIds_6: + switchLocalCommunicationIds_7: + switchParentalControl: 0 + switchAllowsScreenshot: 1 + switchAllowsVideoCapturing: 1 + switchAllowsRuntimeAddOnContentInstall: 0 + switchDataLossConfirmation: 0 + switchUserAccountLockEnabled: 0 + switchSystemResourceMemory: 16777216 + switchSupportedNpadStyles: 22 + switchNativeFsCacheSize: 32 + switchIsHoldTypeHorizontal: 0 + switchSupportedNpadCount: 8 + switchSocketConfigEnabled: 0 + switchTcpInitialSendBufferSize: 32 + switchTcpInitialReceiveBufferSize: 64 + switchTcpAutoSendBufferSizeMax: 256 + switchTcpAutoReceiveBufferSizeMax: 256 + switchUdpSendBufferSize: 9 + switchUdpReceiveBufferSize: 42 + switchSocketBufferEfficiency: 4 + switchSocketInitializeEnabled: 1 + switchNetworkInterfaceManagerInitializeEnabled: 1 + switchPlayerConnectionEnabled: 1 + switchUseNewStyleFilepaths: 0 + switchUseMicroSleepForYield: 1 + switchEnableRamDiskSupport: 0 + switchMicroSleepForYieldTime: 25 + switchRamDiskSpaceSize: 12 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 11 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutInitialWidth: 1920 + ps4VideoOutBaseModeInitialWidth: 1920 + ps4VideoOutReprojectionRate: 60 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4StartupImagesFolder: + ps4IconImagesFolder: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4PlayTogetherPlayerCount: 0 + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4ProGarlicHeapSize: 2560 + playerPrefsMaxSize: 32768 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + enableApplicationExit: 0 + resetTempFolder: 1 + restrictedAudioUsageRights: 0 + ps4UseResolutionFallback: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4UseLowGarlicFragmentationMode: 1 + ps4SocialScreenEnabled: 0 + ps4ScriptOptimizationLevel: 0 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4PatchDayOne: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4attribExclusiveVR: 0 + ps4disableAutoHideSplash: 0 + ps4videoRecordingFeaturesUsed: 0 + ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4GPU800MHz: 1 + ps4attribEyeToEyeDistanceSettingVR: 0 + ps4IncludedModules: [] + ps4attribVROutputEnabled: 0 + monoEnv: + splashScreenBackgroundSourceLandscape: {fileID: 0} + splashScreenBackgroundSourcePortrait: {fileID: 0} + blurSplashScreenBackground: 1 + spritePackerPolicy: + webGLMemorySize: 16 + webGLExceptionSupport: 1 + webGLNameFilesAsHashes: 0 + webGLDataCaching: 1 + webGLDebugSymbols: 0 + webGLEmscriptenArgs: + webGLModulesDirectory: + webGLTemplate: APPLICATION:Default + webGLAnalyzeBuildSize: 0 + webGLUseEmbeddedResources: 0 + webGLCompressionFormat: 1 + webGLWasmArithmeticExceptions: 0 + webGLLinkerTarget: 1 + webGLThreadsSupport: 0 + webGLDecompressionFallback: 0 + scriptingDefineSymbols: {} + additionalCompilerArguments: {} + platformArchitecture: {} + scriptingBackend: {} + il2cppCompilerConfiguration: {} + managedStrippingLevel: {} + incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 + allowUnsafeCode: 1 + useDeterministicCompilation: 1 + enableRoslynAnalyzers: 1 + additionalIl2CppArgs: + scriptingRuntimeVersion: 1 + gcIncremental: 0 + assemblyVersionValidation: 1 + gcWBarrierValidation: 0 + apiCompatibilityLevelPerPlatform: + Standalone: 3 + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + metroPackageName: Template_3D + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: Template_3D + wsaImages: {} + metroTileShortName: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroSupportStreamingInstall: 0 + metroLastRequiredScene: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 2 + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, + a: 1} + metroSplashScreenUseBackgroundColor: 0 + platformCapabilities: {} + metroTargetDeviceFamilies: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + vcxProjDefaultLanguage: + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOneVersion: 1.0.0.0 + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneLanguage: + - enus + XboxOneCapability: [] + XboxOneGameRating: {} + XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 + XboxOneEnableGPUVariability: 1 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + XboxOneXTitleMemory: 8 + XboxOneOverrideIdentityName: + XboxOneOverrideIdentityPublisher: + vrEditorSettings: {} + cloudServicesEnabled: + UNet: 1 + luminIcon: + m_Name: + m_ModelFolderPath: + m_PortalFolderPath: + luminCert: + m_CertPath: + m_SignPackage: 1 + luminIsChannelApp: 0 + luminVersion: + m_VersionCode: 1 + m_VersionName: + apiCompatibilityLevel: 6 + activeInputHandler: 0 + cloudProjectId: + framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] + projectName: + organizationId: + cloudEnabled: 0 + legacyClampBlendShapeWeights: 0 + playerDataPath: + forceSRGBBlit: 1 + virtualTexturingSupportEnabled: 0 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ProjectVersion.txt b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ProjectVersion.txt new file mode 100644 index 00000000..90d6509f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2021.3.1f1 +m_EditorVersionWithRevision: 2021.3.1f1 (3b70a0754835) diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/QualitySettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/QualitySettings.asset new file mode 100644 index 00000000..7b7658d6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/QualitySettings.asset @@ -0,0 +1,232 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 5 + m_QualitySettings: + - serializedVersion: 2 + name: Very Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.3 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.4 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 16 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Medium + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 0.7 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 64 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: High + pixelLightCount: 2 + shadows: 2 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 256 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Very High + pixelLightCount: 3 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 1024 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Ultra + pixelLightCount: 4 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 2 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4096 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 2 + Lumin: 5 + Nintendo 3DS: 5 + Nintendo Switch: 5 + PS4: 5 + PSP2: 2 + Stadia: 5 + Standalone: 5 + WebGL: 3 + Windows Store Apps: 5 + XboxOne: 5 + iPhone: 2 + tvOS: 2 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/TagManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/TagManager.asset new file mode 100644 index 00000000..1c92a784 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/TimeManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/TimeManager.asset new file mode 100644 index 00000000..558a017e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/TimeManager.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: 0.02 + Maximum Allowed Timestep: 0.33333334 + m_TimeScale: 1 + Maximum Particle Timestep: 0.03 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/UnityConnectSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 00000000..fa0b1465 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 1 + m_Enabled: 0 + m_TestMode: 0 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events + m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_TestInitMode: 0 + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com + m_Enabled: 0 + m_LogBufferSize: 10 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_TestMode: 0 + m_InitializeOnStartup: 1 + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_IosGameId: + m_AndroidGameId: + m_GameIds: {} + m_GameId: + PerformanceReportingSettings: + m_Enabled: 0 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/VFXManager.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/VFXManager.asset new file mode 100644 index 00000000..3a95c98b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/VFXManager.asset @@ -0,0 +1,12 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/VersionControlSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 00000000..dca28814 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/XRSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/XRSettings.asset new file mode 100644 index 00000000..482590c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/boot.config b/luban_examples/Projects/Csharp_Unity_Editor_json/ProjectSettings/boot.config new file mode 100644 index 00000000..e69de29b diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/UserSettings/EditorUserSettings.asset b/luban_examples/Projects/Csharp_Unity_Editor_json/UserSettings/EditorUserSettings.asset new file mode 100644 index 00000000..ac29ceac --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/UserSettings/EditorUserSettings.asset @@ -0,0 +1,28 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!162 &1 +EditorUserSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_ConfigSettings: + RecentlyUsedSceneGuid-0: + value: 050503070453505d5c585a7111740744144f1b73297b723128284d64e6b76539 + flags: 0 + vcSharedLogLevel: + value: 0d5e400f0650 + flags: 0 + m_VCAutomaticAdd: 1 + m_VCDebugCom: 0 + m_VCDebugCmd: 0 + m_VCDebugOut: 0 + m_SemanticMergeMode: 2 + m_DesiredImportWorkerCount: 5 + m_StandbyImportWorkerCount: 2 + m_IdleImportWorkerShutdownDelay: 60000 + m_VCShowFailedCheckout: 1 + m_VCOverwriteFailedCheckoutAssets: 1 + m_VCProjectOverlayIcons: 1 + m_VCHierarchyOverlayIcons: 1 + m_VCOtherOverlayIcons: 1 + m_VCAllowAsyncUpdate: 0 + m_ArtifactGarbageCollection: 1 diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/UserSettings/Layouts/default-2021.dwlt b/luban_examples/Projects/Csharp_Unity_Editor_json/UserSettings/Layouts/default-2021.dwlt new file mode 100644 index 00000000..8844e5c5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/UserSettings/Layouts/default-2021.dwlt @@ -0,0 +1,947 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_PixelRect: + serializedVersion: 2 + x: 2804 + y: 186 + width: 1629 + height: 957 + m_ShowMode: 4 + m_Title: Scene + m_RootView: {fileID: 6} + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_Maximized: 0 +--- !u!114 &2 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 9} + - {fileID: 3} + m_Position: + serializedVersion: 2 + x: 0 + y: 30 + width: 1629 + height: 907 + m_MinSize: {x: 300, y: 200} + m_MaxSize: {x: 24288, y: 16192} + vertical: 0 + controlID: 21 +--- !u!114 &3 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 1245 + y: 0 + width: 384 + height: 907 + m_MinSize: {x: 276, y: 71} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 13} + m_Panes: + - {fileID: 13} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &4 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 307 + height: 537 + m_MinSize: {x: 201, y: 221} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 14} + m_Panes: + - {fileID: 14} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &5 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: ConsoleWindow + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 537 + width: 1245 + height: 370 + m_MinSize: {x: 101, y: 121} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 17} + m_Panes: + - {fileID: 12} + - {fileID: 17} + m_Selected: 1 + m_LastSelected: 0 +--- !u!114 &6 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 7} + - {fileID: 2} + - {fileID: 8} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1629 + height: 957 + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_UseTopView: 1 + m_TopViewHeight: 30 + m_UseBottomView: 1 + m_BottomViewHeight: 20 +--- !u!114 &7 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1629 + height: 30 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} + m_LastLoadedLayoutName: +--- !u!114 &8 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 937 + width: 1629 + height: 20 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} +--- !u!114 &9 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 10} + - {fileID: 5} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1245 + height: 907 + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 16192, y: 16192} + vertical: 1 + controlID: 27 +--- !u!114 &10 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 4} + - {fileID: 11} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1245 + height: 537 + m_MinSize: {x: 200, y: 100} + m_MaxSize: {x: 16192, y: 8096} + vertical: 0 + controlID: 28 +--- !u!114 &11 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: SceneView + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 307 + y: 0 + width: 938 + height: 537 + m_MinSize: {x: 202, y: 221} + m_MaxSize: {x: 4002, y: 4021} + m_ActualView: {fileID: 15} + m_Panes: + - {fileID: 15} + - {fileID: 16} + m_Selected: 0 + m_LastSelected: 1 +--- !u!114 &12 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 230, y: 250} + m_MaxSize: {x: 10000, y: 10000} + m_TitleContent: + m_Text: Project + m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2804 + y: 753 + width: 1244 + height: 349 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_SearchFilter: + m_NameFilter: + m_ClassNames: [] + m_AssetLabels: [] + m_AssetBundleNames: [] + m_VersionControlStates: [] + m_SoftLockControlStates: [] + m_ReferencingInstanceIDs: + m_SceneHandles: + m_ShowAllHits: 0 + m_SkipHidden: 0 + m_SearchArea: 1 + m_Folders: + - Assets + m_Globs: [] + m_OriginalText: + m_ViewMode: 1 + m_StartGridSize: 64 + m_LastFolders: + - Assets + m_LastFoldersGridSize: -1 + m_LastProjectPath: D:\workspace2\luban_examples\Projects\Csharp_Unity_Editor_json + m_LockTracker: + m_IsLocked: 0 + m_FolderTreeState: + scrollPos: {x: 0, y: 43} + m_SelectedIDs: 427d0000 + m_LastClickedID: 32066 + m_ExpandedIDs: 00000000427d0000fc7d000000ca9a3bffffff7f + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_AssetTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_ListAreaState: + m_SelectedInstanceIDs: 40cbffff + m_LastClickedInstanceID: -13504 + m_HadKeyboardFocusLastEvent: 0 + m_ExpandedInstanceIDs: c6230000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 11} + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_NewAssetIndexInList: -1 + m_ScrollPosition: {x: 0, y: 0} + m_GridSize: 64 + m_SkipHiddenPackages: 0 + m_DirectoriesAreaWidth: 207 +--- !u!114 &13 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 275, y: 50} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Inspector + m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 4049 + y: 216 + width: 383 + height: 886 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_ObjectsLockedBeforeSerialization: [] + m_InstanceIDsLockedBeforeSerialization: + m_PreviewResizer: + m_CachedPref: 160 + m_ControlHash: -371814159 + m_PrefName: Preview_InspectorPreview + m_LastInspectedObjectInstanceID: -1 + m_LastVerticalScrollValue: 0 + m_GlobalObjectId: + m_InspectorMode: 0 + m_LockTracker: + m_IsLocked: 0 + m_PreviewWindow: {fileID: 0} +--- !u!114 &14 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Hierarchy + m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2804 + y: 216 + width: 306 + height: 516 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_SceneHierarchy: + m_TreeViewState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: 7acdfffffcd4ffff + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 0 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_ExpandedScenes: [] + m_CurrenRootInstanceID: 0 + m_LockTracker: + m_IsLocked: 0 + m_CurrentSortingName: TransformSorting + m_WindowGUID: 4c969a2b90040154d917609493e03593 +--- !u!114 &15 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Scene + m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 3111 + y: 216 + width: 936 + height: 516 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: + - dockPosition: 0 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: -101, y: -26} + snapCorner: 3 + id: Tool Settings + index: 0 + layout: 1 + - dockPosition: 0 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: -141, y: 149} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 1 + id: unity-grid-and-snap-toolbar + index: 1 + layout: 1 + - dockPosition: 1 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: unity-scene-view-toolbar + index: 0 + layout: 1 + - dockPosition: 1 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 1 + id: unity-search-toolbar + index: 1 + layout: 1 + - dockPosition: 0 + containerId: overlay-container--left + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: unity-transform-toolbar + index: 0 + layout: 2 + - dockPosition: 0 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 67.5, y: 86} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Orientation + index: 0 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Light Settings + index: 0 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Camera + index: 1 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Cloth Constraints + index: 2 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Cloth Collisions + index: 3 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Navmesh Display + index: 4 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Agent Display + index: 5 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Obstacle Display + index: 6 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Occlusion Culling + index: 7 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Physics Debugger + index: 8 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Scene Visibility + index: 9 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Particles + index: 10 + layout: 4 + m_WindowGUID: cc27987af1a868c49b0894db9c0f5429 + m_Gizmos: 1 + m_OverrideSceneCullingMask: 6917529027641081856 + m_SceneIsLit: 1 + m_SceneLighting: 1 + m_2DMode: 0 + m_isRotationLocked: 0 + m_PlayAudio: 0 + m_AudioPlay: 0 + m_Position: + m_Target: {x: 0, y: 0, z: 0} + speed: 2 + m_Value: {x: 0, y: 0, z: 0} + m_RenderMode: 0 + m_CameraMode: + drawMode: 0 + name: Shaded + section: Shading Mode + m_ValidateTrueMetals: 0 + m_DoValidateTrueMetals: 0 + m_ExposureSliderValue: 0 + m_SceneViewState: + m_AlwaysRefresh: 0 + showFog: 1 + showSkybox: 1 + showFlares: 1 + showImageEffects: 1 + showParticleSystems: 1 + showVisualEffectGraphs: 1 + m_FxEnabled: 1 + m_Grid: + xGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + yGrid: + m_Fade: + m_Target: 1 + speed: 2 + m_Value: 1 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 1, y: 1} + zGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + m_ShowGrid: 1 + m_GridAxis: 1 + m_gridOpacity: 0.5 + m_Rotation: + m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + speed: 2 + m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + m_Size: + m_Target: 10 + speed: 2 + m_Value: 10 + m_Ortho: + m_Target: 0 + speed: 2 + m_Value: 0 + m_CameraSettings: + m_Speed: 1 + m_SpeedNormalized: 0.5 + m_SpeedMin: 0.001 + m_SpeedMax: 2 + m_EasingEnabled: 1 + m_EasingDuration: 0.4 + m_AccelerationEnabled: 1 + m_FieldOfViewHorizontalOrVertical: 60 + m_NearClip: 0.03 + m_FarClip: 10000 + m_DynamicClip: 1 + m_OcclusionCulling: 0 + m_LastSceneViewRotation: {x: 0, y: 0, z: 0, w: 0} + m_LastSceneViewOrtho: 0 + m_ReplacementShader: {fileID: 0} + m_ReplacementString: + m_SceneVisActive: 1 + m_LastLockedObject: {fileID: 0} + m_ViewIsLockedToObject: 0 +--- !u!114 &16 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Game + m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 3111 + y: 216 + width: 936 + height: 516 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_SerializedViewNames: [] + m_SerializedViewValues: [] + m_PlayModeViewName: GameView + m_ShowGizmos: 0 + m_TargetDisplay: 0 + m_ClearColor: {r: 0, g: 0, b: 0, a: 0} + m_TargetSize: {x: 936, y: 495} + m_TextureFilterMode: 0 + m_TextureHideFlags: 61 + m_RenderIMGUI: 1 + m_EnterPlayModeBehavior: 0 + m_UseMipMap: 0 + m_VSyncEnabled: 0 + m_Gizmos: 0 + m_Stats: 0 + m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000 + m_ZoomArea: + m_HRangeLocked: 0 + m_VRangeLocked: 0 + hZoomLockedByDefault: 0 + vZoomLockedByDefault: 0 + m_HBaseRangeMin: -468 + m_HBaseRangeMax: 468 + m_VBaseRangeMin: -247.5 + m_VBaseRangeMax: 247.5 + m_HAllowExceedBaseRangeMin: 1 + m_HAllowExceedBaseRangeMax: 1 + m_VAllowExceedBaseRangeMin: 1 + m_VAllowExceedBaseRangeMax: 1 + m_ScaleWithWindow: 0 + m_HSlider: 0 + m_VSlider: 0 + m_IgnoreScrollWheelUntilClicked: 0 + m_EnableMouseInput: 0 + m_EnableSliderZoomHorizontal: 0 + m_EnableSliderZoomVertical: 0 + m_UniformScale: 1 + m_UpDirection: 1 + m_DrawArea: + serializedVersion: 2 + x: 0 + y: 21 + width: 936 + height: 495 + m_Scale: {x: 1, y: 1} + m_Translation: {x: 468, y: 247.5} + m_MarginLeft: 0 + m_MarginRight: 0 + m_MarginTop: 0 + m_MarginBottom: 0 + m_LastShownAreaInsideMargins: + serializedVersion: 2 + x: -468 + y: -247.5 + width: 936 + height: 495 + m_MinimalGUI: 1 + m_defaultScale: 1 + m_LastWindowPixelSize: {x: 936, y: 516} + m_ClearInEditMode: 1 + m_NoCameraWarning: 1 + m_LowResolutionForAspectRatios: 01000000000000000000 + m_XRRenderMode: 0 + m_RenderTexture: {fileID: 0} +--- !u!114 &17 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Console + m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2804 + y: 753 + width: 1244 + height: 349 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/a1.json b/luban_examples/Projects/Csharp_Unity_Editor_json/a1.json new file mode 100644 index 00000000..714ab483 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/a1.json @@ -0,0 +1 @@ +{"$type":"test.DemoType2","x4":11223344,"x1":true,"x2":12,"x3":1384,"x5":12345678901234,"x6":1.5,"x7":1.2345678,"x8_0":1122,"x8":12345,"x9":11223344,"x10":"walon","x12":{"$type":"test.DemoType1","x1":12},"x13":5,"x14":{"$type":"test.DemoD2","x1":1,"x2":2},"s1":{"key":"/axx/key1","text":"hello"},"v2":{"x":1,"y":2},"v3":{"x":2,"y":3,"z":4},"v4":{"x":1,"y":2,"z":3,"w":4},"t1":"2000-01-01 10:10:10","k1":[1,2,3],"k2":[2,3,4],"k5":[1,2],"k8":[[1,10],[2,20]],"k9":[{"$type":"test.DemoE2","y1":1,"y2":false},{"$type":"test.DemoE2","y1":2,"y2":true}],"k15":[{"$type":"test.DemoD2","x1":11,"x2":22},{"$type":"test.DemoE1","x1":12,"x3":32,"x4":5}]} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/a2.json b/luban_examples/Projects/Csharp_Unity_Editor_json/a2.json new file mode 100644 index 00000000..714ab483 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/a2.json @@ -0,0 +1 @@ +{"$type":"test.DemoType2","x4":11223344,"x1":true,"x2":12,"x3":1384,"x5":12345678901234,"x6":1.5,"x7":1.2345678,"x8_0":1122,"x8":12345,"x9":11223344,"x10":"walon","x12":{"$type":"test.DemoType1","x1":12},"x13":5,"x14":{"$type":"test.DemoD2","x1":1,"x2":2},"s1":{"key":"/axx/key1","text":"hello"},"v2":{"x":1,"y":2},"v3":{"x":2,"y":3,"z":4},"v4":{"x":1,"y":2,"z":3,"w":4},"t1":"2000-01-01 10:10:10","k1":[1,2,3],"k2":[2,3,4],"k5":[1,2],"k8":[[1,10],[2,20]],"k9":[{"$type":"test.DemoE2","y1":1,"y2":false},{"$type":"test.DemoE2","y1":2,"y2":true}],"k15":[{"$type":"test.DemoD2","x1":11,"x2":22},{"$type":"test.DemoE1","x1":12,"x3":32,"x4":5}]} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/d1.json b/luban_examples/Projects/Csharp_Unity_Editor_json/d1.json new file mode 100644 index 00000000..d5502103 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/d1.json @@ -0,0 +1 @@ +{"$type":"DemoD2", "x1":10, "x2":20} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/d2.json b/luban_examples/Projects/Csharp_Unity_Editor_json/d2.json new file mode 100644 index 00000000..3171240c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/d2.json @@ -0,0 +1 @@ +{"$type":"test.DemoD2","x1":10,"x2":20} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_Editor_json/gen.bat b/luban_examples/Projects/Csharp_Unity_Editor_json/gen.bat new file mode 100644 index 00000000..e3a979ed --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_Editor_json/gen.bat @@ -0,0 +1,14 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c cs-editor-json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Assets/Gen ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/.vsconfig b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/.vsconfig new file mode 100644 index 00000000..d70cd98b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/.vsconfig @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Workload.ManagedGame" + ] +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assembly-CSharp.csproj b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assembly-CSharp.csproj new file mode 100644 index 00000000..200a58f3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assembly-CSharp.csproj @@ -0,0 +1,951 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {CD8C9303-404B-FB8D-6B9B-21988D5CAC0A} + Library + Properties + Assembly-CSharp + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2022_3_2;UNITY_2022_3;UNITY_2022;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;UNITY_2022_1_OR_NEWER;UNITY_2022_2_OR_NEWER;UNITY_2022_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_EDITOR_GAME_SERVICES;ENABLE_UNITY_GAME_SERVICES_ANALYTICS_SUPPORT;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_GENERATE_NATIVE_PLUGINS_FOR_ASSEMBLIES_API;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;ENABLE_NAVIGATION_PACKAGE_DEBUG_VISUALIZATION;ENABLE_NAVIGATION_HEIGHTMESH_RUNTIME_SUPPORT;ENABLE_NAVIGATION_UI_REQUIRES_PACKAGE;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;PLATFORM_INITIALIZES_MEMORY_MANAGER_EXPLICITLY;ENABLE_MONO;NET_STANDARD_2_0;NET_STANDARD;NET_STANDARD_2_1;NETSTANDARD;NETSTANDARD2_1;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;TEXTCORE_FONT_ENGINE_1_5_OR_NEWER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.18 + Game:1 + StandaloneWindows64:19 + 2022.3.2f1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ContentLoadModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.PropertiesModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsCommonModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.EditorToolbarModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.PresetsUIModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneViewModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + Library\PackageCache\com.unity.testtools.codecoverage@1.2.4\lib\ReportGenerator\ReportGeneratorMerged.dll + + + Library\PackageCache\com.unity.visualscripting@1.8.0\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.GradleProject.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\ref\2.1.0\netstandard.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\Microsoft.Win32.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.AppContext.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Buffers.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Collections.Concurrent.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Collections.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Collections.NonGeneric.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Collections.Specialized.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.ComponentModel.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.ComponentModel.EventBasedAsync.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.ComponentModel.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.ComponentModel.TypeConverter.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Console.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Data.Common.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.Contracts.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.Debug.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.FileVersionInfo.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.Process.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.StackTrace.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.TextWriterTraceListener.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.Tools.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.TraceSource.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Diagnostics.Tracing.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Drawing.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Dynamic.Runtime.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Globalization.Calendars.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Globalization.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Globalization.Extensions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.Compression.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.Compression.ZipFile.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.FileSystem.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.FileSystem.DriveInfo.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.FileSystem.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.FileSystem.Watcher.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.IsolatedStorage.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.MemoryMappedFiles.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.Pipes.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.IO.UnmanagedMemoryStream.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Linq.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Linq.Expressions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Linq.Parallel.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Linq.Queryable.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Memory.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.Http.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.NameResolution.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.NetworkInformation.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.Ping.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.Requests.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.Security.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.Sockets.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.WebHeaderCollection.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.WebSockets.Client.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Net.WebSockets.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Numerics.Vectors.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.ObjectModel.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Reflection.DispatchProxy.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Reflection.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Reflection.Emit.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Reflection.Emit.ILGeneration.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Reflection.Emit.Lightweight.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Reflection.Extensions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Reflection.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Resources.Reader.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Resources.ResourceManager.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Resources.Writer.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.CompilerServices.VisualC.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.Extensions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.Handles.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.InteropServices.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.InteropServices.RuntimeInformation.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.Numerics.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.Serialization.Formatters.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.Serialization.Json.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.Serialization.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Runtime.Serialization.Xml.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.Claims.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.Cryptography.Algorithms.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.Cryptography.Csp.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.Cryptography.Encoding.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.Cryptography.Primitives.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.Cryptography.X509Certificates.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.Principal.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Security.SecureString.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Text.Encoding.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Text.Encoding.Extensions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Text.RegularExpressions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.Overlapped.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.Tasks.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.Tasks.Extensions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.Tasks.Parallel.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.Thread.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.ThreadPool.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Threading.Timer.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.ValueTuple.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Xml.ReaderWriter.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Xml.XDocument.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Xml.XmlDocument.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Xml.XmlSerializer.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Xml.XPath.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netstandard\System.Xml.XPath.XDocument.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\Extensions\2.0.0\System.Runtime.InteropServices.WindowsRuntime.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\mscorlib.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.ComponentModel.Composition.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Core.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Data.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Drawing.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.IO.Compression.FileSystem.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Net.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Numerics.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Runtime.Serialization.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.ServiceModel.Web.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Transactions.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Web.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Windows.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Xml.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Xml.Linq.dll + + + E:\WorkPlace\Unity\Hub\Editor\2022.3.2f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\System.Xml.Serialization.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.TestTools.CodeCoverage.Editor.OpenCover.Mono.Reflection.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\Unity.EditorCoroutines.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.SettingsProvider.Editor.dll + + + Library\ScriptAssemblies\Unity.Performance.Profile-Analyzer.Editor.dll + + + Library\ScriptAssemblies\Unity.TestTools.CodeCoverage.Editor.dll + + + Library\ScriptAssemblies\Unity.TestTools.CodeCoverage.Editor.OpenCover.Model.dll + + + Library\ScriptAssemblies\Unity.PlasticSCM.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Shared.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.Editor.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.Editor.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ConfigManager.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ConfigManager.cs new file mode 100644 index 00000000..45c2d9e0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ConfigManager.cs @@ -0,0 +1,44 @@ +using cfg; +using Luban; +using System.Collections.Generic; +using System.IO; +using UnityEngine; + +public class ConfigManager +{ + public static Tables tables; + private static byte[] BUFFER = new byte[1024 * 1024 * 10]; + private static Dictionary fileStreams; + public static void LoadTables() + { + fileStreams = new Dictionary(Tables.TABLE_COUNT / 2); + tables = new cfg.Tables(LoadOffsetByteBuf, ByteBufLoader); + } + public static void Dispose() + { + foreach (var fs in fileStreams.Values) + { + fs.Dispose(); + } + fileStreams.Clear(); + } + private static ByteBuf LoadOffsetByteBuf(string file) + { + var a = File.ReadAllBytes($"{Application.streamingAssetsPath}/Config/offset/{file}.bytes"); + return new ByteBuf(a); + } + + //注意: 安卓平台和WebGL平台不能读取StreamingAssetsPath下的文件,这里只提供思路,可以根据各自项目情况作出调整 + private static ByteBuf ByteBufLoader(string file, int offset, int length) + { + if (!fileStreams.TryGetValue(file, out var fs)) + { + fs = new FileStream($"{Application.streamingAssetsPath}/Config/bin/{file}.bytes", FileMode.Open); + fileStreams.Add(file, fs); + } + fs.Seek(offset, SeekOrigin.Begin); + fs.Read(BUFFER, 0, length); + var buf = new ByteBuf(BUFFER, 0, length); + return buf; + } +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ConfigManager.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ConfigManager.cs.meta new file mode 100644 index 00000000..feb6db1c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ConfigManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 78b9f8e2831d97f479b392b497ff4eb7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ExternalTypeUtil.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ExternalTypeUtil.cs new file mode 100644 index 00000000..aa44a253 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ExternalTypeUtil.cs @@ -0,0 +1,17 @@ +public static class ExternalTypeUtil +{ + public static UnityEngine.Vector2 NewVector2(cfg.vec2 v) + { + return new UnityEngine.Vector2(v.X, v.Y); + } + + public static UnityEngine.Vector3 NewVector3(cfg.vec3 v) + { + return new UnityEngine.Vector3(v.X, v.Y, v.Z); + } + + public static UnityEngine.Vector4 NewVector4(cfg.vec4 v) + { + return new UnityEngine.Vector4(v.X, v.Y, v.Z, v.W); + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ExternalTypeUtil.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ExternalTypeUtil.cs.meta new file mode 100644 index 00000000..39a8616a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/ExternalTypeUtil.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a50f5f657d0b0624e8380c3bda3d63f4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen.meta new file mode 100644 index 00000000..9e1450a8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7c0cdede3ee9eaf4d9651c566ca7f4ea +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/AudioType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/AudioType.cs new file mode 100644 index 00000000..3ac4c0e7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/AudioType.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/AudioType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/AudioType.cs.meta new file mode 100644 index 00000000..51b78c68 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/AudioType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 922d25ab53823e843b46e732002c5604 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/DefineFromExcel2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..0313baa8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/DefineFromExcel2.cs @@ -0,0 +1,119 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg +{ + public sealed partial class DefineFromExcel2 : Luban.BeanBase + { + public DefineFromExcel2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X8 = _buf.ReadInt(); + X10 = _buf.ReadString(); + X13 = (test.DemoEnum)_buf.ReadInt(); + X132 = (test.DemoFlag)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + X15 = test.Shape.DeserializeShape(_buf); + V2 = vec2.Deserializevec2(_buf); + T1 = _buf.ReadLong(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K10 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { vec3 _e0; _e0 = vec3.Deserializevec3(_buf); K10.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K11 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { vec4 _e0; _e0 = vec4.Deserializevec4(_buf); K11.Add(_e0);}} + } + + public static DefineFromExcel2 DeserializeDefineFromExcel2(ByteBuf _buf) + { + return new DefineFromExcel2(_buf); + } + + /// + /// 这是id + /// + public readonly int Id; + /// + /// 字段x1 + /// + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly int X8; + public readonly string X10; + public readonly test.DemoEnum X13; + public readonly test.DemoFlag X132; + public readonly test.DemoDynamic X14; + public readonly test.Shape X15; + public readonly vec2 V2; + public readonly long T1; + public readonly int[] K1; + public readonly int[] K2; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly System.Collections.Generic.List K10; + public readonly System.Collections.Generic.List K11; + + public const int __ID__ = 482045152; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + X14?.ResolveRef(tables); + X15?.ResolveRef(tables); + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x8:" + X8 + "," + + "x10:" + X10 + "," + + "x13:" + X13 + "," + + "x132:" + X132 + "," + + "x14:" + X14 + "," + + "x15:" + X15 + "," + + "v2:" + V2 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k10:" + Luban.StringUtil.CollectionToString(K10) + "," + + "k11:" + Luban.StringUtil.CollectionToString(K11) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/DefineFromExcel2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/DefineFromExcel2.cs.meta new file mode 100644 index 00000000..f7788ed4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/DefineFromExcel2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd6a74f5d8eb4244698578916ba4f584 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/Tables.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/Tables.cs new file mode 100644 index 00000000..9f9cf2b0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/Tables.cs @@ -0,0 +1,188 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + +namespace cfg +{ + public partial class Tables + { + + + public ai.TbBlackboard TbBlackboard {get; } + + public ai.TbBehaviorTree TbBehaviorTree {get; } + + public common.TbGlobalConfig TbGlobalConfig {get; } + + /// + /// 道具表 + /// + public item.TbItem TbItem {get; } + + public l10n.TbL10NDemo TbL10NDemo {get; } + + public l10n.TbPatchDemo TbPatchDemo {get; } + + public tag.TbTestTag TbTestTag {get; } + + public test.TbFullTypes TbFullTypes {get; } + + public test.TbSingleton TbSingleton {get; } + + public test.TbNotIndexList TbNotIndexList {get; } + + public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; } + + public test.TbMultiIndexList TbMultiIndexList {get; } + + public test.TbDataFromMisc TbDataFromMisc {get; } + + public test.TbMultiRowRecord TbMultiRowRecord {get; } + + public test.TbTestMultiColumn TbTestMultiColumn {get; } + + public test.TbMultiRowTitle TbMultiRowTitle {get; } + + public test.TbTestNull TbTestNull {get; } + + public test.TbDemoPrimitive TbDemoPrimitive {get; } + + public test.TbTestString TbTestString {get; } + + public test.TbDemoGroup TbDemoGroup {get; } + + public test.TbDemoGroup_C TbDemoGroupC {get; } + + public test.TbTestGlobal TbTestGlobal {get; } + + public test.TbTestBeRef TbTestBeRef {get; } + + public test.TbTestBeRef2 TbTestBeRef2 {get; } + + public test.TbTestRef TbTestRef {get; } + + public test.TbTestSize TbTestSize {get; } + + public test.TbTestSet TbTestSet {get; } + + public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; } + + public test.TbItem2 TbItem2 {get; } + + public test.TbTestIndex TbTestIndex {get; } + + public test.TbTestMap TbTestMap {get; } + + public test.TbExcelFromJson TbExcelFromJson {get; } + + public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; } + + public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; } + + public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; } + + public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; } + + public test.TbTestScriptableObject TbTestScriptableObject {get; } + + public test.TbTestMapper TbTestMapper {get; } + + public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; } + public static readonly int TABLE_COUNT = 39; + + public Tables(System.Func offsetLoader, System.Func byteBufLoader) + { + TbBlackboard = new ai.TbBlackboard(offsetLoader("ai_tbblackboard"), "ai_tbblackboard", byteBufLoader); + TbBehaviorTree = new ai.TbBehaviorTree(offsetLoader("ai_tbbehaviortree"), "ai_tbbehaviortree", byteBufLoader); + TbGlobalConfig = new common.TbGlobalConfig(offsetLoader("common_tbglobalconfig"), "common_tbglobalconfig", byteBufLoader); + TbItem = new item.TbItem(offsetLoader("item_tbitem"), "item_tbitem", byteBufLoader); + TbL10NDemo = new l10n.TbL10NDemo(offsetLoader("l10n_tbl10ndemo"), "l10n_tbl10ndemo", byteBufLoader); + TbPatchDemo = new l10n.TbPatchDemo(offsetLoader("l10n_tbpatchdemo"), "l10n_tbpatchdemo", byteBufLoader); + TbTestTag = new tag.TbTestTag(offsetLoader("tag_tbtesttag"), "tag_tbtesttag", byteBufLoader); + TbFullTypes = new test.TbFullTypes(offsetLoader("test_tbfulltypes"), "test_tbfulltypes", byteBufLoader); + TbSingleton = new test.TbSingleton(offsetLoader("test_tbsingleton"), "test_tbsingleton", byteBufLoader); + TbNotIndexList = new test.TbNotIndexList(offsetLoader("test_tbnotindexlist"), "test_tbnotindexlist", byteBufLoader); + TbMultiUnionIndexList = new test.TbMultiUnionIndexList(offsetLoader("test_tbmultiunionindexlist"), "test_tbmultiunionindexlist", byteBufLoader); + TbMultiIndexList = new test.TbMultiIndexList(offsetLoader("test_tbmultiindexlist"), "test_tbmultiindexlist", byteBufLoader); + TbDataFromMisc = new test.TbDataFromMisc(offsetLoader("test_tbdatafrommisc"), "test_tbdatafrommisc", byteBufLoader); + TbMultiRowRecord = new test.TbMultiRowRecord(offsetLoader("test_tbmultirowrecord"), "test_tbmultirowrecord", byteBufLoader); + TbTestMultiColumn = new test.TbTestMultiColumn(offsetLoader("test_tbtestmulticolumn"), "test_tbtestmulticolumn", byteBufLoader); + TbMultiRowTitle = new test.TbMultiRowTitle(offsetLoader("test_tbmultirowtitle"), "test_tbmultirowtitle", byteBufLoader); + TbTestNull = new test.TbTestNull(offsetLoader("test_tbtestnull"), "test_tbtestnull", byteBufLoader); + TbDemoPrimitive = new test.TbDemoPrimitive(offsetLoader("test_tbdemoprimitive"), "test_tbdemoprimitive", byteBufLoader); + TbTestString = new test.TbTestString(offsetLoader("test_tbteststring"), "test_tbteststring", byteBufLoader); + TbDemoGroup = new test.TbDemoGroup(offsetLoader("test_tbdemogroup"), "test_tbdemogroup", byteBufLoader); + TbDemoGroupC = new test.TbDemoGroup_C(offsetLoader("test_tbdemogroup_c"), "test_tbdemogroup_c", byteBufLoader); + TbTestGlobal = new test.TbTestGlobal(offsetLoader("test_tbtestglobal"), "test_tbtestglobal", byteBufLoader); + TbTestBeRef = new test.TbTestBeRef(offsetLoader("test_tbtestberef"), "test_tbtestberef", byteBufLoader); + TbTestBeRef2 = new test.TbTestBeRef2(offsetLoader("test_tbtestberef2"), "test_tbtestberef2", byteBufLoader); + TbTestRef = new test.TbTestRef(offsetLoader("test_tbtestref"), "test_tbtestref", byteBufLoader); + TbTestSize = new test.TbTestSize(offsetLoader("test_tbtestsize"), "test_tbtestsize", byteBufLoader); + TbTestSet = new test.TbTestSet(offsetLoader("test_tbtestset"), "test_tbtestset", byteBufLoader); + TbDetectCsvEncoding = new test.TbDetectCsvEncoding(offsetLoader("test_tbdetectcsvencoding"), "test_tbdetectcsvencoding", byteBufLoader); + TbItem2 = new test.TbItem2(offsetLoader("test_tbitem2"), "test_tbitem2", byteBufLoader); + TbTestIndex = new test.TbTestIndex(offsetLoader("test_tbtestindex"), "test_tbtestindex", byteBufLoader); + TbTestMap = new test.TbTestMap(offsetLoader("test_tbtestmap"), "test_tbtestmap", byteBufLoader); + TbExcelFromJson = new test.TbExcelFromJson(offsetLoader("test_tbexcelfromjson"), "test_tbexcelfromjson", byteBufLoader); + TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(offsetLoader("test_tbcompositejsontable1"), "test_tbcompositejsontable1", byteBufLoader); + TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(offsetLoader("test_tbcompositejsontable2"), "test_tbcompositejsontable2", byteBufLoader); + TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(offsetLoader("test_tbcompositejsontable3"), "test_tbcompositejsontable3", byteBufLoader); + TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(offsetLoader("test_tbexcelfromjsonmultirow"), "test_tbexcelfromjsonmultirow", byteBufLoader); + TbTestScriptableObject = new test.TbTestScriptableObject(offsetLoader("test_tbtestscriptableobject"), "test_tbtestscriptableobject", byteBufLoader); + TbTestMapper = new test.TbTestMapper(offsetLoader("test_tbtestmapper"), "test_tbtestmapper", byteBufLoader); + TbDefineFromExcel2 = new test.TbDefineFromExcel2(offsetLoader("test_tbdefinefromexcel2"), "test_tbdefinefromexcel2", byteBufLoader); + ResolveRef(); + } + + private void ResolveRef() + { + TbBlackboard.ResolveRef(this); + TbBehaviorTree.ResolveRef(this); + TbGlobalConfig.ResolveRef(this); + TbItem.ResolveRef(this); + TbL10NDemo.ResolveRef(this); + TbPatchDemo.ResolveRef(this); + TbTestTag.ResolveRef(this); + TbFullTypes.ResolveRef(this); + TbSingleton.ResolveRef(this); + TbNotIndexList.ResolveRef(this); + TbMultiUnionIndexList.ResolveRef(this); + TbMultiIndexList.ResolveRef(this); + TbDataFromMisc.ResolveRef(this); + TbMultiRowRecord.ResolveRef(this); + TbTestMultiColumn.ResolveRef(this); + TbMultiRowTitle.ResolveRef(this); + TbTestNull.ResolveRef(this); + TbDemoPrimitive.ResolveRef(this); + TbTestString.ResolveRef(this); + TbDemoGroup.ResolveRef(this); + TbDemoGroupC.ResolveRef(this); + TbTestGlobal.ResolveRef(this); + TbTestBeRef.ResolveRef(this); + TbTestBeRef2.ResolveRef(this); + TbTestRef.ResolveRef(this); + TbTestSize.ResolveRef(this); + TbTestSet.ResolveRef(this); + TbDetectCsvEncoding.ResolveRef(this); + TbItem2.ResolveRef(this); + TbTestIndex.ResolveRef(this); + TbTestMap.ResolveRef(this); + TbExcelFromJson.ResolveRef(this); + TbCompositeJsonTable1.ResolveRef(this); + TbCompositeJsonTable2.ResolveRef(this); + TbCompositeJsonTable3.ResolveRef(this); + TbExcelFromJsonMultiRow.ResolveRef(this); + TbTestScriptableObject.ResolveRef(this); + TbTestMapper.ResolveRef(this); + TbDefineFromExcel2.ResolveRef(this); + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/Tables.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/Tables.cs.meta new file mode 100644 index 00000000..d57f6c8e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/Tables.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 78868a8a945a42e4e91f198669f660f4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..d6974795 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BehaviorTree.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class BehaviorTree : Luban.BeanBase + { + public BehaviorTree(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + BlackboardId = _buf.ReadString(); + BlackboardId_Ref = null; + Root = ai.ComposeNode.DeserializeComposeNode(_buf); + } + + public static BehaviorTree DeserializeBehaviorTree(ByteBuf _buf) + { + return new ai.BehaviorTree(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + public readonly string BlackboardId; + public ai.Blackboard BlackboardId_Ref; + public readonly ai.ComposeNode Root; + + public const int __ID__ = 159552822; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId); + Root?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "blackboardId:" + BlackboardId + "," + + "root:" + Root + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BehaviorTree.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BehaviorTree.cs.meta new file mode 100644 index 00000000..184c9637 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BehaviorTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 601b544d7336ff04099feffe5d4ba553 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..088297b7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BinaryOperator.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; + + +namespace cfg.ai +{ + public sealed partial class BinaryOperator : ai.KeyQueryOperator + { + public BinaryOperator(ByteBuf _buf) : base(_buf) + { + Oper = (ai.EOperator)_buf.ReadInt(); + Data = ai.KeyData.DeserializeKeyData(_buf); + } + + public static BinaryOperator DeserializeBinaryOperator(ByteBuf _buf) + { + return new ai.BinaryOperator(_buf); + } + + public readonly ai.EOperator Oper; + public readonly ai.KeyData Data; + + public const int __ID__ = -979891605; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + Data?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "oper:" + Oper + "," + + "data:" + Data + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BinaryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BinaryOperator.cs.meta new file mode 100644 index 00000000..c162df6d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BinaryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 399fffa0ccb814a48b1c59e3b49a5f34 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Blackboard.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..21d89d94 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Blackboard.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class Blackboard : Luban.BeanBase + { + public Blackboard(ByteBuf _buf) + { + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + ParentName = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Keys = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.BlackboardKey _e0; _e0 = ai.BlackboardKey.DeserializeBlackboardKey(_buf); Keys.Add(_e0);}} + } + + public static Blackboard DeserializeBlackboard(ByteBuf _buf) + { + return new ai.Blackboard(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly string ParentName; + public readonly System.Collections.Generic.List Keys; + + public const int __ID__ = 1576193005; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + foreach (var _e in Keys) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "parentName:" + ParentName + "," + + "keys:" + Luban.StringUtil.CollectionToString(Keys) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Blackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Blackboard.cs.meta new file mode 100644 index 00000000..dd0cddae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Blackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7c8f002de7c688c40a4f7629c7845515 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..8bfbfc4f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKey.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class BlackboardKey : Luban.BeanBase + { + public BlackboardKey(ByteBuf _buf) + { + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + IsStatic = _buf.ReadBool(); + Type = (ai.EKeyType)_buf.ReadInt(); + TypeClassName = _buf.ReadString(); + } + + public static BlackboardKey DeserializeBlackboardKey(ByteBuf _buf) + { + return new ai.BlackboardKey(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly bool IsStatic; + public readonly ai.EKeyType Type; + public readonly string TypeClassName; + + public const int __ID__ = -511559886; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "isStatic:" + IsStatic + "," + + "type:" + Type + "," + + "typeClassName:" + TypeClassName + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKey.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKey.cs.meta new file mode 100644 index 00000000..ed612363 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKey.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 75ffd434948498547a00c41e49b44e7d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..dd713fbb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKeyData.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; + + +namespace cfg.ai +{ + public sealed partial class BlackboardKeyData : ai.KeyData + { + public BlackboardKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadString(); + } + + public static BlackboardKeyData DeserializeBlackboardKeyData(ByteBuf _buf) + { + return new ai.BlackboardKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = 1517269500; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKeyData.cs.meta new file mode 100644 index 00000000..eed73147 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.BlackboardKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e138ce50f180a304d8a0e6349c931f17 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..bf300b50 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseSkill.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; + + +namespace cfg.ai +{ + public sealed partial class ChooseSkill : ai.Task + { + public ChooseSkill(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + ResultSkillIdKey = _buf.ReadString(); + } + + public static ChooseSkill DeserializeChooseSkill(ByteBuf _buf) + { + return new ai.ChooseSkill(_buf); + } + + public readonly string TargetActorKey; + public readonly string ResultSkillIdKey; + + public const int __ID__ = -918812268; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "resultSkillIdKey:" + ResultSkillIdKey + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseSkill.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseSkill.cs.meta new file mode 100644 index 00000000..13c8561d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseSkill.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7506b46c3cca8444096e606e84c3b3f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..36ba7772 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseTarget.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class ChooseTarget : ai.Service + { + public ChooseTarget(ByteBuf _buf) : base(_buf) + { + ResultTargetKey = _buf.ReadString(); + } + + public static ChooseTarget DeserializeChooseTarget(ByteBuf _buf) + { + return new ai.ChooseTarget(_buf); + } + + public readonly string ResultTargetKey; + + public const int __ID__ = 1601247918; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "resultTargetKey:" + ResultTargetKey + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseTarget.cs.meta new file mode 100644 index 00000000..2df4c1f5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ChooseTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2691d506c2ea33540b844565d4993483 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ComposeNode.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..bb1afce4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ComposeNode.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; + + +namespace cfg.ai +{ + public abstract partial class ComposeNode : ai.FlowNode + { + public ComposeNode(ByteBuf _buf) : base(_buf) + { + } + + public static ComposeNode DeserializeComposeNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ComposeNode.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ComposeNode.cs.meta new file mode 100644 index 00000000..4370a34e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ComposeNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ab8646bd771b70f4e805daa32e166afd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DebugPrint.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..7398c97b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DebugPrint.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class DebugPrint : ai.Task + { + public DebugPrint(ByteBuf _buf) : base(_buf) + { + Text = _buf.ReadString(); + } + + public static DebugPrint DeserializeDebugPrint(ByteBuf _buf) + { + return new ai.DebugPrint(_buf); + } + + public readonly string Text; + + public const int __ID__ = 1357409728; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "text:" + Text + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DebugPrint.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DebugPrint.cs.meta new file mode 100644 index 00000000..0a4d8b43 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DebugPrint.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9441546ed218a79418d655d458a42971 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Decorator.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Decorator.cs new file mode 100644 index 00000000..9d87e630 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Decorator.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public abstract partial class Decorator : ai.Node + { + public Decorator(ByteBuf _buf) : base(_buf) + { + FlowAbortMode = (ai.EFlowAbortMode)_buf.ReadInt(); + } + + public static Decorator DeserializeDecorator(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeLoop.__ID__: return new ai.UeLoop(_buf); + case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf); + case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf); + case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf); + case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf); + case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf); + case ai.DistanceLessThan.__ID__: return new ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public readonly ai.EFlowAbortMode FlowAbortMode; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Decorator.cs.meta new file mode 100644 index 00000000..a9e34af4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dc7f8ec47f3eced47a7855af5346d380 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..6a124e84 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class DistanceLessThan : ai.Decorator + { + public DistanceLessThan(ByteBuf _buf) : base(_buf) + { + Actor1Key = _buf.ReadString(); + Actor2Key = _buf.ReadString(); + Distance = _buf.ReadFloat(); + ReverseResult = _buf.ReadBool(); + } + + public static DistanceLessThan DeserializeDistanceLessThan(ByteBuf _buf) + { + return new ai.DistanceLessThan(_buf); + } + + public readonly string Actor1Key; + public readonly string Actor2Key; + public readonly float Distance; + public readonly bool ReverseResult; + + public const int __ID__ = -1207170283; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "actor1Key:" + Actor1Key + "," + + "actor2Key:" + Actor2Key + "," + + "distance:" + Distance + "," + + "reverseResult:" + ReverseResult + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DistanceLessThan.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DistanceLessThan.cs.meta new file mode 100644 index 00000000..565925a5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.DistanceLessThan.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1f67fd2d73378274aba9ed14088b64a2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EExecutor.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..27ea93ba --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EExecutor.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EExecutor.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EExecutor.cs.meta new file mode 100644 index 00000000..b3f10516 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EExecutor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 334083230b4bd7e48ba2350336ed9557 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFinishMode.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..94a7b4c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFinishMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFinishMode.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFinishMode.cs.meta new file mode 100644 index 00000000..7a362d58 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFinishMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8e1f28ca1a672564faa1e2d5d679a5d4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..6c97a981 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFlowAbortMode.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFlowAbortMode.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFlowAbortMode.cs.meta new file mode 100644 index 00000000..f7a7b40c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EFlowAbortMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 538c41da5079c3a428e719d821b194b8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EKeyType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..97110a59 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EKeyType.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EKeyType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EKeyType.cs.meta new file mode 100644 index 00000000..faf32a84 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EKeyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b61b1005bb4cb01469a59f4f81673f77 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..61d634f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ENotifyObserverMode.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ENotifyObserverMode.cs.meta new file mode 100644 index 00000000..0d1fc38f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ENotifyObserverMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d93923230468ce54cabadde02c66df15 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EOperator.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EOperator.cs new file mode 100644 index 00000000..25aac54d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EOperator.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EOperator.cs.meta new file mode 100644 index 00000000..0799394c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.EOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 51f355fb38f5cba4395ec9a5094f0726 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..f6dbe95d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class ExecuteTimeStatistic : ai.Service + { + public ExecuteTimeStatistic(ByteBuf _buf) : base(_buf) + { + } + + public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(ByteBuf _buf) + { + return new ai.ExecuteTimeStatistic(_buf); + } + + + public const int __ID__ = 990693812; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta new file mode 100644 index 00000000..42458259 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e0f2beb8ff1811a41a4ca24eac8ec653 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..58aa2988 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FloatKeyData.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; + + +namespace cfg.ai +{ + public sealed partial class FloatKeyData : ai.KeyData + { + public FloatKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadFloat(); + } + + public static FloatKeyData DeserializeFloatKeyData(ByteBuf _buf) + { + return new ai.FloatKeyData(_buf); + } + + public readonly float Value; + + public const int __ID__ = -719747885; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FloatKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FloatKeyData.cs.meta new file mode 100644 index 00000000..b19eb874 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FloatKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b8e42b4f1e5706f4ab11683a4128ae09 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FlowNode.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..df8c6aa7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FlowNode.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public abstract partial class FlowNode : ai.Node + { + public FlowNode(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Decorators = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Decorator _e0; _e0 = ai.Decorator.DeserializeDecorator(_buf); Decorators.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Services = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Service _e0; _e0 = ai.Service.DeserializeService(_buf); Services.Add(_e0);}} + } + + public static FlowNode DeserializeFlowNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly System.Collections.Generic.List Decorators; + public readonly System.Collections.Generic.List Services; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Decorators) { _e?.ResolveRef(tables); } + foreach (var _e in Services) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FlowNode.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FlowNode.cs.meta new file mode 100644 index 00000000..b6e73442 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.FlowNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b0a17ec9212ed5446b7d46b71301b4ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..b66fc19b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class GetOwnerPlayer : ai.Service + { + public GetOwnerPlayer(ByteBuf _buf) : base(_buf) + { + PlayerActorKey = _buf.ReadString(); + } + + public static GetOwnerPlayer DeserializeGetOwnerPlayer(ByteBuf _buf) + { + return new ai.GetOwnerPlayer(_buf); + } + + public readonly string PlayerActorKey; + + public const int __ID__ = -999247644; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "playerActorKey:" + PlayerActorKey + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.GetOwnerPlayer.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.GetOwnerPlayer.cs.meta new file mode 100644 index 00000000..008c7675 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.GetOwnerPlayer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 36be8d1526f74bf4fa4b2e728861bd23 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IntKeyData.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..10c16939 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IntKeyData.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; + + +namespace cfg.ai +{ + public sealed partial class IntKeyData : ai.KeyData + { + public IntKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadInt(); + } + + public static IntKeyData DeserializeIntKeyData(ByteBuf _buf) + { + return new ai.IntKeyData(_buf); + } + + public readonly int Value; + + public const int __ID__ = -342751904; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IntKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IntKeyData.cs.meta new file mode 100644 index 00000000..2f286de9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IntKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7c64bb69a36ac7f4abe7a87db9eb47b8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..0e00df99 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsAtLocation.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class IsAtLocation : ai.Decorator + { + public IsAtLocation(ByteBuf _buf) : base(_buf) + { + AcceptableRadius = _buf.ReadFloat(); + KeyboardKey = _buf.ReadString(); + InverseCondition = _buf.ReadBool(); + } + + public static IsAtLocation DeserializeIsAtLocation(ByteBuf _buf) + { + return new ai.IsAtLocation(_buf); + } + + public readonly float AcceptableRadius; + public readonly string KeyboardKey; + public readonly bool InverseCondition; + + public const int __ID__ = 1255972344; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "keyboardKey:" + KeyboardKey + "," + + "inverseCondition:" + InverseCondition + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsAtLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsAtLocation.cs.meta new file mode 100644 index 00000000..68724964 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsAtLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 28bdcb2aa61fab941aa476398a88441b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsNotSet.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..bf7e6957 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsNotSet.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class IsNotSet : ai.KeyQueryOperator + { + public IsNotSet(ByteBuf _buf) : base(_buf) + { + } + + public static IsNotSet DeserializeIsNotSet(ByteBuf _buf) + { + return new ai.IsNotSet(_buf); + } + + + public const int __ID__ = 790736255; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsNotSet.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsNotSet.cs.meta new file mode 100644 index 00000000..9460d193 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsNotSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90089df99e7d18a4fa22dbb03d666275 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsSet.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsSet.cs new file mode 100644 index 00000000..8d69577a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsSet.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class IsSet : ai.KeyQueryOperator + { + public IsSet(ByteBuf _buf) : base(_buf) + { + } + + public static IsSet DeserializeIsSet(ByteBuf _buf) + { + return new ai.IsSet(_buf); + } + + + public const int __ID__ = 1635350898; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsSet.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsSet.cs.meta new file mode 100644 index 00000000..92f2c158 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.IsSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1c9baa711f4ebf948a068dfea9436d50 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..6d91ef98 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class KeepFaceTarget : ai.Service + { + public KeepFaceTarget(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + } + + public static KeepFaceTarget DeserializeKeepFaceTarget(ByteBuf _buf) + { + return new ai.KeepFaceTarget(_buf); + } + + public readonly string TargetActorKey; + + public const int __ID__ = 1195270745; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "targetActorKey:" + TargetActorKey + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeepFaceTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeepFaceTarget.cs.meta new file mode 100644 index 00000000..84aab110 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeepFaceTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 396c88ca754594648868fde5285e2aad +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyData.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyData.cs new file mode 100644 index 00000000..28fd038a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyData.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; + + +namespace cfg.ai +{ + public abstract partial class KeyData : Luban.BeanBase + { + public KeyData(ByteBuf _buf) + { + } + + public static KeyData DeserializeKeyData(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.FloatKeyData.__ID__: return new ai.FloatKeyData(_buf); + case ai.IntKeyData.__ID__: return new ai.IntKeyData(_buf); + case ai.StringKeyData.__ID__: return new ai.StringKeyData(_buf); + case ai.BlackboardKeyData.__ID__: return new ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyData.cs.meta new file mode 100644 index 00000000..9de144c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1340317d9301fd34194f740b4c659085 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..6bff4787 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyQueryOperator.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public abstract partial class KeyQueryOperator : Luban.BeanBase + { + public KeyQueryOperator(ByteBuf _buf) + { + } + + public static KeyQueryOperator DeserializeKeyQueryOperator(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.IsSet.__ID__: return new ai.IsSet(_buf); + case ai.IsNotSet.__ID__: return new ai.IsNotSet(_buf); + case ai.BinaryOperator.__ID__: return new ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyQueryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyQueryOperator.cs.meta new file mode 100644 index 00000000..62771fb2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.KeyQueryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0ed57473b5a9aca43b29a36d6665c49c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..8803b11b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToLocation.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class MoveToLocation : ai.Task + { + public MoveToLocation(ByteBuf _buf) : base(_buf) + { + AcceptableRadius = _buf.ReadFloat(); + } + + public static MoveToLocation DeserializeMoveToLocation(ByteBuf _buf) + { + return new ai.MoveToLocation(_buf); + } + + public readonly float AcceptableRadius; + + public const int __ID__ = -969953113; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToLocation.cs.meta new file mode 100644 index 00000000..54bfe91c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 18850fe12a8713e40ab800298b84bf86 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..83b2402a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToRandomLocation.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; + + +namespace cfg.ai +{ + public sealed partial class MoveToRandomLocation : ai.Task + { + public MoveToRandomLocation(ByteBuf _buf) : base(_buf) + { + OriginPositionKey = _buf.ReadString(); + Radius = _buf.ReadFloat(); + } + + public static MoveToRandomLocation DeserializeMoveToRandomLocation(ByteBuf _buf) + { + return new ai.MoveToRandomLocation(_buf); + } + + public readonly string OriginPositionKey; + public readonly float Radius; + + public const int __ID__ = -2140042998; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "originPositionKey:" + OriginPositionKey + "," + + "radius:" + Radius + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToRandomLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToRandomLocation.cs.meta new file mode 100644 index 00000000..76589911 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToRandomLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 68cba0bb18a9a2d40b3cd628b74cc266 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..211a02ee --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToTarget.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; + + +namespace cfg.ai +{ + public sealed partial class MoveToTarget : ai.Task + { + public MoveToTarget(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + AcceptableRadius = _buf.ReadFloat(); + } + + public static MoveToTarget DeserializeMoveToTarget(ByteBuf _buf) + { + return new ai.MoveToTarget(_buf); + } + + public readonly string TargetActorKey; + public readonly float AcceptableRadius; + + public const int __ID__ = 514987779; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToTarget.cs.meta new file mode 100644 index 00000000..89317f85 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.MoveToTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d1dd606c75787684f8258f458eac5c85 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Node.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Node.cs new file mode 100644 index 00000000..db746384 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Node.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; + + +namespace cfg.ai +{ + public abstract partial class Node : Luban.BeanBase + { + public Node(ByteBuf _buf) + { + Id = _buf.ReadInt(); + NodeName = _buf.ReadString(); + } + + public static Node DeserializeNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf); + case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf); + case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf); + case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf); + case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf); + case ai.UpdateDailyBehaviorProps.__ID__: return new ai.UpdateDailyBehaviorProps(_buf); + case ai.UeLoop.__ID__: return new ai.UeLoop(_buf); + case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf); + case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf); + case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf); + case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf); + case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf); + case ai.DistanceLessThan.__ID__: return new ai.DistanceLessThan(_buf); + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string NodeName; + + + public virtual void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Node.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Node.cs.meta new file mode 100644 index 00000000..3e064710 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Node.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6613531222617364ab0fb6290f2bc032 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Selector.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Selector.cs new file mode 100644 index 00000000..89db9391 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Selector.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; + + +namespace cfg.ai +{ + public sealed partial class Selector : ai.ComposeNode + { + public Selector(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}} + } + + public static Selector DeserializeSelector(ByteBuf _buf) + { + return new ai.Selector(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1946981627; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Selector.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Selector.cs.meta new file mode 100644 index 00000000..c02d2bdc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Selector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fbceb6768758c7d4c81bcce2bff8678f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Sequence.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Sequence.cs new file mode 100644 index 00000000..628a9caa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Sequence.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; + + +namespace cfg.ai +{ + public sealed partial class Sequence : ai.ComposeNode + { + public Sequence(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}} + } + + public static Sequence DeserializeSequence(ByteBuf _buf) + { + return new ai.Sequence(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1789006105; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Sequence.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Sequence.cs.meta new file mode 100644 index 00000000..9f39a31a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Sequence.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ae959bd1a73d0884ca3e90912b20f376 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Service.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Service.cs new file mode 100644 index 00000000..da5348eb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Service.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public abstract partial class Service : ai.Node + { + public Service(ByteBuf _buf) : base(_buf) + { + } + + public static Service DeserializeService(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf); + case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf); + case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf); + case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf); + case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf); + case ai.UpdateDailyBehaviorProps.__ID__: return new ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Service.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Service.cs.meta new file mode 100644 index 00000000..80ee536a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Service.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 38291e0b09c8c73469b5769bf9e34b34 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..53d77657 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.SimpleParallel.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class SimpleParallel : ai.ComposeNode + { + public SimpleParallel(ByteBuf _buf) : base(_buf) + { + FinishMode = (ai.EFinishMode)_buf.ReadInt(); + MainTask = ai.Task.DeserializeTask(_buf); + BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf); + } + + public static SimpleParallel DeserializeSimpleParallel(ByteBuf _buf) + { + return new ai.SimpleParallel(_buf); + } + + public readonly ai.EFinishMode FinishMode; + public readonly ai.Task MainTask; + public readonly ai.FlowNode BackgroundNode; + + public const int __ID__ = -1952582529; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + MainTask?.ResolveRef(tables); + BackgroundNode?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "finishMode:" + FinishMode + "," + + "mainTask:" + MainTask + "," + + "backgroundNode:" + BackgroundNode + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.SimpleParallel.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.SimpleParallel.cs.meta new file mode 100644 index 00000000..206f6b49 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.SimpleParallel.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: febbb40171ba3ce488d7ee4750cbde74 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.StringKeyData.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..d2b6b63c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.StringKeyData.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; + + +namespace cfg.ai +{ + public sealed partial class StringKeyData : ai.KeyData + { + public StringKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadString(); + } + + public static StringKeyData DeserializeStringKeyData(ByteBuf _buf) + { + return new ai.StringKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = -307888654; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.StringKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.StringKeyData.cs.meta new file mode 100644 index 00000000..a5fb50eb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.StringKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6dccb71b2b3fe1c449bf0406529050ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Task.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Task.cs new file mode 100644 index 00000000..fd2876bc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Task.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public abstract partial class Task : ai.FlowNode + { + public Task(ByteBuf _buf) : base(_buf) + { + IgnoreRestartSelf = _buf.ReadBool(); + } + + public static Task DeserializeTask(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly bool IgnoreRestartSelf; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Task.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Task.cs.meta new file mode 100644 index 00000000..091ee158 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.Task.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7cd2534142b7b3f47acd866be52ddde0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBehaviorTree.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBehaviorTree.cs new file mode 100644 index 00000000..282537d3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBehaviorTree.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.ai +{ + public partial class TbBehaviorTree + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbBehaviorTree(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public ai.BehaviorTree GetOrDefault(int key) => this.Get(key) ?? default; + public ai.BehaviorTree Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = ai.BehaviorTree.DeserializeBehaviorTree(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public ai.BehaviorTree this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBehaviorTree.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBehaviorTree.cs.meta new file mode 100644 index 00000000..ac7e936a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBehaviorTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6cd1fb0eb8fd62940aef9cb4b68b25cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBlackboard.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBlackboard.cs new file mode 100644 index 00000000..9f162091 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBlackboard.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.ai +{ + public partial class TbBlackboard + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbBlackboard(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + string key; + key = _buf.ReadString(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public ai.Blackboard GetOrDefault(string key) => this.Get(key) ?? default; + public ai.Blackboard Get(string key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = ai.Blackboard.DeserializeBlackboard(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public ai.Blackboard this[string key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBlackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBlackboard.cs.meta new file mode 100644 index 00000000..19104c34 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.TbBlackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ae379b6adeb44d044bd1b56d81fff3d4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..b17d4eb1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeBlackboard.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UeBlackboard : ai.Decorator + { + public UeBlackboard(ByteBuf _buf) : base(_buf) + { + NotifyObserver = (ai.ENotifyObserverMode)_buf.ReadInt(); + BlackboardKey = _buf.ReadString(); + KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf); + } + + public static UeBlackboard DeserializeUeBlackboard(ByteBuf _buf) + { + return new ai.UeBlackboard(_buf); + } + + public readonly ai.ENotifyObserverMode NotifyObserver; + public readonly string BlackboardKey; + public readonly ai.KeyQueryOperator KeyQuery; + + public const int __ID__ = -315297507; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + KeyQuery?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "notifyObserver:" + NotifyObserver + "," + + "blackboardKey:" + BlackboardKey + "," + + "keyQuery:" + KeyQuery + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeBlackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeBlackboard.cs.meta new file mode 100644 index 00000000..9044d411 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeBlackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2495d8a21d103a24e9082a057cc75061 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeCooldown.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..cccb5681 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeCooldown.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UeCooldown : ai.Decorator + { + public UeCooldown(ByteBuf _buf) : base(_buf) + { + CooldownTime = _buf.ReadFloat(); + } + + public static UeCooldown DeserializeUeCooldown(ByteBuf _buf) + { + return new ai.UeCooldown(_buf); + } + + public readonly float CooldownTime; + + public const int __ID__ = -951439423; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "cooldownTime:" + CooldownTime + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeCooldown.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeCooldown.cs.meta new file mode 100644 index 00000000..63ba6687 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeCooldown.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 53cc4b48cf4fce3459987e8abd378472 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..ba5024f3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeForceSuccess.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UeForceSuccess : ai.Decorator + { + public UeForceSuccess(ByteBuf _buf) : base(_buf) + { + } + + public static UeForceSuccess DeserializeUeForceSuccess(ByteBuf _buf) + { + return new ai.UeForceSuccess(_buf); + } + + + public const int __ID__ = 195054574; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeForceSuccess.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeForceSuccess.cs.meta new file mode 100644 index 00000000..f4a4bb72 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeForceSuccess.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c8a9680bb511e76429e6baa753bdb0b3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeLoop.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..0b2edf7b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeLoop.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UeLoop : ai.Decorator + { + public UeLoop(ByteBuf _buf) : base(_buf) + { + NumLoops = _buf.ReadInt(); + InfiniteLoop = _buf.ReadBool(); + InfiniteLoopTimeoutTime = _buf.ReadFloat(); + } + + public static UeLoop DeserializeUeLoop(ByteBuf _buf) + { + return new ai.UeLoop(_buf); + } + + public readonly int NumLoops; + public readonly bool InfiniteLoop; + public readonly float InfiniteLoopTimeoutTime; + + public const int __ID__ = -513308166; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "numLoops:" + NumLoops + "," + + "infiniteLoop:" + InfiniteLoop + "," + + "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeLoop.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeLoop.cs.meta new file mode 100644 index 00000000..bd3b3aa7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeLoop.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fb86206a24fca1647a9cc7e91e47a72a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..f2993b86 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UeSetDefaultFocus : ai.Service + { + public UeSetDefaultFocus(ByteBuf _buf) : base(_buf) + { + KeyboardKey = _buf.ReadString(); + } + + public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(ByteBuf _buf) + { + return new ai.UeSetDefaultFocus(_buf); + } + + public readonly string KeyboardKey; + + public const int __ID__ = 1812449155; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "keyboardKey:" + KeyboardKey + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeSetDefaultFocus.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeSetDefaultFocus.cs.meta new file mode 100644 index 00000000..b53fbc9e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeSetDefaultFocus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c6ed9646dd95d474dbf1b1ef956761f7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..afe8ea7c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeTimeLimit.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UeTimeLimit : ai.Decorator + { + public UeTimeLimit(ByteBuf _buf) : base(_buf) + { + LimitTime = _buf.ReadFloat(); + } + + public static UeTimeLimit DeserializeUeTimeLimit(ByteBuf _buf) + { + return new ai.UeTimeLimit(_buf); + } + + public readonly float LimitTime; + + public const int __ID__ = 338469720; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "limitTime:" + LimitTime + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeTimeLimit.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeTimeLimit.cs.meta new file mode 100644 index 00000000..419aef39 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeTimeLimit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5ec2d12040f736b418676fdb876df8af +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWait.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWait.cs new file mode 100644 index 00000000..9247a9e4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWait.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; + + +namespace cfg.ai +{ + public sealed partial class UeWait : ai.Task + { + public UeWait(ByteBuf _buf) : base(_buf) + { + WaitTime = _buf.ReadFloat(); + RandomDeviation = _buf.ReadFloat(); + } + + public static UeWait DeserializeUeWait(ByteBuf _buf) + { + return new ai.UeWait(_buf); + } + + public readonly float WaitTime; + public readonly float RandomDeviation; + + public const int __ID__ = -512994101; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "waitTime:" + WaitTime + "," + + "randomDeviation:" + RandomDeviation + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWait.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWait.cs.meta new file mode 100644 index 00000000..1b242185 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWait.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: acc6f4faf31722f418c5a062af5d96d5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..30a68204 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UeWaitBlackboardTime : ai.Task + { + public UeWaitBlackboardTime(ByteBuf _buf) : base(_buf) + { + BlackboardKey = _buf.ReadString(); + } + + public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(ByteBuf _buf) + { + return new ai.UeWaitBlackboardTime(_buf); + } + + public readonly string BlackboardKey; + + public const int __ID__ = 1215378271; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "blackboardKey:" + BlackboardKey + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta new file mode 100644 index 00000000..cdfab939 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fb5ed9908b4838744b3cd2975b6a4ffa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..26fb4f83 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ + public sealed partial class UpdateDailyBehaviorProps : ai.Service + { + public UpdateDailyBehaviorProps(ByteBuf _buf) : base(_buf) + { + SatietyKey = _buf.ReadString(); + EnergyKey = _buf.ReadString(); + MoodKey = _buf.ReadString(); + SatietyLowerThresholdKey = _buf.ReadString(); + SatietyUpperThresholdKey = _buf.ReadString(); + EnergyLowerThresholdKey = _buf.ReadString(); + EnergyUpperThresholdKey = _buf.ReadString(); + MoodLowerThresholdKey = _buf.ReadString(); + MoodUpperThresholdKey = _buf.ReadString(); + } + + public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(ByteBuf _buf) + { + return new ai.UpdateDailyBehaviorProps(_buf); + } + + public readonly string SatietyKey; + public readonly string EnergyKey; + public readonly string MoodKey; + public readonly string SatietyLowerThresholdKey; + public readonly string SatietyUpperThresholdKey; + public readonly string EnergyLowerThresholdKey; + public readonly string EnergyUpperThresholdKey; + public readonly string MoodLowerThresholdKey; + public readonly string MoodUpperThresholdKey; + + public const int __ID__ = -61887372; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "satietyKey:" + SatietyKey + "," + + "energyKey:" + EnergyKey + "," + + "moodKey:" + MoodKey + "," + + "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + "," + + "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + "," + + "energyLowerThresholdKey:" + EnergyLowerThresholdKey + "," + + "energyUpperThresholdKey:" + EnergyUpperThresholdKey + "," + + "moodLowerThresholdKey:" + MoodLowerThresholdKey + "," + + "moodUpperThresholdKey:" + MoodUpperThresholdKey + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta new file mode 100644 index 00000000..dbcacd3b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6cea8ef21c753de4aa408f73bf3e090d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.EBoolOperator.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..4e7f1379 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.EBoolOperator.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.EBoolOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.EBoolOperator.cs.meta new file mode 100644 index 00000000..9525c31a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.EBoolOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d4f91c53a2179d540a90cb198b7ca02c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.GlobalConfig.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..3aecf472 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.GlobalConfig.cs @@ -0,0 +1,72 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.common +{ + public sealed partial class GlobalConfig : Luban.BeanBase + { + public GlobalConfig(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + X2 = _buf.ReadInt(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadInt(); + X5 = _buf.ReadInt(); + X6 = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X7 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X7.Add(_e0);}} + } + + public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf) + { + return new common.GlobalConfig(_buf); + } + + /// + /// 背包容量 + /// + public readonly int X1; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public readonly int X5; + public readonly int X6; + public readonly System.Collections.Generic.List X7; + + public const int __ID__ = -848234488; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.GlobalConfig.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.GlobalConfig.cs.meta new file mode 100644 index 00000000..e707f2f5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.GlobalConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd1fe95ef5a5ea344af828f3e02b8604 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.TbGlobalConfig.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.TbGlobalConfig.cs new file mode 100644 index 00000000..676080da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.TbGlobalConfig.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.common +{ + public partial class TbGlobalConfig + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly common.GlobalConfig _data; + + public TbGlobalConfig(ByteBuf _buf, string fileName, System.Func byteBufLoader) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + ByteBuf dataBuf = byteBufLoader(fileName, offset, length); + _data = common.GlobalConfig.DeserializeGlobalConfig(dataBuf); + } + + + /// + /// 背包容量 + /// + public int X1 => _data.X1; + public int X2 => _data.X2; + public int X3 => _data.X3; + public int X4 => _data.X4; + public int X5 => _data.X5; + public int X6 => _data.X6; + public System.Collections.Generic.List X7 => _data.X7; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } + + public override string ToString() + { + return _data.ToString(); + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.TbGlobalConfig.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.TbGlobalConfig.cs.meta new file mode 100644 index 00000000..60effb5e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/common.TbGlobalConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3e26b0d4c423fd84283a1cc41eafb0d7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..f148097b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersStarQualityType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersStarQualityType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersStarQualityType.cs.meta new file mode 100644 index 00000000..7b183d14 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersStarQualityType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 44aa8cbe670b98047bbabd7c861fd2cd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersTag.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..c7bfd3cb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersTag.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersTag.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersTag.cs.meta new file mode 100644 index 00000000..1dbbe835 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothersTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3f7d65b552d182147928856f21a56308 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..401492ae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesHidePartType.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesHidePartType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesHidePartType.cs.meta new file mode 100644 index 00000000..91c5602a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesHidePartType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d9bb59b9130c0184182f38851cf451c3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..b0b224b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesPropertyType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesPropertyType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesPropertyType.cs.meta new file mode 100644 index 00000000..39026370 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EClothesPropertyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 53d895db4164ec540b34bd21041fb880 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.ECurrencyType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..7dfcba3c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.ECurrencyType.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.ECurrencyType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.ECurrencyType.cs.meta new file mode 100644 index 00000000..a9bc4cfa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.ECurrencyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9e2a471f2ad472c43af7d10bc417a28a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EItemQuality.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..74fcfbf2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EItemQuality.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// 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 EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EItemQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EItemQuality.cs.meta new file mode 100644 index 00000000..f17a8515 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EItemQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 82b65e74f66d47046ac14a4ace962560 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMajorType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMajorType.cs new file mode 100644 index 00000000..c19157ce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMajorType.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMajorType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMajorType.cs.meta new file mode 100644 index 00000000..ea67c8ca --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMajorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5ec80bfb2aa490e46962efdc1f0f93c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMinorType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMinorType.cs new file mode 100644 index 00000000..936a15ab --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMinorType.cs @@ -0,0 +1,215 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMinorType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMinorType.cs.meta new file mode 100644 index 00000000..59147665 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EMinorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 51da117f16385aa43a13f5f2ed47c5bc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EUseType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EUseType.cs new file mode 100644 index 00000000..20f635dd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EUseType.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EUseType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EUseType.cs.meta new file mode 100644 index 00000000..cabb300c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.EUseType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f95e99760ff52d43b486591652d7fbb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.Item.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.Item.cs new file mode 100644 index 00000000..9dcd411b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.Item.cs @@ -0,0 +1,87 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.item +{ + /// + /// 道具 + /// + public sealed partial class Item : Luban.BeanBase + { + public Item(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + MajorType = (item.EMajorType)_buf.ReadInt(); + MinorType = (item.EMinorType)_buf.ReadInt(); + Quality = (item.EItemQuality)_buf.ReadInt(); + Icon = _buf.ReadString(); + IconBackgroud = _buf.ReadString(); + IconMask = _buf.ReadString(); + Desc = _buf.ReadString(); + ShowOrder = _buf.ReadInt(); + } + + public static Item DeserializeItem(ByteBuf _buf) + { + return new item.Item(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + public readonly string Name; + public readonly item.EMajorType MajorType; + public readonly item.EMinorType MinorType; + public readonly item.EItemQuality Quality; + public readonly string Icon; + public readonly string IconBackgroud; + public readonly string IconMask; + public readonly string Desc; + public readonly int ShowOrder; + + public const int __ID__ = 2107285806; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "majorType:" + MajorType + "," + + "minorType:" + MinorType + "," + + "quality:" + Quality + "," + + "icon:" + Icon + "," + + "iconBackgroud:" + IconBackgroud + "," + + "iconMask:" + IconMask + "," + + "desc:" + Desc + "," + + "showOrder:" + ShowOrder + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.Item.cs.meta new file mode 100644 index 00000000..be67f5d7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 714bbdda8cb10ee43b6a0715ba601444 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.TbItem.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.TbItem.cs new file mode 100644 index 00000000..0661bf52 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.TbItem.cs @@ -0,0 +1,86 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.item +{ + /// + /// 道具表 + /// + public partial class TbItem + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbItem(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public item.Item GetOrDefault(int key) => this.Get(key) ?? default; + public item.Item Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = item.Item.DeserializeItem(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public item.Item this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.TbItem.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.TbItem.cs.meta new file mode 100644 index 00000000..14e98d9e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/item.TbItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5a230c2e367cb68489a33402c33e32f5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..b5e4c191 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.L10NDemo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ + public sealed partial class L10NDemo : Luban.BeanBase + { + public L10NDemo(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Text = _buf.ReadString(); + } + + public static L10NDemo DeserializeL10NDemo(ByteBuf _buf) + { + return new l10n.L10NDemo(_buf); + } + + public readonly int Id; + public readonly string Text; + + public const int __ID__ = -331195887; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "text:" + Text + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.L10NDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.L10NDemo.cs.meta new file mode 100644 index 00000000..50cebd53 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.L10NDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 764c430e60e5d3042b981f460d1cc282 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..9d234d8a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.PatchDemo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ + public sealed partial class PatchDemo : Luban.BeanBase + { + public PatchDemo(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Value = _buf.ReadInt(); + } + + public static PatchDemo DeserializePatchDemo(ByteBuf _buf) + { + return new l10n.PatchDemo(_buf); + } + + public readonly int Id; + public readonly int Value; + + public const int __ID__ = -1707294656; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.PatchDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.PatchDemo.cs.meta new file mode 100644 index 00000000..edf0ffe4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.PatchDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 529bb0258ce398c4cba053124ab22baa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbL10NDemo.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbL10NDemo.cs new file mode 100644 index 00000000..063a6561 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbL10NDemo.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.l10n +{ + public partial class TbL10NDemo + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbL10NDemo(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public l10n.L10NDemo GetOrDefault(int key) => this.Get(key) ?? default; + public l10n.L10NDemo Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = l10n.L10NDemo.DeserializeL10NDemo(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public l10n.L10NDemo this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbL10NDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbL10NDemo.cs.meta new file mode 100644 index 00000000..5ee20713 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbL10NDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 876496c1865a74146bf9fd607364d22e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbPatchDemo.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbPatchDemo.cs new file mode 100644 index 00000000..ec91a6f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbPatchDemo.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.l10n +{ + public partial class TbPatchDemo + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbPatchDemo(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public l10n.PatchDemo GetOrDefault(int key) => this.Get(key) ?? default; + public l10n.PatchDemo Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = l10n.PatchDemo.DeserializePatchDemo(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public l10n.PatchDemo this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbPatchDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbPatchDemo.cs.meta new file mode 100644 index 00000000..2aa637b6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/l10n.TbPatchDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92aa0ace2bf7fcc47a87479c46cb6752 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TbTestTag.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TbTestTag.cs new file mode 100644 index 00000000..2b6b50d7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TbTestTag.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.tag +{ + public partial class TbTestTag + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestTag(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public tag.TestTag GetOrDefault(int key) => this.Get(key) ?? default; + public tag.TestTag Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = tag.TestTag.DeserializeTestTag(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public tag.TestTag this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TbTestTag.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TbTestTag.cs.meta new file mode 100644 index 00000000..5e5d32b3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TbTestTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eed5913f78da5f543b85a6b1831cf40d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TestTag.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TestTag.cs new file mode 100644 index 00000000..a9013a24 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TestTag.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.tag +{ + public sealed partial class TestTag : Luban.BeanBase + { + public TestTag(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Value = _buf.ReadString(); + } + + public static TestTag DeserializeTestTag(ByteBuf _buf) + { + return new tag.TestTag(_buf); + } + + public readonly int Id; + public readonly string Value; + + public const int __ID__ = 1742933812; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TestTag.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TestTag.cs.meta new file mode 100644 index 00000000..ce95df7a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/tag.TestTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 419c9f459121bfa44a50348295ad8932 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.AccessFlag.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..9bd3f0c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.AccessFlag.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// 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/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.AccessFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.AccessFlag.cs.meta new file mode 100644 index 00000000..13163f7e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.AccessFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6577268e54cbbed4cb9cc2173b7e9ca4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Circle.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Circle.cs new file mode 100644 index 00000000..f31ed37b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Circle.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + /// + /// 圆 + /// + public sealed partial class Circle : Shape + { + public Circle(ByteBuf _buf) : base(_buf) + { + Radius = _buf.ReadFloat(); + } + + public static Circle DeserializeCircle(ByteBuf _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/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Circle.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Circle.cs.meta new file mode 100644 index 00000000..0ce4d699 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Circle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b0d1a386185f2624c8db2e8ac7450e0e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompactString.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompactString.cs new file mode 100644 index 00000000..164326de --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompactString.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; + + +namespace cfg.test +{ + public sealed partial class CompactString : Luban.BeanBase + { + public CompactString(ByteBuf _buf) + { + Id = _buf.ReadInt(); + S2 = _buf.ReadString(); + S3 = _buf.ReadString(); + } + + public static CompactString DeserializeCompactString(ByteBuf _buf) + { + return new test.CompactString(_buf); + } + + public readonly int Id; + public readonly string S2; + public readonly string S3; + + public const int __ID__ = 1968089240; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s2:" + S2 + "," + + "s3:" + S3 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompactString.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompactString.cs.meta new file mode 100644 index 00000000..bd09a9c7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompactString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 45d42f868b711d54fa4b864faf6852a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..9e98fc49 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class CompositeJsonTable1 : Luban.BeanBase + { + public CompositeJsonTable1(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadString(); + } + + public static CompositeJsonTable1 DeserializeCompositeJsonTable1(ByteBuf _buf) + { + return new test.CompositeJsonTable1(_buf); + } + + public readonly int Id; + public readonly string X; + + public const int __ID__ = 1566207894; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable1.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable1.cs.meta new file mode 100644 index 00000000..4ebb2a74 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f21918afd4aed3f419474a6ab9aefc82 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..0cffb3a4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable2.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class CompositeJsonTable2 : Luban.BeanBase + { + public CompositeJsonTable2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static CompositeJsonTable2 DeserializeCompositeJsonTable2(ByteBuf _buf) + { + return new test.CompositeJsonTable2(_buf); + } + + public readonly int Id; + public readonly int Y; + + public const int __ID__ = 1566207895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "y:" + Y + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable2.cs.meta new file mode 100644 index 00000000..04433195 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f57ca41e84faee42b6e0aae2193669b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..c55fc655 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class CompositeJsonTable3 : Luban.BeanBase + { + public CompositeJsonTable3(ByteBuf _buf) + { + A = _buf.ReadInt(); + B = _buf.ReadInt(); + } + + public static CompositeJsonTable3 DeserializeCompositeJsonTable3(ByteBuf _buf) + { + return new test.CompositeJsonTable3(_buf); + } + + public readonly int A; + public readonly int B; + + public const int __ID__ = 1566207896; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "a:" + A + "," + + "b:" + B + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable3.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable3.cs.meta new file mode 100644 index 00000000..0047b274 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.CompositeJsonTable3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8d3f639f49e6322418f757004df106bf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DateTimeRange.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..6e3c603b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DateTimeRange.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class DateTimeRange : Luban.BeanBase + { + public DateTimeRange(ByteBuf _buf) + { + StartTime = _buf.ReadLong(); + EndTime = _buf.ReadLong(); + } + + public static DateTimeRange DeserializeDateTimeRange(ByteBuf _buf) + { + return new test.DateTimeRange(_buf); + } + + public readonly long StartTime; + public readonly long EndTime; + + public const int __ID__ = 495315430; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "startTime:" + StartTime + "," + + "endTime:" + EndTime + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DateTimeRange.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DateTimeRange.cs.meta new file mode 100644 index 00000000..618e3b12 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DateTimeRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b1d19336f52270a49b59e3ee30058435 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Decorator.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Decorator.cs new file mode 100644 index 00000000..26274309 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Decorator.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class Decorator : test.ItemBase + { + public Decorator(ByteBuf _buf) : base(_buf) + { + Duration = _buf.ReadInt(); + } + + public static Decorator DeserializeDecorator(ByteBuf _buf) + { + return new test.Decorator(_buf); + } + + public readonly int Duration; + + public const int __ID__ = -625155649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "duration:" + Duration + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Decorator.cs.meta new file mode 100644 index 00000000..2b23fe01 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6e873bc2dc9a301499790e455b8ea6fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD2.cs new file mode 100644 index 00000000..a0afe22f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD2.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; + + +namespace cfg.test +{ + public sealed partial class DemoD2 : test.DemoDynamic + { + public DemoD2(ByteBuf _buf) : base(_buf) + { + X2 = _buf.ReadInt(); + } + + public static DemoD2 DeserializeDemoD2(ByteBuf _buf) + { + return new test.DemoD2(_buf); + } + + public readonly int X2; + + public const int __ID__ = -2138341747; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD2.cs.meta new file mode 100644 index 00000000..43e9b874 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c15f6c7f48b0da94097af1d23511af5e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD3.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD3.cs new file mode 100644 index 00000000..495d58f6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD3.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; + + +namespace cfg.test +{ + public abstract partial class DemoD3 : test.DemoDynamic + { + public DemoD3(ByteBuf _buf) : base(_buf) + { + X3 = _buf.ReadInt(); + } + + public static DemoD3 DeserializeDemoD3(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.DemoE1.__ID__: return new test.DemoE1(_buf); + case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X3; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD3.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD3.cs.meta new file mode 100644 index 00000000..0770f2d3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 700dd318704b9f547ac237f81313a64a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD5.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD5.cs new file mode 100644 index 00000000..ecb5821b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD5.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; + + +namespace cfg.test +{ + public sealed partial class DemoD5 : test.DemoDynamic + { + public DemoD5(ByteBuf _buf) : base(_buf) + { + Time = test.DateTimeRange.DeserializeDateTimeRange(_buf); + } + + public static DemoD5 DeserializeDemoD5(ByteBuf _buf) + { + return new test.DemoD5(_buf); + } + + public readonly test.DateTimeRange Time; + + public const int __ID__ = -2138341744; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + Time?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "time:" + Time + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD5.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD5.cs.meta new file mode 100644 index 00000000..1137d242 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoD5.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1aeca61815c74bc4bbb3080a964d161b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoDynamic.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..ee5e3e8d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoDynamic.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; + + +namespace cfg.test +{ + public abstract partial class DemoDynamic : Luban.BeanBase + { + public DemoDynamic(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + } + + public static DemoDynamic DeserializeDemoDynamic(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.DemoD2.__ID__: return new test.DemoD2(_buf); + case test.DemoE1.__ID__: return new test.DemoE1(_buf); + case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf); + case test.DemoD5.__ID__: return new test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X1; + + + public virtual void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoDynamic.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoDynamic.cs.meta new file mode 100644 index 00000000..d1e355f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoDynamic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bcd1224ea28907f44aa6156d9d649a91 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE1.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE1.cs new file mode 100644 index 00000000..ebb89d18 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE1.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class DemoE1 : test.DemoD3 + { + public DemoE1(ByteBuf _buf) : base(_buf) + { + X4 = _buf.ReadInt(); + } + + public static DemoE1 DeserializeDemoE1(ByteBuf _buf) + { + return new test.DemoE1(_buf); + } + + public readonly int X4; + + public const int __ID__ = -2138341717; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE1.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE1.cs.meta new file mode 100644 index 00000000..3ee46cce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dafd6a54ac4d70a459378f39f4a1d792 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE2.cs new file mode 100644 index 00000000..52c88488 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE2.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; + + +namespace cfg.test +{ + public partial struct DemoE2 + { + public DemoE2(ByteBuf _buf) + { + if(_buf.ReadBool()){ Y1 = _buf.ReadInt(); } else { Y1 = null; } + Y2 = _buf.ReadBool(); + } + + public static DemoE2 DeserializeDemoE2(ByteBuf _buf) + { + return new test.DemoE2(_buf); + } + + public readonly int? Y1; + public readonly bool Y2; + + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE2.cs.meta new file mode 100644 index 00000000..944c4474 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoE2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c0aa94009d4b0e14eb4e20bbea725b67 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoEnum.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..0a52c1e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoEnum.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + Any = 6, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoEnum.cs.meta new file mode 100644 index 00000000..6c5174e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5eaf29e99f17d1147a1420cbbc6a55db +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoFlag.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..b9b5d903 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoFlag.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoFlag.cs.meta new file mode 100644 index 00000000..3ce26a34 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c179ab47914df874cb46bbaec6a93424 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoGroup.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..8ac0f654 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoGroup.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; + + +namespace cfg.test +{ + public sealed partial class DemoGroup : Luban.BeanBase + { + public DemoGroup(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadInt(); + X1_Ref = null; + X4 = _buf.ReadInt(); + X5 = test.InnerGroup.DeserializeInnerGroup(_buf); + } + + public static DemoGroup DeserializeDemoGroup(ByteBuf _buf) + { + return new test.DemoGroup(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.DemoGroup X1_Ref; + public readonly int X4; + public readonly test.InnerGroup X5; + + public const int __ID__ = -379263008; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbDemoGroupC.GetOrDefault(X1); + + X5?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoGroup.cs.meta new file mode 100644 index 00000000..b138831b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3de21ff09f207fd49a8eb87f24f18663 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..5489518d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,93 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class DemoPrimitiveTypesTable : Luban.BeanBase + { + public DemoPrimitiveTypesTable(ByteBuf _buf) + { + X1 = _buf.ReadBool(); + X2 = _buf.ReadByte(); + X3 = _buf.ReadShort(); + X4 = _buf.ReadInt(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X7 = _buf.ReadDouble(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + V2 = vec2.Deserializevec2(_buf); + V3 = vec3.Deserializevec3(_buf); + V4 = vec4.Deserializevec4(_buf); + T1 = _buf.ReadLong(); + } + + public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(ByteBuf _buf) + { + return new test.DemoPrimitiveTypesTable(_buf); + } + + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly int X4; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly string S1; + public readonly string S2; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + public readonly long T1; + + public const int __ID__ = -370934083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "t1:" + T1 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta new file mode 100644 index 00000000..d7706ee6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 31a0aedd940b4a6499ad59e1ec9c6703 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..80497b06 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoSingletonType.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; + + +namespace cfg.test +{ + public sealed partial class DemoSingletonType : Luban.BeanBase + { + public DemoSingletonType(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Date = test.DemoDynamic.DeserializeDemoDynamic(_buf); + } + + public static DemoSingletonType DeserializeDemoSingletonType(ByteBuf _buf) + { + return new test.DemoSingletonType(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.DemoDynamic Date; + + public const int __ID__ = 539196998; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + Date?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "date:" + Date + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoSingletonType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoSingletonType.cs.meta new file mode 100644 index 00000000..4dacc449 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoSingletonType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2e00339df842c6c43944565421f3b4c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType1.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType1.cs new file mode 100644 index 00000000..b126a5fe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType1.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class DemoType1 : Luban.BeanBase + { + public DemoType1(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + } + + public static DemoType1 DeserializeDemoType1(ByteBuf _buf) + { + return new test.DemoType1(_buf); + } + + public readonly int X1; + + public const int __ID__ = -367048296; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType1.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType1.cs.meta new file mode 100644 index 00000000..7c7d39a7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: db220f87e456db84eb7af53b8e03e31b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType2.cs new file mode 100644 index 00000000..66086c9a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType2.cs @@ -0,0 +1,129 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class DemoType2 : Luban.BeanBase + { + public DemoType2(ByteBuf _buf) + { + X4 = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X2 = _buf.ReadByte(); + X3 = _buf.ReadShort(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X7 = _buf.ReadDouble(); + X80 = _buf.ReadShort(); + X8 = _buf.ReadInt(); + X9 = _buf.ReadLong(); + X10 = _buf.ReadString(); + X12 = test.DemoType1.DeserializeDemoType1(_buf); + X13 = (test.DemoEnum)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + S1 = _buf.ReadString(); + T1 = _buf.ReadLong(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K5 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K5.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}} + } + + public static DemoType2 DeserializeDemoType2(ByteBuf _buf) + { + return new test.DemoType2(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly short X80; + public readonly int X8; + public readonly long X9; + public readonly string X10; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly string S1; + public readonly long T1; + public readonly int[] K1; + public readonly System.Collections.Generic.List K2; + public readonly System.Collections.Generic.HashSet K5; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -367048295; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "x80:" + X80 + "," + + "x8:" + X8 + "," + + "x9:" + X9 + "," + + "x10:" + X10 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "s1:" + S1 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k5:" + Luban.StringUtil.CollectionToString(K5) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType2.cs.meta new file mode 100644 index 00000000..54a57233 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DemoType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dc80a548d148f3442845e3861369c662 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DetectEncoding.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..60495370 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DetectEncoding.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class DetectEncoding : Luban.BeanBase + { + public DetectEncoding(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + } + + public static DetectEncoding DeserializeDetectEncoding(ByteBuf _buf) + { + return new test.DetectEncoding(_buf); + } + + public readonly int Id; + public readonly string Name; + + public const int __ID__ = -1154609646; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DetectEncoding.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DetectEncoding.cs.meta new file mode 100644 index 00000000..e19cc99c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.DetectEncoding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e2ff895cbf8488a41b65031c7d807366 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..db34ab8d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum.cs @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum + { + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum.cs.meta new file mode 100644 index 00000000..4e14b05d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3aa224e6bed266944ade441ae42be5e4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..2b27e566 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum2.cs.meta new file mode 100644 index 00000000..ea93e86c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestEmptyEnum2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cf72512fa35c917489f5bf8b60f483aa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestQuality.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..f82389f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestQuality.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.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestQuality.cs.meta new file mode 100644 index 00000000..ba85d99e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 05cb1a3ddc41a7c409d06b2592946149 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestUeType.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..c69207fe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestUeType.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestUeType.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestUeType.cs.meta new file mode 100644 index 00000000..18974a6f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ETestUeType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3316cf1c52170e04d8d1c32afdc431d7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Equipment.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Equipment.cs new file mode 100644 index 00000000..50ebd45c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Equipment.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; + + +namespace cfg.test +{ + public sealed partial class Equipment : test.ItemBase + { + public Equipment(ByteBuf _buf) : base(_buf) + { + Attr = (test.DemoEnum)_buf.ReadInt(); + Value = _buf.ReadInt(); + } + + public static Equipment DeserializeEquipment(ByteBuf _buf) + { + return new test.Equipment(_buf); + } + + public readonly test.DemoEnum Attr; + public readonly int Value; + + public const int __ID__ = -76837102; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "attr:" + Attr + "," + + "value:" + Value + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Equipment.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Equipment.cs.meta new file mode 100644 index 00000000..f6da46cb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Equipment.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dc0933ee0bd01ba42bb29506d833c649 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..5ee50ece --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJson.cs @@ -0,0 +1,97 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class ExcelFromJson : Luban.BeanBase + { + public ExcelFromJson(ByteBuf _buf) + { + X4 = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + T1 = _buf.ReadLong(); + X12 = test.DemoType1.DeserializeDemoType1(_buf); + X13 = (test.DemoEnum)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}} + } + + public static ExcelFromJson DeserializeExcelFromJson(ByteBuf _buf) + { + return new test.ExcelFromJson(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly string S1; + public readonly string S2; + public readonly long T1; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly int[] K1; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -1485706483; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "t1:" + T1 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJson.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJson.cs.meta new file mode 100644 index 00000000..ed70413d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJson.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d305a938ac276e242991096c2defa79d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..11100fe2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJsonMultiRow.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; + + +namespace cfg.test +{ + public sealed partial class ExcelFromJsonMultiRow : Luban.BeanBase + { + public ExcelFromJsonMultiRow(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Items = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.TestRow _e0; _e0 = test.TestRow.DeserializeTestRow(_buf); Items.Add(_e0);}} + } + + public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(ByteBuf _buf) + { + return new test.ExcelFromJsonMultiRow(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 715335694; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta new file mode 100644 index 00000000..a6a4d9e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ee0944525f2efc14fba5511d6731de88 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Foo.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Foo.cs new file mode 100644 index 00000000..9d4b1af8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Foo.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; + + +namespace cfg.test +{ + public sealed partial class Foo : Luban.BeanBase + { + public Foo(ByteBuf _buf) + { + Y1 = _buf.ReadInt(); + Y2 = _buf.ReadInt(); + Y3 = _buf.ReadInt(); + } + + public static Foo DeserializeFoo(ByteBuf _buf) + { + return new test.Foo(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + + public const int __ID__ = -1147950774; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Foo.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Foo.cs.meta new file mode 100644 index 00000000..77bd1b61 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Foo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6bb1ef4c3cbfc1b48b5e0890c18db453 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H1.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H1.cs new file mode 100644 index 00000000..711f3440 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class H1 : Luban.BeanBase + { + public H1(ByteBuf _buf) + { + Y2 = test.H2.DeserializeH2(_buf); + Y3 = _buf.ReadInt(); + } + + public static H1 DeserializeH1(ByteBuf _buf) + { + return new test.H1(_buf); + } + + public readonly test.H2 Y2; + public readonly int Y3; + + public const int __ID__ = -1422503995; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Y2?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H1.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H1.cs.meta new file mode 100644 index 00000000..d58f935d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f1d2306c2e1543040876c1ff6b5ee290 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H2.cs new file mode 100644 index 00000000..e529ee85 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H2.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class H2 : Luban.BeanBase + { + public H2(ByteBuf _buf) + { + Z2 = _buf.ReadInt(); + Z3 = _buf.ReadInt(); + } + + public static H2 DeserializeH2(ByteBuf _buf) + { + return new test.H2(_buf); + } + + public readonly int Z2; + public readonly int Z3; + + public const int __ID__ = -1422503994; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "z2:" + Z2 + "," + + "z3:" + Z3 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H2.cs.meta new file mode 100644 index 00000000..3c3bb355 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.H2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 717543a8a2ca0ab4fbf0b196a45d3007 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.InnerGroup.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..74630ac7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.InnerGroup.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; + + +namespace cfg.test +{ + public sealed partial class InnerGroup : Luban.BeanBase + { + public InnerGroup(ByteBuf _buf) + { + Y1 = _buf.ReadInt(); + Y2 = _buf.ReadInt(); + Y4 = _buf.ReadInt(); + } + + public static InnerGroup DeserializeInnerGroup(ByteBuf _buf) + { + return new test.InnerGroup(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y4; + + public const int __ID__ = -587873083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y4:" + Y4 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.InnerGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.InnerGroup.cs.meta new file mode 100644 index 00000000..7cf1722f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.InnerGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b5dd7911468fee041bd5f5734fe3c6ca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Item.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Item.cs new file mode 100644 index 00000000..48a5d85b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Item.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; + + +namespace cfg.test +{ + public sealed partial class Item : test.ItemBase + { + public Item(ByteBuf _buf) : base(_buf) + { + Num = _buf.ReadInt(); + Price = _buf.ReadInt(); + } + + public static Item DeserializeItem(ByteBuf _buf) + { + return new test.Item(_buf); + } + + public readonly int Num; + public readonly int Price; + + public const int __ID__ = -1226641649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "num:" + Num + "," + + "price:" + Price + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Item.cs.meta new file mode 100644 index 00000000..4a2c5c2f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: af94ac7f9d0828349af0d919343242b7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ItemBase.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ItemBase.cs new file mode 100644 index 00000000..91862491 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ItemBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public abstract partial class ItemBase : Luban.BeanBase + { + public ItemBase(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + } + + public static ItemBase DeserializeItemBase(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.Item.__ID__: return new test.Item(_buf); + case test.Equipment.__ID__: return new test.Equipment(_buf); + case test.Decorator.__ID__: return new test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + + + public virtual void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ItemBase.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ItemBase.cs.meta new file mode 100644 index 00000000..d1175a57 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.ItemBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 972f94f56a127a247bb8f2a8d7352fcc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiIndexList.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..1e738be5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiIndexList.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class MultiIndexList : Luban.BeanBase + { + public MultiIndexList(ByteBuf _buf) + { + Id1 = _buf.ReadInt(); + Id2 = _buf.ReadLong(); + Id3 = _buf.ReadString(); + Num = _buf.ReadInt(); + Desc = _buf.ReadString(); + } + + public static MultiIndexList DeserializeMultiIndexList(ByteBuf _buf) + { + return new test.MultiIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 2016237651; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiIndexList.cs.meta new file mode 100644 index 00000000..5b2c6e2a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 16e5fbf9bd62b8740ac8d649469f7c93 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..2e162922 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowRecord.cs @@ -0,0 +1,77 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class MultiRowRecord : Luban.BeanBase + { + public MultiRowRecord(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);OneRows = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); OneRows.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); MultiRows1.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows2 = new test.MultiRowType1[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.MultiRowType1 __e0;__e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); MultiRows2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(_buf); MultiRows4.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows5 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType3 _e0; _e0 = test.MultiRowType3.DeserializeMultiRowType3(_buf); MultiRows5.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows6 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(_buf); MultiRows6.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows7 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); MultiRows7.Add(_k0, _v0);}} + } + + public static MultiRowRecord DeserializeMultiRowRecord(ByteBuf _buf) + { + return new test.MultiRowRecord(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly System.Collections.Generic.List OneRows; + public readonly System.Collections.Generic.List MultiRows1; + public readonly test.MultiRowType1[] MultiRows2; + public readonly System.Collections.Generic.Dictionary MultiRows4; + public readonly System.Collections.Generic.List MultiRows5; + public readonly System.Collections.Generic.Dictionary MultiRows6; + public readonly System.Collections.Generic.Dictionary MultiRows7; + + public const int __ID__ = -501249394; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in OneRows) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows1) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows2) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows4.Values) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows5) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows6.Values) { _e?.ResolveRef(tables); } + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "oneRows:" + Luban.StringUtil.CollectionToString(OneRows) + "," + + "multiRows1:" + Luban.StringUtil.CollectionToString(MultiRows1) + "," + + "multiRows2:" + Luban.StringUtil.CollectionToString(MultiRows2) + "," + + "multiRows4:" + Luban.StringUtil.CollectionToString(MultiRows4) + "," + + "multiRows5:" + Luban.StringUtil.CollectionToString(MultiRows5) + "," + + "multiRows6:" + Luban.StringUtil.CollectionToString(MultiRows6) + "," + + "multiRows7:" + Luban.StringUtil.CollectionToString(MultiRows7) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowRecord.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowRecord.cs.meta new file mode 100644 index 00000000..f7189fee --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowRecord.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e97e7b67318d2c142a83b346e1bfbc22 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..d03662bc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowTitle.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class MultiRowTitle : Luban.BeanBase + { + public MultiRowTitle(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + X1 = test.H1.DeserializeH1(_buf); + if(_buf.ReadBool()){ X20 = test.H2.DeserializeH2(_buf); } else { X20 = null; } + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.H2 _e0; _e0 = test.H2.DeserializeH2(_buf); X2.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new test.H2[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.H2 __e0;__e0 = test.H2.DeserializeH2(_buf); X3[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new test.H2[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.H2 __e0;__e0 = test.H2.DeserializeH2(_buf); X4[__index0] = __e0;}} + } + + public static MultiRowTitle DeserializeMultiRowTitle(ByteBuf _buf) + { + return new test.MultiRowTitle(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.H1 X1; + public readonly test.H2 X20; + public readonly System.Collections.Generic.List X2; + public readonly test.H2[] X3; + public readonly test.H2[] X4; + + public const int __ID__ = 540002427; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + X1?.ResolveRef(tables); + X20?.ResolveRef(tables); + foreach (var _e in X2) { _e?.ResolveRef(tables); } + foreach (var _e in X3) { _e?.ResolveRef(tables); } + foreach (var _e in X4) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "x1:" + X1 + "," + + "x20:" + X20 + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowTitle.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowTitle.cs.meta new file mode 100644 index 00000000..cc7f83e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f6626c93a7149a243a638a577c314b4c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType1.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..2941786d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class MultiRowType1 : Luban.BeanBase + { + public MultiRowType1(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + } + + public static MultiRowType1 DeserializeMultiRowType1(ByteBuf _buf) + { + return new test.MultiRowType1(_buf); + } + + public readonly int Id; + public readonly int X; + + public const int __ID__ = 540474970; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType1.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType1.cs.meta new file mode 100644 index 00000000..bdda9951 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9574761a8907dd246a58d90c140a9aad +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..bbdc8b3b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType2.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; + + +namespace cfg.test +{ + public sealed partial class MultiRowType2 : Luban.BeanBase + { + public MultiRowType2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + Y = _buf.ReadFloat(); + } + + public static MultiRowType2 DeserializeMultiRowType2(ByteBuf _buf) + { + return new test.MultiRowType2(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly float Y; + + public const int __ID__ = 540474971; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType2.cs.meta new file mode 100644 index 00000000..b272aa8a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1b3e9d7e3c60fe24fa510081e30d6ba7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType3.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..73a3d7c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class MultiRowType3 : Luban.BeanBase + { + public MultiRowType3(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Items = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); Items.Add(_e0);}} + } + + public static MultiRowType3 DeserializeMultiRowType3(ByteBuf _buf) + { + return new test.MultiRowType3(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 540474972; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType3.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType3.cs.meta new file mode 100644 index 00000000..14b4b6c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiRowType3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2303260c13519bd4f90de8a100a2f7f8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..225b5aa1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class MultiUnionIndexList : Luban.BeanBase + { + public MultiUnionIndexList(ByteBuf _buf) + { + Id1 = _buf.ReadInt(); + Id2 = _buf.ReadLong(); + Id3 = _buf.ReadString(); + Num = _buf.ReadInt(); + Desc = _buf.ReadString(); + } + + public static MultiUnionIndexList DeserializeMultiUnionIndexList(ByteBuf _buf) + { + return new test.MultiUnionIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 1966847134; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiUnionIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiUnionIndexList.cs.meta new file mode 100644 index 00000000..f566a6e8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.MultiUnionIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a1e8769c63fc02f49aa6629e3553cc7c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.NotIndexList.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..43fdeed9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.NotIndexList.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class NotIndexList : Luban.BeanBase + { + public NotIndexList(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static NotIndexList DeserializeNotIndexList(ByteBuf _buf) + { + return new test.NotIndexList(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = -50446599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.NotIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.NotIndexList.cs.meta new file mode 100644 index 00000000..ce71d264 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.NotIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec08f416e89bc59408eace7fbe36b2eb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefBean.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefBean.cs new file mode 100644 index 00000000..777629ef --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefBean.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; + + +namespace cfg.test +{ + public sealed partial class RefBean : test.RefDynamicBase + { + public RefBean(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Arr = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); Arr.Add(_e0);}} + } + + public static RefBean DeserializeRefBean(ByteBuf _buf) + { + return new test.RefBean(_buf); + } + + public readonly System.Collections.Generic.List Arr; + + public const int __ID__ = 1963260263; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "arr:" + Luban.StringUtil.CollectionToString(Arr) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefBean.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefBean.cs.meta new file mode 100644 index 00000000..bad22220 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefBean.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f49a6dd651f27ee47a27482bd5c4b630 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..e8caab51 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefDynamicBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public abstract partial class RefDynamicBase : Luban.BeanBase + { + public RefDynamicBase(ByteBuf _buf) + { + X = _buf.ReadInt(); + X_Ref = null; + } + + public static RefDynamicBase DeserializeRefDynamicBase(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.RefBean.__ID__: return new test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X; + public test.TestBeRef X_Ref; + + + public virtual void ResolveRef(Tables tables) + { + X_Ref = tables.TbTestBeRef.GetOrDefault(X); + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefDynamicBase.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefDynamicBase.cs.meta new file mode 100644 index 00000000..679922ec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.RefDynamicBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fd2f1566e6c840d4e87bc5ccbadbf79d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Shape.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Shape.cs new file mode 100644 index 00000000..5316e527 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Shape.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public abstract partial class Shape : Luban.BeanBase + { + public Shape(ByteBuf _buf) + { + } + + public static Shape DeserializeShape(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.Circle.__ID__: return new test.Circle(_buf); + case test2.Rectangle.__ID__: return new test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Shape.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Shape.cs.meta new file mode 100644 index 00000000..19e5f9d3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Shape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7ec6e4ad4be08ba48a69ec83abdf25e3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable1.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable1.cs new file mode 100644 index 00000000..b3833792 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable1.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbCompositeJsonTable1 + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable1(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.CompositeJsonTable1 GetOrDefault(int key) => this.Get(key) ?? default; + public test.CompositeJsonTable1 Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.CompositeJsonTable1.DeserializeCompositeJsonTable1(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.CompositeJsonTable1 this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable1.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable1.cs.meta new file mode 100644 index 00000000..961ecc33 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ebed49bf0399b044bb728120e7e8c99e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable2.cs new file mode 100644 index 00000000..508996c6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable2.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbCompositeJsonTable2 + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable2(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.CompositeJsonTable2 GetOrDefault(int key) => this.Get(key) ?? default; + public test.CompositeJsonTable2 Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.CompositeJsonTable2.DeserializeCompositeJsonTable2(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.CompositeJsonTable2 this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable2.cs.meta new file mode 100644 index 00000000..d64bd027 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2a73044d538719043a8c2d2f55f68c1e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable3.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable3.cs new file mode 100644 index 00000000..5795fc9e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbCompositeJsonTable3 + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly test.CompositeJsonTable3 _data; + + public TbCompositeJsonTable3(ByteBuf _buf, string fileName, System.Func byteBufLoader) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + ByteBuf dataBuf = byteBufLoader(fileName, offset, length); + _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(dataBuf); + } + + + public int A => _data.A; + public int B => _data.B; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } + + public override string ToString() + { + return _data.ToString(); + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable3.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable3.cs.meta new file mode 100644 index 00000000..79d15f36 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbCompositeJsonTable3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6bba0bcbb73b56c42bb63716af4ebc22 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDataFromMisc.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDataFromMisc.cs new file mode 100644 index 00000000..be1ee176 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDataFromMisc.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbDataFromMisc + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbDataFromMisc(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.DemoType2 GetOrDefault(int key) => this.Get(key) ?? default; + public test.DemoType2 Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.DemoType2.DeserializeDemoType2(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.DemoType2 this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDataFromMisc.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDataFromMisc.cs.meta new file mode 100644 index 00000000..7cd11e39 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDataFromMisc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 31175c0e97892754a946ccf62c953ace +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDefineFromExcel2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDefineFromExcel2.cs new file mode 100644 index 00000000..f82a9398 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDefineFromExcel2.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbDefineFromExcel2 + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbDefineFromExcel2(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public DefineFromExcel2 GetOrDefault(int key) => this.Get(key) ?? default; + public DefineFromExcel2 Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = DefineFromExcel2.DeserializeDefineFromExcel2(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public DefineFromExcel2 this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDefineFromExcel2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDefineFromExcel2.cs.meta new file mode 100644 index 00000000..7622890f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDefineFromExcel2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7259d36dcab96274aadb7e8e9dcf0d80 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup.cs new file mode 100644 index 00000000..2f4ef4c6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbDemoGroup + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.DemoGroup GetOrDefault(int key) => this.Get(key) ?? default; + public test.DemoGroup Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.DemoGroup.DeserializeDemoGroup(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.DemoGroup this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup.cs.meta new file mode 100644 index 00000000..676220c6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4df89719d7cabba4fb68b45ad747a751 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup_C.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup_C.cs new file mode 100644 index 00000000..8bbc3454 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup_C.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbDemoGroup_C + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup_C(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.DemoGroup GetOrDefault(int key) => this.Get(key) ?? default; + public test.DemoGroup Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.DemoGroup.DeserializeDemoGroup(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.DemoGroup this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup_C.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup_C.cs.meta new file mode 100644 index 00000000..c18b031a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoGroup_C.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 58eef285f86ee4142a691647f6d88c77 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoPrimitive.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoPrimitive.cs new file mode 100644 index 00000000..e3ee796c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoPrimitive.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbDemoPrimitive + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbDemoPrimitive(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.DemoPrimitiveTypesTable GetOrDefault(int key) => this.Get(key) ?? default; + public test.DemoPrimitiveTypesTable Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.DemoPrimitiveTypesTable.DeserializeDemoPrimitiveTypesTable(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.DemoPrimitiveTypesTable this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoPrimitive.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoPrimitive.cs.meta new file mode 100644 index 00000000..1b6c9799 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDemoPrimitive.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e6f09d13ccf60a9419d5e49067c0e358 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDetectCsvEncoding.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDetectCsvEncoding.cs new file mode 100644 index 00000000..a5de6566 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDetectCsvEncoding.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbDetectCsvEncoding + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbDetectCsvEncoding(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.DetectEncoding GetOrDefault(int key) => this.Get(key) ?? default; + public test.DetectEncoding Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.DetectEncoding.DeserializeDetectEncoding(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.DetectEncoding this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDetectCsvEncoding.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDetectCsvEncoding.cs.meta new file mode 100644 index 00000000..d7439cd7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbDetectCsvEncoding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 70cc6aa4dba458a489bcc1af51934a66 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJson.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJson.cs new file mode 100644 index 00000000..9ce9d6d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJson.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbExcelFromJson + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJson(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.ExcelFromJson GetOrDefault(int key) => this.Get(key) ?? default; + public test.ExcelFromJson Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.ExcelFromJson.DeserializeExcelFromJson(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.ExcelFromJson this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJson.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJson.cs.meta new file mode 100644 index 00000000..4873d862 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJson.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4029462433a3c3b44993ad7100c9e057 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..85a1faf3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJsonMultiRow.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbExcelFromJsonMultiRow + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJsonMultiRow(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.ExcelFromJsonMultiRow GetOrDefault(int key) => this.Get(key) ?? default; + public test.ExcelFromJsonMultiRow Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.ExcelFromJsonMultiRow.DeserializeExcelFromJsonMultiRow(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.ExcelFromJsonMultiRow this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta new file mode 100644 index 00000000..c24cc129 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 42dd4b902ef9e4241809bdac994d07c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbFullTypes.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbFullTypes.cs new file mode 100644 index 00000000..bb7b7b9d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbFullTypes.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbFullTypes + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbFullTypes(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.DemoType2 GetOrDefault(int key) => this.Get(key) ?? default; + public test.DemoType2 Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.DemoType2.DeserializeDemoType2(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.DemoType2 this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbFullTypes.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbFullTypes.cs.meta new file mode 100644 index 00000000..30e8ef85 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbFullTypes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6d109bb8e63e71f42acbbafb6a56d026 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbItem2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbItem2.cs new file mode 100644 index 00000000..05313aa3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbItem2.cs @@ -0,0 +1,85 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbItem2 + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbItem2(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public T GetOrDefaultAs(int key) where T : test.ItemBase => _dataMap.TryGetValue(key, out var v) ? (T)v : null; + public T GetAs(int key) where T : test.ItemBase => (T)_dataMap[key]; + public test.ItemBase GetOrDefault(int key) => this.Get(key) ?? default; + public test.ItemBase Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.ItemBase.DeserializeItemBase(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.ItemBase this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbItem2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbItem2.cs.meta new file mode 100644 index 00000000..20951cfc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbItem2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 04b8b018a4182dc438defea99a4d9d13 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiIndexList.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiIndexList.cs new file mode 100644 index 00000000..0ede6ba6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiIndexList.cs @@ -0,0 +1,139 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbMultiIndexList + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + + + private System.Collections.Generic.Dictionary _dataMap_id1; + private System.Collections.Generic.Dictionary _offsetMap_id1; + private System.Collections.Generic.Dictionary _lengthMap_id1; + private System.Collections.Generic.Dictionary _dataMap_id2; + private System.Collections.Generic.Dictionary _offsetMap_id2; + private System.Collections.Generic.Dictionary _lengthMap_id2; + private System.Collections.Generic.Dictionary _dataMap_id3; + private System.Collections.Generic.Dictionary _offsetMap_id3; + private System.Collections.Generic.Dictionary _lengthMap_id3; + + public TbMultiIndexList(ByteBuf _buf, string fileName, System.Func byteBufLoader) + { + _dataMap_id1 = new System.Collections.Generic.Dictionary(); + _offsetMap_id1 = new System.Collections.Generic.Dictionary(); + _lengthMap_id1 = new System.Collections.Generic.Dictionary(); + _dataMap_id2 = new System.Collections.Generic.Dictionary(); + _offsetMap_id2 = new System.Collections.Generic.Dictionary(); + _lengthMap_id2 = new System.Collections.Generic.Dictionary(); + _dataMap_id3 = new System.Collections.Generic.Dictionary(); + _offsetMap_id3 = new System.Collections.Generic.Dictionary(); + _lengthMap_id3 = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key_id1; + key_id1 = _buf.ReadInt(); + long key_id2; + key_id2 = _buf.ReadLong(); + string key_id3; + key_id3 = _buf.ReadString(); + + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + + _offsetMap_id1.Add(key_id1, offset); + _lengthMap_id1.Add(key_id1, length); + _offsetMap_id2.Add(key_id2, offset); + _lengthMap_id2.Add(key_id2, length); + _offsetMap_id3.Add(key_id3, offset); + _lengthMap_id3.Add(key_id3, length); + } + } + public test.MultiIndexList GetById1OrDefault(int key) => this.GetById1(key) ?? default; + public test.MultiIndexList GetById1(int key) + { + if (_dataMap_id1.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap_id1[key]; + int length = _lengthMap_id1[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.MultiIndexList.DeserializeMultiIndexList(buf);; + _dataMap_id1[v.Id1] = v; + _dataMap_id2[v.Id2] = v; + _dataMap_id3[v.Id3] = v; + v.ResolveRef(_tables); + return v; + } + public test.MultiIndexList GetById2OrDefault(long key) => this.GetById2(key) ?? default; + public test.MultiIndexList GetById2(long key) + { + if (_dataMap_id2.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap_id2[key]; + int length = _lengthMap_id2[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.MultiIndexList.DeserializeMultiIndexList(buf);; + _dataMap_id1[v.Id1] = v; + _dataMap_id2[v.Id2] = v; + _dataMap_id3[v.Id3] = v; + v.ResolveRef(_tables); + return v; + } + public test.MultiIndexList GetById3OrDefault(string key) => this.GetById3(key) ?? default; + public test.MultiIndexList GetById3(string key) + { + if (_dataMap_id3.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap_id3[key]; + int length = _lengthMap_id3[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.MultiIndexList.DeserializeMultiIndexList(buf);; + _dataMap_id1[v.Id1] = v; + _dataMap_id2[v.Id2] = v; + _dataMap_id3[v.Id3] = v; + v.ResolveRef(_tables); + return v; + } + + public void LoadAll(System.Action onLoad = null) + { + //用第一个Index来索引即可 + foreach(var (key,offset) in _offsetMap_id1) + { + var value = this.GetById1(key); + if (value != null) + { + //把所有的索引值都传进去 + onLoad?.Invoke(value.Id1, value.Id2, value.Id3, value); + } + } + } + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiIndexList.cs.meta new file mode 100644 index 00000000..6b7f4ef9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dfa00a2ce405ee44e9ebca827867264c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowRecord.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowRecord.cs new file mode 100644 index 00000000..6ed59b57 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowRecord.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbMultiRowRecord + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowRecord(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.MultiRowRecord GetOrDefault(int key) => this.Get(key) ?? default; + public test.MultiRowRecord Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.MultiRowRecord.DeserializeMultiRowRecord(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.MultiRowRecord this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowRecord.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowRecord.cs.meta new file mode 100644 index 00000000..6159409a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowRecord.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4a205c13bef42d444a1b3bc58fa3bf47 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowTitle.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowTitle.cs new file mode 100644 index 00000000..95f8f9d0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowTitle.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbMultiRowTitle + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowTitle(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.MultiRowTitle GetOrDefault(int key) => this.Get(key) ?? default; + public test.MultiRowTitle Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.MultiRowTitle.DeserializeMultiRowTitle(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.MultiRowTitle this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowTitle.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowTitle.cs.meta new file mode 100644 index 00000000..8b6b1a5c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiRowTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: be0f1ef24a5831445a74e7f984ce1bfe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiUnionIndexList.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiUnionIndexList.cs new file mode 100644 index 00000000..3f4677c2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiUnionIndexList.cs @@ -0,0 +1,87 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbMultiUnionIndexList + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + + private System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList> _dataMapUnion; + private System.Collections.Generic.Dictionary<(int, long, string), int> _offsetMapUnion; + private System.Collections.Generic.Dictionary<(int, long, string), int> _lengthMapUnion; + + public TbMultiUnionIndexList(ByteBuf _buf, string fileName, System.Func byteBufLoader) + { + _dataMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList>(); + _offsetMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), int>(); + _lengthMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), int>(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize() ; n > 0 ; --n) + { + int key_id1; + key_id1 = _buf.ReadInt(); + + long key_id2; + key_id2 = _buf.ReadLong(); + + string key_id3; + key_id3 = _buf.ReadString(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + + _offsetMapUnion.Add((key_id1, key_id2, key_id3), offset); + _lengthMapUnion.Add((key_id1, key_id2, key_id3), length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var ((id1, id2, id3),offset) in _offsetMapUnion) + { + var value = this.Get(id1, id2, id3); + if (value != null) + { + onLoad?.Invoke(value.Id1, value.Id2, value.Id3, value); + } + } + } + + public test.MultiUnionIndexList GetOrDefault(int id1, long id2, string id3) => this.Get(id1, id2, id3) ?? default; + public test.MultiUnionIndexList Get(int id1, long id2, string id3) + { + if (_dataMapUnion.TryGetValue((id1, id2, id3), out var v)) + { + return v; + } + int offset = _offsetMapUnion[(id1, id2, id3)]; + int length = _lengthMapUnion[(id1, id2, id3)]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + + v = test.MultiUnionIndexList.DeserializeMultiUnionIndexList(buf);; + _dataMapUnion[(id1, id2, id3)] = v; + v.ResolveRef(_tables); + return v; + } + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiUnionIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiUnionIndexList.cs.meta new file mode 100644 index 00000000..2ca5684f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbMultiUnionIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0773c533aace8364f866f4930c9ad3f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbNotIndexList.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbNotIndexList.cs new file mode 100644 index 00000000..bf7128bf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbNotIndexList.cs @@ -0,0 +1,78 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbNotIndexList + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + + + private readonly System.Collections.Generic.Dictionary _indexDataMap; + private readonly System.Collections.Generic.List _offsetList; + private readonly System.Collections.Generic.List _lengthList; + + public TbNotIndexList(ByteBuf _buf, string fileName, System.Func byteBufLoader) + { + _indexDataMap = new System.Collections.Generic.Dictionary(); + _offsetList = new System.Collections.Generic.List(); + _lengthList = new System.Collections.Generic.List(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + + _offsetList.Add(offset); + _lengthList.Add(length); + } + } + + public test.NotIndexList GetByIndex(int index) + { + if (_indexDataMap.TryGetValue(index, out var v)) + { + return v; + } + int offset = _offsetList[index]; + int length = _lengthList[index]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.NotIndexList.DeserializeNotIndexList(buf);; + _indexDataMap[index] = v; + v.ResolveRef(_tables); + return v; + } + + public void LoadAll(System.Action onLoad = null) + { + for (int i = 0; i < _offsetList.Count; ++i) + { + var value = this.GetByIndex(i); + if (value != null) + { + onLoad?.Invoke(i, value); + } + } + } + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbNotIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbNotIndexList.cs.meta new file mode 100644 index 00000000..604bce9b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbNotIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f471ae418882434ea1ee334c48f1852 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbSingleton.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbSingleton.cs new file mode 100644 index 00000000..f90f53d9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbSingleton.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 System.Linq; + + +namespace cfg.test +{ + public partial class TbSingleton + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly test.DemoSingletonType _data; + + public TbSingleton(ByteBuf _buf, string fileName, System.Func byteBufLoader) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + ByteBuf dataBuf = byteBufLoader(fileName, offset, length); + _data = test.DemoSingletonType.DeserializeDemoSingletonType(dataBuf); + } + + + public int Id => _data.Id; + public string Name => _data.Name; + public test.DemoDynamic Date => _data.Date; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } + + public override string ToString() + { + return _data.ToString(); + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbSingleton.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbSingleton.cs.meta new file mode 100644 index 00000000..5144dfd7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbSingleton.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0d371899fbba78d4bae5b4149deb1663 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef.cs new file mode 100644 index 00000000..f6bd9d05 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestBeRef + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestBeRef GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestBeRef Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestBeRef.DeserializeTestBeRef(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestBeRef this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef.cs.meta new file mode 100644 index 00000000..d16eab51 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3f538b7b24c3013409371931aaefd224 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef2.cs new file mode 100644 index 00000000..39b18875 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef2.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestBeRef2 + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef2(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestBeRef GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestBeRef Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestBeRef.DeserializeTestBeRef(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestBeRef this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef2.cs.meta new file mode 100644 index 00000000..cdf36b68 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestBeRef2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 312b911044454014cb93c8f838625f3c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestGlobal.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestGlobal.cs new file mode 100644 index 00000000..56f9e4f5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestGlobal.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestGlobal + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly test.TestGlobal _data; + + public TbTestGlobal(ByteBuf _buf, string fileName, System.Func byteBufLoader) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + ByteBuf dataBuf = byteBufLoader(fileName, offset, length); + _data = test.TestGlobal.DeserializeTestGlobal(dataBuf); + } + + + public int UnlockEquip => _data.UnlockEquip; + public int UnlockHero => _data.UnlockHero; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } + + public override string ToString() + { + return _data.ToString(); + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestGlobal.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestGlobal.cs.meta new file mode 100644 index 00000000..026a0901 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a26295c48eec8034bb07476c8245f034 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestIndex.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestIndex.cs new file mode 100644 index 00000000..17078e56 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestIndex.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestIndex + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestIndex(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestIndex GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestIndex Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestIndex.DeserializeTestIndex(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestIndex this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestIndex.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestIndex.cs.meta new file mode 100644 index 00000000..e5fe9c87 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestIndex.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0200db0592999e1428d9ffdcbadd99bb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMap.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMap.cs new file mode 100644 index 00000000..8433c330 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMap.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestMap + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestMap(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestMap GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestMap Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestMap.DeserializeTestMap(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestMap this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMap.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMap.cs.meta new file mode 100644 index 00000000..bb45645c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c13077d4acc708f49b128aac88c9cb22 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMapper.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMapper.cs new file mode 100644 index 00000000..910a77b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMapper.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestMapper + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestMapper(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestMapper GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestMapper Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestMapper.DeserializeTestMapper(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestMapper this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMapper.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMapper.cs.meta new file mode 100644 index 00000000..69167d1b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMapper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 84e8cb2e8b6440447a141a1339a19092 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMultiColumn.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMultiColumn.cs new file mode 100644 index 00000000..a887c649 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMultiColumn.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestMultiColumn + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestMultiColumn(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestMultiColumn GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestMultiColumn Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestMultiColumn.DeserializeTestMultiColumn(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestMultiColumn this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMultiColumn.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMultiColumn.cs.meta new file mode 100644 index 00000000..e7ace249 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestMultiColumn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4516b4113b559ff48a266bd818f2d992 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestNull.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestNull.cs new file mode 100644 index 00000000..c74ea482 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestNull.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestNull + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestNull(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestNull GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestNull Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestNull.DeserializeTestNull(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestNull this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestNull.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestNull.cs.meta new file mode 100644 index 00000000..940c6886 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7b6678f7f863efd4dbeedf9d456f76a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestRef.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestRef.cs new file mode 100644 index 00000000..572c3dbb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestRef.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestRef + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestRef(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestRef GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestRef Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestRef.DeserializeTestRef(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestRef this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestRef.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestRef.cs.meta new file mode 100644 index 00000000..3f4fa446 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 805b0204a58a81542a946089842758d6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestScriptableObject.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestScriptableObject.cs new file mode 100644 index 00000000..600f5657 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestScriptableObject.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestScriptableObject + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestScriptableObject(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestScriptableObject GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestScriptableObject Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestScriptableObject.DeserializeTestScriptableObject(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestScriptableObject this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestScriptableObject.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestScriptableObject.cs.meta new file mode 100644 index 00000000..5c0fb09f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bf653615ba87e4f44b8f0975c58511fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSet.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSet.cs new file mode 100644 index 00000000..d70a41a2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSet.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestSet + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestSet(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestSet GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestSet Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestSet.DeserializeTestSet(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestSet this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSet.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSet.cs.meta new file mode 100644 index 00000000..e60e6fe0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3caae1a85927e0a47a4ec79ba1649d4b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSize.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSize.cs new file mode 100644 index 00000000..a770753c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSize.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestSize + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestSize(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + int key; + key = _buf.ReadInt(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestSize GetOrDefault(int key) => this.Get(key) ?? default; + public test.TestSize Get(int key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestSize.DeserializeTestSize(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestSize this[int key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSize.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSize.cs.meta new file mode 100644 index 00000000..f7953cbe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestSize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 381438fe867f43d40860a24d6a25aa92 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestString.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestString.cs new file mode 100644 index 00000000..f0e2355c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestString.cs @@ -0,0 +1,83 @@ + +//------------------------------------------------------------------------------ +// +// 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 System.Linq; + + +namespace cfg.test +{ + public partial class TbTestString + { + private readonly System.Func _byteBufLoader; + private readonly string _fileName; + private Tables _tables; + + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.Dictionary _offsetMap; + private readonly System.Collections.Generic.Dictionary _lengthMap; + + private readonly System.Collections.Generic.List _dataList; + + public TbTestString(ByteBuf _buf,string fileName, System.Func byteBufLoader) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _offsetMap = new System.Collections.Generic.Dictionary(); + _lengthMap = new System.Collections.Generic.Dictionary(); + _fileName = fileName; + _byteBufLoader = byteBufLoader; + + for (int n = _buf.ReadSize(); n > 0; --n) + { + string key; + key = _buf.ReadString(); + int offset = _buf.ReadInt(); + int length = _buf.ReadInt(); + _offsetMap.Add(key, offset); + _lengthMap.Add(key, length); + } + } + + public void LoadAll(System.Action onLoad = null) + { + foreach(var (key,offset) in _offsetMap) + { + var value = this.Get(key); + if (value != null) + { + onLoad?.Invoke(key, value); + } + } + } + + public test.TestString GetOrDefault(string key) => this.Get(key) ?? default; + public test.TestString Get(string key) + { + if (_dataMap.TryGetValue(key, out var v)) + { + return v; + } + int offset = _offsetMap[key]; + int length = _lengthMap[key]; + ByteBuf buf = this._byteBufLoader(this._fileName, offset, length); + v = test.TestString.DeserializeTestString(buf);; + _dataMap[key] = v; + v.ResolveRef(_tables); + return v; + } + public test.TestString this[string key] => this.Get(key); + + public void ResolveRef(Tables tables) + { + this._tables = tables; + } + + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestString.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestString.cs.meta new file mode 100644 index 00000000..c26f0d14 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TbTestString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f161b6d3ec861b469c25e3188a7e9a9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Test3.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Test3.cs new file mode 100644 index 00000000..2218775a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Test3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class Test3 : Luban.BeanBase + { + public Test3(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static Test3 DeserializeTest3(ByteBuf _buf) + { + return new test.Test3(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = 638540133; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Test3.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Test3.cs.meta new file mode 100644 index 00000000..4944e45f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.Test3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 66e152862caf6a543a42719f8da1ebb1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestBeRef.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..3f783f86 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestBeRef.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestBeRef : Luban.BeanBase + { + public TestBeRef(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Count = _buf.ReadInt(); + } + + public static TestBeRef DeserializeTestBeRef(ByteBuf _buf) + { + return new test.TestBeRef(_buf); + } + + public readonly int Id; + public readonly int Count; + + public const int __ID__ = 1934403938; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "count:" + Count + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestBeRef.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestBeRef.cs.meta new file mode 100644 index 00000000..99fe7dbe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestBeRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1bda0fceada8b1b459cc75311bd94f19 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestExcelBean1.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestExcelBean1.cs new file mode 100644 index 00000000..f2110cf6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestExcelBean1.cs @@ -0,0 +1,72 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + /// + /// 这是个测试excel结构 + /// + public sealed partial class TestExcelBean1 : Luban.BeanBase + { + public TestExcelBean1(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + X2 = _buf.ReadString(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadFloat(); + } + + public static TestExcelBean1 DeserializeTestExcelBean1(ByteBuf _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/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestExcelBean1.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestExcelBean1.cs.meta new file mode 100644 index 00000000..54b63b75 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestExcelBean1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bd0b699a631d0e24da20d4377e23ae0d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestGlobal.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..10c2d824 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestGlobal.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestGlobal : Luban.BeanBase + { + public TestGlobal(ByteBuf _buf) + { + UnlockEquip = _buf.ReadInt(); + UnlockHero = _buf.ReadInt(); + } + + public static TestGlobal DeserializeTestGlobal(ByteBuf _buf) + { + return new test.TestGlobal(_buf); + } + + public readonly int UnlockEquip; + public readonly int UnlockHero; + + public const int __ID__ = -12548655; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "unlockEquip:" + UnlockEquip + "," + + "unlockHero:" + UnlockHero + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestGlobal.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestGlobal.cs.meta new file mode 100644 index 00000000..35ebfcdc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 89a0fe33c62f78249a07508927f0cda9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestIndex.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestIndex.cs new file mode 100644 index 00000000..fd6d9348 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestIndex.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestIndex : Luban.BeanBase + { + public TestIndex(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Eles = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoType1 _e0; _e0 = test.DemoType1.DeserializeDemoType1(_buf); Eles.Add(_e0);}} + foreach(var _v in Eles) + { + Eles_Index.Add(_v.X1, _v); + } + } + + public static TestIndex DeserializeTestIndex(ByteBuf _buf) + { + return new test.TestIndex(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Eles; + public readonly System.Collections.Generic.Dictionary Eles_Index = new System.Collections.Generic.Dictionary(); + + public const int __ID__ = 1941154020; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Eles) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "eles:" + Luban.StringUtil.CollectionToString(Eles) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestIndex.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestIndex.cs.meta new file mode 100644 index 00000000..2a89fd71 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestIndex.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f955de528ebdd174b8cd576bb71284c4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMap.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMap.cs new file mode 100644 index 00000000..0e25c1b2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMap.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestMap : Luban.BeanBase + { + public TestMap(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Id_Ref = null; + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X1.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { long _k0; _k0 = _buf.ReadLong(); int _v0; _v0 = _buf.ReadInt(); X2.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { string _k0; _k0 = _buf.ReadString(); int _v0; _v0 = _buf.ReadInt(); X3.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoEnum _k0; _k0 = (test.DemoEnum)_buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X4.Add(_k0, _v0);}} + } + + public static TestMap DeserializeTestMap(ByteBuf _buf) + { + return new test.TestMap(_buf); + } + + public readonly int Id; + public test.TestIndex Id_Ref; + public readonly System.Collections.Generic.Dictionary X1; + public readonly System.Collections.Generic.Dictionary X2; + public readonly System.Collections.Generic.Dictionary X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = -543227410; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Id_Ref = tables.TbTestIndex.GetOrDefault(Id); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMap.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMap.cs.meta new file mode 100644 index 00000000..e009aa96 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ce8253deb90023a46bba25926acb6917 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMapper.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMapper.cs new file mode 100644 index 00000000..1e59ab99 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMapper.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; + + +namespace cfg.test +{ + public sealed partial class TestMapper : Luban.BeanBase + { + public TestMapper(ByteBuf _buf) + { + Id = _buf.ReadInt(); + AudioType = (AudioType)_buf.ReadInt(); + V2 = vec2.Deserializevec2(_buf); + } + + public static TestMapper DeserializeTestMapper(ByteBuf _buf) + { + return new test.TestMapper(_buf); + } + + public readonly int Id; + public readonly AudioType AudioType; + public readonly vec2 V2; + + public const int __ID__ = 149110895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "audioType:" + AudioType + "," + + "v2:" + V2 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMapper.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMapper.cs.meta new file mode 100644 index 00000000..cd024bf6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMapper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 882c4822b38b06349bf507f4bb6c7a6f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..759377b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMultiColumn.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestMultiColumn : Luban.BeanBase + { + public TestMultiColumn(ByteBuf _buf) + { + Id = _buf.ReadInt(); + A = test.Foo.DeserializeFoo(_buf); + B = test.Foo.DeserializeFoo(_buf); + C = test.Foo.DeserializeFoo(_buf); + } + + public static TestMultiColumn DeserializeTestMultiColumn(ByteBuf _buf) + { + return new test.TestMultiColumn(_buf); + } + + public readonly int Id; + public readonly test.Foo A; + public readonly test.Foo B; + public readonly test.Foo C; + + public const int __ID__ = -294473599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + A?.ResolveRef(tables); + B?.ResolveRef(tables); + C?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "a:" + A + "," + + "b:" + B + "," + + "c:" + C + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMultiColumn.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMultiColumn.cs.meta new file mode 100644 index 00000000..85a48c78 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestMultiColumn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3c6da09a71a1be349acf6a3b83937eb9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestNull.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestNull.cs new file mode 100644 index 00000000..6e490f6c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestNull.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestNull : Luban.BeanBase + { + public TestNull(ByteBuf _buf) + { + Id = _buf.ReadInt(); + if(_buf.ReadBool()){ X1 = _buf.ReadInt(); } else { X1 = null; } + if(_buf.ReadBool()){ X2 = (test.DemoEnum)_buf.ReadInt(); } else { X2 = null; } + if(_buf.ReadBool()){ X3 = test.DemoType1.DeserializeDemoType1(_buf); } else { X3 = null; } + if(_buf.ReadBool()){ X4 = test.DemoDynamic.DeserializeDemoDynamic(_buf); } else { X4 = null; } + if(_buf.ReadBool()){ S1 = _buf.ReadString(); } else { S1 = null; } + if(_buf.ReadBool()){ S2 = _buf.ReadString(); } else { S2 = null; } + } + + public static TestNull DeserializeTestNull(ByteBuf _buf) + { + return new test.TestNull(_buf); + } + + public readonly int Id; + public readonly int? X1; + public readonly test.DemoEnum? X2; + public readonly test.DemoType1 X3; + public readonly test.DemoDynamic X4; + public readonly string S1; + public readonly string S2; + + public const int __ID__ = 339868469; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + X3?.ResolveRef(tables); + X4?.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestNull.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestNull.cs.meta new file mode 100644 index 00000000..bad58d05 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 187a4269a03c35e488b23ece2bbe1836 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRef.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRef.cs new file mode 100644 index 00000000..e2d8c977 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRef.cs @@ -0,0 +1,131 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestRef : Luban.BeanBase + { + public TestRef(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadInt(); + X1_Ref = null; + X12 = _buf.ReadInt(); + X12_Ref = null; + X2 = _buf.ReadInt(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadInt(); + X4_Ref = null; + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);A1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); A1[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);A2 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); A2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);C1 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); C1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);C2 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); C2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);D1 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); D1.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);D2 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); D2.Add(_k0, _v0);}} + E1 = _buf.ReadInt(); + E2 = _buf.ReadLong(); + E3 = _buf.ReadString(); + F1 = _buf.ReadInt(); + F2 = _buf.ReadLong(); + F3 = _buf.ReadString(); + S1 = test.RefDynamicBase.DeserializeRefDynamicBase(_buf); + } + + public static TestRef DeserializeTestRef(ByteBuf _buf) + { + return new test.TestRef(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.TestBeRef X1_Ref; + public readonly int X12; + public test.TestBeRef X12_Ref; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public tag.TestTag X4_Ref; + public readonly int[] A1; + public readonly int[] A2; + public readonly System.Collections.Generic.List B1; + public readonly System.Collections.Generic.List B2; + public readonly System.Collections.Generic.HashSet C1; + public readonly System.Collections.Generic.HashSet C2; + public readonly System.Collections.Generic.Dictionary D1; + public readonly System.Collections.Generic.Dictionary D2; + public readonly int E1; + public readonly long E2; + public readonly string E3; + public readonly int F1; + public readonly long F2; + public readonly string F3; + public readonly test.RefDynamicBase S1; + + public const int __ID__ = -543222491; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbTestBeRef.GetOrDefault(X1); + X12_Ref = tables.TbTestBeRef.GetOrDefault(X12); + + + X4_Ref = tables.TbTestTag.GetOrDefault(X4); + + + + + + + + + + + + + + + S1?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x12:" + X12 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "a1:" + Luban.StringUtil.CollectionToString(A1) + "," + + "a2:" + Luban.StringUtil.CollectionToString(A2) + "," + + "b1:" + Luban.StringUtil.CollectionToString(B1) + "," + + "b2:" + Luban.StringUtil.CollectionToString(B2) + "," + + "c1:" + Luban.StringUtil.CollectionToString(C1) + "," + + "c2:" + Luban.StringUtil.CollectionToString(C2) + "," + + "d1:" + Luban.StringUtil.CollectionToString(D1) + "," + + "d2:" + Luban.StringUtil.CollectionToString(D2) + "," + + "e1:" + E1 + "," + + "e2:" + E2 + "," + + "e3:" + E3 + "," + + "f1:" + F1 + "," + + "f2:" + F2 + "," + + "f3:" + F3 + "," + + "s1:" + S1 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRef.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRef.cs.meta new file mode 100644 index 00000000..11ff5711 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5cd90fe36d0b2f34d878e166c718e641 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRow.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRow.cs new file mode 100644 index 00000000..ff339a04 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRow.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestRow : Luban.BeanBase + { + public TestRow(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadBool(); + Z = _buf.ReadString(); + A = test.Test3.DeserializeTest3(_buf); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B.Add(_e0);}} + } + + public static TestRow DeserializeTestRow(ByteBuf _buf) + { + return new test.TestRow(_buf); + } + + public readonly int X; + public readonly bool Y; + public readonly string Z; + public readonly test.Test3 A; + public readonly System.Collections.Generic.List B; + + public const int __ID__ = -543222164; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + A?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "a:" + A + "," + + "b:" + Luban.StringUtil.CollectionToString(B) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRow.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRow.cs.meta new file mode 100644 index 00000000..aae27d21 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 19e0ba59b48ed444f898cb12bb9e8892 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..8d30b947 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestScriptableObject.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestScriptableObject : Luban.BeanBase + { + public TestScriptableObject(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Desc = _buf.ReadString(); + Rate = _buf.ReadFloat(); + Num = _buf.ReadInt(); + V2 = vec2.Deserializevec2(_buf); + V3 = vec3.Deserializevec3(_buf); + V4 = vec4.Deserializevec4(_buf); + } + + public static TestScriptableObject DeserializeTestScriptableObject(ByteBuf _buf) + { + return new test.TestScriptableObject(_buf); + } + + public readonly int Id; + public readonly string Desc; + public readonly float Rate; + public readonly int Num; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + + public const int __ID__ = -1896814350; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "desc:" + Desc + "," + + "rate:" + Rate + "," + + "num:" + Num + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestScriptableObject.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestScriptableObject.cs.meta new file mode 100644 index 00000000..78a20344 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b9d1a4119f1ec484a95d96e05dbc33d4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSet.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSet.cs new file mode 100644 index 00000000..87a4f1ba --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSet.cs @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestSet : Luban.BeanBase + { + public TestSet(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X0 = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { long _e0; _e0 = _buf.ReadLong(); X2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { string _e0; _e0 = _buf.ReadString(); X3.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoEnum _e0; _e0 = (test.DemoEnum)_buf.ReadInt(); X4.Add(_e0);}} + } + + public static TestSet DeserializeTestSet(ByteBuf _buf) + { + return new test.TestSet(_buf); + } + + public readonly int Id; + public readonly string X0; + public readonly System.Collections.Generic.List X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.List X3; + public readonly System.Collections.Generic.List X4; + + public const int __ID__ = -543221516; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x0:" + X0 + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSet.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSet.cs.meta new file mode 100644 index 00000000..99b34f42 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a6577a66e44dfa64eac24430d6443e6f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSize.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSize.cs new file mode 100644 index 00000000..66085a6d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSize.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestSize : Luban.BeanBase + { + public TestSize(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); X1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X3.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X4.Add(_k0, _v0);}} + } + + public static TestSize DeserializeTestSize(ByteBuf _buf) + { + return new test.TestSize(_buf); + } + + public readonly int Id; + public readonly int[] X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.HashSet X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = 340006319; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSize.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSize.cs.meta new file mode 100644 index 00000000..db054cf1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestSize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f6fd90f02439f8b4bb879cd239932947 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestString.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestString.cs new file mode 100644 index 00000000..6cf14f6b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestString.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ + public sealed partial class TestString : Luban.BeanBase + { + public TestString(ByteBuf _buf) + { + Id = _buf.ReadString(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + Cs1 = test.CompactString.DeserializeCompactString(_buf); + Cs2 = test.CompactString.DeserializeCompactString(_buf); + } + + public static TestString DeserializeTestString(ByteBuf _buf) + { + return new test.TestString(_buf); + } + + public readonly string Id; + public readonly string S1; + public readonly string S2; + public readonly test.CompactString Cs1; + public readonly test.CompactString Cs2; + + public const int __ID__ = 338485823; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + Cs1?.ResolveRef(tables); + Cs2?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "cs1:" + Cs1 + "," + + "cs2:" + Cs2 + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestString.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestString.cs.meta new file mode 100644 index 00000000..445db486 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.TestString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3260d73a88fec274fb22bf0f214bdcb2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..88d00c7e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.login.RoleInfo.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test.login +{ + public sealed partial class RoleInfo : test.DemoD3 + { + public RoleInfo(ByteBuf _buf) : base(_buf) + { + RoleId = _buf.ReadLong(); + } + + public static RoleInfo DeserializeRoleInfo(ByteBuf _buf) + { + return new test.login.RoleInfo(_buf); + } + + public readonly long RoleId; + + public const int __ID__ = -989153243; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "roleId:" + RoleId + "," + + "}"; + } + } + +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.login.RoleInfo.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.login.RoleInfo.cs.meta new file mode 100644 index 00000000..bf91b12f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test.login.RoleInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8d8327d4474e6584ca2d09078496007b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test2.Rectangle.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..df879e73 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test2.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; + + +namespace cfg.test2 +{ + /// + /// 矩形 + /// + public sealed partial class Rectangle : test.Shape + { + public Rectangle(ByteBuf _buf) : base(_buf) + { + Width = _buf.ReadFloat(); + Height = _buf.ReadFloat(); + } + + public static Rectangle DeserializeRectangle(ByteBuf _buf) + { + return new test2.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = 694982337; + 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/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test2.Rectangle.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test2.Rectangle.cs.meta new file mode 100644 index 00000000..2b068591 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/test2.Rectangle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 110e504740b64e749b4b9242a3bef0b9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec2.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec2.cs new file mode 100644 index 00000000..97fd6bea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec2.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; + + +namespace cfg +{ + public partial struct vec2 + { + public vec2(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + } + + public static vec2 Deserializevec2(ByteBuf _buf) + { + return new vec2(_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/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec2.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec2.cs.meta new file mode 100644 index 00000000..b56c3db5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0faed655f86b13245ba417b09ceff278 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec3.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec3.cs new file mode 100644 index 00000000..42dd0e7f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec3.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg +{ + public partial struct vec3 + { + public vec3(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + Z = _buf.ReadFloat(); + } + + public static vec3 Deserializevec3(ByteBuf _buf) + { + return new vec3(_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/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec3.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec3.cs.meta new file mode 100644 index 00000000..46391730 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e84ea61f10c95624492c12b90073e763 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec4.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec4.cs new file mode 100644 index 00000000..8b3d2246 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec4.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; + + +namespace cfg +{ + public partial struct vec4 + { + public vec4(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + Z = _buf.ReadFloat(); + W = _buf.ReadFloat(); + } + + public static vec4 Deserializevec4(ByteBuf _buf) + { + return new vec4(_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/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec4.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec4.cs.meta new file mode 100644 index 00000000..9219dd82 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Gen/vec4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7c25be033b74ee04a9fa0cf42dd63bf7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/LubanLib.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/LubanLib.meta new file mode 100644 index 00000000..44d02d11 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/LubanLib.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1800e19965415de438b082c9989373c9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Main.cs b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Main.cs new file mode 100644 index 00000000..89513895 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Main.cs @@ -0,0 +1,83 @@ +using System.Collections; +using System.Collections.Generic; +using System.IO; +using cfg; +using Luban; +using UnityEngine; + +public class Main : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + ConfigManager.LoadTables(); + var tables = ConfigManager.tables; + + //测试获取单个数据 + Debug.Log("========测试获取单个数据开始========"); + //map表数据 + var item = tables.TbItem.Get(1020100001); + Debug.Log("测试map表数据"); + Debug.Log(item); + + //单例表数据 + var global = tables.TbGlobalConfig; + Debug.Log("测试单例表数据"); + Debug.Log(global); + + //联合多主键数据 + var unionIndex = tables.TbMultiUnionIndexList.Get(1, 1, "ab1"); + Debug.Log("测试联合多主键数据"); + Debug.Log(unionIndex); + + //独立多主键数据 + var multiIndex = tables.TbMultiIndexList.GetById1(1); + Debug.Log("测试独立多主键数据"); + Debug.Log(multiIndex); + + //无主键数据 + var notIndex = tables.TbNotIndexList.GetByIndex(0); + Debug.Log("测试无主键数据"); + Debug.Log(notIndex); + Debug.Log("========测试获取单个数据结束========"); + + //测试遍历数据 + Debug.Log("========测试遍历数据开始========"); + //map表数据 + Debug.Log("测试map表数据"); + tables.TbItem.LoadAll((key, value) => + { + Debug.Log($"key: {key} | value: {value}"); + }); + + //联合多主键数据 + Debug.Log("测试联合多主键数据"); + tables.TbMultiUnionIndexList.LoadAll((id1, id2, id3, value) => + { + Debug.Log($"key: {id1},{id2},{id3} | value: {value}"); + }); + + //独立多主键数据 + Debug.Log("测试独立多主键数据"); + tables.TbMultiIndexList.LoadAll((id1, id2, id3, value) => + { + Debug.Log($"key: {id1},{id2},{id3} | value: {value}"); + }); + + //无主键数据 + Debug.Log("测试无主键数据"); + tables.TbNotIndexList.LoadAll((index, value) => + { + Debug.Log($"key: {index} | value: {value}"); + }); + Debug.Log("========测试遍历数据结束========"); + + Debug.Log("========测试Ref特性开始========"); + //测试Ref特性 + var refTest = tables.TbTestRef.Get(1); + Debug.Log("测试Ref特性"); + Debug.Log(refTest); + Debug.Log(refTest.X12_Ref); + Debug.Log("========测试Ref特性结束========"); + } +} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Main.cs.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Main.cs.meta new file mode 100644 index 00000000..660d79e9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Main.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 02c01742cfb166e44a4d1a5cd0595256 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes.meta new file mode 100644 index 00000000..935065cb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 705aaa6a04384c340aec0aaac4b85f7f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes/SampleScene.unity b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes/SampleScene.unity new file mode 100644 index 00000000..e94d69f2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes/SampleScene.unity @@ -0,0 +1,169 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 3 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &810827987 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 810827989} + - component: {fileID: 810827988} + m_Layer: 0 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &810827988 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 02c01742cfb166e44a4d1a5cd0595256, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &810827989 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + 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: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes/SampleScene.unity.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes/SampleScene.unity.meta new file mode 100644 index 00000000..2c1fece9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/Scenes/SampleScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f47aaf9f1663a784b8c9e34aea07d71a +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets.meta new file mode 100644 index 00000000..e7379fee --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 098e68844d46b984fa7d71d3e67f9c20 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config.meta new file mode 100644 index 00000000..708efe0d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c5aae337c9136744e9a8b38c3559e99c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/bin.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/bin.meta new file mode 100644 index 00000000..e0dc043c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/bin.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 64562de196ac23a4ca86f52389d878c4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset.meta new file mode 100644 index 00000000..9ba10a11 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c0da6a5d5bd797a4abc1b48def68f39f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbbehaviortree.bytes b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbbehaviortree.bytes new file mode 100644 index 00000000..55a2d604 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbbehaviortree.bytes @@ -0,0 +1 @@ +l \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbbehaviortree.bytes.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbbehaviortree.bytes.meta new file mode 100644 index 00000000..baf3b298 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbbehaviortree.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9c3f8d5f6d393934d94d7b0e7a19f680 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbblackboard.bytes b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbblackboard.bytes new file mode 100644 index 00000000..855d4457 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbblackboard.bytes @@ -0,0 +1 @@ +attack_or_patroldemo demo_parent7( \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbblackboard.bytes.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbblackboard.bytes.meta new file mode 100644 index 00000000..431b6261 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/ai_tbblackboard.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 31a75b3f3894996439b234c774072d1b +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/common_tbglobalconfig.bytes b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/common_tbglobalconfig.bytes new file mode 100644 index 00000000..1558a1bc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/common_tbglobalconfig.bytes @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/common_tbglobalconfig.bytes.meta b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/common_tbglobalconfig.bytes.meta new file mode 100644 index 00000000..ee9d1d1e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/common_tbglobalconfig.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 603276f3cc1685647a9b5ccaa8437335 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/item_tbitem.bytes b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/item_tbitem.bytes new file mode 100644 index 00000000..9182ea0a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Assets/StreamingAssets/Config/offset/item_tbitem.bytes @@ -0,0 +1 @@ +TTVPVP\<}`<A d<Њpd<R<Ә!&`<b<֥aj", + "ignore": false, + "defaultInstantiationMode": 1, + "supportsModification": true + }, + "newSceneOverride": 0 +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/TagManager.asset b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/TagManager.asset new file mode 100644 index 00000000..1c92a784 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/TimeManager.asset b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/TimeManager.asset new file mode 100644 index 00000000..558a017e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/TimeManager.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: 0.02 + Maximum Allowed Timestep: 0.33333334 + m_TimeScale: 1 + Maximum Particle Timestep: 0.03 diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/UnityConnectSettings.asset b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 00000000..a88bee0f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,36 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 1 + m_Enabled: 0 + m_TestMode: 0 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events + m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_DashboardUrl: https://dashboard.unity3d.com + m_TestInitMode: 0 + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com + m_Enabled: 0 + m_LogBufferSize: 10 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_TestMode: 0 + m_InitializeOnStartup: 1 + m_PackageRequiringCoreStatsPresent: 0 + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_IosGameId: + m_AndroidGameId: + m_GameIds: {} + m_GameId: + PerformanceReportingSettings: + m_Enabled: 0 diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/VFXManager.asset b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/VFXManager.asset new file mode 100644 index 00000000..3a95c98b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/VFXManager.asset @@ -0,0 +1,12 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/VersionControlSettings.asset b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 00000000..dca28814 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/XRSettings.asset b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/XRSettings.asset new file mode 100644 index 00000000..482590c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Unity.sln b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Unity.sln new file mode 100644 index 00000000..d57f5f13 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/Unity.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{CD8C9303-404B-FB8D-6B9B-21988D5CAC0A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CD8C9303-404B-FB8D-6B9B-21988D5CAC0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CD8C9303-404B-FB8D-6B9B-21988D5CAC0A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CD8C9303-404B-FB8D-6B9B-21988D5CAC0A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CD8C9303-404B-FB8D-6B9B-21988D5CAC0A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/EditorUserSettings.asset b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/EditorUserSettings.asset new file mode 100644 index 00000000..ea1eb766 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/EditorUserSettings.asset @@ -0,0 +1,28 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!162 &1 +EditorUserSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_ConfigSettings: + RecentlyUsedSceneGuid-0: + value: 050503070453505d5c585a7111740744144f1b73297b723128284d64e6b76539 + flags: 0 + vcSharedLogLevel: + value: 0d5e400f0650 + flags: 0 + m_VCAutomaticAdd: 1 + m_VCDebugCom: 0 + m_VCDebugCmd: 0 + m_VCDebugOut: 0 + m_SemanticMergeMode: 2 + m_DesiredImportWorkerCount: 4 + m_StandbyImportWorkerCount: 2 + m_IdleImportWorkerShutdownDelay: 60000 + m_VCShowFailedCheckout: 1 + m_VCOverwriteFailedCheckoutAssets: 1 + m_VCProjectOverlayIcons: 1 + m_VCHierarchyOverlayIcons: 1 + m_VCOtherOverlayIcons: 1 + m_VCAllowAsyncUpdate: 1 + m_ArtifactGarbageCollection: 1 diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Layouts/default-2022.dwlt b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Layouts/default-2022.dwlt new file mode 100644 index 00000000..6fc59dfb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Layouts/default-2022.dwlt @@ -0,0 +1,1152 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_PixelRect: + serializedVersion: 2 + x: 0 + y: 43.2 + width: 2048 + height: 1068.8 + m_ShowMode: 4 + m_Title: Console + m_RootView: {fileID: 5} + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_Maximized: 1 +--- !u!114 &2 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: ConsoleWindow + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1033.6 + height: 429.6 + m_MinSize: {x: 101, y: 121} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 16} + m_Panes: + - {fileID: 13} + - {fileID: 16} + m_Selected: 1 + m_LastSelected: 0 +--- !u!114 &3 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 2} + - {fileID: 9} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1033.6 + height: 1018.80005 + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 8096, y: 16192} + vertical: 1 + controlID: 53 +--- !u!114 &4 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 8} + m_Position: + serializedVersion: 2 + x: 0 + y: 30 + width: 2048 + height: 1018.80005 + m_MinSize: {x: 400, y: 100} + m_MaxSize: {x: 32384, y: 16192} + vertical: 1 + controlID: 132 +--- !u!114 &5 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 6} + - {fileID: 4} + - {fileID: 7} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 2048 + height: 1068.8 + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_UseTopView: 1 + m_TopViewHeight: 30 + m_UseBottomView: 1 + m_BottomViewHeight: 20 +--- !u!114 &6 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 2048 + height: 30 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} + m_LastLoadedLayoutName: +--- !u!114 &7 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 1048.8 + width: 2048 + height: 20 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} +--- !u!114 &8 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 3} + - {fileID: 10} + - {fileID: 11} + - {fileID: 12} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 2048 + height: 1018.80005 + m_MinSize: {x: 400, y: 100} + m_MaxSize: {x: 32384, y: 16192} + vertical: 0 + controlID: 133 +--- !u!114 &9 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: GameView + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 429.6 + width: 1033.6 + height: 589.2001 + m_MinSize: {x: 201, y: 221} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 15} + m_Panes: + - {fileID: 14} + - {fileID: 15} + m_Selected: 1 + m_LastSelected: 1 +--- !u!114 &10 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 1033.6 + y: 0 + width: 207.20007 + height: 1018.80005 + m_MinSize: {x: 202, y: 221} + m_MaxSize: {x: 4002, y: 4021} + m_ActualView: {fileID: 17} + m_Panes: + - {fileID: 17} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &11 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: ProjectBrowser + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 1240.8 + y: 0 + width: 424 + height: 1018.80005 + m_MinSize: {x: 232, y: 271} + m_MaxSize: {x: 10002, y: 10021} + m_ActualView: {fileID: 18} + m_Panes: + - {fileID: 18} + m_Selected: 0 + m_LastSelected: 1 +--- !u!114 &12 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 1664.8 + y: 0 + width: 383.19995 + height: 1018.80005 + m_MinSize: {x: 276, y: 71} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 19} + m_Panes: + - {fileID: 19} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &13 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Scene + m_Image: {fileID: 8634526014445323508, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 7.2000003 + y: 80.8 + width: 1007.8 + height: 402.2 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: + - dockPosition: 0 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: -100, y: -25.600006} + snapCorner: 3 + id: Tool Settings + index: 0 + layout: 1 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 0 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: -141, y: 149} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 1 + id: unity-grid-and-snap-toolbar + index: 1 + layout: 1 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: unity-scene-view-toolbar + index: 0 + layout: 1 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 1 + id: unity-search-toolbar + index: 1 + layout: 1 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 0 + containerId: overlay-container--left + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: unity-transform-toolbar + index: 0 + layout: 2 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 0 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 67.5, y: 86} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Orientation + index: 0 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Light Settings + index: 0 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Camera + index: 1 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Cloth Constraints + index: 1 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Cloth Collisions + index: 2 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Navmesh Display + index: 4 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Agent Display + index: 5 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Obstacle Display + index: 6 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Occlusion Culling + index: 3 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Physics Debugger + index: 4 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Scene Visibility + index: 5 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Particles + index: 6 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 48, y: 48} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Open Tile Palette + index: 0 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 48, y: 48} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Tilemap Focus + index: 1 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 48, y: 48} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Path + index: 9 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 48, y: 48} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: AINavigationOverlay + index: 10 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 48, y: 48} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: APV Overlay + index: 11 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 48, y: 48} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/TrailRenderer + index: 7 + layout: 4 + size: {x: 0, y: 0} + sizeOverriden: 0 + m_OverlaysVisible: 1 + m_WindowGUID: 03b83fd17f9cff1428a0305872c0075f + m_Gizmos: 1 + m_OverrideSceneCullingMask: 6917529027641081856 + m_SceneIsLit: 1 + m_SceneLighting: 1 + m_2DMode: 0 + m_isRotationLocked: 0 + m_PlayAudio: 0 + m_AudioPlay: 0 + m_Position: + m_Target: {x: 0, y: 0, z: 0} + speed: 2 + m_Value: {x: 0, y: 0, z: 0} + m_RenderMode: 0 + m_CameraMode: + drawMode: 0 + name: Shaded + section: Shading Mode + m_ValidateTrueMetals: 0 + m_DoValidateTrueMetals: 0 + m_SceneViewState: + m_AlwaysRefresh: 0 + showFog: 1 + showSkybox: 1 + showFlares: 1 + showImageEffects: 1 + showParticleSystems: 1 + showVisualEffectGraphs: 1 + m_FxEnabled: 1 + m_Grid: + xGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + yGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 1, y: 1} + zGrid: + m_Fade: + m_Target: 1 + speed: 2 + m_Value: 1 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 1, y: 1} + m_ShowGrid: 1 + m_GridAxis: 1 + m_gridOpacity: 0.5 + m_Rotation: + m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + speed: 2 + m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + m_Size: + m_Target: 10 + speed: 2 + m_Value: 10 + m_Ortho: + m_Target: 0 + speed: 2 + m_Value: 0 + m_CameraSettings: + m_Speed: 1 + m_SpeedNormalized: 0.5 + m_SpeedMin: 0.01 + m_SpeedMax: 2 + m_EasingEnabled: 1 + m_EasingDuration: 0.4 + m_AccelerationEnabled: 1 + m_FieldOfViewHorizontalOrVertical: 60 + m_NearClip: 0.03 + m_FarClip: 10000 + m_DynamicClip: 1 + m_OcclusionCulling: 0 + m_LastSceneViewRotation: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + m_LastSceneViewOrtho: 0 + m_ReplacementShader: {fileID: 0} + m_ReplacementString: + m_SceneVisActive: 1 + m_LastLockedObject: {fileID: 0} + m_ViewIsLockedToObject: 0 +--- !u!114 &14 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12071, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Animation + m_Image: {fileID: -3237396543322336831, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 0 + y: 489.6 + width: 1064.6 + height: 581.80005 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_OverlaysVisible: 1 + m_LockTracker: + m_IsLocked: 0 + m_LastSelectedObjectID: 23414 +--- !u!114 &15 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Game + m_Image: {fileID: 4621777727084837110, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 0 + y: 503.2 + width: 1032.6 + height: 568.2001 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_OverlaysVisible: 1 + m_SerializedViewNames: + - UnityEditor.DeviceSimulation.SimulatorWindow + m_SerializedViewValues: + - D:\WorkPlace\Projects\IntoImmortal\SlgGame\Client\Trunk\Library\PlayModeViewStates\7b1c2a04a73031f469d5a79aec6669e6 + m_PlayModeViewName: GameView + m_ShowGizmos: 0 + m_TargetDisplay: 0 + m_ClearColor: {r: 0, g: 0, b: 0, a: 0} + m_TargetSize: {x: 1330, y: 750} + m_TextureFilterMode: 0 + m_TextureHideFlags: 61 + m_RenderIMGUI: 1 + m_EnterPlayModeBehavior: 0 + m_UseMipMap: 0 + m_VSyncEnabled: 0 + m_Gizmos: 0 + m_Stats: 0 + m_SelectedSizes: 07000000000000000000000006000000000000000000000000000000000000000000000000000000 + m_ZoomArea: + m_HRangeLocked: 0 + m_VRangeLocked: 0 + hZoomLockedByDefault: 0 + vZoomLockedByDefault: 0 + m_HBaseRangeMin: -532 + m_HBaseRangeMax: 532 + m_VBaseRangeMin: -300 + m_VBaseRangeMax: 300 + m_HAllowExceedBaseRangeMin: 1 + m_HAllowExceedBaseRangeMax: 1 + m_VAllowExceedBaseRangeMin: 1 + m_VAllowExceedBaseRangeMax: 1 + m_ScaleWithWindow: 0 + m_HSlider: 0 + m_VSlider: 0 + m_IgnoreScrollWheelUntilClicked: 0 + m_EnableMouseInput: 1 + m_EnableSliderZoomHorizontal: 0 + m_EnableSliderZoomVertical: 0 + m_UniformScale: 1 + m_UpDirection: 1 + m_DrawArea: + serializedVersion: 2 + x: 0 + y: 21 + width: 1032.6 + height: 547.2001 + m_Scale: {x: 0.9120001, y: 0.9120001} + m_Translation: {x: 516.3, y: 273.60004} + m_MarginLeft: 0 + m_MarginRight: 0 + m_MarginTop: 0 + m_MarginBottom: 0 + m_LastShownAreaInsideMargins: + serializedVersion: 2 + x: -566.11835 + y: -300 + width: 1132.2367 + height: 600 + m_MinimalGUI: 1 + m_defaultScale: 0.9120001 + m_LastWindowPixelSize: {x: 1290.75, y: 710.2501} + m_ClearInEditMode: 1 + m_NoCameraWarning: 1 + m_LowResolutionForAspectRatios: 01000000000000000000 + m_XRRenderMode: 0 + m_RenderTexture: {fileID: 0} +--- !u!114 &16 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Console + m_Image: {fileID: -4950941429401207979, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 0 + y: 73.6 + width: 1032.6 + height: 408.6 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_OverlaysVisible: 1 +--- !u!114 &17 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Hierarchy + m_Image: {fileID: -3734745235275155857, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 1033.6 + y: 73.6 + width: 205.20007 + height: 997.80005 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_OverlaysVisible: 1 + m_SceneHierarchy: + m_TreeViewState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: 1cfbffff + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 0 + m_ClientGUIView: {fileID: 10} + m_SearchString: + m_ExpandedScenes: [] + m_CurrenRootInstanceID: 0 + m_LockTracker: + m_IsLocked: 0 + m_CurrentSortingName: TransformSorting + m_WindowGUID: 7570dace8a73400469dcfc1bf18d5db0 +--- !u!114 &18 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 230, y: 250} + m_MaxSize: {x: 10000, y: 10000} + m_TitleContent: + m_Text: Project + m_Image: {fileID: -5179483145760003458, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 1240.8 + y: 73.6 + width: 422 + height: 997.80005 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_OverlaysVisible: 1 + m_SearchFilter: + m_NameFilter: + m_ClassNames: [] + m_AssetLabels: [] + m_AssetBundleNames: [] + m_ReferencingInstanceIDs: + m_SceneHandles: + m_ShowAllHits: 0 + m_SkipHidden: 0 + m_SearchArea: 1 + m_Folders: [] + m_Globs: [] + m_OriginalText: + m_ImportLogFlags: 0 + m_FilterByTypeIntersection: 0 + m_ViewMode: 0 + m_StartGridSize: 16 + m_LastFolders: [] + m_LastFoldersGridSize: -1 + m_LastProjectPath: D:\WorkPlace\Projects\luban_examples\Projects\Csharp_Unity_LazyLoad_bin\Unity + m_LockTracker: + m_IsLocked: 0 + m_FolderTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: b02d0100 + m_LastClickedID: 77232 + m_ExpandedIDs: 00000000845a0000865a0000885a00008a5a0000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_AssetTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: ffffffff00000000845a0000865a0000885a00008a5a0000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 11} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_ListAreaState: + m_SelectedInstanceIDs: + m_LastClickedInstanceID: 0 + m_HadKeyboardFocusLastEvent: 0 + m_ExpandedInstanceIDs: + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 11} + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_NewAssetIndexInList: -1 + m_ScrollPosition: {x: 0, y: 0} + m_GridSize: 16 + m_SkipHiddenPackages: 0 + m_DirectoriesAreaWidth: 115 +--- !u!114 &19 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 275, y: 50} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Inspector + m_Image: {fileID: -440750813802333266, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 1664.8 + y: 73.6 + width: 382.19995 + height: 997.80005 + m_SerializedDataModeController: + m_DataMode: 0 + m_PreferredDataMode: 0 + m_SupportedDataModes: + isAutomatic: 1 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_OverlaysVisible: 1 + m_ObjectsLockedBeforeSerialization: [] + m_InstanceIDsLockedBeforeSerialization: + m_PreviewResizer: + m_CachedPref: 160 + m_ControlHash: -371814159 + m_PrefName: Preview_InspectorPreview + m_LastInspectedObjectInstanceID: -1 + m_LastVerticalScrollValue: 0 + m_GlobalObjectId: + m_InspectorMode: 0 + m_LockTracker: + m_IsLocked: 0 + m_PreviewWindow: {fileID: 0} diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Search.index b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Search.index new file mode 100644 index 00000000..dba62d53 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Search.index @@ -0,0 +1,13 @@ +{ + "name": "Assets", + "roots": ["Assets"], + "includes": [], + "excludes": [], + "options": { + "types": true, + "properties": true, + "extended": false, + "dependencies": false + }, + "baseScore": 999 +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Search.settings b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Search.settings new file mode 100644 index 00000000..477e4d61 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/Unity/UserSettings/Search.settings @@ -0,0 +1,75 @@ +trackSelection = true +refreshSearchWindowsInPlayMode = false +fetchPreview = true +defaultFlags = 0 +keepOpen = false +queryFolder = "Assets" +onBoardingDoNotAskAgain = true +showPackageIndexes = false +showStatusBar = false +scopes = { +} +providers = { + log = { + active = false + priority = 210 + defaultAction = null + } + performance = { + active = false + priority = 100 + defaultAction = null + } + asset = { + active = true + priority = 25 + defaultAction = null + } + packages = { + active = true + priority = 90 + defaultAction = null + } + profilermarkers = { + active = false + priority = 100 + defaultAction = null + } + find = { + active = true + priority = 25 + defaultAction = null + } + scene = { + active = true + priority = 50 + defaultAction = null + } + store = { + active = true + priority = 100 + defaultAction = null + } + adb = { + active = false + priority = 2500 + defaultAction = null + } +} +objectSelectors = { +} +recentSearches = [ +] +searchItemFavorites = [ +] +savedSearchesSortOrder = 0 +showSavedSearchPanel = false +hideTabs = false +expandedQueries = [ +] +queryBuilder = false +ignoredProperties = "id;name;classname;imagecontentshash" +helperWidgetCurrentArea = "all" +disabledIndexers = "" +minIndexVariations = 2 +findProviderIndexHelper = true \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/gen.bat b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/gen.bat new file mode 100644 index 00000000..10af2261 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_LazyLoad_bin/gen.bat @@ -0,0 +1,17 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t client ^ + -c cs-lazyload-bin ^ + -d bin bin-offsetlength ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Unity/Assets/Gen ^ + -x bin.outputDataDir=Unity/Assets/StreamingAssets/Config/bin ^ + -x bin-offsetlength.outputDataDir=Unity/Assets/StreamingAssets/Config/offset ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_bin/.vsconfig b/luban_examples/Projects/Csharp_Unity_bin/.vsconfig new file mode 100644 index 00000000..aade28f6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/.vsconfig @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Workload.ManagedGame" + ] +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assembly-CSharp-firstpass.csproj b/luban_examples/Projects/Csharp_Unity_bin/Assembly-CSharp-firstpass.csproj new file mode 100644 index 00000000..a8332532 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assembly-CSharp-firstpass.csproj @@ -0,0 +1,671 @@ + + + + 8.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {52DC3404-C900-DE0B-304F-4674B2FA99E3} + Library + Properties + Assembly-CSharp-firstpass + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + DEBUG;TRACE;UNITY_2020_3_7;UNITY_2020_3;UNITY_2020;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.7 + GamePlugins:3 + StandaloneWindows64:19 + 2020.3.7f1c1 + + + + + + + + + + + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\mscorlib.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Core.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Runtime.Serialization.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Xml.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Xml.Linq.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Numerics.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Numerics.Vectors.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Net.Http.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Microsoft.CSharp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Data.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\Microsoft.Win32.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\netstandard.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.AppContext.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.Concurrent.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.NonGeneric.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.Specialized.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.Annotations.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.TypeConverter.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Console.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Data.Common.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Contracts.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Debug.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Process.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.StackTrace.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Tools.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.TraceSource.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Drawing.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Dynamic.Runtime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.Calendars.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.Compression.ZipFile.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.Watcher.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.IsolatedStorage.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.MemoryMappedFiles.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.Pipes.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Expressions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Parallel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Queryable.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Http.Rtc.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.NameResolution.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.NetworkInformation.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Ping.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Requests.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Security.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Sockets.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebHeaderCollection.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebSockets.Client.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebSockets.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ObjectModel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.Lightweight.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.Reader.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.ResourceManager.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.Writer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Handles.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Numerics.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Formatters.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Json.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Xml.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Claims.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Algorithms.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Csp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Encoding.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Principal.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.SecureString.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Duplex.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Http.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.NetTcp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Security.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.Encoding.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.Encoding.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.RegularExpressions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Overlapped.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Tasks.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Tasks.Parallel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Thread.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.ThreadPool.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Timer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ValueTuple.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.ReaderWriter.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XDocument.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XmlDocument.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XmlSerializer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XPath.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XPath.XDocument.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assembly-CSharp.csproj b/luban_examples/Projects/Csharp_Unity_bin/Assembly-CSharp.csproj new file mode 100644 index 00000000..ec7cbb8d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assembly-CSharp.csproj @@ -0,0 +1,1163 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {8C2340B4-3502-9303-941B-EFC922FC43DA} + Library + Properties + Assembly-CSharp + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Game:1 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.Editor.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Shared.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.SettingsProvider.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.PlasticSCM.Editor.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.dll + + + + + {18712A1F-D2F0-F17D-E630-F55F42737BC5} + Luban.Runtime + + + {815A83B3-18E9-192D-5914-8C2B3544DEBC} + Luban.Editor + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/ExternalTypeUtil.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/ExternalTypeUtil.cs new file mode 100644 index 00000000..aa44a253 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/ExternalTypeUtil.cs @@ -0,0 +1,17 @@ +public static class ExternalTypeUtil +{ + public static UnityEngine.Vector2 NewVector2(cfg.vec2 v) + { + return new UnityEngine.Vector2(v.X, v.Y); + } + + public static UnityEngine.Vector3 NewVector3(cfg.vec3 v) + { + return new UnityEngine.Vector3(v.X, v.Y, v.Z); + } + + public static UnityEngine.Vector4 NewVector4(cfg.vec4 v) + { + return new UnityEngine.Vector4(v.X, v.Y, v.Z, v.W); + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/ExternalTypeUtil.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/ExternalTypeUtil.cs.meta new file mode 100644 index 00000000..f7af9794 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/ExternalTypeUtil.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1025879bae878aa42913e40d309881f1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen.meta new file mode 100644 index 00000000..8a2417ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1f51b80845c14ce4e8015f0e7c83c1c3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/AudioType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/AudioType.cs new file mode 100644 index 00000000..3ac4c0e7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/AudioType.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/AudioType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/AudioType.cs.meta new file mode 100644 index 00000000..3c31e474 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/AudioType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ce937d6a27a5fbc40a38a8fd3359ccd6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/DefineFromExcel2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..526d742b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/DefineFromExcel2.cs @@ -0,0 +1,119 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg +{ +public sealed partial class DefineFromExcel2 : Luban.BeanBase +{ + public DefineFromExcel2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X8 = _buf.ReadInt(); + X10 = _buf.ReadString(); + X13 = (test.DemoEnum)_buf.ReadInt(); + X132 = (test.DemoFlag)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + X15 = test.Shape.DeserializeShape(_buf); + V2 = vec2.Deserializevec2(_buf); + T1 = _buf.ReadLong(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K10 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { vec3 _e0; _e0 = vec3.Deserializevec3(_buf); K10.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K11 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { vec4 _e0; _e0 = vec4.Deserializevec4(_buf); K11.Add(_e0);}} + } + + public static DefineFromExcel2 DeserializeDefineFromExcel2(ByteBuf _buf) + { + return new DefineFromExcel2(_buf); + } + + /// + /// 这是id + /// + public readonly int Id; + /// + /// 字段x1 + /// + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly int X8; + public readonly string X10; + public readonly test.DemoEnum X13; + public readonly test.DemoFlag X132; + public readonly test.DemoDynamic X14; + public readonly test.Shape X15; + public readonly vec2 V2; + public readonly long T1; + public readonly int[] K1; + public readonly int[] K2; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly System.Collections.Generic.List K10; + public readonly System.Collections.Generic.List K11; + + public const int __ID__ = 482045152; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + X14?.ResolveRef(tables); + X15?.ResolveRef(tables); + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x8:" + X8 + "," + + "x10:" + X10 + "," + + "x13:" + X13 + "," + + "x132:" + X132 + "," + + "x14:" + X14 + "," + + "x15:" + X15 + "," + + "v2:" + V2 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k10:" + Luban.StringUtil.CollectionToString(K10) + "," + + "k11:" + Luban.StringUtil.CollectionToString(K11) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/DefineFromExcel2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/DefineFromExcel2.cs.meta new file mode 100644 index 00000000..f94499a8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/DefineFromExcel2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4523954957280f24d97120646f99c40f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/Tables.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/Tables.cs new file mode 100644 index 00000000..5b0eb24b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/Tables.cs @@ -0,0 +1,156 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + +namespace cfg +{ +public partial class Tables +{ + public ai.TbBlackboard TbBlackboard {get; } + public ai.TbBehaviorTree TbBehaviorTree {get; } + public common.TbGlobalConfig TbGlobalConfig {get; } + /// + /// 道具表 + /// + public item.TbItem TbItem {get; } + public l10n.TbL10NDemo TbL10NDemo {get; } + public l10n.TbPatchDemo TbPatchDemo {get; } + public tag.TbTestTag TbTestTag {get; } + public test.TbFullTypes TbFullTypes {get; } + public test.TbSingleton TbSingleton {get; } + public test.TbNotIndexList TbNotIndexList {get; } + public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; } + public test.TbMultiIndexList TbMultiIndexList {get; } + public test.TbDataFromMisc TbDataFromMisc {get; } + public test.TbMultiRowRecord TbMultiRowRecord {get; } + public test.TbTestMultiColumn TbTestMultiColumn {get; } + public test.TbMultiRowTitle TbMultiRowTitle {get; } + public test.TbTestNull TbTestNull {get; } + public test.TbDemoPrimitive TbDemoPrimitive {get; } + public test.TbTestString TbTestString {get; } + public test.TbDemoGroup TbDemoGroup {get; } + public test.TbDemoGroup_C TbDemoGroupC {get; } + public test.TbDemoGroup_S TbDemoGroupS {get; } + public test.TbDemoGroup_E TbDemoGroupE {get; } + public test.TbTestGlobal TbTestGlobal {get; } + public test.TbTestBeRef TbTestBeRef {get; } + public test.TbTestBeRef2 TbTestBeRef2 {get; } + public test.TbTestRef TbTestRef {get; } + public test.TbTestSize TbTestSize {get; } + public test.TbTestSet TbTestSet {get; } + public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; } + public test.TbItem2 TbItem2 {get; } + public test.TbTestIndex TbTestIndex {get; } + public test.TbTestMap TbTestMap {get; } + public test.TbExcelFromJson TbExcelFromJson {get; } + public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; } + public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; } + public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; } + public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; } + public test.TbTestScriptableObject TbTestScriptableObject {get; } + public test.TbPath TbPath {get; } + public test.TbTestMapper TbTestMapper {get; } + public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; } + + public Tables(System.Func loader) + { + TbBlackboard = new ai.TbBlackboard(loader("ai_tbblackboard")); + TbBehaviorTree = new ai.TbBehaviorTree(loader("ai_tbbehaviortree")); + TbGlobalConfig = new common.TbGlobalConfig(loader("common_tbglobalconfig")); + TbItem = new item.TbItem(loader("item_tbitem")); + TbL10NDemo = new l10n.TbL10NDemo(loader("l10n_tbl10ndemo")); + TbPatchDemo = new l10n.TbPatchDemo(loader("l10n_tbpatchdemo")); + TbTestTag = new tag.TbTestTag(loader("tag_tbtesttag")); + TbFullTypes = new test.TbFullTypes(loader("test_tbfulltypes")); + TbSingleton = new test.TbSingleton(loader("test_tbsingleton")); + TbNotIndexList = new test.TbNotIndexList(loader("test_tbnotindexlist")); + TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader("test_tbmultiunionindexlist")); + TbMultiIndexList = new test.TbMultiIndexList(loader("test_tbmultiindexlist")); + TbDataFromMisc = new test.TbDataFromMisc(loader("test_tbdatafrommisc")); + TbMultiRowRecord = new test.TbMultiRowRecord(loader("test_tbmultirowrecord")); + TbTestMultiColumn = new test.TbTestMultiColumn(loader("test_tbtestmulticolumn")); + TbMultiRowTitle = new test.TbMultiRowTitle(loader("test_tbmultirowtitle")); + TbTestNull = new test.TbTestNull(loader("test_tbtestnull")); + TbDemoPrimitive = new test.TbDemoPrimitive(loader("test_tbdemoprimitive")); + TbTestString = new test.TbTestString(loader("test_tbteststring")); + TbDemoGroup = new test.TbDemoGroup(loader("test_tbdemogroup")); + TbDemoGroupC = new test.TbDemoGroup_C(loader("test_tbdemogroup_c")); + TbDemoGroupS = new test.TbDemoGroup_S(loader("test_tbdemogroup_s")); + TbDemoGroupE = new test.TbDemoGroup_E(loader("test_tbdemogroup_e")); + TbTestGlobal = new test.TbTestGlobal(loader("test_tbtestglobal")); + TbTestBeRef = new test.TbTestBeRef(loader("test_tbtestberef")); + TbTestBeRef2 = new test.TbTestBeRef2(loader("test_tbtestberef2")); + TbTestRef = new test.TbTestRef(loader("test_tbtestref")); + TbTestSize = new test.TbTestSize(loader("test_tbtestsize")); + TbTestSet = new test.TbTestSet(loader("test_tbtestset")); + TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader("test_tbdetectcsvencoding")); + TbItem2 = new test.TbItem2(loader("test_tbitem2")); + TbTestIndex = new test.TbTestIndex(loader("test_tbtestindex")); + TbTestMap = new test.TbTestMap(loader("test_tbtestmap")); + TbExcelFromJson = new test.TbExcelFromJson(loader("test_tbexcelfromjson")); + TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader("test_tbcompositejsontable1")); + TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader("test_tbcompositejsontable2")); + TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader("test_tbcompositejsontable3")); + TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader("test_tbexcelfromjsonmultirow")); + TbTestScriptableObject = new test.TbTestScriptableObject(loader("test_tbtestscriptableobject")); + TbPath = new test.TbPath(loader("test_tbpath")); + TbTestMapper = new test.TbTestMapper(loader("test_tbtestmapper")); + TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader("test_tbdefinefromexcel2")); + ResolveRef(); + } + + private void ResolveRef() + { + TbBlackboard.ResolveRef(this); + TbBehaviorTree.ResolveRef(this); + TbGlobalConfig.ResolveRef(this); + TbItem.ResolveRef(this); + TbL10NDemo.ResolveRef(this); + TbPatchDemo.ResolveRef(this); + TbTestTag.ResolveRef(this); + TbFullTypes.ResolveRef(this); + TbSingleton.ResolveRef(this); + TbNotIndexList.ResolveRef(this); + TbMultiUnionIndexList.ResolveRef(this); + TbMultiIndexList.ResolveRef(this); + TbDataFromMisc.ResolveRef(this); + TbMultiRowRecord.ResolveRef(this); + TbTestMultiColumn.ResolveRef(this); + TbMultiRowTitle.ResolveRef(this); + TbTestNull.ResolveRef(this); + TbDemoPrimitive.ResolveRef(this); + TbTestString.ResolveRef(this); + TbDemoGroup.ResolveRef(this); + TbDemoGroupC.ResolveRef(this); + TbDemoGroupS.ResolveRef(this); + TbDemoGroupE.ResolveRef(this); + TbTestGlobal.ResolveRef(this); + TbTestBeRef.ResolveRef(this); + TbTestBeRef2.ResolveRef(this); + TbTestRef.ResolveRef(this); + TbTestSize.ResolveRef(this); + TbTestSet.ResolveRef(this); + TbDetectCsvEncoding.ResolveRef(this); + TbItem2.ResolveRef(this); + TbTestIndex.ResolveRef(this); + TbTestMap.ResolveRef(this); + TbExcelFromJson.ResolveRef(this); + TbCompositeJsonTable1.ResolveRef(this); + TbCompositeJsonTable2.ResolveRef(this); + TbCompositeJsonTable3.ResolveRef(this); + TbExcelFromJsonMultiRow.ResolveRef(this); + TbTestScriptableObject.ResolveRef(this); + TbPath.ResolveRef(this); + TbTestMapper.ResolveRef(this); + TbDefineFromExcel2.ResolveRef(this); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/Tables.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/Tables.cs.meta new file mode 100644 index 00000000..2d467aee --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/Tables.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a6262edd0fce31469ba5eae1bff3cef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..e1510515 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BehaviorTree.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class BehaviorTree : Luban.BeanBase +{ + public BehaviorTree(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + BlackboardId = _buf.ReadString(); + BlackboardId_Ref = null; + Root = ai.ComposeNode.DeserializeComposeNode(_buf); + } + + public static BehaviorTree DeserializeBehaviorTree(ByteBuf _buf) + { + return new ai.BehaviorTree(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + public readonly string BlackboardId; + public ai.Blackboard BlackboardId_Ref; + public readonly ai.ComposeNode Root; + + public const int __ID__ = 159552822; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId); + Root?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "blackboardId:" + BlackboardId + "," + + "root:" + Root + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BehaviorTree.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BehaviorTree.cs.meta new file mode 100644 index 00000000..ea37a2cb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BehaviorTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 195e9966dee3e1a438fc23c3a8651fef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..bc72bb36 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BinaryOperator.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; + + +namespace cfg.ai +{ +public sealed partial class BinaryOperator : ai.KeyQueryOperator +{ + public BinaryOperator(ByteBuf _buf) : base(_buf) + { + Oper = (ai.EOperator)_buf.ReadInt(); + Data = ai.KeyData.DeserializeKeyData(_buf); + } + + public static BinaryOperator DeserializeBinaryOperator(ByteBuf _buf) + { + return new ai.BinaryOperator(_buf); + } + + public readonly ai.EOperator Oper; + public readonly ai.KeyData Data; + + public const int __ID__ = -979891605; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + Data?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "oper:" + Oper + "," + + "data:" + Data + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BinaryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BinaryOperator.cs.meta new file mode 100644 index 00000000..dac889a6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BinaryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb1c92773b94a9b43a5fd57e57acaec4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Blackboard.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..7bfae359 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Blackboard.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class Blackboard : Luban.BeanBase +{ + public Blackboard(ByteBuf _buf) + { + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + ParentName = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Keys = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.BlackboardKey _e0; _e0 = ai.BlackboardKey.DeserializeBlackboardKey(_buf); Keys.Add(_e0);}} + } + + public static Blackboard DeserializeBlackboard(ByteBuf _buf) + { + return new ai.Blackboard(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly string ParentName; + public readonly System.Collections.Generic.List Keys; + + public const int __ID__ = 1576193005; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + foreach (var _e in Keys) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "parentName:" + ParentName + "," + + "keys:" + Luban.StringUtil.CollectionToString(Keys) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Blackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Blackboard.cs.meta new file mode 100644 index 00000000..a3504f94 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Blackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 85609550b0a3fc34c89c579d60bcd3d2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..5df4ebb2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKey.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKey : Luban.BeanBase +{ + public BlackboardKey(ByteBuf _buf) + { + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + IsStatic = _buf.ReadBool(); + Type = (ai.EKeyType)_buf.ReadInt(); + TypeClassName = _buf.ReadString(); + } + + public static BlackboardKey DeserializeBlackboardKey(ByteBuf _buf) + { + return new ai.BlackboardKey(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly bool IsStatic; + public readonly ai.EKeyType Type; + public readonly string TypeClassName; + + public const int __ID__ = -511559886; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "isStatic:" + IsStatic + "," + + "type:" + Type + "," + + "typeClassName:" + TypeClassName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKey.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKey.cs.meta new file mode 100644 index 00000000..70800011 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKey.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a5cc718815038ca48a6223b3ffb947ca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..7464383a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class BlackboardKeyData : ai.KeyData +{ + public BlackboardKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadString(); + } + + public static BlackboardKeyData DeserializeBlackboardKeyData(ByteBuf _buf) + { + return new ai.BlackboardKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = 1517269500; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKeyData.cs.meta new file mode 100644 index 00000000..29a43800 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.BlackboardKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 750978e5a0ac8da44bec063869bbad15 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..975113ec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseSkill.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; + + +namespace cfg.ai +{ +public sealed partial class ChooseSkill : ai.Task +{ + public ChooseSkill(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + ResultSkillIdKey = _buf.ReadString(); + } + + public static ChooseSkill DeserializeChooseSkill(ByteBuf _buf) + { + return new ai.ChooseSkill(_buf); + } + + public readonly string TargetActorKey; + public readonly string ResultSkillIdKey; + + public const int __ID__ = -918812268; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "resultSkillIdKey:" + ResultSkillIdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseSkill.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseSkill.cs.meta new file mode 100644 index 00000000..54028ef8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseSkill.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3825f20ca4b06604a92e95dc92e425bb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..0e7e3235 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseTarget.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class ChooseTarget : ai.Service +{ + public ChooseTarget(ByteBuf _buf) : base(_buf) + { + ResultTargetKey = _buf.ReadString(); + } + + public static ChooseTarget DeserializeChooseTarget(ByteBuf _buf) + { + return new ai.ChooseTarget(_buf); + } + + public readonly string ResultTargetKey; + + public const int __ID__ = 1601247918; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "resultTargetKey:" + ResultTargetKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseTarget.cs.meta new file mode 100644 index 00000000..e3f61607 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ChooseTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9ac0e8ec70479d34ab85df1c946c699a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ComposeNode.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..113fb6d0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ComposeNode.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; + + +namespace cfg.ai +{ +public abstract partial class ComposeNode : ai.FlowNode +{ + public ComposeNode(ByteBuf _buf) : base(_buf) + { + } + + public static ComposeNode DeserializeComposeNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ComposeNode.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ComposeNode.cs.meta new file mode 100644 index 00000000..b606fc9a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ComposeNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6daa9ae9e8e06ed46a443bf22f6ca6be +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DebugPrint.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..0d449530 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DebugPrint.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class DebugPrint : ai.Task +{ + public DebugPrint(ByteBuf _buf) : base(_buf) + { + Text = _buf.ReadString(); + } + + public static DebugPrint DeserializeDebugPrint(ByteBuf _buf) + { + return new ai.DebugPrint(_buf); + } + + public readonly string Text; + + public const int __ID__ = 1357409728; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DebugPrint.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DebugPrint.cs.meta new file mode 100644 index 00000000..c332b255 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DebugPrint.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4a4927b5361b18f45933a7a7aa7b8da8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Decorator.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Decorator.cs new file mode 100644 index 00000000..b89dbce8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Decorator.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class Decorator : ai.Node +{ + public Decorator(ByteBuf _buf) : base(_buf) + { + FlowAbortMode = (ai.EFlowAbortMode)_buf.ReadInt(); + } + + public static Decorator DeserializeDecorator(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeLoop.__ID__: return new ai.UeLoop(_buf); + case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf); + case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf); + case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf); + case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf); + case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf); + case ai.DistanceLessThan.__ID__: return new ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public readonly ai.EFlowAbortMode FlowAbortMode; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Decorator.cs.meta new file mode 100644 index 00000000..124465f2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec0b3501c24999e47b28ac314611a9b7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..e0b35db6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class DistanceLessThan : ai.Decorator +{ + public DistanceLessThan(ByteBuf _buf) : base(_buf) + { + Actor1Key = _buf.ReadString(); + Actor2Key = _buf.ReadString(); + Distance = _buf.ReadFloat(); + ReverseResult = _buf.ReadBool(); + } + + public static DistanceLessThan DeserializeDistanceLessThan(ByteBuf _buf) + { + return new ai.DistanceLessThan(_buf); + } + + public readonly string Actor1Key; + public readonly string Actor2Key; + public readonly float Distance; + public readonly bool ReverseResult; + + public const int __ID__ = -1207170283; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "actor1Key:" + Actor1Key + "," + + "actor2Key:" + Actor2Key + "," + + "distance:" + Distance + "," + + "reverseResult:" + ReverseResult + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DistanceLessThan.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DistanceLessThan.cs.meta new file mode 100644 index 00000000..c885ba45 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.DistanceLessThan.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90ad4846abfe95a4884f4163985421ff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EExecutor.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..27ea93ba --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EExecutor.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EExecutor.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EExecutor.cs.meta new file mode 100644 index 00000000..8e2936ed --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EExecutor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b8e56669315cb654ca56eacb5f427f11 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFinishMode.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..94a7b4c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFinishMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFinishMode.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFinishMode.cs.meta new file mode 100644 index 00000000..adc81e22 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFinishMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 16bf34a155338f54badc8db9fc68ab52 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..6c97a981 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFlowAbortMode.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFlowAbortMode.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFlowAbortMode.cs.meta new file mode 100644 index 00000000..2a320edc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EFlowAbortMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e7799d770d8b6354ba57e88db248349b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EKeyType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..97110a59 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EKeyType.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EKeyType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EKeyType.cs.meta new file mode 100644 index 00000000..301e0cb3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EKeyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 21b2967dcb1a3a24d9480e1dbeeb7f05 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..61d634f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ENotifyObserverMode.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ENotifyObserverMode.cs.meta new file mode 100644 index 00000000..35b8743f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ENotifyObserverMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eb4a7034d27238f419ae65dade6863c3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EOperator.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EOperator.cs new file mode 100644 index 00000000..25aac54d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EOperator.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EOperator.cs.meta new file mode 100644 index 00000000..b6097e39 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.EOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b30dd45a793f6534c9e0a4378c24dfac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..dc98f5d6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class ExecuteTimeStatistic : ai.Service +{ + public ExecuteTimeStatistic(ByteBuf _buf) : base(_buf) + { + } + + public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(ByteBuf _buf) + { + return new ai.ExecuteTimeStatistic(_buf); + } + + + public const int __ID__ = 990693812; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta new file mode 100644 index 00000000..809fd3eb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 026f573e8608e454d83d6eec7858915b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..345697e2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FloatKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class FloatKeyData : ai.KeyData +{ + public FloatKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadFloat(); + } + + public static FloatKeyData DeserializeFloatKeyData(ByteBuf _buf) + { + return new ai.FloatKeyData(_buf); + } + + public readonly float Value; + + public const int __ID__ = -719747885; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FloatKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FloatKeyData.cs.meta new file mode 100644 index 00000000..b733fdf6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FloatKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4529edbb7013a8c4a9f9cc736af0d7f2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FlowNode.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..f9997897 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FlowNode.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class FlowNode : ai.Node +{ + public FlowNode(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Decorators = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Decorator _e0; _e0 = ai.Decorator.DeserializeDecorator(_buf); Decorators.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Services = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Service _e0; _e0 = ai.Service.DeserializeService(_buf); Services.Add(_e0);}} + } + + public static FlowNode DeserializeFlowNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly System.Collections.Generic.List Decorators; + public readonly System.Collections.Generic.List Services; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Decorators) { _e?.ResolveRef(tables); } + foreach (var _e in Services) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FlowNode.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FlowNode.cs.meta new file mode 100644 index 00000000..e5118d8f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.FlowNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2aa5a2cba6a270b4da0a5d2c74d59ded +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..001e29a8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class GetOwnerPlayer : ai.Service +{ + public GetOwnerPlayer(ByteBuf _buf) : base(_buf) + { + PlayerActorKey = _buf.ReadString(); + } + + public static GetOwnerPlayer DeserializeGetOwnerPlayer(ByteBuf _buf) + { + return new ai.GetOwnerPlayer(_buf); + } + + public readonly string PlayerActorKey; + + public const int __ID__ = -999247644; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "playerActorKey:" + PlayerActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.GetOwnerPlayer.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.GetOwnerPlayer.cs.meta new file mode 100644 index 00000000..80a5890d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.GetOwnerPlayer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7bed6a81639428e4c83869e7c7d3b2df +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IntKeyData.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..a18b9db6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IntKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class IntKeyData : ai.KeyData +{ + public IntKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadInt(); + } + + public static IntKeyData DeserializeIntKeyData(ByteBuf _buf) + { + return new ai.IntKeyData(_buf); + } + + public readonly int Value; + + public const int __ID__ = -342751904; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IntKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IntKeyData.cs.meta new file mode 100644 index 00000000..6600d3b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IntKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9fee0a0668f7edb4c96bcb6f35a9c77d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..723b0eef --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsAtLocation.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class IsAtLocation : ai.Decorator +{ + public IsAtLocation(ByteBuf _buf) : base(_buf) + { + AcceptableRadius = _buf.ReadFloat(); + KeyboardKey = _buf.ReadString(); + InverseCondition = _buf.ReadBool(); + } + + public static IsAtLocation DeserializeIsAtLocation(ByteBuf _buf) + { + return new ai.IsAtLocation(_buf); + } + + public readonly float AcceptableRadius; + public readonly string KeyboardKey; + public readonly bool InverseCondition; + + public const int __ID__ = 1255972344; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "keyboardKey:" + KeyboardKey + "," + + "inverseCondition:" + InverseCondition + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsAtLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsAtLocation.cs.meta new file mode 100644 index 00000000..03956ea8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsAtLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d610688a3a3075944b55142cc6b70f2b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsNotSet.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..790fe7b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsNotSet.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class IsNotSet : ai.KeyQueryOperator +{ + public IsNotSet(ByteBuf _buf) : base(_buf) + { + } + + public static IsNotSet DeserializeIsNotSet(ByteBuf _buf) + { + return new ai.IsNotSet(_buf); + } + + + public const int __ID__ = 790736255; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsNotSet.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsNotSet.cs.meta new file mode 100644 index 00000000..645f9a02 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsNotSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d6362dc4342c0d54fa0fccb96b8d6a65 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsSet.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsSet.cs new file mode 100644 index 00000000..36360f95 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsSet.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class IsSet : ai.KeyQueryOperator +{ + public IsSet(ByteBuf _buf) : base(_buf) + { + } + + public static IsSet DeserializeIsSet(ByteBuf _buf) + { + return new ai.IsSet(_buf); + } + + + public const int __ID__ = 1635350898; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsSet.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsSet.cs.meta new file mode 100644 index 00000000..7b8ff642 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.IsSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 59323ca9915c01543b1ef4a72f675053 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..d5339bbe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class KeepFaceTarget : ai.Service +{ + public KeepFaceTarget(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + } + + public static KeepFaceTarget DeserializeKeepFaceTarget(ByteBuf _buf) + { + return new ai.KeepFaceTarget(_buf); + } + + public readonly string TargetActorKey; + + public const int __ID__ = 1195270745; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "targetActorKey:" + TargetActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeepFaceTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeepFaceTarget.cs.meta new file mode 100644 index 00000000..79fe2397 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeepFaceTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 98547a84b8fb1124cb91113c697a5b0f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyData.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyData.cs new file mode 100644 index 00000000..2f68849f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyData.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; + + +namespace cfg.ai +{ +public abstract partial class KeyData : Luban.BeanBase +{ + public KeyData(ByteBuf _buf) + { + } + + public static KeyData DeserializeKeyData(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.FloatKeyData.__ID__: return new ai.FloatKeyData(_buf); + case ai.IntKeyData.__ID__: return new ai.IntKeyData(_buf); + case ai.StringKeyData.__ID__: return new ai.StringKeyData(_buf); + case ai.BlackboardKeyData.__ID__: return new ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyData.cs.meta new file mode 100644 index 00000000..d97a16f0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0dcc5b8ab7890804c949543abdb725a9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..67a1903d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyQueryOperator.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class KeyQueryOperator : Luban.BeanBase +{ + public KeyQueryOperator(ByteBuf _buf) + { + } + + public static KeyQueryOperator DeserializeKeyQueryOperator(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.IsSet.__ID__: return new ai.IsSet(_buf); + case ai.IsNotSet.__ID__: return new ai.IsNotSet(_buf); + case ai.BinaryOperator.__ID__: return new ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyQueryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyQueryOperator.cs.meta new file mode 100644 index 00000000..ccb5c702 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.KeyQueryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 88a66bad73af6fc4c8292fe1fdfe3f62 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..f0bc39a9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToLocation.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class MoveToLocation : ai.Task +{ + public MoveToLocation(ByteBuf _buf) : base(_buf) + { + AcceptableRadius = _buf.ReadFloat(); + } + + public static MoveToLocation DeserializeMoveToLocation(ByteBuf _buf) + { + return new ai.MoveToLocation(_buf); + } + + public readonly float AcceptableRadius; + + public const int __ID__ = -969953113; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToLocation.cs.meta new file mode 100644 index 00000000..092d9e40 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 115e5ff2638522f438181d6baea87816 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..f75a945d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToRandomLocation.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; + + +namespace cfg.ai +{ +public sealed partial class MoveToRandomLocation : ai.Task +{ + public MoveToRandomLocation(ByteBuf _buf) : base(_buf) + { + OriginPositionKey = _buf.ReadString(); + Radius = _buf.ReadFloat(); + } + + public static MoveToRandomLocation DeserializeMoveToRandomLocation(ByteBuf _buf) + { + return new ai.MoveToRandomLocation(_buf); + } + + public readonly string OriginPositionKey; + public readonly float Radius; + + public const int __ID__ = -2140042998; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "originPositionKey:" + OriginPositionKey + "," + + "radius:" + Radius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToRandomLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToRandomLocation.cs.meta new file mode 100644 index 00000000..e23d929d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToRandomLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c0e7628993881004d9e12efc56d7b980 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..74c4b5e8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToTarget.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; + + +namespace cfg.ai +{ +public sealed partial class MoveToTarget : ai.Task +{ + public MoveToTarget(ByteBuf _buf) : base(_buf) + { + TargetActorKey = _buf.ReadString(); + AcceptableRadius = _buf.ReadFloat(); + } + + public static MoveToTarget DeserializeMoveToTarget(ByteBuf _buf) + { + return new ai.MoveToTarget(_buf); + } + + public readonly string TargetActorKey; + public readonly float AcceptableRadius; + + public const int __ID__ = 514987779; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToTarget.cs.meta new file mode 100644 index 00000000..e6f66837 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.MoveToTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3914464a1f96de440b489d9e79ebc660 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Node.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Node.cs new file mode 100644 index 00000000..eb48d185 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Node.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; + + +namespace cfg.ai +{ +public abstract partial class Node : Luban.BeanBase +{ + public Node(ByteBuf _buf) + { + Id = _buf.ReadInt(); + NodeName = _buf.ReadString(); + } + + public static Node DeserializeNode(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf); + case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf); + case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf); + case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf); + case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf); + case ai.UpdateDailyBehaviorProps.__ID__: return new ai.UpdateDailyBehaviorProps(_buf); + case ai.UeLoop.__ID__: return new ai.UeLoop(_buf); + case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf); + case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf); + case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf); + case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf); + case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf); + case ai.DistanceLessThan.__ID__: return new ai.DistanceLessThan(_buf); + case ai.Sequence.__ID__: return new ai.Sequence(_buf); + case ai.Selector.__ID__: return new ai.Selector(_buf); + case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf); + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string NodeName; + + + public virtual void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Node.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Node.cs.meta new file mode 100644 index 00000000..a17e7ceb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Node.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1db0723044666564f96da449b1343b74 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Selector.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Selector.cs new file mode 100644 index 00000000..d049521d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Selector.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; + + +namespace cfg.ai +{ +public sealed partial class Selector : ai.ComposeNode +{ + public Selector(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}} + } + + public static Selector DeserializeSelector(ByteBuf _buf) + { + return new ai.Selector(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1946981627; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Selector.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Selector.cs.meta new file mode 100644 index 00000000..33821e30 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Selector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 740187391f3c23d4f9fb5f3c6c826329 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Sequence.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Sequence.cs new file mode 100644 index 00000000..519bb9be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Sequence.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; + + +namespace cfg.ai +{ +public sealed partial class Sequence : ai.ComposeNode +{ + public Sequence(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}} + } + + public static Sequence DeserializeSequence(ByteBuf _buf) + { + return new ai.Sequence(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1789006105; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Sequence.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Sequence.cs.meta new file mode 100644 index 00000000..ff75918d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Sequence.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4f78cdaf481140e4698a75a8bc0c230a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Service.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Service.cs new file mode 100644 index 00000000..9c3be7c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Service.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class Service : ai.Node +{ + public Service(ByteBuf _buf) : base(_buf) + { + } + + public static Service DeserializeService(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf); + case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf); + case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf); + case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf); + case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf); + case ai.UpdateDailyBehaviorProps.__ID__: return new ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Service.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Service.cs.meta new file mode 100644 index 00000000..c0007528 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Service.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aae29a665cb7f28488039a74be228364 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..87421693 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.SimpleParallel.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class SimpleParallel : ai.ComposeNode +{ + public SimpleParallel(ByteBuf _buf) : base(_buf) + { + FinishMode = (ai.EFinishMode)_buf.ReadInt(); + MainTask = ai.Task.DeserializeTask(_buf); + BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf); + } + + public static SimpleParallel DeserializeSimpleParallel(ByteBuf _buf) + { + return new ai.SimpleParallel(_buf); + } + + public readonly ai.EFinishMode FinishMode; + public readonly ai.Task MainTask; + public readonly ai.FlowNode BackgroundNode; + + public const int __ID__ = -1952582529; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + MainTask?.ResolveRef(tables); + BackgroundNode?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "finishMode:" + FinishMode + "," + + "mainTask:" + MainTask + "," + + "backgroundNode:" + BackgroundNode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.SimpleParallel.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.SimpleParallel.cs.meta new file mode 100644 index 00000000..59bca4e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.SimpleParallel.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2f9fc6e9cdf3ae34eac1f104df8c7218 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.StringKeyData.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..20238a41 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.StringKeyData.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; + + +namespace cfg.ai +{ +public sealed partial class StringKeyData : ai.KeyData +{ + public StringKeyData(ByteBuf _buf) : base(_buf) + { + Value = _buf.ReadString(); + } + + public static StringKeyData DeserializeStringKeyData(ByteBuf _buf) + { + return new ai.StringKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = -307888654; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.StringKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.StringKeyData.cs.meta new file mode 100644 index 00000000..14a2a5c7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.StringKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 43dd4bff84ef8b343bd46727c7d99cb2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Task.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Task.cs new file mode 100644 index 00000000..94b2c5fa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Task.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public abstract partial class Task : ai.FlowNode +{ + public Task(ByteBuf _buf) : base(_buf) + { + IgnoreRestartSelf = _buf.ReadBool(); + } + + public static Task DeserializeTask(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case ai.UeWait.__ID__: return new ai.UeWait(_buf); + case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf); + case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf); + case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf); + case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf); + case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf); + case ai.DebugPrint.__ID__: return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly bool IgnoreRestartSelf; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Task.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Task.cs.meta new file mode 100644 index 00000000..528e6711 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.Task.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a09f6218b279e9b428a3142f1169c85b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBehaviorTree.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBehaviorTree.cs new file mode 100644 index 00000000..d59e5ee0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBehaviorTree.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public partial class TbBehaviorTree +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBehaviorTree(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + ai.BehaviorTree _v; + _v = ai.BehaviorTree.DeserializeBehaviorTree(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.BehaviorTree GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.BehaviorTree Get(int key) => _dataMap[key]; + public ai.BehaviorTree this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBehaviorTree.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBehaviorTree.cs.meta new file mode 100644 index 00000000..c7cb7600 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBehaviorTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b89050f3b879ebd4e897a5f200e5dd60 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBlackboard.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBlackboard.cs new file mode 100644 index 00000000..92b62447 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBlackboard.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public partial class TbBlackboard +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBlackboard(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + ai.Blackboard _v; + _v = ai.Blackboard.DeserializeBlackboard(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Name, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.Blackboard GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.Blackboard Get(string key) => _dataMap[key]; + public ai.Blackboard this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBlackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBlackboard.cs.meta new file mode 100644 index 00000000..c5f597db --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.TbBlackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 34732e44130fe714590a051732ebfe57 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..5ea4a151 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeBlackboard.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeBlackboard : ai.Decorator +{ + public UeBlackboard(ByteBuf _buf) : base(_buf) + { + NotifyObserver = (ai.ENotifyObserverMode)_buf.ReadInt(); + BlackboardKey = _buf.ReadString(); + KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf); + } + + public static UeBlackboard DeserializeUeBlackboard(ByteBuf _buf) + { + return new ai.UeBlackboard(_buf); + } + + public readonly ai.ENotifyObserverMode NotifyObserver; + public readonly string BlackboardKey; + public readonly ai.KeyQueryOperator KeyQuery; + + public const int __ID__ = -315297507; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + KeyQuery?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "notifyObserver:" + NotifyObserver + "," + + "blackboardKey:" + BlackboardKey + "," + + "keyQuery:" + KeyQuery + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeBlackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeBlackboard.cs.meta new file mode 100644 index 00000000..a2e9cec6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeBlackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 45ac888c2e01d6f41ab29b751fe3d075 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeCooldown.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..e6847193 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeCooldown.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeCooldown : ai.Decorator +{ + public UeCooldown(ByteBuf _buf) : base(_buf) + { + CooldownTime = _buf.ReadFloat(); + } + + public static UeCooldown DeserializeUeCooldown(ByteBuf _buf) + { + return new ai.UeCooldown(_buf); + } + + public readonly float CooldownTime; + + public const int __ID__ = -951439423; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "cooldownTime:" + CooldownTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeCooldown.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeCooldown.cs.meta new file mode 100644 index 00000000..66afe80e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeCooldown.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f09431053d1fb704292ab0a44265339b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..2edb3e4f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeForceSuccess.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeForceSuccess : ai.Decorator +{ + public UeForceSuccess(ByteBuf _buf) : base(_buf) + { + } + + public static UeForceSuccess DeserializeUeForceSuccess(ByteBuf _buf) + { + return new ai.UeForceSuccess(_buf); + } + + + public const int __ID__ = 195054574; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeForceSuccess.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeForceSuccess.cs.meta new file mode 100644 index 00000000..502f6587 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeForceSuccess.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec42d87e944727a43ad5467eb6bdb6a9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeLoop.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..ef23b76d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeLoop.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeLoop : ai.Decorator +{ + public UeLoop(ByteBuf _buf) : base(_buf) + { + NumLoops = _buf.ReadInt(); + InfiniteLoop = _buf.ReadBool(); + InfiniteLoopTimeoutTime = _buf.ReadFloat(); + } + + public static UeLoop DeserializeUeLoop(ByteBuf _buf) + { + return new ai.UeLoop(_buf); + } + + public readonly int NumLoops; + public readonly bool InfiniteLoop; + public readonly float InfiniteLoopTimeoutTime; + + public const int __ID__ = -513308166; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "numLoops:" + NumLoops + "," + + "infiniteLoop:" + InfiniteLoop + "," + + "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeLoop.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeLoop.cs.meta new file mode 100644 index 00000000..36c2e28e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeLoop.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d1662b2d872f91d4b956a821a0d0aaac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..a515c985 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeSetDefaultFocus : ai.Service +{ + public UeSetDefaultFocus(ByteBuf _buf) : base(_buf) + { + KeyboardKey = _buf.ReadString(); + } + + public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(ByteBuf _buf) + { + return new ai.UeSetDefaultFocus(_buf); + } + + public readonly string KeyboardKey; + + public const int __ID__ = 1812449155; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "keyboardKey:" + KeyboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeSetDefaultFocus.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeSetDefaultFocus.cs.meta new file mode 100644 index 00000000..ccae6afc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeSetDefaultFocus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 13bafa2823279c64683c92797d31c4de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..315ebaf8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeTimeLimit.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeTimeLimit : ai.Decorator +{ + public UeTimeLimit(ByteBuf _buf) : base(_buf) + { + LimitTime = _buf.ReadFloat(); + } + + public static UeTimeLimit DeserializeUeTimeLimit(ByteBuf _buf) + { + return new ai.UeTimeLimit(_buf); + } + + public readonly float LimitTime; + + public const int __ID__ = 338469720; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "limitTime:" + LimitTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeTimeLimit.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeTimeLimit.cs.meta new file mode 100644 index 00000000..d62b9730 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeTimeLimit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f61cf46630ceff346bacd2d1581dffb1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWait.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWait.cs new file mode 100644 index 00000000..46828239 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWait.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; + + +namespace cfg.ai +{ +public sealed partial class UeWait : ai.Task +{ + public UeWait(ByteBuf _buf) : base(_buf) + { + WaitTime = _buf.ReadFloat(); + RandomDeviation = _buf.ReadFloat(); + } + + public static UeWait DeserializeUeWait(ByteBuf _buf) + { + return new ai.UeWait(_buf); + } + + public readonly float WaitTime; + public readonly float RandomDeviation; + + public const int __ID__ = -512994101; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "waitTime:" + WaitTime + "," + + "randomDeviation:" + RandomDeviation + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWait.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWait.cs.meta new file mode 100644 index 00000000..ba38988b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWait.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 862d222d593cdd141b34226d0726b01c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..37a134da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UeWaitBlackboardTime : ai.Task +{ + public UeWaitBlackboardTime(ByteBuf _buf) : base(_buf) + { + BlackboardKey = _buf.ReadString(); + } + + public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(ByteBuf _buf) + { + return new ai.UeWaitBlackboardTime(_buf); + } + + public readonly string BlackboardKey; + + public const int __ID__ = 1215378271; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "blackboardKey:" + BlackboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta new file mode 100644 index 00000000..edbb6c17 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 86064cbbfa0347d4385bd7b0ed9fe97d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..3f4608b2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,80 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.ai +{ +public sealed partial class UpdateDailyBehaviorProps : ai.Service +{ + public UpdateDailyBehaviorProps(ByteBuf _buf) : base(_buf) + { + SatietyKey = _buf.ReadString(); + EnergyKey = _buf.ReadString(); + MoodKey = _buf.ReadString(); + SatietyLowerThresholdKey = _buf.ReadString(); + SatietyUpperThresholdKey = _buf.ReadString(); + EnergyLowerThresholdKey = _buf.ReadString(); + EnergyUpperThresholdKey = _buf.ReadString(); + MoodLowerThresholdKey = _buf.ReadString(); + MoodUpperThresholdKey = _buf.ReadString(); + } + + public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(ByteBuf _buf) + { + return new ai.UpdateDailyBehaviorProps(_buf); + } + + public readonly string SatietyKey; + public readonly string EnergyKey; + public readonly string MoodKey; + public readonly string SatietyLowerThresholdKey; + public readonly string SatietyUpperThresholdKey; + public readonly string EnergyLowerThresholdKey; + public readonly string EnergyUpperThresholdKey; + public readonly string MoodLowerThresholdKey; + public readonly string MoodUpperThresholdKey; + + public const int __ID__ = -61887372; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "satietyKey:" + SatietyKey + "," + + "energyKey:" + EnergyKey + "," + + "moodKey:" + MoodKey + "," + + "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + "," + + "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + "," + + "energyLowerThresholdKey:" + EnergyLowerThresholdKey + "," + + "energyUpperThresholdKey:" + EnergyUpperThresholdKey + "," + + "moodLowerThresholdKey:" + MoodLowerThresholdKey + "," + + "moodUpperThresholdKey:" + MoodUpperThresholdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta new file mode 100644 index 00000000..4923c3e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 01e71a99e3254cd40b3babb61eac086a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.EBoolOperator.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..4e7f1379 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.EBoolOperator.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.EBoolOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.EBoolOperator.cs.meta new file mode 100644 index 00000000..4bbbe89b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.EBoolOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 56c0f19978446b44d88015e2aed5d257 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.GlobalConfig.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..68987d6f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.GlobalConfig.cs @@ -0,0 +1,72 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.common +{ +public sealed partial class GlobalConfig : Luban.BeanBase +{ + public GlobalConfig(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + X2 = _buf.ReadInt(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadInt(); + X5 = _buf.ReadInt(); + X6 = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X7 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X7.Add(_e0);}} + } + + public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf) + { + return new common.GlobalConfig(_buf); + } + + /// + /// 背包容量 + /// + public readonly int X1; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public readonly int X5; + public readonly int X6; + public readonly System.Collections.Generic.List X7; + + public const int __ID__ = -848234488; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.GlobalConfig.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.GlobalConfig.cs.meta new file mode 100644 index 00000000..ef7db2f9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.GlobalConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fc0b027dbfbd2c544aaf618fcdb15fa4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.TbGlobalConfig.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.TbGlobalConfig.cs new file mode 100644 index 00000000..85d715b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.TbGlobalConfig.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.common +{ +public partial class TbGlobalConfig +{ + + private readonly common.GlobalConfig _data; + + public TbGlobalConfig(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = common.GlobalConfig.DeserializeGlobalConfig(_buf); + } + + + /// + /// 背包容量 + /// + public int X1 => _data.X1; + public int X2 => _data.X2; + public int X3 => _data.X3; + public int X4 => _data.X4; + public int X5 => _data.X5; + public int X6 => _data.X6; + public System.Collections.Generic.List X7 => _data.X7; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.TbGlobalConfig.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.TbGlobalConfig.cs.meta new file mode 100644 index 00000000..e44fb802 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/common.TbGlobalConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f1d35ae05ec5c2f4ba138aac04ad5cb1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..f148097b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersStarQualityType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersStarQualityType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersStarQualityType.cs.meta new file mode 100644 index 00000000..24e33042 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersStarQualityType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a0818e02fe46a2478c33516fa45fa7d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersTag.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..c7bfd3cb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersTag.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersTag.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersTag.cs.meta new file mode 100644 index 00000000..e95b16af --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothersTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8d1e30d13b7564747a1fd441c90fe671 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..401492ae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesHidePartType.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesHidePartType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesHidePartType.cs.meta new file mode 100644 index 00000000..7c61bfec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesHidePartType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5bf2868ddf888de4294c81eee7692576 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..b0b224b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesPropertyType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesPropertyType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesPropertyType.cs.meta new file mode 100644 index 00000000..07b9bb86 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EClothesPropertyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ae7a3acd95f872b4f8b544f45e2743e2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.ECurrencyType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..7dfcba3c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.ECurrencyType.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.ECurrencyType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.ECurrencyType.cs.meta new file mode 100644 index 00000000..ed445506 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.ECurrencyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8f86ad328f6aef14f9de490270b4c189 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EItemQuality.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..74fcfbf2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EItemQuality.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// 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 EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EItemQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EItemQuality.cs.meta new file mode 100644 index 00000000..73d612c0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EItemQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aac5befd5a640334fb09e08389fbec00 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMajorType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMajorType.cs new file mode 100644 index 00000000..c19157ce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMajorType.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMajorType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMajorType.cs.meta new file mode 100644 index 00000000..c2efd601 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMajorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5e7126ab04d3376499c1271c95cc29ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMinorType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMinorType.cs new file mode 100644 index 00000000..936a15ab --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMinorType.cs @@ -0,0 +1,215 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMinorType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMinorType.cs.meta new file mode 100644 index 00000000..4723c642 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EMinorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b4eed8a5d52144a4886af1d8db137972 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EUseType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EUseType.cs new file mode 100644 index 00000000..20f635dd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EUseType.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EUseType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EUseType.cs.meta new file mode 100644 index 00000000..33a89175 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.EUseType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 96a71c8da0942d14e93a9ec4a3b498e5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.Item.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.Item.cs new file mode 100644 index 00000000..47b7f67c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.Item.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; + + +namespace cfg.item +{ +/// +/// 道具 +/// +public sealed partial class Item : Luban.BeanBase +{ + public Item(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + MajorType = (item.EMajorType)_buf.ReadInt(); + MinorType = (item.EMinorType)_buf.ReadInt(); + MaxPileNum = _buf.ReadInt(); + Quality = (item.EItemQuality)_buf.ReadInt(); + Icon = _buf.ReadString(); + IconBackgroud = _buf.ReadString(); + IconMask = _buf.ReadString(); + Desc = _buf.ReadString(); + ShowOrder = _buf.ReadInt(); + } + + public static Item DeserializeItem(ByteBuf _buf) + { + return new item.Item(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + public readonly string Name; + public readonly item.EMajorType MajorType; + public readonly item.EMinorType MinorType; + public readonly int MaxPileNum; + public readonly item.EItemQuality Quality; + public readonly string Icon; + public readonly string IconBackgroud; + public readonly string IconMask; + public readonly string Desc; + public readonly int ShowOrder; + + public const int __ID__ = 2107285806; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "majorType:" + MajorType + "," + + "minorType:" + MinorType + "," + + "maxPileNum:" + MaxPileNum + "," + + "quality:" + Quality + "," + + "icon:" + Icon + "," + + "iconBackgroud:" + IconBackgroud + "," + + "iconMask:" + IconMask + "," + + "desc:" + Desc + "," + + "showOrder:" + ShowOrder + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.Item.cs.meta new file mode 100644 index 00000000..c67c1782 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2eb0d12a8b364964eaf417c69773cc61 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.TbItem.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.TbItem.cs new file mode 100644 index 00000000..c93db4f6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.TbItem.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.item +{ +/// +/// 道具表 +/// +public partial class TbItem +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + item.Item _v; + _v = item.Item.DeserializeItem(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public item.Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public item.Item Get(int key) => _dataMap[key]; + public item.Item this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.TbItem.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.TbItem.cs.meta new file mode 100644 index 00000000..5d041da8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/item.TbItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 36ca053c33aec8c46aec3e97f9759769 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..a7de7596 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.L10NDemo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public sealed partial class L10NDemo : Luban.BeanBase +{ + public L10NDemo(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Text = _buf.ReadString(); + } + + public static L10NDemo DeserializeL10NDemo(ByteBuf _buf) + { + return new l10n.L10NDemo(_buf); + } + + public readonly int Id; + public readonly string Text; + + public const int __ID__ = -331195887; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.L10NDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.L10NDemo.cs.meta new file mode 100644 index 00000000..b0d81a6a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.L10NDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 40884a14f06a7aa4d88225c82efafcb5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..f2f582d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.PatchDemo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public sealed partial class PatchDemo : Luban.BeanBase +{ + public PatchDemo(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Value = _buf.ReadInt(); + } + + public static PatchDemo DeserializePatchDemo(ByteBuf _buf) + { + return new l10n.PatchDemo(_buf); + } + + public readonly int Id; + public readonly int Value; + + public const int __ID__ = -1707294656; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.PatchDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.PatchDemo.cs.meta new file mode 100644 index 00000000..39a0df54 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.PatchDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f85a322e6c2d584f858c1af7a235c17 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbL10NDemo.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbL10NDemo.cs new file mode 100644 index 00000000..608bb458 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbL10NDemo.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public partial class TbL10NDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbL10NDemo(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + l10n.L10NDemo _v; + _v = l10n.L10NDemo.DeserializeL10NDemo(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.L10NDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.L10NDemo Get(int key) => _dataMap[key]; + public l10n.L10NDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbL10NDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbL10NDemo.cs.meta new file mode 100644 index 00000000..ed37aaeb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbL10NDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b62ef408a7b591d44bfc52f32e522c73 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbPatchDemo.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbPatchDemo.cs new file mode 100644 index 00000000..3f595f52 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbPatchDemo.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.l10n +{ +public partial class TbPatchDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPatchDemo(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + l10n.PatchDemo _v; + _v = l10n.PatchDemo.DeserializePatchDemo(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.PatchDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.PatchDemo Get(int key) => _dataMap[key]; + public l10n.PatchDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbPatchDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbPatchDemo.cs.meta new file mode 100644 index 00000000..23595474 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/l10n.TbPatchDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f8bbd297077c404395d6ae76ea5b499 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TbTestTag.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TbTestTag.cs new file mode 100644 index 00000000..f880e989 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TbTestTag.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.tag +{ +public partial class TbTestTag +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestTag(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + tag.TestTag _v; + _v = tag.TestTag.DeserializeTestTag(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public tag.TestTag GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public tag.TestTag Get(int key) => _dataMap[key]; + public tag.TestTag this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TbTestTag.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TbTestTag.cs.meta new file mode 100644 index 00000000..8a8be5e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TbTestTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6c676956c1ad94c48bb27b599d15a958 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TestTag.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TestTag.cs new file mode 100644 index 00000000..8d280857 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TestTag.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.tag +{ +public sealed partial class TestTag : Luban.BeanBase +{ + public TestTag(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Value = _buf.ReadString(); + } + + public static TestTag DeserializeTestTag(ByteBuf _buf) + { + return new tag.TestTag(_buf); + } + + public readonly int Id; + public readonly string Value; + + public const int __ID__ = 1742933812; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TestTag.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TestTag.cs.meta new file mode 100644 index 00000000..f15dfec6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/tag.TestTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2ab8bc7eca8a4a346ab6b788effca28d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.AccessFlag.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..9bd3f0c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.AccessFlag.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// 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/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.AccessFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.AccessFlag.cs.meta new file mode 100644 index 00000000..63fb43f4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.AccessFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0bb518b7bed3aae4f91cf51afbe542b5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Circle.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Circle.cs new file mode 100644 index 00000000..9c7c4ea8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Circle.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +/// +/// 圆 +/// +public sealed partial class Circle : Shape +{ + public Circle(ByteBuf _buf) : base(_buf) + { + Radius = _buf.ReadFloat(); + } + + public static Circle DeserializeCircle(ByteBuf _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/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Circle.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Circle.cs.meta new file mode 100644 index 00000000..28b2b5fc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Circle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9b58f1a3a684cd441b95aab8d464bdad +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompactString.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompactString.cs new file mode 100644 index 00000000..16aede11 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompactString.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; + + +namespace cfg.test +{ +public sealed partial class CompactString : Luban.BeanBase +{ + public CompactString(ByteBuf _buf) + { + Id = _buf.ReadInt(); + S2 = _buf.ReadString(); + S3 = _buf.ReadString(); + } + + public static CompactString DeserializeCompactString(ByteBuf _buf) + { + return new test.CompactString(_buf); + } + + public readonly int Id; + public readonly string S2; + public readonly string S3; + + public const int __ID__ = 1968089240; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s2:" + S2 + "," + + "s3:" + S3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompactString.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompactString.cs.meta new file mode 100644 index 00000000..f88d2273 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompactString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 67670d8ac6e36184fa868e0e2bd6fafd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..52eb6f19 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable1 : Luban.BeanBase +{ + public CompositeJsonTable1(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadString(); + } + + public static CompositeJsonTable1 DeserializeCompositeJsonTable1(ByteBuf _buf) + { + return new test.CompositeJsonTable1(_buf); + } + + public readonly int Id; + public readonly string X; + + public const int __ID__ = 1566207894; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable1.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable1.cs.meta new file mode 100644 index 00000000..33c6a885 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 401504bf981336b4ba6b59629b7e8787 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..d3fd28fd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable2.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable2 : Luban.BeanBase +{ + public CompositeJsonTable2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static CompositeJsonTable2 DeserializeCompositeJsonTable2(ByteBuf _buf) + { + return new test.CompositeJsonTable2(_buf); + } + + public readonly int Id; + public readonly int Y; + + public const int __ID__ = 1566207895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable2.cs.meta new file mode 100644 index 00000000..57852668 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 790d70b27e53b444fae52363c5490d0a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..6888c532 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class CompositeJsonTable3 : Luban.BeanBase +{ + public CompositeJsonTable3(ByteBuf _buf) + { + A = _buf.ReadInt(); + B = _buf.ReadInt(); + } + + public static CompositeJsonTable3 DeserializeCompositeJsonTable3(ByteBuf _buf) + { + return new test.CompositeJsonTable3(_buf); + } + + public readonly int A; + public readonly int B; + + public const int __ID__ = 1566207896; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "a:" + A + "," + + "b:" + B + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable3.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable3.cs.meta new file mode 100644 index 00000000..00824cd2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.CompositeJsonTable3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 41d854e1acbaaac4e9bb8dc2c3fe283a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DateTimeRange.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..2624d9b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DateTimeRange.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DateTimeRange : Luban.BeanBase +{ + public DateTimeRange(ByteBuf _buf) + { + StartTime = _buf.ReadLong(); + EndTime = _buf.ReadLong(); + } + + public static DateTimeRange DeserializeDateTimeRange(ByteBuf _buf) + { + return new test.DateTimeRange(_buf); + } + + public readonly long StartTime; + public readonly long EndTime; + + public const int __ID__ = 495315430; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "startTime:" + StartTime + "," + + "endTime:" + EndTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DateTimeRange.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DateTimeRange.cs.meta new file mode 100644 index 00000000..1d8d6ec0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DateTimeRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 377349669823eb84cb25d1df1557c9b4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Decorator.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Decorator.cs new file mode 100644 index 00000000..0d640e42 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Decorator.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class Decorator : test.ItemBase +{ + public Decorator(ByteBuf _buf) : base(_buf) + { + Duration = _buf.ReadInt(); + } + + public static Decorator DeserializeDecorator(ByteBuf _buf) + { + return new test.Decorator(_buf); + } + + public readonly int Duration; + + public const int __ID__ = -625155649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "duration:" + Duration + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Decorator.cs.meta new file mode 100644 index 00000000..4611fe9b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: df6d5a8d04bfed248bbfe37669e68a75 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD2.cs new file mode 100644 index 00000000..eac246ed --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD2.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; + + +namespace cfg.test +{ +public sealed partial class DemoD2 : test.DemoDynamic +{ + public DemoD2(ByteBuf _buf) : base(_buf) + { + X2 = _buf.ReadInt(); + } + + public static DemoD2 DeserializeDemoD2(ByteBuf _buf) + { + return new test.DemoD2(_buf); + } + + public readonly int X2; + + public const int __ID__ = -2138341747; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD2.cs.meta new file mode 100644 index 00000000..56854f6c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb99ff7566fca824fb38a41bf919067d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD3.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD3.cs new file mode 100644 index 00000000..eb456c30 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD3.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; + + +namespace cfg.test +{ +public abstract partial class DemoD3 : test.DemoDynamic +{ + public DemoD3(ByteBuf _buf) : base(_buf) + { + X3 = _buf.ReadInt(); + } + + public static DemoD3 DeserializeDemoD3(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.DemoE1.__ID__: return new test.DemoE1(_buf); + case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X3; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD3.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD3.cs.meta new file mode 100644 index 00000000..3a1eb32e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 441df34e4ee255f4a9da4ea0654b12c0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD5.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD5.cs new file mode 100644 index 00000000..01c0d6cd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD5.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; + + +namespace cfg.test +{ +public sealed partial class DemoD5 : test.DemoDynamic +{ + public DemoD5(ByteBuf _buf) : base(_buf) + { + Time = test.DateTimeRange.DeserializeDateTimeRange(_buf); + } + + public static DemoD5 DeserializeDemoD5(ByteBuf _buf) + { + return new test.DemoD5(_buf); + } + + public readonly test.DateTimeRange Time; + + public const int __ID__ = -2138341744; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + Time?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "time:" + Time + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD5.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD5.cs.meta new file mode 100644 index 00000000..361eb1de --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoD5.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1c8626cc113073b438d0e718ac90d1ec +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoDynamic.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..182dedd3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoDynamic.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; + + +namespace cfg.test +{ +public abstract partial class DemoDynamic : Luban.BeanBase +{ + public DemoDynamic(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + } + + public static DemoDynamic DeserializeDemoDynamic(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.DemoD2.__ID__: return new test.DemoD2(_buf); + case test.DemoE1.__ID__: return new test.DemoE1(_buf); + case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf); + case test.DemoD5.__ID__: return new test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X1; + + + public virtual void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoDynamic.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoDynamic.cs.meta new file mode 100644 index 00000000..1b81c442 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoDynamic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b6c880ff7df36c43bbaaf43cebc00e7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE1.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE1.cs new file mode 100644 index 00000000..66660e6f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE1.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoE1 : test.DemoD3 +{ + public DemoE1(ByteBuf _buf) : base(_buf) + { + X4 = _buf.ReadInt(); + } + + public static DemoE1 DeserializeDemoE1(ByteBuf _buf) + { + return new test.DemoE1(_buf); + } + + public readonly int X4; + + public const int __ID__ = -2138341717; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE1.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE1.cs.meta new file mode 100644 index 00000000..33467788 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8f8485615b8f80c42a75571b7be8c6a0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE2.cs new file mode 100644 index 00000000..c91e1cb2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE2.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; + + +namespace cfg.test +{ +public partial struct DemoE2 +{ + public DemoE2(ByteBuf _buf) + { + if(_buf.ReadBool()){ Y1 = _buf.ReadInt(); } else { Y1 = null; } + Y2 = _buf.ReadBool(); + } + + public static DemoE2 DeserializeDemoE2(ByteBuf _buf) + { + return new test.DemoE2(_buf); + } + + public readonly int? Y1; + public readonly bool Y2; + + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE2.cs.meta new file mode 100644 index 00000000..5465c0a7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoE2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 30a6a3b1ecff74b45b235ba29102423f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoEnum.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..0a52c1e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoEnum.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + Any = 6, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoEnum.cs.meta new file mode 100644 index 00000000..742a9d6b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f9cc807e260f934688746f72fadcd74 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoFlag.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..b9b5d903 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoFlag.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoFlag.cs.meta new file mode 100644 index 00000000..65586684 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ef0c6ef20728e154b8b5f04fb361fa1b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoGroup.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..6b30da0e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoGroup.cs @@ -0,0 +1,71 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoGroup : Luban.BeanBase +{ + public DemoGroup(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadInt(); + X1_Ref = null; + X2 = _buf.ReadInt(); + X2_Ref = null; + X3 = _buf.ReadInt(); + X3_Ref = null; + X4 = _buf.ReadInt(); + X5 = test.InnerGroup.DeserializeInnerGroup(_buf); + } + + public static DemoGroup DeserializeDemoGroup(ByteBuf _buf) + { + return new test.DemoGroup(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.DemoGroup X1_Ref; + public readonly int X2; + public test.DemoGroup X2_Ref; + public readonly int X3; + public test.DemoGroup X3_Ref; + public readonly int X4; + public readonly test.InnerGroup X5; + + public const int __ID__ = -379263008; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbDemoGroupC.GetOrDefault(X1); + X2_Ref = tables.TbDemoGroupS.GetOrDefault(X2); + X3_Ref = tables.TbDemoGroupE.GetOrDefault(X3); + + X5?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoGroup.cs.meta new file mode 100644 index 00000000..fe153867 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4db0d8e17baaa6440b1d3e058e9db25b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..be4bd5e8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,93 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoPrimitiveTypesTable : Luban.BeanBase +{ + public DemoPrimitiveTypesTable(ByteBuf _buf) + { + X1 = _buf.ReadBool(); + X2 = _buf.ReadByte(); + X3 = _buf.ReadShort(); + X4 = _buf.ReadInt(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X7 = _buf.ReadDouble(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + V2 = vec2.Deserializevec2(_buf); + V3 = vec3.Deserializevec3(_buf); + V4 = vec4.Deserializevec4(_buf); + T1 = _buf.ReadLong(); + } + + public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(ByteBuf _buf) + { + return new test.DemoPrimitiveTypesTable(_buf); + } + + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly int X4; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly string S1; + public readonly string S2; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + public readonly long T1; + + public const int __ID__ = -370934083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "t1:" + T1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta new file mode 100644 index 00000000..60cfaff8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 772b572634b14bd41aa05a9adb044503 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..5a85122e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoSingletonType.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; + + +namespace cfg.test +{ +public sealed partial class DemoSingletonType : Luban.BeanBase +{ + public DemoSingletonType(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Date = test.DemoDynamic.DeserializeDemoDynamic(_buf); + } + + public static DemoSingletonType DeserializeDemoSingletonType(ByteBuf _buf) + { + return new test.DemoSingletonType(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.DemoDynamic Date; + + public const int __ID__ = 539196998; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + Date?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "date:" + Date + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoSingletonType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoSingletonType.cs.meta new file mode 100644 index 00000000..0938f1df --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoSingletonType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 27609197014dbc145bbc4f0ca5810afd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType1.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType1.cs new file mode 100644 index 00000000..5f6c1204 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType1.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoType1 : Luban.BeanBase +{ + public DemoType1(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + } + + public static DemoType1 DeserializeDemoType1(ByteBuf _buf) + { + return new test.DemoType1(_buf); + } + + public readonly int X1; + + public const int __ID__ = -367048296; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType1.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType1.cs.meta new file mode 100644 index 00000000..482630e9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ddf7d60a953f50845bca6134517bd592 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType2.cs new file mode 100644 index 00000000..44c9c321 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType2.cs @@ -0,0 +1,129 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DemoType2 : Luban.BeanBase +{ + public DemoType2(ByteBuf _buf) + { + X4 = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X2 = _buf.ReadByte(); + X3 = _buf.ReadShort(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + X7 = _buf.ReadDouble(); + X80 = _buf.ReadShort(); + X8 = _buf.ReadInt(); + X9 = _buf.ReadLong(); + X10 = _buf.ReadString(); + X12 = test.DemoType1.DeserializeDemoType1(_buf); + X13 = (test.DemoEnum)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + S1 = _buf.ReadString(); + T1 = _buf.ReadLong(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K5 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K5.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}} + } + + public static DemoType2 DeserializeDemoType2(ByteBuf _buf) + { + return new test.DemoType2(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly short X80; + public readonly int X8; + public readonly long X9; + public readonly string X10; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly string S1; + public readonly long T1; + public readonly int[] K1; + public readonly System.Collections.Generic.List K2; + public readonly System.Collections.Generic.HashSet K5; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -367048295; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "x80:" + X80 + "," + + "x8:" + X8 + "," + + "x9:" + X9 + "," + + "x10:" + X10 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "s1:" + S1 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k5:" + Luban.StringUtil.CollectionToString(K5) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType2.cs.meta new file mode 100644 index 00000000..d7d08825 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DemoType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3745e96214df3254193970241d29663e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DetectEncoding.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..e9daa617 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DetectEncoding.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class DetectEncoding : Luban.BeanBase +{ + public DetectEncoding(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + } + + public static DetectEncoding DeserializeDetectEncoding(ByteBuf _buf) + { + return new test.DetectEncoding(_buf); + } + + public readonly int Id; + public readonly string Name; + + public const int __ID__ = -1154609646; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DetectEncoding.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DetectEncoding.cs.meta new file mode 100644 index 00000000..66025720 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.DetectEncoding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1b414a48957f2f349b2003ef0d13e9c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..db34ab8d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum.cs @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum + { + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum.cs.meta new file mode 100644 index 00000000..ebd76767 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8316076965834d47ad18544a60bb41e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..2b27e566 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum2.cs.meta new file mode 100644 index 00000000..b42ed84f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestEmptyEnum2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 817cb711f84c3cd458bd6379e24a8531 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestQuality.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..f82389f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestQuality.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.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestQuality.cs.meta new file mode 100644 index 00000000..f562e01b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b7bde34ba3cc2d147902834d665e5966 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestUeType.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..c69207fe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestUeType.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestUeType.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestUeType.cs.meta new file mode 100644 index 00000000..2d626343 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ETestUeType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 917aaf12429bbe54fb3b86dc157eb0d8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Equipment.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Equipment.cs new file mode 100644 index 00000000..ec3c1b13 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Equipment.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; + + +namespace cfg.test +{ +public sealed partial class Equipment : test.ItemBase +{ + public Equipment(ByteBuf _buf) : base(_buf) + { + Attr = (test.DemoEnum)_buf.ReadInt(); + Value = _buf.ReadInt(); + } + + public static Equipment DeserializeEquipment(ByteBuf _buf) + { + return new test.Equipment(_buf); + } + + public readonly test.DemoEnum Attr; + public readonly int Value; + + public const int __ID__ = -76837102; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "attr:" + Attr + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Equipment.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Equipment.cs.meta new file mode 100644 index 00000000..233e8a4a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Equipment.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b91d9b5ffa1179e4b9ca6923b1667b2d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..3b892268 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJson.cs @@ -0,0 +1,97 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJson : Luban.BeanBase +{ + public ExcelFromJson(ByteBuf _buf) + { + X4 = _buf.ReadInt(); + X1 = _buf.ReadBool(); + X5 = _buf.ReadLong(); + X6 = _buf.ReadFloat(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + T1 = _buf.ReadLong(); + X12 = test.DemoType1.DeserializeDemoType1(_buf); + X13 = (test.DemoEnum)_buf.ReadInt(); + X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}} + } + + public static ExcelFromJson DeserializeExcelFromJson(ByteBuf _buf) + { + return new test.ExcelFromJson(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly string S1; + public readonly string S2; + public readonly long T1; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly int[] K1; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -1485706483; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "t1:" + T1 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJson.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJson.cs.meta new file mode 100644 index 00000000..80607829 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJson.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a54cf4acdbf79d2458c5689b36113122 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..cd6a7dea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJsonMultiRow.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; + + +namespace cfg.test +{ +public sealed partial class ExcelFromJsonMultiRow : Luban.BeanBase +{ + public ExcelFromJsonMultiRow(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Items = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.TestRow _e0; _e0 = test.TestRow.DeserializeTestRow(_buf); Items.Add(_e0);}} + } + + public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(ByteBuf _buf) + { + return new test.ExcelFromJsonMultiRow(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 715335694; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta new file mode 100644 index 00000000..6563ebff --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 301ae7997b438a74a82f1ffc2edb3ec5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Foo.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Foo.cs new file mode 100644 index 00000000..e8c77c95 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Foo.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; + + +namespace cfg.test +{ +public sealed partial class Foo : Luban.BeanBase +{ + public Foo(ByteBuf _buf) + { + Y1 = _buf.ReadInt(); + Y2 = _buf.ReadInt(); + Y3 = _buf.ReadInt(); + } + + public static Foo DeserializeFoo(ByteBuf _buf) + { + return new test.Foo(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + + public const int __ID__ = -1147950774; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Foo.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Foo.cs.meta new file mode 100644 index 00000000..a737b21b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Foo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eda5fb6b9cd478c45a66bc4ac0ca8594 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H1.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H1.cs new file mode 100644 index 00000000..2ba58bbb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class H1 : Luban.BeanBase +{ + public H1(ByteBuf _buf) + { + Y2 = test.H2.DeserializeH2(_buf); + Y3 = _buf.ReadInt(); + } + + public static H1 DeserializeH1(ByteBuf _buf) + { + return new test.H1(_buf); + } + + public readonly test.H2 Y2; + public readonly int Y3; + + public const int __ID__ = -1422503995; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Y2?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H1.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H1.cs.meta new file mode 100644 index 00000000..b1948d69 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8c25c43e943c9d143ae26e04c9f0cf2a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H2.cs new file mode 100644 index 00000000..7f30eedc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H2.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class H2 : Luban.BeanBase +{ + public H2(ByteBuf _buf) + { + Z2 = _buf.ReadInt(); + Z3 = _buf.ReadInt(); + } + + public static H2 DeserializeH2(ByteBuf _buf) + { + return new test.H2(_buf); + } + + public readonly int Z2; + public readonly int Z3; + + public const int __ID__ = -1422503994; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "z2:" + Z2 + "," + + "z3:" + Z3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H2.cs.meta new file mode 100644 index 00000000..f13ba6be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.H2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8e0c56d3a33673a48af84cdba648a266 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.InnerGroup.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..461ed775 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.InnerGroup.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class InnerGroup : Luban.BeanBase +{ + public InnerGroup(ByteBuf _buf) + { + Y1 = _buf.ReadInt(); + Y2 = _buf.ReadInt(); + Y3 = _buf.ReadInt(); + Y4 = _buf.ReadInt(); + } + + public static InnerGroup DeserializeInnerGroup(ByteBuf _buf) + { + return new test.InnerGroup(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + public readonly int Y4; + + public const int __ID__ = -587873083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "y4:" + Y4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.InnerGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.InnerGroup.cs.meta new file mode 100644 index 00000000..94099cad --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.InnerGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 069c791198e6e5f41a81358f3540fdb7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Item.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Item.cs new file mode 100644 index 00000000..e52bbbf0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Item.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; + + +namespace cfg.test +{ +public sealed partial class Item : test.ItemBase +{ + public Item(ByteBuf _buf) : base(_buf) + { + Num = _buf.ReadInt(); + Price = _buf.ReadInt(); + } + + public static Item DeserializeItem(ByteBuf _buf) + { + return new test.Item(_buf); + } + + public readonly int Num; + public readonly int Price; + + public const int __ID__ = -1226641649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "num:" + Num + "," + + "price:" + Price + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Item.cs.meta new file mode 100644 index 00000000..98969c4e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c616f4ed9038b924e9cbb3dfb312b0f1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ItemBase.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ItemBase.cs new file mode 100644 index 00000000..f09e8c03 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ItemBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public abstract partial class ItemBase : Luban.BeanBase +{ + public ItemBase(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + Desc = _buf.ReadString(); + } + + public static ItemBase DeserializeItemBase(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.Item.__ID__: return new test.Item(_buf); + case test.Equipment.__ID__: return new test.Equipment(_buf); + case test.Decorator.__ID__: return new test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + + + public virtual void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ItemBase.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ItemBase.cs.meta new file mode 100644 index 00000000..a987288b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.ItemBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 55c168a153652a2448d0a1b0cf28afa3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiIndexList.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..74b497f3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiIndexList.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiIndexList : Luban.BeanBase +{ + public MultiIndexList(ByteBuf _buf) + { + Id1 = _buf.ReadInt(); + Id2 = _buf.ReadLong(); + Id3 = _buf.ReadString(); + Num = _buf.ReadInt(); + Desc = _buf.ReadString(); + } + + public static MultiIndexList DeserializeMultiIndexList(ByteBuf _buf) + { + return new test.MultiIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 2016237651; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiIndexList.cs.meta new file mode 100644 index 00000000..abc528c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 394dbfec29964b542b7b3525b4cd7ea0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..736ba4bf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowRecord.cs @@ -0,0 +1,77 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowRecord : Luban.BeanBase +{ + public MultiRowRecord(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);OneRows = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); OneRows.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); MultiRows1.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows2 = new test.MultiRowType1[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.MultiRowType1 __e0;__e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); MultiRows2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(_buf); MultiRows4.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows5 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType3 _e0; _e0 = test.MultiRowType3.DeserializeMultiRowType3(_buf); MultiRows5.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows6 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); test.MultiRowType2 _v0; _v0 = test.MultiRowType2.DeserializeMultiRowType2(_buf); MultiRows6.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);MultiRows7 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); MultiRows7.Add(_k0, _v0);}} + } + + public static MultiRowRecord DeserializeMultiRowRecord(ByteBuf _buf) + { + return new test.MultiRowRecord(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly System.Collections.Generic.List OneRows; + public readonly System.Collections.Generic.List MultiRows1; + public readonly test.MultiRowType1[] MultiRows2; + public readonly System.Collections.Generic.Dictionary MultiRows4; + public readonly System.Collections.Generic.List MultiRows5; + public readonly System.Collections.Generic.Dictionary MultiRows6; + public readonly System.Collections.Generic.Dictionary MultiRows7; + + public const int __ID__ = -501249394; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in OneRows) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows1) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows2) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows4.Values) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows5) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows6.Values) { _e?.ResolveRef(tables); } + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "oneRows:" + Luban.StringUtil.CollectionToString(OneRows) + "," + + "multiRows1:" + Luban.StringUtil.CollectionToString(MultiRows1) + "," + + "multiRows2:" + Luban.StringUtil.CollectionToString(MultiRows2) + "," + + "multiRows4:" + Luban.StringUtil.CollectionToString(MultiRows4) + "," + + "multiRows5:" + Luban.StringUtil.CollectionToString(MultiRows5) + "," + + "multiRows6:" + Luban.StringUtil.CollectionToString(MultiRows6) + "," + + "multiRows7:" + Luban.StringUtil.CollectionToString(MultiRows7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowRecord.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowRecord.cs.meta new file mode 100644 index 00000000..a6139531 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowRecord.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4d588860303a63946b0d3878f1263199 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..844a4550 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowTitle.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowTitle : Luban.BeanBase +{ + public MultiRowTitle(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Name = _buf.ReadString(); + X1 = test.H1.DeserializeH1(_buf); + if(_buf.ReadBool()){ X20 = test.H2.DeserializeH2(_buf); } else { X20 = null; } + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.H2 _e0; _e0 = test.H2.DeserializeH2(_buf); X2.Add(_e0);}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new test.H2[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.H2 __e0;__e0 = test.H2.DeserializeH2(_buf); X3[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new test.H2[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.H2 __e0;__e0 = test.H2.DeserializeH2(_buf); X4[__index0] = __e0;}} + } + + public static MultiRowTitle DeserializeMultiRowTitle(ByteBuf _buf) + { + return new test.MultiRowTitle(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.H1 X1; + public readonly test.H2 X20; + public readonly System.Collections.Generic.List X2; + public readonly test.H2[] X3; + public readonly test.H2[] X4; + + public const int __ID__ = 540002427; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + X1?.ResolveRef(tables); + X20?.ResolveRef(tables); + foreach (var _e in X2) { _e?.ResolveRef(tables); } + foreach (var _e in X3) { _e?.ResolveRef(tables); } + foreach (var _e in X4) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "x1:" + X1 + "," + + "x20:" + X20 + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowTitle.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowTitle.cs.meta new file mode 100644 index 00000000..4b557079 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0de97d517c511d44f99749025443a314 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType1.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..ab7dee91 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowType1 : Luban.BeanBase +{ + public MultiRowType1(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + } + + public static MultiRowType1 DeserializeMultiRowType1(ByteBuf _buf) + { + return new test.MultiRowType1(_buf); + } + + public readonly int Id; + public readonly int X; + + public const int __ID__ = 540474970; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType1.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType1.cs.meta new file mode 100644 index 00000000..694db858 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 37f37993d4c46a441809dce0f518454e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..d588d421 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType2.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; + + +namespace cfg.test +{ +public sealed partial class MultiRowType2 : Luban.BeanBase +{ + public MultiRowType2(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X = _buf.ReadInt(); + Y = _buf.ReadFloat(); + } + + public static MultiRowType2 DeserializeMultiRowType2(ByteBuf _buf) + { + return new test.MultiRowType2(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly float Y; + + public const int __ID__ = 540474971; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType2.cs.meta new file mode 100644 index 00000000..2b84c420 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9d211fea56453284fafef057924c6065 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType3.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..b8e221ca --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiRowType3 : Luban.BeanBase +{ + public MultiRowType3(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Items = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.MultiRowType1 _e0; _e0 = test.MultiRowType1.DeserializeMultiRowType1(_buf); Items.Add(_e0);}} + } + + public static MultiRowType3 DeserializeMultiRowType3(ByteBuf _buf) + { + return new test.MultiRowType3(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 540474972; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType3.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType3.cs.meta new file mode 100644 index 00000000..dd080308 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiRowType3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 67c7aad8dc4120a45b7fe9f9390623a1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..5b570bd3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class MultiUnionIndexList : Luban.BeanBase +{ + public MultiUnionIndexList(ByteBuf _buf) + { + Id1 = _buf.ReadInt(); + Id2 = _buf.ReadLong(); + Id3 = _buf.ReadString(); + Num = _buf.ReadInt(); + Desc = _buf.ReadString(); + } + + public static MultiUnionIndexList DeserializeMultiUnionIndexList(ByteBuf _buf) + { + return new test.MultiUnionIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 1966847134; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiUnionIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiUnionIndexList.cs.meta new file mode 100644 index 00000000..13cf17d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.MultiUnionIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2d5048389a6f74c4985f92ec8d35c1f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.NotIndexList.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..5cb96e6f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.NotIndexList.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class NotIndexList : Luban.BeanBase +{ + public NotIndexList(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static NotIndexList DeserializeNotIndexList(ByteBuf _buf) + { + return new test.NotIndexList(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = -50446599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.NotIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.NotIndexList.cs.meta new file mode 100644 index 00000000..667869ce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.NotIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c26feecd30e2a3d4cabc373655e6ad4e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Path.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Path.cs new file mode 100644 index 00000000..bbcf788f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Path.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class Path : Luban.BeanBase +{ + public Path(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Res = _buf.ReadString(); + } + + public static Path DeserializePath(ByteBuf _buf) + { + return new test.Path(_buf); + } + + public readonly int Id; + public readonly string Res; + + public const int __ID__ = -1226450911; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "res:" + Res + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Path.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Path.cs.meta new file mode 100644 index 00000000..44a82fb4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Path.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1387e66e66d26e947b0184db3401e6d1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefBean.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefBean.cs new file mode 100644 index 00000000..d90d1d83 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefBean.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; + + +namespace cfg.test +{ +public sealed partial class RefBean : test.RefDynamicBase +{ + public RefBean(ByteBuf _buf) : base(_buf) + { + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Arr = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); Arr.Add(_e0);}} + } + + public static RefBean DeserializeRefBean(ByteBuf _buf) + { + return new test.RefBean(_buf); + } + + public readonly System.Collections.Generic.List Arr; + + public const int __ID__ = 1963260263; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "arr:" + Luban.StringUtil.CollectionToString(Arr) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefBean.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefBean.cs.meta new file mode 100644 index 00000000..efa8ca04 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefBean.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 543ef7c1fe2897b4b9a3f29fe62a0bfb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..f15d6f28 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefDynamicBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public abstract partial class RefDynamicBase : Luban.BeanBase +{ + public RefDynamicBase(ByteBuf _buf) + { + X = _buf.ReadInt(); + X_Ref = null; + } + + public static RefDynamicBase DeserializeRefDynamicBase(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.RefBean.__ID__: return new test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X; + public test.TestBeRef X_Ref; + + + public virtual void ResolveRef(Tables tables) + { + X_Ref = tables.TbTestBeRef.GetOrDefault(X); + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefDynamicBase.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefDynamicBase.cs.meta new file mode 100644 index 00000000..011f78fa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.RefDynamicBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 61abc2b08c3228f4f8f85501d77f6fa5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Shape.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Shape.cs new file mode 100644 index 00000000..6603e30d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Shape.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public abstract partial class Shape : Luban.BeanBase +{ + public Shape(ByteBuf _buf) + { + } + + public static Shape DeserializeShape(ByteBuf _buf) + { + switch (_buf.ReadInt()) + { + case test.Circle.__ID__: return new test.Circle(_buf); + case test2.Rectangle.__ID__: return new test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Shape.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Shape.cs.meta new file mode 100644 index 00000000..8b7c5066 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Shape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 32a9255098bb95a4995283c756acf006 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable1.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable1.cs new file mode 100644 index 00000000..fb67de27 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable1.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable1 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable1(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.CompositeJsonTable1 _v; + _v = test.CompositeJsonTable1.DeserializeCompositeJsonTable1(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable1 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable1 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable1 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable1.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable1.cs.meta new file mode 100644 index 00000000..2cca7912 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 105f3c7b8aad9ed46b5c786b404947dc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable2.cs new file mode 100644 index 00000000..184d075d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable2.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.CompositeJsonTable2 _v; + _v = test.CompositeJsonTable2.DeserializeCompositeJsonTable2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable2 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable2.cs.meta new file mode 100644 index 00000000..f7a4b109 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2230e2b0dd5ba2643856f26e6d39af25 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable3.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable3.cs new file mode 100644 index 00000000..c49db89d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable3.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbCompositeJsonTable3 +{ + + private readonly test.CompositeJsonTable3 _data; + + public TbCompositeJsonTable3(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(_buf); + } + + + public int A => _data.A; + public int B => _data.B; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable3.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable3.cs.meta new file mode 100644 index 00000000..e9831f10 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbCompositeJsonTable3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0049b17d124aae44392b9f52cdd4fd20 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDataFromMisc.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDataFromMisc.cs new file mode 100644 index 00000000..8eb49cab --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDataFromMisc.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDataFromMisc +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDataFromMisc(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDataFromMisc.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDataFromMisc.cs.meta new file mode 100644 index 00000000..fbe46fdc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDataFromMisc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f5a289ce33aa34419019254d2fbc6bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDefineFromExcel2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDefineFromExcel2.cs new file mode 100644 index 00000000..12db36bf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDefineFromExcel2.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDefineFromExcel2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDefineFromExcel2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + DefineFromExcel2 _v; + _v = DefineFromExcel2.DeserializeDefineFromExcel2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public DefineFromExcel2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public DefineFromExcel2 Get(int key) => _dataMap[key]; + public DefineFromExcel2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDefineFromExcel2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDefineFromExcel2.cs.meta new file mode 100644 index 00000000..66eb96fd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDefineFromExcel2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 28c9a75f76f59f74f90bd6ac20fda208 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup.cs new file mode 100644 index 00000000..420f8c9f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoGroup +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup.cs.meta new file mode 100644 index 00000000..90ca2858 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d08aae354715b00488d8af2c9070d873 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_C.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_C.cs new file mode 100644 index 00000000..61defaba --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_C.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoGroup_C +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup_C(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_C.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_C.cs.meta new file mode 100644 index 00000000..bdd7c000 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_C.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 990fd9ef05fdb3d47abc242178045219 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_E.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_E.cs new file mode 100644 index 00000000..826b3a0f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_E.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoGroup_E +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup_E(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_E.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_E.cs.meta new file mode 100644 index 00000000..2a8bfc36 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_E.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 14df24943ef23dc478559888925614ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_S.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_S.cs new file mode 100644 index 00000000..6bf79a1f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_S.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoGroup_S +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup_S(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoGroup _v; + _v = test.DemoGroup.DeserializeDemoGroup(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_S.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_S.cs.meta new file mode 100644 index 00000000..8c7a23b2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoGroup_S.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ed78e5b31b6119f4592a0e914b7f64d8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoPrimitive.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoPrimitive.cs new file mode 100644 index 00000000..a028209a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoPrimitive.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDemoPrimitive +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoPrimitive(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoPrimitiveTypesTable _v; + _v = test.DemoPrimitiveTypesTable.DeserializeDemoPrimitiveTypesTable(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoPrimitiveTypesTable GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoPrimitiveTypesTable Get(int key) => _dataMap[key]; + public test.DemoPrimitiveTypesTable this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoPrimitive.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoPrimitive.cs.meta new file mode 100644 index 00000000..a478f0aa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDemoPrimitive.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea067ea8cd332374ea538ec114cefab9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDetectCsvEncoding.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDetectCsvEncoding.cs new file mode 100644 index 00000000..d54332fc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDetectCsvEncoding.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbDetectCsvEncoding +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDetectCsvEncoding(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DetectEncoding _v; + _v = test.DetectEncoding.DeserializeDetectEncoding(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DetectEncoding GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DetectEncoding Get(int key) => _dataMap[key]; + public test.DetectEncoding this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDetectCsvEncoding.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDetectCsvEncoding.cs.meta new file mode 100644 index 00000000..a3fbb94b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbDetectCsvEncoding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 809a1e4037041764ea5eb3d35c74f809 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJson.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJson.cs new file mode 100644 index 00000000..05355ac3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJson.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbExcelFromJson +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJson(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.ExcelFromJson _v; + _v = test.ExcelFromJson.DeserializeExcelFromJson(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJson GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJson Get(int key) => _dataMap[key]; + public test.ExcelFromJson this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJson.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJson.cs.meta new file mode 100644 index 00000000..6e270666 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJson.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 40fc285c5943bad4ca5ada0dbb40c9a8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..f832f2ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJsonMultiRow.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbExcelFromJsonMultiRow +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJsonMultiRow(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.ExcelFromJsonMultiRow _v; + _v = test.ExcelFromJsonMultiRow.DeserializeExcelFromJsonMultiRow(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJsonMultiRow GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJsonMultiRow Get(int key) => _dataMap[key]; + public test.ExcelFromJsonMultiRow this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta new file mode 100644 index 00000000..c8f2d46e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ccfa570deb1c4984185cf53d2177acc1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbFullTypes.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbFullTypes.cs new file mode 100644 index 00000000..7afcb59a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbFullTypes.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbFullTypes +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbFullTypes(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.DemoType2 _v; + _v = test.DemoType2.DeserializeDemoType2(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbFullTypes.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbFullTypes.cs.meta new file mode 100644 index 00000000..c736345f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbFullTypes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc005bda84c6564408e9efc6bf7873bc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbItem2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbItem2.cs new file mode 100644 index 00000000..4324c1c3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbItem2.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; + + +namespace cfg.test +{ +public partial class TbItem2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.ItemBase _v; + _v = test.ItemBase.DeserializeItemBase(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public T GetOrDefaultAs(int key) where T : test.ItemBase => _dataMap.TryGetValue(key, out var v) ? (T)v : null; + public T GetAs(int key) where T : test.ItemBase => (T)_dataMap[key]; + public test.ItemBase GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ItemBase Get(int key) => _dataMap[key]; + public test.ItemBase this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbItem2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbItem2.cs.meta new file mode 100644 index 00000000..b57a6e8f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbItem2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1819874946f90b64fb9bac22df8fb407 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiIndexList.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiIndexList.cs new file mode 100644 index 00000000..37525d59 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiIndexList.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; + + +namespace cfg.test +{ +public partial class TbMultiIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary _dataMap_id1; + private System.Collections.Generic.Dictionary _dataMap_id2; + private System.Collections.Generic.Dictionary _dataMap_id3; + + public TbMultiIndexList(ByteBuf _buf) + { + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiIndexList _v; + _v = test.MultiIndexList.DeserializeMultiIndexList(_buf); + _dataList.Add(_v); + } + _dataMap_id1 = new System.Collections.Generic.Dictionary(); + _dataMap_id2 = new System.Collections.Generic.Dictionary(); + _dataMap_id3 = new System.Collections.Generic.Dictionary(); + foreach(var _v in _dataList) + { + _dataMap_id1.Add(_v.Id1, _v); + _dataMap_id2.Add(_v.Id2, _v); + _dataMap_id3.Add(_v.Id3, _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiIndexList GetById1(int key) => _dataMap_id1.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById2(long key) => _dataMap_id2.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById3(string key) => _dataMap_id3.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiIndexList.cs.meta new file mode 100644 index 00000000..147505fd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5d4e29721b556e44e8ad834da554cbd9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowRecord.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowRecord.cs new file mode 100644 index 00000000..3c587cb4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowRecord.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbMultiRowRecord +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowRecord(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiRowRecord _v; + _v = test.MultiRowRecord.DeserializeMultiRowRecord(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowRecord GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowRecord Get(int key) => _dataMap[key]; + public test.MultiRowRecord this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowRecord.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowRecord.cs.meta new file mode 100644 index 00000000..a6370fdc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowRecord.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1e0e63a4bd73cd048aef04e91eecca15 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowTitle.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowTitle.cs new file mode 100644 index 00000000..ba987e67 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowTitle.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbMultiRowTitle +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowTitle(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiRowTitle _v; + _v = test.MultiRowTitle.DeserializeMultiRowTitle(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowTitle GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowTitle Get(int key) => _dataMap[key]; + public test.MultiRowTitle this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowTitle.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowTitle.cs.meta new file mode 100644 index 00000000..70f1dfae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiRowTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4dc2bde835600be46b4db4b4a67e20c3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiUnionIndexList.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiUnionIndexList.cs new file mode 100644 index 00000000..80a0bc90 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiUnionIndexList.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbMultiUnionIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList> _dataMapUnion; + + public TbMultiUnionIndexList(ByteBuf _buf) + { + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.MultiUnionIndexList _v; + _v = test.MultiUnionIndexList.DeserializeMultiUnionIndexList(_buf); + _dataList.Add(_v); + } + _dataMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList>(); + foreach(var _v in _dataList) + { + _dataMapUnion.Add((_v.Id1, _v.Id2, _v.Id3), _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiUnionIndexList Get(int id1, long id2, string id3) => _dataMapUnion.TryGetValue((id1, id2, id3), out test.MultiUnionIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiUnionIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiUnionIndexList.cs.meta new file mode 100644 index 00000000..19b97706 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbMultiUnionIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 89b6058e896227d4fba189615ccdb731 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbNotIndexList.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbNotIndexList.cs new file mode 100644 index 00000000..02b05825 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbNotIndexList.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbNotIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + + public TbNotIndexList(ByteBuf _buf) + { + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.NotIndexList _v; + _v = test.NotIndexList.DeserializeNotIndexList(_buf); + _dataList.Add(_v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbNotIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbNotIndexList.cs.meta new file mode 100644 index 00000000..d23fa547 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbNotIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 38875dceb20eca14e896e3653030b38a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbPath.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbPath.cs new file mode 100644 index 00000000..87a2fe8d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbPath.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbPath +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPath(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.Path _v; + _v = test.Path.DeserializePath(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.Path GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.Path Get(int key) => _dataMap[key]; + public test.Path this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbPath.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbPath.cs.meta new file mode 100644 index 00000000..71a2e0ad --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbPath.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c013c6b1bf243c5439424323253c0007 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbSingleton.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbSingleton.cs new file mode 100644 index 00000000..55b36bb4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbSingleton.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbSingleton +{ + + private readonly test.DemoSingletonType _data; + + public TbSingleton(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.DemoSingletonType.DeserializeDemoSingletonType(_buf); + } + + + public int Id => _data.Id; + public string Name => _data.Name; + public test.DemoDynamic Date => _data.Date; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbSingleton.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbSingleton.cs.meta new file mode 100644 index 00000000..35176172 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbSingleton.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d602e8bb9b0ab0047af35570e7b5eca9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef.cs new file mode 100644 index 00000000..a3b9ae59 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestBeRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef.cs.meta new file mode 100644 index 00000000..db27531d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6778f7857be022245a508e6e7aff1442 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef2.cs new file mode 100644 index 00000000..767d6300 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef2.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestBeRef2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef2(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestBeRef _v; + _v = test.TestBeRef.DeserializeTestBeRef(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef2.cs.meta new file mode 100644 index 00000000..02567fbb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestBeRef2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ad1ae57047f4f4b4288e64f314b12c53 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestGlobal.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestGlobal.cs new file mode 100644 index 00000000..58392ac4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestGlobal.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestGlobal +{ + + private readonly test.TestGlobal _data; + + public TbTestGlobal(ByteBuf _buf) + { + int n = _buf.ReadSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = test.TestGlobal.DeserializeTestGlobal(_buf); + } + + + public int UnlockEquip => _data.UnlockEquip; + public int UnlockHero => _data.UnlockHero; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestGlobal.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestGlobal.cs.meta new file mode 100644 index 00000000..78376caa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a777e14158a7d241a42b949d483bdbc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestIndex.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestIndex.cs new file mode 100644 index 00000000..1985a3ec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestIndex.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestIndex +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestIndex(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestIndex _v; + _v = test.TestIndex.DeserializeTestIndex(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestIndex GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestIndex Get(int key) => _dataMap[key]; + public test.TestIndex this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestIndex.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestIndex.cs.meta new file mode 100644 index 00000000..7a052d83 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestIndex.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1932b161a6727c344a956125ee808c09 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMap.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMap.cs new file mode 100644 index 00000000..a52aae65 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMap.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestMap +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMap(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestMap _v; + _v = test.TestMap.DeserializeTestMap(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMap GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMap Get(int key) => _dataMap[key]; + public test.TestMap this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMap.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMap.cs.meta new file mode 100644 index 00000000..f2495095 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8b56376609ca08340bdd378a3495d3fb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMapper.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMapper.cs new file mode 100644 index 00000000..a97f208a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMapper.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestMapper +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMapper(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestMapper _v; + _v = test.TestMapper.DeserializeTestMapper(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMapper GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMapper Get(int key) => _dataMap[key]; + public test.TestMapper this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMapper.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMapper.cs.meta new file mode 100644 index 00000000..850c461d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMapper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: edb525ce22464ad44a656099d4889abc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMultiColumn.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMultiColumn.cs new file mode 100644 index 00000000..f0c1affb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMultiColumn.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestMultiColumn +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMultiColumn(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestMultiColumn _v; + _v = test.TestMultiColumn.DeserializeTestMultiColumn(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMultiColumn GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMultiColumn Get(int key) => _dataMap[key]; + public test.TestMultiColumn this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMultiColumn.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMultiColumn.cs.meta new file mode 100644 index 00000000..867971cf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestMultiColumn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 249fec5c9a6828749a0b543e0e9bac89 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestNull.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestNull.cs new file mode 100644 index 00000000..ad63a0f8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestNull.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestNull +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestNull(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestNull _v; + _v = test.TestNull.DeserializeTestNull(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestNull GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestNull Get(int key) => _dataMap[key]; + public test.TestNull this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestNull.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestNull.cs.meta new file mode 100644 index 00000000..33bdb62d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 941429fff59708945a8995135ef9216c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestRef.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestRef.cs new file mode 100644 index 00000000..f10c3c4f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestRef.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestRef(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestRef _v; + _v = test.TestRef.DeserializeTestRef(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestRef Get(int key) => _dataMap[key]; + public test.TestRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestRef.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestRef.cs.meta new file mode 100644 index 00000000..c8d8b42a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83601b4419401fb4b9cb59c152cf8ded +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestScriptableObject.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestScriptableObject.cs new file mode 100644 index 00000000..b783f507 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestScriptableObject.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestScriptableObject +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestScriptableObject(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestScriptableObject _v; + _v = test.TestScriptableObject.DeserializeTestScriptableObject(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestScriptableObject GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestScriptableObject Get(int key) => _dataMap[key]; + public test.TestScriptableObject this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestScriptableObject.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestScriptableObject.cs.meta new file mode 100644 index 00000000..e0e420e6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33b363a6f2115af4ba939c075273a47e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSet.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSet.cs new file mode 100644 index 00000000..be2b5a67 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSet.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestSet +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSet(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestSet _v; + _v = test.TestSet.DeserializeTestSet(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSet GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSet Get(int key) => _dataMap[key]; + public test.TestSet this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSet.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSet.cs.meta new file mode 100644 index 00000000..403b1756 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 16748aa2240d9eb4981d2896a1846501 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSize.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSize.cs new file mode 100644 index 00000000..d0727883 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSize.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestSize +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSize(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestSize _v; + _v = test.TestSize.DeserializeTestSize(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSize GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSize Get(int key) => _dataMap[key]; + public test.TestSize this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSize.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSize.cs.meta new file mode 100644 index 00000000..cb9ff9a4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestSize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4ca3b3f794e79654d9a7dd11c2af6867 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestString.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestString.cs new file mode 100644 index 00000000..ebce78e0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestString.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public partial class TbTestString +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestString(ByteBuf _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + for(int n = _buf.ReadSize() ; n > 0 ; --n) + { + test.TestString _v; + _v = test.TestString.DeserializeTestString(_buf); + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestString GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestString Get(string key) => _dataMap[key]; + public test.TestString this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestString.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestString.cs.meta new file mode 100644 index 00000000..8ede3972 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TbTestString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 65b63186315e4014488eec139e182943 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Test3.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Test3.cs new file mode 100644 index 00000000..8962ba3b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Test3.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class Test3 : Luban.BeanBase +{ + public Test3(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadInt(); + } + + public static Test3 DeserializeTest3(ByteBuf _buf) + { + return new test.Test3(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = 638540133; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Test3.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Test3.cs.meta new file mode 100644 index 00000000..905e3da4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.Test3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 95ad83192e3118745af5d77ce51011e1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestBeRef.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..08677e6e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestBeRef.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestBeRef : Luban.BeanBase +{ + public TestBeRef(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Count = _buf.ReadInt(); + } + + public static TestBeRef DeserializeTestBeRef(ByteBuf _buf) + { + return new test.TestBeRef(_buf); + } + + public readonly int Id; + public readonly int Count; + + public const int __ID__ = 1934403938; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "count:" + Count + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestBeRef.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestBeRef.cs.meta new file mode 100644 index 00000000..2d4dbfd1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestBeRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 792896157f40aeb42b8029d30b5c15a9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestExcelBean1.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestExcelBean1.cs new file mode 100644 index 00000000..4be9c6a4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestExcelBean1.cs @@ -0,0 +1,72 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +/// +/// 这是个测试excel结构 +/// +public sealed partial class TestExcelBean1 : Luban.BeanBase +{ + public TestExcelBean1(ByteBuf _buf) + { + X1 = _buf.ReadInt(); + X2 = _buf.ReadString(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadFloat(); + } + + public static TestExcelBean1 DeserializeTestExcelBean1(ByteBuf _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/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestExcelBean1.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestExcelBean1.cs.meta new file mode 100644 index 00000000..47039d28 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestExcelBean1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cd757ed082d29d245b110e7739950695 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestGlobal.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..616585df --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestGlobal.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestGlobal : Luban.BeanBase +{ + public TestGlobal(ByteBuf _buf) + { + UnlockEquip = _buf.ReadInt(); + UnlockHero = _buf.ReadInt(); + } + + public static TestGlobal DeserializeTestGlobal(ByteBuf _buf) + { + return new test.TestGlobal(_buf); + } + + public readonly int UnlockEquip; + public readonly int UnlockHero; + + public const int __ID__ = -12548655; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "unlockEquip:" + UnlockEquip + "," + + "unlockHero:" + UnlockHero + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestGlobal.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestGlobal.cs.meta new file mode 100644 index 00000000..92547554 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a055d1506c4a8064fa81e7b312f1ad2a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestIndex.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestIndex.cs new file mode 100644 index 00000000..a4c2450a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestIndex.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestIndex : Luban.BeanBase +{ + public TestIndex(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Eles = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoType1 _e0; _e0 = test.DemoType1.DeserializeDemoType1(_buf); Eles.Add(_e0);}} + foreach(var _v in Eles) + { + Eles_Index.Add(_v.X1, _v); + } + } + + public static TestIndex DeserializeTestIndex(ByteBuf _buf) + { + return new test.TestIndex(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Eles; + public readonly System.Collections.Generic.Dictionary Eles_Index = new System.Collections.Generic.Dictionary(); + + public const int __ID__ = 1941154020; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Eles) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "eles:" + Luban.StringUtil.CollectionToString(Eles) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestIndex.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestIndex.cs.meta new file mode 100644 index 00000000..58ebd28d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestIndex.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33cfabeab50c9c14c9257fce6fd1f18e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMap.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMap.cs new file mode 100644 index 00000000..a3261db2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMap.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestMap : Luban.BeanBase +{ + public TestMap(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Id_Ref = null; + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X1.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { long _k0; _k0 = _buf.ReadLong(); int _v0; _v0 = _buf.ReadInt(); X2.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { string _k0; _k0 = _buf.ReadString(); int _v0; _v0 = _buf.ReadInt(); X3.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoEnum _k0; _k0 = (test.DemoEnum)_buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X4.Add(_k0, _v0);}} + } + + public static TestMap DeserializeTestMap(ByteBuf _buf) + { + return new test.TestMap(_buf); + } + + public readonly int Id; + public test.TestIndex Id_Ref; + public readonly System.Collections.Generic.Dictionary X1; + public readonly System.Collections.Generic.Dictionary X2; + public readonly System.Collections.Generic.Dictionary X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = -543227410; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Id_Ref = tables.TbTestIndex.GetOrDefault(Id); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMap.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMap.cs.meta new file mode 100644 index 00000000..9a922d4e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3886f027fc207884394f43f428b06162 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMapper.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMapper.cs new file mode 100644 index 00000000..c9351c16 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMapper.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; + + +namespace cfg.test +{ +public sealed partial class TestMapper : Luban.BeanBase +{ + public TestMapper(ByteBuf _buf) + { + Id = _buf.ReadInt(); + AudioType = (AudioType)_buf.ReadInt(); + V2 = vec2.Deserializevec2(_buf); + } + + public static TestMapper DeserializeTestMapper(ByteBuf _buf) + { + return new test.TestMapper(_buf); + } + + public readonly int Id; + public readonly AudioType AudioType; + public readonly vec2 V2; + + public const int __ID__ = 149110895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "audioType:" + AudioType + "," + + "v2:" + V2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMapper.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMapper.cs.meta new file mode 100644 index 00000000..9b5dba7e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMapper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 19d50a17f9aa05e48a3031e4b7b89015 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..3606b8ac --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMultiColumn.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestMultiColumn : Luban.BeanBase +{ + public TestMultiColumn(ByteBuf _buf) + { + Id = _buf.ReadInt(); + A = test.Foo.DeserializeFoo(_buf); + B = test.Foo.DeserializeFoo(_buf); + C = test.Foo.DeserializeFoo(_buf); + } + + public static TestMultiColumn DeserializeTestMultiColumn(ByteBuf _buf) + { + return new test.TestMultiColumn(_buf); + } + + public readonly int Id; + public readonly test.Foo A; + public readonly test.Foo B; + public readonly test.Foo C; + + public const int __ID__ = -294473599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + A?.ResolveRef(tables); + B?.ResolveRef(tables); + C?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "a:" + A + "," + + "b:" + B + "," + + "c:" + C + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMultiColumn.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMultiColumn.cs.meta new file mode 100644 index 00000000..f7542518 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestMultiColumn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 74a6cbb27a93e664d9c7deae86fb70b3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestNull.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestNull.cs new file mode 100644 index 00000000..808feb9b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestNull.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestNull : Luban.BeanBase +{ + public TestNull(ByteBuf _buf) + { + Id = _buf.ReadInt(); + if(_buf.ReadBool()){ X1 = _buf.ReadInt(); } else { X1 = null; } + if(_buf.ReadBool()){ X2 = (test.DemoEnum)_buf.ReadInt(); } else { X2 = null; } + if(_buf.ReadBool()){ X3 = test.DemoType1.DeserializeDemoType1(_buf); } else { X3 = null; } + if(_buf.ReadBool()){ X4 = test.DemoDynamic.DeserializeDemoDynamic(_buf); } else { X4 = null; } + if(_buf.ReadBool()){ S1 = _buf.ReadString(); } else { S1 = null; } + if(_buf.ReadBool()){ S2 = _buf.ReadString(); } else { S2 = null; } + } + + public static TestNull DeserializeTestNull(ByteBuf _buf) + { + return new test.TestNull(_buf); + } + + public readonly int Id; + public readonly int? X1; + public readonly test.DemoEnum? X2; + public readonly test.DemoType1 X3; + public readonly test.DemoDynamic X4; + public readonly string S1; + public readonly string S2; + + public const int __ID__ = 339868469; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + X3?.ResolveRef(tables); + X4?.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestNull.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestNull.cs.meta new file mode 100644 index 00000000..c1f94cf2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4c5b75f28d2e922419ccca004d43d54c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRef.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRef.cs new file mode 100644 index 00000000..0d46c9c5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRef.cs @@ -0,0 +1,131 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestRef : Luban.BeanBase +{ + public TestRef(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X1 = _buf.ReadInt(); + X1_Ref = null; + X12 = _buf.ReadInt(); + X12_Ref = null; + X2 = _buf.ReadInt(); + X3 = _buf.ReadInt(); + X4 = _buf.ReadInt(); + X4_Ref = null; + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);A1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); A1[__index0] = __e0;}} + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);A2 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); A2[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);C1 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); C1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);C2 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); C2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);D1 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); D1.Add(_k0, _v0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);D2 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); D2.Add(_k0, _v0);}} + E1 = _buf.ReadInt(); + E2 = _buf.ReadLong(); + E3 = _buf.ReadString(); + F1 = _buf.ReadInt(); + F2 = _buf.ReadLong(); + F3 = _buf.ReadString(); + S1 = test.RefDynamicBase.DeserializeRefDynamicBase(_buf); + } + + public static TestRef DeserializeTestRef(ByteBuf _buf) + { + return new test.TestRef(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.TestBeRef X1_Ref; + public readonly int X12; + public test.TestBeRef X12_Ref; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public tag.TestTag X4_Ref; + public readonly int[] A1; + public readonly int[] A2; + public readonly System.Collections.Generic.List B1; + public readonly System.Collections.Generic.List B2; + public readonly System.Collections.Generic.HashSet C1; + public readonly System.Collections.Generic.HashSet C2; + public readonly System.Collections.Generic.Dictionary D1; + public readonly System.Collections.Generic.Dictionary D2; + public readonly int E1; + public readonly long E2; + public readonly string E3; + public readonly int F1; + public readonly long F2; + public readonly string F3; + public readonly test.RefDynamicBase S1; + + public const int __ID__ = -543222491; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbTestBeRef.GetOrDefault(X1); + X12_Ref = tables.TbTestBeRef.GetOrDefault(X12); + + + X4_Ref = tables.TbTestTag.GetOrDefault(X4); + + + + + + + + + + + + + + + S1?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x12:" + X12 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "a1:" + Luban.StringUtil.CollectionToString(A1) + "," + + "a2:" + Luban.StringUtil.CollectionToString(A2) + "," + + "b1:" + Luban.StringUtil.CollectionToString(B1) + "," + + "b2:" + Luban.StringUtil.CollectionToString(B2) + "," + + "c1:" + Luban.StringUtil.CollectionToString(C1) + "," + + "c2:" + Luban.StringUtil.CollectionToString(C2) + "," + + "d1:" + Luban.StringUtil.CollectionToString(D1) + "," + + "d2:" + Luban.StringUtil.CollectionToString(D2) + "," + + "e1:" + E1 + "," + + "e2:" + E2 + "," + + "e3:" + E3 + "," + + "f1:" + F1 + "," + + "f2:" + F2 + "," + + "f3:" + F3 + "," + + "s1:" + S1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRef.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRef.cs.meta new file mode 100644 index 00000000..0a0ef423 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ff1433fe70a7b244bbbf8bc592bb32e7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRow.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRow.cs new file mode 100644 index 00000000..27110fef --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRow.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestRow : Luban.BeanBase +{ + public TestRow(ByteBuf _buf) + { + X = _buf.ReadInt(); + Y = _buf.ReadBool(); + Z = _buf.ReadString(); + A = test.Test3.DeserializeTest3(_buf); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);B = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); B.Add(_e0);}} + } + + public static TestRow DeserializeTestRow(ByteBuf _buf) + { + return new test.TestRow(_buf); + } + + public readonly int X; + public readonly bool Y; + public readonly string Z; + public readonly test.Test3 A; + public readonly System.Collections.Generic.List B; + + public const int __ID__ = -543222164; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + A?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "a:" + A + "," + + "b:" + Luban.StringUtil.CollectionToString(B) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRow.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRow.cs.meta new file mode 100644 index 00000000..448eae62 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e4ef06aa6c08f284f89e801748dd7e9c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..187cd241 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestScriptableObject.cs @@ -0,0 +1,69 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestScriptableObject : Luban.BeanBase +{ + public TestScriptableObject(ByteBuf _buf) + { + Id = _buf.ReadInt(); + Desc = _buf.ReadString(); + Rate = _buf.ReadFloat(); + Num = _buf.ReadInt(); + V2 = vec2.Deserializevec2(_buf); + V3 = vec3.Deserializevec3(_buf); + V4 = vec4.Deserializevec4(_buf); + } + + public static TestScriptableObject DeserializeTestScriptableObject(ByteBuf _buf) + { + return new test.TestScriptableObject(_buf); + } + + public readonly int Id; + public readonly string Desc; + public readonly float Rate; + public readonly int Num; + public readonly vec2 V2; + public readonly vec3 V3; + public readonly vec4 V4; + + public const int __ID__ = -1896814350; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "desc:" + Desc + "," + + "rate:" + Rate + "," + + "num:" + Num + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestScriptableObject.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestScriptableObject.cs.meta new file mode 100644 index 00000000..ae388292 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8023f9553b6d8d04bbb5f05224a51617 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSet.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSet.cs new file mode 100644 index 00000000..1c40d35d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSet.cs @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestSet : Luban.BeanBase +{ + public TestSet(ByteBuf _buf) + { + Id = _buf.ReadInt(); + X0 = _buf.ReadString(); + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X1.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { long _e0; _e0 = _buf.ReadLong(); X2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { string _e0; _e0 = _buf.ReadString(); X3.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoEnum _e0; _e0 = (test.DemoEnum)_buf.ReadInt(); X4.Add(_e0);}} + } + + public static TestSet DeserializeTestSet(ByteBuf _buf) + { + return new test.TestSet(_buf); + } + + public readonly int Id; + public readonly string X0; + public readonly System.Collections.Generic.List X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.List X3; + public readonly System.Collections.Generic.List X4; + + public const int __ID__ = -543221516; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x0:" + X0 + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSet.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSet.cs.meta new file mode 100644 index 00000000..673276ac --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0aa637c093f172e4a8e2f6e29722c652 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSize.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSize.cs new file mode 100644 index 00000000..c339ff2e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSize.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestSize : Luban.BeanBase +{ + public TestSize(ByteBuf _buf) + { + Id = _buf.ReadInt(); + {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); X1[__index0] = __e0;}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X2 = new System.Collections.Generic.List(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X2.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X3 = new System.Collections.Generic.HashSet(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X3.Add(_e0);}} + {int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X4 = new System.Collections.Generic.Dictionary(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); X4.Add(_k0, _v0);}} + } + + public static TestSize DeserializeTestSize(ByteBuf _buf) + { + return new test.TestSize(_buf); + } + + public readonly int Id; + public readonly int[] X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.HashSet X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = 340006319; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSize.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSize.cs.meta new file mode 100644 index 00000000..d3a1ca5d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestSize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d578089dd945b6847bde7da95267f1a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestString.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestString.cs new file mode 100644 index 00000000..4b159160 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestString.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test +{ +public sealed partial class TestString : Luban.BeanBase +{ + public TestString(ByteBuf _buf) + { + Id = _buf.ReadString(); + S1 = _buf.ReadString(); + S2 = _buf.ReadString(); + Cs1 = test.CompactString.DeserializeCompactString(_buf); + Cs2 = test.CompactString.DeserializeCompactString(_buf); + } + + public static TestString DeserializeTestString(ByteBuf _buf) + { + return new test.TestString(_buf); + } + + public readonly string Id; + public readonly string S1; + public readonly string S2; + public readonly test.CompactString Cs1; + public readonly test.CompactString Cs2; + + public const int __ID__ = 338485823; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + Cs1?.ResolveRef(tables); + Cs2?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "cs1:" + Cs1 + "," + + "cs2:" + Cs2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestString.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestString.cs.meta new file mode 100644 index 00000000..4f2bea58 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.TestString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cdbad1802ded8f74da9087d563625478 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..03688784 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.login.RoleInfo.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg.test.login +{ +public sealed partial class RoleInfo : test.DemoD3 +{ + public RoleInfo(ByteBuf _buf) : base(_buf) + { + RoleId = _buf.ReadLong(); + } + + public static RoleInfo DeserializeRoleInfo(ByteBuf _buf) + { + return new test.login.RoleInfo(_buf); + } + + public readonly long RoleId; + + public const int __ID__ = -989153243; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "roleId:" + RoleId + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.login.RoleInfo.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.login.RoleInfo.cs.meta new file mode 100644 index 00000000..34d6a449 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test.login.RoleInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f9a9107a0837aff49a48a5301c7ea77e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test2.Rectangle.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..16ae24c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test2.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; + + +namespace cfg.test2 +{ +/// +/// 矩形 +/// +public sealed partial class Rectangle : test.Shape +{ + public Rectangle(ByteBuf _buf) : base(_buf) + { + Width = _buf.ReadFloat(); + Height = _buf.ReadFloat(); + } + + public static Rectangle DeserializeRectangle(ByteBuf _buf) + { + return new test2.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = 694982337; + 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/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test2.Rectangle.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test2.Rectangle.cs.meta new file mode 100644 index 00000000..43aca618 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/test2.Rectangle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6a78f60f9fc27de4689d612d908d8fb8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec2.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec2.cs new file mode 100644 index 00000000..b4d06c81 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec2.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; + + +namespace cfg +{ +public partial struct vec2 +{ + public vec2(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + } + + public static vec2 Deserializevec2(ByteBuf _buf) + { + return new vec2(_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/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec2.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec2.cs.meta new file mode 100644 index 00000000..698a4aac --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 20622c948f7ae9446877dd5f2e8cf487 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec3.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec3.cs new file mode 100644 index 00000000..6b3392b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec3.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using Luban; + + +namespace cfg +{ +public partial struct vec3 +{ + public vec3(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + Z = _buf.ReadFloat(); + } + + public static vec3 Deserializevec3(ByteBuf _buf) + { + return new vec3(_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/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec3.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec3.cs.meta new file mode 100644 index 00000000..a4da8b5e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 34ee047656d0dbc48a0519a76a5380d9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec4.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec4.cs new file mode 100644 index 00000000..3e92e00c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec4.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; + + +namespace cfg +{ +public partial struct vec4 +{ + public vec4(ByteBuf _buf) + { + X = _buf.ReadFloat(); + Y = _buf.ReadFloat(); + Z = _buf.ReadFloat(); + W = _buf.ReadFloat(); + } + + public static vec4 Deserializevec4(ByteBuf _buf) + { + return new vec4(_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/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec4.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec4.cs.meta new file mode 100644 index 00000000..880f6d98 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Gen/vec4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a4fb29a29c0b1da41899211c750b98cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/LubanLib.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/LubanLib.meta new file mode 100644 index 00000000..dde082b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/LubanLib.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cedb16c4105d7db4b8dbed90eeb838e5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Main.cs b/luban_examples/Projects/Csharp_Unity_bin/Assets/Main.cs new file mode 100644 index 00000000..69cba867 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Main.cs @@ -0,0 +1,26 @@ +using System.Collections; +using System.Collections.Generic; +using System.IO; +using Luban; +using UnityEngine; + +public class Main : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + var tables = new cfg.Tables(LoadByteBuf); + var item = tables.TbItem.DataList[1]; + UnityEngine.Debug.LogFormat("item[1]:{0}", item); + + var refv = tables.TbTestRef.DataList[0].X1_Ref; + Debug.LogFormat("refv:{0}", refv); + + UnityEngine.Debug.Log("== load succ=="); + } + + private static ByteBuf LoadByteBuf(string file) + { + return new ByteBuf(File.ReadAllBytes($"{Application.dataPath}/../../GenerateDatas/bytes/{file}.bytes")); + } +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Main.cs.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Main.cs.meta new file mode 100644 index 00000000..eba75ac3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Main.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 68efedfcdd561c447adb54013912e09c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes.meta new file mode 100644 index 00000000..934a73f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bec329fa68bcdff45b33176a93c796f8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes/SampleScene.unity b/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes/SampleScene.unity new file mode 100644 index 00000000..a2476389 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes/SampleScene.unity @@ -0,0 +1,166 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &810827987 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 810827989} + - component: {fileID: 810827988} + m_Layer: 0 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &810827988 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 68efedfcdd561c447adb54013912e09c, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &810827989 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + 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_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes/SampleScene.unity.meta b/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes/SampleScene.unity.meta new file mode 100644 index 00000000..2c1fece9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Assets/Scenes/SampleScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f47aaf9f1663a784b8c9e34aea07d71a +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_bin/Csharp_Unity_bin.sln b/luban_examples/Projects/Csharp_Unity_bin/Csharp_Unity_bin.sln new file mode 100644 index 00000000..f375a2ee --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Csharp_Unity_bin.sln @@ -0,0 +1,32 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{8C2340B4-3502-9303-941B-EFC922FC43DA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luban.Runtime", "Luban.Runtime.csproj", "{18712A1F-D2F0-F17D-E630-F55F42737BC5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luban.Editor", "Luban.Editor.csproj", "{815A83B3-18E9-192D-5914-8C2B3544DEBC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8C2340B4-3502-9303-941B-EFC922FC43DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8C2340B4-3502-9303-941B-EFC922FC43DA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8C2340B4-3502-9303-941B-EFC922FC43DA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8C2340B4-3502-9303-941B-EFC922FC43DA}.Release|Any CPU.Build.0 = Release|Any CPU + {18712A1F-D2F0-F17D-E630-F55F42737BC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {18712A1F-D2F0-F17D-E630-F55F42737BC5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {18712A1F-D2F0-F17D-E630-F55F42737BC5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {18712A1F-D2F0-F17D-E630-F55F42737BC5}.Release|Any CPU.Build.0 = Release|Any CPU + {815A83B3-18E9-192D-5914-8C2B3544DEBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {815A83B3-18E9-192D-5914-8C2B3544DEBC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {815A83B3-18E9-192D-5914-8C2B3544DEBC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {815A83B3-18E9-192D-5914-8C2B3544DEBC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Csharp_Unity_bin/Luban.Editor.csproj b/luban_examples/Projects/Csharp_Unity_bin/Luban.Editor.csproj new file mode 100644 index 00000000..8a8cb834 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Luban.Editor.csproj @@ -0,0 +1,979 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {815A83B3-18E9-192D-5914-8C2B3544DEBC} + Library + Properties + Luban.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Editor:5 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.NVIDIAModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.ext.nunit@1.0.6\net35\unity-custom\nunit.framework.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\UnityEngine.TestRunner.dll + + + Library\ScriptAssemblies\UnityEditor.TestRunner.dll + + + + + {18712A1F-D2F0-F17D-E630-F55F42737BC5} + Luban.Runtime + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Luban.Runtime.csproj b/luban_examples/Projects/Csharp_Unity_bin/Luban.Runtime.csproj new file mode 100644 index 00000000..306a2fe7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Luban.Runtime.csproj @@ -0,0 +1,969 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {18712A1F-D2F0-F17D-E630-F55F42737BC5} + Library + Properties + Luban.Runtime + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Game:1 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_bin/Packages/manifest.json b/luban_examples/Projects/Csharp_Unity_bin/Packages/manifest.json new file mode 100644 index 00000000..be2f65e6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Packages/manifest.json @@ -0,0 +1,45 @@ +{ + "dependencies": { + "com.code-philosophy.luban": "https://github.com/focus-creative-games/luban_unity.git", + "com.unity.collab-proxy": "1.15.15", + "com.unity.ide.rider": "3.0.13", + "com.unity.ide.visualstudio": "2.0.14", + "com.unity.ide.vscode": "1.2.5", + "com.unity.test-framework": "1.1.31", + "com.unity.textmeshpro": "3.0.6", + "com.unity.timeline": "1.6.4", + "com.unity.ugui": "1.0.0", + "com.unity.visualscripting": "1.7.6", + "com.unity.modules.ai": "1.0.0", + "com.unity.modules.androidjni": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.cloth": "1.0.0", + "com.unity.modules.director": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.physics2d": "1.0.0", + "com.unity.modules.screencapture": "1.0.0", + "com.unity.modules.terrain": "1.0.0", + "com.unity.modules.terrainphysics": "1.0.0", + "com.unity.modules.tilemap": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.uielements": "1.0.0", + "com.unity.modules.umbra": "1.0.0", + "com.unity.modules.unityanalytics": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.unitywebrequesttexture": "1.0.0", + "com.unity.modules.unitywebrequestwww": "1.0.0", + "com.unity.modules.vehicles": "1.0.0", + "com.unity.modules.video": "1.0.0", + "com.unity.modules.vr": "1.0.0", + "com.unity.modules.wind": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/Packages/packages-lock.json b/luban_examples/Projects/Csharp_Unity_bin/Packages/packages-lock.json new file mode 100644 index 00000000..c5f8a3c7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/Packages/packages-lock.json @@ -0,0 +1,366 @@ +{ + "dependencies": { + "com.code-philosophy.luban": { + "version": "https://github.com/focus-creative-games/luban_unity.git", + "depth": 0, + "source": "git", + "dependencies": {}, + "hash": "aa41b56501c9a7decf01dfd842a1e6ee894c85bb" + }, + "com.unity.collab-proxy": { + "version": "1.15.15", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.services.core": "1.0.1" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ext.nunit": { + "version": "1.0.6", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.ide.rider": { + "version": "3.0.13", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.visualstudio": { + "version": "2.0.14", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.test-framework": "1.1.9" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.vscode": { + "version": "1.2.5", + "depth": 0, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.services.core": { + "version": "1.0.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.test-framework": { + "version": "1.1.31", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.textmeshpro": { + "version": "3.0.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.timeline": { + "version": "1.6.4", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.modules.director": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ugui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0" + } + }, + "com.unity.visualscripting": { + "version": "1.7.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.modules.ai": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.androidjni": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.animation": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.assetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.audio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.cloth": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.director": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.animation": "1.0.0" + } + }, + "com.unity.modules.imageconversion": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.imgui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.jsonserialize": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.particlesystem": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics2d": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.screencapture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.subsystems": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.terrain": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.terrainphysics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.terrain": "1.0.0" + } + }, + "com.unity.modules.tilemap": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics2d": "1.0.0" + } + }, + "com.unity.modules.ui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.uielements": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.uielementsnative": "1.0.0" + } + }, + "com.unity.modules.uielementsnative": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.umbra": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unityanalytics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.unitywebrequest": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unitywebrequestassetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestaudio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.audio": "1.0.0" + } + }, + "com.unity.modules.unitywebrequesttexture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestwww": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.vehicles": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.video": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.vr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } + }, + "com.unity.modules.wind": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.xr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.subsystems": "1.0.0" + } + } + } +} diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/AudioManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/AudioManager.asset new file mode 100644 index 00000000..07ebfb05 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/AudioManager.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 1024 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_SpatializerPlugin: + m_AmbisonicDecoderPlugin: + m_DisableAudio: 0 + m_VirtualizeEffects: 1 + m_RequestedDSPBufferSize: 1024 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ClusterInputManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 00000000..e7886b26 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/DynamicsManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/DynamicsManager.asset new file mode 100644 index 00000000..cdc1f3ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_Gravity: {x: 0, y: -9.81, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_SleepThreshold: 0.005 + m_DefaultContactOffset: 0.01 + m_DefaultSolverIterations: 6 + m_DefaultSolverVelocityIterations: 1 + m_QueriesHitBackfaces: 0 + m_QueriesHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_ClothInterCollisionDistance: 0 + m_ClothInterCollisionStiffness: 0 + m_ContactsGeneration: 1 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_AutoSimulation: 1 + m_AutoSyncTransforms: 0 + m_ReuseCollisionCallbacks: 1 + m_ClothInterCollisionSettingsToggle: 0 + m_ContactPairsMode: 0 + m_BroadphaseType: 0 + m_WorldBounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 250, y: 250, z: 250} + m_WorldSubdivisions: 8 + m_FrictionType: 0 + m_EnableEnhancedDeterminism: 0 + m_EnableUnifiedHeightmaps: 1 + m_DefaultMaxAngluarSpeed: 7 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/EditorBuildSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 00000000..0147887e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: [] + m_configObjects: {} diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/EditorSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/EditorSettings.asset new file mode 100644 index 00000000..f9205447 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/EditorSettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_ExternalVersionControlSupport: Visible Meta Files + m_SerializationMode: 2 + m_LineEndingsForNewScripts: 0 + m_DefaultBehaviorMode: 0 + m_PrefabRegularEnvironment: {fileID: 0} + m_PrefabUIEnvironment: {fileID: 0} + m_SpritePackerMode: 0 + m_SpritePackerPaddingPower: 1 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 + m_EtcTextureNormalCompressor: 2 + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref + m_ProjectGenerationRootNamespace: + m_CollabEditorSettings: + inProgressEnabled: 1 + m_EnableTextureStreamingInEditMode: 1 + m_EnableTextureStreamingInPlayMode: 1 + m_AsyncShaderCompilation: 1 + m_EnterPlayModeOptionsEnabled: 0 + m_EnterPlayModeOptions: 3 + m_ShowLightmapResolutionOverlay: 1 + m_UseLegacyProbeSampleCount: 0 + m_AssetPipelineMode: 1 + m_CacheServerMode: 0 + m_CacheServerEndpoint: + m_CacheServerNamespacePrefix: default + m_CacheServerEnableDownload: 1 + m_CacheServerEnableUpload: 1 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/GraphicsSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 00000000..43369e3c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,63 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 13 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_ScreenSpaceShadows: + m_Mode: 1 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_DepthNormals: + m_Mode: 1 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} + m_MotionVectors: + m_Mode: 1 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} + m_LightHalo: + m_Mode: 1 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} + m_LensFlare: + m_Mode: 1 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} + m_AlwaysIncludedShaders: + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, + type: 0} + m_CustomRenderPipeline: {fileID: 0} + m_TransparencySortMode: 0 + m_TransparencySortAxis: {x: 0, y: 0, z: 1} + m_DefaultRenderingPath: 1 + m_DefaultMobileRenderingPath: 1 + m_TierSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_InstancingStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepShadowMask: 1 + m_LightmapKeepSubtractive: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 + m_AlbedoSwatchInfos: [] + m_LightsUseLinearIntensity: 0 + m_LightsUseColorTemperature: 0 + m_LogWhenShaderIsCompiled: 0 + m_AllowEnlightenSupportForUpgradedProject: 0 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/InputManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/InputManager.asset new file mode 100644 index 00000000..17c8f538 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/InputManager.asset @@ -0,0 +1,295 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/MemorySettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/MemorySettings.asset new file mode 100644 index 00000000..5b5facec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/MemorySettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!387306366 &1 +MemorySettings: + m_ObjectHideFlags: 0 + m_EditorMemorySettings: + m_MainAllocatorBlockSize: -1 + m_ThreadAllocatorBlockSize: -1 + m_MainGfxBlockSize: -1 + m_ThreadGfxBlockSize: -1 + m_CacheBlockSize: -1 + m_TypetreeBlockSize: -1 + m_ProfilerBlockSize: -1 + m_ProfilerEditorBlockSize: -1 + m_BucketAllocatorGranularity: -1 + m_BucketAllocatorBucketsCount: -1 + m_BucketAllocatorBlockSize: -1 + m_BucketAllocatorBlockCount: -1 + m_ProfilerBucketAllocatorGranularity: -1 + m_ProfilerBucketAllocatorBucketsCount: -1 + m_ProfilerBucketAllocatorBlockSize: -1 + m_ProfilerBucketAllocatorBlockCount: -1 + m_TempAllocatorSizeMain: -1 + m_JobTempAllocatorBlockSize: -1 + m_BackgroundJobTempAllocatorBlockSize: -1 + m_JobTempAllocatorReducedBlockSize: -1 + m_TempAllocatorSizeGIBakingWorker: -1 + m_TempAllocatorSizeNavMeshWorker: -1 + m_TempAllocatorSizeAudioWorker: -1 + m_TempAllocatorSizeCloudWorker: -1 + m_TempAllocatorSizeGfx: -1 + m_TempAllocatorSizeJobWorker: -1 + m_TempAllocatorSizeBackgroundWorker: -1 + m_TempAllocatorSizePreloadManager: -1 + m_PlatformMemorySettings: {} diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/NavMeshAreas.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 00000000..3b0b7c3d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,91 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshProjectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + m_LastAgentTypeID: -887442657 + m_Settings: + - serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.75 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_SettingNames: + - Humanoid diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/PackageManagerSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/PackageManagerSettings.asset new file mode 100644 index 00000000..be4a7974 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/PackageManagerSettings.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_EnablePreviewPackages: 0 + m_EnablePackageDependencies: 0 + m_AdvancedSettingsExpanded: 1 + m_ScopedRegistriesSettingsExpanded: 1 + oneTimeWarningShown: 0 + m_Registries: + - m_Id: main + m_Name: + m_Url: https://packages.unity.com + m_Scopes: [] + m_IsDefault: 1 + m_Capabilities: 7 + m_UserSelectedRegistryName: + m_UserAddingNewScopedRegistry: 0 + m_RegistryInfoDraft: + m_ErrorMessage: + m_Original: + m_Id: + m_Name: + m_Url: + m_Scopes: [] + m_IsDefault: 0 + m_Capabilities: 0 + m_Modified: 0 + m_Name: + m_Url: + m_Scopes: + - + m_SelectedScopeIndex: 0 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/Physics2DSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 00000000..47880b1c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,56 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_Gravity: {x: 0, y: -9.81} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: 0.2 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_BaumgarteScale: 0.2 + m_BaumgarteTimeOfImpactScale: 0.75 + m_TimeToSleep: 0.5 + m_LinearSleepTolerance: 0.01 + m_AngularSleepTolerance: 2 + m_DefaultContactOffset: 0.01 + m_JobOptions: + serializedVersion: 2 + useMultithreading: 0 + useConsistencySorting: 0 + m_InterpolationPosesPerJob: 100 + m_NewContactsPerJob: 30 + m_CollideContactsPerJob: 100 + m_ClearFlagsPerJob: 200 + m_ClearBodyForcesPerJob: 200 + m_SyncDiscreteFixturesPerJob: 50 + m_SyncContinuousFixturesPerJob: 50 + m_FindNearestContactsPerJob: 100 + m_UpdateTriggerContactsPerJob: 100 + m_IslandSolverCostThreshold: 100 + m_IslandSolverBodyCostScale: 1 + m_IslandSolverContactCostScale: 10 + m_IslandSolverJointCostScale: 10 + m_IslandSolverBodiesPerJob: 50 + m_IslandSolverContactsPerJob: 50 + m_AutoSimulation: 1 + m_QueriesHitTriggers: 1 + m_QueriesStartInColliders: 1 + m_CallbacksOnDisable: 1 + m_ReuseCollisionCallbacks: 1 + m_AutoSyncTransforms: 0 + m_AlwaysShowColliders: 0 + m_ShowColliderSleep: 1 + m_ShowColliderContacts: 0 + m_ShowColliderAABB: 0 + m_ContactArrowScale: 0.2 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/PresetManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/PresetManager.asset new file mode 100644 index 00000000..67a94dae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/PresetManager.asset @@ -0,0 +1,7 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1386491679 &1 +PresetManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_DefaultPresets: {} diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ProjectSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ProjectSettings.asset new file mode 100644 index 00000000..9b5d87bf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,788 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 23 + productGUID: 79020594a22363045965b78210aa6ed4 + AndroidProfiler: 0 + AndroidFilterTouchesWhenObscured: 0 + AndroidEnableSustainedPerformanceMode: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: DefaultCompany + productName: Csharp_Unity + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} + m_ShowUnitySplashScreen: 1 + m_ShowUnitySplashLogo: 1 + m_SplashScreenOverlayOpacity: 1 + m_SplashScreenAnimation: 1 + m_SplashScreenLogoStyle: 1 + m_SplashScreenDrawMode: 0 + m_SplashScreenBackgroundAnimationZoom: 1 + m_SplashScreenLogoAnimationZoom: 1 + m_SplashScreenBackgroundLandscapeAspect: 1 + m_SplashScreenBackgroundPortraitAspect: 1 + m_SplashScreenBackgroundLandscapeUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenBackgroundPortraitUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenLogos: [] + m_VirtualRealitySplashScreen: {fileID: 0} + m_HolographicTrackingLossScreen: {fileID: 0} + defaultScreenWidth: 1024 + defaultScreenHeight: 768 + defaultScreenWidthWeb: 960 + defaultScreenHeightWeb: 600 + m_StereoRenderingPath: 0 + m_ActiveColorSpace: 0 + m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosUseCustomAppBackgroundBehavior: 0 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + preserveFramebufferAlpha: 0 + disableDepthAndStencilBuffers: 0 + androidStartInFullscreen: 1 + androidRenderOutsideSafeArea: 1 + androidUseSwappy: 0 + androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 + defaultIsNativeResolution: 1 + macRetinaSupport: 1 + runInBackground: 1 + captureSingleScreen: 0 + muteOtherAudioSources: 0 + Prepare IOS For Recording: 0 + Force IOS Speakers When Recording: 0 + deferSystemGesturesMode: 0 + hideHomeButton: 0 + submitAnalytics: 1 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + useFlipModelSwapchain: 1 + resizableWindow: 0 + useMacAppStoreValidation: 0 + macAppStoreCategory: public.app-category.games + gpuSkinning: 1 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 1 + allowFullscreenSwitch: 1 + fullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + xboxEnablePIXSampling: 0 + metalFramebufferOnly: 0 + xboxOneResolution: 0 + xboxOneSResolution: 0 + xboxOneXResolution: 3 + xboxOneMonoLoggingLevel: 0 + xboxOneLoggingLevel: 1 + xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 + xboxOnePresentImmediateThreshold: 0 + switchQueueCommandMemory: 0 + switchQueueControlMemory: 16384 + switchQueueComputeMemory: 262144 + switchNVNShaderPoolsGranularity: 33554432 + switchNVNDefaultPoolsGranularity: 16777216 + switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 + vulkanNumSwapchainBuffers: 3 + vulkanEnableSetSRGBWrite: 0 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 + vulkanEnableCommandBufferRecycling: 1 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleVersion: 0.1 + preloadedAssets: [] + metroInputSource: 0 + wsaTransparentSwapchain: 0 + m_HolographicPauseOnTrackingLoss: 1 + xboxOneDisableKinectGpuReservation: 1 + xboxOneEnable7thCore: 1 + vrSettings: + enable360StereoCapture: 0 + isWsaHolographicRemotingEnabled: 0 + enableFrameTimingStats: 0 + useHDRDisplay: 0 + D3DHDRBitDepth: 0 + m_ColorGamuts: 00000000 + targetPixelDensity: 30 + resolutionScalingMode: 0 + androidSupportedAspectRatio: 1 + androidMaxAspectRatio: 2.1 + applicationIdentifier: {} + buildNumber: + Standalone: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 0 + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 22 + AndroidTargetSdkVersion: 0 + AndroidPreferredInstallLocation: 1 + aotOptions: + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + keepLoadedShadersAlive: 0 + StripUnusedMeshComponents: 1 + VertexChannelCompressionMask: 4054 + iPhoneSdkVersion: 988 + iOSTargetOSVersionString: 11.0 + tvOSSdkVersion: 0 + tvOSRequireExtendedGameController: 0 + tvOSTargetOSVersionString: 11.0 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + appleTVSplashScreen: {fileID: 0} + appleTVSplashScreen2x: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSSmallIconLayers2x: [] + tvOSLargeIconLayers: [] + tvOSLargeIconLayers2x: [] + tvOSTopShelfImageLayers: [] + tvOSTopShelfImageLayers2x: [] + tvOSTopShelfImageWideLayers: [] + tvOSTopShelfImageWideLayers2x: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: + iOSDeviceRequirements: [] + iOSURLSchemes: [] + macOSURLSchemes: [] + iOSBackgroundModes: 0 + iOSMetalForceHardShadows: 0 + metalEditorSupport: 1 + metalAPIValidation: 1 + iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 + appleDeveloperTeamID: + iOSManualSigningProvisioningProfileID: + tvOSManualSigningProvisioningProfileID: + iOSManualSigningProvisioningProfileType: 0 + tvOSManualSigningProvisioningProfileType: 0 + appleEnableAutomaticSigning: 0 + iOSRequireARKit: 0 + iOSAutomaticallyDetectAndAddCapabilities: 1 + appleEnableProMotion: 0 + shaderPrecisionModel: 0 + clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea + templatePackageId: com.unity.template.3d@4.2.8 + templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomProguardFile: 0 + AndroidTargetArchitectures: 1 + AndroidTargetDevices: 0 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidBuildApkPerCpuArchitecture: 0 + AndroidTVCompatibility: 0 + AndroidIsGame: 1 + AndroidEnableTango: 0 + androidEnableBanner: 1 + androidUseLowAccuracyLocation: 0 + androidUseCustomKeystore: 0 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidMinifyWithR8: 0 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 + AndroidValidateAppBundleSize: 1 + AndroidAppBundleSizeToValidate: 150 + m_BuildTargetIcons: [] + m_BuildTargetPlatformIcons: + - m_BuildTarget: Android + m_Icons: + - m_Textures: [] + m_Width: 432 + m_Height: 432 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 324 + m_Height: 324 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 216 + m_Height: 216 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 162 + m_Height: 162 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 108 + m_Height: 108 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 81 + m_Height: 81 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 0 + m_SubKind: + m_BuildTargetBatching: + - m_BuildTarget: Standalone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: tvOS + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: Android + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: iPhone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: WebGL + m_StaticBatching: 0 + m_DynamicBatching: 0 + m_BuildTargetGraphicsJobs: + - m_BuildTarget: MacStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: Switch + m_GraphicsJobs: 1 + - m_BuildTarget: MetroSupport + m_GraphicsJobs: 1 + - m_BuildTarget: AppleTVSupport + m_GraphicsJobs: 0 + - m_BuildTarget: BJMSupport + m_GraphicsJobs: 1 + - m_BuildTarget: LinuxStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: PS4Player + m_GraphicsJobs: 1 + - m_BuildTarget: iOSSupport + m_GraphicsJobs: 0 + - m_BuildTarget: WindowsStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobs: 1 + - m_BuildTarget: LuminSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AndroidPlayer + m_GraphicsJobs: 0 + - m_BuildTarget: WebGLSupport + m_GraphicsJobs: 0 + m_BuildTargetGraphicsJobMode: + - m_BuildTarget: PS4Player + m_GraphicsJobMode: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobMode: 0 + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: AndroidPlayer + m_APIs: 150000000b000000 + m_Automatic: 1 + - m_BuildTarget: iOSSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: AppleTVSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: WebGLSupport + m_APIs: 0b000000 + m_Automatic: 1 + m_BuildTargetVRSettings: + - m_BuildTarget: Standalone + m_Enabled: 0 + m_Devices: + - Oculus + - OpenVR + openGLRequireES31: 0 + openGLRequireES31AEP: 0 + openGLRequireES32: 0 + m_TemplateCustomTags: {} + mobileMTRendering: + Android: 1 + iPhone: 1 + tvOS: 1 + m_BuildTargetGroupLightmapEncodingQuality: [] + m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetNormalMapEncoding: [] + m_BuildTargetDefaultTextureCompressionFormat: [] + playModeTestRunnerEnabled: 0 + runPlayModeTestAsEditModeTest: 0 + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: + bluetoothUsageDescription: + switchNMETAOverride: + switchNetLibKey: + switchSocketMemoryPoolSize: 6144 + switchSocketAllocatorPoolSize: 128 + switchSocketConcurrencyLimit: 14 + switchScreenResolutionBehavior: 2 + switchUseCPUProfiler: 0 + switchUseGOLDLinker: 0 + switchLTOSetting: 0 + switchApplicationID: 0x01004b9000490000 + switchNSODependencies: + switchTitleNames_0: + switchTitleNames_1: + switchTitleNames_2: + switchTitleNames_3: + switchTitleNames_4: + switchTitleNames_5: + switchTitleNames_6: + switchTitleNames_7: + switchTitleNames_8: + switchTitleNames_9: + switchTitleNames_10: + switchTitleNames_11: + switchTitleNames_12: + switchTitleNames_13: + switchTitleNames_14: + switchTitleNames_15: + switchPublisherNames_0: + switchPublisherNames_1: + switchPublisherNames_2: + switchPublisherNames_3: + switchPublisherNames_4: + switchPublisherNames_5: + switchPublisherNames_6: + switchPublisherNames_7: + switchPublisherNames_8: + switchPublisherNames_9: + switchPublisherNames_10: + switchPublisherNames_11: + switchPublisherNames_12: + switchPublisherNames_13: + switchPublisherNames_14: + switchPublisherNames_15: + switchIcons_0: {fileID: 0} + switchIcons_1: {fileID: 0} + switchIcons_2: {fileID: 0} + switchIcons_3: {fileID: 0} + switchIcons_4: {fileID: 0} + switchIcons_5: {fileID: 0} + switchIcons_6: {fileID: 0} + switchIcons_7: {fileID: 0} + switchIcons_8: {fileID: 0} + switchIcons_9: {fileID: 0} + switchIcons_10: {fileID: 0} + switchIcons_11: {fileID: 0} + switchIcons_12: {fileID: 0} + switchIcons_13: {fileID: 0} + switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} + switchSmallIcons_0: {fileID: 0} + switchSmallIcons_1: {fileID: 0} + switchSmallIcons_2: {fileID: 0} + switchSmallIcons_3: {fileID: 0} + switchSmallIcons_4: {fileID: 0} + switchSmallIcons_5: {fileID: 0} + switchSmallIcons_6: {fileID: 0} + switchSmallIcons_7: {fileID: 0} + switchSmallIcons_8: {fileID: 0} + switchSmallIcons_9: {fileID: 0} + switchSmallIcons_10: {fileID: 0} + switchSmallIcons_11: {fileID: 0} + switchSmallIcons_12: {fileID: 0} + switchSmallIcons_13: {fileID: 0} + switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} + switchManualHTML: + switchAccessibleURLs: + switchLegalInformation: + switchMainThreadStackSize: 1048576 + switchPresenceGroupId: + switchLogoHandling: 0 + switchReleaseVersion: 0 + switchDisplayVersion: 1.0.0 + switchStartupUserAccount: 0 + switchTouchScreenUsage: 0 + switchSupportedLanguagesMask: 0 + switchLogoType: 0 + switchApplicationErrorCodeCategory: + switchUserAccountSaveDataSize: 0 + switchUserAccountSaveDataJournalSize: 0 + switchApplicationAttribute: 0 + switchCardSpecSize: -1 + switchCardSpecClock: -1 + switchRatingsMask: 0 + switchRatingsInt_0: 0 + switchRatingsInt_1: 0 + switchRatingsInt_2: 0 + switchRatingsInt_3: 0 + switchRatingsInt_4: 0 + switchRatingsInt_5: 0 + switchRatingsInt_6: 0 + switchRatingsInt_7: 0 + switchRatingsInt_8: 0 + switchRatingsInt_9: 0 + switchRatingsInt_10: 0 + switchRatingsInt_11: 0 + switchRatingsInt_12: 0 + switchLocalCommunicationIds_0: + switchLocalCommunicationIds_1: + switchLocalCommunicationIds_2: + switchLocalCommunicationIds_3: + switchLocalCommunicationIds_4: + switchLocalCommunicationIds_5: + switchLocalCommunicationIds_6: + switchLocalCommunicationIds_7: + switchParentalControl: 0 + switchAllowsScreenshot: 1 + switchAllowsVideoCapturing: 1 + switchAllowsRuntimeAddOnContentInstall: 0 + switchDataLossConfirmation: 0 + switchUserAccountLockEnabled: 0 + switchSystemResourceMemory: 16777216 + switchSupportedNpadStyles: 22 + switchNativeFsCacheSize: 32 + switchIsHoldTypeHorizontal: 0 + switchSupportedNpadCount: 8 + switchSocketConfigEnabled: 0 + switchTcpInitialSendBufferSize: 32 + switchTcpInitialReceiveBufferSize: 64 + switchTcpAutoSendBufferSizeMax: 256 + switchTcpAutoReceiveBufferSizeMax: 256 + switchUdpSendBufferSize: 9 + switchUdpReceiveBufferSize: 42 + switchSocketBufferEfficiency: 4 + switchSocketInitializeEnabled: 1 + switchNetworkInterfaceManagerInitializeEnabled: 1 + switchPlayerConnectionEnabled: 1 + switchUseNewStyleFilepaths: 0 + switchUseMicroSleepForYield: 1 + switchEnableRamDiskSupport: 0 + switchMicroSleepForYieldTime: 25 + switchRamDiskSpaceSize: 12 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 11 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutInitialWidth: 1920 + ps4VideoOutBaseModeInitialWidth: 1920 + ps4VideoOutReprojectionRate: 60 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4StartupImagesFolder: + ps4IconImagesFolder: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4PlayTogetherPlayerCount: 0 + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4ProGarlicHeapSize: 2560 + playerPrefsMaxSize: 32768 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + enableApplicationExit: 0 + resetTempFolder: 1 + restrictedAudioUsageRights: 0 + ps4UseResolutionFallback: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4UseLowGarlicFragmentationMode: 1 + ps4SocialScreenEnabled: 0 + ps4ScriptOptimizationLevel: 0 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4PatchDayOne: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4attribExclusiveVR: 0 + ps4disableAutoHideSplash: 0 + ps4videoRecordingFeaturesUsed: 0 + ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4GPU800MHz: 1 + ps4attribEyeToEyeDistanceSettingVR: 0 + ps4IncludedModules: [] + ps4attribVROutputEnabled: 0 + monoEnv: + splashScreenBackgroundSourceLandscape: {fileID: 0} + splashScreenBackgroundSourcePortrait: {fileID: 0} + blurSplashScreenBackground: 1 + spritePackerPolicy: + webGLMemorySize: 16 + webGLExceptionSupport: 1 + webGLNameFilesAsHashes: 0 + webGLDataCaching: 1 + webGLDebugSymbols: 0 + webGLEmscriptenArgs: + webGLModulesDirectory: + webGLTemplate: APPLICATION:Default + webGLAnalyzeBuildSize: 0 + webGLUseEmbeddedResources: 0 + webGLCompressionFormat: 1 + webGLWasmArithmeticExceptions: 0 + webGLLinkerTarget: 1 + webGLThreadsSupport: 0 + webGLDecompressionFallback: 0 + scriptingDefineSymbols: {} + additionalCompilerArguments: {} + platformArchitecture: {} + scriptingBackend: {} + il2cppCompilerConfiguration: {} + managedStrippingLevel: {} + incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 + allowUnsafeCode: 1 + useDeterministicCompilation: 1 + enableRoslynAnalyzers: 1 + additionalIl2CppArgs: + scriptingRuntimeVersion: 1 + gcIncremental: 0 + assemblyVersionValidation: 1 + gcWBarrierValidation: 0 + apiCompatibilityLevelPerPlatform: + Standalone: 3 + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + metroPackageName: Template_3D + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: Template_3D + wsaImages: {} + metroTileShortName: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroSupportStreamingInstall: 0 + metroLastRequiredScene: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 2 + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, + a: 1} + metroSplashScreenUseBackgroundColor: 0 + platformCapabilities: {} + metroTargetDeviceFamilies: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + vcxProjDefaultLanguage: + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOneVersion: 1.0.0.0 + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneLanguage: + - enus + XboxOneCapability: [] + XboxOneGameRating: {} + XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 + XboxOneEnableGPUVariability: 1 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + XboxOneXTitleMemory: 8 + XboxOneOverrideIdentityName: + XboxOneOverrideIdentityPublisher: + vrEditorSettings: {} + cloudServicesEnabled: + UNet: 1 + luminIcon: + m_Name: + m_ModelFolderPath: + m_PortalFolderPath: + luminCert: + m_CertPath: + m_SignPackage: 1 + luminIsChannelApp: 0 + luminVersion: + m_VersionCode: 1 + m_VersionName: + apiCompatibilityLevel: 6 + activeInputHandler: 0 + cloudProjectId: + framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] + projectName: + organizationId: + cloudEnabled: 0 + legacyClampBlendShapeWeights: 0 + playerDataPath: + forceSRGBBlit: 1 + virtualTexturingSupportEnabled: 0 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ProjectVersion.txt b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ProjectVersion.txt new file mode 100644 index 00000000..90d6509f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2021.3.1f1 +m_EditorVersionWithRevision: 2021.3.1f1 (3b70a0754835) diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/QualitySettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/QualitySettings.asset new file mode 100644 index 00000000..7b7658d6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/QualitySettings.asset @@ -0,0 +1,232 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 5 + m_QualitySettings: + - serializedVersion: 2 + name: Very Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.3 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.4 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 16 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Medium + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 0.7 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 64 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: High + pixelLightCount: 2 + shadows: 2 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 256 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Very High + pixelLightCount: 3 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 1024 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Ultra + pixelLightCount: 4 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 2 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4096 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 2 + Lumin: 5 + Nintendo 3DS: 5 + Nintendo Switch: 5 + PS4: 5 + PSP2: 2 + Stadia: 5 + Standalone: 5 + WebGL: 3 + Windows Store Apps: 5 + XboxOne: 5 + iPhone: 2 + tvOS: 2 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/TagManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/TagManager.asset new file mode 100644 index 00000000..1c92a784 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/TimeManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/TimeManager.asset new file mode 100644 index 00000000..558a017e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/TimeManager.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: 0.02 + Maximum Allowed Timestep: 0.33333334 + m_TimeScale: 1 + Maximum Particle Timestep: 0.03 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/UnityConnectSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 00000000..fa0b1465 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 1 + m_Enabled: 0 + m_TestMode: 0 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events + m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_TestInitMode: 0 + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com + m_Enabled: 0 + m_LogBufferSize: 10 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_TestMode: 0 + m_InitializeOnStartup: 1 + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_IosGameId: + m_AndroidGameId: + m_GameIds: {} + m_GameId: + PerformanceReportingSettings: + m_Enabled: 0 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/VFXManager.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/VFXManager.asset new file mode 100644 index 00000000..3a95c98b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/VFXManager.asset @@ -0,0 +1,12 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/VersionControlSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 00000000..dca28814 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/XRSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/XRSettings.asset new file mode 100644 index 00000000..482590c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/boot.config b/luban_examples/Projects/Csharp_Unity_bin/ProjectSettings/boot.config new file mode 100644 index 00000000..e69de29b diff --git a/luban_examples/Projects/Csharp_Unity_bin/UserSettings/EditorUserSettings.asset b/luban_examples/Projects/Csharp_Unity_bin/UserSettings/EditorUserSettings.asset new file mode 100644 index 00000000..4681d1d2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/UserSettings/EditorUserSettings.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!162 &1 +EditorUserSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_ConfigSettings: + vcSharedLogLevel: + value: 0d5e400f0650 + flags: 0 + m_VCAutomaticAdd: 1 + m_VCDebugCom: 0 + m_VCDebugCmd: 0 + m_VCDebugOut: 0 + m_SemanticMergeMode: 2 + m_VCShowFailedCheckout: 1 + m_VCOverwriteFailedCheckoutAssets: 1 + m_VCOverlayIcons: 1 + m_VCAllowAsyncUpdate: 0 diff --git a/luban_examples/Projects/Csharp_Unity_bin/UserSettings/Layouts/default-2021.dwlt b/luban_examples/Projects/Csharp_Unity_bin/UserSettings/Layouts/default-2021.dwlt new file mode 100644 index 00000000..400c2eb7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/UserSettings/Layouts/default-2021.dwlt @@ -0,0 +1,733 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_PixelRect: + serializedVersion: 2 + x: 2249 + y: 302.5 + width: 1206 + height: 715 + m_ShowMode: 4 + m_Title: + m_RootView: {fileID: 6} + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_Maximized: 0 +--- !u!114 &2 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 9} + - {fileID: 3} + m_Position: + serializedVersion: 2 + x: 0 + y: 30 + width: 1206 + height: 665 + m_MinSize: {x: 679, y: 492} + m_MaxSize: {x: 14002, y: 14042} + vertical: 0 + controlID: 119 +--- !u!114 &3 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 921 + y: 0 + width: 285 + height: 665 + m_MinSize: {x: 276, y: 71} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 13} + m_Panes: + - {fileID: 13} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &4 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 228 + height: 394 + m_MinSize: {x: 201, y: 221} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 14} + m_Panes: + - {fileID: 14} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &5 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: ProjectBrowser + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 394 + width: 921 + height: 271 + m_MinSize: {x: 231, y: 271} + m_MaxSize: {x: 10001, y: 10021} + m_ActualView: {fileID: 12} + m_Panes: + - {fileID: 12} + - {fileID: 17} + m_Selected: 0 + m_LastSelected: 1 +--- !u!114 &6 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 7} + - {fileID: 2} + - {fileID: 8} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1206 + height: 715 + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} +--- !u!114 &7 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1206 + height: 30 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} + m_LoadedToolbars: [] + m_LastLoadedLayoutName: Default +--- !u!114 &8 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 695 + width: 1206 + height: 20 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} +--- !u!114 &9 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 10} + - {fileID: 5} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 921 + height: 665 + m_MinSize: {x: 403, y: 492} + m_MaxSize: {x: 10001, y: 14042} + vertical: 1 + controlID: 92 +--- !u!114 &10 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 4} + - {fileID: 11} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 921 + height: 394 + m_MinSize: {x: 403, y: 221} + m_MaxSize: {x: 8003, y: 4021} + vertical: 0 + controlID: 93 +--- !u!114 &11 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 228 + y: 0 + width: 693 + height: 394 + m_MinSize: {x: 202, y: 221} + m_MaxSize: {x: 4002, y: 4021} + m_ActualView: {fileID: 15} + m_Panes: + - {fileID: 15} + - {fileID: 16} + m_Selected: 0 + m_LastSelected: 1 +--- !u!114 &12 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 230, y: 250} + m_MaxSize: {x: 10000, y: 10000} + m_TitleContent: + m_Text: Project + m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2249 + y: 726.5 + width: 920 + height: 250 + m_ViewDataDictionary: {fileID: 0} + m_SearchFilter: + m_NameFilter: + m_ClassNames: [] + m_AssetLabels: [] + m_AssetBundleNames: [] + m_VersionControlStates: [] + m_SoftLockControlStates: [] + m_ReferencingInstanceIDs: + m_SceneHandles: + m_ShowAllHits: 0 + m_SkipHidden: 0 + m_SearchArea: 1 + m_Folders: + - Assets + m_Globs: [] + m_ViewMode: 1 + m_StartGridSize: 64 + m_LastFolders: + - Assets + m_LastFoldersGridSize: -1 + m_LastProjectPath: U:\layout + m_LockTracker: + m_IsLocked: 0 + m_FolderTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: f4350000 + m_LastClickedID: 13812 + m_ExpandedIDs: 00000000f435000000ca9a3b + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_AssetTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: 00000000f4350000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_ListAreaState: + m_SelectedInstanceIDs: + m_LastClickedInstanceID: 0 + m_HadKeyboardFocusLastEvent: 0 + m_ExpandedInstanceIDs: c6230000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_NewAssetIndexInList: -1 + m_ScrollPosition: {x: 0, y: 0} + m_GridSize: 64 + m_SkipHiddenPackages: 0 + m_DirectoriesAreaWidth: 207 +--- !u!114 &13 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 275, y: 50} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Inspector + m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 3170 + y: 332.5 + width: 284 + height: 644 + m_ViewDataDictionary: {fileID: 0} + m_ObjectsLockedBeforeSerialization: [] + m_InstanceIDsLockedBeforeSerialization: + m_PreviewResizer: + m_CachedPref: 160 + m_ControlHash: -371814159 + m_PrefName: Preview_InspectorPreview + m_LastInspectedObjectInstanceID: -1 + m_LastVerticalScrollValue: 0 + m_AssetGUID: + m_InstanceID: 0 + m_LockTracker: + m_IsLocked: 0 + m_PreviewWindow: {fileID: 0} +--- !u!114 &14 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Hierarchy + m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2249 + y: 332.5 + width: 227 + height: 373 + m_ViewDataDictionary: {fileID: 0} + m_SceneHierarchy: + m_TreeViewState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: 42fbffff + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 0 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_ExpandedScenes: [] + m_CurrenRootInstanceID: 0 + m_LockTracker: + m_IsLocked: 0 + m_CurrentSortingName: TransformSorting + m_WindowGUID: 4c969a2b90040154d917609493e03593 +--- !u!114 &15 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Scene + m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2477 + y: 332.5 + width: 691 + height: 373 + m_ViewDataDictionary: {fileID: 0} + m_ShowContextualTools: 0 + m_WindowGUID: cc27987af1a868c49b0894db9c0f5429 + m_Gizmos: 1 + m_OverrideSceneCullingMask: 6917529027641081856 + m_SceneIsLit: 1 + m_SceneLighting: 1 + m_2DMode: 0 + m_isRotationLocked: 0 + m_PlayAudio: 0 + m_AudioPlay: 0 + m_Position: + m_Target: {x: 0, y: 0, z: 0} + speed: 2 + m_Value: {x: 0, y: 0, z: 0} + m_RenderMode: 0 + m_CameraMode: + drawMode: 0 + name: Shaded + section: Shading Mode + m_ValidateTrueMetals: 0 + m_DoValidateTrueMetals: 0 + m_ExposureSliderValue: 0 + m_SceneViewState: + showFog: 1 + showMaterialUpdate: 0 + showSkybox: 1 + showFlares: 1 + showImageEffects: 1 + showParticleSystems: 1 + showVisualEffectGraphs: 1 + m_Grid: + xGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + yGrid: + m_Fade: + m_Target: 1 + speed: 2 + m_Value: 1 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 1, y: 1} + zGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + m_ShowGrid: 1 + m_GridAxis: 1 + m_gridOpacity: 0.5 + m_Rotation: + m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + speed: 2 + m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + m_Size: + m_Target: 10 + speed: 2 + m_Value: 10 + m_Ortho: + m_Target: 0 + speed: 2 + m_Value: 0 + m_CameraSettings: + m_Speed: 1 + m_SpeedNormalized: 0.5 + m_SpeedMin: 0.001 + m_SpeedMax: 2 + m_EasingEnabled: 1 + m_EasingDuration: 0.4 + m_AccelerationEnabled: 1 + m_FieldOfView: 90 + m_NearClip: 0.03 + m_FarClip: 10000 + m_DynamicClip: 1 + m_OcclusionCulling: 0 + m_LastSceneViewRotation: {x: 0, y: 0, z: 0, w: 0} + m_LastSceneViewOrtho: 0 + m_ReplacementShader: {fileID: 0} + m_ReplacementString: + m_SceneVisActive: 1 + m_LastLockedObject: {fileID: 0} + m_ViewIsLockedToObject: 0 +--- !u!114 &16 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Game + m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 507 + y: 94 + width: 1532 + height: 790 + m_ViewDataDictionary: {fileID: 0} + m_SerializedViewsNames: [] + m_SerializedViewsValues: [] + m_PlayModeViewName: GameView + m_ShowGizmos: 0 + m_TargetDisplay: 0 + m_ClearColor: {r: 0, g: 0, b: 0, a: 0} + m_TargetSize: {x: 640, y: 480} + m_TextureFilterMode: 0 + m_TextureHideFlags: 61 + m_RenderIMGUI: 0 + m_MaximizeOnPlay: 0 + m_UseMipMap: 0 + m_VSyncEnabled: 0 + m_Gizmos: 0 + m_Stats: 0 + m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000 + m_ZoomArea: + m_HRangeLocked: 0 + m_VRangeLocked: 0 + hZoomLockedByDefault: 0 + vZoomLockedByDefault: 0 + m_HBaseRangeMin: -766 + m_HBaseRangeMax: 766 + m_VBaseRangeMin: -395 + m_VBaseRangeMax: 395 + m_HAllowExceedBaseRangeMin: 1 + m_HAllowExceedBaseRangeMax: 1 + m_VAllowExceedBaseRangeMin: 1 + m_VAllowExceedBaseRangeMax: 1 + m_ScaleWithWindow: 0 + m_HSlider: 0 + m_VSlider: 0 + m_IgnoreScrollWheelUntilClicked: 0 + m_EnableMouseInput: 1 + m_EnableSliderZoomHorizontal: 0 + m_EnableSliderZoomVertical: 0 + m_UniformScale: 1 + m_UpDirection: 1 + m_DrawArea: + serializedVersion: 2 + x: 0 + y: 0 + width: 1532 + height: 790 + m_Scale: {x: 1, y: 1} + m_Translation: {x: 766, y: 395} + m_MarginLeft: 0 + m_MarginRight: 0 + m_MarginTop: 0 + m_MarginBottom: 0 + m_LastShownAreaInsideMargins: + serializedVersion: 2 + x: -766 + y: -395 + width: 1532 + height: 790 + m_MinimalGUI: 1 + m_defaultScale: 1 + m_LastWindowPixelSize: {x: 1532, y: 790} + m_ClearInEditMode: 1 + m_NoCameraWarning: 1 + m_LowResolutionForAspectRatios: 01000000000000000000 + m_XRRenderMode: 0 + m_RenderTexture: {fileID: 0} +--- !u!114 &17 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Console + m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2249 + y: 726.5 + width: 920 + height: 250 + m_ViewDataDictionary: {fileID: 0} + diff --git a/luban_examples/Projects/Csharp_Unity_bin/gen.bat b/luban_examples/Projects/Csharp_Unity_bin/gen.bat new file mode 100644 index 00000000..49035c1b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_bin/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t client ^ + -c cs-bin ^ + -d bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Assets/Gen ^ + -x outputDataDir=..\GenerateDatas\bytes ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_json/.vsconfig b/luban_examples/Projects/Csharp_Unity_json/.vsconfig new file mode 100644 index 00000000..aade28f6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/.vsconfig @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Workload.ManagedGame" + ] +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assembly-CSharp-firstpass.csproj b/luban_examples/Projects/Csharp_Unity_json/Assembly-CSharp-firstpass.csproj new file mode 100644 index 00000000..6336e20b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assembly-CSharp-firstpass.csproj @@ -0,0 +1,672 @@ + + + + 8.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {766136D7-85E7-ED33-A946-4BCAD6D07CC2} + Library + Properties + Assembly-CSharp-firstpass + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + DEBUG;TRACE;UNITY_2020_3_7;UNITY_2020_3;UNITY_2020;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.7 + GamePlugins:3 + StandaloneWindows64:19 + 2020.3.7f1c1 + + + + + + + + + + + + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\mscorlib.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Core.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Runtime.Serialization.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Xml.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Xml.Linq.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Numerics.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Numerics.Vectors.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Net.Http.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Microsoft.CSharp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\System.Data.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\Microsoft.Win32.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\netstandard.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.AppContext.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.Concurrent.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.NonGeneric.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.Specialized.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.Annotations.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ComponentModel.TypeConverter.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Console.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Data.Common.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Contracts.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Debug.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Process.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.StackTrace.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Tools.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.TraceSource.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Drawing.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Dynamic.Runtime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.Calendars.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Globalization.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.Compression.ZipFile.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.FileSystem.Watcher.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.IsolatedStorage.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.MemoryMappedFiles.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.Pipes.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Expressions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Parallel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Linq.Queryable.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Http.Rtc.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.NameResolution.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.NetworkInformation.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Ping.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Requests.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Security.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.Sockets.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebHeaderCollection.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebSockets.Client.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Net.WebSockets.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ObjectModel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Emit.Lightweight.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.Reader.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.ResourceManager.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.Writer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Handles.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Numerics.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Formatters.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Json.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Serialization.Xml.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Claims.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Algorithms.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Csp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Encoding.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.Principal.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Security.SecureString.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Duplex.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Http.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.NetTcp.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Primitives.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ServiceModel.Security.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.Encoding.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.Encoding.Extensions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.RegularExpressions.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Overlapped.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Tasks.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Tasks.Parallel.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Thread.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.ThreadPool.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.Timer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.ValueTuple.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.ReaderWriter.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XDocument.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XmlDocument.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XmlSerializer.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XPath.dll + + + C:\Program Files\Unity\Hub\Editor\2020.3.7f1c1\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Xml.XPath.XDocument.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assembly-CSharp.csproj b/luban_examples/Projects/Csharp_Unity_json/Assembly-CSharp.csproj new file mode 100644 index 00000000..f0c77f90 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assembly-CSharp.csproj @@ -0,0 +1,1161 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {63788DD0-5559-2762-5DF3-59554CEAE23F} + Library + Properties + Assembly-CSharp + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Game:1 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.Editor.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Shared.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.SettingsProvider.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.PlasticSCM.Editor.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.dll + + + + + {88B0123B-B83E-BD8A-9269-1346E4AE7751} + Luban.Runtime + + + {7118E1FD-2DE1-D2AD-9E40-72B77910978E} + Luban.Editor + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/ExternalTypeUtil.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/ExternalTypeUtil.cs new file mode 100644 index 00000000..aa44a253 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/ExternalTypeUtil.cs @@ -0,0 +1,17 @@ +public static class ExternalTypeUtil +{ + public static UnityEngine.Vector2 NewVector2(cfg.vec2 v) + { + return new UnityEngine.Vector2(v.X, v.Y); + } + + public static UnityEngine.Vector3 NewVector3(cfg.vec3 v) + { + return new UnityEngine.Vector3(v.X, v.Y, v.Z); + } + + public static UnityEngine.Vector4 NewVector4(cfg.vec4 v) + { + return new UnityEngine.Vector4(v.X, v.Y, v.Z, v.W); + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/ExternalTypeUtil.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/ExternalTypeUtil.cs.meta new file mode 100644 index 00000000..de3a74a2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/ExternalTypeUtil.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 57f206e1fd7a0a149a661cb7b7ceccad +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen.meta new file mode 100644 index 00000000..8a2417ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1f51b80845c14ce4e8015f0e7c83c1c3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/AudioType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/AudioType.cs new file mode 100644 index 00000000..3ac4c0e7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/AudioType.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum AudioType + { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/AudioType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/AudioType.cs.meta new file mode 100644 index 00000000..0135fa1b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/AudioType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 50aee43678937604d9e85b9338acf79c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/DefineFromExcel2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/DefineFromExcel2.cs new file mode 100644 index 00000000..993bae6a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/DefineFromExcel2.cs @@ -0,0 +1,120 @@ + +//------------------------------------------------------------------------------ +// +// 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 DefineFromExcel2 : Luban.BeanBase +{ + public DefineFromExcel2(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x1"].IsBoolean) { throw new SerializationException(); } X1 = _buf["x1"]; } + { if(!_buf["x5"].IsNumber) { throw new SerializationException(); } X5 = _buf["x5"]; } + { if(!_buf["x6"].IsNumber) { throw new SerializationException(); } X6 = _buf["x6"]; } + { if(!_buf["x8"].IsNumber) { throw new SerializationException(); } X8 = _buf["x8"]; } + { if(!_buf["x10"].IsString) { throw new SerializationException(); } X10 = _buf["x10"]; } + { if(!_buf["x13"].IsNumber) { throw new SerializationException(); } X13 = (test.DemoEnum)_buf["x13"].AsInt; } + { if(!_buf["x13_2"].IsNumber) { throw new SerializationException(); } X132 = (test.DemoFlag)_buf["x13_2"].AsInt; } + { if(!_buf["x14"].IsObject) { throw new SerializationException(); } X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf["x14"]); } + { if(!_buf["x15"].IsObject) { throw new SerializationException(); } X15 = test.Shape.DeserializeShape(_buf["x15"]); } + { if(!_buf["v2"].IsObject) { throw new SerializationException(); } V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf["v2"])); } + { if(!_buf["t1"].IsNumber) { throw new SerializationException(); } T1 = _buf["t1"]; } + { var __json0 = _buf["k1"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K1 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K1[__index0++] = __v0; } } + { var __json0 = _buf["k2"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K2 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K2[__index0++] = __v0; } } + { var __json0 = _buf["k8"]; if(!__json0.IsArray) { throw new SerializationException(); } K8 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } K8.Add(_k0, _v0); } } + { var __json0 = _buf["k9"]; if(!__json0.IsArray) { throw new SerializationException(); } K9 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.DemoE2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.DemoE2.DeserializeDemoE2(__e0); } K9.Add(__v0); } } + { var __json0 = _buf["k10"]; if(!__json0.IsArray) { throw new SerializationException(); } K10 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { UnityEngine.Vector3 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(__e0)); } K10.Add(__v0); } } + { var __json0 = _buf["k11"]; if(!__json0.IsArray) { throw new SerializationException(); } K11 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { UnityEngine.Vector4 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(__e0)); } K11.Add(__v0); } } + } + + public static DefineFromExcel2 DeserializeDefineFromExcel2(JSONNode _buf) + { + return new DefineFromExcel2(_buf); + } + + /// + /// 这是id + /// + public readonly int Id; + /// + /// 字段x1 + /// + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly int X8; + public readonly string X10; + public readonly test.DemoEnum X13; + public readonly test.DemoFlag X132; + public readonly test.DemoDynamic X14; + public readonly test.Shape X15; + public readonly UnityEngine.Vector2 V2; + public readonly long T1; + public readonly int[] K1; + public readonly int[] K2; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly System.Collections.Generic.List K10; + public readonly System.Collections.Generic.List K11; + + public const int __ID__ = 482045152; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + X14?.ResolveRef(tables); + X15?.ResolveRef(tables); + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x8:" + X8 + "," + + "x10:" + X10 + "," + + "x13:" + X13 + "," + + "x132:" + X132 + "," + + "x14:" + X14 + "," + + "x15:" + X15 + "," + + "v2:" + V2 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k10:" + Luban.StringUtil.CollectionToString(K10) + "," + + "k11:" + Luban.StringUtil.CollectionToString(K11) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/DefineFromExcel2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/DefineFromExcel2.cs.meta new file mode 100644 index 00000000..4523e8d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/DefineFromExcel2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92cd1c84fe21d2646b040501ce5fd38c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs new file mode 100644 index 00000000..c1245b2c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs @@ -0,0 +1,151 @@ + +//------------------------------------------------------------------------------ +// +// 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 ai.TbBlackboard TbBlackboard {get; } + public ai.TbBehaviorTree TbBehaviorTree {get; } + public common.TbGlobalConfig TbGlobalConfig {get; } + /// + /// 道具表 + /// + public item.TbItem TbItem {get; } + public l10n.TbL10NDemo TbL10NDemo {get; } + public l10n.TbPatchDemo TbPatchDemo {get; } + public tag.TbTestTag TbTestTag {get; } + public test.TbFullTypes TbFullTypes {get; } + public test.TbSingleton TbSingleton {get; } + public test.TbNotIndexList TbNotIndexList {get; } + public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; } + public test.TbMultiIndexList TbMultiIndexList {get; } + public test.TbDataFromMisc TbDataFromMisc {get; } + public test.TbMultiRowRecord TbMultiRowRecord {get; } + public test.TbTestMultiColumn TbTestMultiColumn {get; } + public test.TbMultiRowTitle TbMultiRowTitle {get; } + public test.TbTestNull TbTestNull {get; } + public test.TbDemoPrimitive TbDemoPrimitive {get; } + public test.TbTestString TbTestString {get; } + public test.TbDemoGroup TbDemoGroup {get; } + public test.TbDemoGroup_C TbDemoGroupC {get; } + public test.TbTestGlobal TbTestGlobal {get; } + public test.TbTestBeRef TbTestBeRef {get; } + public test.TbTestBeRef2 TbTestBeRef2 {get; } + public test.TbTestRef TbTestRef {get; } + public test.TbTestSize TbTestSize {get; } + public test.TbTestSet TbTestSet {get; } + public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; } + public test.TbItem2 TbItem2 {get; } + public test.TbTestIndex TbTestIndex {get; } + public test.TbTestMap TbTestMap {get; } + public test.TbExcelFromJson TbExcelFromJson {get; } + public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; } + public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; } + public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; } + public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; } + public test.TbTestScriptableObject TbTestScriptableObject {get; } + public test.TbPath TbPath {get; } + public test.TbTestMapper TbTestMapper {get; } + public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; } + + public Tables(System.Func loader) + { + TbBlackboard = new ai.TbBlackboard(loader("ai_tbblackboard")); + TbBehaviorTree = new ai.TbBehaviorTree(loader("ai_tbbehaviortree")); + TbGlobalConfig = new common.TbGlobalConfig(loader("common_tbglobalconfig")); + TbItem = new item.TbItem(loader("item_tbitem")); + TbL10NDemo = new l10n.TbL10NDemo(loader("l10n_tbl10ndemo")); + TbPatchDemo = new l10n.TbPatchDemo(loader("l10n_tbpatchdemo")); + TbTestTag = new tag.TbTestTag(loader("tag_tbtesttag")); + TbFullTypes = new test.TbFullTypes(loader("test_tbfulltypes")); + TbSingleton = new test.TbSingleton(loader("test_tbsingleton")); + TbNotIndexList = new test.TbNotIndexList(loader("test_tbnotindexlist")); + TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader("test_tbmultiunionindexlist")); + TbMultiIndexList = new test.TbMultiIndexList(loader("test_tbmultiindexlist")); + TbDataFromMisc = new test.TbDataFromMisc(loader("test_tbdatafrommisc")); + TbMultiRowRecord = new test.TbMultiRowRecord(loader("test_tbmultirowrecord")); + TbTestMultiColumn = new test.TbTestMultiColumn(loader("test_tbtestmulticolumn")); + TbMultiRowTitle = new test.TbMultiRowTitle(loader("test_tbmultirowtitle")); + TbTestNull = new test.TbTestNull(loader("test_tbtestnull")); + TbDemoPrimitive = new test.TbDemoPrimitive(loader("test_tbdemoprimitive")); + TbTestString = new test.TbTestString(loader("test_tbteststring")); + TbDemoGroup = new test.TbDemoGroup(loader("test_tbdemogroup")); + TbDemoGroupC = new test.TbDemoGroup_C(loader("test_tbdemogroup_c")); + TbTestGlobal = new test.TbTestGlobal(loader("test_tbtestglobal")); + TbTestBeRef = new test.TbTestBeRef(loader("test_tbtestberef")); + TbTestBeRef2 = new test.TbTestBeRef2(loader("test_tbtestberef2")); + TbTestRef = new test.TbTestRef(loader("test_tbtestref")); + TbTestSize = new test.TbTestSize(loader("test_tbtestsize")); + TbTestSet = new test.TbTestSet(loader("test_tbtestset")); + TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader("test_tbdetectcsvencoding")); + TbItem2 = new test.TbItem2(loader("test_tbitem2")); + TbTestIndex = new test.TbTestIndex(loader("test_tbtestindex")); + TbTestMap = new test.TbTestMap(loader("test_tbtestmap")); + TbExcelFromJson = new test.TbExcelFromJson(loader("test_tbexcelfromjson")); + TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader("test_tbcompositejsontable1")); + TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader("test_tbcompositejsontable2")); + TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader("test_tbcompositejsontable3")); + TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader("test_tbexcelfromjsonmultirow")); + TbTestScriptableObject = new test.TbTestScriptableObject(loader("test_tbtestscriptableobject")); + TbPath = new test.TbPath(loader("test_tbpath")); + TbTestMapper = new test.TbTestMapper(loader("test_tbtestmapper")); + TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader("test_tbdefinefromexcel2")); + ResolveRef(); + } + + private void ResolveRef() + { + TbBlackboard.ResolveRef(this); + TbBehaviorTree.ResolveRef(this); + TbGlobalConfig.ResolveRef(this); + TbItem.ResolveRef(this); + TbL10NDemo.ResolveRef(this); + TbPatchDemo.ResolveRef(this); + TbTestTag.ResolveRef(this); + TbFullTypes.ResolveRef(this); + TbSingleton.ResolveRef(this); + TbNotIndexList.ResolveRef(this); + TbMultiUnionIndexList.ResolveRef(this); + TbMultiIndexList.ResolveRef(this); + TbDataFromMisc.ResolveRef(this); + TbMultiRowRecord.ResolveRef(this); + TbTestMultiColumn.ResolveRef(this); + TbMultiRowTitle.ResolveRef(this); + TbTestNull.ResolveRef(this); + TbDemoPrimitive.ResolveRef(this); + TbTestString.ResolveRef(this); + TbDemoGroup.ResolveRef(this); + TbDemoGroupC.ResolveRef(this); + TbTestGlobal.ResolveRef(this); + TbTestBeRef.ResolveRef(this); + TbTestBeRef2.ResolveRef(this); + TbTestRef.ResolveRef(this); + TbTestSize.ResolveRef(this); + TbTestSet.ResolveRef(this); + TbDetectCsvEncoding.ResolveRef(this); + TbItem2.ResolveRef(this); + TbTestIndex.ResolveRef(this); + TbTestMap.ResolveRef(this); + TbExcelFromJson.ResolveRef(this); + TbCompositeJsonTable1.ResolveRef(this); + TbCompositeJsonTable2.ResolveRef(this); + TbCompositeJsonTable3.ResolveRef(this); + TbExcelFromJsonMultiRow.ResolveRef(this); + TbTestScriptableObject.ResolveRef(this); + TbPath.ResolveRef(this); + TbTestMapper.ResolveRef(this); + TbDefineFromExcel2.ResolveRef(this); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs.meta new file mode 100644 index 00000000..2d467aee --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a6262edd0fce31469ba5eae1bff3cef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BehaviorTree.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BehaviorTree.cs new file mode 100644 index 00000000..9dff5500 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BehaviorTree.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.ai +{ +public sealed partial class BehaviorTree : Luban.BeanBase +{ + public BehaviorTree(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + { if(!_buf["blackboard_id"].IsString) { throw new SerializationException(); } BlackboardId = _buf["blackboard_id"]; } + BlackboardId_Ref = null; + { if(!_buf["root"].IsObject) { throw new SerializationException(); } Root = ai.ComposeNode.DeserializeComposeNode(_buf["root"]); } + } + + public static BehaviorTree DeserializeBehaviorTree(JSONNode _buf) + { + return new ai.BehaviorTree(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + public readonly string BlackboardId; + public ai.Blackboard BlackboardId_Ref; + public readonly ai.ComposeNode Root; + + public const int __ID__ = 159552822; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId); + Root?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "blackboardId:" + BlackboardId + "," + + "root:" + Root + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BehaviorTree.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BehaviorTree.cs.meta new file mode 100644 index 00000000..d28cfc9d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BehaviorTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 89fb4d1b77cec5745a913819f1530d3e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BinaryOperator.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BinaryOperator.cs new file mode 100644 index 00000000..0621dfb5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BinaryOperator.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class BinaryOperator : ai.KeyQueryOperator +{ + public BinaryOperator(JSONNode _buf) : base(_buf) + { + { if(!_buf["oper"].IsNumber) { throw new SerializationException(); } Oper = (ai.EOperator)_buf["oper"].AsInt; } + { if(!_buf["data"].IsObject) { throw new SerializationException(); } Data = ai.KeyData.DeserializeKeyData(_buf["data"]); } + } + + public static BinaryOperator DeserializeBinaryOperator(JSONNode _buf) + { + return new ai.BinaryOperator(_buf); + } + + public readonly ai.EOperator Oper; + public readonly ai.KeyData Data; + + public const int __ID__ = -979891605; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + Data?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "oper:" + Oper + "," + + "data:" + Data + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BinaryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BinaryOperator.cs.meta new file mode 100644 index 00000000..9dc5d29d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BinaryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8264d14087ed44b4abf6d64df0f7b778 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Blackboard.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Blackboard.cs new file mode 100644 index 00000000..8a5da9c3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Blackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class Blackboard : Luban.BeanBase +{ + public Blackboard(JSONNode _buf) + { + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + { if(!_buf["parent_name"].IsString) { throw new SerializationException(); } ParentName = _buf["parent_name"]; } + { var __json0 = _buf["keys"]; if(!__json0.IsArray) { throw new SerializationException(); } Keys = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.BlackboardKey __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.BlackboardKey.DeserializeBlackboardKey(__e0); } Keys.Add(__v0); } } + } + + public static Blackboard DeserializeBlackboard(JSONNode _buf) + { + return new ai.Blackboard(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly string ParentName; + public readonly System.Collections.Generic.List Keys; + + public const int __ID__ = 1576193005; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + foreach (var _e in Keys) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "parentName:" + ParentName + "," + + "keys:" + Luban.StringUtil.CollectionToString(Keys) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Blackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Blackboard.cs.meta new file mode 100644 index 00000000..b43f677c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Blackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 54b95b01308eda545a56fa5e63a9cab3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKey.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKey.cs new file mode 100644 index 00000000..ae389106 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKey.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class BlackboardKey : Luban.BeanBase +{ + public BlackboardKey(JSONNode _buf) + { + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + { if(!_buf["is_static"].IsBoolean) { throw new SerializationException(); } IsStatic = _buf["is_static"]; } + { if(!_buf["type"].IsNumber) { throw new SerializationException(); } Type = (ai.EKeyType)_buf["type"].AsInt; } + { if(!_buf["type_class_name"].IsString) { throw new SerializationException(); } TypeClassName = _buf["type_class_name"]; } + } + + public static BlackboardKey DeserializeBlackboardKey(JSONNode _buf) + { + return new ai.BlackboardKey(_buf); + } + + public readonly string Name; + public readonly string Desc; + public readonly bool IsStatic; + public readonly ai.EKeyType Type; + public readonly string TypeClassName; + + public const int __ID__ = -511559886; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "name:" + Name + "," + + "desc:" + Desc + "," + + "isStatic:" + IsStatic + "," + + "type:" + Type + "," + + "typeClassName:" + TypeClassName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKey.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKey.cs.meta new file mode 100644 index 00000000..8eef0127 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKey.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a925070e9b5cb640a296091ed7348b4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKeyData.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKeyData.cs new file mode 100644 index 00000000..a6b1f837 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKeyData.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.ai +{ +public sealed partial class BlackboardKeyData : ai.KeyData +{ + public BlackboardKeyData(JSONNode _buf) : base(_buf) + { + { if(!_buf["value"].IsString) { throw new SerializationException(); } Value = _buf["value"]; } + } + + public static BlackboardKeyData DeserializeBlackboardKeyData(JSONNode _buf) + { + return new ai.BlackboardKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = 1517269500; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKeyData.cs.meta new file mode 100644 index 00000000..85666be7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.BlackboardKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 15913039393d5ff44bbcc53e72caf7e0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseSkill.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseSkill.cs new file mode 100644 index 00000000..f72ddc31 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseSkill.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class ChooseSkill : ai.Task +{ + public ChooseSkill(JSONNode _buf) : base(_buf) + { + { if(!_buf["target_actor_key"].IsString) { throw new SerializationException(); } TargetActorKey = _buf["target_actor_key"]; } + { if(!_buf["result_skill_id_key"].IsString) { throw new SerializationException(); } ResultSkillIdKey = _buf["result_skill_id_key"]; } + } + + public static ChooseSkill DeserializeChooseSkill(JSONNode _buf) + { + return new ai.ChooseSkill(_buf); + } + + public readonly string TargetActorKey; + public readonly string ResultSkillIdKey; + + public const int __ID__ = -918812268; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "resultSkillIdKey:" + ResultSkillIdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseSkill.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseSkill.cs.meta new file mode 100644 index 00000000..ea0e8b6e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseSkill.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 36bace1ca3e2fcc4b846f99ac8fdf35e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseTarget.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseTarget.cs new file mode 100644 index 00000000..58621ddd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class ChooseTarget : ai.Service +{ + public ChooseTarget(JSONNode _buf) : base(_buf) + { + { if(!_buf["result_target_key"].IsString) { throw new SerializationException(); } ResultTargetKey = _buf["result_target_key"]; } + } + + public static ChooseTarget DeserializeChooseTarget(JSONNode _buf) + { + return new ai.ChooseTarget(_buf); + } + + public readonly string ResultTargetKey; + + public const int __ID__ = 1601247918; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "resultTargetKey:" + ResultTargetKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseTarget.cs.meta new file mode 100644 index 00000000..82c854da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ChooseTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2b0e848e3d9c7cc4686fe11e4cda1846 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ComposeNode.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ComposeNode.cs new file mode 100644 index 00000000..682696e7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ComposeNode.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public abstract partial class ComposeNode : ai.FlowNode +{ + public ComposeNode(JSONNode _buf) : base(_buf) + { + } + + public static ComposeNode DeserializeComposeNode(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ComposeNode.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ComposeNode.cs.meta new file mode 100644 index 00000000..91d08acf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ComposeNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 66277b9eb31e67947a2b2957126e84d5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DebugPrint.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DebugPrint.cs new file mode 100644 index 00000000..2f11f993 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DebugPrint.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class DebugPrint : ai.Task +{ + public DebugPrint(JSONNode _buf) : base(_buf) + { + { if(!_buf["text"].IsString) { throw new SerializationException(); } Text = _buf["text"]; } + } + + public static DebugPrint DeserializeDebugPrint(JSONNode _buf) + { + return new ai.DebugPrint(_buf); + } + + public readonly string Text; + + public const int __ID__ = 1357409728; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DebugPrint.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DebugPrint.cs.meta new file mode 100644 index 00000000..28166b6a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DebugPrint.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 80d0fc17b940e084893b89ad997e0ad4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Decorator.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Decorator.cs new file mode 100644 index 00000000..a69679b0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Decorator.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public abstract partial class Decorator : ai.Node +{ + public Decorator(JSONNode _buf) : base(_buf) + { + { if(!_buf["flow_abort_mode"].IsNumber) { throw new SerializationException(); } FlowAbortMode = (ai.EFlowAbortMode)_buf["flow_abort_mode"].AsInt; } + } + + public static Decorator DeserializeDecorator(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public readonly ai.EFlowAbortMode FlowAbortMode; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Decorator.cs.meta new file mode 100644 index 00000000..e91e5789 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 08f21ee8568b5c4469cc426f7711cfb2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DistanceLessThan.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DistanceLessThan.cs new file mode 100644 index 00000000..f794dc1d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DistanceLessThan.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class DistanceLessThan : ai.Decorator +{ + public DistanceLessThan(JSONNode _buf) : base(_buf) + { + { if(!_buf["actor1_key"].IsString) { throw new SerializationException(); } Actor1Key = _buf["actor1_key"]; } + { if(!_buf["actor2_key"].IsString) { throw new SerializationException(); } Actor2Key = _buf["actor2_key"]; } + { if(!_buf["distance"].IsNumber) { throw new SerializationException(); } Distance = _buf["distance"]; } + { if(!_buf["reverse_result"].IsBoolean) { throw new SerializationException(); } ReverseResult = _buf["reverse_result"]; } + } + + public static DistanceLessThan DeserializeDistanceLessThan(JSONNode _buf) + { + return new ai.DistanceLessThan(_buf); + } + + public readonly string Actor1Key; + public readonly string Actor2Key; + public readonly float Distance; + public readonly bool ReverseResult; + + public const int __ID__ = -1207170283; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "actor1Key:" + Actor1Key + "," + + "actor2Key:" + Actor2Key + "," + + "distance:" + Distance + "," + + "reverseResult:" + ReverseResult + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DistanceLessThan.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DistanceLessThan.cs.meta new file mode 100644 index 00000000..29e4d369 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.DistanceLessThan.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0b5c48d88dfc0f34e90661377ba54fed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EExecutor.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EExecutor.cs new file mode 100644 index 00000000..27ea93ba --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EExecutor.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EExecutor + { + CLIENT = 0, + SERVER = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EExecutor.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EExecutor.cs.meta new file mode 100644 index 00000000..82ecad87 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EExecutor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 97c88d22139330b4881f2263f2b8f50f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFinishMode.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFinishMode.cs new file mode 100644 index 00000000..94a7b4c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFinishMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFinishMode + { + IMMEDIATE = 0, + DELAYED = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFinishMode.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFinishMode.cs.meta new file mode 100644 index 00000000..84e6e2fc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFinishMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dc4ce665371dfeb408c2636428a95a98 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFlowAbortMode.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFlowAbortMode.cs new file mode 100644 index 00000000..6c97a981 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFlowAbortMode.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EFlowAbortMode + { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFlowAbortMode.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFlowAbortMode.cs.meta new file mode 100644 index 00000000..92335521 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EFlowAbortMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: deafc3bb9c146f04193d0fdb27e5af29 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EKeyType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EKeyType.cs new file mode 100644 index 00000000..97110a59 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EKeyType.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EKeyType + { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EKeyType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EKeyType.cs.meta new file mode 100644 index 00000000..4b534545 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EKeyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b00b222d5dc4a254cab877ad5ceae785 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ENotifyObserverMode.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ENotifyObserverMode.cs new file mode 100644 index 00000000..61d634f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ENotifyObserverMode.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum ENotifyObserverMode + { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ENotifyObserverMode.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ENotifyObserverMode.cs.meta new file mode 100644 index 00000000..ce0c572e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ENotifyObserverMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7195946c6527fc94fb84dd151ac234cf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EOperator.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EOperator.cs new file mode 100644 index 00000000..25aac54d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EOperator.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ + public enum EOperator + { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EOperator.cs.meta new file mode 100644 index 00000000..4e4c7c18 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.EOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 28450abfa2198b540b7a4d2fb62f4f25 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ExecuteTimeStatistic.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ExecuteTimeStatistic.cs new file mode 100644 index 00000000..b1d0e731 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ExecuteTimeStatistic.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class ExecuteTimeStatistic : ai.Service +{ + public ExecuteTimeStatistic(JSONNode _buf) : base(_buf) + { + } + + public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(JSONNode _buf) + { + return new ai.ExecuteTimeStatistic(_buf); + } + + + public const int __ID__ = 990693812; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta new file mode 100644 index 00000000..54b520e9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.ExecuteTimeStatistic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f46c1da7be9b16840b3b6ee85e8de2d8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FloatKeyData.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FloatKeyData.cs new file mode 100644 index 00000000..4a1329b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FloatKeyData.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.ai +{ +public sealed partial class FloatKeyData : ai.KeyData +{ + public FloatKeyData(JSONNode _buf) : base(_buf) + { + { if(!_buf["value"].IsNumber) { throw new SerializationException(); } Value = _buf["value"]; } + } + + public static FloatKeyData DeserializeFloatKeyData(JSONNode _buf) + { + return new ai.FloatKeyData(_buf); + } + + public readonly float Value; + + public const int __ID__ = -719747885; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FloatKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FloatKeyData.cs.meta new file mode 100644 index 00000000..d2a11dcd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FloatKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c43f9516eecd5f24b8367c7237202986 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FlowNode.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FlowNode.cs new file mode 100644 index 00000000..01d77912 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FlowNode.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.ai +{ +public abstract partial class FlowNode : ai.Node +{ + public FlowNode(JSONNode _buf) : base(_buf) + { + { var __json0 = _buf["decorators"]; if(!__json0.IsArray) { throw new SerializationException(); } Decorators = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.Decorator __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.Decorator.DeserializeDecorator(__e0); } Decorators.Add(__v0); } } + { var __json0 = _buf["services"]; if(!__json0.IsArray) { throw new SerializationException(); } Services = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.Service __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.Service.DeserializeService(__e0); } Services.Add(__v0); } } + } + + public static FlowNode DeserializeFlowNode(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly System.Collections.Generic.List Decorators; + public readonly System.Collections.Generic.List Services; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Decorators) { _e?.ResolveRef(tables); } + foreach (var _e in Services) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FlowNode.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FlowNode.cs.meta new file mode 100644 index 00000000..7e51650d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.FlowNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f17b98829ddfa8544a28d756c4765d7a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.GetOwnerPlayer.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.GetOwnerPlayer.cs new file mode 100644 index 00000000..f4f4ef38 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.GetOwnerPlayer.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class GetOwnerPlayer : ai.Service +{ + public GetOwnerPlayer(JSONNode _buf) : base(_buf) + { + { if(!_buf["player_actor_key"].IsString) { throw new SerializationException(); } PlayerActorKey = _buf["player_actor_key"]; } + } + + public static GetOwnerPlayer DeserializeGetOwnerPlayer(JSONNode _buf) + { + return new ai.GetOwnerPlayer(_buf); + } + + public readonly string PlayerActorKey; + + public const int __ID__ = -999247644; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "playerActorKey:" + PlayerActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.GetOwnerPlayer.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.GetOwnerPlayer.cs.meta new file mode 100644 index 00000000..77b49577 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.GetOwnerPlayer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cc4897b964383f44d87b06ca0585efaa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IntKeyData.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IntKeyData.cs new file mode 100644 index 00000000..b4cb6344 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IntKeyData.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.ai +{ +public sealed partial class IntKeyData : ai.KeyData +{ + public IntKeyData(JSONNode _buf) : base(_buf) + { + { if(!_buf["value"].IsNumber) { throw new SerializationException(); } Value = _buf["value"]; } + } + + public static IntKeyData DeserializeIntKeyData(JSONNode _buf) + { + return new ai.IntKeyData(_buf); + } + + public readonly int Value; + + public const int __ID__ = -342751904; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IntKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IntKeyData.cs.meta new file mode 100644 index 00000000..d5d8bebe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IntKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b986f2e91e5a9e4fafd273e983b5e11 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsAtLocation.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsAtLocation.cs new file mode 100644 index 00000000..0cccd995 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsAtLocation.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class IsAtLocation : ai.Decorator +{ + public IsAtLocation(JSONNode _buf) : base(_buf) + { + { if(!_buf["acceptable_radius"].IsNumber) { throw new SerializationException(); } AcceptableRadius = _buf["acceptable_radius"]; } + { if(!_buf["keyboard_key"].IsString) { throw new SerializationException(); } KeyboardKey = _buf["keyboard_key"]; } + { if(!_buf["inverse_condition"].IsBoolean) { throw new SerializationException(); } InverseCondition = _buf["inverse_condition"]; } + } + + public static IsAtLocation DeserializeIsAtLocation(JSONNode _buf) + { + return new ai.IsAtLocation(_buf); + } + + public readonly float AcceptableRadius; + public readonly string KeyboardKey; + public readonly bool InverseCondition; + + public const int __ID__ = 1255972344; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "keyboardKey:" + KeyboardKey + "," + + "inverseCondition:" + InverseCondition + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsAtLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsAtLocation.cs.meta new file mode 100644 index 00000000..58bd35c2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsAtLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c715aa4e54e3e3e4c98229108321befd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsNotSet.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsNotSet.cs new file mode 100644 index 00000000..35b7e4a9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsNotSet.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.ai +{ +public sealed partial class IsNotSet : ai.KeyQueryOperator +{ + public IsNotSet(JSONNode _buf) : base(_buf) + { + } + + public static IsNotSet DeserializeIsNotSet(JSONNode _buf) + { + return new ai.IsNotSet(_buf); + } + + + public const int __ID__ = 790736255; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsNotSet.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsNotSet.cs.meta new file mode 100644 index 00000000..32fabc8c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsNotSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dee3de33a5bc9b74d844e8ddcd2a54ff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsSet.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsSet.cs new file mode 100644 index 00000000..15a76047 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsSet.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.ai +{ +public sealed partial class IsSet : ai.KeyQueryOperator +{ + public IsSet(JSONNode _buf) : base(_buf) + { + } + + public static IsSet DeserializeIsSet(JSONNode _buf) + { + return new ai.IsSet(_buf); + } + + + public const int __ID__ = 1635350898; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsSet.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsSet.cs.meta new file mode 100644 index 00000000..04f42224 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.IsSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 23177d877a811a040ac0052fa9532f85 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeepFaceTarget.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeepFaceTarget.cs new file mode 100644 index 00000000..4f90b87c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeepFaceTarget.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class KeepFaceTarget : ai.Service +{ + public KeepFaceTarget(JSONNode _buf) : base(_buf) + { + { if(!_buf["target_actor_key"].IsString) { throw new SerializationException(); } TargetActorKey = _buf["target_actor_key"]; } + } + + public static KeepFaceTarget DeserializeKeepFaceTarget(JSONNode _buf) + { + return new ai.KeepFaceTarget(_buf); + } + + public readonly string TargetActorKey; + + public const int __ID__ = 1195270745; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "targetActorKey:" + TargetActorKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeepFaceTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeepFaceTarget.cs.meta new file mode 100644 index 00000000..a55d0d74 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeepFaceTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9918a7d0893be30408cd0a4f68b9e57c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyData.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyData.cs new file mode 100644 index 00000000..5d40184a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyData.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.ai +{ +public abstract partial class KeyData : Luban.BeanBase +{ + public KeyData(JSONNode _buf) + { + } + + public static KeyData DeserializeKeyData(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "FloatKeyData": return new ai.FloatKeyData(_buf); + case "IntKeyData": return new ai.IntKeyData(_buf); + case "StringKeyData": return new ai.StringKeyData(_buf); + case "BlackboardKeyData": return new ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyData.cs.meta new file mode 100644 index 00000000..10710104 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e48c6368f13fb1e4ea62d69d0402ae05 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyQueryOperator.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyQueryOperator.cs new file mode 100644 index 00000000..65fa46bf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyQueryOperator.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.ai +{ +public abstract partial class KeyQueryOperator : Luban.BeanBase +{ + public KeyQueryOperator(JSONNode _buf) + { + } + + public static KeyQueryOperator DeserializeKeyQueryOperator(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "IsSet": return new ai.IsSet(_buf); + case "IsNotSet": return new ai.IsNotSet(_buf); + case "BinaryOperator": return new ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyQueryOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyQueryOperator.cs.meta new file mode 100644 index 00000000..deedd1e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.KeyQueryOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f37ac02ecad6b004fb7f841b62d936dd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToLocation.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToLocation.cs new file mode 100644 index 00000000..8ca60d63 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToLocation.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class MoveToLocation : ai.Task +{ + public MoveToLocation(JSONNode _buf) : base(_buf) + { + { if(!_buf["acceptable_radius"].IsNumber) { throw new SerializationException(); } AcceptableRadius = _buf["acceptable_radius"]; } + } + + public static MoveToLocation DeserializeMoveToLocation(JSONNode _buf) + { + return new ai.MoveToLocation(_buf); + } + + public readonly float AcceptableRadius; + + public const int __ID__ = -969953113; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToLocation.cs.meta new file mode 100644 index 00000000..36bad08f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea8bdd7650bc9c747a0323245045274a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToRandomLocation.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToRandomLocation.cs new file mode 100644 index 00000000..08d1b656 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToRandomLocation.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class MoveToRandomLocation : ai.Task +{ + public MoveToRandomLocation(JSONNode _buf) : base(_buf) + { + { if(!_buf["origin_position_key"].IsString) { throw new SerializationException(); } OriginPositionKey = _buf["origin_position_key"]; } + { if(!_buf["radius"].IsNumber) { throw new SerializationException(); } Radius = _buf["radius"]; } + } + + public static MoveToRandomLocation DeserializeMoveToRandomLocation(JSONNode _buf) + { + return new ai.MoveToRandomLocation(_buf); + } + + public readonly string OriginPositionKey; + public readonly float Radius; + + public const int __ID__ = -2140042998; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "originPositionKey:" + OriginPositionKey + "," + + "radius:" + Radius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToRandomLocation.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToRandomLocation.cs.meta new file mode 100644 index 00000000..03578d62 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToRandomLocation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a9909a6116ce2043957dc85dc3c5305 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToTarget.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToTarget.cs new file mode 100644 index 00000000..03200b27 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToTarget.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class MoveToTarget : ai.Task +{ + public MoveToTarget(JSONNode _buf) : base(_buf) + { + { if(!_buf["target_actor_key"].IsString) { throw new SerializationException(); } TargetActorKey = _buf["target_actor_key"]; } + { if(!_buf["acceptable_radius"].IsNumber) { throw new SerializationException(); } AcceptableRadius = _buf["acceptable_radius"]; } + } + + public static MoveToTarget DeserializeMoveToTarget(JSONNode _buf) + { + return new ai.MoveToTarget(_buf); + } + + public readonly string TargetActorKey; + public readonly float AcceptableRadius; + + public const int __ID__ = 514987779; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "targetActorKey:" + TargetActorKey + "," + + "acceptableRadius:" + AcceptableRadius + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToTarget.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToTarget.cs.meta new file mode 100644 index 00000000..89768dd9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.MoveToTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 81aa389dbf74dee4aa892edba1d15b12 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Node.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Node.cs new file mode 100644 index 00000000..be2e8351 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Node.cs @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public abstract partial class Node : Luban.BeanBase +{ + public Node(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["node_name"].IsString) { throw new SerializationException(); } NodeName = _buf["node_name"]; } + } + + public static Node DeserializeNode(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + case "UeLoop": return new ai.UeLoop(_buf); + case "UeCooldown": return new ai.UeCooldown(_buf); + case "UeTimeLimit": return new ai.UeTimeLimit(_buf); + case "UeBlackboard": return new ai.UeBlackboard(_buf); + case "UeForceSuccess": return new ai.UeForceSuccess(_buf); + case "IsAtLocation": return new ai.IsAtLocation(_buf); + case "DistanceLessThan": return new ai.DistanceLessThan(_buf); + case "Sequence": return new ai.Sequence(_buf); + case "Selector": return new ai.Selector(_buf); + case "SimpleParallel": return new ai.SimpleParallel(_buf); + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string NodeName; + + + public virtual void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Node.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Node.cs.meta new file mode 100644 index 00000000..4bc3bc28 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Node.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7e4925c95315aaa4abe4e376919baa04 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Selector.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Selector.cs new file mode 100644 index 00000000..a0fcf775 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Selector.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class Selector : ai.ComposeNode +{ + public Selector(JSONNode _buf) : base(_buf) + { + { var __json0 = _buf["children"]; if(!__json0.IsArray) { throw new SerializationException(); } Children = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.FlowNode __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.FlowNode.DeserializeFlowNode(__e0); } Children.Add(__v0); } } + } + + public static Selector DeserializeSelector(JSONNode _buf) + { + return new ai.Selector(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1946981627; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Selector.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Selector.cs.meta new file mode 100644 index 00000000..496af3fa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Selector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8d403bfbc1b0aad468af44a78240b9fa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Sequence.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Sequence.cs new file mode 100644 index 00000000..1db3f43d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Sequence.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class Sequence : ai.ComposeNode +{ + public Sequence(JSONNode _buf) : base(_buf) + { + { var __json0 = _buf["children"]; if(!__json0.IsArray) { throw new SerializationException(); } Children = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.FlowNode __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.FlowNode.DeserializeFlowNode(__e0); } Children.Add(__v0); } } + } + + public static Sequence DeserializeSequence(JSONNode _buf) + { + return new ai.Sequence(_buf); + } + + public readonly System.Collections.Generic.List Children; + + public const int __ID__ = -1789006105; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + foreach (var _e in Children) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "children:" + Luban.StringUtil.CollectionToString(Children) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Sequence.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Sequence.cs.meta new file mode 100644 index 00000000..8b14a768 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Sequence.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cf36793314333364ebb6afc4e48d98a6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Service.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Service.cs new file mode 100644 index 00000000..856a3218 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Service.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public abstract partial class Service : ai.Node +{ + public Service(JSONNode _buf) : base(_buf) + { + } + + public static Service DeserializeService(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Service.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Service.cs.meta new file mode 100644 index 00000000..fadc0ec5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Service.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fc45ec7bef5dfcc4abc30fed2239ebdc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.SimpleParallel.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.SimpleParallel.cs new file mode 100644 index 00000000..ade70846 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.SimpleParallel.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.ai +{ +public sealed partial class SimpleParallel : ai.ComposeNode +{ + public SimpleParallel(JSONNode _buf) : base(_buf) + { + { if(!_buf["finish_mode"].IsNumber) { throw new SerializationException(); } FinishMode = (ai.EFinishMode)_buf["finish_mode"].AsInt; } + { if(!_buf["main_task"].IsObject) { throw new SerializationException(); } MainTask = ai.Task.DeserializeTask(_buf["main_task"]); } + { if(!_buf["background_node"].IsObject) { throw new SerializationException(); } BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf["background_node"]); } + } + + public static SimpleParallel DeserializeSimpleParallel(JSONNode _buf) + { + return new ai.SimpleParallel(_buf); + } + + public readonly ai.EFinishMode FinishMode; + public readonly ai.Task MainTask; + public readonly ai.FlowNode BackgroundNode; + + public const int __ID__ = -1952582529; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + MainTask?.ResolveRef(tables); + BackgroundNode?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "finishMode:" + FinishMode + "," + + "mainTask:" + MainTask + "," + + "backgroundNode:" + BackgroundNode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.SimpleParallel.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.SimpleParallel.cs.meta new file mode 100644 index 00000000..af83e901 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.SimpleParallel.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b6be716bf2f39ca46b0f6bd2c17430b8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.StringKeyData.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.StringKeyData.cs new file mode 100644 index 00000000..fb2cd507 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.StringKeyData.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.ai +{ +public sealed partial class StringKeyData : ai.KeyData +{ + public StringKeyData(JSONNode _buf) : base(_buf) + { + { if(!_buf["value"].IsString) { throw new SerializationException(); } Value = _buf["value"]; } + } + + public static StringKeyData DeserializeStringKeyData(JSONNode _buf) + { + return new ai.StringKeyData(_buf); + } + + public readonly string Value; + + public const int __ID__ = -307888654; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.StringKeyData.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.StringKeyData.cs.meta new file mode 100644 index 00000000..90619c92 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.StringKeyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: af76e75f90f290447a63dca647a9aa76 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Task.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Task.cs new file mode 100644 index 00000000..59779e90 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Task.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.ai +{ +public abstract partial class Task : ai.FlowNode +{ + public Task(JSONNode _buf) : base(_buf) + { + { if(!_buf["ignore_restart_self"].IsBoolean) { throw new SerializationException(); } IgnoreRestartSelf = _buf["ignore_restart_self"]; } + } + + public static Task DeserializeTask(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "UeWait": return new ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new ai.MoveToTarget(_buf); + case "ChooseSkill": return new ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new ai.MoveToLocation(_buf); + case "DebugPrint": return new ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public readonly bool IgnoreRestartSelf; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Task.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Task.cs.meta new file mode 100644 index 00000000..3ab3f8aa --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.Task.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f68f9192e463cdf4f8ef877bb70e4d5e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBehaviorTree.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBehaviorTree.cs new file mode 100644 index 00000000..00c5333c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBehaviorTree.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public partial class TbBehaviorTree +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBehaviorTree(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + ai.BehaviorTree _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = ai.BehaviorTree.DeserializeBehaviorTree(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.BehaviorTree GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.BehaviorTree Get(int key) => _dataMap[key]; + public ai.BehaviorTree this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBehaviorTree.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBehaviorTree.cs.meta new file mode 100644 index 00000000..7f7cee96 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBehaviorTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e1d8d62d05174a14ea6ac84a20633048 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBlackboard.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBlackboard.cs new file mode 100644 index 00000000..56b8f30f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBlackboard.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public partial class TbBlackboard +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbBlackboard(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + ai.Blackboard _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = ai.Blackboard.DeserializeBlackboard(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Name, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public ai.Blackboard GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public ai.Blackboard Get(string key) => _dataMap[key]; + public ai.Blackboard this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBlackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBlackboard.cs.meta new file mode 100644 index 00000000..dd9b1129 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.TbBlackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92e6356a4f0b3c94a9a12fd69d28a19f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeBlackboard.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeBlackboard.cs new file mode 100644 index 00000000..c46304a3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeBlackboard.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class UeBlackboard : ai.Decorator +{ + public UeBlackboard(JSONNode _buf) : base(_buf) + { + { if(!_buf["notify_observer"].IsNumber) { throw new SerializationException(); } NotifyObserver = (ai.ENotifyObserverMode)_buf["notify_observer"].AsInt; } + { if(!_buf["blackboard_key"].IsString) { throw new SerializationException(); } BlackboardKey = _buf["blackboard_key"]; } + { if(!_buf["key_query"].IsObject) { throw new SerializationException(); } KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf["key_query"]); } + } + + public static UeBlackboard DeserializeUeBlackboard(JSONNode _buf) + { + return new ai.UeBlackboard(_buf); + } + + public readonly ai.ENotifyObserverMode NotifyObserver; + public readonly string BlackboardKey; + public readonly ai.KeyQueryOperator KeyQuery; + + public const int __ID__ = -315297507; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + KeyQuery?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "notifyObserver:" + NotifyObserver + "," + + "blackboardKey:" + BlackboardKey + "," + + "keyQuery:" + KeyQuery + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeBlackboard.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeBlackboard.cs.meta new file mode 100644 index 00000000..5cbbe16b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeBlackboard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fdad05b10ab1f5241ac9c579ea0ecf30 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeCooldown.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeCooldown.cs new file mode 100644 index 00000000..85068069 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeCooldown.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.ai +{ +public sealed partial class UeCooldown : ai.Decorator +{ + public UeCooldown(JSONNode _buf) : base(_buf) + { + { if(!_buf["cooldown_time"].IsNumber) { throw new SerializationException(); } CooldownTime = _buf["cooldown_time"]; } + } + + public static UeCooldown DeserializeUeCooldown(JSONNode _buf) + { + return new ai.UeCooldown(_buf); + } + + public readonly float CooldownTime; + + public const int __ID__ = -951439423; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "cooldownTime:" + CooldownTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeCooldown.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeCooldown.cs.meta new file mode 100644 index 00000000..9b724695 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeCooldown.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 655594dc88300b7479f481b36d9f297f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeForceSuccess.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeForceSuccess.cs new file mode 100644 index 00000000..7940b7c3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeForceSuccess.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.ai +{ +public sealed partial class UeForceSuccess : ai.Decorator +{ + public UeForceSuccess(JSONNode _buf) : base(_buf) + { + } + + public static UeForceSuccess DeserializeUeForceSuccess(JSONNode _buf) + { + return new ai.UeForceSuccess(_buf); + } + + + public const int __ID__ = 195054574; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeForceSuccess.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeForceSuccess.cs.meta new file mode 100644 index 00000000..0ee39bbd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeForceSuccess.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b255a08e1bdcc45459abef56b490c89e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeLoop.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeLoop.cs new file mode 100644 index 00000000..dd8dd7ed --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeLoop.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class UeLoop : ai.Decorator +{ + public UeLoop(JSONNode _buf) : base(_buf) + { + { if(!_buf["num_loops"].IsNumber) { throw new SerializationException(); } NumLoops = _buf["num_loops"]; } + { if(!_buf["infinite_loop"].IsBoolean) { throw new SerializationException(); } InfiniteLoop = _buf["infinite_loop"]; } + { if(!_buf["infinite_loop_timeout_time"].IsNumber) { throw new SerializationException(); } InfiniteLoopTimeoutTime = _buf["infinite_loop_timeout_time"]; } + } + + public static UeLoop DeserializeUeLoop(JSONNode _buf) + { + return new ai.UeLoop(_buf); + } + + public readonly int NumLoops; + public readonly bool InfiniteLoop; + public readonly float InfiniteLoopTimeoutTime; + + public const int __ID__ = -513308166; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "numLoops:" + NumLoops + "," + + "infiniteLoop:" + InfiniteLoop + "," + + "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeLoop.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeLoop.cs.meta new file mode 100644 index 00000000..bd095aea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeLoop.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 77046358d3c25de4cb41c9ea6935a3e2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeSetDefaultFocus.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeSetDefaultFocus.cs new file mode 100644 index 00000000..a426e05f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeSetDefaultFocus.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class UeSetDefaultFocus : ai.Service +{ + public UeSetDefaultFocus(JSONNode _buf) : base(_buf) + { + { if(!_buf["keyboard_key"].IsString) { throw new SerializationException(); } KeyboardKey = _buf["keyboard_key"]; } + } + + public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(JSONNode _buf) + { + return new ai.UeSetDefaultFocus(_buf); + } + + public readonly string KeyboardKey; + + public const int __ID__ = 1812449155; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "keyboardKey:" + KeyboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeSetDefaultFocus.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeSetDefaultFocus.cs.meta new file mode 100644 index 00000000..b9c6b4e9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeSetDefaultFocus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 838afdda2a504594f9706ba3357e84f5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeTimeLimit.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeTimeLimit.cs new file mode 100644 index 00000000..d982ac03 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeTimeLimit.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.ai +{ +public sealed partial class UeTimeLimit : ai.Decorator +{ + public UeTimeLimit(JSONNode _buf) : base(_buf) + { + { if(!_buf["limit_time"].IsNumber) { throw new SerializationException(); } LimitTime = _buf["limit_time"]; } + } + + public static UeTimeLimit DeserializeUeTimeLimit(JSONNode _buf) + { + return new ai.UeTimeLimit(_buf); + } + + public readonly float LimitTime; + + public const int __ID__ = 338469720; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "flowAbortMode:" + FlowAbortMode + "," + + "limitTime:" + LimitTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeTimeLimit.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeTimeLimit.cs.meta new file mode 100644 index 00000000..8bab7edd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeTimeLimit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 40e5928b3df1b9241bfa60ca3ea9cf2e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWait.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWait.cs new file mode 100644 index 00000000..c7f61b71 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWait.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class UeWait : ai.Task +{ + public UeWait(JSONNode _buf) : base(_buf) + { + { if(!_buf["wait_time"].IsNumber) { throw new SerializationException(); } WaitTime = _buf["wait_time"]; } + { if(!_buf["random_deviation"].IsNumber) { throw new SerializationException(); } RandomDeviation = _buf["random_deviation"]; } + } + + public static UeWait DeserializeUeWait(JSONNode _buf) + { + return new ai.UeWait(_buf); + } + + public readonly float WaitTime; + public readonly float RandomDeviation; + + public const int __ID__ = -512994101; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "waitTime:" + WaitTime + "," + + "randomDeviation:" + RandomDeviation + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWait.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWait.cs.meta new file mode 100644 index 00000000..97644c83 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWait.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 414d54f12c32ba449ab948ab1e6ed44c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWaitBlackboardTime.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWaitBlackboardTime.cs new file mode 100644 index 00000000..3255c26a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWaitBlackboardTime.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class UeWaitBlackboardTime : ai.Task +{ + public UeWaitBlackboardTime(JSONNode _buf) : base(_buf) + { + { if(!_buf["blackboard_key"].IsString) { throw new SerializationException(); } BlackboardKey = _buf["blackboard_key"]; } + } + + public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(JSONNode _buf) + { + return new ai.UeWaitBlackboardTime(_buf); + } + + public readonly string BlackboardKey; + + public const int __ID__ = 1215378271; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + "," + + "services:" + Luban.StringUtil.CollectionToString(Services) + "," + + "ignoreRestartSelf:" + IgnoreRestartSelf + "," + + "blackboardKey:" + BlackboardKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta new file mode 100644 index 00000000..06b7c369 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UeWaitBlackboardTime.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5bd5168e358eb53408cb8d6ad1f63a65 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..08fd11ad --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// 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.ai +{ +public sealed partial class UpdateDailyBehaviorProps : ai.Service +{ + public UpdateDailyBehaviorProps(JSONNode _buf) : base(_buf) + { + { if(!_buf["satiety_key"].IsString) { throw new SerializationException(); } SatietyKey = _buf["satiety_key"]; } + { if(!_buf["energy_key"].IsString) { throw new SerializationException(); } EnergyKey = _buf["energy_key"]; } + { if(!_buf["mood_key"].IsString) { throw new SerializationException(); } MoodKey = _buf["mood_key"]; } + { if(!_buf["satiety_lower_threshold_key"].IsString) { throw new SerializationException(); } SatietyLowerThresholdKey = _buf["satiety_lower_threshold_key"]; } + { if(!_buf["satiety_upper_threshold_key"].IsString) { throw new SerializationException(); } SatietyUpperThresholdKey = _buf["satiety_upper_threshold_key"]; } + { if(!_buf["energy_lower_threshold_key"].IsString) { throw new SerializationException(); } EnergyLowerThresholdKey = _buf["energy_lower_threshold_key"]; } + { if(!_buf["energy_upper_threshold_key"].IsString) { throw new SerializationException(); } EnergyUpperThresholdKey = _buf["energy_upper_threshold_key"]; } + { if(!_buf["mood_lower_threshold_key"].IsString) { throw new SerializationException(); } MoodLowerThresholdKey = _buf["mood_lower_threshold_key"]; } + { if(!_buf["mood_upper_threshold_key"].IsString) { throw new SerializationException(); } MoodUpperThresholdKey = _buf["mood_upper_threshold_key"]; } + } + + public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(JSONNode _buf) + { + return new ai.UpdateDailyBehaviorProps(_buf); + } + + public readonly string SatietyKey; + public readonly string EnergyKey; + public readonly string MoodKey; + public readonly string SatietyLowerThresholdKey; + public readonly string SatietyUpperThresholdKey; + public readonly string EnergyLowerThresholdKey; + public readonly string EnergyUpperThresholdKey; + public readonly string MoodLowerThresholdKey; + public readonly string MoodUpperThresholdKey; + + public const int __ID__ = -61887372; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "nodeName:" + NodeName + "," + + "satietyKey:" + SatietyKey + "," + + "energyKey:" + EnergyKey + "," + + "moodKey:" + MoodKey + "," + + "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + "," + + "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + "," + + "energyLowerThresholdKey:" + EnergyLowerThresholdKey + "," + + "energyUpperThresholdKey:" + EnergyUpperThresholdKey + "," + + "moodLowerThresholdKey:" + MoodLowerThresholdKey + "," + + "moodUpperThresholdKey:" + MoodUpperThresholdKey + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta new file mode 100644 index 00000000..65a041c4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.UpdateDailyBehaviorProps.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f14d4c752ee6c984cb6cdf3746cbdc24 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.meta new file mode 100644 index 00000000..d81e34b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/ai.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 194df111ec5c2f548b5752812b0154e6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/blueprint.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/blueprint.meta new file mode 100644 index 00000000..da750829 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/blueprint.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 14c001589341bdf4fbc1670931da9a19 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/bonus.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/bonus.meta new file mode 100644 index 00000000..eaa993dc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/bonus.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e9c7476c48b36b7439c34f9094737465 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.EBoolOperator.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.EBoolOperator.cs new file mode 100644 index 00000000..4e7f1379 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.EBoolOperator.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// 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.common +{ + public enum EBoolOperator + { + AND = 0, + OR = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.EBoolOperator.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.EBoolOperator.cs.meta new file mode 100644 index 00000000..d63a3120 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.EBoolOperator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 376357300a6da0b46a0cca11dbe94a01 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.GlobalConfig.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.GlobalConfig.cs new file mode 100644 index 00000000..c7190af8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.GlobalConfig.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.common +{ +public sealed partial class GlobalConfig : Luban.BeanBase +{ + public GlobalConfig(JSONNode _buf) + { + { if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; } + { if(!_buf["x2"].IsNumber) { 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"]; } + { if(!_buf["x5"].IsNumber) { throw new SerializationException(); } X5 = _buf["x5"]; } + { if(!_buf["x6"].IsNumber) { throw new SerializationException(); } X6 = _buf["x6"]; } + { var __json0 = _buf["x7"]; if(!__json0.IsArray) { throw new SerializationException(); } X7 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } X7.Add(__v0); } } + } + + public static GlobalConfig DeserializeGlobalConfig(JSONNode _buf) + { + return new common.GlobalConfig(_buf); + } + + /// + /// 背包容量 + /// + public readonly int X1; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public readonly int X5; + public readonly int X6; + public readonly System.Collections.Generic.List X7; + + public const int __ID__ = -848234488; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.GlobalConfig.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.GlobalConfig.cs.meta new file mode 100644 index 00000000..d2ff62e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.GlobalConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eabedb7ea7793424099ca172c72c82ea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.TbGlobalConfig.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.TbGlobalConfig.cs new file mode 100644 index 00000000..a1a4114d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.TbGlobalConfig.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.common +{ +public partial class TbGlobalConfig +{ + + private readonly common.GlobalConfig _data; + + public TbGlobalConfig(JSONNode _buf) + { + int n = _buf.Count; + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + { if(!_buf[0].IsObject) { throw new SerializationException(); } _data = common.GlobalConfig.DeserializeGlobalConfig(_buf[0]); } + } + + + /// + /// 背包容量 + /// + public int X1 => _data.X1; + public int X2 => _data.X2; + public int X3 => _data.X3; + public int X4 => _data.X4; + public int X5 => _data.X5; + public int X6 => _data.X6; + public System.Collections.Generic.List X7 => _data.X7; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.TbGlobalConfig.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.TbGlobalConfig.cs.meta new file mode 100644 index 00000000..036a091e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.TbGlobalConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c91b9e9d454e398428ed3a3e0540b92e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.meta new file mode 100644 index 00000000..b36de6fb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/common.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6db51a3f4768050498992b03a5867cb1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/condition.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/condition.meta new file mode 100644 index 00000000..ed248abc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/condition.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e913f355b249bb6409d34e889bae87f5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/cost.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/cost.meta new file mode 100644 index 00000000..9dac452c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/cost.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e59c8e9f0c92d7a499a0a1b85fba3a91 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/error.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/error.meta new file mode 100644 index 00000000..06f54a58 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/error.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fbc647db8b1ecaa488ed69ad3466bd7f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersStarQualityType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersStarQualityType.cs new file mode 100644 index 00000000..f148097b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersStarQualityType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothersStarQualityType + { + /// + /// 一星 + /// + ONE = 1, + /// + /// 二星 + /// + TWO = 2, + /// + /// 三星 + /// + THREE = 3, + /// + /// 四星 + /// + FOUR = 4, + /// + /// 五星 + /// + FIVE = 5, + /// + /// 六星 + /// + SIX = 6, + /// + /// 七星 + /// + SEVEN = 7, + /// + /// 八星 + /// + EIGHT = 8, + /// + /// 九星 + /// + NINE = 9, + /// + /// 十星 + /// + TEN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersStarQualityType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersStarQualityType.cs.meta new file mode 100644 index 00000000..6a175eec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersStarQualityType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 026bd92f3eae0ec48a588d17a4b42e59 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersTag.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersTag.cs new file mode 100644 index 00000000..c7bfd3cb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersTag.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothersTag + { + /// + /// 防晒 + /// + FANG_SHAI = 1, + /// + /// 舞者 + /// + WU_ZHE = 2, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersTag.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersTag.cs.meta new file mode 100644 index 00000000..c5c8b366 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothersTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 54480937001ddde4aab95268dfb3fc4c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesHidePartType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesHidePartType.cs new file mode 100644 index 00000000..401492ae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesHidePartType.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 EClothesHidePartType + { + /// + /// 胸部 + /// + CHEST = 0, + /// + /// 手 + /// + HEAD = 1, + /// + /// 脊柱上 + /// + SPINE_UPPER = 2, + /// + /// 脊柱下 + /// + SPINE_LOWER = 3, + /// + /// 臀部 + /// + HIP = 4, + /// + /// 腿上 + /// + LEG_UPPER = 5, + /// + /// 腿中 + /// + LEG_MIDDLE = 6, + /// + /// 腿下 + /// + LEG_LOWER = 7, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesHidePartType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesHidePartType.cs.meta new file mode 100644 index 00000000..51a17b8c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesHidePartType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb22f48028e074a43a074c2f4637d332 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesPropertyType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesPropertyType.cs new file mode 100644 index 00000000..b0b224b8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesPropertyType.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. +// +//------------------------------------------------------------------------------ + + + +namespace cfg.item +{ + public enum EClothesPropertyType + { + /// + /// 简约 + /// + JIAN_YUE = 1, + /// + /// 华丽 + /// + HUA_LI = 2, + /// + /// 可爱 + /// + KE_AI = 3, + /// + /// 成熟 + /// + CHENG_SHU = 4, + /// + /// 活泼 + /// + HUO_PO = 5, + /// + /// 优雅 + /// + YOU_YA = 6, + /// + /// 清纯 + /// + QING_CHUN = 7, + /// + /// 性感 + /// + XING_GAN = 8, + /// + /// 清凉 + /// + QING_LIANG = 9, + /// + /// 保暖 + /// + BAO_NUAN = 10, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesPropertyType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesPropertyType.cs.meta new file mode 100644 index 00000000..2ed167d4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EClothesPropertyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 428953b0ba4307743b9106c9de6d1a02 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.ECurrencyType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.ECurrencyType.cs new file mode 100644 index 00000000..7dfcba3c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.ECurrencyType.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 ECurrencyType + { + /// + /// 钻石 + /// + DIAMOND = 1, + /// + /// 金币 + /// + GOLD = 2, + /// + /// 银币 + /// + SILVER = 3, + /// + /// 经验 + /// + EXP = 4, + /// + /// 能量点 + /// + POWER_POINT = 5, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.ECurrencyType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.ECurrencyType.cs.meta new file mode 100644 index 00000000..1dc5cf62 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.ECurrencyType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0c6f09fc2e08e634d89defea955025ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EItemQuality.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EItemQuality.cs new file mode 100644 index 00000000..74fcfbf2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EItemQuality.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// 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 EItemQuality + { + /// + /// 白 + /// + WHITE = 0, + /// + /// 绿 + /// + GREEN = 1, + /// + /// 蓝 + /// + BLUE = 2, + /// + /// 紫 + /// + PURPLE = 3, + /// + /// 金 + /// + GOLDEN = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EItemQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EItemQuality.cs.meta new file mode 100644 index 00000000..9e451727 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EItemQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 746fa2a88690a0041af5d39de3a8cd55 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMajorType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMajorType.cs new file mode 100644 index 00000000..c19157ce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMajorType.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMajorType + { + /// + /// 货币 + /// + CURRENCY = 1, + /// + /// 服装 + /// + CLOTH = 2, + /// + /// 任务 + /// + QUEST = 3, + /// + /// 消耗品 + /// + CONSUMABLES = 4, + /// + /// 宝箱 + /// + TREASURE_BOX = 5, + /// + /// 成就和称谓 + /// + ACHIEVEMENT_AND_TITLE = 6, + /// + /// 头像框 + /// + HEAD_FRAME = 7, + /// + /// 语音 + /// + VOICE = 8, + /// + /// 动作 + /// + ACTION = 9, + /// + /// 扩容道具 + /// + EXPANSION = 10, + /// + /// 制作材料 + /// + MATERIAL = 11, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMajorType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMajorType.cs.meta new file mode 100644 index 00000000..d062c43d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMajorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8ae5402ee662bd94c97179120af553e4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMinorType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMinorType.cs new file mode 100644 index 00000000..936a15ab --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMinorType.cs @@ -0,0 +1,215 @@ + +//------------------------------------------------------------------------------ +// +// 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 EMinorType + { + /// + /// 钻石 + /// + DIAMOND = 101, + /// + /// 金币 + /// + GOLD = 102, + /// + /// 银币 + /// + SILVER = 103, + /// + /// 经验 + /// + EXP = 104, + /// + /// 能量点 + /// + POWER_POINT = 105, + /// + /// 发型 + /// + HAIR_STYLE = 210, + /// + /// 外套 + /// + COAT = 220, + /// + /// 上衣 + /// + UPPER_JACKET = 230, + /// + /// 裤子 + /// + TROUSERS = 241, + /// + /// 裙子 + /// + SKIRT = 242, + /// + /// 袜子 + /// + SOCKS = 250, + /// + /// 鞋子 + /// + SHOES = 260, + /// + /// 发饰 + /// + HAIR_ACCESSORY = 271, + /// + /// 帽子 + /// + HAT = 272, + /// + /// 耳饰 + /// + EARRING = 273, + /// + /// 颈饰 + /// + NECKLACE = 274, + /// + /// 腕饰 + /// + BRACELET = 275, + /// + /// 发箍 + /// + HAIR_CLASP = 276, + /// + /// 手套 + /// + GLOVE = 277, + /// + /// 手持物 + /// + HANDHELD_OBJECT = 278, + /// + /// 特殊 + /// + SPECIAL = 279, + /// + /// 底妆 + /// + BASE_COSMETIC = 281, + /// + /// 眉妆 + /// + EYEBROW_COSMETIC = 282, + /// + /// 睫毛 + /// + EYELASH = 283, + /// + /// 美瞳 + /// + COSMETIC_CONTACT_LENSES = 284, + /// + /// 唇妆 + /// + LIP_COSMETIC = 285, + /// + /// 肤色 + /// + SKIN_COLOR = 286, + /// + /// 连衣裙 + /// + ONE_PIECE_DRESS = 290, + /// + /// 换装场景 + /// + SWITCH_CLOTHES_SCENE = 291, + /// + /// 任务道具 + /// + QUEST = 301, + /// + /// 投掷物 + /// + CAST = 401, + /// + /// 刀剑 + /// + SWORD = 421, + /// + /// 弓箭 + /// + BOW_ARROW = 422, + /// + /// 法杖 + /// + WANDS = 423, + /// + /// 特殊工具 + /// + SPECIAL_TOOL = 424, + /// + /// 食物 + /// + FOOD = 403, + /// + /// 宝箱 + /// + TREASURE_BOX = 501, + /// + /// 钥匙 + /// + KEY = 502, + /// + /// 多选一宝箱 + /// + MULTI_CHOOSE_TREASURE_BOX = 503, + /// + /// 成就相关 + /// + ACHIEVEMENT = 601, + /// + /// 称谓相关 + /// + TITLE = 602, + /// + /// 头像框 + /// + AVATAR_FRAME = 701, + /// + /// 语音 + /// + VOICE = 801, + /// + /// 特殊待机动作 + /// + IDLE_POSE = 901, + /// + /// 拍照动作 + /// + PHOTO_POSE = 902, + /// + /// 背包 + /// + BAG = 1001, + /// + /// 好友数量 + /// + FRIEND_CAPACITY = 1002, + /// + /// 制作材料 + /// + CONSTRUCTION_MATERIAL = 1101, + /// + /// 设计图纸 + /// + DESIGN_DRAWING = 1102, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMinorType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMinorType.cs.meta new file mode 100644 index 00000000..82fe7427 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EMinorType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c422c1862c9781740b3d1ef5220ecbc0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EUseType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EUseType.cs new file mode 100644 index 00000000..20f635dd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EUseType.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// 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 EUseType + { + /// + /// 手动 + /// + MANUAL = 0, + /// + /// 自动 + /// + AUTO = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EUseType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EUseType.cs.meta new file mode 100644 index 00000000..d8569b21 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.EUseType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bb26f2e50bce7f64ab7ed368db43ca0b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.Item.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.Item.cs new file mode 100644 index 00000000..af24213b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.Item.cs @@ -0,0 +1,88 @@ + +//------------------------------------------------------------------------------ +// +// 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 Item : Luban.BeanBase +{ + public Item(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["major_type"].IsNumber) { throw new SerializationException(); } MajorType = (item.EMajorType)_buf["major_type"].AsInt; } + { if(!_buf["minor_type"].IsNumber) { throw new SerializationException(); } MinorType = (item.EMinorType)_buf["minor_type"].AsInt; } + { if(!_buf["quality"].IsNumber) { throw new SerializationException(); } Quality = (item.EItemQuality)_buf["quality"].AsInt; } + { if(!_buf["icon"].IsString) { throw new SerializationException(); } Icon = _buf["icon"]; } + { if(!_buf["icon_backgroud"].IsString) { throw new SerializationException(); } IconBackgroud = _buf["icon_backgroud"]; } + { if(!_buf["icon_mask"].IsString) { throw new SerializationException(); } IconMask = _buf["icon_mask"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + { if(!_buf["show_order"].IsNumber) { throw new SerializationException(); } ShowOrder = _buf["show_order"]; } + } + + public static Item DeserializeItem(JSONNode _buf) + { + return new item.Item(_buf); + } + + /// + /// 道具id + /// + public readonly int Id; + public readonly string Name; + public readonly item.EMajorType MajorType; + public readonly item.EMinorType MinorType; + public readonly item.EItemQuality Quality; + public readonly string Icon; + public readonly string IconBackgroud; + public readonly string IconMask; + public readonly string Desc; + public readonly int ShowOrder; + + public const int __ID__ = 2107285806; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "majorType:" + MajorType + "," + + "minorType:" + MinorType + "," + + "quality:" + Quality + "," + + "icon:" + Icon + "," + + "iconBackgroud:" + IconBackgroud + "," + + "iconMask:" + IconMask + "," + + "desc:" + Desc + "," + + "showOrder:" + ShowOrder + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.Item.cs.meta new file mode 100644 index 00000000..e409dfc3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eaebaf6ed33eee341b5b8dc6c775df0e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.TbItem.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.TbItem.cs new file mode 100644 index 00000000..541e6a19 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.TbItem.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 partial class TbItem +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + item.Item _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = item.Item.DeserializeItem(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public item.Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public item.Item Get(int key) => _dataMap[key]; + public item.Item this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.TbItem.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.TbItem.cs.meta new file mode 100644 index 00000000..da9c8183 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.TbItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0385620e231d78947b0e5638f31955b8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.meta new file mode 100644 index 00000000..b0478d91 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/item.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d06a79dcaa5ab954d9c7d393b5905004 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.L10NDemo.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.L10NDemo.cs new file mode 100644 index 00000000..5e175821 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.L10NDemo.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.l10n +{ +public sealed partial class L10NDemo : Luban.BeanBase +{ + public L10NDemo(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["text"].IsString) { throw new SerializationException(); } Text = _buf["text"]; } + } + + public static L10NDemo DeserializeL10NDemo(JSONNode _buf) + { + return new l10n.L10NDemo(_buf); + } + + public readonly int Id; + public readonly string Text; + + public const int __ID__ = -331195887; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "text:" + Text + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.L10NDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.L10NDemo.cs.meta new file mode 100644 index 00000000..e4411f6c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.L10NDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9c57aa5c4f7411b4297c811989aaa7a2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.PatchDemo.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.PatchDemo.cs new file mode 100644 index 00000000..08f24add --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.PatchDemo.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.l10n +{ +public sealed partial class PatchDemo : Luban.BeanBase +{ + public PatchDemo(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["value"].IsNumber) { throw new SerializationException(); } Value = _buf["value"]; } + } + + public static PatchDemo DeserializePatchDemo(JSONNode _buf) + { + return new l10n.PatchDemo(_buf); + } + + public readonly int Id; + public readonly int Value; + + public const int __ID__ = -1707294656; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.PatchDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.PatchDemo.cs.meta new file mode 100644 index 00000000..4d8c1ed0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.PatchDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f1774a987a0fe94886e3472e76878bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbL10NDemo.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbL10NDemo.cs new file mode 100644 index 00000000..08ea4873 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbL10NDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.l10n +{ +public partial class TbL10NDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbL10NDemo(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + l10n.L10NDemo _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = l10n.L10NDemo.DeserializeL10NDemo(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.L10NDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.L10NDemo Get(int key) => _dataMap[key]; + public l10n.L10NDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbL10NDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbL10NDemo.cs.meta new file mode 100644 index 00000000..3d5eccdf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbL10NDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 31330280273c2134d89907c7535694c4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbPatchDemo.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbPatchDemo.cs new file mode 100644 index 00000000..75ceaa54 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbPatchDemo.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.l10n +{ +public partial class TbPatchDemo +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPatchDemo(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + l10n.PatchDemo _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = l10n.PatchDemo.DeserializePatchDemo(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public l10n.PatchDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public l10n.PatchDemo Get(int key) => _dataMap[key]; + public l10n.PatchDemo this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbPatchDemo.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbPatchDemo.cs.meta new file mode 100644 index 00000000..65617126 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.TbPatchDemo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f6ce08c7d06e644439d84b7cb60b91a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.meta new file mode 100644 index 00000000..09561300 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/l10n.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c9a51ba27b5761a49ad8676dd5de900e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/limit.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/limit.meta new file mode 100644 index 00000000..e6d3a3c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/limit.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f0516cd8ac2a4fd4ba1576d33ae964c4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/mail.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/mail.meta new file mode 100644 index 00000000..72f55f2f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/mail.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 263a0a4b5a8088f48bb108aa7f5b4ba2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/role.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/role.meta new file mode 100644 index 00000000..1a715d5b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/role.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 91f88c5de6da6104aa4dbe8cc1370006 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TbTestTag.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TbTestTag.cs new file mode 100644 index 00000000..ef71ea6e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TbTestTag.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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.tag +{ +public partial class TbTestTag +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestTag(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + tag.TestTag _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = tag.TestTag.DeserializeTestTag(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public tag.TestTag GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public tag.TestTag Get(int key) => _dataMap[key]; + public tag.TestTag this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TbTestTag.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TbTestTag.cs.meta new file mode 100644 index 00000000..c12b4f7f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TbTestTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c7f7b094c3748bb4980fcbefc02c5b3c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TestTag.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TestTag.cs new file mode 100644 index 00000000..8ff8cf98 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TestTag.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.tag +{ +public sealed partial class TestTag : Luban.BeanBase +{ + public TestTag(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["value"].IsString) { throw new SerializationException(); } Value = _buf["value"]; } + } + + public static TestTag DeserializeTestTag(JSONNode _buf) + { + return new tag.TestTag(_buf); + } + + public readonly int Id; + public readonly string Value; + + public const int __ID__ = 1742933812; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TestTag.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TestTag.cs.meta new file mode 100644 index 00000000..b877868d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.TestTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4c33a8778e4bb324ab8ab03750a3daf1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.meta new file mode 100644 index 00000000..e848345d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/tag.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fcab8cb3dc4c8de4292593f2c580c6a3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.AccessFlag.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.AccessFlag.cs new file mode 100644 index 00000000..9bd3f0c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.AccessFlag.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// 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/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.AccessFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.AccessFlag.cs.meta new file mode 100644 index 00000000..52770daf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.AccessFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 00e6745c0744dc949bf712d62f567069 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Circle.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Circle.cs new file mode 100644 index 00000000..01c4099a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/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/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Circle.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Circle.cs.meta new file mode 100644 index 00000000..a3a5d9db --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Circle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c7ada19eea85fa1408dd937955a37f12 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompactString.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompactString.cs new file mode 100644 index 00000000..6af5f48e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompactString.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 CompactString : Luban.BeanBase +{ + public CompactString(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["s2"].IsString) { throw new SerializationException(); } S2 = _buf["s2"]; } + { if(!_buf["s3"].IsString) { throw new SerializationException(); } S3 = _buf["s3"]; } + } + + public static CompactString DeserializeCompactString(JSONNode _buf) + { + return new test.CompactString(_buf); + } + + public readonly int Id; + public readonly string S2; + public readonly string S3; + + public const int __ID__ = 1968089240; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s2:" + S2 + "," + + "s3:" + S3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompactString.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompactString.cs.meta new file mode 100644 index 00000000..bba90a9d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompactString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f8045916f84849346ab18d289810a8e9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable1.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable1.cs new file mode 100644 index 00000000..d9b736b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable1.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.test +{ +public sealed partial class CompositeJsonTable1 : Luban.BeanBase +{ + public CompositeJsonTable1(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x"].IsString) { throw new SerializationException(); } X = _buf["x"]; } + } + + public static CompositeJsonTable1 DeserializeCompositeJsonTable1(JSONNode _buf) + { + return new test.CompositeJsonTable1(_buf); + } + + public readonly int Id; + public readonly string X; + + public const int __ID__ = 1566207894; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable1.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable1.cs.meta new file mode 100644 index 00000000..a598054c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 44d13d5d0d0138f438fbc812f8f29c0a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable2.cs new file mode 100644 index 00000000..db4261e8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable2.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.test +{ +public sealed partial class CompositeJsonTable2 : Luban.BeanBase +{ + public CompositeJsonTable2(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + } + + public static CompositeJsonTable2 DeserializeCompositeJsonTable2(JSONNode _buf) + { + return new test.CompositeJsonTable2(_buf); + } + + public readonly int Id; + public readonly int Y; + + public const int __ID__ = 1566207895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable2.cs.meta new file mode 100644 index 00000000..0b77631e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d8e2edd0aa8533b4ba239f30c89ce3e0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable3.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable3.cs new file mode 100644 index 00000000..0e71eeb0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable3.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.test +{ +public sealed partial class CompositeJsonTable3 : Luban.BeanBase +{ + public CompositeJsonTable3(JSONNode _buf) + { + { if(!_buf["a"].IsNumber) { throw new SerializationException(); } A = _buf["a"]; } + { if(!_buf["b"].IsNumber) { throw new SerializationException(); } B = _buf["b"]; } + } + + public static CompositeJsonTable3 DeserializeCompositeJsonTable3(JSONNode _buf) + { + return new test.CompositeJsonTable3(_buf); + } + + public readonly int A; + public readonly int B; + + public const int __ID__ = 1566207896; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "a:" + A + "," + + "b:" + B + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable3.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable3.cs.meta new file mode 100644 index 00000000..15203359 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.CompositeJsonTable3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e84562b49f2073f4b99c14448e8081ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DateTimeRange.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DateTimeRange.cs new file mode 100644 index 00000000..2b0af0d8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DateTimeRange.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.test +{ +public sealed partial class DateTimeRange : Luban.BeanBase +{ + public DateTimeRange(JSONNode _buf) + { + { if(!_buf["start_time"].IsNumber) { throw new SerializationException(); } StartTime = _buf["start_time"]; } + { if(!_buf["end_time"].IsNumber) { throw new SerializationException(); } EndTime = _buf["end_time"]; } + } + + public static DateTimeRange DeserializeDateTimeRange(JSONNode _buf) + { + return new test.DateTimeRange(_buf); + } + + public readonly long StartTime; + public readonly long EndTime; + + public const int __ID__ = 495315430; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "startTime:" + StartTime + "," + + "endTime:" + EndTime + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DateTimeRange.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DateTimeRange.cs.meta new file mode 100644 index 00000000..e8653084 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DateTimeRange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 98a661e1c8d64ce4c9cf677cbb4b7706 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Decorator.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Decorator.cs new file mode 100644 index 00000000..96b1b5d1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Decorator.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.test +{ +public sealed partial class Decorator : test.ItemBase +{ + public Decorator(JSONNode _buf) : base(_buf) + { + { if(!_buf["duration"].IsNumber) { throw new SerializationException(); } Duration = _buf["duration"]; } + } + + public static Decorator DeserializeDecorator(JSONNode _buf) + { + return new test.Decorator(_buf); + } + + public readonly int Duration; + + public const int __ID__ = -625155649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "duration:" + Duration + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Decorator.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Decorator.cs.meta new file mode 100644 index 00000000..f0f64498 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Decorator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dad2947b01bf75548882a7f9999768cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD2.cs new file mode 100644 index 00000000..39944948 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoD2 : test.DemoDynamic +{ + public DemoD2(JSONNode _buf) : base(_buf) + { + { if(!_buf["x2"].IsNumber) { throw new SerializationException(); } X2 = _buf["x2"]; } + } + + public static DemoD2 DeserializeDemoD2(JSONNode _buf) + { + return new test.DemoD2(_buf); + } + + public readonly int X2; + + public const int __ID__ = -2138341747; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD2.cs.meta new file mode 100644 index 00000000..cc4dd9b1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b65bdd48adab9774e89bb9f2becffb99 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD3.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD3.cs new file mode 100644 index 00000000..fce95b21 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD3.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoD3 : test.DemoDynamic +{ + public DemoD3(JSONNode _buf) : base(_buf) + { + { if(!_buf["x3"].IsNumber) { throw new SerializationException(); } X3 = _buf["x3"]; } + } + + public static DemoD3 DeserializeDemoD3(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X3; + + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD3.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD3.cs.meta new file mode 100644 index 00000000..1210d315 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8c77d4be3ae00f34dbfed774258d3741 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD5.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD5.cs new file mode 100644 index 00000000..eefc8ca3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD5.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoD5 : test.DemoDynamic +{ + public DemoD5(JSONNode _buf) : base(_buf) + { + { if(!_buf["time"].IsObject) { throw new SerializationException(); } Time = test.DateTimeRange.DeserializeDateTimeRange(_buf["time"]); } + } + + public static DemoD5 DeserializeDemoD5(JSONNode _buf) + { + return new test.DemoD5(_buf); + } + + public readonly test.DateTimeRange Time; + + public const int __ID__ = -2138341744; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + Time?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "time:" + Time + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD5.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD5.cs.meta new file mode 100644 index 00000000..24cf7393 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoD5.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d5d2093c14235a848a8213a808f76780 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoDynamic.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoDynamic.cs new file mode 100644 index 00000000..e24c3e7a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoDynamic.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoDynamic : Luban.BeanBase +{ + public DemoDynamic(JSONNode _buf) + { + { if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; } + } + + public static DemoDynamic DeserializeDemoDynamic(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "DemoD2": return new test.DemoD2(_buf); + case "DemoE1": return new test.DemoE1(_buf); + case "test.login.RoleInfo": return new test.login.RoleInfo(_buf); + case "DemoD5": return new test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X1; + + + public virtual void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoDynamic.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoDynamic.cs.meta new file mode 100644 index 00000000..871072ab --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoDynamic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0e46c56758f1efc47a49e12d5855512a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE1.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE1.cs new file mode 100644 index 00000000..9db05af0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE1.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoE1 : test.DemoD3 +{ + public DemoE1(JSONNode _buf) : base(_buf) + { + { if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; } + } + + public static DemoE1 DeserializeDemoE1(JSONNode _buf) + { + return new test.DemoE1(_buf); + } + + public readonly int X4; + + public const int __ID__ = -2138341717; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE1.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE1.cs.meta new file mode 100644 index 00000000..ad017585 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a2be16d0a58e1f42afc59e5cc9e5564 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE2.cs new file mode 100644 index 00000000..f90a3d44 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial struct DemoE2 +{ + public DemoE2(JSONNode _buf) + { + { var _j = _buf["y1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } Y1 = _j; } } else { Y1 = null; } } + { if(!_buf["y2"].IsBoolean) { throw new SerializationException(); } Y2 = _buf["y2"]; } + } + + public static DemoE2 DeserializeDemoE2(JSONNode _buf) + { + return new test.DemoE2(_buf); + } + + public readonly int? Y1; + public readonly bool Y2; + + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE2.cs.meta new file mode 100644 index 00000000..4646a769 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoE2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f053f87015928204f835f3e1a3625f42 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoEnum.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoEnum.cs new file mode 100644 index 00000000..0a52c1e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoEnum.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum DemoEnum + { + NONE = 0, + /// + /// aa + /// + A = 1, + /// + /// bb + /// + B = 2, + /// + /// cc + /// + C = 4, + /// + /// dd + /// + D = 5, + Any = 6, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoEnum.cs.meta new file mode 100644 index 00000000..b98248b3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f69b627aaebb80248b5a14d07f3c29b0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoFlag.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoFlag.cs new file mode 100644 index 00000000..b9b5d903 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoFlag.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoFlag + { + A = 1, + B = 2, + C = 4, + D = 8, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoFlag.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoFlag.cs.meta new file mode 100644 index 00000000..870f5c9b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoFlag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bac3bb4365e667a4ea9dd0e394a98d6b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoGroup.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoGroup.cs new file mode 100644 index 00000000..f0de58e0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoGroup.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoGroup : Luban.BeanBase +{ + public DemoGroup(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; } + X1_Ref = null; + { if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; } + { if(!_buf["x5"].IsObject) { throw new SerializationException(); } X5 = test.InnerGroup.DeserializeInnerGroup(_buf["x5"]); } + } + + public static DemoGroup DeserializeDemoGroup(JSONNode _buf) + { + return new test.DemoGroup(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.DemoGroup X1_Ref; + public readonly int X4; + public readonly test.InnerGroup X5; + + public const int __ID__ = -379263008; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbDemoGroupC.GetOrDefault(X1); + + X5?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoGroup.cs.meta new file mode 100644 index 00000000..b91c5eea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9e4cda18151699d43b7ef6f00587c939 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..99e45fdc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs @@ -0,0 +1,94 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoPrimitiveTypesTable : Luban.BeanBase +{ + public DemoPrimitiveTypesTable(JSONNode _buf) + { + { if(!_buf["x1"].IsBoolean) { throw new SerializationException(); } X1 = _buf["x1"]; } + { if(!_buf["x2"].IsNumber) { 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"]; } + { if(!_buf["x5"].IsNumber) { throw new SerializationException(); } X5 = _buf["x5"]; } + { if(!_buf["x6"].IsNumber) { throw new SerializationException(); } X6 = _buf["x6"]; } + { if(!_buf["x7"].IsNumber) { throw new SerializationException(); } X7 = _buf["x7"]; } + { if(!_buf["s1"].IsString) { throw new SerializationException(); } S1 = _buf["s1"]; } + { if(!_buf["s2"].IsString) { throw new SerializationException(); } S2 = _buf["s2"]; } + { if(!_buf["v2"].IsObject) { throw new SerializationException(); } V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf["v2"])); } + { if(!_buf["v3"].IsObject) { throw new SerializationException(); } V3 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf["v3"])); } + { if(!_buf["v4"].IsObject) { throw new SerializationException(); } V4 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf["v4"])); } + { if(!_buf["t1"].IsNumber) { throw new SerializationException(); } T1 = _buf["t1"]; } + } + + public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(JSONNode _buf) + { + return new test.DemoPrimitiveTypesTable(_buf); + } + + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly int X4; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly string S1; + public readonly string S2; + public readonly UnityEngine.Vector2 V2; + public readonly UnityEngine.Vector3 V3; + public readonly UnityEngine.Vector4 V4; + public readonly long T1; + + public const int __ID__ = -370934083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "t1:" + T1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta new file mode 100644 index 00000000..e9ccec29 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoPrimitiveTypesTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9efa557e0d1af4449bb4b4ca23ef133f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoSingletonType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoSingletonType.cs new file mode 100644 index 00000000..fe24a650 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoSingletonType.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoSingletonType : Luban.BeanBase +{ + public DemoSingletonType(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["date"].IsObject) { throw new SerializationException(); } Date = test.DemoDynamic.DeserializeDemoDynamic(_buf["date"]); } + } + + public static DemoSingletonType DeserializeDemoSingletonType(JSONNode _buf) + { + return new test.DemoSingletonType(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.DemoDynamic Date; + + public const int __ID__ = 539196998; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + Date?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "date:" + Date + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoSingletonType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoSingletonType.cs.meta new file mode 100644 index 00000000..421a50da --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoSingletonType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 11da17601bf533649978d2bac4afe81f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType1.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType1.cs new file mode 100644 index 00000000..95225278 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType1.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 sealed partial class DemoType1 : Luban.BeanBase +{ + public DemoType1(JSONNode _buf) + { + { if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; } + } + + public static DemoType1 DeserializeDemoType1(JSONNode _buf) + { + return new test.DemoType1(_buf); + } + + public readonly int X1; + + public const int __ID__ = -367048296; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType1.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType1.cs.meta new file mode 100644 index 00000000..37b5077d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3126ac66c64868a4f9c65c53951233a9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType2.cs new file mode 100644 index 00000000..a6a0af0d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType2.cs @@ -0,0 +1,130 @@ + +//------------------------------------------------------------------------------ +// +// 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 DemoType2 : Luban.BeanBase +{ + public DemoType2(JSONNode _buf) + { + { if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; } + { if(!_buf["x1"].IsBoolean) { throw new SerializationException(); } X1 = _buf["x1"]; } + { if(!_buf["x2"].IsNumber) { throw new SerializationException(); } X2 = _buf["x2"]; } + { if(!_buf["x3"].IsNumber) { throw new SerializationException(); } X3 = _buf["x3"]; } + { if(!_buf["x5"].IsNumber) { throw new SerializationException(); } X5 = _buf["x5"]; } + { if(!_buf["x6"].IsNumber) { throw new SerializationException(); } X6 = _buf["x6"]; } + { if(!_buf["x7"].IsNumber) { throw new SerializationException(); } X7 = _buf["x7"]; } + { if(!_buf["x8_0"].IsNumber) { throw new SerializationException(); } X80 = _buf["x8_0"]; } + { if(!_buf["x8"].IsNumber) { throw new SerializationException(); } X8 = _buf["x8"]; } + { if(!_buf["x9"].IsNumber) { throw new SerializationException(); } X9 = _buf["x9"]; } + { if(!_buf["x10"].IsString) { throw new SerializationException(); } X10 = _buf["x10"]; } + { if(!_buf["x12"].IsObject) { throw new SerializationException(); } X12 = test.DemoType1.DeserializeDemoType1(_buf["x12"]); } + { if(!_buf["x13"].IsNumber) { throw new SerializationException(); } X13 = (test.DemoEnum)_buf["x13"].AsInt; } + { if(!_buf["x14"].IsObject) { throw new SerializationException(); } X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf["x14"]); } + { if(!_buf["s1"].IsString) { throw new SerializationException(); } S1 = _buf["s1"]; } + { if(!_buf["t1"].IsNumber) { throw new SerializationException(); } T1 = _buf["t1"]; } + { var __json0 = _buf["k1"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K1 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K1[__index0++] = __v0; } } + { var __json0 = _buf["k2"]; if(!__json0.IsArray) { throw new SerializationException(); } K2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K2.Add(__v0); } } + { var __json0 = _buf["k5"]; if(!__json0.IsArray) { throw new SerializationException(); } K5 = new System.Collections.Generic.HashSet(/*__json0.Count*/); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K5.Add(__v0); } } + { var __json0 = _buf["k8"]; if(!__json0.IsArray) { throw new SerializationException(); } K8 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } K8.Add(_k0, _v0); } } + { var __json0 = _buf["k9"]; if(!__json0.IsArray) { throw new SerializationException(); } K9 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.DemoE2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.DemoE2.DeserializeDemoE2(__e0); } K9.Add(__v0); } } + { var __json0 = _buf["k15"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { test.DemoDynamic __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); } K15[__index0++] = __v0; } } + } + + public static DemoType2 DeserializeDemoType2(JSONNode _buf) + { + return new test.DemoType2(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly byte X2; + public readonly short X3; + public readonly long X5; + public readonly float X6; + public readonly double X7; + public readonly short X80; + public readonly int X8; + public readonly long X9; + public readonly string X10; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly string S1; + public readonly long T1; + public readonly int[] K1; + public readonly System.Collections.Generic.List K2; + public readonly System.Collections.Generic.HashSet K5; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -367048295; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "x7:" + X7 + "," + + "x80:" + X80 + "," + + "x8:" + X8 + "," + + "x9:" + X9 + "," + + "x10:" + X10 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "s1:" + S1 + "," + + "t1:" + T1 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k2:" + Luban.StringUtil.CollectionToString(K2) + "," + + "k5:" + Luban.StringUtil.CollectionToString(K5) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType2.cs.meta new file mode 100644 index 00000000..99a98f01 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DemoType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e7ce70d883468914eaea03e8d777eb68 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DetectEncoding.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DetectEncoding.cs new file mode 100644 index 00000000..0801173f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DetectEncoding.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.test +{ +public sealed partial class DetectEncoding : Luban.BeanBase +{ + public DetectEncoding(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + } + + public static DetectEncoding DeserializeDetectEncoding(JSONNode _buf) + { + return new test.DetectEncoding(_buf); + } + + public readonly int Id; + public readonly string Name; + + public const int __ID__ = -1154609646; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DetectEncoding.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DetectEncoding.cs.meta new file mode 100644 index 00000000..f41f987c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.DetectEncoding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5b8b46f9a17f6bf4ebc653d8c13dc095 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum.cs new file mode 100644 index 00000000..db34ab8d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum.cs @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum + { + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum.cs.meta new file mode 100644 index 00000000..54179ef3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3a50000742d84664e8837dd0b2806dbc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum2.cs new file mode 100644 index 00000000..2b27e566 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum2.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestEmptyEnum2 + { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum2.cs.meta new file mode 100644 index 00000000..c393e099 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestEmptyEnum2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6d516fb4368ceb8438234ffa8bc3c013 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestQuality.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestQuality.cs new file mode 100644 index 00000000..f82389f7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestQuality.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.test +{ + public enum ETestQuality + { + /// + /// 最高品质 + /// + A = 1, + /// + /// 黑色的 + /// + B = 2, + /// + /// 蓝色的 + /// + C = 3, + /// + /// 最差品质 + /// + D = 4, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestQuality.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestQuality.cs.meta new file mode 100644 index 00000000..dfef5f1c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestQuality.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 82364e6dce4dda046b87bca9e6f19c95 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestUeType.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestUeType.cs new file mode 100644 index 00000000..c69207fe --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestUeType.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// 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 +{ + public enum ETestUeType + { + /// + /// 白 + /// + WHITE = 0, + BLACK = 1, + } + +} + diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestUeType.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestUeType.cs.meta new file mode 100644 index 00000000..b8812d36 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ETestUeType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7e316aa8e22afe34c815119183794ed0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Equipment.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Equipment.cs new file mode 100644 index 00000000..8eb36df0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Equipment.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 Equipment : test.ItemBase +{ + public Equipment(JSONNode _buf) : base(_buf) + { + { if(!_buf["attr"].IsNumber) { throw new SerializationException(); } Attr = (test.DemoEnum)_buf["attr"].AsInt; } + { if(!_buf["value"].IsNumber) { throw new SerializationException(); } Value = _buf["value"]; } + } + + public static Equipment DeserializeEquipment(JSONNode _buf) + { + return new test.Equipment(_buf); + } + + public readonly test.DemoEnum Attr; + public readonly int Value; + + public const int __ID__ = -76837102; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "attr:" + Attr + "," + + "value:" + Value + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Equipment.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Equipment.cs.meta new file mode 100644 index 00000000..80dfd5ad --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Equipment.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 512e288d7f807d846ab4e94afbbfdc26 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJson.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJson.cs new file mode 100644 index 00000000..4872c780 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJson.cs @@ -0,0 +1,98 @@ + +//------------------------------------------------------------------------------ +// +// 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 ExcelFromJson : Luban.BeanBase +{ + public ExcelFromJson(JSONNode _buf) + { + { if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; } + { if(!_buf["x1"].IsBoolean) { throw new SerializationException(); } X1 = _buf["x1"]; } + { if(!_buf["x5"].IsNumber) { throw new SerializationException(); } X5 = _buf["x5"]; } + { if(!_buf["x6"].IsNumber) { throw new SerializationException(); } X6 = _buf["x6"]; } + { if(!_buf["s1"].IsString) { throw new SerializationException(); } S1 = _buf["s1"]; } + { if(!_buf["s2"].IsString) { throw new SerializationException(); } S2 = _buf["s2"]; } + { if(!_buf["t1"].IsNumber) { throw new SerializationException(); } T1 = _buf["t1"]; } + { if(!_buf["x12"].IsObject) { throw new SerializationException(); } X12 = test.DemoType1.DeserializeDemoType1(_buf["x12"]); } + { if(!_buf["x13"].IsNumber) { throw new SerializationException(); } X13 = (test.DemoEnum)_buf["x13"].AsInt; } + { if(!_buf["x14"].IsObject) { throw new SerializationException(); } X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf["x14"]); } + { var __json0 = _buf["k1"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K1 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K1[__index0++] = __v0; } } + { var __json0 = _buf["k8"]; if(!__json0.IsArray) { throw new SerializationException(); } K8 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } K8.Add(_k0, _v0); } } + { var __json0 = _buf["k9"]; if(!__json0.IsArray) { throw new SerializationException(); } K9 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.DemoE2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.DemoE2.DeserializeDemoE2(__e0); } K9.Add(__v0); } } + { var __json0 = _buf["k15"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K15 = new test.DemoDynamic[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { test.DemoDynamic __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.DemoDynamic.DeserializeDemoDynamic(__e0); } K15[__index0++] = __v0; } } + } + + public static ExcelFromJson DeserializeExcelFromJson(JSONNode _buf) + { + return new test.ExcelFromJson(_buf); + } + + public readonly int X4; + public readonly bool X1; + public readonly long X5; + public readonly float X6; + public readonly string S1; + public readonly string S2; + public readonly long T1; + public readonly test.DemoType1 X12; + public readonly test.DemoEnum X13; + public readonly test.DemoDynamic X14; + public readonly int[] K1; + public readonly System.Collections.Generic.Dictionary K8; + public readonly System.Collections.Generic.List K9; + public readonly test.DemoDynamic[] K15; + + public const int __ID__ = -1485706483; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + X12?.ResolveRef(tables); + + X14?.ResolveRef(tables); + + + + foreach (var _e in K15) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "x4:" + X4 + "," + + "x1:" + X1 + "," + + "x5:" + X5 + "," + + "x6:" + X6 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "t1:" + T1 + "," + + "x12:" + X12 + "," + + "x13:" + X13 + "," + + "x14:" + X14 + "," + + "k1:" + Luban.StringUtil.CollectionToString(K1) + "," + + "k8:" + Luban.StringUtil.CollectionToString(K8) + "," + + "k9:" + Luban.StringUtil.CollectionToString(K9) + "," + + "k15:" + Luban.StringUtil.CollectionToString(K15) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJson.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJson.cs.meta new file mode 100644 index 00000000..6a56777a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJson.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3c52942f3d1f12343952bfd769e254ef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..17e2c61b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 ExcelFromJsonMultiRow : Luban.BeanBase +{ + public ExcelFromJsonMultiRow(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { var __json0 = _buf["items"]; if(!__json0.IsArray) { throw new SerializationException(); } Items = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.TestRow __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.TestRow.DeserializeTestRow(__e0); } Items.Add(__v0); } } + } + + public static ExcelFromJsonMultiRow DeserializeExcelFromJsonMultiRow(JSONNode _buf) + { + return new test.ExcelFromJsonMultiRow(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 715335694; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta new file mode 100644 index 00000000..88c41242 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ExcelFromJsonMultiRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 96c95842beba4434487d0849096f026d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Foo.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Foo.cs new file mode 100644 index 00000000..55e685ce --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Foo.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 Foo : Luban.BeanBase +{ + public Foo(JSONNode _buf) + { + { if(!_buf["y1"].IsNumber) { throw new SerializationException(); } Y1 = _buf["y1"]; } + { if(!_buf["y2"].IsNumber) { throw new SerializationException(); } Y2 = _buf["y2"]; } + { if(!_buf["y3"].IsNumber) { throw new SerializationException(); } Y3 = _buf["y3"]; } + } + + public static Foo DeserializeFoo(JSONNode _buf) + { + return new test.Foo(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y3; + + public const int __ID__ = -1147950774; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Foo.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Foo.cs.meta new file mode 100644 index 00000000..6d2bebe7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Foo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 42fe51163bd7de54081482c4aeb8138a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H1.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H1.cs new file mode 100644 index 00000000..c09cd84b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H1.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.test +{ +public sealed partial class H1 : Luban.BeanBase +{ + public H1(JSONNode _buf) + { + { if(!_buf["y2"].IsObject) { throw new SerializationException(); } Y2 = test.H2.DeserializeH2(_buf["y2"]); } + { if(!_buf["y3"].IsNumber) { throw new SerializationException(); } Y3 = _buf["y3"]; } + } + + public static H1 DeserializeH1(JSONNode _buf) + { + return new test.H1(_buf); + } + + public readonly test.H2 Y2; + public readonly int Y3; + + public const int __ID__ = -1422503995; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Y2?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "y2:" + Y2 + "," + + "y3:" + Y3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H1.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H1.cs.meta new file mode 100644 index 00000000..c4e7052e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bfc57a413c5608243acd42a2c644356f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H2.cs new file mode 100644 index 00000000..e2a68ccd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H2.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.test +{ +public sealed partial class H2 : Luban.BeanBase +{ + public H2(JSONNode _buf) + { + { if(!_buf["z2"].IsNumber) { throw new SerializationException(); } Z2 = _buf["z2"]; } + { if(!_buf["z3"].IsNumber) { throw new SerializationException(); } Z3 = _buf["z3"]; } + } + + public static H2 DeserializeH2(JSONNode _buf) + { + return new test.H2(_buf); + } + + public readonly int Z2; + public readonly int Z3; + + public const int __ID__ = -1422503994; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "z2:" + Z2 + "," + + "z3:" + Z3 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H2.cs.meta new file mode 100644 index 00000000..a8114b67 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.H2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6091e656f2c16f445b125d6a4441ae60 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.InnerGroup.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.InnerGroup.cs new file mode 100644 index 00000000..6a621286 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.InnerGroup.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 InnerGroup : Luban.BeanBase +{ + public InnerGroup(JSONNode _buf) + { + { if(!_buf["y1"].IsNumber) { throw new SerializationException(); } Y1 = _buf["y1"]; } + { if(!_buf["y2"].IsNumber) { throw new SerializationException(); } Y2 = _buf["y2"]; } + { if(!_buf["y4"].IsNumber) { throw new SerializationException(); } Y4 = _buf["y4"]; } + } + + public static InnerGroup DeserializeInnerGroup(JSONNode _buf) + { + return new test.InnerGroup(_buf); + } + + public readonly int Y1; + public readonly int Y2; + public readonly int Y4; + + public const int __ID__ = -587873083; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "y1:" + Y1 + "," + + "y2:" + Y2 + "," + + "y4:" + Y4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.InnerGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.InnerGroup.cs.meta new file mode 100644 index 00000000..54dffb14 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.InnerGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6eae277a56911e842ae2f929bc4d6663 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Item.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Item.cs new file mode 100644 index 00000000..ec8b905c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Item.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 Item : test.ItemBase +{ + public Item(JSONNode _buf) : base(_buf) + { + { if(!_buf["num"].IsNumber) { throw new SerializationException(); } Num = _buf["num"]; } + { if(!_buf["price"].IsNumber) { throw new SerializationException(); } Price = _buf["price"]; } + } + + public static Item DeserializeItem(JSONNode _buf) + { + return new test.Item(_buf); + } + + public readonly int Num; + public readonly int Price; + + public const int __ID__ = -1226641649; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "num:" + Num + "," + + "price:" + Price + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Item.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Item.cs.meta new file mode 100644 index 00000000..d005a5b6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 97e2f8ab0b4891544a1440b517cd4240 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ItemBase.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ItemBase.cs new file mode 100644 index 00000000..ca260905 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ItemBase.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 ItemBase : Luban.BeanBase +{ + public ItemBase(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + } + + public static ItemBase DeserializeItemBase(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "Item": return new test.Item(_buf); + case "Equipment": return new test.Equipment(_buf); + case "Decorator": return new test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public readonly int Id; + public readonly string Name; + public readonly string Desc; + + + public virtual void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ItemBase.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ItemBase.cs.meta new file mode 100644 index 00000000..ad50e755 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.ItemBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec3b96b3fc6141243861e8af76e01400 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiIndexList.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiIndexList.cs new file mode 100644 index 00000000..9fcc3d63 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 MultiIndexList : Luban.BeanBase +{ + public MultiIndexList(JSONNode _buf) + { + { if(!_buf["id1"].IsNumber) { throw new SerializationException(); } Id1 = _buf["id1"]; } + { if(!_buf["id2"].IsNumber) { throw new SerializationException(); } Id2 = _buf["id2"]; } + { if(!_buf["id3"].IsString) { throw new SerializationException(); } Id3 = _buf["id3"]; } + { if(!_buf["num"].IsNumber) { throw new SerializationException(); } Num = _buf["num"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + } + + public static MultiIndexList DeserializeMultiIndexList(JSONNode _buf) + { + return new test.MultiIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 2016237651; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiIndexList.cs.meta new file mode 100644 index 00000000..ea16d165 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4e6c3a0e1909d5445926d385cb2d63da +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowRecord.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowRecord.cs new file mode 100644 index 00000000..c65ad018 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowRecord.cs @@ -0,0 +1,78 @@ + +//------------------------------------------------------------------------------ +// +// 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 MultiRowRecord : Luban.BeanBase +{ + public MultiRowRecord(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { var __json0 = _buf["one_rows"]; if(!__json0.IsArray) { throw new SerializationException(); } OneRows = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.MultiRowType1 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); } OneRows.Add(__v0); } } + { var __json0 = _buf["multi_rows1"]; if(!__json0.IsArray) { throw new SerializationException(); } MultiRows1 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.MultiRowType1 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); } MultiRows1.Add(__v0); } } + { var __json0 = _buf["multi_rows2"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; MultiRows2 = new test.MultiRowType1[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { test.MultiRowType1 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); } MultiRows2[__index0++] = __v0; } } + { var __json0 = _buf["multi_rows4"]; if(!__json0.IsArray) { throw new SerializationException(); } MultiRows4 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } test.MultiRowType2 _v0; { if(!__e0[1].IsObject) { throw new SerializationException(); } _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); } MultiRows4.Add(_k0, _v0); } } + { var __json0 = _buf["multi_rows5"]; if(!__json0.IsArray) { throw new SerializationException(); } MultiRows5 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.MultiRowType3 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.MultiRowType3.DeserializeMultiRowType3(__e0); } MultiRows5.Add(__v0); } } + { var __json0 = _buf["multi_rows6"]; if(!__json0.IsArray) { throw new SerializationException(); } MultiRows6 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } test.MultiRowType2 _v0; { if(!__e0[1].IsObject) { throw new SerializationException(); } _v0 = test.MultiRowType2.DeserializeMultiRowType2(__e0[1]); } MultiRows6.Add(_k0, _v0); } } + { var __json0 = _buf["multi_rows7"]; if(!__json0.IsArray) { throw new SerializationException(); } MultiRows7 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } MultiRows7.Add(_k0, _v0); } } + } + + public static MultiRowRecord DeserializeMultiRowRecord(JSONNode _buf) + { + return new test.MultiRowRecord(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly System.Collections.Generic.List OneRows; + public readonly System.Collections.Generic.List MultiRows1; + public readonly test.MultiRowType1[] MultiRows2; + public readonly System.Collections.Generic.Dictionary MultiRows4; + public readonly System.Collections.Generic.List MultiRows5; + public readonly System.Collections.Generic.Dictionary MultiRows6; + public readonly System.Collections.Generic.Dictionary MultiRows7; + + public const int __ID__ = -501249394; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + foreach (var _e in OneRows) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows1) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows2) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows4.Values) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows5) { _e?.ResolveRef(tables); } + foreach (var _e in MultiRows6.Values) { _e?.ResolveRef(tables); } + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "oneRows:" + Luban.StringUtil.CollectionToString(OneRows) + "," + + "multiRows1:" + Luban.StringUtil.CollectionToString(MultiRows1) + "," + + "multiRows2:" + Luban.StringUtil.CollectionToString(MultiRows2) + "," + + "multiRows4:" + Luban.StringUtil.CollectionToString(MultiRows4) + "," + + "multiRows5:" + Luban.StringUtil.CollectionToString(MultiRows5) + "," + + "multiRows6:" + Luban.StringUtil.CollectionToString(MultiRows6) + "," + + "multiRows7:" + Luban.StringUtil.CollectionToString(MultiRows7) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowRecord.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowRecord.cs.meta new file mode 100644 index 00000000..57e89c27 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowRecord.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9325466cf5672b64ba37f4e6c6eb960e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowTitle.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowTitle.cs new file mode 100644 index 00000000..4f8ab1f6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowTitle.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 +{ +public sealed partial class MultiRowTitle : Luban.BeanBase +{ + public MultiRowTitle(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; } + { if(!_buf["x1"].IsObject) { throw new SerializationException(); } X1 = test.H1.DeserializeH1(_buf["x1"]); } + { var _j = _buf["x2_0"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsObject) { throw new SerializationException(); } X20 = test.H2.DeserializeH2(_j); } } else { X20 = null; } } + { var __json0 = _buf["x2"]; if(!__json0.IsArray) { throw new SerializationException(); } X2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.H2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.H2.DeserializeH2(__e0); } X2.Add(__v0); } } + { var __json0 = _buf["x3"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; X3 = new test.H2[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { test.H2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.H2.DeserializeH2(__e0); } X3[__index0++] = __v0; } } + { var __json0 = _buf["x4"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; X4 = new test.H2[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { test.H2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.H2.DeserializeH2(__e0); } X4[__index0++] = __v0; } } + } + + public static MultiRowTitle DeserializeMultiRowTitle(JSONNode _buf) + { + return new test.MultiRowTitle(_buf); + } + + public readonly int Id; + public readonly string Name; + public readonly test.H1 X1; + public readonly test.H2 X20; + public readonly System.Collections.Generic.List X2; + public readonly test.H2[] X3; + public readonly test.H2[] X4; + + public const int __ID__ = 540002427; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + X1?.ResolveRef(tables); + X20?.ResolveRef(tables); + foreach (var _e in X2) { _e?.ResolveRef(tables); } + foreach (var _e in X3) { _e?.ResolveRef(tables); } + foreach (var _e in X4) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "name:" + Name + "," + + "x1:" + X1 + "," + + "x20:" + X20 + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowTitle.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowTitle.cs.meta new file mode 100644 index 00000000..529160d1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ebc4118b2c97a2949b600e6c0b9a2951 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType1.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType1.cs new file mode 100644 index 00000000..33a22fd6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType1.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.test +{ +public sealed partial class MultiRowType1 : Luban.BeanBase +{ + public MultiRowType1(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + } + + public static MultiRowType1 DeserializeMultiRowType1(JSONNode _buf) + { + return new test.MultiRowType1(_buf); + } + + public readonly int Id; + public readonly int X; + + public const int __ID__ = 540474970; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType1.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType1.cs.meta new file mode 100644 index 00000000..b9c86543 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 883ec1d5bdeafa247b231edd6703c8f2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType2.cs new file mode 100644 index 00000000..3a9941b4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 MultiRowType2 : Luban.BeanBase +{ + public MultiRowType2(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + } + + public static MultiRowType2 DeserializeMultiRowType2(JSONNode _buf) + { + return new test.MultiRowType2(_buf); + } + + public readonly int Id; + public readonly int X; + public readonly float Y; + + public const int __ID__ = 540474971; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType2.cs.meta new file mode 100644 index 00000000..29052c68 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92f99951fe110534793b52c87c910bde +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType3.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType3.cs new file mode 100644 index 00000000..b95cc836 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType3.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.test +{ +public sealed partial class MultiRowType3 : Luban.BeanBase +{ + public MultiRowType3(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { var __json0 = _buf["items"]; if(!__json0.IsArray) { throw new SerializationException(); } Items = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.MultiRowType1 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.MultiRowType1.DeserializeMultiRowType1(__e0); } Items.Add(__v0); } } + } + + public static MultiRowType3 DeserializeMultiRowType3(JSONNode _buf) + { + return new test.MultiRowType3(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Items; + + public const int __ID__ = 540474972; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Items) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "items:" + Luban.StringUtil.CollectionToString(Items) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType3.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType3.cs.meta new file mode 100644 index 00000000..b1659b2e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiRowType3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ffab41ab4220acf42814fcdc5f3a151f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiUnionIndexList.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiUnionIndexList.cs new file mode 100644 index 00000000..8ad10b95 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiUnionIndexList.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 MultiUnionIndexList : Luban.BeanBase +{ + public MultiUnionIndexList(JSONNode _buf) + { + { if(!_buf["id1"].IsNumber) { throw new SerializationException(); } Id1 = _buf["id1"]; } + { if(!_buf["id2"].IsNumber) { throw new SerializationException(); } Id2 = _buf["id2"]; } + { if(!_buf["id3"].IsString) { throw new SerializationException(); } Id3 = _buf["id3"]; } + { if(!_buf["num"].IsNumber) { throw new SerializationException(); } Num = _buf["num"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + } + + public static MultiUnionIndexList DeserializeMultiUnionIndexList(JSONNode _buf) + { + return new test.MultiUnionIndexList(_buf); + } + + public readonly int Id1; + public readonly long Id2; + public readonly string Id3; + public readonly int Num; + public readonly string Desc; + + public const int __ID__ = 1966847134; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id1:" + Id1 + "," + + "id2:" + Id2 + "," + + "id3:" + Id3 + "," + + "num:" + Num + "," + + "desc:" + Desc + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiUnionIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiUnionIndexList.cs.meta new file mode 100644 index 00000000..f6549957 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.MultiUnionIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0692cdb4c089a4f4ea5fbbf37ad5588d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.NotIndexList.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.NotIndexList.cs new file mode 100644 index 00000000..7b2ffcdf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.NotIndexList.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.test +{ +public sealed partial class NotIndexList : Luban.BeanBase +{ + public NotIndexList(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + } + + public static NotIndexList DeserializeNotIndexList(JSONNode _buf) + { + return new test.NotIndexList(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = -50446599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.NotIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.NotIndexList.cs.meta new file mode 100644 index 00000000..1dc393f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.NotIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1bf21e2a50b37a740b4dfa2b425e3ad9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Path.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Path.cs new file mode 100644 index 00000000..2f76d565 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Path.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.test +{ +public sealed partial class Path : Luban.BeanBase +{ + public Path(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["res"].IsString) { throw new SerializationException(); } Res = _buf["res"]; } + } + + public static Path DeserializePath(JSONNode _buf) + { + return new test.Path(_buf); + } + + public readonly int Id; + public readonly string Res; + + public const int __ID__ = -1226450911; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "res:" + Res + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Path.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Path.cs.meta new file mode 100644 index 00000000..9e8d9fca --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Path.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 05a431e9092346649b64194c5b75c77d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefBean.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefBean.cs new file mode 100644 index 00000000..13aff9f5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefBean.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 RefBean : test.RefDynamicBase +{ + public RefBean(JSONNode _buf) : base(_buf) + { + { var __json0 = _buf["arr"]; if(!__json0.IsArray) { throw new SerializationException(); } Arr = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Arr.Add(__v0); } } + } + + public static RefBean DeserializeRefBean(JSONNode _buf) + { + return new test.RefBean(_buf); + } + + public readonly System.Collections.Generic.List Arr; + + public const int __ID__ = 1963260263; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "arr:" + Luban.StringUtil.CollectionToString(Arr) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefBean.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefBean.cs.meta new file mode 100644 index 00000000..c05f0fae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefBean.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 77f46bd43e9128640a6f442fe9a0ee83 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefDynamicBase.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefDynamicBase.cs new file mode 100644 index 00000000..e1e16a41 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefDynamicBase.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.test +{ +public abstract partial class RefDynamicBase : Luban.BeanBase +{ + public RefDynamicBase(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + X_Ref = null; + } + + public static RefDynamicBase DeserializeRefDynamicBase(JSONNode _buf) + { + switch ((string)_buf["$type"]) + { + case "RefBean": return new test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public readonly int X; + public test.TestBeRef X_Ref; + + + public virtual void ResolveRef(Tables tables) + { + X_Ref = tables.TbTestBeRef.GetOrDefault(X); + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefDynamicBase.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefDynamicBase.cs.meta new file mode 100644 index 00000000..e5427314 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.RefDynamicBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5356d8dad2cc41849a10dddd28928008 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Shape.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Shape.cs new file mode 100644 index 00000000..f143ea90 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Shape.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 "test2.Rectangle": return new test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + public virtual void ResolveRef(Tables tables) + { + } + + public override string ToString() + { + return "{ " + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Shape.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Shape.cs.meta new file mode 100644 index 00000000..b71c582f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Shape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f3dad35f8780c5043996bd1e7d154812 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable1.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable1.cs new file mode 100644 index 00000000..a45b77f5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable1.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbCompositeJsonTable1 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable1(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.CompositeJsonTable1 _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.CompositeJsonTable1.DeserializeCompositeJsonTable1(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable1 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable1 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable1 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable1.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable1.cs.meta new file mode 100644 index 00000000..39df7669 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aa4dbaf0119c0174db5159889420eae9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable2.cs new file mode 100644 index 00000000..4fa20770 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbCompositeJsonTable2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbCompositeJsonTable2(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.CompositeJsonTable2 _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.CompositeJsonTable2.DeserializeCompositeJsonTable2(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.CompositeJsonTable2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.CompositeJsonTable2 Get(int key) => _dataMap[key]; + public test.CompositeJsonTable2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable2.cs.meta new file mode 100644 index 00000000..ceac5818 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b5f7fd4695dda584bbf7fd9211586113 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable3.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable3.cs new file mode 100644 index 00000000..44a2b4f5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable3.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbCompositeJsonTable3 +{ + + private readonly test.CompositeJsonTable3 _data; + + public TbCompositeJsonTable3(JSONNode _buf) + { + int n = _buf.Count; + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + { if(!_buf[0].IsObject) { throw new SerializationException(); } _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(_buf[0]); } + } + + + public int A => _data.A; + public int B => _data.B; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable3.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable3.cs.meta new file mode 100644 index 00000000..6537f968 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbCompositeJsonTable3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3f18888fa45bc8342bda35ea02cb716d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDataFromMisc.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDataFromMisc.cs new file mode 100644 index 00000000..05ba1aa5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDataFromMisc.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbDataFromMisc +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDataFromMisc(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.DemoType2 _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.DemoType2.DeserializeDemoType2(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDataFromMisc.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDataFromMisc.cs.meta new file mode 100644 index 00000000..b7ff8e11 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDataFromMisc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 59f13919c94229540a7dcd10271b2036 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDefineFromExcel2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDefineFromExcel2.cs new file mode 100644 index 00000000..64051328 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDefineFromExcel2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbDefineFromExcel2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDefineFromExcel2(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + DefineFromExcel2 _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = DefineFromExcel2.DeserializeDefineFromExcel2(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public DefineFromExcel2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public DefineFromExcel2 Get(int key) => _dataMap[key]; + public DefineFromExcel2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDefineFromExcel2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDefineFromExcel2.cs.meta new file mode 100644 index 00000000..2fb2f4f9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDefineFromExcel2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 91b89e370169e1442a6759d4642677d5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup.cs new file mode 100644 index 00000000..207744a8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbDemoGroup +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.DemoGroup _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.DemoGroup.DeserializeDemoGroup(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup.cs.meta new file mode 100644 index 00000000..0e933148 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4095fddf6f4e51f4ebdacf4073d711ab +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup_C.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup_C.cs new file mode 100644 index 00000000..6c086c8f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup_C.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbDemoGroup_C +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoGroup_C(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.DemoGroup _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.DemoGroup.DeserializeDemoGroup(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoGroup GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoGroup Get(int key) => _dataMap[key]; + public test.DemoGroup this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup_C.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup_C.cs.meta new file mode 100644 index 00000000..e3c6dca4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoGroup_C.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b0eac435ae833c045a7531cb66b58551 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoPrimitive.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoPrimitive.cs new file mode 100644 index 00000000..ff3c0e1f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoPrimitive.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbDemoPrimitive +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDemoPrimitive(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.DemoPrimitiveTypesTable _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.DemoPrimitiveTypesTable.DeserializeDemoPrimitiveTypesTable(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoPrimitiveTypesTable GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoPrimitiveTypesTable Get(int key) => _dataMap[key]; + public test.DemoPrimitiveTypesTable this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoPrimitive.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoPrimitive.cs.meta new file mode 100644 index 00000000..62ba18d9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDemoPrimitive.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90f6eb20a3465104da4f373c185e5e7e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDetectCsvEncoding.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDetectCsvEncoding.cs new file mode 100644 index 00000000..ead7ed9a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDetectCsvEncoding.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbDetectCsvEncoding +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbDetectCsvEncoding(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.DetectEncoding _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.DetectEncoding.DeserializeDetectEncoding(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DetectEncoding GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DetectEncoding Get(int key) => _dataMap[key]; + public test.DetectEncoding this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDetectCsvEncoding.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDetectCsvEncoding.cs.meta new file mode 100644 index 00000000..e8cd1451 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbDetectCsvEncoding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8d0b4ca62b241684b8853f88fb9cc8c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJson.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJson.cs new file mode 100644 index 00000000..fc455f4e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJson.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbExcelFromJson +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJson(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.ExcelFromJson _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.ExcelFromJson.DeserializeExcelFromJson(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJson GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJson Get(int key) => _dataMap[key]; + public test.ExcelFromJson this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJson.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJson.cs.meta new file mode 100644 index 00000000..8c4345c0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJson.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f67d0c90ee6d54342b0633638a77d828 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJsonMultiRow.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..5d437cb2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJsonMultiRow.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbExcelFromJsonMultiRow +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbExcelFromJsonMultiRow(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.ExcelFromJsonMultiRow _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.ExcelFromJsonMultiRow.DeserializeExcelFromJsonMultiRow(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.ExcelFromJsonMultiRow GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ExcelFromJsonMultiRow Get(int key) => _dataMap[key]; + public test.ExcelFromJsonMultiRow this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta new file mode 100644 index 00000000..897746c4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbExcelFromJsonMultiRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1ebe836d7e9b0b3439c919f44cafdfaf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbFullTypes.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbFullTypes.cs new file mode 100644 index 00000000..27793920 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbFullTypes.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbFullTypes +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbFullTypes(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.DemoType2 _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.DemoType2.DeserializeDemoType2(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.X4, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.DemoType2 GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.DemoType2 Get(int key) => _dataMap[key]; + public test.DemoType2 this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbFullTypes.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbFullTypes.cs.meta new file mode 100644 index 00000000..0a87d747 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbFullTypes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 038418c40d5846041b34cbf9bfa56a8d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbItem2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbItem2.cs new file mode 100644 index 00000000..d533dc40 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbItem2.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbItem2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbItem2(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.ItemBase _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.ItemBase.DeserializeItemBase(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public T GetOrDefaultAs(int key) where T : test.ItemBase => _dataMap.TryGetValue(key, out var v) ? (T)v : null; + public T GetAs(int key) where T : test.ItemBase => (T)_dataMap[key]; + public test.ItemBase GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.ItemBase Get(int key) => _dataMap[key]; + public test.ItemBase this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbItem2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbItem2.cs.meta new file mode 100644 index 00000000..1c3a5631 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbItem2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 79a18731305792c4a9d4090091fc29f2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiIndexList.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiIndexList.cs new file mode 100644 index 00000000..765f6e0c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiIndexList.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbMultiIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary _dataMap_id1; + private System.Collections.Generic.Dictionary _dataMap_id2; + private System.Collections.Generic.Dictionary _dataMap_id3; + + public TbMultiIndexList(JSONNode _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.MultiIndexList _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.MultiIndexList.DeserializeMultiIndexList(_ele); } + _dataList.Add(_v); + } + _dataMap_id1 = new System.Collections.Generic.Dictionary(); + _dataMap_id2 = new System.Collections.Generic.Dictionary(); + _dataMap_id3 = new System.Collections.Generic.Dictionary(); + foreach(var _v in _dataList) + { + _dataMap_id1.Add(_v.Id1, _v); + _dataMap_id2.Add(_v.Id2, _v); + _dataMap_id3.Add(_v.Id3, _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiIndexList GetById1(int key) => _dataMap_id1.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById2(long key) => _dataMap_id2.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + public test.MultiIndexList GetById3(string key) => _dataMap_id3.TryGetValue(key, out test.MultiIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiIndexList.cs.meta new file mode 100644 index 00000000..3a407db3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 01b5e21f689fb8f45bcd7d8df91b2dd6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowRecord.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowRecord.cs new file mode 100644 index 00000000..e433a7f8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowRecord.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbMultiRowRecord +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowRecord(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.MultiRowRecord _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.MultiRowRecord.DeserializeMultiRowRecord(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowRecord GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowRecord Get(int key) => _dataMap[key]; + public test.MultiRowRecord this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowRecord.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowRecord.cs.meta new file mode 100644 index 00000000..fb141e8f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowRecord.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cce3ef9efb9faa24f8c7ff13d12afde7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowTitle.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowTitle.cs new file mode 100644 index 00000000..9ca958c5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowTitle.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbMultiRowTitle +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbMultiRowTitle(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.MultiRowTitle _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.MultiRowTitle.DeserializeMultiRowTitle(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiRowTitle GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.MultiRowTitle Get(int key) => _dataMap[key]; + public test.MultiRowTitle this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowTitle.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowTitle.cs.meta new file mode 100644 index 00000000..6ad28ca7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiRowTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1f3d1467277b2af448d1832a942b5b6e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiUnionIndexList.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiUnionIndexList.cs new file mode 100644 index 00000000..a0f52785 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiUnionIndexList.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbMultiUnionIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + private System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList> _dataMapUnion; + + public TbMultiUnionIndexList(JSONNode _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.MultiUnionIndexList _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.MultiUnionIndexList.DeserializeMultiUnionIndexList(_ele); } + _dataList.Add(_v); + } + _dataMapUnion = new System.Collections.Generic.Dictionary<(int, long, string), test.MultiUnionIndexList>(); + foreach(var _v in _dataList) + { + _dataMapUnion.Add((_v.Id1, _v.Id2, _v.Id3), _v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + public test.MultiUnionIndexList Get(int id1, long id2, string id3) => _dataMapUnion.TryGetValue((id1, id2, id3), out test.MultiUnionIndexList __v) ? __v : null; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiUnionIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiUnionIndexList.cs.meta new file mode 100644 index 00000000..2977e47f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbMultiUnionIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1303135fb894e5f41aa33e0266c1203c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbNotIndexList.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbNotIndexList.cs new file mode 100644 index 00000000..6a33cc0e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbNotIndexList.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbNotIndexList +{ + private readonly System.Collections.Generic.List _dataList; + + + public TbNotIndexList(JSONNode _buf) + { + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.NotIndexList _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.NotIndexList.DeserializeNotIndexList(_ele); } + _dataList.Add(_v); + } + } + + public System.Collections.Generic.List DataList => _dataList; + + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbNotIndexList.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbNotIndexList.cs.meta new file mode 100644 index 00000000..44c0655a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbNotIndexList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 05007b4d1f4c74642a8216597043c91d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbPath.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbPath.cs new file mode 100644 index 00000000..209e7752 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbPath.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbPath +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbPath(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.Path _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.Path.DeserializePath(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.Path GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.Path Get(int key) => _dataMap[key]; + public test.Path this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbPath.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbPath.cs.meta new file mode 100644 index 00000000..77a6e6ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbPath.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e9e7b97abb1b2544bac106bf17b86974 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbSingleton.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbSingleton.cs new file mode 100644 index 00000000..74a166f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbSingleton.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbSingleton +{ + + private readonly test.DemoSingletonType _data; + + public TbSingleton(JSONNode _buf) + { + int n = _buf.Count; + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + { if(!_buf[0].IsObject) { throw new SerializationException(); } _data = test.DemoSingletonType.DeserializeDemoSingletonType(_buf[0]); } + } + + + public int Id => _data.Id; + public string Name => _data.Name; + public test.DemoDynamic Date => _data.Date; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbSingleton.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbSingleton.cs.meta new file mode 100644 index 00000000..7d238687 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbSingleton.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 13c8a4ec677a9d54dbcca84828080bb6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef.cs new file mode 100644 index 00000000..d152aca2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestBeRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestBeRef _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestBeRef.DeserializeTestBeRef(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef.cs.meta new file mode 100644 index 00000000..2334adc3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f8c031febbd98cf44ba3e5fbacc4c5b4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef2.cs new file mode 100644 index 00000000..99ef36e9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef2.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestBeRef2 +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestBeRef2(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestBeRef _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestBeRef.DeserializeTestBeRef(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestBeRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestBeRef Get(int key) => _dataMap[key]; + public test.TestBeRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef2.cs.meta new file mode 100644 index 00000000..78f08d72 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestBeRef2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec37d81f2a0c60e4db7d90049da07db5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestGlobal.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestGlobal.cs new file mode 100644 index 00000000..5b5b11e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestGlobal.cs @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestGlobal +{ + + private readonly test.TestGlobal _data; + + public TbTestGlobal(JSONNode _buf) + { + int n = _buf.Count; + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + { if(!_buf[0].IsObject) { throw new SerializationException(); } _data = test.TestGlobal.DeserializeTestGlobal(_buf[0]); } + } + + + public int UnlockEquip => _data.UnlockEquip; + public int UnlockHero => _data.UnlockHero; + + public void ResolveRef(Tables tables) + { + _data.ResolveRef(tables); + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestGlobal.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestGlobal.cs.meta new file mode 100644 index 00000000..afac17fb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc962a31acf5811408d2b33a748ef2d3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestIndex.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestIndex.cs new file mode 100644 index 00000000..1ffd2817 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestIndex.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestIndex +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestIndex(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestIndex _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestIndex.DeserializeTestIndex(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestIndex GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestIndex Get(int key) => _dataMap[key]; + public test.TestIndex this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestIndex.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestIndex.cs.meta new file mode 100644 index 00000000..1b5b6246 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestIndex.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea80a8143a6978741828ea59aa89c082 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMap.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMap.cs new file mode 100644 index 00000000..8acf6e31 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMap.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestMap +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMap(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestMap _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestMap.DeserializeTestMap(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMap GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMap Get(int key) => _dataMap[key]; + public test.TestMap this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMap.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMap.cs.meta new file mode 100644 index 00000000..39be8cdc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7bfced8316c47044ebdf3052b3e398e5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMapper.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMapper.cs new file mode 100644 index 00000000..bdd23f44 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMapper.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestMapper +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMapper(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestMapper _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestMapper.DeserializeTestMapper(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMapper GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMapper Get(int key) => _dataMap[key]; + public test.TestMapper this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMapper.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMapper.cs.meta new file mode 100644 index 00000000..b24c149d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMapper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d4dd7685ccc23da478f5712b5f429fdd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMultiColumn.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMultiColumn.cs new file mode 100644 index 00000000..f00d533a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMultiColumn.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestMultiColumn +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestMultiColumn(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestMultiColumn _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestMultiColumn.DeserializeTestMultiColumn(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestMultiColumn GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestMultiColumn Get(int key) => _dataMap[key]; + public test.TestMultiColumn this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMultiColumn.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMultiColumn.cs.meta new file mode 100644 index 00000000..0220e5a0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestMultiColumn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 12f02da858b01d64fba91bf3f72f69b7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestNull.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestNull.cs new file mode 100644 index 00000000..d9325e9e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestNull.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestNull +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestNull(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestNull _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestNull.DeserializeTestNull(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestNull GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestNull Get(int key) => _dataMap[key]; + public test.TestNull this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestNull.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestNull.cs.meta new file mode 100644 index 00000000..4a259939 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5dc09664b5b727448ae381781497c160 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestRef.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestRef.cs new file mode 100644 index 00000000..db9887ca --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestRef.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestRef +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestRef(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestRef _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestRef.DeserializeTestRef(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestRef GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestRef Get(int key) => _dataMap[key]; + public test.TestRef this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestRef.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestRef.cs.meta new file mode 100644 index 00000000..9b372258 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 802b4781178744d4aa4d585a858d619d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestScriptableObject.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestScriptableObject.cs new file mode 100644 index 00000000..8be4a196 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestScriptableObject.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestScriptableObject +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestScriptableObject(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestScriptableObject _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestScriptableObject.DeserializeTestScriptableObject(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestScriptableObject GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestScriptableObject Get(int key) => _dataMap[key]; + public test.TestScriptableObject this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestScriptableObject.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestScriptableObject.cs.meta new file mode 100644 index 00000000..53e9ae4e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cc1b232e38c72e74a8e43e594af2b021 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSet.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSet.cs new file mode 100644 index 00000000..65dee349 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSet.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestSet +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSet(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestSet _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestSet.DeserializeTestSet(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSet GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSet Get(int key) => _dataMap[key]; + public test.TestSet this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSet.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSet.cs.meta new file mode 100644 index 00000000..8d41c669 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: edaf10a3a514a904ea3a0ce761d586ca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSize.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSize.cs new file mode 100644 index 00000000..bd854f8d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSize.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestSize +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestSize(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestSize _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestSize.DeserializeTestSize(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestSize GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestSize Get(int key) => _dataMap[key]; + public test.TestSize this[int key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSize.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSize.cs.meta new file mode 100644 index 00000000..ecd55751 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestSize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3b59abd7845284745bb2771e306327fb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestString.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestString.cs new file mode 100644 index 00000000..a4663885 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestString.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 partial class TbTestString +{ + private readonly System.Collections.Generic.Dictionary _dataMap; + private readonly System.Collections.Generic.List _dataList; + + public TbTestString(JSONNode _buf) + { + _dataMap = new System.Collections.Generic.Dictionary(); + _dataList = new System.Collections.Generic.List(); + + foreach(JSONNode _ele in _buf.Children) + { + test.TestString _v; + { if(!_ele.IsObject) { throw new SerializationException(); } _v = test.TestString.DeserializeTestString(_ele); } + _dataList.Add(_v); + _dataMap.Add(_v.Id, _v); + } + } + + public System.Collections.Generic.Dictionary DataMap => _dataMap; + public System.Collections.Generic.List DataList => _dataList; + + public test.TestString GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null; + public test.TestString Get(string key) => _dataMap[key]; + public test.TestString this[string key] => _dataMap[key]; + + public void ResolveRef(Tables tables) + { + foreach(var _v in _dataList) + { + _v.ResolveRef(tables); + } + } + +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestString.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestString.cs.meta new file mode 100644 index 00000000..156ae580 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TbTestString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92b61db9389f2174a90ba6f61cd34898 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Test3.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Test3.cs new file mode 100644 index 00000000..43eabbdc --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Test3.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.test +{ +public sealed partial class Test3 : Luban.BeanBase +{ + public Test3(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + } + + public static Test3 DeserializeTest3(JSONNode _buf) + { + return new test.Test3(_buf); + } + + public readonly int X; + public readonly int Y; + + public const int __ID__ = 638540133; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Test3.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Test3.cs.meta new file mode 100644 index 00000000..cf9941e2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.Test3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f0b9b09c086dddc40bfd525de48dad0e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestBeRef.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestBeRef.cs new file mode 100644 index 00000000..07d2ee7a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestBeRef.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.test +{ +public sealed partial class TestBeRef : Luban.BeanBase +{ + public TestBeRef(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["count"].IsNumber) { throw new SerializationException(); } Count = _buf["count"]; } + } + + public static TestBeRef DeserializeTestBeRef(JSONNode _buf) + { + return new test.TestBeRef(_buf); + } + + public readonly int Id; + public readonly int Count; + + public const int __ID__ = 1934403938; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "count:" + Count + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestBeRef.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestBeRef.cs.meta new file mode 100644 index 00000000..ced7f19f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestBeRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 575c3b29e35ef4c4aa715cf40eb32b93 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestExcelBean1.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestExcelBean1.cs new file mode 100644 index 00000000..663a04c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestExcelBean1.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.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/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestExcelBean1.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestExcelBean1.cs.meta new file mode 100644 index 00000000..61ed55f4 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestExcelBean1.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f4f0b02762152440bfc91c885c45ada +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestGlobal.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestGlobal.cs new file mode 100644 index 00000000..389d0af8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestGlobal.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.test +{ +public sealed partial class TestGlobal : Luban.BeanBase +{ + public TestGlobal(JSONNode _buf) + { + { if(!_buf["unlock_equip"].IsNumber) { throw new SerializationException(); } UnlockEquip = _buf["unlock_equip"]; } + { if(!_buf["unlock_hero"].IsNumber) { throw new SerializationException(); } UnlockHero = _buf["unlock_hero"]; } + } + + public static TestGlobal DeserializeTestGlobal(JSONNode _buf) + { + return new test.TestGlobal(_buf); + } + + public readonly int UnlockEquip; + public readonly int UnlockHero; + + public const int __ID__ = -12548655; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + } + + public override string ToString() + { + return "{ " + + "unlockEquip:" + UnlockEquip + "," + + "unlockHero:" + UnlockHero + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestGlobal.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestGlobal.cs.meta new file mode 100644 index 00000000..8692b814 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestGlobal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9fc04a03a2dee0d4d95383c1a25b6ad8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestIndex.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestIndex.cs new file mode 100644 index 00000000..bcc4f895 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestIndex.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.test +{ +public sealed partial class TestIndex : Luban.BeanBase +{ + public TestIndex(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { var __json0 = _buf["eles"]; if(!__json0.IsArray) { throw new SerializationException(); } Eles = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.DemoType1 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.DemoType1.DeserializeDemoType1(__e0); } Eles.Add(__v0); } } + foreach(var _v in Eles) + { + Eles_Index.Add(_v.X1, _v); + } + } + + public static TestIndex DeserializeTestIndex(JSONNode _buf) + { + return new test.TestIndex(_buf); + } + + public readonly int Id; + public readonly System.Collections.Generic.List Eles; + public readonly System.Collections.Generic.Dictionary Eles_Index = new System.Collections.Generic.Dictionary(); + + public const int __ID__ = 1941154020; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + foreach (var _e in Eles) { _e?.ResolveRef(tables); } + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "eles:" + Luban.StringUtil.CollectionToString(Eles) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestIndex.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestIndex.cs.meta new file mode 100644 index 00000000..a9308b5e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestIndex.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 054e8d8d18abcc7499bb274f118fc222 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMap.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMap.cs new file mode 100644 index 00000000..da705e66 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMap.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 +{ +public sealed partial class TestMap : Luban.BeanBase +{ + public TestMap(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + Id_Ref = null; + { var __json0 = _buf["x1"]; if(!__json0.IsArray) { throw new SerializationException(); } X1 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } X1.Add(_k0, _v0); } } + { var __json0 = _buf["x2"]; if(!__json0.IsArray) { throw new SerializationException(); } X2 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { long _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } X2.Add(_k0, _v0); } } + { var __json0 = _buf["x3"]; if(!__json0.IsArray) { throw new SerializationException(); } X3 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string _k0; { if(!__e0[0].IsString) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } X3.Add(_k0, _v0); } } + { var __json0 = _buf["x4"]; if(!__json0.IsArray) { throw new SerializationException(); } X4 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.DemoEnum _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = (test.DemoEnum)__e0[0].AsInt; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } X4.Add(_k0, _v0); } } + } + + public static TestMap DeserializeTestMap(JSONNode _buf) + { + return new test.TestMap(_buf); + } + + public readonly int Id; + public test.TestIndex Id_Ref; + public readonly System.Collections.Generic.Dictionary X1; + public readonly System.Collections.Generic.Dictionary X2; + public readonly System.Collections.Generic.Dictionary X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = -543227410; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + Id_Ref = tables.TbTestIndex.GetOrDefault(Id); + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMap.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMap.cs.meta new file mode 100644 index 00000000..4b1819be --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ccef2cd145aae3f45a8e5c8f46f897eb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMapper.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMapper.cs new file mode 100644 index 00000000..7179be11 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMapper.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// 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 TestMapper : Luban.BeanBase +{ + public TestMapper(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["audio_type"].IsNumber) { throw new SerializationException(); } AudioType = (UnityEngine.AudioType)_buf["audio_type"].AsInt; } + { if(!_buf["v2"].IsObject) { throw new SerializationException(); } V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf["v2"])); } + } + + public static TestMapper DeserializeTestMapper(JSONNode _buf) + { + return new test.TestMapper(_buf); + } + + public readonly int Id; + public readonly UnityEngine.AudioType AudioType; + public readonly UnityEngine.Vector2 V2; + + public const int __ID__ = 149110895; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "audioType:" + AudioType + "," + + "v2:" + V2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMapper.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMapper.cs.meta new file mode 100644 index 00000000..fc25764e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMapper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fec26d40fe1bbe54fbd950200ef2260b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMultiColumn.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMultiColumn.cs new file mode 100644 index 00000000..b33293c8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMultiColumn.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// 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 TestMultiColumn : Luban.BeanBase +{ + public TestMultiColumn(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["a"].IsObject) { throw new SerializationException(); } A = test.Foo.DeserializeFoo(_buf["a"]); } + { if(!_buf["b"].IsObject) { throw new SerializationException(); } B = test.Foo.DeserializeFoo(_buf["b"]); } + { if(!_buf["c"].IsObject) { throw new SerializationException(); } C = test.Foo.DeserializeFoo(_buf["c"]); } + } + + public static TestMultiColumn DeserializeTestMultiColumn(JSONNode _buf) + { + return new test.TestMultiColumn(_buf); + } + + public readonly int Id; + public readonly test.Foo A; + public readonly test.Foo B; + public readonly test.Foo C; + + public const int __ID__ = -294473599; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + A?.ResolveRef(tables); + B?.ResolveRef(tables); + C?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "a:" + A + "," + + "b:" + B + "," + + "c:" + C + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMultiColumn.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMultiColumn.cs.meta new file mode 100644 index 00000000..6a0373e3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestMultiColumn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b2e380d501c65de44ab0f7c639b85b47 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestNull.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestNull.cs new file mode 100644 index 00000000..d9f40a7a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestNull.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 +{ +public sealed partial class TestNull : Luban.BeanBase +{ + public TestNull(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { var _j = _buf["x1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } X1 = _j; } } else { X1 = null; } } + { var _j = _buf["x2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } X2 = (test.DemoEnum?)_j.AsInt; } } else { X2 = null; } } + { var _j = _buf["x3"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsObject) { throw new SerializationException(); } X3 = test.DemoType1.DeserializeDemoType1(_j); } } else { X3 = null; } } + { var _j = _buf["x4"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsObject) { throw new SerializationException(); } X4 = test.DemoDynamic.DeserializeDemoDynamic(_j); } } else { X4 = null; } } + { var _j = _buf["s1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } S1 = _j; } } else { S1 = null; } } + { var _j = _buf["s2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } S2 = _j; } } else { S2 = null; } } + } + + public static TestNull DeserializeTestNull(JSONNode _buf) + { + return new test.TestNull(_buf); + } + + public readonly int Id; + public readonly int? X1; + public readonly test.DemoEnum? X2; + public readonly test.DemoType1 X3; + public readonly test.DemoDynamic X4; + public readonly string S1; + public readonly string S2; + + public const int __ID__ = 339868469; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + X3?.ResolveRef(tables); + X4?.ResolveRef(tables); + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestNull.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestNull.cs.meta new file mode 100644 index 00000000..7cc9f695 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 073219249ef8e4847841fcb48af8d6a7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRef.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRef.cs new file mode 100644 index 00000000..6fefa3b1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRef.cs @@ -0,0 +1,132 @@ + +//------------------------------------------------------------------------------ +// +// 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 TestRef : Luban.BeanBase +{ + public TestRef(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; } + X1_Ref = null; + { if(!_buf["x1_2"].IsNumber) { throw new SerializationException(); } X12 = _buf["x1_2"]; } + X12_Ref = null; + { if(!_buf["x2"].IsNumber) { 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"]; } + X4_Ref = null; + { var __json0 = _buf["a1"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; A1 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } A1[__index0++] = __v0; } } + { var __json0 = _buf["a2"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; A2 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } A2[__index0++] = __v0; } } + { var __json0 = _buf["b1"]; if(!__json0.IsArray) { throw new SerializationException(); } B1 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } B1.Add(__v0); } } + { var __json0 = _buf["b2"]; if(!__json0.IsArray) { throw new SerializationException(); } B2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } B2.Add(__v0); } } + { var __json0 = _buf["c1"]; if(!__json0.IsArray) { throw new SerializationException(); } C1 = new System.Collections.Generic.HashSet(/*__json0.Count*/); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } C1.Add(__v0); } } + { var __json0 = _buf["c2"]; if(!__json0.IsArray) { throw new SerializationException(); } C2 = new System.Collections.Generic.HashSet(/*__json0.Count*/); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } C2.Add(__v0); } } + { var __json0 = _buf["d1"]; if(!__json0.IsArray) { throw new SerializationException(); } D1 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } D1.Add(_k0, _v0); } } + { var __json0 = _buf["d2"]; if(!__json0.IsArray) { throw new SerializationException(); } D2 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } D2.Add(_k0, _v0); } } + { if(!_buf["e1"].IsNumber) { throw new SerializationException(); } E1 = _buf["e1"]; } + { if(!_buf["e2"].IsNumber) { throw new SerializationException(); } E2 = _buf["e2"]; } + { if(!_buf["e3"].IsString) { throw new SerializationException(); } E3 = _buf["e3"]; } + { if(!_buf["f1"].IsNumber) { throw new SerializationException(); } F1 = _buf["f1"]; } + { if(!_buf["f2"].IsNumber) { throw new SerializationException(); } F2 = _buf["f2"]; } + { if(!_buf["f3"].IsString) { throw new SerializationException(); } F3 = _buf["f3"]; } + { if(!_buf["s1"].IsObject) { throw new SerializationException(); } S1 = test.RefDynamicBase.DeserializeRefDynamicBase(_buf["s1"]); } + } + + public static TestRef DeserializeTestRef(JSONNode _buf) + { + return new test.TestRef(_buf); + } + + public readonly int Id; + public readonly int X1; + public test.TestBeRef X1_Ref; + public readonly int X12; + public test.TestBeRef X12_Ref; + public readonly int X2; + public readonly int X3; + public readonly int X4; + public tag.TestTag X4_Ref; + public readonly int[] A1; + public readonly int[] A2; + public readonly System.Collections.Generic.List B1; + public readonly System.Collections.Generic.List B2; + public readonly System.Collections.Generic.HashSet C1; + public readonly System.Collections.Generic.HashSet C2; + public readonly System.Collections.Generic.Dictionary D1; + public readonly System.Collections.Generic.Dictionary D2; + public readonly int E1; + public readonly long E2; + public readonly string E3; + public readonly int F1; + public readonly long F2; + public readonly string F3; + public readonly test.RefDynamicBase S1; + + public const int __ID__ = -543222491; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + X1_Ref = tables.TbTestBeRef.GetOrDefault(X1); + X12_Ref = tables.TbTestBeRef.GetOrDefault(X12); + + + X4_Ref = tables.TbTestTag.GetOrDefault(X4); + + + + + + + + + + + + + + + S1?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + X1 + "," + + "x12:" + X12 + "," + + "x2:" + X2 + "," + + "x3:" + X3 + "," + + "x4:" + X4 + "," + + "a1:" + Luban.StringUtil.CollectionToString(A1) + "," + + "a2:" + Luban.StringUtil.CollectionToString(A2) + "," + + "b1:" + Luban.StringUtil.CollectionToString(B1) + "," + + "b2:" + Luban.StringUtil.CollectionToString(B2) + "," + + "c1:" + Luban.StringUtil.CollectionToString(C1) + "," + + "c2:" + Luban.StringUtil.CollectionToString(C2) + "," + + "d1:" + Luban.StringUtil.CollectionToString(D1) + "," + + "d2:" + Luban.StringUtil.CollectionToString(D2) + "," + + "e1:" + E1 + "," + + "e2:" + E2 + "," + + "e3:" + E3 + "," + + "f1:" + F1 + "," + + "f2:" + F2 + "," + + "f3:" + F3 + "," + + "s1:" + S1 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRef.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRef.cs.meta new file mode 100644 index 00000000..7d18d0b3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 44e5fca1e2886a543ab969e54aa9bf15 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRow.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRow.cs new file mode 100644 index 00000000..8882278a --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRow.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 TestRow : Luban.BeanBase +{ + public TestRow(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsBoolean) { throw new SerializationException(); } Y = _buf["y"]; } + { if(!_buf["z"].IsString) { throw new SerializationException(); } Z = _buf["z"]; } + { if(!_buf["a"].IsObject) { throw new SerializationException(); } A = test.Test3.DeserializeTest3(_buf["a"]); } + { var __json0 = _buf["b"]; if(!__json0.IsArray) { throw new SerializationException(); } B = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } B.Add(__v0); } } + } + + public static TestRow DeserializeTestRow(JSONNode _buf) + { + return new test.TestRow(_buf); + } + + public readonly int X; + public readonly bool Y; + public readonly string Z; + public readonly test.Test3 A; + public readonly System.Collections.Generic.List B; + + public const int __ID__ = -543222164; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + A?.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x:" + X + "," + + "y:" + Y + "," + + "z:" + Z + "," + + "a:" + A + "," + + "b:" + Luban.StringUtil.CollectionToString(B) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRow.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRow.cs.meta new file mode 100644 index 00000000..17f23996 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestRow.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c179b226e53efa94ead9b246a80409a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestScriptableObject.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestScriptableObject.cs new file mode 100644 index 00000000..0a776797 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestScriptableObject.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 +{ +public sealed partial class TestScriptableObject : Luban.BeanBase +{ + public TestScriptableObject(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; } + { if(!_buf["rate"].IsNumber) { throw new SerializationException(); } Rate = _buf["rate"]; } + { if(!_buf["num"].IsNumber) { throw new SerializationException(); } Num = _buf["num"]; } + { if(!_buf["v2"].IsObject) { throw new SerializationException(); } V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf["v2"])); } + { if(!_buf["v3"].IsObject) { throw new SerializationException(); } V3 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf["v3"])); } + { if(!_buf["v4"].IsObject) { throw new SerializationException(); } V4 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf["v4"])); } + } + + public static TestScriptableObject DeserializeTestScriptableObject(JSONNode _buf) + { + return new test.TestScriptableObject(_buf); + } + + public readonly int Id; + public readonly string Desc; + public readonly float Rate; + public readonly int Num; + public readonly UnityEngine.Vector2 V2; + public readonly UnityEngine.Vector3 V3; + public readonly UnityEngine.Vector4 V4; + + public const int __ID__ = -1896814350; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "desc:" + Desc + "," + + "rate:" + Rate + "," + + "num:" + Num + "," + + "v2:" + V2 + "," + + "v3:" + V3 + "," + + "v4:" + V4 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestScriptableObject.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestScriptableObject.cs.meta new file mode 100644 index 00000000..4e7435f3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestScriptableObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 05132bc8a31a8f84eae0b3acc3b8cb34 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSet.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSet.cs new file mode 100644 index 00000000..6963b95f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSet.cs @@ -0,0 +1,66 @@ + +//------------------------------------------------------------------------------ +// +// 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 TestSet : Luban.BeanBase +{ + public TestSet(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["x0"].IsString) { throw new SerializationException(); } X0 = _buf["x0"]; } + { var __json0 = _buf["x1"]; if(!__json0.IsArray) { throw new SerializationException(); } X1 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } X1.Add(__v0); } } + { var __json0 = _buf["x2"]; if(!__json0.IsArray) { throw new SerializationException(); } X2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { long __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } X2.Add(__v0); } } + { var __json0 = _buf["x3"]; if(!__json0.IsArray) { throw new SerializationException(); } X3 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } X3.Add(__v0); } } + { var __json0 = _buf["x4"]; if(!__json0.IsArray) { throw new SerializationException(); } X4 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.DemoEnum __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = (test.DemoEnum)__e0.AsInt; } X4.Add(__v0); } } + } + + public static TestSet DeserializeTestSet(JSONNode _buf) + { + return new test.TestSet(_buf); + } + + public readonly int Id; + public readonly string X0; + public readonly System.Collections.Generic.List X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.List X3; + public readonly System.Collections.Generic.List X4; + + public const int __ID__ = -543221516; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x0:" + X0 + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSet.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSet.cs.meta new file mode 100644 index 00000000..454e6a89 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 594ac8034e8ed10469cfafbafd2a1c50 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSize.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSize.cs new file mode 100644 index 00000000..9057e693 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSize.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 TestSize : Luban.BeanBase +{ + public TestSize(JSONNode _buf) + { + { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; } + { var __json0 = _buf["x1"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; X1 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } X1[__index0++] = __v0; } } + { var __json0 = _buf["x2"]; if(!__json0.IsArray) { throw new SerializationException(); } X2 = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } X2.Add(__v0); } } + { var __json0 = _buf["x3"]; if(!__json0.IsArray) { throw new SerializationException(); } X3 = new System.Collections.Generic.HashSet(/*__json0.Count*/); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } X3.Add(__v0); } } + { var __json0 = _buf["x4"]; if(!__json0.IsArray) { throw new SerializationException(); } X4 = new System.Collections.Generic.Dictionary(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } X4.Add(_k0, _v0); } } + } + + public static TestSize DeserializeTestSize(JSONNode _buf) + { + return new test.TestSize(_buf); + } + + public readonly int Id; + public readonly int[] X1; + public readonly System.Collections.Generic.List X2; + public readonly System.Collections.Generic.HashSet X3; + public readonly System.Collections.Generic.Dictionary X4; + + public const int __ID__ = 340006319; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + + + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "x1:" + Luban.StringUtil.CollectionToString(X1) + "," + + "x2:" + Luban.StringUtil.CollectionToString(X2) + "," + + "x3:" + Luban.StringUtil.CollectionToString(X3) + "," + + "x4:" + Luban.StringUtil.CollectionToString(X4) + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSize.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSize.cs.meta new file mode 100644 index 00000000..7e35f96e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestSize.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6ca0811c5a5086246945e62affbfff59 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestString.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestString.cs new file mode 100644 index 00000000..3aa82ba2 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestString.cs @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// 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 TestString : Luban.BeanBase +{ + public TestString(JSONNode _buf) + { + { if(!_buf["id"].IsString) { throw new SerializationException(); } Id = _buf["id"]; } + { if(!_buf["s1"].IsString) { throw new SerializationException(); } S1 = _buf["s1"]; } + { if(!_buf["s2"].IsString) { throw new SerializationException(); } S2 = _buf["s2"]; } + { if(!_buf["cs1"].IsObject) { throw new SerializationException(); } Cs1 = test.CompactString.DeserializeCompactString(_buf["cs1"]); } + { if(!_buf["cs2"].IsObject) { throw new SerializationException(); } Cs2 = test.CompactString.DeserializeCompactString(_buf["cs2"]); } + } + + public static TestString DeserializeTestString(JSONNode _buf) + { + return new test.TestString(_buf); + } + + public readonly string Id; + public readonly string S1; + public readonly string S2; + public readonly test.CompactString Cs1; + public readonly test.CompactString Cs2; + + public const int __ID__ = 338485823; + public override int GetTypeId() => __ID__; + + public void ResolveRef(Tables tables) + { + + + + Cs1?.ResolveRef(tables); + Cs2?.ResolveRef(tables); + } + + public override string ToString() + { + return "{ " + + "id:" + Id + "," + + "s1:" + S1 + "," + + "s2:" + S2 + "," + + "cs1:" + Cs1 + "," + + "cs2:" + Cs2 + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestString.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestString.cs.meta new file mode 100644 index 00000000..7d6c91ab --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.TestString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c55b4328d95f68440a234d10f4a36564 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.login.RoleInfo.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.login.RoleInfo.cs new file mode 100644 index 00000000..5b640750 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.login.RoleInfo.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// 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.login +{ +public sealed partial class RoleInfo : test.DemoD3 +{ + public RoleInfo(JSONNode _buf) : base(_buf) + { + { if(!_buf["role_id"].IsNumber) { throw new SerializationException(); } RoleId = _buf["role_id"]; } + } + + public static RoleInfo DeserializeRoleInfo(JSONNode _buf) + { + return new test.login.RoleInfo(_buf); + } + + public readonly long RoleId; + + public const int __ID__ = -989153243; + public override int GetTypeId() => __ID__; + + public override void ResolveRef(Tables tables) + { + base.ResolveRef(tables); + + } + + public override string ToString() + { + return "{ " + + "x1:" + X1 + "," + + "x3:" + X3 + "," + + "roleId:" + RoleId + "," + + "}"; + } +} + +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.login.RoleInfo.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.login.RoleInfo.cs.meta new file mode 100644 index 00000000..23dc44c0 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.login.RoleInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: af4bbe02c65df0f4da311c468f225326 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.meta new file mode 100644 index 00000000..3e944909 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a2e15c1b80c349e4f8fadf4a2e779de2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.Rectangle.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.Rectangle.cs new file mode 100644 index 00000000..bff552e1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.Rectangle.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// 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.test2 +{ +/// +/// 矩形 +/// +public sealed partial class Rectangle : test.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 test2.Rectangle(_buf); + } + + /// + /// 宽度 + /// + public readonly float Width; + /// + /// 高度 + /// + public readonly float Height; + + public const int __ID__ = 694982337; + 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/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.Rectangle.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.Rectangle.cs.meta new file mode 100644 index 00000000..ad9363fd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.Rectangle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 45a75c756845dd94392b2481045504e8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.meta new file mode 100644 index 00000000..dccb7849 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/test2.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 63ef1dd5ce9cf4848ad0a4ea4a943a4b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec2.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec2.cs new file mode 100644 index 00000000..59a7cd26 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec2.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// 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 vec2 +{ + public vec2(JSONNode _buf) + { + { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; } + { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; } + } + + public static vec2 Deserializevec2(JSONNode _buf) + { + return new vec2(_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/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec2.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec2.cs.meta new file mode 100644 index 00000000..88cf9e19 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 32b768f7bc807f2499dceff952193161 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec3.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec3.cs new file mode 100644 index 00000000..4e7ec5bb --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec3.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// 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 vec3 +{ + public vec3(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 vec3 Deserializevec3(JSONNode _buf) + { + return new vec3(_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/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec3.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec3.cs.meta new file mode 100644 index 00000000..053c26b3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ca9fa1eb57a28e143bd252428edd5189 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec4.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec4.cs new file mode 100644 index 00000000..768f61bf --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec4.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// 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 vec4 +{ + public vec4(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 vec4 Deserializevec4(JSONNode _buf) + { + return new vec4(_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/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec4.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec4.cs.meta new file mode 100644 index 00000000..0d21afb6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Gen/vec4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5353f1b5148c2d842b11b8c712baca52 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon.meta new file mode 100644 index 00000000..de8d9556 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 16580db1bb2e6ae46986bff127ecb7a4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/10000.png b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/10000.png new file mode 100644 index 00000000..63c0a388 Binary files /dev/null and b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/10000.png differ diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/10000.png.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/10000.png.meta new file mode 100644 index 00000000..5038b5bd --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/10000.png.meta @@ -0,0 +1,194 @@ +fileFormatVersion: 2 +guid: fc6efa5907856e0468a4fba45599b877 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Windows Store Apps + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: tvOS + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Lumin + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/20000.png b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/20000.png new file mode 100644 index 00000000..7027946a Binary files /dev/null and b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/20000.png differ diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/20000.png.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/20000.png.meta new file mode 100644 index 00000000..e60c865b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/20000.png.meta @@ -0,0 +1,194 @@ +fileFormatVersion: 2 +guid: d6b837b2a0e996545a9483f3c6d0420b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Windows Store Apps + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: tvOS + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Lumin + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/GoodsIcon.spriteatlas b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/GoodsIcon.spriteatlas new file mode 100644 index 00000000..aac528b5 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/GoodsIcon.spriteatlas @@ -0,0 +1,86 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!687078895 &4343727234628468602 +SpriteAtlas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: GoodsIcon + serializedVersion: 2 + m_EditorData: + serializedVersion: 2 + textureSettings: + serializedVersion: 2 + anisoLevel: 0 + compressionQuality: 0 + maxTextureSize: 0 + textureCompression: 0 + filterMode: 1 + generateMipMaps: 0 + readable: 0 + crunchedCompression: 0 + sRGB: 1 + platformSettings: + - serializedVersion: 3 + m_BuildTarget: Standalone + m_MaxTextureSize: 2048 + m_ResizeAlgorithm: 0 + m_TextureFormat: 4 + m_TextureCompression: 1 + m_CompressionQuality: 50 + m_CrunchedCompression: 1 + m_AllowsAlphaSplitting: 0 + m_Overridden: 1 + m_AndroidETC2FallbackOverride: 0 + m_ForceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + m_BuildTarget: Android + m_MaxTextureSize: 2048 + m_ResizeAlgorithm: 0 + m_TextureFormat: 48 + m_TextureCompression: 1 + m_CompressionQuality: 50 + m_CrunchedCompression: 1 + m_AllowsAlphaSplitting: 0 + m_Overridden: 1 + m_AndroidETC2FallbackOverride: 0 + m_ForceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + m_BuildTarget: iPhone + m_MaxTextureSize: 2048 + m_ResizeAlgorithm: 0 + m_TextureFormat: 48 + m_TextureCompression: 1 + m_CompressionQuality: 50 + m_CrunchedCompression: 1 + m_AllowsAlphaSplitting: 0 + m_Overridden: 1 + m_AndroidETC2FallbackOverride: 0 + m_ForceMaximumCompressionQuality_BC6H_BC7: 0 + packingSettings: + serializedVersion: 2 + padding: 4 + blockOffset: 0 + allowAlphaSplitting: 0 + enableRotation: 0 + enableTightPacking: 0 + enableAlphaDilation: 0 + secondaryTextureSettings: {} + variantMultiplier: 1 + packables: + - {fileID: 102900000, guid: 1d05672210fa45b4983b97386862db75, type: 3} + bindAsDefault: 1 + isAtlasV2: 0 + cachedData: {fileID: 0} + m_MasterAtlas: {fileID: 0} + m_PackedSprites: + - {fileID: 21300000, guid: d6b837b2a0e996545a9483f3c6d0420b, type: 3} + - {fileID: 21300000, guid: fc6efa5907856e0468a4fba45599b877, type: 3} + m_PackedSpriteNamesToIndex: + - 20000 + - 10000 + m_RenderDataMap: {} + m_Tag: GoodsIcon + m_IsVariant: 0 + m_IsPlaceholder: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/GoodsIcon.spriteatlas.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/GoodsIcon.spriteatlas.meta new file mode 100644 index 00000000..b055eec1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/GoodsIcon/GoodsIcon.spriteatlas.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d6650731d22ff1345a9cecabbad7f19c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 4343727234628468602 + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Main.cs b/luban_examples/Projects/Csharp_Unity_json/Assets/Main.cs new file mode 100644 index 00000000..dbdc4288 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Main.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using System.IO; +using UnityEngine; +using SimpleJSON; + +public class Main : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + var tables = new cfg.Tables(LoadByteBuf); + UnityEngine.Debug.LogFormat("item[1].name:{0}", tables.TbItem[1].Name); + + + UnityEngine.Debug.Log("== load succ=="); + } + + private static JSONNode LoadByteBuf(string file) + { + return JSON.Parse(File.ReadAllText(Application.dataPath + "/../../GenerateDatas/json/" + file + ".json", System.Text.Encoding.UTF8)); + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Main.cs.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Main.cs.meta new file mode 100644 index 00000000..eba75ac3 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Main.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 68efedfcdd561c447adb54013912e09c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes.meta new file mode 100644 index 00000000..934a73f1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bec329fa68bcdff45b33176a93c796f8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes/SampleScene.unity b/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes/SampleScene.unity new file mode 100644 index 00000000..a2476389 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes/SampleScene.unity @@ -0,0 +1,166 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &810827987 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 810827989} + - component: {fileID: 810827988} + m_Layer: 0 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &810827988 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 68efedfcdd561c447adb54013912e09c, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &810827989 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 810827987} + 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_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes/SampleScene.unity.meta b/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes/SampleScene.unity.meta new file mode 100644 index 00000000..2c1fece9 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Assets/Scenes/SampleScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f47aaf9f1663a784b8c9e34aea07d71a +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Csharp_Unity_json/Csharp_Unity_json.sln b/luban_examples/Projects/Csharp_Unity_json/Csharp_Unity_json.sln new file mode 100644 index 00000000..fd60774e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Csharp_Unity_json.sln @@ -0,0 +1,32 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{63788DD0-5559-2762-5DF3-59554CEAE23F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luban.Runtime", "Luban.Runtime.csproj", "{88B0123B-B83E-BD8A-9269-1346E4AE7751}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luban.Editor", "Luban.Editor.csproj", "{7118E1FD-2DE1-D2AD-9E40-72B77910978E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {63788DD0-5559-2762-5DF3-59554CEAE23F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {63788DD0-5559-2762-5DF3-59554CEAE23F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {63788DD0-5559-2762-5DF3-59554CEAE23F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {63788DD0-5559-2762-5DF3-59554CEAE23F}.Release|Any CPU.Build.0 = Release|Any CPU + {88B0123B-B83E-BD8A-9269-1346E4AE7751}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {88B0123B-B83E-BD8A-9269-1346E4AE7751}.Debug|Any CPU.Build.0 = Debug|Any CPU + {88B0123B-B83E-BD8A-9269-1346E4AE7751}.Release|Any CPU.ActiveCfg = Release|Any CPU + {88B0123B-B83E-BD8A-9269-1346E4AE7751}.Release|Any CPU.Build.0 = Release|Any CPU + {7118E1FD-2DE1-D2AD-9E40-72B77910978E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7118E1FD-2DE1-D2AD-9E40-72B77910978E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7118E1FD-2DE1-D2AD-9E40-72B77910978E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7118E1FD-2DE1-D2AD-9E40-72B77910978E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Csharp_Unity_json/Logs/ApiUpdaterCheck.txt b/luban_examples/Projects/Csharp_Unity_json/Logs/ApiUpdaterCheck.txt new file mode 100644 index 00000000..96ad0287 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Logs/ApiUpdaterCheck.txt @@ -0,0 +1,208 @@ +[api-updater (non-obsolete-error-filter)] 2021/7/30 18:17:53 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 97.7387ms +moved types parse time: 43ms +candidates parse time : 1ms +C# parse time : 192ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:02:21 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 46.875ms +moved types parse time: 38ms +candidates parse time : 1ms +C# parse time : 160ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:02:28 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.9039ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 128ms +candidates check time : 24ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:03:35 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.9065ms +moved types parse time: 38ms +candidates parse time : 0ms +C# parse time : 126ms +candidates check time : 23ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:10:21 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.8777ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 127ms +candidates check time : 23ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:11:11 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 45.9058ms +moved types parse time: 39ms +candidates parse time : 0ms +C# parse time : 128ms +candidates check time : 23ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:11:43 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 49.867ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 160ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:22:14 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 46.0957ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 166ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:24:43 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 47.8713ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 161ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:30:36 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 46.5797ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 172ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2021/7/31 17:37:19 : Starting C:/Program Files/Unity/Hub/Editor/2020.3.7f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 47.8727ms +moved types parse time: 39ms +candidates parse time : 1ms +C# parse time : 152ms +candidates check time : 40ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2023/8/10 10:10:42 : Starting D:/HubEditor/2020.3.33f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] Exception caught while loading types from D:\workspace2\luban_examples\Projects\Csharp_Unity_json\Library\ScriptAssemblies\Unity.CollabProxy.Editor.dll (some types may not be loaded) + Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. + at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) + at System.Reflection.Assembly.GetTypes () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 + at APIUpdater.NonObsoleteApiUpdaterDetector.ExtraInfoParser+d__3.MoveNext () [0x000c8] in <68bff7873e0e4aa69a14dfc30bebbe3e>:0 + Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. + +[api-updater (non-obsolete-error-filter)] Exception caught while loading types from D:\workspace2\luban_examples\Projects\Csharp_Unity_json\Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll (some types may not be loaded) + Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. + at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) + at System.Reflection.Assembly.GetTypes () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 + at APIUpdater.NonObsoleteApiUpdaterDetector.ExtraInfoParser+d__3.MoveNext () [0x000c8] in <68bff7873e0e4aa69a14dfc30bebbe3e>:0 + Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. + +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 1544.0434ms +moved types parse time: 57ms +candidates parse time : 2ms +C# parse time : 967ms +candidates check time : 497ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2023/8/10 10:17:23 : Starting D:/HubEditor/2020.3.33f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 44.3001ms +moved types parse time: 40ms +candidates parse time : 1ms +C# parse time : 133ms +candidates check time : 20ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2023/9/10 12:21:44 : Starting D:/HubEditor/2020.3.33f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] Exception caught while loading types from D:\workspace2\luban_examples\Projects\Csharp_Unity_json\Library\ScriptAssemblies\Unity.CollabProxy.Editor.dll (some types may not be loaded) + Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. + at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) + at System.Reflection.Assembly.GetTypes () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 + at APIUpdater.NonObsoleteApiUpdaterDetector.ExtraInfoParser+d__3.MoveNext () [0x000c8] in <68bff7873e0e4aa69a14dfc30bebbe3e>:0 + Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. + +[api-updater (non-obsolete-error-filter)] Exception caught while loading types from D:\workspace2\luban_examples\Projects\Csharp_Unity_json\Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll (some types may not be loaded) + Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. + at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) + at System.Reflection.Assembly.GetTypes () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 + at APIUpdater.NonObsoleteApiUpdaterDetector.ExtraInfoParser+d__3.MoveNext () [0x000c8] in <68bff7873e0e4aa69a14dfc30bebbe3e>:0 + Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. + +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 1796.5611ms +moved types parse time: 44ms +candidates parse time : 1ms +C# parse time : 1180ms +candidates check time : 25ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2023/9/10 12:24:47 : Starting D:/HubEditor/2020.3.33f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 51.1023ms +moved types parse time: 48ms +candidates parse time : 0ms +C# parse time : 147ms +candidates check time : 21ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2023/9/30 13:36:27 : Starting D:/UnityHubs/2020.3.48f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 672.1727ms +moved types parse time: 30ms +candidates parse time : 1ms +C# parse time : 529ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2023/9/30 13:44:06 : Starting D:/UnityHubs/2020.3.48f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 42.403ms +moved types parse time: 31ms +candidates parse time : 1ms +C# parse time : 132ms +candidates check time : 1ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 2023/9/30 13:47:33 : Starting D:/UnityHubs/2020.3.48f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 39.5737ms +moved types parse time: 29ms +candidates parse time : 1ms +C# parse time : 126ms +candidates check time : 0ms +console write time : 0ms + diff --git a/luban_examples/Projects/Csharp_Unity_json/Luban.Editor.csproj b/luban_examples/Projects/Csharp_Unity_json/Luban.Editor.csproj new file mode 100644 index 00000000..881b3183 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Luban.Editor.csproj @@ -0,0 +1,979 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {7118E1FD-2DE1-D2AD-9E40-72B77910978E} + Library + Properties + Luban.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Editor:5 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.NVIDIAModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.ext.nunit@1.0.6\net35\unity-custom\nunit.framework.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\UnityEngine.TestRunner.dll + + + Library\ScriptAssemblies\UnityEditor.TestRunner.dll + + + + + {88B0123B-B83E-BD8A-9269-1346E4AE7751} + Luban.Runtime + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_json/Luban.Runtime.csproj b/luban_examples/Projects/Csharp_Unity_json/Luban.Runtime.csproj new file mode 100644 index 00000000..a45a5c84 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Luban.Runtime.csproj @@ -0,0 +1,969 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {88B0123B-B83E-BD8A-9269-1346E4AE7751} + Library + Properties + Luban.Runtime + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Game:1 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\UnityHubs\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + + + + + + diff --git a/luban_examples/Projects/Csharp_Unity_json/Packages/manifest.json b/luban_examples/Projects/Csharp_Unity_json/Packages/manifest.json new file mode 100644 index 00000000..be2f65e6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Packages/manifest.json @@ -0,0 +1,45 @@ +{ + "dependencies": { + "com.code-philosophy.luban": "https://github.com/focus-creative-games/luban_unity.git", + "com.unity.collab-proxy": "1.15.15", + "com.unity.ide.rider": "3.0.13", + "com.unity.ide.visualstudio": "2.0.14", + "com.unity.ide.vscode": "1.2.5", + "com.unity.test-framework": "1.1.31", + "com.unity.textmeshpro": "3.0.6", + "com.unity.timeline": "1.6.4", + "com.unity.ugui": "1.0.0", + "com.unity.visualscripting": "1.7.6", + "com.unity.modules.ai": "1.0.0", + "com.unity.modules.androidjni": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.cloth": "1.0.0", + "com.unity.modules.director": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.physics2d": "1.0.0", + "com.unity.modules.screencapture": "1.0.0", + "com.unity.modules.terrain": "1.0.0", + "com.unity.modules.terrainphysics": "1.0.0", + "com.unity.modules.tilemap": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.uielements": "1.0.0", + "com.unity.modules.umbra": "1.0.0", + "com.unity.modules.unityanalytics": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.unitywebrequesttexture": "1.0.0", + "com.unity.modules.unitywebrequestwww": "1.0.0", + "com.unity.modules.vehicles": "1.0.0", + "com.unity.modules.video": "1.0.0", + "com.unity.modules.vr": "1.0.0", + "com.unity.modules.wind": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } +} diff --git a/luban_examples/Projects/Csharp_Unity_json/Packages/packages-lock.json b/luban_examples/Projects/Csharp_Unity_json/Packages/packages-lock.json new file mode 100644 index 00000000..c5f8a3c7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/Packages/packages-lock.json @@ -0,0 +1,366 @@ +{ + "dependencies": { + "com.code-philosophy.luban": { + "version": "https://github.com/focus-creative-games/luban_unity.git", + "depth": 0, + "source": "git", + "dependencies": {}, + "hash": "aa41b56501c9a7decf01dfd842a1e6ee894c85bb" + }, + "com.unity.collab-proxy": { + "version": "1.15.15", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.services.core": "1.0.1" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ext.nunit": { + "version": "1.0.6", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.ide.rider": { + "version": "3.0.13", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.visualstudio": { + "version": "2.0.14", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.test-framework": "1.1.9" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.vscode": { + "version": "1.2.5", + "depth": 0, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.services.core": { + "version": "1.0.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.test-framework": { + "version": "1.1.31", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.textmeshpro": { + "version": "3.0.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.timeline": { + "version": "1.6.4", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.modules.director": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ugui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0" + } + }, + "com.unity.visualscripting": { + "version": "1.7.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.modules.ai": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.androidjni": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.animation": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.assetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.audio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.cloth": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.director": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.animation": "1.0.0" + } + }, + "com.unity.modules.imageconversion": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.imgui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.jsonserialize": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.particlesystem": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics2d": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.screencapture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.subsystems": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.terrain": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.terrainphysics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.terrain": "1.0.0" + } + }, + "com.unity.modules.tilemap": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics2d": "1.0.0" + } + }, + "com.unity.modules.ui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.uielements": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.uielementsnative": "1.0.0" + } + }, + "com.unity.modules.uielementsnative": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.umbra": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unityanalytics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.unitywebrequest": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unitywebrequestassetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestaudio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.audio": "1.0.0" + } + }, + "com.unity.modules.unitywebrequesttexture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestwww": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.vehicles": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.video": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.vr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } + }, + "com.unity.modules.wind": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.xr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.subsystems": "1.0.0" + } + } + } +} diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/AudioManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/AudioManager.asset new file mode 100644 index 00000000..07ebfb05 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/AudioManager.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 1024 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_SpatializerPlugin: + m_AmbisonicDecoderPlugin: + m_DisableAudio: 0 + m_VirtualizeEffects: 1 + m_RequestedDSPBufferSize: 1024 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ClusterInputManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 00000000..e7886b26 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/DynamicsManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/DynamicsManager.asset new file mode 100644 index 00000000..cdc1f3ea --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_Gravity: {x: 0, y: -9.81, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_SleepThreshold: 0.005 + m_DefaultContactOffset: 0.01 + m_DefaultSolverIterations: 6 + m_DefaultSolverVelocityIterations: 1 + m_QueriesHitBackfaces: 0 + m_QueriesHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_ClothInterCollisionDistance: 0 + m_ClothInterCollisionStiffness: 0 + m_ContactsGeneration: 1 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_AutoSimulation: 1 + m_AutoSyncTransforms: 0 + m_ReuseCollisionCallbacks: 1 + m_ClothInterCollisionSettingsToggle: 0 + m_ContactPairsMode: 0 + m_BroadphaseType: 0 + m_WorldBounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 250, y: 250, z: 250} + m_WorldSubdivisions: 8 + m_FrictionType: 0 + m_EnableEnhancedDeterminism: 0 + m_EnableUnifiedHeightmaps: 1 + m_DefaultMaxAngluarSpeed: 7 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/EditorBuildSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 00000000..0147887e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: [] + m_configObjects: {} diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/EditorSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/EditorSettings.asset new file mode 100644 index 00000000..f9205447 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/EditorSettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_ExternalVersionControlSupport: Visible Meta Files + m_SerializationMode: 2 + m_LineEndingsForNewScripts: 0 + m_DefaultBehaviorMode: 0 + m_PrefabRegularEnvironment: {fileID: 0} + m_PrefabUIEnvironment: {fileID: 0} + m_SpritePackerMode: 0 + m_SpritePackerPaddingPower: 1 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 + m_EtcTextureNormalCompressor: 2 + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref + m_ProjectGenerationRootNamespace: + m_CollabEditorSettings: + inProgressEnabled: 1 + m_EnableTextureStreamingInEditMode: 1 + m_EnableTextureStreamingInPlayMode: 1 + m_AsyncShaderCompilation: 1 + m_EnterPlayModeOptionsEnabled: 0 + m_EnterPlayModeOptions: 3 + m_ShowLightmapResolutionOverlay: 1 + m_UseLegacyProbeSampleCount: 0 + m_AssetPipelineMode: 1 + m_CacheServerMode: 0 + m_CacheServerEndpoint: + m_CacheServerNamespacePrefix: default + m_CacheServerEnableDownload: 1 + m_CacheServerEnableUpload: 1 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/GraphicsSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 00000000..43369e3c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,63 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 13 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_ScreenSpaceShadows: + m_Mode: 1 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_DepthNormals: + m_Mode: 1 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} + m_MotionVectors: + m_Mode: 1 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} + m_LightHalo: + m_Mode: 1 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} + m_LensFlare: + m_Mode: 1 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} + m_AlwaysIncludedShaders: + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, + type: 0} + m_CustomRenderPipeline: {fileID: 0} + m_TransparencySortMode: 0 + m_TransparencySortAxis: {x: 0, y: 0, z: 1} + m_DefaultRenderingPath: 1 + m_DefaultMobileRenderingPath: 1 + m_TierSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_InstancingStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepShadowMask: 1 + m_LightmapKeepSubtractive: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 + m_AlbedoSwatchInfos: [] + m_LightsUseLinearIntensity: 0 + m_LightsUseColorTemperature: 0 + m_LogWhenShaderIsCompiled: 0 + m_AllowEnlightenSupportForUpgradedProject: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/InputManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/InputManager.asset new file mode 100644 index 00000000..17c8f538 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/InputManager.asset @@ -0,0 +1,295 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/MemorySettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/MemorySettings.asset new file mode 100644 index 00000000..5b5facec --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/MemorySettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!387306366 &1 +MemorySettings: + m_ObjectHideFlags: 0 + m_EditorMemorySettings: + m_MainAllocatorBlockSize: -1 + m_ThreadAllocatorBlockSize: -1 + m_MainGfxBlockSize: -1 + m_ThreadGfxBlockSize: -1 + m_CacheBlockSize: -1 + m_TypetreeBlockSize: -1 + m_ProfilerBlockSize: -1 + m_ProfilerEditorBlockSize: -1 + m_BucketAllocatorGranularity: -1 + m_BucketAllocatorBucketsCount: -1 + m_BucketAllocatorBlockSize: -1 + m_BucketAllocatorBlockCount: -1 + m_ProfilerBucketAllocatorGranularity: -1 + m_ProfilerBucketAllocatorBucketsCount: -1 + m_ProfilerBucketAllocatorBlockSize: -1 + m_ProfilerBucketAllocatorBlockCount: -1 + m_TempAllocatorSizeMain: -1 + m_JobTempAllocatorBlockSize: -1 + m_BackgroundJobTempAllocatorBlockSize: -1 + m_JobTempAllocatorReducedBlockSize: -1 + m_TempAllocatorSizeGIBakingWorker: -1 + m_TempAllocatorSizeNavMeshWorker: -1 + m_TempAllocatorSizeAudioWorker: -1 + m_TempAllocatorSizeCloudWorker: -1 + m_TempAllocatorSizeGfx: -1 + m_TempAllocatorSizeJobWorker: -1 + m_TempAllocatorSizeBackgroundWorker: -1 + m_TempAllocatorSizePreloadManager: -1 + m_PlatformMemorySettings: {} diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/NavMeshAreas.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 00000000..3b0b7c3d --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,91 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshProjectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + m_LastAgentTypeID: -887442657 + m_Settings: + - serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.75 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_SettingNames: + - Humanoid diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/PackageManagerSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/PackageManagerSettings.asset new file mode 100644 index 00000000..be4a7974 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/PackageManagerSettings.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_EnablePreviewPackages: 0 + m_EnablePackageDependencies: 0 + m_AdvancedSettingsExpanded: 1 + m_ScopedRegistriesSettingsExpanded: 1 + oneTimeWarningShown: 0 + m_Registries: + - m_Id: main + m_Name: + m_Url: https://packages.unity.com + m_Scopes: [] + m_IsDefault: 1 + m_Capabilities: 7 + m_UserSelectedRegistryName: + m_UserAddingNewScopedRegistry: 0 + m_RegistryInfoDraft: + m_ErrorMessage: + m_Original: + m_Id: + m_Name: + m_Url: + m_Scopes: [] + m_IsDefault: 0 + m_Capabilities: 0 + m_Modified: 0 + m_Name: + m_Url: + m_Scopes: + - + m_SelectedScopeIndex: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/Physics2DSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 00000000..47880b1c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,56 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_Gravity: {x: 0, y: -9.81} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: 0.2 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_BaumgarteScale: 0.2 + m_BaumgarteTimeOfImpactScale: 0.75 + m_TimeToSleep: 0.5 + m_LinearSleepTolerance: 0.01 + m_AngularSleepTolerance: 2 + m_DefaultContactOffset: 0.01 + m_JobOptions: + serializedVersion: 2 + useMultithreading: 0 + useConsistencySorting: 0 + m_InterpolationPosesPerJob: 100 + m_NewContactsPerJob: 30 + m_CollideContactsPerJob: 100 + m_ClearFlagsPerJob: 200 + m_ClearBodyForcesPerJob: 200 + m_SyncDiscreteFixturesPerJob: 50 + m_SyncContinuousFixturesPerJob: 50 + m_FindNearestContactsPerJob: 100 + m_UpdateTriggerContactsPerJob: 100 + m_IslandSolverCostThreshold: 100 + m_IslandSolverBodyCostScale: 1 + m_IslandSolverContactCostScale: 10 + m_IslandSolverJointCostScale: 10 + m_IslandSolverBodiesPerJob: 50 + m_IslandSolverContactsPerJob: 50 + m_AutoSimulation: 1 + m_QueriesHitTriggers: 1 + m_QueriesStartInColliders: 1 + m_CallbacksOnDisable: 1 + m_ReuseCollisionCallbacks: 1 + m_AutoSyncTransforms: 0 + m_AlwaysShowColliders: 0 + m_ShowColliderSleep: 1 + m_ShowColliderContacts: 0 + m_ShowColliderAABB: 0 + m_ContactArrowScale: 0.2 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/PresetManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/PresetManager.asset new file mode 100644 index 00000000..67a94dae --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/PresetManager.asset @@ -0,0 +1,7 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1386491679 &1 +PresetManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_DefaultPresets: {} diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ProjectSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ProjectSettings.asset new file mode 100644 index 00000000..5ab72db8 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,789 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 23 + productGUID: 79020594a22363045965b78210aa6ed4 + AndroidProfiler: 0 + AndroidFilterTouchesWhenObscured: 0 + AndroidEnableSustainedPerformanceMode: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: DefaultCompany + productName: Csharp_Unity + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} + m_ShowUnitySplashScreen: 1 + m_ShowUnitySplashLogo: 1 + m_SplashScreenOverlayOpacity: 1 + m_SplashScreenAnimation: 1 + m_SplashScreenLogoStyle: 1 + m_SplashScreenDrawMode: 0 + m_SplashScreenBackgroundAnimationZoom: 1 + m_SplashScreenLogoAnimationZoom: 1 + m_SplashScreenBackgroundLandscapeAspect: 1 + m_SplashScreenBackgroundPortraitAspect: 1 + m_SplashScreenBackgroundLandscapeUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenBackgroundPortraitUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenLogos: [] + m_VirtualRealitySplashScreen: {fileID: 0} + m_HolographicTrackingLossScreen: {fileID: 0} + defaultScreenWidth: 1024 + defaultScreenHeight: 768 + defaultScreenWidthWeb: 960 + defaultScreenHeightWeb: 600 + m_StereoRenderingPath: 0 + m_ActiveColorSpace: 0 + m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosUseCustomAppBackgroundBehavior: 0 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + preserveFramebufferAlpha: 0 + disableDepthAndStencilBuffers: 0 + androidStartInFullscreen: 1 + androidRenderOutsideSafeArea: 1 + androidUseSwappy: 0 + androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 + defaultIsNativeResolution: 1 + macRetinaSupport: 1 + runInBackground: 1 + captureSingleScreen: 0 + muteOtherAudioSources: 0 + Prepare IOS For Recording: 0 + Force IOS Speakers When Recording: 0 + deferSystemGesturesMode: 0 + hideHomeButton: 0 + submitAnalytics: 1 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + useFlipModelSwapchain: 1 + resizableWindow: 0 + useMacAppStoreValidation: 0 + macAppStoreCategory: public.app-category.games + gpuSkinning: 1 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 1 + allowFullscreenSwitch: 1 + fullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + xboxEnablePIXSampling: 0 + metalFramebufferOnly: 0 + xboxOneResolution: 0 + xboxOneSResolution: 0 + xboxOneXResolution: 3 + xboxOneMonoLoggingLevel: 0 + xboxOneLoggingLevel: 1 + xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 + xboxOnePresentImmediateThreshold: 0 + switchQueueCommandMemory: 0 + switchQueueControlMemory: 16384 + switchQueueComputeMemory: 262144 + switchNVNShaderPoolsGranularity: 33554432 + switchNVNDefaultPoolsGranularity: 16777216 + switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 + vulkanNumSwapchainBuffers: 3 + vulkanEnableSetSRGBWrite: 0 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 + vulkanEnableCommandBufferRecycling: 1 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleVersion: 0.1 + preloadedAssets: [] + metroInputSource: 0 + wsaTransparentSwapchain: 0 + m_HolographicPauseOnTrackingLoss: 1 + xboxOneDisableKinectGpuReservation: 1 + xboxOneEnable7thCore: 1 + vrSettings: + enable360StereoCapture: 0 + isWsaHolographicRemotingEnabled: 0 + enableFrameTimingStats: 0 + useHDRDisplay: 0 + D3DHDRBitDepth: 0 + m_ColorGamuts: 00000000 + targetPixelDensity: 30 + resolutionScalingMode: 0 + androidSupportedAspectRatio: 1 + androidMaxAspectRatio: 2.1 + applicationIdentifier: + Standalone: com.DefaultCompany.Csharp-Unity + buildNumber: + Standalone: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 0 + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 22 + AndroidTargetSdkVersion: 0 + AndroidPreferredInstallLocation: 1 + aotOptions: + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + keepLoadedShadersAlive: 0 + StripUnusedMeshComponents: 1 + VertexChannelCompressionMask: 4054 + iPhoneSdkVersion: 988 + iOSTargetOSVersionString: 11.0 + tvOSSdkVersion: 0 + tvOSRequireExtendedGameController: 0 + tvOSTargetOSVersionString: 11.0 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + appleTVSplashScreen: {fileID: 0} + appleTVSplashScreen2x: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSSmallIconLayers2x: [] + tvOSLargeIconLayers: [] + tvOSLargeIconLayers2x: [] + tvOSTopShelfImageLayers: [] + tvOSTopShelfImageLayers2x: [] + tvOSTopShelfImageWideLayers: [] + tvOSTopShelfImageWideLayers2x: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: + iOSDeviceRequirements: [] + iOSURLSchemes: [] + macOSURLSchemes: [] + iOSBackgroundModes: 0 + iOSMetalForceHardShadows: 0 + metalEditorSupport: 1 + metalAPIValidation: 1 + iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 + appleDeveloperTeamID: + iOSManualSigningProvisioningProfileID: + tvOSManualSigningProvisioningProfileID: + iOSManualSigningProvisioningProfileType: 0 + tvOSManualSigningProvisioningProfileType: 0 + appleEnableAutomaticSigning: 0 + iOSRequireARKit: 0 + iOSAutomaticallyDetectAndAddCapabilities: 1 + appleEnableProMotion: 0 + shaderPrecisionModel: 0 + clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea + templatePackageId: com.unity.template.3d@4.2.8 + templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomProguardFile: 0 + AndroidTargetArchitectures: 1 + AndroidTargetDevices: 0 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidBuildApkPerCpuArchitecture: 0 + AndroidTVCompatibility: 0 + AndroidIsGame: 1 + AndroidEnableTango: 0 + androidEnableBanner: 1 + androidUseLowAccuracyLocation: 0 + androidUseCustomKeystore: 0 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidMinifyWithR8: 0 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 + AndroidValidateAppBundleSize: 1 + AndroidAppBundleSizeToValidate: 150 + m_BuildTargetIcons: [] + m_BuildTargetPlatformIcons: + - m_BuildTarget: Android + m_Icons: + - m_Textures: [] + m_Width: 432 + m_Height: 432 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 324 + m_Height: 324 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 216 + m_Height: 216 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 162 + m_Height: 162 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 108 + m_Height: 108 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 81 + m_Height: 81 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 0 + m_SubKind: + m_BuildTargetBatching: + - m_BuildTarget: Standalone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: tvOS + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: Android + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: iPhone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: WebGL + m_StaticBatching: 0 + m_DynamicBatching: 0 + m_BuildTargetGraphicsJobs: + - m_BuildTarget: MacStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: Switch + m_GraphicsJobs: 1 + - m_BuildTarget: MetroSupport + m_GraphicsJobs: 1 + - m_BuildTarget: AppleTVSupport + m_GraphicsJobs: 0 + - m_BuildTarget: BJMSupport + m_GraphicsJobs: 1 + - m_BuildTarget: LinuxStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: PS4Player + m_GraphicsJobs: 1 + - m_BuildTarget: iOSSupport + m_GraphicsJobs: 0 + - m_BuildTarget: WindowsStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobs: 1 + - m_BuildTarget: LuminSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AndroidPlayer + m_GraphicsJobs: 0 + - m_BuildTarget: WebGLSupport + m_GraphicsJobs: 0 + m_BuildTargetGraphicsJobMode: + - m_BuildTarget: PS4Player + m_GraphicsJobMode: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobMode: 0 + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: AndroidPlayer + m_APIs: 150000000b000000 + m_Automatic: 0 + - m_BuildTarget: iOSSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: AppleTVSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: WebGLSupport + m_APIs: 0b000000 + m_Automatic: 1 + m_BuildTargetVRSettings: + - m_BuildTarget: Standalone + m_Enabled: 0 + m_Devices: + - Oculus + - OpenVR + openGLRequireES31: 0 + openGLRequireES31AEP: 0 + openGLRequireES32: 0 + m_TemplateCustomTags: {} + mobileMTRendering: + Android: 1 + iPhone: 1 + tvOS: 1 + m_BuildTargetGroupLightmapEncodingQuality: [] + m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetNormalMapEncoding: [] + m_BuildTargetDefaultTextureCompressionFormat: [] + playModeTestRunnerEnabled: 0 + runPlayModeTestAsEditModeTest: 0 + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: + bluetoothUsageDescription: + switchNMETAOverride: + switchNetLibKey: + switchSocketMemoryPoolSize: 6144 + switchSocketAllocatorPoolSize: 128 + switchSocketConcurrencyLimit: 14 + switchScreenResolutionBehavior: 2 + switchUseCPUProfiler: 0 + switchUseGOLDLinker: 0 + switchLTOSetting: 0 + switchApplicationID: 0x01004b9000490000 + switchNSODependencies: + switchTitleNames_0: + switchTitleNames_1: + switchTitleNames_2: + switchTitleNames_3: + switchTitleNames_4: + switchTitleNames_5: + switchTitleNames_6: + switchTitleNames_7: + switchTitleNames_8: + switchTitleNames_9: + switchTitleNames_10: + switchTitleNames_11: + switchTitleNames_12: + switchTitleNames_13: + switchTitleNames_14: + switchTitleNames_15: + switchPublisherNames_0: + switchPublisherNames_1: + switchPublisherNames_2: + switchPublisherNames_3: + switchPublisherNames_4: + switchPublisherNames_5: + switchPublisherNames_6: + switchPublisherNames_7: + switchPublisherNames_8: + switchPublisherNames_9: + switchPublisherNames_10: + switchPublisherNames_11: + switchPublisherNames_12: + switchPublisherNames_13: + switchPublisherNames_14: + switchPublisherNames_15: + switchIcons_0: {fileID: 0} + switchIcons_1: {fileID: 0} + switchIcons_2: {fileID: 0} + switchIcons_3: {fileID: 0} + switchIcons_4: {fileID: 0} + switchIcons_5: {fileID: 0} + switchIcons_6: {fileID: 0} + switchIcons_7: {fileID: 0} + switchIcons_8: {fileID: 0} + switchIcons_9: {fileID: 0} + switchIcons_10: {fileID: 0} + switchIcons_11: {fileID: 0} + switchIcons_12: {fileID: 0} + switchIcons_13: {fileID: 0} + switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} + switchSmallIcons_0: {fileID: 0} + switchSmallIcons_1: {fileID: 0} + switchSmallIcons_2: {fileID: 0} + switchSmallIcons_3: {fileID: 0} + switchSmallIcons_4: {fileID: 0} + switchSmallIcons_5: {fileID: 0} + switchSmallIcons_6: {fileID: 0} + switchSmallIcons_7: {fileID: 0} + switchSmallIcons_8: {fileID: 0} + switchSmallIcons_9: {fileID: 0} + switchSmallIcons_10: {fileID: 0} + switchSmallIcons_11: {fileID: 0} + switchSmallIcons_12: {fileID: 0} + switchSmallIcons_13: {fileID: 0} + switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} + switchManualHTML: + switchAccessibleURLs: + switchLegalInformation: + switchMainThreadStackSize: 1048576 + switchPresenceGroupId: + switchLogoHandling: 0 + switchReleaseVersion: 0 + switchDisplayVersion: 1.0.0 + switchStartupUserAccount: 0 + switchTouchScreenUsage: 0 + switchSupportedLanguagesMask: 0 + switchLogoType: 0 + switchApplicationErrorCodeCategory: + switchUserAccountSaveDataSize: 0 + switchUserAccountSaveDataJournalSize: 0 + switchApplicationAttribute: 0 + switchCardSpecSize: -1 + switchCardSpecClock: -1 + switchRatingsMask: 0 + switchRatingsInt_0: 0 + switchRatingsInt_1: 0 + switchRatingsInt_2: 0 + switchRatingsInt_3: 0 + switchRatingsInt_4: 0 + switchRatingsInt_5: 0 + switchRatingsInt_6: 0 + switchRatingsInt_7: 0 + switchRatingsInt_8: 0 + switchRatingsInt_9: 0 + switchRatingsInt_10: 0 + switchRatingsInt_11: 0 + switchRatingsInt_12: 0 + switchLocalCommunicationIds_0: + switchLocalCommunicationIds_1: + switchLocalCommunicationIds_2: + switchLocalCommunicationIds_3: + switchLocalCommunicationIds_4: + switchLocalCommunicationIds_5: + switchLocalCommunicationIds_6: + switchLocalCommunicationIds_7: + switchParentalControl: 0 + switchAllowsScreenshot: 1 + switchAllowsVideoCapturing: 1 + switchAllowsRuntimeAddOnContentInstall: 0 + switchDataLossConfirmation: 0 + switchUserAccountLockEnabled: 0 + switchSystemResourceMemory: 16777216 + switchSupportedNpadStyles: 22 + switchNativeFsCacheSize: 32 + switchIsHoldTypeHorizontal: 0 + switchSupportedNpadCount: 8 + switchSocketConfigEnabled: 0 + switchTcpInitialSendBufferSize: 32 + switchTcpInitialReceiveBufferSize: 64 + switchTcpAutoSendBufferSizeMax: 256 + switchTcpAutoReceiveBufferSizeMax: 256 + switchUdpSendBufferSize: 9 + switchUdpReceiveBufferSize: 42 + switchSocketBufferEfficiency: 4 + switchSocketInitializeEnabled: 1 + switchNetworkInterfaceManagerInitializeEnabled: 1 + switchPlayerConnectionEnabled: 1 + switchUseNewStyleFilepaths: 0 + switchUseMicroSleepForYield: 1 + switchEnableRamDiskSupport: 0 + switchMicroSleepForYieldTime: 25 + switchRamDiskSpaceSize: 12 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 11 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutInitialWidth: 1920 + ps4VideoOutBaseModeInitialWidth: 1920 + ps4VideoOutReprojectionRate: 60 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4StartupImagesFolder: + ps4IconImagesFolder: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4PlayTogetherPlayerCount: 0 + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4ProGarlicHeapSize: 2560 + playerPrefsMaxSize: 32768 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + enableApplicationExit: 0 + resetTempFolder: 1 + restrictedAudioUsageRights: 0 + ps4UseResolutionFallback: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4UseLowGarlicFragmentationMode: 1 + ps4SocialScreenEnabled: 0 + ps4ScriptOptimizationLevel: 0 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4PatchDayOne: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4attribExclusiveVR: 0 + ps4disableAutoHideSplash: 0 + ps4videoRecordingFeaturesUsed: 0 + ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4GPU800MHz: 1 + ps4attribEyeToEyeDistanceSettingVR: 0 + ps4IncludedModules: [] + ps4attribVROutputEnabled: 0 + monoEnv: + splashScreenBackgroundSourceLandscape: {fileID: 0} + splashScreenBackgroundSourcePortrait: {fileID: 0} + blurSplashScreenBackground: 1 + spritePackerPolicy: + webGLMemorySize: 16 + webGLExceptionSupport: 1 + webGLNameFilesAsHashes: 0 + webGLDataCaching: 1 + webGLDebugSymbols: 0 + webGLEmscriptenArgs: + webGLModulesDirectory: + webGLTemplate: APPLICATION:Default + webGLAnalyzeBuildSize: 0 + webGLUseEmbeddedResources: 0 + webGLCompressionFormat: 1 + webGLWasmArithmeticExceptions: 0 + webGLLinkerTarget: 1 + webGLThreadsSupport: 0 + webGLDecompressionFallback: 0 + scriptingDefineSymbols: {} + additionalCompilerArguments: {} + platformArchitecture: {} + scriptingBackend: {} + il2cppCompilerConfiguration: {} + managedStrippingLevel: {} + incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 + allowUnsafeCode: 1 + useDeterministicCompilation: 1 + enableRoslynAnalyzers: 1 + additionalIl2CppArgs: + scriptingRuntimeVersion: 1 + gcIncremental: 0 + assemblyVersionValidation: 1 + gcWBarrierValidation: 0 + apiCompatibilityLevelPerPlatform: + Standalone: 3 + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + metroPackageName: Template_3D + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: Template_3D + wsaImages: {} + metroTileShortName: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroSupportStreamingInstall: 0 + metroLastRequiredScene: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 2 + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, + a: 1} + metroSplashScreenUseBackgroundColor: 0 + platformCapabilities: {} + metroTargetDeviceFamilies: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + vcxProjDefaultLanguage: + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOneVersion: 1.0.0.0 + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneLanguage: + - enus + XboxOneCapability: [] + XboxOneGameRating: {} + XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 + XboxOneEnableGPUVariability: 1 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + XboxOneXTitleMemory: 8 + XboxOneOverrideIdentityName: + XboxOneOverrideIdentityPublisher: + vrEditorSettings: {} + cloudServicesEnabled: + UNet: 1 + luminIcon: + m_Name: + m_ModelFolderPath: + m_PortalFolderPath: + luminCert: + m_CertPath: + m_SignPackage: 1 + luminIsChannelApp: 0 + luminVersion: + m_VersionCode: 1 + m_VersionName: + apiCompatibilityLevel: 6 + activeInputHandler: 0 + cloudProjectId: + framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] + projectName: + organizationId: + cloudEnabled: 0 + legacyClampBlendShapeWeights: 0 + playerDataPath: + forceSRGBBlit: 1 + virtualTexturingSupportEnabled: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ProjectVersion.txt b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ProjectVersion.txt new file mode 100644 index 00000000..90d6509f --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2021.3.1f1 +m_EditorVersionWithRevision: 2021.3.1f1 (3b70a0754835) diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/QualitySettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/QualitySettings.asset new file mode 100644 index 00000000..7b7658d6 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/QualitySettings.asset @@ -0,0 +1,232 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 5 + m_QualitySettings: + - serializedVersion: 2 + name: Very Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.3 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.4 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 16 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Medium + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 0.7 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 64 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: High + pixelLightCount: 2 + shadows: 2 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 256 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Very High + pixelLightCount: 3 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 1024 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Ultra + pixelLightCount: 4 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 2 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4096 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 2 + Lumin: 5 + Nintendo 3DS: 5 + Nintendo Switch: 5 + PS4: 5 + PSP2: 2 + Stadia: 5 + Standalone: 5 + WebGL: 3 + Windows Store Apps: 5 + XboxOne: 5 + iPhone: 2 + tvOS: 2 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TagManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TagManager.asset new file mode 100644 index 00000000..1c92a784 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TimeManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TimeManager.asset new file mode 100644 index 00000000..558a017e --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TimeManager.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: 0.02 + Maximum Allowed Timestep: 0.33333334 + m_TimeScale: 1 + Maximum Particle Timestep: 0.03 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TimelineSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TimelineSettings.asset new file mode 100644 index 00000000..b4fbdb09 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/TimelineSettings.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3} + m_Name: + m_EditorClassIdentifier: + assetDefaultFramerate: 60 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/UnityConnectSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 00000000..fa0b1465 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 1 + m_Enabled: 0 + m_TestMode: 0 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events + m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_TestInitMode: 0 + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com + m_Enabled: 0 + m_LogBufferSize: 10 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_TestMode: 0 + m_InitializeOnStartup: 1 + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_IosGameId: + m_AndroidGameId: + m_GameIds: {} + m_GameId: + PerformanceReportingSettings: + m_Enabled: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/VFXManager.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/VFXManager.asset new file mode 100644 index 00000000..3a95c98b --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/VFXManager.asset @@ -0,0 +1,12 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/VersionControlSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 00000000..dca28814 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/XRSettings.asset b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/XRSettings.asset new file mode 100644 index 00000000..482590c1 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/boot.config b/luban_examples/Projects/Csharp_Unity_json/ProjectSettings/boot.config new file mode 100644 index 00000000..e69de29b diff --git a/luban_examples/Projects/Csharp_Unity_json/UserSettings/EditorUserSettings.asset b/luban_examples/Projects/Csharp_Unity_json/UserSettings/EditorUserSettings.asset new file mode 100644 index 00000000..796101ad --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/UserSettings/EditorUserSettings.asset @@ -0,0 +1,24 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!162 &1 +EditorUserSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_ConfigSettings: + RecentlyUsedScenePath-0: + value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d + flags: 0 + vcSharedLogLevel: + value: 0d5e400f0650 + flags: 0 + m_VCAutomaticAdd: 1 + m_VCDebugCom: 0 + m_VCDebugCmd: 0 + m_VCDebugOut: 0 + m_SemanticMergeMode: 2 + m_VCShowFailedCheckout: 1 + m_VCOverwriteFailedCheckoutAssets: 1 + m_VCProjectOverlayIcons: 1 + m_VCHierarchyOverlayIcons: 1 + m_VCOtherOverlayIcons: 1 + m_VCAllowAsyncUpdate: 0 diff --git a/luban_examples/Projects/Csharp_Unity_json/UserSettings/Layouts/default-2021.dwlt b/luban_examples/Projects/Csharp_Unity_json/UserSettings/Layouts/default-2021.dwlt new file mode 100644 index 00000000..400c2eb7 --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/UserSettings/Layouts/default-2021.dwlt @@ -0,0 +1,733 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_PixelRect: + serializedVersion: 2 + x: 2249 + y: 302.5 + width: 1206 + height: 715 + m_ShowMode: 4 + m_Title: + m_RootView: {fileID: 6} + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_Maximized: 0 +--- !u!114 &2 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 9} + - {fileID: 3} + m_Position: + serializedVersion: 2 + x: 0 + y: 30 + width: 1206 + height: 665 + m_MinSize: {x: 679, y: 492} + m_MaxSize: {x: 14002, y: 14042} + vertical: 0 + controlID: 119 +--- !u!114 &3 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 921 + y: 0 + width: 285 + height: 665 + m_MinSize: {x: 276, y: 71} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 13} + m_Panes: + - {fileID: 13} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &4 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 228 + height: 394 + m_MinSize: {x: 201, y: 221} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 14} + m_Panes: + - {fileID: 14} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &5 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: ProjectBrowser + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 394 + width: 921 + height: 271 + m_MinSize: {x: 231, y: 271} + m_MaxSize: {x: 10001, y: 10021} + m_ActualView: {fileID: 12} + m_Panes: + - {fileID: 12} + - {fileID: 17} + m_Selected: 0 + m_LastSelected: 1 +--- !u!114 &6 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 7} + - {fileID: 2} + - {fileID: 8} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1206 + height: 715 + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} +--- !u!114 &7 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1206 + height: 30 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} + m_LoadedToolbars: [] + m_LastLoadedLayoutName: Default +--- !u!114 &8 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 695 + width: 1206 + height: 20 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} +--- !u!114 &9 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 10} + - {fileID: 5} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 921 + height: 665 + m_MinSize: {x: 403, y: 492} + m_MaxSize: {x: 10001, y: 14042} + vertical: 1 + controlID: 92 +--- !u!114 &10 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 4} + - {fileID: 11} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 921 + height: 394 + m_MinSize: {x: 403, y: 221} + m_MaxSize: {x: 8003, y: 4021} + vertical: 0 + controlID: 93 +--- !u!114 &11 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 228 + y: 0 + width: 693 + height: 394 + m_MinSize: {x: 202, y: 221} + m_MaxSize: {x: 4002, y: 4021} + m_ActualView: {fileID: 15} + m_Panes: + - {fileID: 15} + - {fileID: 16} + m_Selected: 0 + m_LastSelected: 1 +--- !u!114 &12 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 230, y: 250} + m_MaxSize: {x: 10000, y: 10000} + m_TitleContent: + m_Text: Project + m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2249 + y: 726.5 + width: 920 + height: 250 + m_ViewDataDictionary: {fileID: 0} + m_SearchFilter: + m_NameFilter: + m_ClassNames: [] + m_AssetLabels: [] + m_AssetBundleNames: [] + m_VersionControlStates: [] + m_SoftLockControlStates: [] + m_ReferencingInstanceIDs: + m_SceneHandles: + m_ShowAllHits: 0 + m_SkipHidden: 0 + m_SearchArea: 1 + m_Folders: + - Assets + m_Globs: [] + m_ViewMode: 1 + m_StartGridSize: 64 + m_LastFolders: + - Assets + m_LastFoldersGridSize: -1 + m_LastProjectPath: U:\layout + m_LockTracker: + m_IsLocked: 0 + m_FolderTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: f4350000 + m_LastClickedID: 13812 + m_ExpandedIDs: 00000000f435000000ca9a3b + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_AssetTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: 00000000f4350000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_ListAreaState: + m_SelectedInstanceIDs: + m_LastClickedInstanceID: 0 + m_HadKeyboardFocusLastEvent: 0 + m_ExpandedInstanceIDs: c6230000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_NewAssetIndexInList: -1 + m_ScrollPosition: {x: 0, y: 0} + m_GridSize: 64 + m_SkipHiddenPackages: 0 + m_DirectoriesAreaWidth: 207 +--- !u!114 &13 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 275, y: 50} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Inspector + m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 3170 + y: 332.5 + width: 284 + height: 644 + m_ViewDataDictionary: {fileID: 0} + m_ObjectsLockedBeforeSerialization: [] + m_InstanceIDsLockedBeforeSerialization: + m_PreviewResizer: + m_CachedPref: 160 + m_ControlHash: -371814159 + m_PrefName: Preview_InspectorPreview + m_LastInspectedObjectInstanceID: -1 + m_LastVerticalScrollValue: 0 + m_AssetGUID: + m_InstanceID: 0 + m_LockTracker: + m_IsLocked: 0 + m_PreviewWindow: {fileID: 0} +--- !u!114 &14 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Hierarchy + m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2249 + y: 332.5 + width: 227 + height: 373 + m_ViewDataDictionary: {fileID: 0} + m_SceneHierarchy: + m_TreeViewState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: 42fbffff + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 0 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_ExpandedScenes: [] + m_CurrenRootInstanceID: 0 + m_LockTracker: + m_IsLocked: 0 + m_CurrentSortingName: TransformSorting + m_WindowGUID: 4c969a2b90040154d917609493e03593 +--- !u!114 &15 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Scene + m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2477 + y: 332.5 + width: 691 + height: 373 + m_ViewDataDictionary: {fileID: 0} + m_ShowContextualTools: 0 + m_WindowGUID: cc27987af1a868c49b0894db9c0f5429 + m_Gizmos: 1 + m_OverrideSceneCullingMask: 6917529027641081856 + m_SceneIsLit: 1 + m_SceneLighting: 1 + m_2DMode: 0 + m_isRotationLocked: 0 + m_PlayAudio: 0 + m_AudioPlay: 0 + m_Position: + m_Target: {x: 0, y: 0, z: 0} + speed: 2 + m_Value: {x: 0, y: 0, z: 0} + m_RenderMode: 0 + m_CameraMode: + drawMode: 0 + name: Shaded + section: Shading Mode + m_ValidateTrueMetals: 0 + m_DoValidateTrueMetals: 0 + m_ExposureSliderValue: 0 + m_SceneViewState: + showFog: 1 + showMaterialUpdate: 0 + showSkybox: 1 + showFlares: 1 + showImageEffects: 1 + showParticleSystems: 1 + showVisualEffectGraphs: 1 + m_Grid: + xGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + yGrid: + m_Fade: + m_Target: 1 + speed: 2 + m_Value: 1 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 1, y: 1} + zGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + m_ShowGrid: 1 + m_GridAxis: 1 + m_gridOpacity: 0.5 + m_Rotation: + m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + speed: 2 + m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + m_Size: + m_Target: 10 + speed: 2 + m_Value: 10 + m_Ortho: + m_Target: 0 + speed: 2 + m_Value: 0 + m_CameraSettings: + m_Speed: 1 + m_SpeedNormalized: 0.5 + m_SpeedMin: 0.001 + m_SpeedMax: 2 + m_EasingEnabled: 1 + m_EasingDuration: 0.4 + m_AccelerationEnabled: 1 + m_FieldOfView: 90 + m_NearClip: 0.03 + m_FarClip: 10000 + m_DynamicClip: 1 + m_OcclusionCulling: 0 + m_LastSceneViewRotation: {x: 0, y: 0, z: 0, w: 0} + m_LastSceneViewOrtho: 0 + m_ReplacementShader: {fileID: 0} + m_ReplacementString: + m_SceneVisActive: 1 + m_LastLockedObject: {fileID: 0} + m_ViewIsLockedToObject: 0 +--- !u!114 &16 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Game + m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 507 + y: 94 + width: 1532 + height: 790 + m_ViewDataDictionary: {fileID: 0} + m_SerializedViewsNames: [] + m_SerializedViewsValues: [] + m_PlayModeViewName: GameView + m_ShowGizmos: 0 + m_TargetDisplay: 0 + m_ClearColor: {r: 0, g: 0, b: 0, a: 0} + m_TargetSize: {x: 640, y: 480} + m_TextureFilterMode: 0 + m_TextureHideFlags: 61 + m_RenderIMGUI: 0 + m_MaximizeOnPlay: 0 + m_UseMipMap: 0 + m_VSyncEnabled: 0 + m_Gizmos: 0 + m_Stats: 0 + m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000 + m_ZoomArea: + m_HRangeLocked: 0 + m_VRangeLocked: 0 + hZoomLockedByDefault: 0 + vZoomLockedByDefault: 0 + m_HBaseRangeMin: -766 + m_HBaseRangeMax: 766 + m_VBaseRangeMin: -395 + m_VBaseRangeMax: 395 + m_HAllowExceedBaseRangeMin: 1 + m_HAllowExceedBaseRangeMax: 1 + m_VAllowExceedBaseRangeMin: 1 + m_VAllowExceedBaseRangeMax: 1 + m_ScaleWithWindow: 0 + m_HSlider: 0 + m_VSlider: 0 + m_IgnoreScrollWheelUntilClicked: 0 + m_EnableMouseInput: 1 + m_EnableSliderZoomHorizontal: 0 + m_EnableSliderZoomVertical: 0 + m_UniformScale: 1 + m_UpDirection: 1 + m_DrawArea: + serializedVersion: 2 + x: 0 + y: 0 + width: 1532 + height: 790 + m_Scale: {x: 1, y: 1} + m_Translation: {x: 766, y: 395} + m_MarginLeft: 0 + m_MarginRight: 0 + m_MarginTop: 0 + m_MarginBottom: 0 + m_LastShownAreaInsideMargins: + serializedVersion: 2 + x: -766 + y: -395 + width: 1532 + height: 790 + m_MinimalGUI: 1 + m_defaultScale: 1 + m_LastWindowPixelSize: {x: 1532, y: 790} + m_ClearInEditMode: 1 + m_NoCameraWarning: 1 + m_LowResolutionForAspectRatios: 01000000000000000000 + m_XRRenderMode: 0 + m_RenderTexture: {fileID: 0} +--- !u!114 &17 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Console + m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2249 + y: 726.5 + width: 920 + height: 250 + m_ViewDataDictionary: {fileID: 0} + diff --git a/luban_examples/Projects/Csharp_Unity_json/gen.bat b/luban_examples/Projects/Csharp_Unity_json/gen.bat new file mode 100644 index 00000000..cf243d6c --- /dev/null +++ b/luban_examples/Projects/Csharp_Unity_json/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %GEN_CLIENT% ^ + -t client ^ + -c cs-simple-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Assets/Gen ^ + -x outputDataDir=..\GenerateDatas\json ^ + -x pathValidator.rootDir=D:\workspace2\luban_examples\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@D:\workspace2\luban_examples\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers.csproj b/luban_examples/Projects/Flatbuffers_json/FlatBuffers.csproj new file mode 100644 index 00000000..353ef70f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers.csproj @@ -0,0 +1,30 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/ByteBuffer.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/ByteBuffer.cs new file mode 100644 index 00000000..4c0d000a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/ByteBuffer.cs @@ -0,0 +1,1041 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// There are three conditional compilation symbols that have an impact on performance/features of this ByteBuffer implementation. +// +// UNSAFE_BYTEBUFFER +// This will use unsafe code to manipulate the underlying byte array. This +// can yield a reasonable performance increase. +// +// BYTEBUFFER_NO_BOUNDS_CHECK +// This will disable the bounds check asserts to the byte array. This can +// yield a small performance gain in normal code. +// +// ENABLE_SPAN_T +// This will enable reading and writing blocks of memory with a Span instead of just +// T[]. You can also enable writing directly to shared memory or other types of memory +// by providing a custom implementation of ByteBufferAllocator. +// ENABLE_SPAN_T also requires UNSAFE_BYTEBUFFER to be defined, or .NET +// Standard 2.1. +// +// Using UNSAFE_BYTEBUFFER and BYTEBUFFER_NO_BOUNDS_CHECK together can yield a +// performance gain of ~15% for some operations, however doing so is potentially +// dangerous. Do so at your own risk! +// + +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Text; + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) +using System.Buffers.Binary; +#endif + +#if ENABLE_SPAN_T && !UNSAFE_BYTEBUFFER && !NETSTANDARD2_1 +#warning ENABLE_SPAN_T requires UNSAFE_BYTEBUFFER to also be defined +#endif + +namespace Google.FlatBuffers +{ + public abstract class ByteBufferAllocator + { +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + public abstract Span Span { get; } + public abstract ReadOnlySpan ReadOnlySpan { get; } + public abstract Memory Memory { get; } + public abstract ReadOnlyMemory ReadOnlyMemory { get; } + +#else + public byte[] Buffer + { + get; + protected set; + } +#endif + + public int Length + { + get; + protected set; + } + + public abstract void GrowFront(int newSize); + } + + public sealed class ByteArrayAllocator : ByteBufferAllocator + { + private byte[] _buffer; + + public ByteArrayAllocator(byte[] buffer) + { + _buffer = buffer; + InitBuffer(); + } + + public override void GrowFront(int newSize) + { + if ((Length & 0xC0000000) != 0) + throw new Exception( + "ByteBuffer: cannot grow buffer beyond 2 gigabytes."); + + if (newSize < Length) + throw new Exception("ByteBuffer: cannot truncate buffer."); + + byte[] newBuffer = new byte[newSize]; + System.Buffer.BlockCopy(_buffer, 0, newBuffer, newSize - Length, Length); + _buffer = newBuffer; + InitBuffer(); + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + public override Span Span => _buffer; + public override ReadOnlySpan ReadOnlySpan => _buffer; + public override Memory Memory => _buffer; + public override ReadOnlyMemory ReadOnlyMemory => _buffer; +#endif + + private void InitBuffer() + { + Length = _buffer.Length; +#if !ENABLE_SPAN_T + Buffer = _buffer; +#endif + } + } + + /// + /// Class to mimic Java's ByteBuffer which is used heavily in Flatbuffers. + /// + public class ByteBuffer + { + private ByteBufferAllocator _buffer; + private int _pos; // Must track start of the buffer. + + public ByteBuffer(ByteBufferAllocator allocator, int position) + { + _buffer = allocator; + _pos = position; + } + + public ByteBuffer(int size) : this(new byte[size]) { } + + public ByteBuffer(byte[] buffer) : this(buffer, 0) { } + + public ByteBuffer(byte[] buffer, int pos) + { + _buffer = new ByteArrayAllocator(buffer); + _pos = pos; + } + + public int Position + { + get { return _pos; } + set { _pos = value; } + } + + public int Length { get { return _buffer.Length; } } + + public void Reset() + { + _pos = 0; + } + + // Create a new ByteBuffer on the same underlying data. + // The new ByteBuffer's position will be same as this buffer's. + public ByteBuffer Duplicate() + { + return new ByteBuffer(_buffer, Position); + } + + // Increases the size of the ByteBuffer, and copies the old data towards + // the end of the new buffer. + public void GrowFront(int newSize) + { + _buffer.GrowFront(newSize); + } + + public byte[] ToArray(int pos, int len) + { + return ToArray(pos, len); + } + + /// + /// A lookup of type sizes. Used instead of Marshal.SizeOf() which has additional + /// overhead, but also is compatible with generic functions for simplified code. + /// + private static Dictionary genericSizes = new Dictionary() + { + { typeof(bool), sizeof(bool) }, + { typeof(float), sizeof(float) }, + { typeof(double), sizeof(double) }, + { typeof(sbyte), sizeof(sbyte) }, + { typeof(byte), sizeof(byte) }, + { typeof(short), sizeof(short) }, + { typeof(ushort), sizeof(ushort) }, + { typeof(int), sizeof(int) }, + { typeof(uint), sizeof(uint) }, + { typeof(ulong), sizeof(ulong) }, + { typeof(long), sizeof(long) }, + }; + + /// + /// Get the wire-size (in bytes) of a type supported by flatbuffers. + /// + /// The type to get the wire size of + /// + public static int SizeOf() + { + return genericSizes[typeof(T)]; + } + + /// + /// Checks if the Type provided is supported as scalar value + /// + /// The Type to check + /// True if the type is a scalar type that is supported, falsed otherwise + public static bool IsSupportedType() + { + return genericSizes.ContainsKey(typeof(T)); + } + + /// + /// Get the wire-size (in bytes) of an typed array + /// + /// The type of the array + /// The array to get the size of + /// The number of bytes the array takes on wire + public static int ArraySize(T[] x) + { + return SizeOf() * x.Length; + } + + /// + /// Get the wire-size (in bytes) of an typed array segment, taking only the + /// range specified by into account. + /// + /// The type of the array + /// The array segment to get the size of + /// The number of bytes the array segment takes on wire + public static int ArraySize(ArraySegment x) + { + return SizeOf() * x.Count; + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + public static int ArraySize(Span x) + { + return SizeOf() * x.Length; + } +#endif + + // Get a portion of the buffer casted into an array of type T, given + // the buffer position and length. +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + public T[] ToArray(int pos, int len) + where T : struct + { + AssertOffsetAndLength(pos, len); + return MemoryMarshal.Cast(_buffer.ReadOnlySpan.Slice(pos)).Slice(0, len).ToArray(); + } +#else + public T[] ToArray(int pos, int len) + where T : struct + { + AssertOffsetAndLength(pos, len); + T[] arr = new T[len]; + Buffer.BlockCopy(_buffer.Buffer, pos, arr, 0, ArraySize(arr)); + return arr; + } +#endif + + public byte[] ToSizedArray() + { + return ToArray(Position, Length - Position); + } + + public byte[] ToFullArray() + { + return ToArray(0, Length); + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + public ReadOnlyMemory ToReadOnlyMemory(int pos, int len) + { + return _buffer.ReadOnlyMemory.Slice(pos, len); + } + + public Memory ToMemory(int pos, int len) + { + return _buffer.Memory.Slice(pos, len); + } + + public Span ToSpan(int pos, int len) + { + return _buffer.Span.Slice(pos, len); + } +#else + public ArraySegment ToArraySegment(int pos, int len) + { + return new ArraySegment(_buffer.Buffer, pos, len); + } + + public MemoryStream ToMemoryStream(int pos, int len) + { + return new MemoryStream(_buffer.Buffer, pos, len); + } +#endif + +#if !UNSAFE_BYTEBUFFER + // A conversion union where all the members are overlapping. This allows to reinterpret the bytes of one type + // as another, without additional copies. + [StructLayout(LayoutKind.Explicit)] + struct ConversionUnion + { + [FieldOffset(0)] public int intValue; + [FieldOffset(0)] public float floatValue; + } +#endif // !UNSAFE_BYTEBUFFER + + // Helper functions for the unsafe version. + static public ushort ReverseBytes(ushort input) + { + return (ushort)(((input & 0x00FFU) << 8) | + ((input & 0xFF00U) >> 8)); + } + static public uint ReverseBytes(uint input) + { + return ((input & 0x000000FFU) << 24) | + ((input & 0x0000FF00U) << 8) | + ((input & 0x00FF0000U) >> 8) | + ((input & 0xFF000000U) >> 24); + } + static public ulong ReverseBytes(ulong input) + { + return (((input & 0x00000000000000FFUL) << 56) | + ((input & 0x000000000000FF00UL) << 40) | + ((input & 0x0000000000FF0000UL) << 24) | + ((input & 0x00000000FF000000UL) << 8) | + ((input & 0x000000FF00000000UL) >> 8) | + ((input & 0x0000FF0000000000UL) >> 24) | + ((input & 0x00FF000000000000UL) >> 40) | + ((input & 0xFF00000000000000UL) >> 56)); + } + +#if !UNSAFE_BYTEBUFFER && (!ENABLE_SPAN_T || !NETSTANDARD2_1) + // Helper functions for the safe (but slower) version. + protected void WriteLittleEndian(int offset, int count, ulong data) + { + if (BitConverter.IsLittleEndian) + { + for (int i = 0; i < count; i++) + { + _buffer.Buffer[offset + i] = (byte)(data >> i * 8); + } + } + else + { + for (int i = 0; i < count; i++) + { + _buffer.Buffer[offset + count - 1 - i] = (byte)(data >> i * 8); + } + } + } + + protected ulong ReadLittleEndian(int offset, int count) + { + AssertOffsetAndLength(offset, count); + ulong r = 0; + if (BitConverter.IsLittleEndian) + { + for (int i = 0; i < count; i++) + { + r |= (ulong)_buffer.Buffer[offset + i] << i * 8; + } + } + else + { + for (int i = 0; i < count; i++) + { + r |= (ulong)_buffer.Buffer[offset + count - 1 - i] << i * 8; + } + } + return r; + } +#elif ENABLE_SPAN_T && NETSTANDARD2_1 + protected void WriteLittleEndian(int offset, int count, ulong data) + { + if (BitConverter.IsLittleEndian) + { + for (int i = 0; i < count; i++) + { + _buffer.Span[offset + i] = (byte)(data >> i * 8); + } + } + else + { + for (int i = 0; i < count; i++) + { + _buffer.Span[offset + count - 1 - i] = (byte)(data >> i * 8); + } + } + } + + protected ulong ReadLittleEndian(int offset, int count) + { + AssertOffsetAndLength(offset, count); + ulong r = 0; + if (BitConverter.IsLittleEndian) + { + for (int i = 0; i < count; i++) + { + r |= (ulong)_buffer.Span[offset + i] << i * 8; + } + } + else + { + for (int i = 0; i < count; i++) + { + r |= (ulong)_buffer.Span[offset + count - 1 - i] << i * 8; + } + } + return r; + } +#endif + + private void AssertOffsetAndLength(int offset, int length) + { +#if !BYTEBUFFER_NO_BOUNDS_CHECK + if (offset < 0 || + offset > _buffer.Length - length) + throw new ArgumentOutOfRangeException(); +#endif + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + + public void PutSbyte(int offset, sbyte value) + { + AssertOffsetAndLength(offset, sizeof(sbyte)); + _buffer.Span[offset] = (byte)value; + } + + public void PutByte(int offset, byte value) + { + AssertOffsetAndLength(offset, sizeof(byte)); + _buffer.Span[offset] = value; + } + + public void PutByte(int offset, byte value, int count) + { + AssertOffsetAndLength(offset, sizeof(byte) * count); + Span span = _buffer.Span.Slice(offset, count); + for (var i = 0; i < span.Length; ++i) + span[i] = value; + } +#else + public void PutSbyte(int offset, sbyte value) + { + AssertOffsetAndLength(offset, sizeof(sbyte)); + _buffer.Buffer[offset] = (byte)value; + } + + public void PutByte(int offset, byte value) + { + AssertOffsetAndLength(offset, sizeof(byte)); + _buffer.Buffer[offset] = value; + } + + public void PutByte(int offset, byte value, int count) + { + AssertOffsetAndLength(offset, sizeof(byte) * count); + for (var i = 0; i < count; ++i) + _buffer.Buffer[offset + i] = value; + } +#endif + + // this method exists in order to conform with Java ByteBuffer standards + public void Put(int offset, byte value) + { + PutByte(offset, value); + } + +#if ENABLE_SPAN_T && UNSAFE_BYTEBUFFER + public unsafe void PutStringUTF8(int offset, string value) + { + AssertOffsetAndLength(offset, value.Length); + fixed (char* s = value) + { + fixed (byte* buffer = &MemoryMarshal.GetReference(_buffer.Span)) + { + Encoding.UTF8.GetBytes(s, value.Length, buffer + offset, Length - offset); + } + } + } +#elif ENABLE_SPAN_T && NETSTANDARD2_1 + public void PutStringUTF8(int offset, string value) + { + AssertOffsetAndLength(offset, value.Length); + Encoding.UTF8.GetBytes(value.AsSpan().Slice(0, value.Length), + _buffer.Span.Slice(offset)); + } +#else + public void PutStringUTF8(int offset, string value) + { + AssertOffsetAndLength(offset, value.Length); + Encoding.UTF8.GetBytes(value, 0, value.Length, + _buffer.Buffer, offset); + } +#endif + +#if UNSAFE_BYTEBUFFER + // Unsafe but more efficient versions of Put*. + public void PutShort(int offset, short value) + { + PutUshort(offset, (ushort)value); + } + + public unsafe void PutUshort(int offset, ushort value) + { + AssertOffsetAndLength(offset, sizeof(ushort)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + Span span = _buffer.Span.Slice(offset); + BinaryPrimitives.WriteUInt16LittleEndian(span, value); +#else + fixed (byte* ptr = _buffer.Buffer) + { + *(ushort*)(ptr + offset) = BitConverter.IsLittleEndian + ? value + : ReverseBytes(value); + } +#endif + } + + public void PutInt(int offset, int value) + { + PutUint(offset, (uint)value); + } + + public unsafe void PutUint(int offset, uint value) + { + AssertOffsetAndLength(offset, sizeof(uint)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + Span span = _buffer.Span.Slice(offset); + BinaryPrimitives.WriteUInt32LittleEndian(span, value); +#else + fixed (byte* ptr = _buffer.Buffer) + { + *(uint*)(ptr + offset) = BitConverter.IsLittleEndian + ? value + : ReverseBytes(value); + } +#endif + } + + public unsafe void PutLong(int offset, long value) + { + PutUlong(offset, (ulong)value); + } + + public unsafe void PutUlong(int offset, ulong value) + { + AssertOffsetAndLength(offset, sizeof(ulong)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + Span span = _buffer.Span.Slice(offset); + BinaryPrimitives.WriteUInt64LittleEndian(span, value); +#else + fixed (byte* ptr = _buffer.Buffer) + { + *(ulong*)(ptr + offset) = BitConverter.IsLittleEndian + ? value + : ReverseBytes(value); + } +#endif + } + + public unsafe void PutFloat(int offset, float value) + { + AssertOffsetAndLength(offset, sizeof(float)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + fixed (byte* ptr = &MemoryMarshal.GetReference(_buffer.Span)) +#else + fixed (byte* ptr = _buffer.Buffer) +#endif + { + if (BitConverter.IsLittleEndian) + { + *(float*)(ptr + offset) = value; + } + else + { + *(uint*)(ptr + offset) = ReverseBytes(*(uint*)(&value)); + } + } + } + + public unsafe void PutDouble(int offset, double value) + { + AssertOffsetAndLength(offset, sizeof(double)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + fixed (byte* ptr = &MemoryMarshal.GetReference(_buffer.Span)) +#else + fixed (byte* ptr = _buffer.Buffer) +#endif + { + if (BitConverter.IsLittleEndian) + { + *(double*)(ptr + offset) = value; + } + else + { + *(ulong*)(ptr + offset) = ReverseBytes(*(ulong*)(&value)); + } + } + } +#else // !UNSAFE_BYTEBUFFER + // Slower versions of Put* for when unsafe code is not allowed. + public void PutShort(int offset, short value) + { + AssertOffsetAndLength(offset, sizeof(short)); + WriteLittleEndian(offset, sizeof(short), (ulong)value); + } + + public void PutUshort(int offset, ushort value) + { + AssertOffsetAndLength(offset, sizeof(ushort)); + WriteLittleEndian(offset, sizeof(ushort), (ulong)value); + } + + public void PutInt(int offset, int value) + { + AssertOffsetAndLength(offset, sizeof(int)); + WriteLittleEndian(offset, sizeof(int), (ulong)value); + } + + public void PutUint(int offset, uint value) + { + AssertOffsetAndLength(offset, sizeof(uint)); + WriteLittleEndian(offset, sizeof(uint), (ulong)value); + } + + public void PutLong(int offset, long value) + { + AssertOffsetAndLength(offset, sizeof(long)); + WriteLittleEndian(offset, sizeof(long), (ulong)value); + } + + public void PutUlong(int offset, ulong value) + { + AssertOffsetAndLength(offset, sizeof(ulong)); + WriteLittleEndian(offset, sizeof(ulong), value); + } + + public void PutFloat(int offset, float value) + { + AssertOffsetAndLength(offset, sizeof(float)); + // TODO(derekbailey): use BitConvert.SingleToInt32Bits() whenever flatbuffers upgrades to a .NET version + // that contains it. + ConversionUnion union; + union.intValue = 0; + union.floatValue = value; + WriteLittleEndian(offset, sizeof(float), (ulong)union.intValue); + } + + public void PutDouble(int offset, double value) + { + AssertOffsetAndLength(offset, sizeof(double)); + WriteLittleEndian(offset, sizeof(double), (ulong)BitConverter.DoubleToInt64Bits(value)); + } + +#endif // UNSAFE_BYTEBUFFER + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + public sbyte GetSbyte(int index) + { + AssertOffsetAndLength(index, sizeof(sbyte)); + return (sbyte)_buffer.ReadOnlySpan[index]; + } + + public byte Get(int index) + { + AssertOffsetAndLength(index, sizeof(byte)); + return _buffer.ReadOnlySpan[index]; + } +#else + public sbyte GetSbyte(int index) + { + AssertOffsetAndLength(index, sizeof(sbyte)); + return (sbyte)_buffer.Buffer[index]; + } + + public byte Get(int index) + { + AssertOffsetAndLength(index, sizeof(byte)); + return _buffer.Buffer[index]; + } +#endif + +#if ENABLE_SPAN_T && UNSAFE_BYTEBUFFER + public unsafe string GetStringUTF8(int startPos, int len) + { + fixed (byte* buffer = &MemoryMarshal.GetReference(_buffer.ReadOnlySpan.Slice(startPos))) + { + return Encoding.UTF8.GetString(buffer, len); + } + } +#elif ENABLE_SPAN_T && NETSTANDARD2_1 + public string GetStringUTF8(int startPos, int len) + { + return Encoding.UTF8.GetString(_buffer.Span.Slice(startPos, len)); + } +#else + public string GetStringUTF8(int startPos, int len) + { + return Encoding.UTF8.GetString(_buffer.Buffer, startPos, len); + } +#endif + +#if UNSAFE_BYTEBUFFER + // Unsafe but more efficient versions of Get*. + public short GetShort(int offset) + { + return (short)GetUshort(offset); + } + + public unsafe ushort GetUshort(int offset) + { + AssertOffsetAndLength(offset, sizeof(ushort)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + ReadOnlySpan span = _buffer.ReadOnlySpan.Slice(offset); + return BinaryPrimitives.ReadUInt16LittleEndian(span); +#else + fixed (byte* ptr = _buffer.Buffer) + { + return BitConverter.IsLittleEndian + ? *(ushort*)(ptr + offset) + : ReverseBytes(*(ushort*)(ptr + offset)); + } +#endif + } + + public int GetInt(int offset) + { + return (int)GetUint(offset); + } + + public unsafe uint GetUint(int offset) + { + AssertOffsetAndLength(offset, sizeof(uint)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + ReadOnlySpan span = _buffer.ReadOnlySpan.Slice(offset); + return BinaryPrimitives.ReadUInt32LittleEndian(span); +#else + fixed (byte* ptr = _buffer.Buffer) + { + return BitConverter.IsLittleEndian + ? *(uint*)(ptr + offset) + : ReverseBytes(*(uint*)(ptr + offset)); + } +#endif + } + + public long GetLong(int offset) + { + return (long)GetUlong(offset); + } + + public unsafe ulong GetUlong(int offset) + { + AssertOffsetAndLength(offset, sizeof(ulong)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + ReadOnlySpan span = _buffer.ReadOnlySpan.Slice(offset); + return BinaryPrimitives.ReadUInt64LittleEndian(span); +#else + fixed (byte* ptr = _buffer.Buffer) + { + return BitConverter.IsLittleEndian + ? *(ulong*)(ptr + offset) + : ReverseBytes(*(ulong*)(ptr + offset)); + } +#endif + } + + public unsafe float GetFloat(int offset) + { + AssertOffsetAndLength(offset, sizeof(float)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + fixed (byte* ptr = &MemoryMarshal.GetReference(_buffer.ReadOnlySpan)) +#else + fixed (byte* ptr = _buffer.Buffer) +#endif + { + if (BitConverter.IsLittleEndian) + { + return *(float*)(ptr + offset); + } + else + { + uint uvalue = ReverseBytes(*(uint*)(ptr + offset)); + return *(float*)(&uvalue); + } + } + } + + public unsafe double GetDouble(int offset) + { + AssertOffsetAndLength(offset, sizeof(double)); +#if ENABLE_SPAN_T // && UNSAFE_BYTEBUFFER + fixed (byte* ptr = &MemoryMarshal.GetReference(_buffer.ReadOnlySpan)) +#else + fixed (byte* ptr = _buffer.Buffer) +#endif + { + if (BitConverter.IsLittleEndian) + { + return *(double*)(ptr + offset); + } + else + { + ulong uvalue = ReverseBytes(*(ulong*)(ptr + offset)); + return *(double*)(&uvalue); + } + } + } +#else // !UNSAFE_BYTEBUFFER + // Slower versions of Get* for when unsafe code is not allowed. + public short GetShort(int index) + { + return (short)ReadLittleEndian(index, sizeof(short)); + } + + public ushort GetUshort(int index) + { + return (ushort)ReadLittleEndian(index, sizeof(ushort)); + } + + public int GetInt(int index) + { + return (int)ReadLittleEndian(index, sizeof(int)); + } + + public uint GetUint(int index) + { + return (uint)ReadLittleEndian(index, sizeof(uint)); + } + + public long GetLong(int index) + { + return (long)ReadLittleEndian(index, sizeof(long)); + } + + public ulong GetUlong(int index) + { + return ReadLittleEndian(index, sizeof(ulong)); + } + + public float GetFloat(int index) + { + // TODO(derekbailey): use BitConvert.Int32BitsToSingle() whenever flatbuffers upgrades to a .NET version + // that contains it. + ConversionUnion union; + union.floatValue = 0; + union.intValue = (int)ReadLittleEndian(index, sizeof(float)); + return union.floatValue; + } + + public double GetDouble(int index) + { + return BitConverter.Int64BitsToDouble((long)ReadLittleEndian(index, sizeof(double))); + } +#endif // UNSAFE_BYTEBUFFER + + /// + /// Copies an array of type T into this buffer, ending at the given + /// offset into this buffer. The starting offset is calculated based on the length + /// of the array and is the value returned. + /// + /// The type of the input data (must be a struct) + /// The offset into this buffer where the copy will end + /// The array to copy data from + /// The 'start' location of this buffer now, after the copy completed + public int Put(int offset, T[] x) + where T : struct + { + if (x == null) + { + throw new ArgumentNullException("Cannot put a null array"); + } + + return Put(offset, new ArraySegment(x)); + } + + /// + /// Copies an array segment of type T into this buffer, ending at the + /// given offset into this buffer. The starting offset is calculated + /// based on the count of the array segment and is the value returned. + /// + /// The type of the input data (must be a struct) + /// + /// The offset into this buffer where the copy + /// will end + /// The array segment to copy data from + /// The 'start' location of this buffer now, after the copy + /// completed + public int Put(int offset, ArraySegment x) + where T : struct + { + if (x.Equals(default(ArraySegment))) + { + throw new ArgumentNullException("Cannot put a uninitialized array segment"); + } + + if (x.Count == 0) + { + throw new ArgumentException("Cannot put an empty array"); + } + + if (!IsSupportedType()) + { + throw new ArgumentException("Cannot put an array of type " + + typeof(T) + " into this buffer"); + } + + if (BitConverter.IsLittleEndian) + { + int numBytes = ByteBuffer.ArraySize(x); + offset -= numBytes; + AssertOffsetAndLength(offset, numBytes); + // if we are LE, just do a block copy +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + MemoryMarshal.Cast(x).CopyTo(_buffer.Span.Slice(offset, numBytes)); +#else + var srcOffset = ByteBuffer.SizeOf() * x.Offset; + Buffer.BlockCopy(x.Array, srcOffset, _buffer.Buffer, offset, numBytes); +#endif + } + else + { + throw new NotImplementedException("Big Endian Support not implemented yet " + + "for putting typed arrays"); + // if we are BE, we have to swap each element by itself + //for(int i = x.Length - 1; i >= 0; i--) + //{ + // todo: low priority, but need to genericize the Put() functions + //} + } + return offset; + } + + /// + /// Copies an array segment of type T into this buffer, ending at the + /// given offset into this buffer. The starting offset is calculated + /// based on the count of the array segment and is the value returned. + /// + /// The type of the input data (must be a struct) + /// + /// The offset into this buffer where the copy + /// will end + /// The pointer to copy data from + /// The number of bytes to copy + /// The 'start' location of this buffer now, after the copy + /// completed + public int Put(int offset, IntPtr ptr, int sizeInBytes) + where T : struct + { + if (ptr == IntPtr.Zero) + { + throw new ArgumentNullException("Cannot add a null pointer"); + } + + if(sizeInBytes <= 0) + { + throw new ArgumentException("Cannot put an empty array"); + } + + if (!IsSupportedType()) + { + throw new ArgumentException("Cannot put an array of type " + + typeof(T) + " into this buffer"); + } + + if (BitConverter.IsLittleEndian) + { + offset -= sizeInBytes; + AssertOffsetAndLength(offset, sizeInBytes); + // if we are LE, just do a block copy +#if ENABLE_SPAN_T && UNSAFE_BYTEBUFFER + unsafe + { + var span = new Span(ptr.ToPointer(), sizeInBytes); + span.CopyTo(_buffer.Span.Slice(offset, sizeInBytes)); + } +#else + Marshal.Copy(ptr, _buffer.Buffer, offset, sizeInBytes); +#endif + } + else + { + throw new NotImplementedException("Big Endian Support not implemented yet " + + "for putting typed arrays"); + // if we are BE, we have to swap each element by itself + //for(int i = x.Length - 1; i >= 0; i--) + //{ + // todo: low priority, but need to genericize the Put() functions + //} + } + return offset; + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + public int Put(int offset, Span x) + where T : struct + { + if (x.Length == 0) + { + throw new ArgumentException("Cannot put an empty array"); + } + + if (!IsSupportedType()) + { + throw new ArgumentException("Cannot put an array of type " + + typeof(T) + " into this buffer"); + } + + if (BitConverter.IsLittleEndian) + { + int numBytes = ByteBuffer.ArraySize(x); + offset -= numBytes; + AssertOffsetAndLength(offset, numBytes); + // if we are LE, just do a block copy + MemoryMarshal.Cast(x).CopyTo(_buffer.Span.Slice(offset, numBytes)); + } + else + { + throw new NotImplementedException("Big Endian Support not implemented yet " + + "for putting typed arrays"); + // if we are BE, we have to swap each element by itself + //for(int i = x.Length - 1; i >= 0; i--) + //{ + // todo: low priority, but need to genericize the Put() functions + //} + } + return offset; + } +#endif + } +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/ByteBufferUtil.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/ByteBufferUtil.cs new file mode 100644 index 00000000..a5f2fb94 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/ByteBufferUtil.cs @@ -0,0 +1,39 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System; + +namespace Google.FlatBuffers +{ + /// + /// Class that collects utility functions around `ByteBuffer`. + /// + public class ByteBufferUtil + { + // Extract the size prefix from a `ByteBuffer`. + public static int GetSizePrefix(ByteBuffer bb) { + return bb.GetInt(bb.Position); + } + + // Create a duplicate of a size-prefixed `ByteBuffer` that has its position + // advanced just past the size prefix. + public static ByteBuffer RemoveSizePrefix(ByteBuffer bb) { + ByteBuffer s = bb.Duplicate(); + s.Position += FlatBufferConstants.SizePrefixLength; + return s; + } + } +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferBuilder.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferBuilder.cs new file mode 100644 index 00000000..e08db847 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferBuilder.cs @@ -0,0 +1,1023 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +using System; +using System.Collections.Generic; +using System.Text; + +/// @file +/// @addtogroup flatbuffers_csharp_api +/// @{ + +namespace Google.FlatBuffers +{ + /// + /// Responsible for building up and accessing a FlatBuffer formatted byte + /// array (via ByteBuffer). + /// + public class FlatBufferBuilder + { + private int _space; + private ByteBuffer _bb; + private int _minAlign = 1; + + // The vtable for the current table (if _vtableSize >= 0) + private int[] _vtable = new int[16]; + // The size of the vtable. -1 indicates no vtable + private int _vtableSize = -1; + // Starting offset of the current struct/table. + private int _objectStart; + // List of offsets of all vtables. + private int[] _vtables = new int[16]; + // Number of entries in `vtables` in use. + private int _numVtables = 0; + // For the current vector being built. + private int _vectorNumElems = 0; + + // For CreateSharedString + private Dictionary _sharedStringMap = null; + + /// + /// Create a FlatBufferBuilder with a given initial size. + /// + /// + /// The initial size to use for the internal buffer. + /// + public FlatBufferBuilder(int initialSize) + { + if (initialSize <= 0) + throw new ArgumentOutOfRangeException("initialSize", + initialSize, "Must be greater than zero"); + _space = initialSize; + _bb = new ByteBuffer(initialSize); + } + + /// + /// Create a FlatBufferBuilder backed by the pased in ByteBuffer + /// + /// The ByteBuffer to write to + public FlatBufferBuilder(ByteBuffer buffer) + { + _bb = buffer; + _space = buffer.Length; + buffer.Reset(); + } + + /// + /// Reset the FlatBufferBuilder by purging all data that it holds. + /// + public void Clear() + { + _space = _bb.Length; + _bb.Reset(); + _minAlign = 1; + while (_vtableSize > 0) _vtable[--_vtableSize] = 0; + _vtableSize = -1; + _objectStart = 0; + _numVtables = 0; + _vectorNumElems = 0; + if (_sharedStringMap != null) + { + _sharedStringMap.Clear(); + } + } + + /// + /// Gets and sets a Boolean to disable the optimization when serializing + /// default values to a Table. + /// + /// In order to save space, fields that are set to their default value + /// don't get serialized into the buffer. + /// + public bool ForceDefaults { get; set; } + + /// @cond FLATBUFFERS_INTERNAL + + public int Offset { get { return _bb.Length - _space; } } + + public void Pad(int size) + { + _bb.PutByte(_space -= size, 0, size); + } + + // Doubles the size of the ByteBuffer, and copies the old data towards + // the end of the new buffer (since we build the buffer backwards). + void GrowBuffer() + { + _bb.GrowFront(_bb.Length << 1); + } + + // Prepare to write an element of `size` after `additional_bytes` + // have been written, e.g. if you write a string, you need to align + // such the int length field is aligned to SIZEOF_INT, and the string + // data follows it directly. + // If all you need to do is align, `additional_bytes` will be 0. + public void Prep(int size, int additionalBytes) + { + // Track the biggest thing we've ever aligned to. + if (size > _minAlign) + _minAlign = size; + // Find the amount of alignment needed such that `size` is properly + // aligned after `additional_bytes` + var alignSize = + ((~((int)_bb.Length - _space + additionalBytes)) + 1) & + (size - 1); + // Reallocate the buffer if needed. + while (_space < alignSize + size + additionalBytes) + { + var oldBufSize = (int)_bb.Length; + GrowBuffer(); + _space += (int)_bb.Length - oldBufSize; + + } + if (alignSize > 0) + Pad(alignSize); + } + + public void PutBool(bool x) + { + _bb.PutByte(_space -= sizeof(byte), (byte)(x ? 1 : 0)); + } + + public void PutSbyte(sbyte x) + { + _bb.PutSbyte(_space -= sizeof(sbyte), x); + } + + public void PutByte(byte x) + { + _bb.PutByte(_space -= sizeof(byte), x); + } + + public void PutShort(short x) + { + _bb.PutShort(_space -= sizeof(short), x); + } + + public void PutUshort(ushort x) + { + _bb.PutUshort(_space -= sizeof(ushort), x); + } + + public void PutInt(int x) + { + _bb.PutInt(_space -= sizeof(int), x); + } + + public void PutUint(uint x) + { + _bb.PutUint(_space -= sizeof(uint), x); + } + + public void PutLong(long x) + { + _bb.PutLong(_space -= sizeof(long), x); + } + + public void PutUlong(ulong x) + { + _bb.PutUlong(_space -= sizeof(ulong), x); + } + + public void PutFloat(float x) + { + _bb.PutFloat(_space -= sizeof(float), x); + } + + /// + /// Puts an array of type T into this builder at the + /// current offset + /// + /// The type of the input data + /// The array to copy data from + public void Put(T[] x) + where T : struct + { + _space = _bb.Put(_space, x); + } + + /// + /// Puts an array of type T into this builder at the + /// current offset + /// + /// The type of the input data + /// The array segment to copy data from + public void Put(ArraySegment x) + where T : struct + { + _space = _bb.Put(_space, x); + } + + /// + /// Puts data of type T into this builder at the + /// current offset + /// + /// The type of the input data + /// The pointer to copy data from + /// The length of the data in bytes + public void Put(IntPtr ptr, int sizeInBytes) + where T : struct + { + _space = _bb.Put(_space, ptr, sizeInBytes); + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + /// + /// Puts a span of type T into this builder at the + /// current offset + /// + /// The type of the input data + /// The span to copy data from + public void Put(Span x) + where T : struct + { + _space = _bb.Put(_space, x); + } +#endif + + public void PutDouble(double x) + { + _bb.PutDouble(_space -= sizeof(double), x); + } + /// @endcond + + /// + /// Add a `bool` to the buffer (aligns the data and grows if necessary). + /// + /// The `bool` to add to the buffer. + public void AddBool(bool x) { Prep(sizeof(byte), 0); PutBool(x); } + + /// + /// Add a `sbyte` to the buffer (aligns the data and grows if necessary). + /// + /// The `sbyte` to add to the buffer. + public void AddSbyte(sbyte x) { Prep(sizeof(sbyte), 0); PutSbyte(x); } + + /// + /// Add a `byte` to the buffer (aligns the data and grows if necessary). + /// + /// The `byte` to add to the buffer. + public void AddByte(byte x) { Prep(sizeof(byte), 0); PutByte(x); } + + /// + /// Add a `short` to the buffer (aligns the data and grows if necessary). + /// + /// The `short` to add to the buffer. + public void AddShort(short x) { Prep(sizeof(short), 0); PutShort(x); } + + /// + /// Add an `ushort` to the buffer (aligns the data and grows if necessary). + /// + /// The `ushort` to add to the buffer. + public void AddUshort(ushort x) { Prep(sizeof(ushort), 0); PutUshort(x); } + + /// + /// Add an `int` to the buffer (aligns the data and grows if necessary). + /// + /// The `int` to add to the buffer. + public void AddInt(int x) { Prep(sizeof(int), 0); PutInt(x); } + + /// + /// Add an `uint` to the buffer (aligns the data and grows if necessary). + /// + /// The `uint` to add to the buffer. + public void AddUint(uint x) { Prep(sizeof(uint), 0); PutUint(x); } + + /// + /// Add a `long` to the buffer (aligns the data and grows if necessary). + /// + /// The `long` to add to the buffer. + public void AddLong(long x) { Prep(sizeof(long), 0); PutLong(x); } + + /// + /// Add an `ulong` to the buffer (aligns the data and grows if necessary). + /// + /// The `ulong` to add to the buffer. + public void AddUlong(ulong x) { Prep(sizeof(ulong), 0); PutUlong(x); } + + /// + /// Add a `float` to the buffer (aligns the data and grows if necessary). + /// + /// The `float` to add to the buffer. + public void AddFloat(float x) { Prep(sizeof(float), 0); PutFloat(x); } + + /// + /// Add an array of type T to the buffer (aligns the data and grows if necessary). + /// + /// The type of the input data + /// The array to copy data from + public void Add(T[] x) + where T : struct + { + Add(new ArraySegment(x)); + } + + /// + /// Add an array of type T to the buffer (aligns the data and grows if necessary). + /// + /// The type of the input data + /// The array segment to copy data from + public void Add(ArraySegment x) + where T : struct + { + if (x == null) + { + throw new ArgumentNullException("Cannot add a null array"); + } + + if( x.Count == 0) + { + // don't do anything if the array is empty + return; + } + + if(!ByteBuffer.IsSupportedType()) + { + throw new ArgumentException("Cannot add this Type array to the builder"); + } + + int size = ByteBuffer.SizeOf(); + // Need to prep on size (for data alignment) and then we pass the + // rest of the length (minus 1) as additional bytes + Prep(size, size * (x.Count - 1)); + Put(x); + } + + /// + /// Adds the data of type T pointed to by the given pointer to the buffer (aligns the data and grows if necessary). + /// + /// The type of the input data + /// The pointer to copy data from + /// The data size in bytes + public void Add(IntPtr ptr, int sizeInBytes) + where T : struct + { + if(sizeInBytes == 0) + { + // don't do anything if the array is empty + return; + } + + if (ptr == IntPtr.Zero) + { + throw new ArgumentNullException("Cannot add a null pointer"); + } + + if(sizeInBytes < 0) + { + throw new ArgumentOutOfRangeException("sizeInBytes", "sizeInBytes cannot be negative"); + } + + if(!ByteBuffer.IsSupportedType()) + { + throw new ArgumentException("Cannot add this Type array to the builder"); + } + + int size = ByteBuffer.SizeOf(); + if((sizeInBytes % size) != 0) + { + throw new ArgumentException("The given size in bytes " + sizeInBytes + " doesn't match the element size of T ( " + size + ")", "sizeInBytes"); + } + + // Need to prep on size (for data alignment) and then we pass the + // rest of the length (minus 1) as additional bytes + Prep(size, sizeInBytes - size); + Put(ptr, sizeInBytes); + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + /// + /// Add a span of type T to the buffer (aligns the data and grows if necessary). + /// + /// The type of the input data + /// The span to copy data from + public void Add(Span x) + where T : struct + { + if (!ByteBuffer.IsSupportedType()) + { + throw new ArgumentException("Cannot add this Type array to the builder"); + } + + int size = ByteBuffer.SizeOf(); + // Need to prep on size (for data alignment) and then we pass the + // rest of the length (minus 1) as additional bytes + Prep(size, size * (x.Length - 1)); + Put(x); + } +#endif + + /// + /// Add a `double` to the buffer (aligns the data and grows if necessary). + /// + /// The `double` to add to the buffer. + public void AddDouble(double x) { Prep(sizeof(double), 0); + PutDouble(x); } + + /// + /// Adds an offset, relative to where it will be written. + /// + /// The offset to add to the buffer. + public void AddOffset(int off) + { + Prep(sizeof(int), 0); // Ensure alignment is already done. + if (off > Offset) + throw new ArgumentException(); + + if (off != 0) + off = Offset - off + sizeof(int); + PutInt(off); + } + + /// @cond FLATBUFFERS_INTERNAL + public void StartVector(int elemSize, int count, int alignment) + { + NotNested(); + _vectorNumElems = count; + Prep(sizeof(int), elemSize * count); + Prep(alignment, elemSize * count); // Just in case alignment > int. + } + /// @endcond + + /// + /// Writes data necessary to finish a vector construction. + /// + public VectorOffset EndVector() + { + PutInt(_vectorNumElems); + return new VectorOffset(Offset); + } + + /// + /// Creates a vector of tables. + /// + /// Offsets of the tables. + public VectorOffset CreateVectorOfTables(Offset[] offsets) where T : struct + { + NotNested(); + StartVector(sizeof(int), offsets.Length, sizeof(int)); + for (int i = offsets.Length - 1; i >= 0; i--) AddOffset(offsets[i].Value); + return EndVector(); + } + + /// @cond FLATBUFFERS_INTENRAL + public void Nested(int obj) + { + // Structs are always stored inline, so need to be created right + // where they are used. You'll get this assert if you created it + // elsewhere. + if (obj != Offset) + throw new Exception( + "FlatBuffers: struct must be serialized inline."); + } + + public void NotNested() + { + // You should not be creating any other objects or strings/vectors + // while an object is being constructed + if (_vtableSize >= 0) + throw new Exception( + "FlatBuffers: object serialization must not be nested."); + } + + public void StartTable(int numfields) + { + if (numfields < 0) + throw new ArgumentOutOfRangeException("Flatbuffers: invalid numfields"); + + NotNested(); + + if (_vtable.Length < numfields) + _vtable = new int[numfields]; + + _vtableSize = numfields; + _objectStart = Offset; + } + + + // Set the current vtable at `voffset` to the current location in the + // buffer. + public void Slot(int voffset) + { + if (voffset >= _vtableSize) + throw new IndexOutOfRangeException("Flatbuffers: invalid voffset"); + + _vtable[voffset] = Offset; + } + + /// + /// Adds a Boolean to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddBool(int o, bool x, bool d) { if (ForceDefaults || x != d) { AddBool(x); Slot(o); } } + + /// + /// Adds a Boolean to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable boolean value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddBool(int o, bool? x) { if (x.HasValue) { AddBool(x.Value); Slot(o); } } + + + /// + /// Adds a SByte to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddSbyte(int o, sbyte x, sbyte d) { if (ForceDefaults || x != d) { AddSbyte(x); Slot(o); } } + + /// + /// Adds a SByte to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable sbyte value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddSbyte(int o, sbyte? x) { if (x.HasValue) { AddSbyte(x.Value); Slot(o); } } + + /// + /// Adds a Byte to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddByte(int o, byte x, byte d) { if (ForceDefaults || x != d) { AddByte(x); Slot(o); } } + + /// + /// Adds a Byte to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable byte value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddByte(int o, byte? x) { if (x.HasValue) { AddByte(x.Value); Slot(o); } } + + /// + /// Adds a Int16 to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddShort(int o, short x, int d) { if (ForceDefaults || x != d) { AddShort(x); Slot(o); } } + + /// + /// Adds a Int16 to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable int16 value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddShort(int o, short? x) { if (x.HasValue) { AddShort(x.Value); Slot(o); } } + + /// + /// Adds a UInt16 to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddUshort(int o, ushort x, ushort d) { if (ForceDefaults || x != d) { AddUshort(x); Slot(o); } } + + /// + /// Adds a Uint16 to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable uint16 value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddUshort(int o, ushort? x) { if (x.HasValue) { AddUshort(x.Value); Slot(o); } } + + /// + /// Adds an Int32 to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddInt(int o, int x, int d) { if (ForceDefaults || x != d) { AddInt(x); Slot(o); } } + + /// + /// Adds a Int32 to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable int32 value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddInt(int o, int? x) { if (x.HasValue) { AddInt(x.Value); Slot(o); } } + + /// + /// Adds a UInt32 to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddUint(int o, uint x, uint d) { if (ForceDefaults || x != d) { AddUint(x); Slot(o); } } + + /// + /// Adds a UInt32 to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable uint32 value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddUint(int o, uint? x) { if (x.HasValue) { AddUint(x.Value); Slot(o); } } + + /// + /// Adds an Int64 to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddLong(int o, long x, long d) { if (ForceDefaults || x != d) { AddLong(x); Slot(o); } } + + /// + /// Adds a Int64 to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable int64 value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddLong(int o, long? x) { if (x.HasValue) { AddLong(x.Value); Slot(o); } } + + /// + /// Adds a UInt64 to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddUlong(int o, ulong x, ulong d) { if (ForceDefaults || x != d) { AddUlong(x); Slot(o); } } + + /// + /// Adds a UInt64 to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable int64 value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddUlong(int o, ulong? x) { if (x.HasValue) { AddUlong(x.Value); Slot(o); } } + + /// + /// Adds a Single to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddFloat(int o, float x, double d) { if (ForceDefaults || x != d) { AddFloat(x); Slot(o); } } + + /// + /// Adds a Single to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable single value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddFloat(int o, float? x) { if (x.HasValue) { AddFloat(x.Value); Slot(o); } } + + /// + /// Adds a Double to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// and is false, the value will be skipped. + /// The default value to compare the value against + public void AddDouble(int o, double x, double d) { if (ForceDefaults || x != d) { AddDouble(x); Slot(o); } } + + /// + /// Adds a Double to the Table at index `o` in its vtable using the nullable value `x` + /// + /// The index into the vtable + /// The nullable double value to put into the buffer. If it doesn't have a value + /// it will skip writing to the buffer. + public void AddDouble(int o, double? x) { if (x.HasValue) { AddDouble(x.Value); Slot(o); } } + + /// + /// Adds a buffer offset to the Table at index `o` in its vtable using the value `x` and default `d` + /// + /// The index into the vtable + /// The value to put into the buffer. If the value is equal to the default + /// the value will be skipped. + /// The default value to compare the value against + public void AddOffset(int o, int x, int d) { if (x != d) { AddOffset(x); Slot(o); } } + /// @endcond + + /// + /// Encode the string `s` in the buffer using UTF-8. + /// + /// The string to encode. + /// + /// The offset in the buffer where the encoded string starts. + /// + public StringOffset CreateString(string s) + { + if (s == null) + { + return new StringOffset(0); + } + NotNested(); + AddByte(0); + var utf8StringLen = Encoding.UTF8.GetByteCount(s); + StartVector(1, utf8StringLen, 1); + _bb.PutStringUTF8(_space -= utf8StringLen, s); + return new StringOffset(EndVector().Value); + } + + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + /// + /// Creates a string in the buffer from a Span containing + /// a UTF8 string. + /// + /// the UTF8 string to add to the buffer + /// + /// The offset in the buffer where the encoded string starts. + /// + public StringOffset CreateUTF8String(Span chars) + { + NotNested(); + AddByte(0); + var utf8StringLen = chars.Length; + StartVector(1, utf8StringLen, 1); + _space = _bb.Put(_space, chars); + return new StringOffset(EndVector().Value); + } +#endif + + /// + /// Store a string in the buffer, which can contain any binary data. + /// If a string with this exact contents has already been serialized before, + /// instead simply returns the offset of the existing string. + /// + /// The string to encode. + /// + /// The offset in the buffer where the encoded string starts. + /// + public StringOffset CreateSharedString(string s) + { + if (s == null) + { + return new StringOffset(0); + } + + if (_sharedStringMap == null) + { + _sharedStringMap = new Dictionary(); + } + + if (_sharedStringMap.ContainsKey(s)) + { + return _sharedStringMap[s]; + } + + var stringOffset = CreateString(s); + _sharedStringMap.Add(s, stringOffset); + return stringOffset; + } + + /// @cond FLATBUFFERS_INTERNAL + // Structs are stored inline, so nothing additional is being added. + // `d` is always 0. + public void AddStruct(int voffset, int x, int d) + { + if (x != d) + { + Nested(x); + Slot(voffset); + } + } + + public int EndTable() + { + if (_vtableSize < 0) + throw new InvalidOperationException( + "Flatbuffers: calling EndTable without a StartTable"); + + AddInt((int)0); + var vtableloc = Offset; + // Write out the current vtable. + int i = _vtableSize - 1; + // Trim trailing zeroes. + for (; i >= 0 && _vtable[i] == 0; i--) {} + int trimmedSize = i + 1; + for (; i >= 0 ; i--) { + // Offset relative to the start of the table. + short off = (short)(_vtable[i] != 0 + ? vtableloc - _vtable[i] + : 0); + AddShort(off); + + // clear out written entry + _vtable[i] = 0; + } + + const int standardFields = 2; // The fields below: + AddShort((short)(vtableloc - _objectStart)); + AddShort((short)((trimmedSize + standardFields) * + sizeof(short))); + + // Search for an existing vtable that matches the current one. + int existingVtable = 0; + for (i = 0; i < _numVtables; i++) { + int vt1 = _bb.Length - _vtables[i]; + int vt2 = _space; + short len = _bb.GetShort(vt1); + if (len == _bb.GetShort(vt2)) { + for (int j = sizeof(short); j < len; j += sizeof(short)) { + if (_bb.GetShort(vt1 + j) != _bb.GetShort(vt2 + j)) { + goto endLoop; + } + } + existingVtable = _vtables[i]; + break; + } + + endLoop: { } + } + + if (existingVtable != 0) { + // Found a match: + // Remove the current vtable. + _space = _bb.Length - vtableloc; + // Point table to existing vtable. + _bb.PutInt(_space, existingVtable - vtableloc); + } else { + // No match: + // Add the location of the current vtable to the list of + // vtables. + if (_numVtables == _vtables.Length) + { + // Arrays.CopyOf(vtables num_vtables * 2); + var newvtables = new int[ _numVtables * 2]; + Array.Copy(_vtables, newvtables, _vtables.Length); + + _vtables = newvtables; + }; + _vtables[_numVtables++] = Offset; + // Point table to current vtable. + _bb.PutInt(_bb.Length - vtableloc, Offset - vtableloc); + } + + _vtableSize = -1; + return vtableloc; + } + + // This checks a required field has been set in a given table that has + // just been constructed. + public void Required(int table, int field) + { + int table_start = _bb.Length - table; + int vtable_start = table_start - _bb.GetInt(table_start); + bool ok = _bb.GetShort(vtable_start + field) != 0; + // If this fails, the caller will show what field needs to be set. + if (!ok) + throw new InvalidOperationException("FlatBuffers: field " + field + + " must be set"); + } + /// @endcond + + /// + /// Finalize a buffer, pointing to the given `root_table`. + /// + /// + /// An offset to be added to the buffer. + /// + /// + /// Whether to prefix the size to the buffer. + /// + protected void Finish(int rootTable, bool sizePrefix) + { + Prep(_minAlign, sizeof(int) + (sizePrefix ? sizeof(int) : 0)); + AddOffset(rootTable); + if (sizePrefix) { + AddInt(_bb.Length - _space); + } + _bb.Position = _space; + } + + /// + /// Finalize a buffer, pointing to the given `root_table`. + /// + /// + /// An offset to be added to the buffer. + /// + public void Finish(int rootTable) + { + Finish(rootTable, false); + } + + /// + /// Finalize a buffer, pointing to the given `root_table`, with the size prefixed. + /// + /// + /// An offset to be added to the buffer. + /// + public void FinishSizePrefixed(int rootTable) + { + Finish(rootTable, true); + } + + /// + /// Get the ByteBuffer representing the FlatBuffer. + /// + /// + /// This is typically only called after you call `Finish()`. + /// The actual data starts at the ByteBuffer's current position, + /// not necessarily at `0`. + /// + /// + /// Returns the ByteBuffer for this FlatBuffer. + /// + public ByteBuffer DataBuffer { get { return _bb; } } + + /// + /// A utility function to copy and return the ByteBuffer data as a + /// `byte[]`. + /// + /// + /// A full copy of the FlatBuffer data. + /// + public byte[] SizedByteArray() + { + return _bb.ToSizedArray(); + } + + /// + /// Finalize a buffer, pointing to the given `rootTable`. + /// + /// + /// An offset to be added to the buffer. + /// + /// + /// A FlatBuffer file identifier to be added to the buffer before + /// `root_table`. + /// + /// + /// Whether to prefix the size to the buffer. + /// + protected void Finish(int rootTable, string fileIdentifier, bool sizePrefix) + { + Prep(_minAlign, sizeof(int) + (sizePrefix ? sizeof(int) : 0) + + FlatBufferConstants.FileIdentifierLength); + if (fileIdentifier.Length != + FlatBufferConstants.FileIdentifierLength) + throw new ArgumentException( + "FlatBuffers: file identifier must be length " + + FlatBufferConstants.FileIdentifierLength, + "fileIdentifier"); + for (int i = FlatBufferConstants.FileIdentifierLength - 1; i >= 0; + i--) + { + AddByte((byte)fileIdentifier[i]); + } + Finish(rootTable, sizePrefix); + } + + /// + /// Finalize a buffer, pointing to the given `rootTable`. + /// + /// + /// An offset to be added to the buffer. + /// + /// + /// A FlatBuffer file identifier to be added to the buffer before + /// `root_table`. + /// + public void Finish(int rootTable, string fileIdentifier) + { + Finish(rootTable, fileIdentifier, false); + } + + /// + /// Finalize a buffer, pointing to the given `rootTable`, with the size prefixed. + /// + /// + /// An offset to be added to the buffer. + /// + /// + /// A FlatBuffer file identifier to be added to the buffer before + /// `root_table`. + /// + public void FinishSizePrefixed(int rootTable, string fileIdentifier) + { + Finish(rootTable, fileIdentifier, true); + } + } +} + +/// @} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferConstants.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferConstants.cs new file mode 100644 index 00000000..51a5d6e8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferConstants.cs @@ -0,0 +1,37 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Google.FlatBuffers +{ + public static class FlatBufferConstants + { + public const int FileIdentifierLength = 4; + public const int SizePrefixLength = 4; + /** A version identifier to force a compile error if someone + accidentally tries to build generated code with a runtime of + two mismatched version. Versions need to always match, as + the runtime and generated code are modified in sync. + Changes to the C# implementation need to be sure to change + the version here and in the code generator on every possible + incompatible change */ + public static void FLATBUFFERS_23_5_26() {} + } +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferVerify.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferVerify.cs new file mode 100644 index 00000000..15064e8a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBufferVerify.cs @@ -0,0 +1,822 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +using System; +using System.Reflection;using System.Collections.Generic; +using System.IO; + +namespace Google.FlatBuffers +{ + + /// + /// The Class of the Verifier Options + /// + public class Options + { + public const int DEFAULT_MAX_DEPTH = 64; + public const int DEFAULT_MAX_TABLES = 1000000; + + private int max_depth = 0; + private int max_tables = 0; + private bool string_end_check = false; + private bool alignment_check = false; + + public Options() + { + max_depth = DEFAULT_MAX_DEPTH; + max_tables = DEFAULT_MAX_TABLES; + string_end_check = true; + alignment_check = true; + } + + public Options(int maxDepth, int maxTables, bool stringEndCheck, bool alignmentCheck) + { + max_depth = maxDepth; + max_tables = maxTables; + string_end_check = stringEndCheck; + alignment_check = alignmentCheck; + } + /// Maximum depth of nested tables allowed in a valid flatbuffer. + public int maxDepth + { + get { return max_depth; } + set { max_depth = value; } + } + /// Maximum number of tables allowed in a valid flatbuffer. + public int maxTables + { + get { return max_tables; } + set { max_tables = value; } + } + /// Check that string contains its null terminator + public bool stringEndCheck + { + get { return string_end_check; } + set { string_end_check = value; } + } + /// Check alignment of elements + public bool alignmentCheck + { + get { return alignment_check; } + set { alignment_check = value; } + } + } + + public struct checkElementStruct + { + public bool elementValid; + public uint elementOffset; + } + + public delegate bool VerifyTableAction(Verifier verifier, uint tablePos); + public delegate bool VerifyUnionAction(Verifier verifier, byte typeId, uint tablePos); + + /// + /// The Main Class of the FlatBuffer Verifier + /// + public class Verifier + { + private ByteBuffer verifier_buffer = null; + private Options verifier_options = null; + private int depth_cnt = 0; + private int num_tables_cnt = 0; + + public const int SIZE_BYTE = 1; + public const int SIZE_INT = 4; + public const int SIZE_U_OFFSET = 4; + public const int SIZE_S_OFFSET = 4; + public const int SIZE_V_OFFSET = 2; + public const int SIZE_PREFIX_LENGTH = FlatBufferConstants.SizePrefixLength; // default size = 4 + public const int FLATBUFFERS_MAX_BUFFER_SIZE = System.Int32.MaxValue; // default size = 2147483647 + public const int FILE_IDENTIFIER_LENGTH = FlatBufferConstants.FileIdentifierLength; // default size = 4 + + /// The Base Constructor of the Verifier object + public Verifier() + { + // Verifier buffer + verifier_buffer = null; + // Verifier settings + verifier_options = null; + // Depth counter + depth_cnt = 0; + // Tables counter + num_tables_cnt = 0; + } + + /// The Constructor of the Verifier object with input parameters: ByteBuffer and/or Options + /// Input flat byte buffer defined as ByteBuffer type + /// Options object with settings for the coniguration the Verifier + public Verifier(ByteBuffer buf, Options options = null) + { + verifier_buffer = buf; + verifier_options = options ?? new Options(); + depth_cnt = 0; + num_tables_cnt = 0; + } + + /// Bytes Buffer for Verify + public ByteBuffer Buf + { + get { return verifier_buffer; } + set { verifier_buffer = value; } + } + /// Options of the Verifier + public Options options + { + get { return verifier_options; } + set { verifier_options = value; } + } + /// Counter of tables depth in a tested flatbuffer + public int depth + { + get { return depth_cnt; } + set { depth_cnt = value; } + } + /// Counter of tables in a tested flatbuffer + public int numTables + { + get { return num_tables_cnt; } + set { num_tables_cnt = value; } + } + + + /// Method set maximum tables depth of valid structure + /// Specify Value of the maximum depth of the structure + public Verifier SetMaxDepth(int value) + { + verifier_options.maxDepth = value; + return this; + } + /// Specify maximum number of tables in structure + /// Specify Value of the maximum number of the tables in the structure + public Verifier SetMaxTables(int value) + { + verifier_options.maxTables = value; + return this; + } + /// Enable/disable buffer content alignment check + /// Value of the State for buffer content alignment check (Enable = true) + public Verifier SetAlignmentCheck(bool value) + { + verifier_options.alignmentCheck = value; + return this; + } + /// Enable/disable checking of string termination '0' character + /// Value of the option for string termination '0' character check (Enable = true) + public Verifier SetStringCheck(bool value) + { + verifier_options.stringEndCheck = value; + return this; + } + + /// Check if there is identifier in buffer + /// Input flat byte buffer defined as ByteBuffer type + /// Start position of data in the Byte Buffer + /// Identifier for the Byte Buffer + /// Return True when the Byte Buffer Identifier is present + private bool BufferHasIdentifier(ByteBuffer buf, uint startPos, string identifier) + { + if (identifier.Length != FILE_IDENTIFIER_LENGTH) + { + throw new ArgumentException("FlatBuffers: file identifier must be length" + Convert.ToString(FILE_IDENTIFIER_LENGTH)); + } + for (int i = 0; i < FILE_IDENTIFIER_LENGTH; i++) + { + if ((sbyte)identifier[i] != verifier_buffer.GetSbyte(Convert.ToInt32(SIZE_S_OFFSET + i + startPos))) + { + return false; + } + } + + return true; + } + + /// Get UOffsetT from buffer at given position - it must be verified before read + /// Input flat byte buffer defined as ByteBuffer type + /// Position of data in the Byte Buffer + /// Return the UOffset Value (Unsigned Integer type - 4 bytes) in pos + private uint ReadUOffsetT(ByteBuffer buf, uint pos) + { + return buf.GetUint(Convert.ToInt32(pos)); + } + /// Get SOffsetT from buffer at given position - it must be verified before read + /// Input flat byte buffer defined as ByteBuffer type + /// Position of data in the Byte Buffer + /// Return the SOffset Value (Signed Integer type - 4 bytes) in pos + private int ReadSOffsetT(ByteBuffer buf, int pos) + { + return buf.GetInt(pos); + } + /// Get VOffsetT from buffer at given position - it must be verified before read + /// Input flat byte buffer defined as ByteBuffer type + /// Position of data in the Byte Buffer + /// Return the VOffset Value (Short type - 2 bytes) in pos + private short ReadVOffsetT(ByteBuffer buf, int pos) + { + return buf.GetShort(pos); + } + + /// Get table data area relative offset from vtable. Result is relative to table start + /// Fields which are deprecated are ignored by checking against the vtable's length. + /// Position of data in the Byte Buffer + /// offset of value in the Table + /// Return the relative VOffset Value (Short type - 2 bytes) in calculated offset + private short GetVRelOffset(int pos, short vtableOffset) + { + short VOffset = 0; + // Used try/catch because pos typa as int 32bit + try + { + // First, get vtable offset + short vtable = Convert.ToInt16(pos - ReadSOffsetT(verifier_buffer, pos)); + // Check that offset points to vtable area (is smaller than vtable size) + if (vtableOffset < ReadVOffsetT(verifier_buffer, vtable)) + { + // Now, we can read offset value - TODO check this value against size of table data + VOffset = ReadVOffsetT(verifier_buffer, vtable + vtableOffset); + } + else + { + VOffset = 0; + } + } + catch (Exception e) + { + Console.WriteLine("Exception: {0}", e); + return VOffset; + } + return VOffset; + + } + /// Get table data area absolute offset from vtable. Result is the absolute buffer offset. + /// The result value offset cannot be '0' (pointing to itself) so after validation this method returnes '0' + /// value as a marker for missing optional entry + /// Table Position value in the Byte Buffer + /// offset value in the Table + /// Return the absolute UOffset Value + private uint GetVOffset(uint tablePos, short vtableOffset) + { + uint UOffset = 0; + // First, get vtable relative offset + short relPos = GetVRelOffset(Convert.ToInt32(tablePos), vtableOffset); + if (relPos != 0) + { + // Calculate offset based on table postion + UOffset = Convert.ToUInt32(tablePos + relPos); + } + else + { + UOffset = 0; + } + return UOffset; + } + + /// Check flatbuffer complexity (tables depth, elements counter and so on) + /// If complexity is too high function returns false as verification error + private bool CheckComplexity() + { + return ((depth <= options.maxDepth) && (numTables <= options.maxTables)); + } + + /// Check alignment of element. + /// Return True when alignment of the element is correct + private bool CheckAlignment(uint element, ulong align) + { + return (((element & (align - 1)) == 0) || (!options.alignmentCheck)); + } + + /// Check if element is valid in buffer area. + /// Value defines the offset/position to element + /// Size of element + /// Return True when Element is correct + private bool CheckElement(uint pos, ulong elementSize) + { + return ((elementSize < Convert.ToUInt64(verifier_buffer.Length)) && (pos <= (Convert.ToUInt32(verifier_buffer.Length) - elementSize))); + } + /// Check if element is a valid scalar. + /// Value defines the offset to scalar + /// Size of element + /// Return True when Scalar Element is correct + private bool CheckScalar(uint pos, ulong elementSize) + { + return ((CheckAlignment(pos, elementSize)) && (CheckElement(pos, elementSize))); + } + /// Check offset. It is a scalar with size of UOffsetT. + private bool CheckOffset(uint offset) + { + return (CheckScalar(offset, SIZE_U_OFFSET)); + } + + private checkElementStruct CheckVectorOrString(uint pos, ulong elementSize) + { + var result = new checkElementStruct + { + elementValid = false, + elementOffset = 0 + }; + + uint vectorPos = pos; + // Check we can read the vector/string size field (it is of uoffset size) + if (!CheckScalar(vectorPos, SIZE_U_OFFSET)) + { + // result.elementValid = false; result.elementOffset = 0; + return result; + } + // Check the whole array. If this is a string, the byte past the array + // must be 0. + uint size = ReadUOffsetT(verifier_buffer, vectorPos); + ulong max_elements = (FLATBUFFERS_MAX_BUFFER_SIZE / elementSize); + if (size >= max_elements) + { + // Protect against byte_size overflowing. + // result.elementValid = false; result.elementOffset = 0; + return result; + } + + uint bytes_size = SIZE_U_OFFSET + (Convert.ToUInt32(elementSize) * size); + uint buffer_end_pos = vectorPos + bytes_size; + result.elementValid = CheckElement(vectorPos, bytes_size); + result.elementOffset = buffer_end_pos; + return (result); + } + + /// Verify a string at given position. + private bool CheckString(uint pos) + { + var result = CheckVectorOrString(pos, SIZE_BYTE); + if (options.stringEndCheck) + { + result.elementValid = result.elementValid && CheckScalar(result.elementOffset, 1); // Must have terminator + result.elementValid = result.elementValid && (verifier_buffer.GetSbyte(Convert.ToInt32(result.elementOffset)) == 0); // Terminating byte must be 0. + } + return result.elementValid; + } + + /// Verify the vector of elements of given size + private bool CheckVector(uint pos, ulong elementSize) + { + var result = CheckVectorOrString(pos, elementSize); + return result.elementValid; + } + /// Verify table content using structure dependent generated function + private bool CheckTable(uint tablePos, VerifyTableAction verifyAction) + { + return verifyAction(this, tablePos); + } + + /// String check wrapper function to be used in vector of strings check + private bool CheckStringFunc(Verifier verifier, uint pos) + { + return verifier.CheckString(pos); + } + + /// Check vector of objects. Use generated object verification function + private bool CheckVectorOfObjects(uint pos, VerifyTableAction verifyAction) + { + if (!CheckVector(pos, SIZE_U_OFFSET)) + { + return false; + } + uint size = ReadUOffsetT(verifier_buffer, pos); + // Vector data starts just after vector size/length + uint vecStart = pos + SIZE_U_OFFSET; + uint vecOff = 0; + // Iterate offsets and verify referenced objects + for (uint i = 0; i < size; i++) + { + vecOff = vecStart + (i * SIZE_U_OFFSET); + if (!CheckIndirectOffset(vecOff)) + { + return false; + } + uint objOffset = GetIndirectOffset(vecOff); + if (!verifyAction(this, objOffset)) + { + return false; + } + } + return true; + } + + /// Check if the offset referenced by offsetPos is the valid offset pointing to buffer + // offsetPos - offset to offset data + private bool CheckIndirectOffset(uint pos) + { + // Check the input offset is valid + if(!CheckScalar(pos, SIZE_U_OFFSET)) + { + return false; + } + // Get indirect offset + uint offset = ReadUOffsetT(verifier_buffer, pos); + // May not point to itself neither wrap around (buffers are max 2GB) + if ((offset == 0) || (offset >= FLATBUFFERS_MAX_BUFFER_SIZE)) + { + return false; + } + // Must be inside the buffer + return CheckElement(pos + offset, 1); + } + + /// Check flatbuffer content using generated object verification function + private bool CheckBufferFromStart(string identifier, uint startPos, VerifyTableAction verifyAction) + { + if ((identifier != null) && + (identifier.Length == 0) && + ((verifier_buffer.Length < (SIZE_U_OFFSET + FILE_IDENTIFIER_LENGTH)) || (!BufferHasIdentifier(verifier_buffer, startPos, identifier)))) + { + return false; + } + if(!CheckIndirectOffset(startPos)) + { + return false; + } + uint offset = GetIndirectOffset(startPos); + return CheckTable(offset, verifyAction); // && GetComputedSize() + } + + /// Get indirect offset. It is an offset referenced by offset Pos + private uint GetIndirectOffset(uint pos) + { + // Get indirect offset referenced by offsetPos + uint offset = pos + ReadUOffsetT(verifier_buffer, pos); + return offset; + } + + /// Verify beginning of table + /// Position in the Table + /// Return True when the verification of the beginning of the table is passed + // (this method is used internally by generated verification functions) + public bool VerifyTableStart(uint tablePos) + { + // Starting new table verification increases complexity of structure + depth_cnt++; + num_tables_cnt++; + + if (!CheckScalar(tablePos, SIZE_S_OFFSET)) + { + return false; + } + uint vtable = (uint)(tablePos - ReadSOffsetT(verifier_buffer, Convert.ToInt32(tablePos))); + return ((CheckComplexity()) && (CheckScalar(vtable, SIZE_V_OFFSET)) && (CheckAlignment(Convert.ToUInt32(ReadVOffsetT(verifier_buffer, Convert.ToInt32(vtable))), SIZE_V_OFFSET)) && (CheckElement(vtable, Convert.ToUInt64(ReadVOffsetT(verifier_buffer, Convert.ToInt32(vtable)))))); + } + + /// Verify end of table. In practice, this function does not check buffer but handles + /// verification statistics update + // (this method is used internally by generated verification functions) + public bool VerifyTableEnd(uint tablePos) + { + depth--; + return true; + } + + /// Verifiy static/inlined data area field + /// Position in the Table + /// Offset to the static/inlined data element + /// Size of the element + /// Alignment bool value + /// Required Value when the offset == 0 + /// Return True when the verification of the static/inlined data element is passed + // (this method is used internally by generated verification functions) + public bool VerifyField(uint tablePos, short offsetId, ulong elementSize, ulong align, bool required) + { + uint offset = GetVOffset(tablePos, offsetId); + if (offset != 0) + { + return ((CheckAlignment(offset, align)) && (CheckElement(offset, elementSize))); + } + return !required; // it is OK if field is not required + } + + /// Verify string + /// Position in the Table + /// Offset to the String element + /// Required Value when the offset == 0 + /// Return True when the verification of the String is passed + // (this method is used internally by generated verification functions) + public bool VerifyString(uint tablePos, short vOffset, bool required) + { + var offset = GetVOffset(tablePos, vOffset); + if (offset == 0) + { + return !required; + } + if (!CheckIndirectOffset(offset)) + { + return false; + } + var strOffset = GetIndirectOffset(offset); + return CheckString(strOffset); + } + + /// Verify vector of fixed size structures and scalars + /// Position in the Table + /// Offset to the Vector of Data + /// Size of the element + /// Required Value when the offset == 0 + /// Return True when the verification of the Vector of Data passed + // (this method is used internally by generated verification functions) + public bool VerifyVectorOfData(uint tablePos, short vOffset, ulong elementSize, bool required) + { + var offset = GetVOffset(tablePos, vOffset); + if (offset == 0) + { + return !required; + } + if (!CheckIndirectOffset(offset)) + { + return false; + } + var vecOffset = GetIndirectOffset(offset); + return CheckVector(vecOffset, elementSize); + } + + /// Verify array of strings + /// Position in the Table + /// Offset to the Vector of String + /// Required Value when the offset == 0 + /// Return True when the verification of the Vector of String passed + // (this method is used internally by generated verification functions) + public bool VerifyVectorOfStrings(uint tablePos, short offsetId, bool required) + { + var offset = GetVOffset(tablePos, offsetId); + if (offset == 0) + { + return !required; + } + if (!CheckIndirectOffset(offset)) + { + return false; + } + var vecOffset = GetIndirectOffset(offset); + return CheckVectorOfObjects(vecOffset, CheckStringFunc); + } + + /// Verify vector of tables (objects). Tables are verified using generated verifyObjFunc + /// Position in the Table + /// Offset to the Vector of Table + /// Method used to the verification Table + /// Required Value when the offset == 0 + /// Return True when the verification of the Vector of Table passed + // (this method is used internally by generated verification functions) + public bool VerifyVectorOfTables(uint tablePos, short offsetId, VerifyTableAction verifyAction, bool required) + { + var offset = GetVOffset(tablePos, offsetId); + if (offset == 0) + { + return !required; + } + if (!CheckIndirectOffset(offset)) + { + return false; + } + var vecOffset = GetIndirectOffset(offset); + return CheckVectorOfObjects(vecOffset, verifyAction); + } + + /// Verify table object using generated verification function. + /// Position in the Table + /// Offset to the Table + /// Method used to the verification Table + /// Required Value when the offset == 0 + /// Return True when the verification of the Table passed + // (this method is used internally by generated verification functions) + public bool VerifyTable(uint tablePos, short offsetId, VerifyTableAction verifyAction, bool required) + { + var offset = GetVOffset(tablePos, offsetId); + if (offset == 0) + { + return !required; + } + if (!CheckIndirectOffset(offset)) + { + return false; + } + var tabOffset = GetIndirectOffset(offset); + return CheckTable(tabOffset, verifyAction); + } + + /// Verify nested buffer object. When verifyObjFunc is provided, it is used to verify object structure. + /// Position in the Table + /// Offset to the Table + /// Method used to the verification Table + /// Required Value when the offset == 0 + // (this method is used internally by generated verification functions) + public bool VerifyNestedBuffer(uint tablePos, short offsetId, VerifyTableAction verifyAction, bool required) + { + var offset = GetVOffset(tablePos, offsetId); + if (offset == 0) + { + return !required; + } + uint vecOffset = GetIndirectOffset(offset); + if (!CheckVector(vecOffset, SIZE_BYTE)) + { + return false; + } + if (verifyAction != null) + { + var vecLength = ReadUOffsetT(verifier_buffer, vecOffset); + // Buffer begins after vector length + var vecStart = vecOffset + SIZE_U_OFFSET; + // Create and Copy nested buffer bytes from part of Verify Buffer + var nestedByteBuffer = new ByteBuffer(verifier_buffer.ToArray(Convert.ToInt32(vecStart), Convert.ToInt32(vecLength))); + var nestedVerifyier = new Verifier(nestedByteBuffer, options); + // There is no internal identifier - use empty one + if (!nestedVerifyier.CheckBufferFromStart("", 0, verifyAction)) + { + return false; + } + } + return true; + } + + /// Verifiy static/inlined data area at absolute offset + /// Position of static/inlined data area in the Byte Buffer + /// Size of the union data + /// Alignment bool value + /// Return True when the verification of the Union Data is passed + // (this method is used internally by generated verification functions) + public bool VerifyUnionData(uint pos, ulong elementSize, ulong align) + { + bool result = ((CheckAlignment(pos, align)) && (CheckElement(pos, elementSize))); + return result; + } + + /// Verify string referenced by absolute offset value + /// Position of Union String in the Byte Buffer + /// Return True when the verification of the Union String is passed + // (this method is used internally by generated verification functions) + public bool VerifyUnionString(uint pos) + { + bool result = CheckString(pos); + return result; + } + + /// Method verifies union object using generated verification function + /// Position in the Table + /// Offset in the Table + /// Offset to Element + /// Verification Method used for Union + /// Required Value when the offset == 0 + // (this method is used internally by generated verification functions) + public bool VerifyUnion(uint tablePos, short typeIdVOffset, short valueVOffset, VerifyUnionAction verifyAction, bool required) + { + // Check the union type index + var offset = GetVOffset(tablePos, typeIdVOffset); + if (offset == 0) + { + return !required; + } + if (!((CheckAlignment(offset, SIZE_BYTE)) && (CheckElement(offset, SIZE_BYTE)))) + { + return false; + } + // Check union data + offset = GetVOffset(tablePos, valueVOffset); + // Take type id + var typeId = verifier_buffer.Get(Convert.ToInt32(offset)); + if (offset == 0) + { + // When value data is not present, allow union verification function to deal with illegal offset + return verifyAction(this, typeId, Convert.ToUInt32(verifier_buffer.Length)); + } + if (!CheckIndirectOffset(offset)) + { + return false; + } + // Take value offset and validate union structure + uint unionOffset = GetIndirectOffset(offset); + return verifyAction(this, typeId, unionOffset); + } + + /// Verify vector of unions (objects). Unions are verified using generated verifyObjFunc + /// Position of the Table + /// Offset in the Table (Union type id) + /// Offset to vector of Data Stucture offset + /// Verification Method used for Union + /// Required Value when the offset == 0 + /// Return True when the verification of the Vector of Unions passed + // (this method is used internally by generated verification functions) + public bool VerifyVectorOfUnion(uint tablePos, short typeOffsetId, short offsetId, VerifyUnionAction verifyAction, bool required) + { + // type id offset must be valid + var offset = GetVOffset(tablePos, typeOffsetId); + if (offset == 0) + { + return !required; + } + if (!CheckIndirectOffset(offset)) + { + return false; + } + // Get type id table absolute offset + var typeIdVectorOffset = GetIndirectOffset(offset); + // values offset must be valid + offset = GetVOffset(tablePos, offsetId); + if (!CheckIndirectOffset(offset)) + { + return false; + } + var valueVectorOffset = GetIndirectOffset(offset); + // validate referenced vectors + if(!CheckVector(typeIdVectorOffset, SIZE_BYTE) || + !CheckVector(valueVectorOffset, SIZE_U_OFFSET)) + { + return false; + } + // Both vectors should have the same length + var typeIdVectorLength = ReadUOffsetT(verifier_buffer, typeIdVectorOffset); + var valueVectorLength = ReadUOffsetT(verifier_buffer, valueVectorOffset); + if (typeIdVectorLength != valueVectorLength) + { + return false; + } + // Verify each union from vectors + var typeIdStart = typeIdVectorOffset + SIZE_U_OFFSET; + var valueStart = valueVectorOffset + SIZE_U_OFFSET; + for (uint i = 0; i < typeIdVectorLength; i++) + { + // Get type id + byte typeId = verifier_buffer.Get(Convert.ToInt32(typeIdStart + i * SIZE_U_OFFSET)); + // get offset to vector item + uint off = valueStart + i * SIZE_U_OFFSET; + // Check the vector item has a proper offset + if (!CheckIndirectOffset(off)) + { + return false; + } + uint valueOffset = GetIndirectOffset(off); + // Verify object + if (!verifyAction(this, typeId, valueOffset)) + { + return false; + } + } + return true; + } + + // Method verifies flatbuffer data using generated Table verification function. + // The data buffer is already provided when creating [Verifier] object (see [NewVerifier]) + // + // - identifier - the expected identifier of buffer data. + // When empty identifier is provided the identifier validation is skipped. + // - sizePrefixed - this flag should be true when buffer is prefixed with content size + // - verifyObjFunc - function to be used for verification. This function is generated by compiler and included in each table definition file with name "Verify" + // + // Example: + // + // /* Verify Monster table. Ignore buffer name and assume buffer does not contain data length prefix */ + // isValid = verifier.verifyBuffer(bb, false, MonsterVerify) + // + // /* Verify Monster table. Buffer name is 'MONS' and contains data length prefix */ + // isValid = verifier.verifyBuffer("MONS", true, MonsterVerify) + /// Method verifies flatbuffer data using generated Table verification function + /// + /// The expected identifier of buffer data + /// Flag should be true when buffer is prefixed with content size + /// Function to be used for verification. This function is generated by compiler and included in each table definition file + /// Return True when verification of FlatBuffer passed + /// + /// Example 1. Verify Monster table. Ignore buffer name and assume buffer does not contain data length prefix + /// isValid = verifier.VerifyBuffer(bb, false, MonsterVerify) + /// Example 2. Verify Monster table. Buffer name is 'MONS' and contains data length prefix + /// isValid = verifier.VerifyBuffer("MONS", true, MonsterVerify) + /// + public bool VerifyBuffer(string identifier, bool sizePrefixed, VerifyTableAction verifyAction) + { + // Reset counters - starting verification from beginning + depth = 0; + numTables = 0; + + var start = (uint)(verifier_buffer.Position); + if (sizePrefixed) + { + start = (uint)(verifier_buffer.Position) + SIZE_PREFIX_LENGTH; + if(!CheckScalar((uint)(verifier_buffer.Position), SIZE_PREFIX_LENGTH)) + { + return false; + } + uint size = ReadUOffsetT(verifier_buffer, (uint)(verifier_buffer.Position)); + if (size != ((uint)(verifier_buffer.Length) - start)) + { + return false; + } + } + return CheckBufferFromStart(identifier, start, verifyAction); + } + } + +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBuffers.net35.csproj b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBuffers.net35.csproj new file mode 100644 index 00000000..9c64d006 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/FlatBuffers.net35.csproj @@ -0,0 +1,57 @@ + + + + + Debug + AnyCPU + {28C00774-1E73-4A75-AD8F-844CD21A064D} + Library + Properties + FlatBuffers + FlatBuffers + v3.5 + 512 + + + true + full + false + bin\Debug\net35 + obj\Debug\net35 + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\net35 + obj\Release\net35 + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Google.FlatBuffers.csproj b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Google.FlatBuffers.csproj new file mode 100644 index 00000000..7d4fab0f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Google.FlatBuffers.csproj @@ -0,0 +1,46 @@ + + + + netstandard2.1;netstandard2.0;net46 + A cross-platform memory efficient serialization library + 23.5.26 + Google LLC + https://github.com/google/flatbuffers + https://github.com/google/flatbuffers + true + LICENSE + flatbuffers.png + Google;FlatBuffers;Serialization;Buffer;Binary;zero copy + Copyright 2022 Google LLC + true + snupkg + true + flatbuffers.snk + false + + + + $(DefineConstants);UNSAFE_BYTEBUFFER + true + + + $(DefineConstants);BYTEBUFFER_NO_BOUNDS_CHECK + + + $(DefineConstants);ENABLE_SPAN_T + + + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/IFlatbufferObject.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/IFlatbufferObject.cs new file mode 100644 index 00000000..c1d106cd --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/IFlatbufferObject.cs @@ -0,0 +1,28 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Google.FlatBuffers +{ + /// + /// This is the base for both structs and tables. + /// + public interface IFlatbufferObject + { + void __init(int _i, ByteBuffer _bb); + + ByteBuffer ByteBuffer { get; } + } +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Offset.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Offset.cs new file mode 100644 index 00000000..d2dd6281 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Offset.cs @@ -0,0 +1,48 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Google.FlatBuffers +{ + /// + /// Offset class for typesafe assignments. + /// + public struct Offset where T : struct + { + public int Value; + public Offset(int value) + { + Value = value; + } + } + + public struct StringOffset + { + public int Value; + public StringOffset(int value) + { + Value = value; + } + } + + public struct VectorOffset + { + public int Value; + public VectorOffset(int value) + { + Value = value; + } + } +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Struct.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Struct.cs new file mode 100644 index 00000000..b4539bfd --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Struct.cs @@ -0,0 +1,34 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Google.FlatBuffers +{ + /// + /// All structs in the generated code derive from this class, and add their own accessors. + /// + public struct Struct + { + public int bb_pos { get; private set; } + public ByteBuffer bb { get; private set; } + + // Re-init the internal state with an external buffer {@code ByteBuffer} and an offset within. + public Struct(int _i, ByteBuffer _bb) : this() + { + bb = _bb; + bb_pos = _i; + } + } +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Table.cs b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Table.cs new file mode 100644 index 00000000..2aaa86e9 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/Table.cs @@ -0,0 +1,212 @@ +/* + * Copyright 2014 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System; +using System.Text; +using System.Runtime.InteropServices; + +namespace Google.FlatBuffers +{ + /// + /// All tables in the generated code derive from this struct, and add their own accessors. + /// + public struct Table + { + public int bb_pos { get; private set; } + public ByteBuffer bb { get; private set; } + + public ByteBuffer ByteBuffer { get { return bb; } } + + // Re-init the internal state with an external buffer {@code ByteBuffer} and an offset within. + public Table(int _i, ByteBuffer _bb) : this() + { + bb = _bb; + bb_pos = _i; + } + + // Look up a field in the vtable, return an offset into the object, or 0 if the field is not + // present. + public int __offset(int vtableOffset) + { + int vtable = bb_pos - bb.GetInt(bb_pos); + return vtableOffset < bb.GetShort(vtable) ? (int)bb.GetShort(vtable + vtableOffset) : 0; + } + + public static int __offset(int vtableOffset, int offset, ByteBuffer bb) + { + int vtable = bb.Length - offset; + return (int)bb.GetShort(vtable + vtableOffset - bb.GetInt(vtable)) + vtable; + } + + // Retrieve the relative offset stored at "offset" + public int __indirect(int offset) + { + return offset + bb.GetInt(offset); + } + + public static int __indirect(int offset, ByteBuffer bb) + { + return offset + bb.GetInt(offset); + } + + // Create a .NET String from UTF-8 data stored inside the flatbuffer. + public string __string(int offset) + { + int stringOffset = bb.GetInt(offset); + if (stringOffset == 0) + return null; + + offset += stringOffset; + var len = bb.GetInt(offset); + var startPos = offset + sizeof(int); + return bb.GetStringUTF8(startPos, len); + } + + // Get the length of a vector whose offset is stored at "offset" in this object. + public int __vector_len(int offset) + { + offset += bb_pos; + offset += bb.GetInt(offset); + return bb.GetInt(offset); + } + + // Get the start of data of a vector whose offset is stored at "offset" in this object. + public int __vector(int offset) + { + offset += bb_pos; + return offset + bb.GetInt(offset) + sizeof(int); // data starts after the length + } + +#if ENABLE_SPAN_T && (UNSAFE_BYTEBUFFER || NETSTANDARD2_1) + // Get the data of a vector whoses offset is stored at "offset" in this object as an + // Spant<byte>. If the vector is not present in the ByteBuffer, + // then an empty span will be returned. + public Span __vector_as_span(int offset, int elementSize) where T : struct + { + if (!BitConverter.IsLittleEndian) + { + throw new NotSupportedException("Getting typed span on a Big Endian " + + "system is not support"); + } + + var o = this.__offset(offset); + if (0 == o) + { + return new Span(); + } + + var pos = this.__vector(o); + var len = this.__vector_len(o); + return MemoryMarshal.Cast(bb.ToSpan(pos, len * elementSize)); + } +#else + // Get the data of a vector whoses offset is stored at "offset" in this object as an + // ArraySegment<byte>. If the vector is not present in the ByteBuffer, + // then a null value will be returned. + public ArraySegment? __vector_as_arraysegment(int offset) + { + var o = this.__offset(offset); + if (0 == o) + { + return null; + } + + var pos = this.__vector(o); + var len = this.__vector_len(o); + return bb.ToArraySegment(pos, len); + } +#endif + + // Get the data of a vector whoses offset is stored at "offset" in this object as an + // T[]. If the vector is not present in the ByteBuffer, then a null value will be + // returned. + public T[] __vector_as_array(int offset) + where T : struct + { + if(!BitConverter.IsLittleEndian) + { + throw new NotSupportedException("Getting typed arrays on a Big Endian " + + "system is not support"); + } + + var o = this.__offset(offset); + if (0 == o) + { + return null; + } + + var pos = this.__vector(o); + var len = this.__vector_len(o); + return bb.ToArray(pos, len); + } + + // Initialize any Table-derived type to point to the union at the given offset. + public T __union(int offset) where T : struct, IFlatbufferObject + { + T t = new T(); + t.__init(__indirect(offset), bb); + return t; + } + + public static bool __has_identifier(ByteBuffer bb, string ident) + { + if (ident.Length != FlatBufferConstants.FileIdentifierLength) + throw new ArgumentException("FlatBuffers: file identifier must be length " + FlatBufferConstants.FileIdentifierLength, "ident"); + + for (var i = 0; i < FlatBufferConstants.FileIdentifierLength; i++) + { + if (ident[i] != (char)bb.Get(bb.Position + sizeof(int) + i)) return false; + } + + return true; + } + + // Compare strings in the ByteBuffer. + public static int CompareStrings(int offset_1, int offset_2, ByteBuffer bb) + { + offset_1 += bb.GetInt(offset_1); + offset_2 += bb.GetInt(offset_2); + var len_1 = bb.GetInt(offset_1); + var len_2 = bb.GetInt(offset_2); + var startPos_1 = offset_1 + sizeof(int); + var startPos_2 = offset_2 + sizeof(int); + var len = Math.Min(len_1, len_2); + for(int i = 0; i < len; i++) { + byte b1 = bb.Get(i + startPos_1); + byte b2 = bb.Get(i + startPos_2); + if (b1 != b2) + return b1 - b2; + } + return len_1 - len_2; + } + + // Compare string from the ByteBuffer with the string object + public static int CompareStrings(int offset_1, byte[] key, ByteBuffer bb) + { + offset_1 += bb.GetInt(offset_1); + var len_1 = bb.GetInt(offset_1); + var len_2 = key.Length; + var startPos_1 = offset_1 + sizeof(int); + var len = Math.Min(len_1, len_2); + for (int i = 0; i < len; i++) { + byte b = bb.Get(i + startPos_1); + if (b != key[i]) + return b - key[i]; + } + return len_1 - len_2; + } + } +} diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/flatbuffers.png b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/flatbuffers.png new file mode 100644 index 00000000..2c728f3b Binary files /dev/null and b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/flatbuffers.png differ diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers/flatbuffers.snk b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/flatbuffers.snk new file mode 100644 index 00000000..70a21468 Binary files /dev/null and b/luban_examples/Projects/Flatbuffers_json/FlatBuffers/flatbuffers.snk differ diff --git a/luban_examples/Projects/Flatbuffers_json/FlatBuffers_json.sln b/luban_examples/Projects/Flatbuffers_json/FlatBuffers_json.sln new file mode 100644 index 00000000..d37d1cd8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/FlatBuffers_json.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31912.275 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlatBuffers", "FlatBuffers.csproj", "{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CED486A9-FCBD-414B-B917-4EF26E03EC5B} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBehaviorTree.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBehaviorTree.cs new file mode 100644 index 00000000..75371d81 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBehaviorTree.cs @@ -0,0 +1,97 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiBehaviorTree : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiBehaviorTree GetRootAsAiBehaviorTree(ByteBuffer _bb) { return GetRootAsAiBehaviorTree(_bb, new AiBehaviorTree()); } + public static AiBehaviorTree GetRootAsAiBehaviorTree(ByteBuffer _bb, AiBehaviorTree obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiBehaviorTree __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public string Desc { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(8); } + public string BlackboardId { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBlackboardIdBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetBlackboardIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetBlackboardIdArray() { return __p.__vector_as_array(10); } + public cfg.AiComposeNode RootType { get { int o = __p.__offset(12); return o != 0 ? (cfg.AiComposeNode)__p.bb.Get(o + __p.bb_pos) : cfg.AiComposeNode.NONE; } } + public TTable? Root() where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.AiSequence RootAsAiSequence() { return Root().Value; } + public cfg.AiSelector RootAsAiSelector() { return Root().Value; } + public cfg.AiSimpleParallel RootAsAiSimpleParallel() { return Root().Value; } + + public static Offset CreateAiBehaviorTree(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + StringOffset descOffset = default(StringOffset), + StringOffset blackboard_idOffset = default(StringOffset), + cfg.AiComposeNode root_type = cfg.AiComposeNode.NONE, + int rootOffset = 0) { + builder.StartTable(6); + AiBehaviorTree.AddRoot(builder, rootOffset); + AiBehaviorTree.AddBlackboardId(builder, blackboard_idOffset); + AiBehaviorTree.AddDesc(builder, descOffset); + AiBehaviorTree.AddName(builder, nameOffset); + AiBehaviorTree.AddId(builder, id); + AiBehaviorTree.AddRootType(builder, root_type); + return AiBehaviorTree.EndAiBehaviorTree(builder); + } + + public static void StartAiBehaviorTree(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(2, descOffset.Value, 0); } + public static void AddBlackboardId(FlatBufferBuilder builder, StringOffset blackboardIdOffset) { builder.AddOffset(3, blackboardIdOffset.Value, 0); } + public static void AddRootType(FlatBufferBuilder builder, cfg.AiComposeNode rootType) { builder.AddByte(4, (byte)rootType, 0); } + public static void AddRoot(FlatBufferBuilder builder, int rootOffset) { builder.AddOffset(5, rootOffset, 0); } + public static Offset EndAiBehaviorTree(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 14); // root + return new Offset(o); + } +} + + +static public class AiBehaviorTreeVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyString(tablePos, 8 /*Desc*/, false) + && verifier.VerifyString(tablePos, 10 /*BlackboardId*/, false) + && verifier.VerifyField(tablePos, 12 /*RootType*/, 1 /*cfg.AiComposeNode*/, 1, false) + && verifier.VerifyUnion(tablePos, 12, 14 /*Root*/, cfg.AiComposeNodeVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBinaryOperator.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBinaryOperator.cs new file mode 100644 index 00000000..dcb22a69 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBinaryOperator.cs @@ -0,0 +1,65 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiBinaryOperator : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiBinaryOperator GetRootAsAiBinaryOperator(ByteBuffer _bb) { return GetRootAsAiBinaryOperator(_bb, new AiBinaryOperator()); } + public static AiBinaryOperator GetRootAsAiBinaryOperator(ByteBuffer _bb, AiBinaryOperator obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiBinaryOperator __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.AiEOperator Oper { get { int o = __p.__offset(4); return o != 0 ? (cfg.AiEOperator)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEOperator.AiEOperator_IS_EQUAL_TO; } } + public cfg.AiKeyData DataType { get { int o = __p.__offset(6); return o != 0 ? (cfg.AiKeyData)__p.bb.Get(o + __p.bb_pos) : cfg.AiKeyData.NONE; } } + public TTable? Data() where TTable : struct, IFlatbufferObject { int o = __p.__offset(8); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.AiFloatKeyData DataAsAiFloatKeyData() { return Data().Value; } + public cfg.AiIntKeyData DataAsAiIntKeyData() { return Data().Value; } + public cfg.AiStringKeyData DataAsAiStringKeyData() { return Data().Value; } + public cfg.AiBlackboardKeyData DataAsAiBlackboardKeyData() { return Data().Value; } + + public static Offset CreateAiBinaryOperator(FlatBufferBuilder builder, + cfg.AiEOperator oper = cfg.AiEOperator.AiEOperator_IS_EQUAL_TO, + cfg.AiKeyData data_type = cfg.AiKeyData.NONE, + int dataOffset = 0) { + builder.StartTable(3); + AiBinaryOperator.AddData(builder, dataOffset); + AiBinaryOperator.AddOper(builder, oper); + AiBinaryOperator.AddDataType(builder, data_type); + return AiBinaryOperator.EndAiBinaryOperator(builder); + } + + public static void StartAiBinaryOperator(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddOper(FlatBufferBuilder builder, cfg.AiEOperator oper) { builder.AddInt(0, (int)oper, 0); } + public static void AddDataType(FlatBufferBuilder builder, cfg.AiKeyData dataType) { builder.AddByte(1, (byte)dataType, 0); } + public static void AddData(FlatBufferBuilder builder, int dataOffset) { builder.AddOffset(2, dataOffset, 0); } + public static Offset EndAiBinaryOperator(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // data + return new Offset(o); + } +} + + +static public class AiBinaryOperatorVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Oper*/, 4 /*cfg.AiEOperator*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*DataType*/, 1 /*cfg.AiKeyData*/, 1, false) + && verifier.VerifyUnion(tablePos, 6, 8 /*Data*/, cfg.AiKeyDataVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboard.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboard.cs new file mode 100644 index 00000000..416de7c6 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboard.cs @@ -0,0 +1,90 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiBlackboard : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiBlackboard GetRootAsAiBlackboard(ByteBuffer _bb) { return GetRootAsAiBlackboard(_bb, new AiBlackboard()); } + public static AiBlackboard GetRootAsAiBlackboard(ByteBuffer _bb, AiBlackboard obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiBlackboard __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Name { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(4); } + public string Desc { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(6); } + public string ParentName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetParentNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetParentNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetParentNameArray() { return __p.__vector_as_array(8); } + public cfg.AiBlackboardKey? Keys(int j) { int o = __p.__offset(10); return o != 0 ? (cfg.AiBlackboardKey?)(new cfg.AiBlackboardKey()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int KeysLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateAiBlackboard(FlatBufferBuilder builder, + StringOffset nameOffset = default(StringOffset), + StringOffset descOffset = default(StringOffset), + StringOffset parent_nameOffset = default(StringOffset), + VectorOffset keysOffset = default(VectorOffset)) { + builder.StartTable(4); + AiBlackboard.AddKeys(builder, keysOffset); + AiBlackboard.AddParentName(builder, parent_nameOffset); + AiBlackboard.AddDesc(builder, descOffset); + AiBlackboard.AddName(builder, nameOffset); + return AiBlackboard.EndAiBlackboard(builder); + } + + public static void StartAiBlackboard(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(0, nameOffset.Value, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(1, descOffset.Value, 0); } + public static void AddParentName(FlatBufferBuilder builder, StringOffset parentNameOffset) { builder.AddOffset(2, parentNameOffset.Value, 0); } + public static void AddKeys(FlatBufferBuilder builder, VectorOffset keysOffset) { builder.AddOffset(3, keysOffset.Value, 0); } + public static VectorOffset CreateKeysVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateKeysVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateKeysVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateKeysVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartKeysVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAiBlackboard(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 10); // keys + return new Offset(o); + } +} + + +static public class AiBlackboardVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Name*/, false) + && verifier.VerifyString(tablePos, 6 /*Desc*/, false) + && verifier.VerifyString(tablePos, 8 /*ParentName*/, false) + && verifier.VerifyVectorOfTables(tablePos, 10 /*Keys*/, cfg.AiBlackboardKeyVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboardKey.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboardKey.cs new file mode 100644 index 00000000..27f1dcc2 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboardKey.cs @@ -0,0 +1,88 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiBlackboardKey : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiBlackboardKey GetRootAsAiBlackboardKey(ByteBuffer _bb) { return GetRootAsAiBlackboardKey(_bb, new AiBlackboardKey()); } + public static AiBlackboardKey GetRootAsAiBlackboardKey(ByteBuffer _bb, AiBlackboardKey obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiBlackboardKey __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Name { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(4); } + public string Desc { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(6); } + public bool IsStatic { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public cfg.AiEKeyType Type { get { int o = __p.__offset(10); return o != 0 ? (cfg.AiEKeyType)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEKeyType.__GENERATE_DEFAULT_VALUE; } } + public string TypeClassName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTypeClassNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetTypeClassNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetTypeClassNameArray() { return __p.__vector_as_array(12); } + + public static Offset CreateAiBlackboardKey(FlatBufferBuilder builder, + StringOffset nameOffset = default(StringOffset), + StringOffset descOffset = default(StringOffset), + bool is_static = false, + cfg.AiEKeyType type = cfg.AiEKeyType.__GENERATE_DEFAULT_VALUE, + StringOffset type_class_nameOffset = default(StringOffset)) { + builder.StartTable(5); + AiBlackboardKey.AddTypeClassName(builder, type_class_nameOffset); + AiBlackboardKey.AddType(builder, type); + AiBlackboardKey.AddDesc(builder, descOffset); + AiBlackboardKey.AddName(builder, nameOffset); + AiBlackboardKey.AddIsStatic(builder, is_static); + return AiBlackboardKey.EndAiBlackboardKey(builder); + } + + public static void StartAiBlackboardKey(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(0, nameOffset.Value, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(1, descOffset.Value, 0); } + public static void AddIsStatic(FlatBufferBuilder builder, bool isStatic) { builder.AddBool(2, isStatic, false); } + public static void AddType(FlatBufferBuilder builder, cfg.AiEKeyType type) { builder.AddInt(3, (int)type, 0); } + public static void AddTypeClassName(FlatBufferBuilder builder, StringOffset typeClassNameOffset) { builder.AddOffset(4, typeClassNameOffset.Value, 0); } + public static Offset EndAiBlackboardKey(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiBlackboardKeyVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Name*/, false) + && verifier.VerifyString(tablePos, 6 /*Desc*/, false) + && verifier.VerifyField(tablePos, 8 /*IsStatic*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*Type*/, 4 /*cfg.AiEKeyType*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*TypeClassName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboardKeyData.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboardKeyData.cs new file mode 100644 index 00000000..03edbd0a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiBlackboardKeyData.cs @@ -0,0 +1,56 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiBlackboardKeyData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiBlackboardKeyData GetRootAsAiBlackboardKeyData(ByteBuffer _bb) { return GetRootAsAiBlackboardKeyData(_bb, new AiBlackboardKeyData()); } + public static AiBlackboardKeyData GetRootAsAiBlackboardKeyData(ByteBuffer _bb, AiBlackboardKeyData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiBlackboardKeyData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Value { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetValueBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetValueBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetValueArray() { return __p.__vector_as_array(4); } + + public static Offset CreateAiBlackboardKeyData(FlatBufferBuilder builder, + StringOffset valueOffset = default(StringOffset)) { + builder.StartTable(1); + AiBlackboardKeyData.AddValue(builder, valueOffset); + return AiBlackboardKeyData.EndAiBlackboardKeyData(builder); + } + + public static void StartAiBlackboardKeyData(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddValue(FlatBufferBuilder builder, StringOffset valueOffset) { builder.AddOffset(0, valueOffset.Value, 0); } + public static Offset EndAiBlackboardKeyData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiBlackboardKeyDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Value*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiChooseSkill.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiChooseSkill.cs new file mode 100644 index 00000000..236a80b8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiChooseSkill.cs @@ -0,0 +1,146 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiChooseSkill : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiChooseSkill GetRootAsAiChooseSkill(ByteBuffer _bb) { return GetRootAsAiChooseSkill(_bb, new AiChooseSkill()); } + public static AiChooseSkill GetRootAsAiChooseSkill(ByteBuffer _bb, AiChooseSkill obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiChooseSkill __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool IgnoreRestartSelf { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string TargetActorKey { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTargetActorKeyBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetTargetActorKeyBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetTargetActorKeyArray() { return __p.__vector_as_array(18); } + public string ResultSkillIdKey { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetResultSkillIdKeyBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetResultSkillIdKeyBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetResultSkillIdKeyArray() { return __p.__vector_as_array(20); } + + public static Offset CreateAiChooseSkill(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + bool ignore_restart_self = false, + StringOffset target_actor_keyOffset = default(StringOffset), + StringOffset result_skill_id_keyOffset = default(StringOffset)) { + builder.StartTable(9); + AiChooseSkill.AddResultSkillIdKey(builder, result_skill_id_keyOffset); + AiChooseSkill.AddTargetActorKey(builder, target_actor_keyOffset); + AiChooseSkill.AddServices(builder, servicesOffset); + AiChooseSkill.AddServicesType(builder, services_typeOffset); + AiChooseSkill.AddDecorators(builder, decoratorsOffset); + AiChooseSkill.AddDecoratorsType(builder, decorators_typeOffset); + AiChooseSkill.AddNodeName(builder, node_nameOffset); + AiChooseSkill.AddId(builder, id); + AiChooseSkill.AddIgnoreRestartSelf(builder, ignore_restart_self); + return AiChooseSkill.EndAiChooseSkill(builder); + } + + public static void StartAiChooseSkill(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIgnoreRestartSelf(FlatBufferBuilder builder, bool ignoreRestartSelf) { builder.AddBool(6, ignoreRestartSelf, false); } + public static void AddTargetActorKey(FlatBufferBuilder builder, StringOffset targetActorKeyOffset) { builder.AddOffset(7, targetActorKeyOffset.Value, 0); } + public static void AddResultSkillIdKey(FlatBufferBuilder builder, StringOffset resultSkillIdKeyOffset) { builder.AddOffset(8, resultSkillIdKeyOffset.Value, 0); } + public static Offset EndAiChooseSkill(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + return new Offset(o); + } +} + + +static public class AiChooseSkillVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*IgnoreRestartSelf*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 18 /*TargetActorKey*/, false) + && verifier.VerifyString(tablePos, 20 /*ResultSkillIdKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiChooseTarget.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiChooseTarget.cs new file mode 100644 index 00000000..3be479ef --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiChooseTarget.cs @@ -0,0 +1,72 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiChooseTarget : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiChooseTarget GetRootAsAiChooseTarget(ByteBuffer _bb) { return GetRootAsAiChooseTarget(_bb, new AiChooseTarget()); } + public static AiChooseTarget GetRootAsAiChooseTarget(ByteBuffer _bb, AiChooseTarget obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiChooseTarget __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public string ResultTargetKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetResultTargetKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetResultTargetKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetResultTargetKeyArray() { return __p.__vector_as_array(8); } + + public static Offset CreateAiChooseTarget(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + StringOffset result_target_keyOffset = default(StringOffset)) { + builder.StartTable(3); + AiChooseTarget.AddResultTargetKey(builder, result_target_keyOffset); + AiChooseTarget.AddNodeName(builder, node_nameOffset); + AiChooseTarget.AddId(builder, id); + return AiChooseTarget.EndAiChooseTarget(builder); + } + + public static void StartAiChooseTarget(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddResultTargetKey(FlatBufferBuilder builder, StringOffset resultTargetKeyOffset) { builder.AddOffset(2, resultTargetKeyOffset.Value, 0); } + public static Offset EndAiChooseTarget(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiChooseTargetVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyString(tablePos, 8 /*ResultTargetKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiComposeNode.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiComposeNode.cs new file mode 100644 index 00000000..8f2fedda --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiComposeNode.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiComposeNode : byte +{ + NONE = 0, + AiSequence = 1, + AiSelector = 2, + AiSimpleParallel = 3, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDebugPrint.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDebugPrint.cs new file mode 100644 index 00000000..f4d46155 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDebugPrint.cs @@ -0,0 +1,135 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiDebugPrint : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiDebugPrint GetRootAsAiDebugPrint(ByteBuffer _bb) { return GetRootAsAiDebugPrint(_bb, new AiDebugPrint()); } + public static AiDebugPrint GetRootAsAiDebugPrint(ByteBuffer _bb, AiDebugPrint obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiDebugPrint __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool IgnoreRestartSelf { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string Text { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetTextBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetTextArray() { return __p.__vector_as_array(18); } + + public static Offset CreateAiDebugPrint(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + bool ignore_restart_self = false, + StringOffset textOffset = default(StringOffset)) { + builder.StartTable(8); + AiDebugPrint.AddText(builder, textOffset); + AiDebugPrint.AddServices(builder, servicesOffset); + AiDebugPrint.AddServicesType(builder, services_typeOffset); + AiDebugPrint.AddDecorators(builder, decoratorsOffset); + AiDebugPrint.AddDecoratorsType(builder, decorators_typeOffset); + AiDebugPrint.AddNodeName(builder, node_nameOffset); + AiDebugPrint.AddId(builder, id); + AiDebugPrint.AddIgnoreRestartSelf(builder, ignore_restart_self); + return AiDebugPrint.EndAiDebugPrint(builder); + } + + public static void StartAiDebugPrint(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIgnoreRestartSelf(FlatBufferBuilder builder, bool ignoreRestartSelf) { builder.AddBool(6, ignoreRestartSelf, false); } + public static void AddText(FlatBufferBuilder builder, StringOffset textOffset) { builder.AddOffset(7, textOffset.Value, 0); } + public static Offset EndAiDebugPrint(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + return new Offset(o); + } +} + + +static public class AiDebugPrintVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*IgnoreRestartSelf*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 18 /*Text*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDecorator.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDecorator.cs new file mode 100644 index 00000000..e4ab9380 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDecorator.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiDecorator : byte +{ + NONE = 0, + AiUeLoop = 1, + AiUeCooldown = 2, + AiUeTimeLimit = 3, + AiUeBlackboard = 4, + AiUeForceSuccess = 5, + AiIsAtLocation = 6, + AiDistanceLessThan = 7, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDistanceLessThan.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDistanceLessThan.cs new file mode 100644 index 00000000..f1520311 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiDistanceLessThan.cs @@ -0,0 +1,98 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiDistanceLessThan : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiDistanceLessThan GetRootAsAiDistanceLessThan(ByteBuffer _bb) { return GetRootAsAiDistanceLessThan(_bb, new AiDistanceLessThan()); } + public static AiDistanceLessThan GetRootAsAiDistanceLessThan(ByteBuffer _bb, AiDistanceLessThan obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiDistanceLessThan __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiEFlowAbortMode FlowAbortMode { get { int o = __p.__offset(8); return o != 0 ? (cfg.AiEFlowAbortMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE; } } + public string Actor1Key { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetActor1KeyBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetActor1KeyBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetActor1KeyArray() { return __p.__vector_as_array(10); } + public string Actor2Key { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetActor2KeyBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetActor2KeyBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetActor2KeyArray() { return __p.__vector_as_array(12); } + public float Distance { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool ReverseResult { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateAiDistanceLessThan(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + cfg.AiEFlowAbortMode flow_abort_mode = cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE, + StringOffset actor1_keyOffset = default(StringOffset), + StringOffset actor2_keyOffset = default(StringOffset), + float distance = 0.0f, + bool reverse_result = false) { + builder.StartTable(7); + AiDistanceLessThan.AddDistance(builder, distance); + AiDistanceLessThan.AddActor2Key(builder, actor2_keyOffset); + AiDistanceLessThan.AddActor1Key(builder, actor1_keyOffset); + AiDistanceLessThan.AddFlowAbortMode(builder, flow_abort_mode); + AiDistanceLessThan.AddNodeName(builder, node_nameOffset); + AiDistanceLessThan.AddId(builder, id); + AiDistanceLessThan.AddReverseResult(builder, reverse_result); + return AiDistanceLessThan.EndAiDistanceLessThan(builder); + } + + public static void StartAiDistanceLessThan(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddFlowAbortMode(FlatBufferBuilder builder, cfg.AiEFlowAbortMode flowAbortMode) { builder.AddInt(2, (int)flowAbortMode, 0); } + public static void AddActor1Key(FlatBufferBuilder builder, StringOffset actor1KeyOffset) { builder.AddOffset(3, actor1KeyOffset.Value, 0); } + public static void AddActor2Key(FlatBufferBuilder builder, StringOffset actor2KeyOffset) { builder.AddOffset(4, actor2KeyOffset.Value, 0); } + public static void AddDistance(FlatBufferBuilder builder, float distance) { builder.AddFloat(5, distance, 0.0f); } + public static void AddReverseResult(FlatBufferBuilder builder, bool reverseResult) { builder.AddBool(6, reverseResult, false); } + public static Offset EndAiDistanceLessThan(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiDistanceLessThanVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyField(tablePos, 8 /*FlowAbortMode*/, 4 /*cfg.AiEFlowAbortMode*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*Actor1Key*/, false) + && verifier.VerifyString(tablePos, 12 /*Actor2Key*/, false) + && verifier.VerifyField(tablePos, 14 /*Distance*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*ReverseResult*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEExecutor.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEExecutor.cs new file mode 100644 index 00000000..cb1f083a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEExecutor.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiEExecutor : int +{ + AiEExecutor_CLIENT = 0, + AiEExecutor_SERVER = 1, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEFinishMode.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEFinishMode.cs new file mode 100644 index 00000000..fd395a33 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEFinishMode.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiEFinishMode : int +{ + AiEFinishMode_IMMEDIATE = 0, + AiEFinishMode_DELAYED = 1, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEFlowAbortMode.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEFlowAbortMode.cs new file mode 100644 index 00000000..77dc74d0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEFlowAbortMode.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiEFlowAbortMode : int +{ + AiEFlowAbortMode_NONE = 0, + AiEFlowAbortMode_LOWER_PRIORITY = 1, + AiEFlowAbortMode_SELF = 2, + AiEFlowAbortMode_BOTH = 3, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEKeyType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEKeyType.cs new file mode 100644 index 00000000..965dd29b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEKeyType.cs @@ -0,0 +1,24 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiEKeyType : int +{ + __GENERATE_DEFAULT_VALUE = 0, + AiEKeyType_BOOL = 1, + AiEKeyType_INT = 2, + AiEKeyType_FLOAT = 3, + AiEKeyType_STRING = 4, + AiEKeyType_VECTOR = 5, + AiEKeyType_ROTATOR = 6, + AiEKeyType_NAME = 7, + AiEKeyType_CLASS = 8, + AiEKeyType_ENUM = 9, + AiEKeyType_OBJECT = 10, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiENotifyObserverMode.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiENotifyObserverMode.cs new file mode 100644 index 00000000..d199b4ad --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiENotifyObserverMode.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiENotifyObserverMode : int +{ + AiENotifyObserverMode_ON_VALUE_CHANGE = 0, + AiENotifyObserverMode_ON_RESULT_CHANGE = 1, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEOperator.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEOperator.cs new file mode 100644 index 00000000..26c1c93f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiEOperator.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiEOperator : int +{ + AiEOperator_IS_EQUAL_TO = 0, + AiEOperator_IS_NOT_EQUAL_TO = 1, + AiEOperator_IS_LESS_THAN = 2, + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3, + AiEOperator_IS_GREAT_THAN = 4, + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5, + AiEOperator_CONTAINS = 6, + AiEOperator_NOT_CONTAINS = 7, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiExecuteTimeStatistic.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiExecuteTimeStatistic.cs new file mode 100644 index 00000000..1bfa1954 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiExecuteTimeStatistic.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiExecuteTimeStatistic : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiExecuteTimeStatistic GetRootAsAiExecuteTimeStatistic(ByteBuffer _bb) { return GetRootAsAiExecuteTimeStatistic(_bb, new AiExecuteTimeStatistic()); } + public static AiExecuteTimeStatistic GetRootAsAiExecuteTimeStatistic(ByteBuffer _bb, AiExecuteTimeStatistic obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiExecuteTimeStatistic __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + + public static Offset CreateAiExecuteTimeStatistic(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset)) { + builder.StartTable(2); + AiExecuteTimeStatistic.AddNodeName(builder, node_nameOffset); + AiExecuteTimeStatistic.AddId(builder, id); + return AiExecuteTimeStatistic.EndAiExecuteTimeStatistic(builder); + } + + public static void StartAiExecuteTimeStatistic(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static Offset EndAiExecuteTimeStatistic(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiExecuteTimeStatisticVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiFloatKeyData.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiFloatKeyData.cs new file mode 100644 index 00000000..d1202e95 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiFloatKeyData.cs @@ -0,0 +1,50 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiFloatKeyData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiFloatKeyData GetRootAsAiFloatKeyData(ByteBuffer _bb) { return GetRootAsAiFloatKeyData(_bb, new AiFloatKeyData()); } + public static AiFloatKeyData GetRootAsAiFloatKeyData(ByteBuffer _bb, AiFloatKeyData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiFloatKeyData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float Value { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiFloatKeyData(FlatBufferBuilder builder, + float value = 0.0f) { + builder.StartTable(1); + AiFloatKeyData.AddValue(builder, value); + return AiFloatKeyData.EndAiFloatKeyData(builder); + } + + public static void StartAiFloatKeyData(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddValue(FlatBufferBuilder builder, float value) { builder.AddFloat(0, value, 0.0f); } + public static Offset EndAiFloatKeyData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiFloatKeyDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Value*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiFlowNode.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiFlowNode.cs new file mode 100644 index 00000000..019c6130 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiFlowNode.cs @@ -0,0 +1,24 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiFlowNode : byte +{ + NONE = 0, + AiSequence = 1, + AiSelector = 2, + AiSimpleParallel = 3, + AiUeWait = 4, + AiUeWaitBlackboardTime = 5, + AiMoveToTarget = 6, + AiChooseSkill = 7, + AiMoveToRandomLocation = 8, + AiMoveToLocation = 9, + AiDebugPrint = 10, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiGetOwnerPlayer.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiGetOwnerPlayer.cs new file mode 100644 index 00000000..3dc9b974 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiGetOwnerPlayer.cs @@ -0,0 +1,72 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiGetOwnerPlayer : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiGetOwnerPlayer GetRootAsAiGetOwnerPlayer(ByteBuffer _bb) { return GetRootAsAiGetOwnerPlayer(_bb, new AiGetOwnerPlayer()); } + public static AiGetOwnerPlayer GetRootAsAiGetOwnerPlayer(ByteBuffer _bb, AiGetOwnerPlayer obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiGetOwnerPlayer __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public string PlayerActorKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPlayerActorKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetPlayerActorKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetPlayerActorKeyArray() { return __p.__vector_as_array(8); } + + public static Offset CreateAiGetOwnerPlayer(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + StringOffset player_actor_keyOffset = default(StringOffset)) { + builder.StartTable(3); + AiGetOwnerPlayer.AddPlayerActorKey(builder, player_actor_keyOffset); + AiGetOwnerPlayer.AddNodeName(builder, node_nameOffset); + AiGetOwnerPlayer.AddId(builder, id); + return AiGetOwnerPlayer.EndAiGetOwnerPlayer(builder); + } + + public static void StartAiGetOwnerPlayer(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddPlayerActorKey(FlatBufferBuilder builder, StringOffset playerActorKeyOffset) { builder.AddOffset(2, playerActorKeyOffset.Value, 0); } + public static Offset EndAiGetOwnerPlayer(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiGetOwnerPlayerVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyString(tablePos, 8 /*PlayerActorKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIntKeyData.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIntKeyData.cs new file mode 100644 index 00000000..c7b916bf --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIntKeyData.cs @@ -0,0 +1,50 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiIntKeyData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiIntKeyData GetRootAsAiIntKeyData(ByteBuffer _bb) { return GetRootAsAiIntKeyData(_bb, new AiIntKeyData()); } + public static AiIntKeyData GetRootAsAiIntKeyData(ByteBuffer _bb, AiIntKeyData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiIntKeyData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Value { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateAiIntKeyData(FlatBufferBuilder builder, + int value = 0) { + builder.StartTable(1); + AiIntKeyData.AddValue(builder, value); + return AiIntKeyData.EndAiIntKeyData(builder); + } + + public static void StartAiIntKeyData(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddValue(FlatBufferBuilder builder, int value) { builder.AddInt(0, value, 0); } + public static Offset EndAiIntKeyData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiIntKeyDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Value*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsAtLocation.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsAtLocation.cs new file mode 100644 index 00000000..58670cc5 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsAtLocation.cs @@ -0,0 +1,87 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiIsAtLocation : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiIsAtLocation GetRootAsAiIsAtLocation(ByteBuffer _bb) { return GetRootAsAiIsAtLocation(_bb, new AiIsAtLocation()); } + public static AiIsAtLocation GetRootAsAiIsAtLocation(ByteBuffer _bb, AiIsAtLocation obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiIsAtLocation __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiEFlowAbortMode FlowAbortMode { get { int o = __p.__offset(8); return o != 0 ? (cfg.AiEFlowAbortMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE; } } + public float AcceptableRadius { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string KeyboardKey { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKeyboardKeyBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetKeyboardKeyBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetKeyboardKeyArray() { return __p.__vector_as_array(12); } + public bool InverseCondition { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateAiIsAtLocation(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + cfg.AiEFlowAbortMode flow_abort_mode = cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE, + float acceptable_radius = 0.0f, + StringOffset keyboard_keyOffset = default(StringOffset), + bool inverse_condition = false) { + builder.StartTable(6); + AiIsAtLocation.AddKeyboardKey(builder, keyboard_keyOffset); + AiIsAtLocation.AddAcceptableRadius(builder, acceptable_radius); + AiIsAtLocation.AddFlowAbortMode(builder, flow_abort_mode); + AiIsAtLocation.AddNodeName(builder, node_nameOffset); + AiIsAtLocation.AddId(builder, id); + AiIsAtLocation.AddInverseCondition(builder, inverse_condition); + return AiIsAtLocation.EndAiIsAtLocation(builder); + } + + public static void StartAiIsAtLocation(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddFlowAbortMode(FlatBufferBuilder builder, cfg.AiEFlowAbortMode flowAbortMode) { builder.AddInt(2, (int)flowAbortMode, 0); } + public static void AddAcceptableRadius(FlatBufferBuilder builder, float acceptableRadius) { builder.AddFloat(3, acceptableRadius, 0.0f); } + public static void AddKeyboardKey(FlatBufferBuilder builder, StringOffset keyboardKeyOffset) { builder.AddOffset(4, keyboardKeyOffset.Value, 0); } + public static void AddInverseCondition(FlatBufferBuilder builder, bool inverseCondition) { builder.AddBool(5, inverseCondition, false); } + public static Offset EndAiIsAtLocation(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiIsAtLocationVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyField(tablePos, 8 /*FlowAbortMode*/, 4 /*cfg.AiEFlowAbortMode*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*AcceptableRadius*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*KeyboardKey*/, false) + && verifier.VerifyField(tablePos, 14 /*InverseCondition*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsNotSet.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsNotSet.cs new file mode 100644 index 00000000..205f89d7 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsNotSet.cs @@ -0,0 +1,40 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiIsNotSet : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiIsNotSet GetRootAsAiIsNotSet(ByteBuffer _bb) { return GetRootAsAiIsNotSet(_bb, new AiIsNotSet()); } + public static AiIsNotSet GetRootAsAiIsNotSet(ByteBuffer _bb, AiIsNotSet obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiIsNotSet __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + + public static void StartAiIsNotSet(FlatBufferBuilder builder) { builder.StartTable(0); } + public static Offset EndAiIsNotSet(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiIsNotSetVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsSet.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsSet.cs new file mode 100644 index 00000000..a0f04583 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiIsSet.cs @@ -0,0 +1,40 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiIsSet : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiIsSet GetRootAsAiIsSet(ByteBuffer _bb) { return GetRootAsAiIsSet(_bb, new AiIsSet()); } + public static AiIsSet GetRootAsAiIsSet(ByteBuffer _bb, AiIsSet obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiIsSet __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + + public static void StartAiIsSet(FlatBufferBuilder builder) { builder.StartTable(0); } + public static Offset EndAiIsSet(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiIsSetVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeepFaceTarget.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeepFaceTarget.cs new file mode 100644 index 00000000..f7ab388a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeepFaceTarget.cs @@ -0,0 +1,72 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiKeepFaceTarget : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiKeepFaceTarget GetRootAsAiKeepFaceTarget(ByteBuffer _bb) { return GetRootAsAiKeepFaceTarget(_bb, new AiKeepFaceTarget()); } + public static AiKeepFaceTarget GetRootAsAiKeepFaceTarget(ByteBuffer _bb, AiKeepFaceTarget obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiKeepFaceTarget __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public string TargetActorKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTargetActorKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetTargetActorKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetTargetActorKeyArray() { return __p.__vector_as_array(8); } + + public static Offset CreateAiKeepFaceTarget(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + StringOffset target_actor_keyOffset = default(StringOffset)) { + builder.StartTable(3); + AiKeepFaceTarget.AddTargetActorKey(builder, target_actor_keyOffset); + AiKeepFaceTarget.AddNodeName(builder, node_nameOffset); + AiKeepFaceTarget.AddId(builder, id); + return AiKeepFaceTarget.EndAiKeepFaceTarget(builder); + } + + public static void StartAiKeepFaceTarget(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddTargetActorKey(FlatBufferBuilder builder, StringOffset targetActorKeyOffset) { builder.AddOffset(2, targetActorKeyOffset.Value, 0); } + public static Offset EndAiKeepFaceTarget(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiKeepFaceTargetVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyString(tablePos, 8 /*TargetActorKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeyData.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeyData.cs new file mode 100644 index 00000000..4f9287ee --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeyData.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiKeyData : byte +{ + NONE = 0, + AiFloatKeyData = 1, + AiIntKeyData = 2, + AiStringKeyData = 3, + AiBlackboardKeyData = 4, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeyQueryOperator.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeyQueryOperator.cs new file mode 100644 index 00000000..a0404efa --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiKeyQueryOperator.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiKeyQueryOperator : byte +{ + NONE = 0, + AiIsSet = 1, + AiIsNotSet = 2, + AiBinaryOperator = 3, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToLocation.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToLocation.cs new file mode 100644 index 00000000..d4729ccf --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToLocation.cs @@ -0,0 +1,129 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiMoveToLocation : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiMoveToLocation GetRootAsAiMoveToLocation(ByteBuffer _bb) { return GetRootAsAiMoveToLocation(_bb, new AiMoveToLocation()); } + public static AiMoveToLocation GetRootAsAiMoveToLocation(ByteBuffer _bb, AiMoveToLocation obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiMoveToLocation __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool IgnoreRestartSelf { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float AcceptableRadius { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiMoveToLocation(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + bool ignore_restart_self = false, + float acceptable_radius = 0.0f) { + builder.StartTable(8); + AiMoveToLocation.AddAcceptableRadius(builder, acceptable_radius); + AiMoveToLocation.AddServices(builder, servicesOffset); + AiMoveToLocation.AddServicesType(builder, services_typeOffset); + AiMoveToLocation.AddDecorators(builder, decoratorsOffset); + AiMoveToLocation.AddDecoratorsType(builder, decorators_typeOffset); + AiMoveToLocation.AddNodeName(builder, node_nameOffset); + AiMoveToLocation.AddId(builder, id); + AiMoveToLocation.AddIgnoreRestartSelf(builder, ignore_restart_self); + return AiMoveToLocation.EndAiMoveToLocation(builder); + } + + public static void StartAiMoveToLocation(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIgnoreRestartSelf(FlatBufferBuilder builder, bool ignoreRestartSelf) { builder.AddBool(6, ignoreRestartSelf, false); } + public static void AddAcceptableRadius(FlatBufferBuilder builder, float acceptableRadius) { builder.AddFloat(7, acceptableRadius, 0.0f); } + public static Offset EndAiMoveToLocation(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + return new Offset(o); + } +} + + +static public class AiMoveToLocationVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*IgnoreRestartSelf*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*AcceptableRadius*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToRandomLocation.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToRandomLocation.cs new file mode 100644 index 00000000..3ccd86b8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToRandomLocation.cs @@ -0,0 +1,140 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiMoveToRandomLocation : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiMoveToRandomLocation GetRootAsAiMoveToRandomLocation(ByteBuffer _bb) { return GetRootAsAiMoveToRandomLocation(_bb, new AiMoveToRandomLocation()); } + public static AiMoveToRandomLocation GetRootAsAiMoveToRandomLocation(ByteBuffer _bb, AiMoveToRandomLocation obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiMoveToRandomLocation __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool IgnoreRestartSelf { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string OriginPositionKey { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOriginPositionKeyBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetOriginPositionKeyBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetOriginPositionKeyArray() { return __p.__vector_as_array(18); } + public float Radius { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiMoveToRandomLocation(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + bool ignore_restart_self = false, + StringOffset origin_position_keyOffset = default(StringOffset), + float radius = 0.0f) { + builder.StartTable(9); + AiMoveToRandomLocation.AddRadius(builder, radius); + AiMoveToRandomLocation.AddOriginPositionKey(builder, origin_position_keyOffset); + AiMoveToRandomLocation.AddServices(builder, servicesOffset); + AiMoveToRandomLocation.AddServicesType(builder, services_typeOffset); + AiMoveToRandomLocation.AddDecorators(builder, decoratorsOffset); + AiMoveToRandomLocation.AddDecoratorsType(builder, decorators_typeOffset); + AiMoveToRandomLocation.AddNodeName(builder, node_nameOffset); + AiMoveToRandomLocation.AddId(builder, id); + AiMoveToRandomLocation.AddIgnoreRestartSelf(builder, ignore_restart_self); + return AiMoveToRandomLocation.EndAiMoveToRandomLocation(builder); + } + + public static void StartAiMoveToRandomLocation(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIgnoreRestartSelf(FlatBufferBuilder builder, bool ignoreRestartSelf) { builder.AddBool(6, ignoreRestartSelf, false); } + public static void AddOriginPositionKey(FlatBufferBuilder builder, StringOffset originPositionKeyOffset) { builder.AddOffset(7, originPositionKeyOffset.Value, 0); } + public static void AddRadius(FlatBufferBuilder builder, float radius) { builder.AddFloat(8, radius, 0.0f); } + public static Offset EndAiMoveToRandomLocation(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + return new Offset(o); + } +} + + +static public class AiMoveToRandomLocationVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*IgnoreRestartSelf*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 18 /*OriginPositionKey*/, false) + && verifier.VerifyField(tablePos, 20 /*Radius*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToTarget.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToTarget.cs new file mode 100644 index 00000000..060fef64 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiMoveToTarget.cs @@ -0,0 +1,140 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiMoveToTarget : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiMoveToTarget GetRootAsAiMoveToTarget(ByteBuffer _bb) { return GetRootAsAiMoveToTarget(_bb, new AiMoveToTarget()); } + public static AiMoveToTarget GetRootAsAiMoveToTarget(ByteBuffer _bb, AiMoveToTarget obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiMoveToTarget __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool IgnoreRestartSelf { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string TargetActorKey { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTargetActorKeyBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetTargetActorKeyBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetTargetActorKeyArray() { return __p.__vector_as_array(18); } + public float AcceptableRadius { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiMoveToTarget(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + bool ignore_restart_self = false, + StringOffset target_actor_keyOffset = default(StringOffset), + float acceptable_radius = 0.0f) { + builder.StartTable(9); + AiMoveToTarget.AddAcceptableRadius(builder, acceptable_radius); + AiMoveToTarget.AddTargetActorKey(builder, target_actor_keyOffset); + AiMoveToTarget.AddServices(builder, servicesOffset); + AiMoveToTarget.AddServicesType(builder, services_typeOffset); + AiMoveToTarget.AddDecorators(builder, decoratorsOffset); + AiMoveToTarget.AddDecoratorsType(builder, decorators_typeOffset); + AiMoveToTarget.AddNodeName(builder, node_nameOffset); + AiMoveToTarget.AddId(builder, id); + AiMoveToTarget.AddIgnoreRestartSelf(builder, ignore_restart_self); + return AiMoveToTarget.EndAiMoveToTarget(builder); + } + + public static void StartAiMoveToTarget(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIgnoreRestartSelf(FlatBufferBuilder builder, bool ignoreRestartSelf) { builder.AddBool(6, ignoreRestartSelf, false); } + public static void AddTargetActorKey(FlatBufferBuilder builder, StringOffset targetActorKeyOffset) { builder.AddOffset(7, targetActorKeyOffset.Value, 0); } + public static void AddAcceptableRadius(FlatBufferBuilder builder, float acceptableRadius) { builder.AddFloat(8, acceptableRadius, 0.0f); } + public static Offset EndAiMoveToTarget(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + return new Offset(o); + } +} + + +static public class AiMoveToTargetVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*IgnoreRestartSelf*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 18 /*TargetActorKey*/, false) + && verifier.VerifyField(tablePos, 20 /*AcceptableRadius*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiNode.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiNode.cs new file mode 100644 index 00000000..fe04984b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiNode.cs @@ -0,0 +1,37 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiNode : byte +{ + NONE = 0, + AiUeSetDefaultFocus = 1, + AiExecuteTimeStatistic = 2, + AiChooseTarget = 3, + AiKeepFaceTarget = 4, + AiGetOwnerPlayer = 5, + AiUpdateDailyBehaviorProps = 6, + AiUeLoop = 7, + AiUeCooldown = 8, + AiUeTimeLimit = 9, + AiUeBlackboard = 10, + AiUeForceSuccess = 11, + AiIsAtLocation = 12, + AiDistanceLessThan = 13, + AiSequence = 14, + AiSelector = 15, + AiSimpleParallel = 16, + AiUeWait = 17, + AiUeWaitBlackboardTime = 18, + AiMoveToTarget = 19, + AiChooseSkill = 20, + AiMoveToRandomLocation = 21, + AiMoveToLocation = 22, + AiDebugPrint = 23, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSelector.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSelector.cs new file mode 100644 index 00000000..a225f732 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSelector.cs @@ -0,0 +1,148 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiSelector : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiSelector GetRootAsAiSelector(ByteBuffer _bb) { return GetRootAsAiSelector(_bb, new AiSelector()); } + public static AiSelector GetRootAsAiSelector(ByteBuffer _bb, AiSelector obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiSelector __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiFlowNode ChildrenType(int j) { int o = __p.__offset(16); return o != 0 ? (cfg.AiFlowNode)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiFlowNode)0; } + public int ChildrenTypeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetChildrenTypeBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetChildrenTypeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public cfg.AiFlowNode[] GetChildrenTypeArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiFlowNode[] a = new cfg.AiFlowNode[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiFlowNode)__p.bb.Get(p + i * 1); } return a; } + public TTable? Children(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(18); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ChildrenLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateAiSelector(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + VectorOffset children_typeOffset = default(VectorOffset), + VectorOffset childrenOffset = default(VectorOffset)) { + builder.StartTable(8); + AiSelector.AddChildren(builder, childrenOffset); + AiSelector.AddChildrenType(builder, children_typeOffset); + AiSelector.AddServices(builder, servicesOffset); + AiSelector.AddServicesType(builder, services_typeOffset); + AiSelector.AddDecorators(builder, decoratorsOffset); + AiSelector.AddDecoratorsType(builder, decorators_typeOffset); + AiSelector.AddNodeName(builder, node_nameOffset); + AiSelector.AddId(builder, id); + return AiSelector.EndAiSelector(builder); + } + + public static void StartAiSelector(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddChildrenType(FlatBufferBuilder builder, VectorOffset childrenTypeOffset) { builder.AddOffset(6, childrenTypeOffset.Value, 0); } + public static VectorOffset CreateChildrenTypeVector(FlatBufferBuilder builder, cfg.AiFlowNode[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateChildrenTypeVectorBlock(FlatBufferBuilder builder, cfg.AiFlowNode[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartChildrenTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddChildren(FlatBufferBuilder builder, VectorOffset childrenOffset) { builder.AddOffset(7, childrenOffset.Value, 0); } + public static VectorOffset CreateChildrenVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateChildrenVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartChildrenVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAiSelector(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + builder.Required(o, 16); // children_type + builder.Required(o, 18); // children + return new Offset(o); + } +} + + +static public class AiSelectorVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyVectorOfData(tablePos, 16 /*ChildrenType*/, 1 /*cfg.AiFlowNode*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSequence.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSequence.cs new file mode 100644 index 00000000..9b07ae86 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSequence.cs @@ -0,0 +1,148 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiSequence : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiSequence GetRootAsAiSequence(ByteBuffer _bb) { return GetRootAsAiSequence(_bb, new AiSequence()); } + public static AiSequence GetRootAsAiSequence(ByteBuffer _bb, AiSequence obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiSequence __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiFlowNode ChildrenType(int j) { int o = __p.__offset(16); return o != 0 ? (cfg.AiFlowNode)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiFlowNode)0; } + public int ChildrenTypeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetChildrenTypeBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetChildrenTypeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public cfg.AiFlowNode[] GetChildrenTypeArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiFlowNode[] a = new cfg.AiFlowNode[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiFlowNode)__p.bb.Get(p + i * 1); } return a; } + public TTable? Children(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(18); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ChildrenLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateAiSequence(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + VectorOffset children_typeOffset = default(VectorOffset), + VectorOffset childrenOffset = default(VectorOffset)) { + builder.StartTable(8); + AiSequence.AddChildren(builder, childrenOffset); + AiSequence.AddChildrenType(builder, children_typeOffset); + AiSequence.AddServices(builder, servicesOffset); + AiSequence.AddServicesType(builder, services_typeOffset); + AiSequence.AddDecorators(builder, decoratorsOffset); + AiSequence.AddDecoratorsType(builder, decorators_typeOffset); + AiSequence.AddNodeName(builder, node_nameOffset); + AiSequence.AddId(builder, id); + return AiSequence.EndAiSequence(builder); + } + + public static void StartAiSequence(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddChildrenType(FlatBufferBuilder builder, VectorOffset childrenTypeOffset) { builder.AddOffset(6, childrenTypeOffset.Value, 0); } + public static VectorOffset CreateChildrenTypeVector(FlatBufferBuilder builder, cfg.AiFlowNode[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateChildrenTypeVectorBlock(FlatBufferBuilder builder, cfg.AiFlowNode[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartChildrenTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddChildren(FlatBufferBuilder builder, VectorOffset childrenOffset) { builder.AddOffset(7, childrenOffset.Value, 0); } + public static VectorOffset CreateChildrenVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateChildrenVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChildrenVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartChildrenVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAiSequence(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + builder.Required(o, 16); // children_type + builder.Required(o, 18); // children + return new Offset(o); + } +} + + +static public class AiSequenceVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyVectorOfData(tablePos, 16 /*ChildrenType*/, 1 /*cfg.AiFlowNode*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiService.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiService.cs new file mode 100644 index 00000000..f5b42197 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiService.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiService : byte +{ + NONE = 0, + AiUeSetDefaultFocus = 1, + AiExecuteTimeStatistic = 2, + AiChooseTarget = 3, + AiKeepFaceTarget = 4, + AiGetOwnerPlayer = 5, + AiUpdateDailyBehaviorProps = 6, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSimpleParallel.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSimpleParallel.cs new file mode 100644 index 00000000..2e70f166 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiSimpleParallel.cs @@ -0,0 +1,163 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiSimpleParallel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiSimpleParallel GetRootAsAiSimpleParallel(ByteBuffer _bb) { return GetRootAsAiSimpleParallel(_bb, new AiSimpleParallel()); } + public static AiSimpleParallel GetRootAsAiSimpleParallel(ByteBuffer _bb, AiSimpleParallel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiSimpleParallel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiEFinishMode FinishMode { get { int o = __p.__offset(16); return o != 0 ? (cfg.AiEFinishMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFinishMode.AiEFinishMode_IMMEDIATE; } } + public cfg.AiTask MainTaskType { get { int o = __p.__offset(18); return o != 0 ? (cfg.AiTask)__p.bb.Get(o + __p.bb_pos) : cfg.AiTask.NONE; } } + public TTable? MainTask() where TTable : struct, IFlatbufferObject { int o = __p.__offset(20); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.AiUeWait MainTaskAsAiUeWait() { return MainTask().Value; } + public cfg.AiUeWaitBlackboardTime MainTaskAsAiUeWaitBlackboardTime() { return MainTask().Value; } + public cfg.AiMoveToTarget MainTaskAsAiMoveToTarget() { return MainTask().Value; } + public cfg.AiChooseSkill MainTaskAsAiChooseSkill() { return MainTask().Value; } + public cfg.AiMoveToRandomLocation MainTaskAsAiMoveToRandomLocation() { return MainTask().Value; } + public cfg.AiMoveToLocation MainTaskAsAiMoveToLocation() { return MainTask().Value; } + public cfg.AiDebugPrint MainTaskAsAiDebugPrint() { return MainTask().Value; } + public cfg.AiFlowNode BackgroundNodeType { get { int o = __p.__offset(22); return o != 0 ? (cfg.AiFlowNode)__p.bb.Get(o + __p.bb_pos) : cfg.AiFlowNode.NONE; } } + public TTable? BackgroundNode() where TTable : struct, IFlatbufferObject { int o = __p.__offset(24); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.AiSequence BackgroundNodeAsAiSequence() { return BackgroundNode().Value; } + public cfg.AiSelector BackgroundNodeAsAiSelector() { return BackgroundNode().Value; } + public cfg.AiSimpleParallel BackgroundNodeAsAiSimpleParallel() { return BackgroundNode().Value; } + public cfg.AiUeWait BackgroundNodeAsAiUeWait() { return BackgroundNode().Value; } + public cfg.AiUeWaitBlackboardTime BackgroundNodeAsAiUeWaitBlackboardTime() { return BackgroundNode().Value; } + public cfg.AiMoveToTarget BackgroundNodeAsAiMoveToTarget() { return BackgroundNode().Value; } + public cfg.AiChooseSkill BackgroundNodeAsAiChooseSkill() { return BackgroundNode().Value; } + public cfg.AiMoveToRandomLocation BackgroundNodeAsAiMoveToRandomLocation() { return BackgroundNode().Value; } + public cfg.AiMoveToLocation BackgroundNodeAsAiMoveToLocation() { return BackgroundNode().Value; } + public cfg.AiDebugPrint BackgroundNodeAsAiDebugPrint() { return BackgroundNode().Value; } + + public static Offset CreateAiSimpleParallel(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + cfg.AiEFinishMode finish_mode = cfg.AiEFinishMode.AiEFinishMode_IMMEDIATE, + cfg.AiTask main_task_type = cfg.AiTask.NONE, + int main_taskOffset = 0, + cfg.AiFlowNode background_node_type = cfg.AiFlowNode.NONE, + int background_nodeOffset = 0) { + builder.StartTable(11); + AiSimpleParallel.AddBackgroundNode(builder, background_nodeOffset); + AiSimpleParallel.AddMainTask(builder, main_taskOffset); + AiSimpleParallel.AddFinishMode(builder, finish_mode); + AiSimpleParallel.AddServices(builder, servicesOffset); + AiSimpleParallel.AddServicesType(builder, services_typeOffset); + AiSimpleParallel.AddDecorators(builder, decoratorsOffset); + AiSimpleParallel.AddDecoratorsType(builder, decorators_typeOffset); + AiSimpleParallel.AddNodeName(builder, node_nameOffset); + AiSimpleParallel.AddId(builder, id); + AiSimpleParallel.AddBackgroundNodeType(builder, background_node_type); + AiSimpleParallel.AddMainTaskType(builder, main_task_type); + return AiSimpleParallel.EndAiSimpleParallel(builder); + } + + public static void StartAiSimpleParallel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddFinishMode(FlatBufferBuilder builder, cfg.AiEFinishMode finishMode) { builder.AddInt(6, (int)finishMode, 0); } + public static void AddMainTaskType(FlatBufferBuilder builder, cfg.AiTask mainTaskType) { builder.AddByte(7, (byte)mainTaskType, 0); } + public static void AddMainTask(FlatBufferBuilder builder, int mainTaskOffset) { builder.AddOffset(8, mainTaskOffset, 0); } + public static void AddBackgroundNodeType(FlatBufferBuilder builder, cfg.AiFlowNode backgroundNodeType) { builder.AddByte(9, (byte)backgroundNodeType, 0); } + public static void AddBackgroundNode(FlatBufferBuilder builder, int backgroundNodeOffset) { builder.AddOffset(10, backgroundNodeOffset, 0); } + public static Offset EndAiSimpleParallel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + builder.Required(o, 20); // main_task + builder.Required(o, 24); // background_node + return new Offset(o); + } +} + + +static public class AiSimpleParallelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*FinishMode*/, 4 /*cfg.AiEFinishMode*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*MainTaskType*/, 1 /*cfg.AiTask*/, 1, false) + && verifier.VerifyUnion(tablePos, 18, 20 /*MainTask*/, cfg.AiTaskVerify.Verify, true) + && verifier.VerifyField(tablePos, 22 /*BackgroundNodeType*/, 1 /*cfg.AiFlowNode*/, 1, false) + && verifier.VerifyUnion(tablePos, 22, 24 /*BackgroundNode*/, cfg.AiFlowNodeVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiStringKeyData.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiStringKeyData.cs new file mode 100644 index 00000000..b76292c0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiStringKeyData.cs @@ -0,0 +1,56 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiStringKeyData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiStringKeyData GetRootAsAiStringKeyData(ByteBuffer _bb) { return GetRootAsAiStringKeyData(_bb, new AiStringKeyData()); } + public static AiStringKeyData GetRootAsAiStringKeyData(ByteBuffer _bb, AiStringKeyData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiStringKeyData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Value { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetValueBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetValueBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetValueArray() { return __p.__vector_as_array(4); } + + public static Offset CreateAiStringKeyData(FlatBufferBuilder builder, + StringOffset valueOffset = default(StringOffset)) { + builder.StartTable(1); + AiStringKeyData.AddValue(builder, valueOffset); + return AiStringKeyData.EndAiStringKeyData(builder); + } + + public static void StartAiStringKeyData(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddValue(FlatBufferBuilder builder, StringOffset valueOffset) { builder.AddOffset(0, valueOffset.Value, 0); } + public static Offset EndAiStringKeyData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiStringKeyDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Value*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTask.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTask.cs new file mode 100644 index 00000000..b20fcec0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTask.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AiTask : byte +{ + NONE = 0, + AiUeWait = 1, + AiUeWaitBlackboardTime = 2, + AiMoveToTarget = 3, + AiChooseSkill = 4, + AiMoveToRandomLocation = 5, + AiMoveToLocation = 6, + AiDebugPrint = 7, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTbBehaviorTree.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTbBehaviorTree.cs new file mode 100644 index 00000000..4ed9b320 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTbBehaviorTree.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiTbBehaviorTree : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiTbBehaviorTree GetRootAsAiTbBehaviorTree(ByteBuffer _bb) { return GetRootAsAiTbBehaviorTree(_bb, new AiTbBehaviorTree()); } + public static AiTbBehaviorTree GetRootAsAiTbBehaviorTree(ByteBuffer _bb, AiTbBehaviorTree obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiTbBehaviorTree __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.AiBehaviorTree? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.AiBehaviorTree?)(new cfg.AiBehaviorTree()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateAiTbBehaviorTree(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + AiTbBehaviorTree.AddDataList(builder, data_listOffset); + return AiTbBehaviorTree.EndAiTbBehaviorTree(builder); + } + + public static void StartAiTbBehaviorTree(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAiTbBehaviorTree(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class AiTbBehaviorTreeVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.AiBehaviorTreeVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTbBlackboard.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTbBlackboard.cs new file mode 100644 index 00000000..a8b75237 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiTbBlackboard.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiTbBlackboard : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiTbBlackboard GetRootAsAiTbBlackboard(ByteBuffer _bb) { return GetRootAsAiTbBlackboard(_bb, new AiTbBlackboard()); } + public static AiTbBlackboard GetRootAsAiTbBlackboard(ByteBuffer _bb, AiTbBlackboard obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiTbBlackboard __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.AiBlackboard? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.AiBlackboard?)(new cfg.AiBlackboard()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateAiTbBlackboard(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + AiTbBlackboard.AddDataList(builder, data_listOffset); + return AiTbBlackboard.EndAiTbBlackboard(builder); + } + + public static void StartAiTbBlackboard(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAiTbBlackboard(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class AiTbBlackboardVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.AiBlackboardVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeBlackboard.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeBlackboard.cs new file mode 100644 index 00000000..f581aad8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeBlackboard.cs @@ -0,0 +1,96 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeBlackboard : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeBlackboard GetRootAsAiUeBlackboard(ByteBuffer _bb) { return GetRootAsAiUeBlackboard(_bb, new AiUeBlackboard()); } + public static AiUeBlackboard GetRootAsAiUeBlackboard(ByteBuffer _bb, AiUeBlackboard obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeBlackboard __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiEFlowAbortMode FlowAbortMode { get { int o = __p.__offset(8); return o != 0 ? (cfg.AiEFlowAbortMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE; } } + public cfg.AiENotifyObserverMode NotifyObserver { get { int o = __p.__offset(10); return o != 0 ? (cfg.AiENotifyObserverMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiENotifyObserverMode.AiENotifyObserverMode_ON_VALUE_CHANGE; } } + public string BlackboardKey { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBlackboardKeyBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetBlackboardKeyBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetBlackboardKeyArray() { return __p.__vector_as_array(12); } + public cfg.AiKeyQueryOperator KeyQueryType { get { int o = __p.__offset(14); return o != 0 ? (cfg.AiKeyQueryOperator)__p.bb.Get(o + __p.bb_pos) : cfg.AiKeyQueryOperator.NONE; } } + public TTable? KeyQuery() where TTable : struct, IFlatbufferObject { int o = __p.__offset(16); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.AiIsSet KeyQueryAsAiIsSet() { return KeyQuery().Value; } + public cfg.AiIsNotSet KeyQueryAsAiIsNotSet() { return KeyQuery().Value; } + public cfg.AiBinaryOperator KeyQueryAsAiBinaryOperator() { return KeyQuery().Value; } + + public static Offset CreateAiUeBlackboard(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + cfg.AiEFlowAbortMode flow_abort_mode = cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE, + cfg.AiENotifyObserverMode notify_observer = cfg.AiENotifyObserverMode.AiENotifyObserverMode_ON_VALUE_CHANGE, + StringOffset blackboard_keyOffset = default(StringOffset), + cfg.AiKeyQueryOperator key_query_type = cfg.AiKeyQueryOperator.NONE, + int key_queryOffset = 0) { + builder.StartTable(7); + AiUeBlackboard.AddKeyQuery(builder, key_queryOffset); + AiUeBlackboard.AddBlackboardKey(builder, blackboard_keyOffset); + AiUeBlackboard.AddNotifyObserver(builder, notify_observer); + AiUeBlackboard.AddFlowAbortMode(builder, flow_abort_mode); + AiUeBlackboard.AddNodeName(builder, node_nameOffset); + AiUeBlackboard.AddId(builder, id); + AiUeBlackboard.AddKeyQueryType(builder, key_query_type); + return AiUeBlackboard.EndAiUeBlackboard(builder); + } + + public static void StartAiUeBlackboard(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddFlowAbortMode(FlatBufferBuilder builder, cfg.AiEFlowAbortMode flowAbortMode) { builder.AddInt(2, (int)flowAbortMode, 0); } + public static void AddNotifyObserver(FlatBufferBuilder builder, cfg.AiENotifyObserverMode notifyObserver) { builder.AddInt(3, (int)notifyObserver, 0); } + public static void AddBlackboardKey(FlatBufferBuilder builder, StringOffset blackboardKeyOffset) { builder.AddOffset(4, blackboardKeyOffset.Value, 0); } + public static void AddKeyQueryType(FlatBufferBuilder builder, cfg.AiKeyQueryOperator keyQueryType) { builder.AddByte(5, (byte)keyQueryType, 0); } + public static void AddKeyQuery(FlatBufferBuilder builder, int keyQueryOffset) { builder.AddOffset(6, keyQueryOffset, 0); } + public static Offset EndAiUeBlackboard(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 16); // key_query + return new Offset(o); + } +} + + +static public class AiUeBlackboardVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyField(tablePos, 8 /*FlowAbortMode*/, 4 /*cfg.AiEFlowAbortMode*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*NotifyObserver*/, 4 /*cfg.AiENotifyObserverMode*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*BlackboardKey*/, false) + && verifier.VerifyField(tablePos, 14 /*KeyQueryType*/, 1 /*cfg.AiKeyQueryOperator*/, 1, false) + && verifier.VerifyUnion(tablePos, 14, 16 /*KeyQuery*/, cfg.AiKeyQueryOperatorVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeCooldown.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeCooldown.cs new file mode 100644 index 00000000..ba1e5c27 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeCooldown.cs @@ -0,0 +1,71 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeCooldown : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeCooldown GetRootAsAiUeCooldown(ByteBuffer _bb) { return GetRootAsAiUeCooldown(_bb, new AiUeCooldown()); } + public static AiUeCooldown GetRootAsAiUeCooldown(ByteBuffer _bb, AiUeCooldown obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeCooldown __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiEFlowAbortMode FlowAbortMode { get { int o = __p.__offset(8); return o != 0 ? (cfg.AiEFlowAbortMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE; } } + public float CooldownTime { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiUeCooldown(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + cfg.AiEFlowAbortMode flow_abort_mode = cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE, + float cooldown_time = 0.0f) { + builder.StartTable(4); + AiUeCooldown.AddCooldownTime(builder, cooldown_time); + AiUeCooldown.AddFlowAbortMode(builder, flow_abort_mode); + AiUeCooldown.AddNodeName(builder, node_nameOffset); + AiUeCooldown.AddId(builder, id); + return AiUeCooldown.EndAiUeCooldown(builder); + } + + public static void StartAiUeCooldown(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddFlowAbortMode(FlatBufferBuilder builder, cfg.AiEFlowAbortMode flowAbortMode) { builder.AddInt(2, (int)flowAbortMode, 0); } + public static void AddCooldownTime(FlatBufferBuilder builder, float cooldownTime) { builder.AddFloat(3, cooldownTime, 0.0f); } + public static Offset EndAiUeCooldown(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiUeCooldownVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyField(tablePos, 8 /*FlowAbortMode*/, 4 /*cfg.AiEFlowAbortMode*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CooldownTime*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeForceSuccess.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeForceSuccess.cs new file mode 100644 index 00000000..3068608a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeForceSuccess.cs @@ -0,0 +1,66 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeForceSuccess : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeForceSuccess GetRootAsAiUeForceSuccess(ByteBuffer _bb) { return GetRootAsAiUeForceSuccess(_bb, new AiUeForceSuccess()); } + public static AiUeForceSuccess GetRootAsAiUeForceSuccess(ByteBuffer _bb, AiUeForceSuccess obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeForceSuccess __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiEFlowAbortMode FlowAbortMode { get { int o = __p.__offset(8); return o != 0 ? (cfg.AiEFlowAbortMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE; } } + + public static Offset CreateAiUeForceSuccess(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + cfg.AiEFlowAbortMode flow_abort_mode = cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE) { + builder.StartTable(3); + AiUeForceSuccess.AddFlowAbortMode(builder, flow_abort_mode); + AiUeForceSuccess.AddNodeName(builder, node_nameOffset); + AiUeForceSuccess.AddId(builder, id); + return AiUeForceSuccess.EndAiUeForceSuccess(builder); + } + + public static void StartAiUeForceSuccess(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddFlowAbortMode(FlatBufferBuilder builder, cfg.AiEFlowAbortMode flowAbortMode) { builder.AddInt(2, (int)flowAbortMode, 0); } + public static Offset EndAiUeForceSuccess(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiUeForceSuccessVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyField(tablePos, 8 /*FlowAbortMode*/, 4 /*cfg.AiEFlowAbortMode*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeLoop.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeLoop.cs new file mode 100644 index 00000000..c1a628d0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeLoop.cs @@ -0,0 +1,81 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeLoop : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeLoop GetRootAsAiUeLoop(ByteBuffer _bb) { return GetRootAsAiUeLoop(_bb, new AiUeLoop()); } + public static AiUeLoop GetRootAsAiUeLoop(ByteBuffer _bb, AiUeLoop obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeLoop __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiEFlowAbortMode FlowAbortMode { get { int o = __p.__offset(8); return o != 0 ? (cfg.AiEFlowAbortMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE; } } + public int NumLoops { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool InfiniteLoop { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float InfiniteLoopTimeoutTime { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiUeLoop(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + cfg.AiEFlowAbortMode flow_abort_mode = cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE, + int num_loops = 0, + bool infinite_loop = false, + float infinite_loop_timeout_time = 0.0f) { + builder.StartTable(6); + AiUeLoop.AddInfiniteLoopTimeoutTime(builder, infinite_loop_timeout_time); + AiUeLoop.AddNumLoops(builder, num_loops); + AiUeLoop.AddFlowAbortMode(builder, flow_abort_mode); + AiUeLoop.AddNodeName(builder, node_nameOffset); + AiUeLoop.AddId(builder, id); + AiUeLoop.AddInfiniteLoop(builder, infinite_loop); + return AiUeLoop.EndAiUeLoop(builder); + } + + public static void StartAiUeLoop(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddFlowAbortMode(FlatBufferBuilder builder, cfg.AiEFlowAbortMode flowAbortMode) { builder.AddInt(2, (int)flowAbortMode, 0); } + public static void AddNumLoops(FlatBufferBuilder builder, int numLoops) { builder.AddInt(3, numLoops, 0); } + public static void AddInfiniteLoop(FlatBufferBuilder builder, bool infiniteLoop) { builder.AddBool(4, infiniteLoop, false); } + public static void AddInfiniteLoopTimeoutTime(FlatBufferBuilder builder, float infiniteLoopTimeoutTime) { builder.AddFloat(5, infiniteLoopTimeoutTime, 0.0f); } + public static Offset EndAiUeLoop(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiUeLoopVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyField(tablePos, 8 /*FlowAbortMode*/, 4 /*cfg.AiEFlowAbortMode*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*NumLoops*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*InfiniteLoop*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*InfiniteLoopTimeoutTime*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeSetDefaultFocus.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeSetDefaultFocus.cs new file mode 100644 index 00000000..4f5e493d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeSetDefaultFocus.cs @@ -0,0 +1,72 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeSetDefaultFocus : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeSetDefaultFocus GetRootAsAiUeSetDefaultFocus(ByteBuffer _bb) { return GetRootAsAiUeSetDefaultFocus(_bb, new AiUeSetDefaultFocus()); } + public static AiUeSetDefaultFocus GetRootAsAiUeSetDefaultFocus(ByteBuffer _bb, AiUeSetDefaultFocus obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeSetDefaultFocus __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public string KeyboardKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKeyboardKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetKeyboardKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetKeyboardKeyArray() { return __p.__vector_as_array(8); } + + public static Offset CreateAiUeSetDefaultFocus(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + StringOffset keyboard_keyOffset = default(StringOffset)) { + builder.StartTable(3); + AiUeSetDefaultFocus.AddKeyboardKey(builder, keyboard_keyOffset); + AiUeSetDefaultFocus.AddNodeName(builder, node_nameOffset); + AiUeSetDefaultFocus.AddId(builder, id); + return AiUeSetDefaultFocus.EndAiUeSetDefaultFocus(builder); + } + + public static void StartAiUeSetDefaultFocus(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddKeyboardKey(FlatBufferBuilder builder, StringOffset keyboardKeyOffset) { builder.AddOffset(2, keyboardKeyOffset.Value, 0); } + public static Offset EndAiUeSetDefaultFocus(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiUeSetDefaultFocusVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyString(tablePos, 8 /*KeyboardKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeTimeLimit.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeTimeLimit.cs new file mode 100644 index 00000000..b57b2426 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeTimeLimit.cs @@ -0,0 +1,71 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeTimeLimit : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeTimeLimit GetRootAsAiUeTimeLimit(ByteBuffer _bb) { return GetRootAsAiUeTimeLimit(_bb, new AiUeTimeLimit()); } + public static AiUeTimeLimit GetRootAsAiUeTimeLimit(ByteBuffer _bb, AiUeTimeLimit obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeTimeLimit __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiEFlowAbortMode FlowAbortMode { get { int o = __p.__offset(8); return o != 0 ? (cfg.AiEFlowAbortMode)__p.bb.GetInt(o + __p.bb_pos) : cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE; } } + public float LimitTime { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiUeTimeLimit(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + cfg.AiEFlowAbortMode flow_abort_mode = cfg.AiEFlowAbortMode.AiEFlowAbortMode_NONE, + float limit_time = 0.0f) { + builder.StartTable(4); + AiUeTimeLimit.AddLimitTime(builder, limit_time); + AiUeTimeLimit.AddFlowAbortMode(builder, flow_abort_mode); + AiUeTimeLimit.AddNodeName(builder, node_nameOffset); + AiUeTimeLimit.AddId(builder, id); + return AiUeTimeLimit.EndAiUeTimeLimit(builder); + } + + public static void StartAiUeTimeLimit(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddFlowAbortMode(FlatBufferBuilder builder, cfg.AiEFlowAbortMode flowAbortMode) { builder.AddInt(2, (int)flowAbortMode, 0); } + public static void AddLimitTime(FlatBufferBuilder builder, float limitTime) { builder.AddFloat(3, limitTime, 0.0f); } + public static Offset EndAiUeTimeLimit(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiUeTimeLimitVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyField(tablePos, 8 /*FlowAbortMode*/, 4 /*cfg.AiEFlowAbortMode*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*LimitTime*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeWait.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeWait.cs new file mode 100644 index 00000000..c7e0d252 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeWait.cs @@ -0,0 +1,134 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeWait : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeWait GetRootAsAiUeWait(ByteBuffer _bb) { return GetRootAsAiUeWait(_bb, new AiUeWait()); } + public static AiUeWait GetRootAsAiUeWait(ByteBuffer _bb, AiUeWait obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeWait __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool IgnoreRestartSelf { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float WaitTime { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float RandomDeviation { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateAiUeWait(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + bool ignore_restart_self = false, + float wait_time = 0.0f, + float random_deviation = 0.0f) { + builder.StartTable(9); + AiUeWait.AddRandomDeviation(builder, random_deviation); + AiUeWait.AddWaitTime(builder, wait_time); + AiUeWait.AddServices(builder, servicesOffset); + AiUeWait.AddServicesType(builder, services_typeOffset); + AiUeWait.AddDecorators(builder, decoratorsOffset); + AiUeWait.AddDecoratorsType(builder, decorators_typeOffset); + AiUeWait.AddNodeName(builder, node_nameOffset); + AiUeWait.AddId(builder, id); + AiUeWait.AddIgnoreRestartSelf(builder, ignore_restart_self); + return AiUeWait.EndAiUeWait(builder); + } + + public static void StartAiUeWait(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIgnoreRestartSelf(FlatBufferBuilder builder, bool ignoreRestartSelf) { builder.AddBool(6, ignoreRestartSelf, false); } + public static void AddWaitTime(FlatBufferBuilder builder, float waitTime) { builder.AddFloat(7, waitTime, 0.0f); } + public static void AddRandomDeviation(FlatBufferBuilder builder, float randomDeviation) { builder.AddFloat(8, randomDeviation, 0.0f); } + public static Offset EndAiUeWait(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + return new Offset(o); + } +} + + +static public class AiUeWaitVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*IgnoreRestartSelf*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*WaitTime*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*RandomDeviation*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeWaitBlackboardTime.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeWaitBlackboardTime.cs new file mode 100644 index 00000000..512b24be --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUeWaitBlackboardTime.cs @@ -0,0 +1,135 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUeWaitBlackboardTime : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUeWaitBlackboardTime GetRootAsAiUeWaitBlackboardTime(ByteBuffer _bb) { return GetRootAsAiUeWaitBlackboardTime(_bb, new AiUeWaitBlackboardTime()); } + public static AiUeWaitBlackboardTime GetRootAsAiUeWaitBlackboardTime(ByteBuffer _bb, AiUeWaitBlackboardTime obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUeWaitBlackboardTime __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public cfg.AiDecorator DecoratorsType(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.AiDecorator)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiDecorator)0; } + public int DecoratorsTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecoratorsTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDecoratorsTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public cfg.AiDecorator[] GetDecoratorsTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiDecorator[] a = new cfg.AiDecorator[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiDecorator)__p.bb.Get(p + i * 1); } return a; } + public TTable? Decorators(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DecoratorsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.AiService ServicesType(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.AiService)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.AiService)0; } + public int ServicesTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetServicesTypeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetServicesTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public cfg.AiService[] GetServicesTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.AiService[] a = new cfg.AiService[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.AiService)__p.bb.Get(p + i * 1); } return a; } + public TTable? Services(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int ServicesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool IgnoreRestartSelf { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string BlackboardKey { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBlackboardKeyBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetBlackboardKeyBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetBlackboardKeyArray() { return __p.__vector_as_array(18); } + + public static Offset CreateAiUeWaitBlackboardTime(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + VectorOffset decorators_typeOffset = default(VectorOffset), + VectorOffset decoratorsOffset = default(VectorOffset), + VectorOffset services_typeOffset = default(VectorOffset), + VectorOffset servicesOffset = default(VectorOffset), + bool ignore_restart_self = false, + StringOffset blackboard_keyOffset = default(StringOffset)) { + builder.StartTable(8); + AiUeWaitBlackboardTime.AddBlackboardKey(builder, blackboard_keyOffset); + AiUeWaitBlackboardTime.AddServices(builder, servicesOffset); + AiUeWaitBlackboardTime.AddServicesType(builder, services_typeOffset); + AiUeWaitBlackboardTime.AddDecorators(builder, decoratorsOffset); + AiUeWaitBlackboardTime.AddDecoratorsType(builder, decorators_typeOffset); + AiUeWaitBlackboardTime.AddNodeName(builder, node_nameOffset); + AiUeWaitBlackboardTime.AddId(builder, id); + AiUeWaitBlackboardTime.AddIgnoreRestartSelf(builder, ignore_restart_self); + return AiUeWaitBlackboardTime.EndAiUeWaitBlackboardTime(builder); + } + + public static void StartAiUeWaitBlackboardTime(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddDecoratorsType(FlatBufferBuilder builder, VectorOffset decoratorsTypeOffset) { builder.AddOffset(2, decoratorsTypeOffset.Value, 0); } + public static VectorOffset CreateDecoratorsTypeVector(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, cfg.AiDecorator[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDecorators(FlatBufferBuilder builder, VectorOffset decoratorsOffset) { builder.AddOffset(3, decoratorsOffset.Value, 0); } + public static VectorOffset CreateDecoratorsVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecoratorsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecoratorsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddServicesType(FlatBufferBuilder builder, VectorOffset servicesTypeOffset) { builder.AddOffset(4, servicesTypeOffset.Value, 0); } + public static VectorOffset CreateServicesTypeVector(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, cfg.AiService[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddServices(FlatBufferBuilder builder, VectorOffset servicesOffset) { builder.AddOffset(5, servicesOffset.Value, 0); } + public static VectorOffset CreateServicesVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateServicesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartServicesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIgnoreRestartSelf(FlatBufferBuilder builder, bool ignoreRestartSelf) { builder.AddBool(6, ignoreRestartSelf, false); } + public static void AddBlackboardKey(FlatBufferBuilder builder, StringOffset blackboardKeyOffset) { builder.AddOffset(7, blackboardKeyOffset.Value, 0); } + public static Offset EndAiUeWaitBlackboardTime(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // decorators_type + builder.Required(o, 10); // decorators + builder.Required(o, 12); // services_type + builder.Required(o, 14); // services + return new Offset(o); + } +} + + +static public class AiUeWaitBlackboardTimeVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*DecoratorsType*/, 1 /*cfg.AiDecorator*/, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*ServicesType*/, 1 /*cfg.AiService*/, true) + && verifier.VerifyField(tablePos, 16 /*IgnoreRestartSelf*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 18 /*BlackboardKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUpdateDailyBehaviorProps.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUpdateDailyBehaviorProps.cs new file mode 100644 index 00000000..25c69d7c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AiUpdateDailyBehaviorProps.cs @@ -0,0 +1,160 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct AiUpdateDailyBehaviorProps : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static AiUpdateDailyBehaviorProps GetRootAsAiUpdateDailyBehaviorProps(ByteBuffer _bb) { return GetRootAsAiUpdateDailyBehaviorProps(_bb, new AiUpdateDailyBehaviorProps()); } + public static AiUpdateDailyBehaviorProps GetRootAsAiUpdateDailyBehaviorProps(ByteBuffer _bb, AiUpdateDailyBehaviorProps obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AiUpdateDailyBehaviorProps __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NodeName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNodeNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNodeNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNodeNameArray() { return __p.__vector_as_array(6); } + public string SatietyKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSatietyKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSatietyKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSatietyKeyArray() { return __p.__vector_as_array(8); } + public string EnergyKey { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnergyKeyBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetEnergyKeyBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetEnergyKeyArray() { return __p.__vector_as_array(10); } + public string MoodKey { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMoodKeyBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetMoodKeyBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetMoodKeyArray() { return __p.__vector_as_array(12); } + public string SatietyLowerThresholdKey { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSatietyLowerThresholdKeyBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetSatietyLowerThresholdKeyBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetSatietyLowerThresholdKeyArray() { return __p.__vector_as_array(14); } + public string SatietyUpperThresholdKey { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSatietyUpperThresholdKeyBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetSatietyUpperThresholdKeyBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetSatietyUpperThresholdKeyArray() { return __p.__vector_as_array(16); } + public string EnergyLowerThresholdKey { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnergyLowerThresholdKeyBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetEnergyLowerThresholdKeyBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetEnergyLowerThresholdKeyArray() { return __p.__vector_as_array(18); } + public string EnergyUpperThresholdKey { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnergyUpperThresholdKeyBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetEnergyUpperThresholdKeyBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetEnergyUpperThresholdKeyArray() { return __p.__vector_as_array(20); } + public string MoodLowerThresholdKey { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMoodLowerThresholdKeyBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetMoodLowerThresholdKeyBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetMoodLowerThresholdKeyArray() { return __p.__vector_as_array(22); } + public string MoodUpperThresholdKey { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMoodUpperThresholdKeyBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetMoodUpperThresholdKeyBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetMoodUpperThresholdKeyArray() { return __p.__vector_as_array(24); } + + public static Offset CreateAiUpdateDailyBehaviorProps(FlatBufferBuilder builder, + int id = 0, + StringOffset node_nameOffset = default(StringOffset), + StringOffset satiety_keyOffset = default(StringOffset), + StringOffset energy_keyOffset = default(StringOffset), + StringOffset mood_keyOffset = default(StringOffset), + StringOffset satiety_lower_threshold_keyOffset = default(StringOffset), + StringOffset satiety_upper_threshold_keyOffset = default(StringOffset), + StringOffset energy_lower_threshold_keyOffset = default(StringOffset), + StringOffset energy_upper_threshold_keyOffset = default(StringOffset), + StringOffset mood_lower_threshold_keyOffset = default(StringOffset), + StringOffset mood_upper_threshold_keyOffset = default(StringOffset)) { + builder.StartTable(11); + AiUpdateDailyBehaviorProps.AddMoodUpperThresholdKey(builder, mood_upper_threshold_keyOffset); + AiUpdateDailyBehaviorProps.AddMoodLowerThresholdKey(builder, mood_lower_threshold_keyOffset); + AiUpdateDailyBehaviorProps.AddEnergyUpperThresholdKey(builder, energy_upper_threshold_keyOffset); + AiUpdateDailyBehaviorProps.AddEnergyLowerThresholdKey(builder, energy_lower_threshold_keyOffset); + AiUpdateDailyBehaviorProps.AddSatietyUpperThresholdKey(builder, satiety_upper_threshold_keyOffset); + AiUpdateDailyBehaviorProps.AddSatietyLowerThresholdKey(builder, satiety_lower_threshold_keyOffset); + AiUpdateDailyBehaviorProps.AddMoodKey(builder, mood_keyOffset); + AiUpdateDailyBehaviorProps.AddEnergyKey(builder, energy_keyOffset); + AiUpdateDailyBehaviorProps.AddSatietyKey(builder, satiety_keyOffset); + AiUpdateDailyBehaviorProps.AddNodeName(builder, node_nameOffset); + AiUpdateDailyBehaviorProps.AddId(builder, id); + return AiUpdateDailyBehaviorProps.EndAiUpdateDailyBehaviorProps(builder); + } + + public static void StartAiUpdateDailyBehaviorProps(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddNodeName(FlatBufferBuilder builder, StringOffset nodeNameOffset) { builder.AddOffset(1, nodeNameOffset.Value, 0); } + public static void AddSatietyKey(FlatBufferBuilder builder, StringOffset satietyKeyOffset) { builder.AddOffset(2, satietyKeyOffset.Value, 0); } + public static void AddEnergyKey(FlatBufferBuilder builder, StringOffset energyKeyOffset) { builder.AddOffset(3, energyKeyOffset.Value, 0); } + public static void AddMoodKey(FlatBufferBuilder builder, StringOffset moodKeyOffset) { builder.AddOffset(4, moodKeyOffset.Value, 0); } + public static void AddSatietyLowerThresholdKey(FlatBufferBuilder builder, StringOffset satietyLowerThresholdKeyOffset) { builder.AddOffset(5, satietyLowerThresholdKeyOffset.Value, 0); } + public static void AddSatietyUpperThresholdKey(FlatBufferBuilder builder, StringOffset satietyUpperThresholdKeyOffset) { builder.AddOffset(6, satietyUpperThresholdKeyOffset.Value, 0); } + public static void AddEnergyLowerThresholdKey(FlatBufferBuilder builder, StringOffset energyLowerThresholdKeyOffset) { builder.AddOffset(7, energyLowerThresholdKeyOffset.Value, 0); } + public static void AddEnergyUpperThresholdKey(FlatBufferBuilder builder, StringOffset energyUpperThresholdKeyOffset) { builder.AddOffset(8, energyUpperThresholdKeyOffset.Value, 0); } + public static void AddMoodLowerThresholdKey(FlatBufferBuilder builder, StringOffset moodLowerThresholdKeyOffset) { builder.AddOffset(9, moodLowerThresholdKeyOffset.Value, 0); } + public static void AddMoodUpperThresholdKey(FlatBufferBuilder builder, StringOffset moodUpperThresholdKeyOffset) { builder.AddOffset(10, moodUpperThresholdKeyOffset.Value, 0); } + public static Offset EndAiUpdateDailyBehaviorProps(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AiUpdateDailyBehaviorPropsVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NodeName*/, false) + && verifier.VerifyString(tablePos, 8 /*SatietyKey*/, false) + && verifier.VerifyString(tablePos, 10 /*EnergyKey*/, false) + && verifier.VerifyString(tablePos, 12 /*MoodKey*/, false) + && verifier.VerifyString(tablePos, 14 /*SatietyLowerThresholdKey*/, false) + && verifier.VerifyString(tablePos, 16 /*SatietyUpperThresholdKey*/, false) + && verifier.VerifyString(tablePos, 18 /*EnergyLowerThresholdKey*/, false) + && verifier.VerifyString(tablePos, 20 /*EnergyUpperThresholdKey*/, false) + && verifier.VerifyString(tablePos, 22 /*MoodLowerThresholdKey*/, false) + && verifier.VerifyString(tablePos, 24 /*MoodUpperThresholdKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AudioType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AudioType.cs new file mode 100644 index 00000000..3b088abe --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/AudioType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum AudioType : int +{ + AudioType_UNKNOWN = 0, + AudioType_ACC = 1, + AudioType_AIFF = 2, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonEBoolOperator.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonEBoolOperator.cs new file mode 100644 index 00000000..b55b4ce7 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonEBoolOperator.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum CommonEBoolOperator : int +{ + CommonEBoolOperator_AND = 0, + CommonEBoolOperator_OR = 1, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonGlobalConfig.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonGlobalConfig.cs new file mode 100644 index 00000000..8af22701 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonGlobalConfig.cs @@ -0,0 +1,150 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct CommonGlobalConfig : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static CommonGlobalConfig GetRootAsCommonGlobalConfig(ByteBuffer _bb) { return GetRootAsCommonGlobalConfig(_bb, new CommonGlobalConfig()); } + public static CommonGlobalConfig GetRootAsCommonGlobalConfig(ByteBuffer _bb, CommonGlobalConfig obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CommonGlobalConfig __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int BagCapacity { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BagCapacitySpecial { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BagTempExpendableCapacity { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BagTempToolCapacity { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BagInitCapacity { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int QuickBagCapacity { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClothBagCapacity { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClothBagInitCapacity { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClothBagCapacitySpecial { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BagInitItemsDropId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MailBoxCapacity { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float DamageParamC { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float DamageParamE { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float DamageParamF { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float DamageParamD { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float RoleSpeed { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float MonsterSpeed { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int InitEnergy { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int InitViality { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxViality { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PerVialityRecoveryTime { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateCommonGlobalConfig(FlatBufferBuilder builder, + int bag_capacity = 0, + int bag_capacity_special = 0, + int bag_temp_expendable_capacity = 0, + int bag_temp_tool_capacity = 0, + int bag_init_capacity = 0, + int quick_bag_capacity = 0, + int cloth_bag_capacity = 0, + int cloth_bag_init_capacity = 0, + int cloth_bag_capacity_special = 0, + int bag_init_items_drop_id = 0, + int mail_box_capacity = 0, + float damage_param_c = 0.0f, + float damage_param_e = 0.0f, + float damage_param_f = 0.0f, + float damage_param_d = 0.0f, + float role_speed = 0.0f, + float monster_speed = 0.0f, + int init_energy = 0, + int init_viality = 0, + int max_viality = 0, + int per_viality_recovery_time = 0) { + builder.StartTable(21); + CommonGlobalConfig.AddPerVialityRecoveryTime(builder, per_viality_recovery_time); + CommonGlobalConfig.AddMaxViality(builder, max_viality); + CommonGlobalConfig.AddInitViality(builder, init_viality); + CommonGlobalConfig.AddInitEnergy(builder, init_energy); + CommonGlobalConfig.AddMonsterSpeed(builder, monster_speed); + CommonGlobalConfig.AddRoleSpeed(builder, role_speed); + CommonGlobalConfig.AddDamageParamD(builder, damage_param_d); + CommonGlobalConfig.AddDamageParamF(builder, damage_param_f); + CommonGlobalConfig.AddDamageParamE(builder, damage_param_e); + CommonGlobalConfig.AddDamageParamC(builder, damage_param_c); + CommonGlobalConfig.AddMailBoxCapacity(builder, mail_box_capacity); + CommonGlobalConfig.AddBagInitItemsDropId(builder, bag_init_items_drop_id); + CommonGlobalConfig.AddClothBagCapacitySpecial(builder, cloth_bag_capacity_special); + CommonGlobalConfig.AddClothBagInitCapacity(builder, cloth_bag_init_capacity); + CommonGlobalConfig.AddClothBagCapacity(builder, cloth_bag_capacity); + CommonGlobalConfig.AddQuickBagCapacity(builder, quick_bag_capacity); + CommonGlobalConfig.AddBagInitCapacity(builder, bag_init_capacity); + CommonGlobalConfig.AddBagTempToolCapacity(builder, bag_temp_tool_capacity); + CommonGlobalConfig.AddBagTempExpendableCapacity(builder, bag_temp_expendable_capacity); + CommonGlobalConfig.AddBagCapacitySpecial(builder, bag_capacity_special); + CommonGlobalConfig.AddBagCapacity(builder, bag_capacity); + return CommonGlobalConfig.EndCommonGlobalConfig(builder); + } + + public static void StartCommonGlobalConfig(FlatBufferBuilder builder) { builder.StartTable(21); } + public static void AddBagCapacity(FlatBufferBuilder builder, int bagCapacity) { builder.AddInt(0, bagCapacity, 0); } + public static void AddBagCapacitySpecial(FlatBufferBuilder builder, int bagCapacitySpecial) { builder.AddInt(1, bagCapacitySpecial, 0); } + public static void AddBagTempExpendableCapacity(FlatBufferBuilder builder, int bagTempExpendableCapacity) { builder.AddInt(2, bagTempExpendableCapacity, 0); } + public static void AddBagTempToolCapacity(FlatBufferBuilder builder, int bagTempToolCapacity) { builder.AddInt(3, bagTempToolCapacity, 0); } + public static void AddBagInitCapacity(FlatBufferBuilder builder, int bagInitCapacity) { builder.AddInt(4, bagInitCapacity, 0); } + public static void AddQuickBagCapacity(FlatBufferBuilder builder, int quickBagCapacity) { builder.AddInt(5, quickBagCapacity, 0); } + public static void AddClothBagCapacity(FlatBufferBuilder builder, int clothBagCapacity) { builder.AddInt(6, clothBagCapacity, 0); } + public static void AddClothBagInitCapacity(FlatBufferBuilder builder, int clothBagInitCapacity) { builder.AddInt(7, clothBagInitCapacity, 0); } + public static void AddClothBagCapacitySpecial(FlatBufferBuilder builder, int clothBagCapacitySpecial) { builder.AddInt(8, clothBagCapacitySpecial, 0); } + public static void AddBagInitItemsDropId(FlatBufferBuilder builder, int bagInitItemsDropId) { builder.AddInt(9, bagInitItemsDropId, 0); } + public static void AddMailBoxCapacity(FlatBufferBuilder builder, int mailBoxCapacity) { builder.AddInt(10, mailBoxCapacity, 0); } + public static void AddDamageParamC(FlatBufferBuilder builder, float damageParamC) { builder.AddFloat(11, damageParamC, 0.0f); } + public static void AddDamageParamE(FlatBufferBuilder builder, float damageParamE) { builder.AddFloat(12, damageParamE, 0.0f); } + public static void AddDamageParamF(FlatBufferBuilder builder, float damageParamF) { builder.AddFloat(13, damageParamF, 0.0f); } + public static void AddDamageParamD(FlatBufferBuilder builder, float damageParamD) { builder.AddFloat(14, damageParamD, 0.0f); } + public static void AddRoleSpeed(FlatBufferBuilder builder, float roleSpeed) { builder.AddFloat(15, roleSpeed, 0.0f); } + public static void AddMonsterSpeed(FlatBufferBuilder builder, float monsterSpeed) { builder.AddFloat(16, monsterSpeed, 0.0f); } + public static void AddInitEnergy(FlatBufferBuilder builder, int initEnergy) { builder.AddInt(17, initEnergy, 0); } + public static void AddInitViality(FlatBufferBuilder builder, int initViality) { builder.AddInt(18, initViality, 0); } + public static void AddMaxViality(FlatBufferBuilder builder, int maxViality) { builder.AddInt(19, maxViality, 0); } + public static void AddPerVialityRecoveryTime(FlatBufferBuilder builder, int perVialityRecoveryTime) { builder.AddInt(20, perVialityRecoveryTime, 0); } + public static Offset EndCommonGlobalConfig(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CommonGlobalConfigVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*BagCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*BagCapacitySpecial*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*BagTempExpendableCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*BagTempToolCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*BagInitCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*QuickBagCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*ClothBagCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ClothBagInitCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*ClothBagCapacitySpecial*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*BagInitItemsDropId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*MailBoxCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*DamageParamC*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*DamageParamE*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*DamageParamF*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*DamageParamD*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*RoleSpeed*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*MonsterSpeed*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*InitEnergy*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*InitViality*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*MaxViality*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*PerVialityRecoveryTime*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonTbGlobalConfig.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonTbGlobalConfig.cs new file mode 100644 index 00000000..d0be055c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/CommonTbGlobalConfig.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct CommonTbGlobalConfig : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static CommonTbGlobalConfig GetRootAsCommonTbGlobalConfig(ByteBuffer _bb) { return GetRootAsCommonTbGlobalConfig(_bb, new CommonTbGlobalConfig()); } + public static CommonTbGlobalConfig GetRootAsCommonTbGlobalConfig(ByteBuffer _bb, CommonTbGlobalConfig obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CommonTbGlobalConfig __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.CommonGlobalConfig? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.CommonGlobalConfig?)(new cfg.CommonGlobalConfig()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateCommonTbGlobalConfig(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + CommonTbGlobalConfig.AddDataList(builder, data_listOffset); + return CommonTbGlobalConfig.EndCommonTbGlobalConfig(builder); + } + + public static void StartCommonTbGlobalConfig(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCommonTbGlobalConfig(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class CommonTbGlobalConfigVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.CommonGlobalConfigVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/DefineFromExcel2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/DefineFromExcel2.cs new file mode 100644 index 00000000..928c1021 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/DefineFromExcel2.cs @@ -0,0 +1,214 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct DefineFromExcel2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static DefineFromExcel2 GetRootAsDefineFromExcel2(ByteBuffer _bb) { return GetRootAsDefineFromExcel2(_bb, new DefineFromExcel2()); } + public static DefineFromExcel2 GetRootAsDefineFromExcel2(ByteBuffer _bb, DefineFromExcel2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefineFromExcel2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool X1 { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long X5 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float X6 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int X8 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string X10 { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetX10Bytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetX10Bytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetX10Array() { return __p.__vector_as_array(14); } + public cfg.TestDemoEnum X13 { get { int o = __p.__offset(16); return o != 0 ? (cfg.TestDemoEnum)__p.bb.GetInt(o + __p.bb_pos) : cfg.TestDemoEnum.TestDemoEnum_NONE; } } + public cfg.TestDemoFlag X132 { get { int o = __p.__offset(18); return o != 0 ? (cfg.TestDemoFlag)__p.bb.GetInt(o + __p.bb_pos) : cfg.TestDemoFlag.__GENERATE_DEFAULT_VALUE; } } + public cfg.TestDemoDynamic X14Type { get { int o = __p.__offset(20); return o != 0 ? (cfg.TestDemoDynamic)__p.bb.Get(o + __p.bb_pos) : cfg.TestDemoDynamic.NONE; } } + public TTable? X14() where TTable : struct, IFlatbufferObject { int o = __p.__offset(22); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.TestDemoD2 X14AsTestDemoD2() { return X14().Value; } + public cfg.TestDemoE1 X14AsTestDemoE1() { return X14().Value; } + public cfg.TestLoginRoleInfo X14AsTestLoginRoleInfo() { return X14().Value; } + public cfg.TestDemoD5 X14AsTestDemoD5() { return X14().Value; } + public cfg.TestShape X15Type { get { int o = __p.__offset(24); return o != 0 ? (cfg.TestShape)__p.bb.Get(o + __p.bb_pos) : cfg.TestShape.NONE; } } + public TTable? X15() where TTable : struct, IFlatbufferObject { int o = __p.__offset(26); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.TestCircle X15AsTestCircle() { return X15().Value; } + public cfg.Test2Rectangle X15AsTest2Rectangle() { return X15().Value; } + public cfg.vector2? V2 { get { int o = __p.__offset(28); return o != 0 ? (cfg.vector2?)(new cfg.vector2()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public long T1 { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int K1(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int K1Length { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK1Bytes() { return __p.__vector_as_span(32, 4); } +#else + public ArraySegment? GetK1Bytes() { return __p.__vector_as_arraysegment(32); } +#endif + public int[] GetK1Array() { return __p.__vector_as_array(32); } + public int K2(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int K2Length { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK2Bytes() { return __p.__vector_as_span(34, 4); } +#else + public ArraySegment? GetK2Bytes() { return __p.__vector_as_arraysegment(34); } +#endif + public int[] GetK2Array() { return __p.__vector_as_array(34); } + public cfg.KeyValue_int32_int32? K8(int j) { int o = __p.__offset(36); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K8Length { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestDemoE2? K9(int j) { int o = __p.__offset(38); return o != 0 ? (cfg.TestDemoE2?)(new cfg.TestDemoE2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K9Length { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.vector3? K10(int j) { int o = __p.__offset(40); return o != 0 ? (cfg.vector3?)(new cfg.vector3()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K10Length { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.vector4? K11(int j) { int o = __p.__offset(42); return o != 0 ? (cfg.vector4?)(new cfg.vector4()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K11Length { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateDefineFromExcel2(FlatBufferBuilder builder, + int id = 0, + bool x1 = false, + long x5 = 0, + float x6 = 0.0f, + int x8 = 0, + StringOffset x10Offset = default(StringOffset), + cfg.TestDemoEnum x13 = cfg.TestDemoEnum.TestDemoEnum_NONE, + cfg.TestDemoFlag x13_2 = cfg.TestDemoFlag.__GENERATE_DEFAULT_VALUE, + cfg.TestDemoDynamic x14_type = cfg.TestDemoDynamic.NONE, + int x14Offset = 0, + cfg.TestShape x15_type = cfg.TestShape.NONE, + int x15Offset = 0, + Offset v2Offset = default(Offset), + long t1 = 0, + VectorOffset k1Offset = default(VectorOffset), + VectorOffset k2Offset = default(VectorOffset), + VectorOffset k8Offset = default(VectorOffset), + VectorOffset k9Offset = default(VectorOffset), + VectorOffset k10Offset = default(VectorOffset), + VectorOffset k11Offset = default(VectorOffset)) { + builder.StartTable(20); + DefineFromExcel2.AddT1(builder, t1); + DefineFromExcel2.AddX5(builder, x5); + DefineFromExcel2.AddK11(builder, k11Offset); + DefineFromExcel2.AddK10(builder, k10Offset); + DefineFromExcel2.AddK9(builder, k9Offset); + DefineFromExcel2.AddK8(builder, k8Offset); + DefineFromExcel2.AddK2(builder, k2Offset); + DefineFromExcel2.AddK1(builder, k1Offset); + DefineFromExcel2.AddV2(builder, v2Offset); + DefineFromExcel2.AddX15(builder, x15Offset); + DefineFromExcel2.AddX14(builder, x14Offset); + DefineFromExcel2.AddX132(builder, x13_2); + DefineFromExcel2.AddX13(builder, x13); + DefineFromExcel2.AddX10(builder, x10Offset); + DefineFromExcel2.AddX8(builder, x8); + DefineFromExcel2.AddX6(builder, x6); + DefineFromExcel2.AddId(builder, id); + DefineFromExcel2.AddX15Type(builder, x15_type); + DefineFromExcel2.AddX14Type(builder, x14_type); + DefineFromExcel2.AddX1(builder, x1); + return DefineFromExcel2.EndDefineFromExcel2(builder); + } + + public static void StartDefineFromExcel2(FlatBufferBuilder builder) { builder.StartTable(20); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX1(FlatBufferBuilder builder, bool x1) { builder.AddBool(1, x1, false); } + public static void AddX5(FlatBufferBuilder builder, long x5) { builder.AddLong(2, x5, 0); } + public static void AddX6(FlatBufferBuilder builder, float x6) { builder.AddFloat(3, x6, 0.0f); } + public static void AddX8(FlatBufferBuilder builder, int x8) { builder.AddInt(4, x8, 0); } + public static void AddX10(FlatBufferBuilder builder, StringOffset x10Offset) { builder.AddOffset(5, x10Offset.Value, 0); } + public static void AddX13(FlatBufferBuilder builder, cfg.TestDemoEnum x13) { builder.AddInt(6, (int)x13, 0); } + public static void AddX132(FlatBufferBuilder builder, cfg.TestDemoFlag x132) { builder.AddInt(7, (int)x132, 0); } + public static void AddX14Type(FlatBufferBuilder builder, cfg.TestDemoDynamic x14Type) { builder.AddByte(8, (byte)x14Type, 0); } + public static void AddX14(FlatBufferBuilder builder, int x14Offset) { builder.AddOffset(9, x14Offset, 0); } + public static void AddX15Type(FlatBufferBuilder builder, cfg.TestShape x15Type) { builder.AddByte(10, (byte)x15Type, 0); } + public static void AddX15(FlatBufferBuilder builder, int x15Offset) { builder.AddOffset(11, x15Offset, 0); } + public static void AddV2(FlatBufferBuilder builder, Offset v2Offset) { builder.AddOffset(12, v2Offset.Value, 0); } + public static void AddT1(FlatBufferBuilder builder, long t1) { builder.AddLong(13, t1, 0); } + public static void AddK1(FlatBufferBuilder builder, VectorOffset k1Offset) { builder.AddOffset(14, k1Offset.Value, 0); } + public static VectorOffset CreateK1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK2(FlatBufferBuilder builder, VectorOffset k2Offset) { builder.AddOffset(15, k2Offset.Value, 0); } + public static VectorOffset CreateK2Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK2VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK8(FlatBufferBuilder builder, VectorOffset k8Offset) { builder.AddOffset(16, k8Offset.Value, 0); } + public static VectorOffset CreateK8Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK8Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK9(FlatBufferBuilder builder, VectorOffset k9Offset) { builder.AddOffset(17, k9Offset.Value, 0); } + public static VectorOffset CreateK9Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK9Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK10(FlatBufferBuilder builder, VectorOffset k10Offset) { builder.AddOffset(18, k10Offset.Value, 0); } + public static VectorOffset CreateK10Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK10VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK10VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK10VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK10Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK11(FlatBufferBuilder builder, VectorOffset k11Offset) { builder.AddOffset(19, k11Offset.Value, 0); } + public static VectorOffset CreateK11Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK11VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK11VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK11VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK11Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndDefineFromExcel2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 22); // x14 + builder.Required(o, 26); // x15 + builder.Required(o, 28); // v2 + builder.Required(o, 32); // k1 + builder.Required(o, 34); // k2 + builder.Required(o, 36); // k8 + builder.Required(o, 38); // k9 + builder.Required(o, 40); // k10 + builder.Required(o, 42); // k11 + return new Offset(o); + } +} + + +static public class DefineFromExcel2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X1*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*X5*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*X6*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*X8*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 14 /*X10*/, false) + && verifier.VerifyField(tablePos, 16 /*X13*/, 4 /*cfg.TestDemoEnum*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*X132*/, 4 /*cfg.TestDemoFlag*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*X14Type*/, 1 /*cfg.TestDemoDynamic*/, 1, false) + && verifier.VerifyUnion(tablePos, 20, 22 /*X14*/, cfg.TestDemoDynamicVerify.Verify, true) + && verifier.VerifyField(tablePos, 24 /*X15Type*/, 1 /*cfg.TestShape*/, 1, false) + && verifier.VerifyUnion(tablePos, 24, 26 /*X15*/, cfg.TestShapeVerify.Verify, true) + && verifier.VerifyTable(tablePos, 28 /*V2*/, cfg.vector2Verify.Verify, true) + && verifier.VerifyField(tablePos, 30 /*T1*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*K1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 34 /*K2*/, 4 /*int*/, true) + && verifier.VerifyVectorOfTables(tablePos, 36 /*K8*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 38 /*K9*/, cfg.TestDemoE2Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 40 /*K10*/, cfg.vector3Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 42 /*K11*/, cfg.vector4Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothersStarQualityType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothersStarQualityType.cs new file mode 100644 index 00000000..05f1dc06 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothersStarQualityType.cs @@ -0,0 +1,24 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEClothersStarQualityType : int +{ + __GENERATE_DEFAULT_VALUE = 0, + ItemEClothersStarQualityType_ONE = 1, + ItemEClothersStarQualityType_TWO = 2, + ItemEClothersStarQualityType_THREE = 3, + ItemEClothersStarQualityType_FOUR = 4, + ItemEClothersStarQualityType_FIVE = 5, + ItemEClothersStarQualityType_SIX = 6, + ItemEClothersStarQualityType_SEVEN = 7, + ItemEClothersStarQualityType_EIGHT = 8, + ItemEClothersStarQualityType_NINE = 9, + ItemEClothersStarQualityType_TEN = 10, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothersTag.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothersTag.cs new file mode 100644 index 00000000..0cebcecd --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothersTag.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEClothersTag : int +{ + __GENERATE_DEFAULT_VALUE = 0, + ItemEClothersTag_FANG_SHAI = 1, + ItemEClothersTag_WU_ZHE = 2, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothesHidePartType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothesHidePartType.cs new file mode 100644 index 00000000..a4a5b192 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothesHidePartType.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEClothesHidePartType : int +{ + ItemEClothesHidePartType_CHEST = 0, + ItemEClothesHidePartType_HEAD = 1, + ItemEClothesHidePartType_SPINE_UPPER = 2, + ItemEClothesHidePartType_SPINE_LOWER = 3, + ItemEClothesHidePartType_HIP = 4, + ItemEClothesHidePartType_LEG_UPPER = 5, + ItemEClothesHidePartType_LEG_MIDDLE = 6, + ItemEClothesHidePartType_LEG_LOWER = 7, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothesPropertyType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothesPropertyType.cs new file mode 100644 index 00000000..21d7ce6f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEClothesPropertyType.cs @@ -0,0 +1,24 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEClothesPropertyType : int +{ + __GENERATE_DEFAULT_VALUE = 0, + ItemEClothesPropertyType_JIAN_YUE = 1, + ItemEClothesPropertyType_HUA_LI = 2, + ItemEClothesPropertyType_KE_AI = 3, + ItemEClothesPropertyType_CHENG_SHU = 4, + ItemEClothesPropertyType_HUO_PO = 5, + ItemEClothesPropertyType_YOU_YA = 6, + ItemEClothesPropertyType_QING_CHUN = 7, + ItemEClothesPropertyType_XING_GAN = 8, + ItemEClothesPropertyType_QING_LIANG = 9, + ItemEClothesPropertyType_BAO_NUAN = 10, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemECurrencyType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemECurrencyType.cs new file mode 100644 index 00000000..feb699c3 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemECurrencyType.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemECurrencyType : int +{ + __GENERATE_DEFAULT_VALUE = 0, + ItemECurrencyType_DIAMOND = 1, + ItemECurrencyType_GOLD = 2, + ItemECurrencyType_SILVER = 3, + ItemECurrencyType_EXP = 4, + ItemECurrencyType_POWER_POINT = 5, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEItemQuality.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEItemQuality.cs new file mode 100644 index 00000000..d1568118 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEItemQuality.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEItemQuality : int +{ + ItemEItemQuality_WHITE = 0, + ItemEItemQuality_GREEN = 1, + ItemEItemQuality_BLUE = 2, + ItemEItemQuality_PURPLE = 3, + ItemEItemQuality_GOLDEN = 4, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEMajorType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEMajorType.cs new file mode 100644 index 00000000..dbab2392 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEMajorType.cs @@ -0,0 +1,25 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEMajorType : int +{ + __GENERATE_DEFAULT_VALUE = 0, + ItemEMajorType_CURRENCY = 1, + ItemEMajorType_CLOTH = 2, + ItemEMajorType_QUEST = 3, + ItemEMajorType_CONSUMABLES = 4, + ItemEMajorType_TREASURE_BOX = 5, + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6, + ItemEMajorType_HEAD_FRAME = 7, + ItemEMajorType_VOICE = 8, + ItemEMajorType_ACTION = 9, + ItemEMajorType_EXPANSION = 10, + ItemEMajorType_MATERIAL = 11, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEMinorType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEMinorType.cs new file mode 100644 index 00000000..1a9f809b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEMinorType.cs @@ -0,0 +1,63 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEMinorType : int +{ + __GENERATE_DEFAULT_VALUE = 0, + ItemEMinorType_DIAMOND = 101, + ItemEMinorType_GOLD = 102, + ItemEMinorType_SILVER = 103, + ItemEMinorType_EXP = 104, + ItemEMinorType_POWER_POINT = 105, + ItemEMinorType_HAIR_STYLE = 210, + ItemEMinorType_COAT = 220, + ItemEMinorType_UPPER_JACKET = 230, + ItemEMinorType_TROUSERS = 241, + ItemEMinorType_SKIRT = 242, + ItemEMinorType_SOCKS = 250, + ItemEMinorType_SHOES = 260, + ItemEMinorType_HAIR_ACCESSORY = 271, + ItemEMinorType_HAT = 272, + ItemEMinorType_EARRING = 273, + ItemEMinorType_NECKLACE = 274, + ItemEMinorType_BRACELET = 275, + ItemEMinorType_HAIR_CLASP = 276, + ItemEMinorType_GLOVE = 277, + ItemEMinorType_HANDHELD_OBJECT = 278, + ItemEMinorType_SPECIAL = 279, + ItemEMinorType_BASE_COSMETIC = 281, + ItemEMinorType_EYEBROW_COSMETIC = 282, + ItemEMinorType_EYELASH = 283, + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284, + ItemEMinorType_LIP_COSMETIC = 285, + ItemEMinorType_SKIN_COLOR = 286, + ItemEMinorType_ONE_PIECE_DRESS = 290, + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291, + ItemEMinorType_QUEST = 301, + ItemEMinorType_CAST = 401, + ItemEMinorType_FOOD = 403, + ItemEMinorType_SWORD = 421, + ItemEMinorType_BOW_ARROW = 422, + ItemEMinorType_WANDS = 423, + ItemEMinorType_SPECIAL_TOOL = 424, + ItemEMinorType_TREASURE_BOX = 501, + ItemEMinorType_KEY = 502, + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503, + ItemEMinorType_ACHIEVEMENT = 601, + ItemEMinorType_TITLE = 602, + ItemEMinorType_AVATAR_FRAME = 701, + ItemEMinorType_VOICE = 801, + ItemEMinorType_IDLE_POSE = 901, + ItemEMinorType_PHOTO_POSE = 902, + ItemEMinorType_BAG = 1001, + ItemEMinorType_FRIEND_CAPACITY = 1002, + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101, + ItemEMinorType_DESIGN_DRAWING = 1102, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEUseType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEUseType.cs new file mode 100644 index 00000000..6b28f99a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemEUseType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum ItemEUseType : int +{ + ItemEUseType_MANUAL = 0, + ItemEUseType_AUTO = 1, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemItem.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemItem.cs new file mode 100644 index 00000000..49d46be1 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemItem.cs @@ -0,0 +1,130 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct ItemItem : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static ItemItem GetRootAsItemItem(ByteBuffer _bb) { return GetRootAsItemItem(_bb, new ItemItem()); } + public static ItemItem GetRootAsItemItem(ByteBuffer _bb, ItemItem obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ItemItem __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public cfg.ItemEMajorType MajorType { get { int o = __p.__offset(8); return o != 0 ? (cfg.ItemEMajorType)__p.bb.GetInt(o + __p.bb_pos) : cfg.ItemEMajorType.__GENERATE_DEFAULT_VALUE; } } + public cfg.ItemEMinorType MinorType { get { int o = __p.__offset(10); return o != 0 ? (cfg.ItemEMinorType)__p.bb.GetInt(o + __p.bb_pos) : cfg.ItemEMinorType.__GENERATE_DEFAULT_VALUE; } } + public int MaxPileNum { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.ItemEItemQuality Quality { get { int o = __p.__offset(14); return o != 0 ? (cfg.ItemEItemQuality)__p.bb.GetInt(o + __p.bb_pos) : cfg.ItemEItemQuality.ItemEItemQuality_WHITE; } } + public string Icon { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(16); } + public string IconBackgroud { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBackgroudBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetIconBackgroudBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetIconBackgroudArray() { return __p.__vector_as_array(18); } + public string IconMask { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconMaskBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetIconMaskBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetIconMaskArray() { return __p.__vector_as_array(20); } + public string Desc { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(22); } + public int ShowOrder { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateItemItem(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + cfg.ItemEMajorType major_type = cfg.ItemEMajorType.__GENERATE_DEFAULT_VALUE, + cfg.ItemEMinorType minor_type = cfg.ItemEMinorType.__GENERATE_DEFAULT_VALUE, + int max_pile_num = 0, + cfg.ItemEItemQuality quality = cfg.ItemEItemQuality.ItemEItemQuality_WHITE, + StringOffset iconOffset = default(StringOffset), + StringOffset icon_backgroudOffset = default(StringOffset), + StringOffset icon_maskOffset = default(StringOffset), + StringOffset descOffset = default(StringOffset), + int show_order = 0) { + builder.StartTable(11); + ItemItem.AddShowOrder(builder, show_order); + ItemItem.AddDesc(builder, descOffset); + ItemItem.AddIconMask(builder, icon_maskOffset); + ItemItem.AddIconBackgroud(builder, icon_backgroudOffset); + ItemItem.AddIcon(builder, iconOffset); + ItemItem.AddQuality(builder, quality); + ItemItem.AddMaxPileNum(builder, max_pile_num); + ItemItem.AddMinorType(builder, minor_type); + ItemItem.AddMajorType(builder, major_type); + ItemItem.AddName(builder, nameOffset); + ItemItem.AddId(builder, id); + return ItemItem.EndItemItem(builder); + } + + public static void StartItemItem(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddMajorType(FlatBufferBuilder builder, cfg.ItemEMajorType majorType) { builder.AddInt(2, (int)majorType, 0); } + public static void AddMinorType(FlatBufferBuilder builder, cfg.ItemEMinorType minorType) { builder.AddInt(3, (int)minorType, 0); } + public static void AddMaxPileNum(FlatBufferBuilder builder, int maxPileNum) { builder.AddInt(4, maxPileNum, 0); } + public static void AddQuality(FlatBufferBuilder builder, cfg.ItemEItemQuality quality) { builder.AddInt(5, (int)quality, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(6, iconOffset.Value, 0); } + public static void AddIconBackgroud(FlatBufferBuilder builder, StringOffset iconBackgroudOffset) { builder.AddOffset(7, iconBackgroudOffset.Value, 0); } + public static void AddIconMask(FlatBufferBuilder builder, StringOffset iconMaskOffset) { builder.AddOffset(8, iconMaskOffset.Value, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(9, descOffset.Value, 0); } + public static void AddShowOrder(FlatBufferBuilder builder, int showOrder) { builder.AddInt(10, showOrder, 0); } + public static Offset EndItemItem(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ItemItemVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyField(tablePos, 8 /*MajorType*/, 4 /*cfg.ItemEMajorType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*MinorType*/, 4 /*cfg.ItemEMinorType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*MaxPileNum*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*Quality*/, 4 /*cfg.ItemEItemQuality*/, 4, false) + && verifier.VerifyString(tablePos, 16 /*Icon*/, false) + && verifier.VerifyString(tablePos, 18 /*IconBackgroud*/, false) + && verifier.VerifyString(tablePos, 20 /*IconMask*/, false) + && verifier.VerifyString(tablePos, 22 /*Desc*/, false) + && verifier.VerifyField(tablePos, 24 /*ShowOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemTbItem.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemTbItem.cs new file mode 100644 index 00000000..ed461779 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/ItemTbItem.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct ItemTbItem : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static ItemTbItem GetRootAsItemTbItem(ByteBuffer _bb) { return GetRootAsItemTbItem(_bb, new ItemTbItem()); } + public static ItemTbItem GetRootAsItemTbItem(ByteBuffer _bb, ItemTbItem obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ItemTbItem __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.ItemItem? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.ItemItem?)(new cfg.ItemItem()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateItemTbItem(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + ItemTbItem.AddDataList(builder, data_listOffset); + return ItemTbItem.EndItemTbItem(builder); + } + + public static void StartItemTbItem(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndItemTbItem(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class ItemTbItemVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.ItemItemVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_TestDemoEnum_int32.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_TestDemoEnum_int32.cs new file mode 100644 index 00000000..1cae9277 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_TestDemoEnum_int32.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct KeyValue_TestDemoEnum_int32 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static KeyValue_TestDemoEnum_int32 GetRootAsKeyValue_TestDemoEnum_int32(ByteBuffer _bb) { return GetRootAsKeyValue_TestDemoEnum_int32(_bb, new KeyValue_TestDemoEnum_int32()); } + public static KeyValue_TestDemoEnum_int32 GetRootAsKeyValue_TestDemoEnum_int32(ByteBuffer _bb, KeyValue_TestDemoEnum_int32 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public KeyValue_TestDemoEnum_int32 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoEnum Key { get { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoEnum)__p.bb.GetInt(o + __p.bb_pos) : cfg.TestDemoEnum.TestDemoEnum_NONE; } } + public int Value { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateKeyValue_TestDemoEnum_int32(FlatBufferBuilder builder, + cfg.TestDemoEnum key = cfg.TestDemoEnum.TestDemoEnum_NONE, + int value = 0) { + builder.StartTable(2); + KeyValue_TestDemoEnum_int32.AddValue(builder, value); + KeyValue_TestDemoEnum_int32.AddKey(builder, key); + return KeyValue_TestDemoEnum_int32.EndKeyValue_TestDemoEnum_int32(builder); + } + + public static void StartKeyValue_TestDemoEnum_int32(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddKey(FlatBufferBuilder builder, cfg.TestDemoEnum key) { builder.AddInt(0, (int)key, 0); } + public static void AddValue(FlatBufferBuilder builder, int value) { builder.AddInt(1, value, 0); } + public static Offset EndKeyValue_TestDemoEnum_int32(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class KeyValue_TestDemoEnum_int32Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*cfg.TestDemoEnum*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Value*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int32_TestMultiRowType2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int32_TestMultiRowType2.cs new file mode 100644 index 00000000..81e68100 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int32_TestMultiRowType2.cs @@ -0,0 +1,56 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct KeyValue_int32_TestMultiRowType2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static KeyValue_int32_TestMultiRowType2 GetRootAsKeyValue_int32_TestMultiRowType2(ByteBuffer _bb) { return GetRootAsKeyValue_int32_TestMultiRowType2(_bb, new KeyValue_int32_TestMultiRowType2()); } + public static KeyValue_int32_TestMultiRowType2 GetRootAsKeyValue_int32_TestMultiRowType2(ByteBuffer _bb, KeyValue_int32_TestMultiRowType2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public KeyValue_int32_TestMultiRowType2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestMultiRowType2? Value { get { int o = __p.__offset(6); return o != 0 ? (cfg.TestMultiRowType2?)(new cfg.TestMultiRowType2()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + + public static Offset CreateKeyValue_int32_TestMultiRowType2(FlatBufferBuilder builder, + int key = 0, + Offset valueOffset = default(Offset)) { + builder.StartTable(2); + KeyValue_int32_TestMultiRowType2.AddValue(builder, valueOffset); + KeyValue_int32_TestMultiRowType2.AddKey(builder, key); + return KeyValue_int32_TestMultiRowType2.EndKeyValue_int32_TestMultiRowType2(builder); + } + + public static void StartKeyValue_int32_TestMultiRowType2(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddKey(FlatBufferBuilder builder, int key) { builder.AddInt(0, key, 0); } + public static void AddValue(FlatBufferBuilder builder, Offset valueOffset) { builder.AddOffset(1, valueOffset.Value, 0); } + public static Offset EndKeyValue_int32_TestMultiRowType2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // value + return new Offset(o); + } +} + + +static public class KeyValue_int32_TestMultiRowType2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*int*/, 4, false) + && verifier.VerifyTable(tablePos, 6 /*Value*/, cfg.TestMultiRowType2Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int32_int32.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int32_int32.cs new file mode 100644 index 00000000..e510b764 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int32_int32.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct KeyValue_int32_int32 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static KeyValue_int32_int32 GetRootAsKeyValue_int32_int32(ByteBuffer _bb) { return GetRootAsKeyValue_int32_int32(_bb, new KeyValue_int32_int32()); } + public static KeyValue_int32_int32 GetRootAsKeyValue_int32_int32(ByteBuffer _bb, KeyValue_int32_int32 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public KeyValue_int32_int32 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Value { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateKeyValue_int32_int32(FlatBufferBuilder builder, + int key = 0, + int value = 0) { + builder.StartTable(2); + KeyValue_int32_int32.AddValue(builder, value); + KeyValue_int32_int32.AddKey(builder, key); + return KeyValue_int32_int32.EndKeyValue_int32_int32(builder); + } + + public static void StartKeyValue_int32_int32(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddKey(FlatBufferBuilder builder, int key) { builder.AddInt(0, key, 0); } + public static void AddValue(FlatBufferBuilder builder, int value) { builder.AddInt(1, value, 0); } + public static Offset EndKeyValue_int32_int32(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class KeyValue_int32_int32Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Value*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int64_int32.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int64_int32.cs new file mode 100644 index 00000000..eacb8e3f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_int64_int32.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct KeyValue_int64_int32 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static KeyValue_int64_int32 GetRootAsKeyValue_int64_int32(ByteBuffer _bb) { return GetRootAsKeyValue_int64_int32(_bb, new KeyValue_int64_int32()); } + public static KeyValue_int64_int32 GetRootAsKeyValue_int64_int32(ByteBuffer _bb, KeyValue_int64_int32 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public KeyValue_int64_int32 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Value { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateKeyValue_int64_int32(FlatBufferBuilder builder, + long key = 0, + int value = 0) { + builder.StartTable(2); + KeyValue_int64_int32.AddKey(builder, key); + KeyValue_int64_int32.AddValue(builder, value); + return KeyValue_int64_int32.EndKeyValue_int64_int32(builder); + } + + public static void StartKeyValue_int64_int32(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddKey(FlatBufferBuilder builder, long key) { builder.AddLong(0, key, 0); } + public static void AddValue(FlatBufferBuilder builder, int value) { builder.AddInt(1, value, 0); } + public static Offset EndKeyValue_int64_int32(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class KeyValue_int64_int32Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Value*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_string_int32.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_string_int32.cs new file mode 100644 index 00000000..53009bdb --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/KeyValue_string_int32.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct KeyValue_string_int32 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static KeyValue_string_int32 GetRootAsKeyValue_string_int32(ByteBuffer _bb) { return GetRootAsKeyValue_string_int32(_bb, new KeyValue_string_int32()); } + public static KeyValue_string_int32 GetRootAsKeyValue_string_int32(ByteBuffer _bb, KeyValue_string_int32 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public KeyValue_string_int32 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Key { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKeyBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetKeyBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetKeyArray() { return __p.__vector_as_array(4); } + public int Value { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateKeyValue_string_int32(FlatBufferBuilder builder, + StringOffset keyOffset = default(StringOffset), + int value = 0) { + builder.StartTable(2); + KeyValue_string_int32.AddValue(builder, value); + KeyValue_string_int32.AddKey(builder, keyOffset); + return KeyValue_string_int32.EndKeyValue_string_int32(builder); + } + + public static void StartKeyValue_string_int32(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddKey(FlatBufferBuilder builder, StringOffset keyOffset) { builder.AddOffset(0, keyOffset.Value, 0); } + public static void AddValue(FlatBufferBuilder builder, int value) { builder.AddInt(1, value, 0); } + public static Offset EndKeyValue_string_int32(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class KeyValue_string_int32Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Key*/, false) + && verifier.VerifyField(tablePos, 6 /*Value*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nL10NDemo.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nL10NDemo.cs new file mode 100644 index 00000000..b0cb0874 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nL10NDemo.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct L10nL10NDemo : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static L10nL10NDemo GetRootAsL10nL10NDemo(ByteBuffer _bb) { return GetRootAsL10nL10NDemo(_bb, new L10nL10NDemo()); } + public static L10nL10NDemo GetRootAsL10nL10NDemo(ByteBuffer _bb, L10nL10NDemo obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public L10nL10NDemo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Text { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetTextBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetTextArray() { return __p.__vector_as_array(6); } + + public static Offset CreateL10nL10NDemo(FlatBufferBuilder builder, + int id = 0, + StringOffset textOffset = default(StringOffset)) { + builder.StartTable(2); + L10nL10NDemo.AddText(builder, textOffset); + L10nL10NDemo.AddId(builder, id); + return L10nL10NDemo.EndL10nL10NDemo(builder); + } + + public static void StartL10nL10NDemo(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddText(FlatBufferBuilder builder, StringOffset textOffset) { builder.AddOffset(1, textOffset.Value, 0); } + public static Offset EndL10nL10NDemo(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class L10nL10NDemoVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Text*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nPatchDemo.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nPatchDemo.cs new file mode 100644 index 00000000..710e3ce4 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nPatchDemo.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct L10nPatchDemo : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static L10nPatchDemo GetRootAsL10nPatchDemo(ByteBuffer _bb) { return GetRootAsL10nPatchDemo(_bb, new L10nPatchDemo()); } + public static L10nPatchDemo GetRootAsL10nPatchDemo(ByteBuffer _bb, L10nPatchDemo obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public L10nPatchDemo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Value { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateL10nPatchDemo(FlatBufferBuilder builder, + int id = 0, + int value = 0) { + builder.StartTable(2); + L10nPatchDemo.AddValue(builder, value); + L10nPatchDemo.AddId(builder, id); + return L10nPatchDemo.EndL10nPatchDemo(builder); + } + + public static void StartL10nPatchDemo(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddValue(FlatBufferBuilder builder, int value) { builder.AddInt(1, value, 0); } + public static Offset EndL10nPatchDemo(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class L10nPatchDemoVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Value*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nTbL10NDemo.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nTbL10NDemo.cs new file mode 100644 index 00000000..6432b46d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nTbL10NDemo.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct L10nTbL10NDemo : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static L10nTbL10NDemo GetRootAsL10nTbL10NDemo(ByteBuffer _bb) { return GetRootAsL10nTbL10NDemo(_bb, new L10nTbL10NDemo()); } + public static L10nTbL10NDemo GetRootAsL10nTbL10NDemo(ByteBuffer _bb, L10nTbL10NDemo obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public L10nTbL10NDemo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.L10nL10NDemo? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.L10nL10NDemo?)(new cfg.L10nL10NDemo()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateL10nTbL10NDemo(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + L10nTbL10NDemo.AddDataList(builder, data_listOffset); + return L10nTbL10NDemo.EndL10nTbL10NDemo(builder); + } + + public static void StartL10nTbL10NDemo(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndL10nTbL10NDemo(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class L10nTbL10NDemoVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.L10nL10NDemoVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nTbPatchDemo.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nTbPatchDemo.cs new file mode 100644 index 00000000..4f18d51e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/L10nTbPatchDemo.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct L10nTbPatchDemo : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static L10nTbPatchDemo GetRootAsL10nTbPatchDemo(ByteBuffer _bb) { return GetRootAsL10nTbPatchDemo(_bb, new L10nTbPatchDemo()); } + public static L10nTbPatchDemo GetRootAsL10nTbPatchDemo(ByteBuffer _bb, L10nTbPatchDemo obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public L10nTbPatchDemo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.L10nPatchDemo? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.L10nPatchDemo?)(new cfg.L10nPatchDemo()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateL10nTbPatchDemo(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + L10nTbPatchDemo.AddDataList(builder, data_listOffset); + return L10nTbPatchDemo.EndL10nTbPatchDemo(builder); + } + + public static void StartL10nTbPatchDemo(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndL10nTbPatchDemo(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class L10nTbPatchDemoVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.L10nPatchDemoVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TagTbTestTag.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TagTbTestTag.cs new file mode 100644 index 00000000..977d3bd8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TagTbTestTag.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TagTbTestTag : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TagTbTestTag GetRootAsTagTbTestTag(ByteBuffer _bb) { return GetRootAsTagTbTestTag(_bb, new TagTbTestTag()); } + public static TagTbTestTag GetRootAsTagTbTestTag(ByteBuffer _bb, TagTbTestTag obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TagTbTestTag __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TagTestTag? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TagTestTag?)(new cfg.TagTestTag()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTagTbTestTag(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TagTbTestTag.AddDataList(builder, data_listOffset); + return TagTbTestTag.EndTagTbTestTag(builder); + } + + public static void StartTagTbTestTag(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTagTbTestTag(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TagTbTestTagVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TagTestTagVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TagTestTag.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TagTestTag.cs new file mode 100644 index 00000000..38f3c3c6 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TagTestTag.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TagTestTag : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TagTestTag GetRootAsTagTestTag(ByteBuffer _bb) { return GetRootAsTagTestTag(_bb, new TagTestTag()); } + public static TagTestTag GetRootAsTagTestTag(ByteBuffer _bb, TagTestTag obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TagTestTag __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Value { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetValueBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetValueBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetValueArray() { return __p.__vector_as_array(6); } + + public static Offset CreateTagTestTag(FlatBufferBuilder builder, + int id = 0, + StringOffset valueOffset = default(StringOffset)) { + builder.StartTable(2); + TagTestTag.AddValue(builder, valueOffset); + TagTestTag.AddId(builder, id); + return TagTestTag.EndTagTestTag(builder); + } + + public static void StartTagTestTag(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddValue(FlatBufferBuilder builder, StringOffset valueOffset) { builder.AddOffset(1, valueOffset.Value, 0); } + public static Offset EndTagTestTag(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TagTestTagVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Value*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/Test2Rectangle.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/Test2Rectangle.cs new file mode 100644 index 00000000..908c49fe --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/Test2Rectangle.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct Test2Rectangle : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static Test2Rectangle GetRootAsTest2Rectangle(ByteBuffer _bb) { return GetRootAsTest2Rectangle(_bb, new Test2Rectangle()); } + public static Test2Rectangle GetRootAsTest2Rectangle(ByteBuffer _bb, Test2Rectangle obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public Test2Rectangle __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float Width { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Height { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateTest2Rectangle(FlatBufferBuilder builder, + float width = 0.0f, + float height = 0.0f) { + builder.StartTable(2); + Test2Rectangle.AddHeight(builder, height); + Test2Rectangle.AddWidth(builder, width); + return Test2Rectangle.EndTest2Rectangle(builder); + } + + public static void StartTest2Rectangle(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddWidth(FlatBufferBuilder builder, float width) { builder.AddFloat(0, width, 0.0f); } + public static void AddHeight(FlatBufferBuilder builder, float height) { builder.AddFloat(1, height, 0.0f); } + public static Offset EndTest2Rectangle(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class Test2RectangleVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Width*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Height*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestAccessFlag.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestAccessFlag.cs new file mode 100644 index 00000000..7721feb8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestAccessFlag.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestAccessFlag : int +{ + __GENERATE_DEFAULT_VALUE = 0, + TestAccessFlag_WRITE = 1, + TestAccessFlag_READ = 2, + TestAccessFlag_READ_WRITE = 3, + TestAccessFlag_TRUNCATE = 4, + TestAccessFlag_NEW = 8, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCircle.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCircle.cs new file mode 100644 index 00000000..4f815f4e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCircle.cs @@ -0,0 +1,50 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestCircle : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestCircle GetRootAsTestCircle(ByteBuffer _bb) { return GetRootAsTestCircle(_bb, new TestCircle()); } + public static TestCircle GetRootAsTestCircle(ByteBuffer _bb, TestCircle obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestCircle __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float Radius { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateTestCircle(FlatBufferBuilder builder, + float radius = 0.0f) { + builder.StartTable(1); + TestCircle.AddRadius(builder, radius); + return TestCircle.EndTestCircle(builder); + } + + public static void StartTestCircle(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddRadius(FlatBufferBuilder builder, float radius) { builder.AddFloat(0, radius, 0.0f); } + public static Offset EndTestCircle(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestCircleVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Radius*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompactString.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompactString.cs new file mode 100644 index 00000000..81b86b3e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompactString.cs @@ -0,0 +1,72 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestCompactString : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestCompactString GetRootAsTestCompactString(ByteBuffer _bb) { return GetRootAsTestCompactString(_bb, new TestCompactString()); } + public static TestCompactString GetRootAsTestCompactString(ByteBuffer _bb, TestCompactString obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestCompactString __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string S2 { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS2Bytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetS2Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetS2Array() { return __p.__vector_as_array(6); } + public string S3 { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS3Bytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetS3Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetS3Array() { return __p.__vector_as_array(8); } + + public static Offset CreateTestCompactString(FlatBufferBuilder builder, + int id = 0, + StringOffset s2Offset = default(StringOffset), + StringOffset s3Offset = default(StringOffset)) { + builder.StartTable(3); + TestCompactString.AddS3(builder, s3Offset); + TestCompactString.AddS2(builder, s2Offset); + TestCompactString.AddId(builder, id); + return TestCompactString.EndTestCompactString(builder); + } + + public static void StartTestCompactString(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddS2(FlatBufferBuilder builder, StringOffset s2Offset) { builder.AddOffset(1, s2Offset.Value, 0); } + public static void AddS3(FlatBufferBuilder builder, StringOffset s3Offset) { builder.AddOffset(2, s3Offset.Value, 0); } + public static Offset EndTestCompactString(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestCompactStringVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*S2*/, false) + && verifier.VerifyString(tablePos, 8 /*S3*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable1.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable1.cs new file mode 100644 index 00000000..61406f64 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable1.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestCompositeJsonTable1 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestCompositeJsonTable1 GetRootAsTestCompositeJsonTable1(ByteBuffer _bb) { return GetRootAsTestCompositeJsonTable1(_bb, new TestCompositeJsonTable1()); } + public static TestCompositeJsonTable1 GetRootAsTestCompositeJsonTable1(ByteBuffer _bb, TestCompositeJsonTable1 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestCompositeJsonTable1 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string X { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetXBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetXBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetXArray() { return __p.__vector_as_array(6); } + + public static Offset CreateTestCompositeJsonTable1(FlatBufferBuilder builder, + int id = 0, + StringOffset xOffset = default(StringOffset)) { + builder.StartTable(2); + TestCompositeJsonTable1.AddX(builder, xOffset); + TestCompositeJsonTable1.AddId(builder, id); + return TestCompositeJsonTable1.EndTestCompositeJsonTable1(builder); + } + + public static void StartTestCompositeJsonTable1(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX(FlatBufferBuilder builder, StringOffset xOffset) { builder.AddOffset(1, xOffset.Value, 0); } + public static Offset EndTestCompositeJsonTable1(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestCompositeJsonTable1Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*X*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable2.cs new file mode 100644 index 00000000..c4a7a340 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable2.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestCompositeJsonTable2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestCompositeJsonTable2 GetRootAsTestCompositeJsonTable2(ByteBuffer _bb) { return GetRootAsTestCompositeJsonTable2(_bb, new TestCompositeJsonTable2()); } + public static TestCompositeJsonTable2 GetRootAsTestCompositeJsonTable2(ByteBuffer _bb, TestCompositeJsonTable2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestCompositeJsonTable2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestCompositeJsonTable2(FlatBufferBuilder builder, + int id = 0, + int y = 0) { + builder.StartTable(2); + TestCompositeJsonTable2.AddY(builder, y); + TestCompositeJsonTable2.AddId(builder, id); + return TestCompositeJsonTable2.EndTestCompositeJsonTable2(builder); + } + + public static void StartTestCompositeJsonTable2(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddY(FlatBufferBuilder builder, int y) { builder.AddInt(1, y, 0); } + public static Offset EndTestCompositeJsonTable2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestCompositeJsonTable2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable3.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable3.cs new file mode 100644 index 00000000..d20e0730 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestCompositeJsonTable3.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestCompositeJsonTable3 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestCompositeJsonTable3 GetRootAsTestCompositeJsonTable3(ByteBuffer _bb) { return GetRootAsTestCompositeJsonTable3(_bb, new TestCompositeJsonTable3()); } + public static TestCompositeJsonTable3 GetRootAsTestCompositeJsonTable3(ByteBuffer _bb, TestCompositeJsonTable3 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestCompositeJsonTable3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int A { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int B { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestCompositeJsonTable3(FlatBufferBuilder builder, + int a = 0, + int b = 0) { + builder.StartTable(2); + TestCompositeJsonTable3.AddB(builder, b); + TestCompositeJsonTable3.AddA(builder, a); + return TestCompositeJsonTable3.EndTestCompositeJsonTable3(builder); + } + + public static void StartTestCompositeJsonTable3(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddA(FlatBufferBuilder builder, int a) { builder.AddInt(0, a, 0); } + public static void AddB(FlatBufferBuilder builder, int b) { builder.AddInt(1, b, 0); } + public static Offset EndTestCompositeJsonTable3(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestCompositeJsonTable3Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*A*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*B*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDateTimeRange.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDateTimeRange.cs new file mode 100644 index 00000000..ab10efff --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDateTimeRange.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDateTimeRange : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDateTimeRange GetRootAsTestDateTimeRange(ByteBuffer _bb) { return GetRootAsTestDateTimeRange(_bb, new TestDateTimeRange()); } + public static TestDateTimeRange GetRootAsTestDateTimeRange(ByteBuffer _bb, TestDateTimeRange obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDateTimeRange __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StartTime { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EndTime { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTestDateTimeRange(FlatBufferBuilder builder, + long start_time = 0, + long end_time = 0) { + builder.StartTable(2); + TestDateTimeRange.AddEndTime(builder, end_time); + TestDateTimeRange.AddStartTime(builder, start_time); + return TestDateTimeRange.EndTestDateTimeRange(builder); + } + + public static void StartTestDateTimeRange(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddStartTime(FlatBufferBuilder builder, long startTime) { builder.AddLong(0, startTime, 0); } + public static void AddEndTime(FlatBufferBuilder builder, long endTime) { builder.AddLong(1, endTime, 0); } + public static Offset EndTestDateTimeRange(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestDateTimeRangeVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StartTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*EndTime*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDecorator.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDecorator.cs new file mode 100644 index 00000000..3b24222e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDecorator.cs @@ -0,0 +1,77 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDecorator : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDecorator GetRootAsTestDecorator(ByteBuffer _bb) { return GetRootAsTestDecorator(_bb, new TestDecorator()); } + public static TestDecorator GetRootAsTestDecorator(ByteBuffer _bb, TestDecorator obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDecorator __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public string Desc { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(8); } + public int Duration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestDecorator(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + StringOffset descOffset = default(StringOffset), + int duration = 0) { + builder.StartTable(4); + TestDecorator.AddDuration(builder, duration); + TestDecorator.AddDesc(builder, descOffset); + TestDecorator.AddName(builder, nameOffset); + TestDecorator.AddId(builder, id); + return TestDecorator.EndTestDecorator(builder); + } + + public static void StartTestDecorator(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(2, descOffset.Value, 0); } + public static void AddDuration(FlatBufferBuilder builder, int duration) { builder.AddInt(3, duration, 0); } + public static Offset EndTestDecorator(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestDecoratorVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyString(tablePos, 8 /*Desc*/, false) + && verifier.VerifyField(tablePos, 10 /*Duration*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD2.cs new file mode 100644 index 00000000..45d03987 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD2.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoD2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoD2 GetRootAsTestDemoD2(ByteBuffer _bb) { return GetRootAsTestDemoD2(_bb, new TestDemoD2()); } + public static TestDemoD2 GetRootAsTestDemoD2(ByteBuffer _bb, TestDemoD2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoD2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X2 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestDemoD2(FlatBufferBuilder builder, + int x1 = 0, + int x2 = 0) { + builder.StartTable(2); + TestDemoD2.AddX2(builder, x2); + TestDemoD2.AddX1(builder, x1); + return TestDemoD2.EndTestDemoD2(builder); + } + + public static void StartTestDemoD2(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(0, x1, 0); } + public static void AddX2(FlatBufferBuilder builder, int x2) { builder.AddInt(1, x2, 0); } + public static Offset EndTestDemoD2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestDemoD2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X2*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD3.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD3.cs new file mode 100644 index 00000000..81003baf --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD3.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestDemoD3 : byte +{ + NONE = 0, + TestDemoE1 = 1, + TestLoginRoleInfo = 2, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD5.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD5.cs new file mode 100644 index 00000000..0839aeac --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoD5.cs @@ -0,0 +1,56 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoD5 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoD5 GetRootAsTestDemoD5(ByteBuffer _bb) { return GetRootAsTestDemoD5(_bb, new TestDemoD5()); } + public static TestDemoD5 GetRootAsTestDemoD5(ByteBuffer _bb, TestDemoD5 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoD5 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestDateTimeRange? Time { get { int o = __p.__offset(6); return o != 0 ? (cfg.TestDateTimeRange?)(new cfg.TestDateTimeRange()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + + public static Offset CreateTestDemoD5(FlatBufferBuilder builder, + int x1 = 0, + Offset timeOffset = default(Offset)) { + builder.StartTable(2); + TestDemoD5.AddTime(builder, timeOffset); + TestDemoD5.AddX1(builder, x1); + return TestDemoD5.EndTestDemoD5(builder); + } + + public static void StartTestDemoD5(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(0, x1, 0); } + public static void AddTime(FlatBufferBuilder builder, Offset timeOffset) { builder.AddOffset(1, timeOffset.Value, 0); } + public static Offset EndTestDemoD5(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // time + return new Offset(o); + } +} + + +static public class TestDemoD5Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyTable(tablePos, 6 /*Time*/, cfg.TestDateTimeRangeVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoDynamic.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoDynamic.cs new file mode 100644 index 00000000..20736e6b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoDynamic.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestDemoDynamic : byte +{ + NONE = 0, + TestDemoD2 = 1, + TestDemoE1 = 2, + TestLoginRoleInfo = 3, + TestDemoD5 = 4, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoE1.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoE1.cs new file mode 100644 index 00000000..1fb455b5 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoE1.cs @@ -0,0 +1,60 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoE1 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoE1 GetRootAsTestDemoE1(ByteBuffer _bb) { return GetRootAsTestDemoE1(_bb, new TestDemoE1()); } + public static TestDemoE1 GetRootAsTestDemoE1(ByteBuffer _bb, TestDemoE1 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoE1 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X3 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X4 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestDemoE1(FlatBufferBuilder builder, + int x1 = 0, + int x3 = 0, + int x4 = 0) { + builder.StartTable(3); + TestDemoE1.AddX4(builder, x4); + TestDemoE1.AddX3(builder, x3); + TestDemoE1.AddX1(builder, x1); + return TestDemoE1.EndTestDemoE1(builder); + } + + public static void StartTestDemoE1(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(0, x1, 0); } + public static void AddX3(FlatBufferBuilder builder, int x3) { builder.AddInt(1, x3, 0); } + public static void AddX4(FlatBufferBuilder builder, int x4) { builder.AddInt(2, x4, 0); } + public static Offset EndTestDemoE1(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestDemoE1Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X3*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*X4*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoE2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoE2.cs new file mode 100644 index 00000000..051421f0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoE2.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoE2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoE2 GetRootAsTestDemoE2(ByteBuffer _bb) { return GetRootAsTestDemoE2(_bb, new TestDemoE2()); } + public static TestDemoE2 GetRootAsTestDemoE2(ByteBuffer _bb, TestDemoE2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoE2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Y1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool Y2 { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateTestDemoE2(FlatBufferBuilder builder, + int y1 = 0, + bool y2 = false) { + builder.StartTable(2); + TestDemoE2.AddY1(builder, y1); + TestDemoE2.AddY2(builder, y2); + return TestDemoE2.EndTestDemoE2(builder); + } + + public static void StartTestDemoE2(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddY1(FlatBufferBuilder builder, int y1) { builder.AddInt(0, y1, 0); } + public static void AddY2(FlatBufferBuilder builder, bool y2) { builder.AddBool(1, y2, false); } + public static Offset EndTestDemoE2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestDemoE2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Y1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y2*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoEnum.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoEnum.cs new file mode 100644 index 00000000..c83a17b0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoEnum.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestDemoEnum : int +{ + TestDemoEnum_NONE = 0, + TestDemoEnum_A = 1, + TestDemoEnum_B = 2, + TestDemoEnum_C = 4, + TestDemoEnum_D = 5, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoFlag.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoFlag.cs new file mode 100644 index 00000000..0a1ce55b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoFlag.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestDemoFlag : int +{ + __GENERATE_DEFAULT_VALUE = 0, + TestDemoFlag_A = 1, + TestDemoFlag_B = 2, + TestDemoFlag_C = 4, + TestDemoFlag_D = 8, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoGroup.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoGroup.cs new file mode 100644 index 00000000..88758498 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoGroup.cs @@ -0,0 +1,76 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoGroup : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoGroup GetRootAsTestDemoGroup(ByteBuffer _bb) { return GetRootAsTestDemoGroup(_bb, new TestDemoGroup()); } + public static TestDemoGroup GetRootAsTestDemoGroup(ByteBuffer _bb, TestDemoGroup obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoGroup __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X1 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X2 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X3 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X4 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestInnerGroup? X5 { get { int o = __p.__offset(14); return o != 0 ? (cfg.TestInnerGroup?)(new cfg.TestInnerGroup()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + + public static Offset CreateTestDemoGroup(FlatBufferBuilder builder, + int id = 0, + int x1 = 0, + int x2 = 0, + int x3 = 0, + int x4 = 0, + Offset x5Offset = default(Offset)) { + builder.StartTable(6); + TestDemoGroup.AddX5(builder, x5Offset); + TestDemoGroup.AddX4(builder, x4); + TestDemoGroup.AddX3(builder, x3); + TestDemoGroup.AddX2(builder, x2); + TestDemoGroup.AddX1(builder, x1); + TestDemoGroup.AddId(builder, id); + return TestDemoGroup.EndTestDemoGroup(builder); + } + + public static void StartTestDemoGroup(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(1, x1, 0); } + public static void AddX2(FlatBufferBuilder builder, int x2) { builder.AddInt(2, x2, 0); } + public static void AddX3(FlatBufferBuilder builder, int x3) { builder.AddInt(3, x3, 0); } + public static void AddX4(FlatBufferBuilder builder, int x4) { builder.AddInt(4, x4, 0); } + public static void AddX5(FlatBufferBuilder builder, Offset x5Offset) { builder.AddOffset(5, x5Offset.Value, 0); } + public static Offset EndTestDemoGroup(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 14); // x5 + return new Offset(o); + } +} + + +static public class TestDemoGroupVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*X2*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*X3*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*X4*/, 4 /*int*/, 4, false) + && verifier.VerifyTable(tablePos, 14 /*X5*/, cfg.TestInnerGroupVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoPrimitiveTypesTable.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoPrimitiveTypesTable.cs new file mode 100644 index 00000000..d7218370 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoPrimitiveTypesTable.cs @@ -0,0 +1,125 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoPrimitiveTypesTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoPrimitiveTypesTable GetRootAsTestDemoPrimitiveTypesTable(ByteBuffer _bb) { return GetRootAsTestDemoPrimitiveTypesTable(_bb, new TestDemoPrimitiveTypesTable()); } + public static TestDemoPrimitiveTypesTable GetRootAsTestDemoPrimitiveTypesTable(ByteBuffer _bb, TestDemoPrimitiveTypesTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoPrimitiveTypesTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public bool X1 { get { int o = __p.__offset(4); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public byte X2 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.Get(o + __p.bb_pos) : (byte)0; } } + public short X3 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetShort(o + __p.bb_pos) : (short)0; } } + public int X4 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long X5 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float X6 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public double X7 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetDouble(o + __p.bb_pos) : (double)0.0; } } + public string S1 { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS1Bytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetS1Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetS1Array() { return __p.__vector_as_array(18); } + public string S2 { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS2Bytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetS2Bytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetS2Array() { return __p.__vector_as_array(20); } + public cfg.vector2? V2 { get { int o = __p.__offset(22); return o != 0 ? (cfg.vector2?)(new cfg.vector2()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.vector3? V3 { get { int o = __p.__offset(24); return o != 0 ? (cfg.vector3?)(new cfg.vector3()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.vector4? V4 { get { int o = __p.__offset(26); return o != 0 ? (cfg.vector4?)(new cfg.vector4()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public long T1 { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTestDemoPrimitiveTypesTable(FlatBufferBuilder builder, + bool x1 = false, + byte x2 = 0, + short x3 = 0, + int x4 = 0, + long x5 = 0, + float x6 = 0.0f, + double x7 = 0.0, + StringOffset s1Offset = default(StringOffset), + StringOffset s2Offset = default(StringOffset), + Offset v2Offset = default(Offset), + Offset v3Offset = default(Offset), + Offset v4Offset = default(Offset), + long t1 = 0) { + builder.StartTable(13); + TestDemoPrimitiveTypesTable.AddT1(builder, t1); + TestDemoPrimitiveTypesTable.AddX7(builder, x7); + TestDemoPrimitiveTypesTable.AddX5(builder, x5); + TestDemoPrimitiveTypesTable.AddV4(builder, v4Offset); + TestDemoPrimitiveTypesTable.AddV3(builder, v3Offset); + TestDemoPrimitiveTypesTable.AddV2(builder, v2Offset); + TestDemoPrimitiveTypesTable.AddS2(builder, s2Offset); + TestDemoPrimitiveTypesTable.AddS1(builder, s1Offset); + TestDemoPrimitiveTypesTable.AddX6(builder, x6); + TestDemoPrimitiveTypesTable.AddX4(builder, x4); + TestDemoPrimitiveTypesTable.AddX3(builder, x3); + TestDemoPrimitiveTypesTable.AddX2(builder, x2); + TestDemoPrimitiveTypesTable.AddX1(builder, x1); + return TestDemoPrimitiveTypesTable.EndTestDemoPrimitiveTypesTable(builder); + } + + public static void StartTestDemoPrimitiveTypesTable(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddX1(FlatBufferBuilder builder, bool x1) { builder.AddBool(0, x1, false); } + public static void AddX2(FlatBufferBuilder builder, byte x2) { builder.AddByte(1, x2, 0); } + public static void AddX3(FlatBufferBuilder builder, short x3) { builder.AddShort(2, x3, 0); } + public static void AddX4(FlatBufferBuilder builder, int x4) { builder.AddInt(3, x4, 0); } + public static void AddX5(FlatBufferBuilder builder, long x5) { builder.AddLong(4, x5, 0); } + public static void AddX6(FlatBufferBuilder builder, float x6) { builder.AddFloat(5, x6, 0.0f); } + public static void AddX7(FlatBufferBuilder builder, double x7) { builder.AddDouble(6, x7, 0.0); } + public static void AddS1(FlatBufferBuilder builder, StringOffset s1Offset) { builder.AddOffset(7, s1Offset.Value, 0); } + public static void AddS2(FlatBufferBuilder builder, StringOffset s2Offset) { builder.AddOffset(8, s2Offset.Value, 0); } + public static void AddV2(FlatBufferBuilder builder, Offset v2Offset) { builder.AddOffset(9, v2Offset.Value, 0); } + public static void AddV3(FlatBufferBuilder builder, Offset v3Offset) { builder.AddOffset(10, v3Offset.Value, 0); } + public static void AddV4(FlatBufferBuilder builder, Offset v4Offset) { builder.AddOffset(11, v4Offset.Value, 0); } + public static void AddT1(FlatBufferBuilder builder, long t1) { builder.AddLong(12, t1, 0); } + public static Offset EndTestDemoPrimitiveTypesTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 22); // v2 + builder.Required(o, 24); // v3 + builder.Required(o, 26); // v4 + return new Offset(o); + } +} + + +static public class TestDemoPrimitiveTypesTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X1*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 6 /*X2*/, 1 /*byte*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*X3*/, 2 /*short*/, 2, false) + && verifier.VerifyField(tablePos, 10 /*X4*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*X5*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*X6*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*X7*/, 8 /*double*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*S1*/, false) + && verifier.VerifyString(tablePos, 20 /*S2*/, false) + && verifier.VerifyTable(tablePos, 22 /*V2*/, cfg.vector2Verify.Verify, true) + && verifier.VerifyTable(tablePos, 24 /*V3*/, cfg.vector3Verify.Verify, true) + && verifier.VerifyTable(tablePos, 26 /*V4*/, cfg.vector4Verify.Verify, true) + && verifier.VerifyField(tablePos, 28 /*T1*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoSingletonType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoSingletonType.cs new file mode 100644 index 00000000..5b3eda3e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoSingletonType.cs @@ -0,0 +1,76 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoSingletonType : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoSingletonType GetRootAsTestDemoSingletonType(ByteBuffer _bb) { return GetRootAsTestDemoSingletonType(_bb, new TestDemoSingletonType()); } + public static TestDemoSingletonType GetRootAsTestDemoSingletonType(ByteBuffer _bb, TestDemoSingletonType obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoSingletonType __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public cfg.TestDemoDynamic DateType { get { int o = __p.__offset(8); return o != 0 ? (cfg.TestDemoDynamic)__p.bb.Get(o + __p.bb_pos) : cfg.TestDemoDynamic.NONE; } } + public TTable? Date() where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.TestDemoD2 DateAsTestDemoD2() { return Date().Value; } + public cfg.TestDemoE1 DateAsTestDemoE1() { return Date().Value; } + public cfg.TestLoginRoleInfo DateAsTestLoginRoleInfo() { return Date().Value; } + public cfg.TestDemoD5 DateAsTestDemoD5() { return Date().Value; } + + public static Offset CreateTestDemoSingletonType(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + cfg.TestDemoDynamic date_type = cfg.TestDemoDynamic.NONE, + int dateOffset = 0) { + builder.StartTable(4); + TestDemoSingletonType.AddDate(builder, dateOffset); + TestDemoSingletonType.AddName(builder, nameOffset); + TestDemoSingletonType.AddId(builder, id); + TestDemoSingletonType.AddDateType(builder, date_type); + return TestDemoSingletonType.EndTestDemoSingletonType(builder); + } + + public static void StartTestDemoSingletonType(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddDateType(FlatBufferBuilder builder, cfg.TestDemoDynamic dateType) { builder.AddByte(2, (byte)dateType, 0); } + public static void AddDate(FlatBufferBuilder builder, int dateOffset) { builder.AddOffset(3, dateOffset, 0); } + public static Offset EndTestDemoSingletonType(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 10); // date + return new Offset(o); + } +} + + +static public class TestDemoSingletonTypeVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyField(tablePos, 8 /*DateType*/, 1 /*cfg.TestDemoDynamic*/, 1, false) + && verifier.VerifyUnion(tablePos, 8, 10 /*Date*/, cfg.TestDemoDynamicVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoType1.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoType1.cs new file mode 100644 index 00000000..561f61ec --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoType1.cs @@ -0,0 +1,50 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoType1 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoType1 GetRootAsTestDemoType1(ByteBuffer _bb) { return GetRootAsTestDemoType1(_bb, new TestDemoType1()); } + public static TestDemoType1 GetRootAsTestDemoType1(ByteBuffer _bb, TestDemoType1 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoType1 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestDemoType1(FlatBufferBuilder builder, + int x1 = 0) { + builder.StartTable(1); + TestDemoType1.AddX1(builder, x1); + return TestDemoType1.EndTestDemoType1(builder); + } + + public static void StartTestDemoType1(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(0, x1, 0); } + public static Offset EndTestDemoType1(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestDemoType1Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoType2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoType2.cs new file mode 100644 index 00000000..4b899ec0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDemoType2.cs @@ -0,0 +1,255 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDemoType2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDemoType2 GetRootAsTestDemoType2(ByteBuffer _bb) { return GetRootAsTestDemoType2(_bb, new TestDemoType2()); } + public static TestDemoType2 GetRootAsTestDemoType2(ByteBuffer _bb, TestDemoType2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDemoType2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X4 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool X1 { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public byte X2 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.Get(o + __p.bb_pos) : (byte)0; } } + public short X3 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetShort(o + __p.bb_pos) : (short)0; } } + public long X5 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float X6 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public double X7 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetDouble(o + __p.bb_pos) : (double)0.0; } } + public short X80 { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetShort(o + __p.bb_pos) : (short)0; } } + public int X8 { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long X9 { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string X10 { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetX10Bytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetX10Bytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetX10Array() { return __p.__vector_as_array(24); } + public cfg.TestDemoType1? X12 { get { int o = __p.__offset(26); return o != 0 ? (cfg.TestDemoType1?)(new cfg.TestDemoType1()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestDemoEnum X13 { get { int o = __p.__offset(28); return o != 0 ? (cfg.TestDemoEnum)__p.bb.GetInt(o + __p.bb_pos) : cfg.TestDemoEnum.TestDemoEnum_NONE; } } + public cfg.TestDemoDynamic X14Type { get { int o = __p.__offset(30); return o != 0 ? (cfg.TestDemoDynamic)__p.bb.Get(o + __p.bb_pos) : cfg.TestDemoDynamic.NONE; } } + public TTable? X14() where TTable : struct, IFlatbufferObject { int o = __p.__offset(32); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.TestDemoD2 X14AsTestDemoD2() { return X14().Value; } + public cfg.TestDemoE1 X14AsTestDemoE1() { return X14().Value; } + public cfg.TestLoginRoleInfo X14AsTestLoginRoleInfo() { return X14().Value; } + public cfg.TestDemoD5 X14AsTestDemoD5() { return X14().Value; } + public string S1 { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS1Bytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetS1Bytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetS1Array() { return __p.__vector_as_array(34); } + public long T1 { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int K1(int j) { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int K1Length { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK1Bytes() { return __p.__vector_as_span(38, 4); } +#else + public ArraySegment? GetK1Bytes() { return __p.__vector_as_arraysegment(38); } +#endif + public int[] GetK1Array() { return __p.__vector_as_array(38); } + public int K2(int j) { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int K2Length { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK2Bytes() { return __p.__vector_as_span(40, 4); } +#else + public ArraySegment? GetK2Bytes() { return __p.__vector_as_arraysegment(40); } +#endif + public int[] GetK2Array() { return __p.__vector_as_array(40); } + public int K5(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int K5Length { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK5Bytes() { return __p.__vector_as_span(42, 4); } +#else + public ArraySegment? GetK5Bytes() { return __p.__vector_as_arraysegment(42); } +#endif + public int[] GetK5Array() { return __p.__vector_as_array(42); } + public cfg.KeyValue_int32_int32? K8(int j) { int o = __p.__offset(44); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K8Length { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestDemoE2? K9(int j) { int o = __p.__offset(46); return o != 0 ? (cfg.TestDemoE2?)(new cfg.TestDemoE2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K9Length { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestDemoDynamic K15Type(int j) { int o = __p.__offset(48); return o != 0 ? (cfg.TestDemoDynamic)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.TestDemoDynamic)0; } + public int K15TypeLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK15TypeBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetK15TypeBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public cfg.TestDemoDynamic[] GetK15TypeArray() { int o = __p.__offset(48); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.TestDemoDynamic[] a = new cfg.TestDemoDynamic[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.TestDemoDynamic)__p.bb.Get(p + i * 1); } return a; } + public TTable? K15(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(50); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int K15Length { get { int o = __p.__offset(50); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestDemoType2(FlatBufferBuilder builder, + int x4 = 0, + bool x1 = false, + byte x2 = 0, + short x3 = 0, + long x5 = 0, + float x6 = 0.0f, + double x7 = 0.0, + short x8_0 = 0, + int x8 = 0, + long x9 = 0, + StringOffset x10Offset = default(StringOffset), + Offset x12Offset = default(Offset), + cfg.TestDemoEnum x13 = cfg.TestDemoEnum.TestDemoEnum_NONE, + cfg.TestDemoDynamic x14_type = cfg.TestDemoDynamic.NONE, + int x14Offset = 0, + StringOffset s1Offset = default(StringOffset), + long t1 = 0, + VectorOffset k1Offset = default(VectorOffset), + VectorOffset k2Offset = default(VectorOffset), + VectorOffset k5Offset = default(VectorOffset), + VectorOffset k8Offset = default(VectorOffset), + VectorOffset k9Offset = default(VectorOffset), + VectorOffset k15_typeOffset = default(VectorOffset), + VectorOffset k15Offset = default(VectorOffset)) { + builder.StartTable(24); + TestDemoType2.AddT1(builder, t1); + TestDemoType2.AddX9(builder, x9); + TestDemoType2.AddX7(builder, x7); + TestDemoType2.AddX5(builder, x5); + TestDemoType2.AddK15(builder, k15Offset); + TestDemoType2.AddK15Type(builder, k15_typeOffset); + TestDemoType2.AddK9(builder, k9Offset); + TestDemoType2.AddK8(builder, k8Offset); + TestDemoType2.AddK5(builder, k5Offset); + TestDemoType2.AddK2(builder, k2Offset); + TestDemoType2.AddK1(builder, k1Offset); + TestDemoType2.AddS1(builder, s1Offset); + TestDemoType2.AddX14(builder, x14Offset); + TestDemoType2.AddX13(builder, x13); + TestDemoType2.AddX12(builder, x12Offset); + TestDemoType2.AddX10(builder, x10Offset); + TestDemoType2.AddX8(builder, x8); + TestDemoType2.AddX6(builder, x6); + TestDemoType2.AddX4(builder, x4); + TestDemoType2.AddX80(builder, x8_0); + TestDemoType2.AddX3(builder, x3); + TestDemoType2.AddX14Type(builder, x14_type); + TestDemoType2.AddX2(builder, x2); + TestDemoType2.AddX1(builder, x1); + return TestDemoType2.EndTestDemoType2(builder); + } + + public static void StartTestDemoType2(FlatBufferBuilder builder) { builder.StartTable(24); } + public static void AddX4(FlatBufferBuilder builder, int x4) { builder.AddInt(0, x4, 0); } + public static void AddX1(FlatBufferBuilder builder, bool x1) { builder.AddBool(1, x1, false); } + public static void AddX2(FlatBufferBuilder builder, byte x2) { builder.AddByte(2, x2, 0); } + public static void AddX3(FlatBufferBuilder builder, short x3) { builder.AddShort(3, x3, 0); } + public static void AddX5(FlatBufferBuilder builder, long x5) { builder.AddLong(4, x5, 0); } + public static void AddX6(FlatBufferBuilder builder, float x6) { builder.AddFloat(5, x6, 0.0f); } + public static void AddX7(FlatBufferBuilder builder, double x7) { builder.AddDouble(6, x7, 0.0); } + public static void AddX80(FlatBufferBuilder builder, short x80) { builder.AddShort(7, x80, 0); } + public static void AddX8(FlatBufferBuilder builder, int x8) { builder.AddInt(8, x8, 0); } + public static void AddX9(FlatBufferBuilder builder, long x9) { builder.AddLong(9, x9, 0); } + public static void AddX10(FlatBufferBuilder builder, StringOffset x10Offset) { builder.AddOffset(10, x10Offset.Value, 0); } + public static void AddX12(FlatBufferBuilder builder, Offset x12Offset) { builder.AddOffset(11, x12Offset.Value, 0); } + public static void AddX13(FlatBufferBuilder builder, cfg.TestDemoEnum x13) { builder.AddInt(12, (int)x13, 0); } + public static void AddX14Type(FlatBufferBuilder builder, cfg.TestDemoDynamic x14Type) { builder.AddByte(13, (byte)x14Type, 0); } + public static void AddX14(FlatBufferBuilder builder, int x14Offset) { builder.AddOffset(14, x14Offset, 0); } + public static void AddS1(FlatBufferBuilder builder, StringOffset s1Offset) { builder.AddOffset(15, s1Offset.Value, 0); } + public static void AddT1(FlatBufferBuilder builder, long t1) { builder.AddLong(16, t1, 0); } + public static void AddK1(FlatBufferBuilder builder, VectorOffset k1Offset) { builder.AddOffset(17, k1Offset.Value, 0); } + public static VectorOffset CreateK1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK2(FlatBufferBuilder builder, VectorOffset k2Offset) { builder.AddOffset(18, k2Offset.Value, 0); } + public static VectorOffset CreateK2Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK2VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK5(FlatBufferBuilder builder, VectorOffset k5Offset) { builder.AddOffset(19, k5Offset.Value, 0); } + public static VectorOffset CreateK5Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK5VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK5VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK5VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK5Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK8(FlatBufferBuilder builder, VectorOffset k8Offset) { builder.AddOffset(20, k8Offset.Value, 0); } + public static VectorOffset CreateK8Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK8Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK9(FlatBufferBuilder builder, VectorOffset k9Offset) { builder.AddOffset(21, k9Offset.Value, 0); } + public static VectorOffset CreateK9Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK9Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK15Type(FlatBufferBuilder builder, VectorOffset k15TypeOffset) { builder.AddOffset(22, k15TypeOffset.Value, 0); } + public static VectorOffset CreateK15TypeVector(FlatBufferBuilder builder, cfg.TestDemoDynamic[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateK15TypeVectorBlock(FlatBufferBuilder builder, cfg.TestDemoDynamic[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15TypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15TypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK15TypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddK15(FlatBufferBuilder builder, VectorOffset k15Offset) { builder.AddOffset(23, k15Offset.Value, 0); } + public static VectorOffset CreateK15Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK15VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK15Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestDemoType2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 26); // x12 + builder.Required(o, 32); // x14 + builder.Required(o, 38); // k1 + builder.Required(o, 40); // k2 + builder.Required(o, 42); // k5 + builder.Required(o, 44); // k8 + builder.Required(o, 46); // k9 + builder.Required(o, 48); // k15_type + builder.Required(o, 50); // k15 + return new Offset(o); + } +} + + +static public class TestDemoType2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X4*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X1*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*X2*/, 1 /*byte*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*X3*/, 2 /*short*/, 2, false) + && verifier.VerifyField(tablePos, 12 /*X5*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*X6*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*X7*/, 8 /*double*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*X80*/, 2 /*short*/, 2, false) + && verifier.VerifyField(tablePos, 20 /*X8*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*X9*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 24 /*X10*/, false) + && verifier.VerifyTable(tablePos, 26 /*X12*/, cfg.TestDemoType1Verify.Verify, true) + && verifier.VerifyField(tablePos, 28 /*X13*/, 4 /*cfg.TestDemoEnum*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*X14Type*/, 1 /*cfg.TestDemoDynamic*/, 1, false) + && verifier.VerifyUnion(tablePos, 30, 32 /*X14*/, cfg.TestDemoDynamicVerify.Verify, true) + && verifier.VerifyString(tablePos, 34 /*S1*/, false) + && verifier.VerifyField(tablePos, 36 /*T1*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*K1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 40 /*K2*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 42 /*K5*/, 4 /*int*/, true) + && verifier.VerifyVectorOfTables(tablePos, 44 /*K8*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 46 /*K9*/, cfg.TestDemoE2Verify.Verify, true) + && verifier.VerifyVectorOfData(tablePos, 48 /*K15Type*/, 1 /*cfg.TestDemoDynamic*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDetectEncoding.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDetectEncoding.cs new file mode 100644 index 00000000..70bd71e1 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestDetectEncoding.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestDetectEncoding : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestDetectEncoding GetRootAsTestDetectEncoding(ByteBuffer _bb) { return GetRootAsTestDetectEncoding(_bb, new TestDetectEncoding()); } + public static TestDetectEncoding GetRootAsTestDetectEncoding(ByteBuffer _bb, TestDetectEncoding obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestDetectEncoding __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + + public static Offset CreateTestDetectEncoding(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset)) { + builder.StartTable(2); + TestDetectEncoding.AddName(builder, nameOffset); + TestDetectEncoding.AddId(builder, id); + return TestDetectEncoding.EndTestDetectEncoding(builder); + } + + public static void StartTestDetectEncoding(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static Offset EndTestDetectEncoding(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestDetectEncodingVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestEmptyEnum.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestEmptyEnum.cs new file mode 100644 index 00000000..a195c78b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestEmptyEnum.cs @@ -0,0 +1,14 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestETestEmptyEnum : int +{ + __GENERATE_DEFAULT_VALUE = 0, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestEmptyEnum2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestEmptyEnum2.cs new file mode 100644 index 00000000..6482b70a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestEmptyEnum2.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestETestEmptyEnum2 : int +{ + __GENERATE_DEFAULT_VALUE = 0, + TestETestEmptyEnum2_SMALL_THAN_256 = 255, + TestETestEmptyEnum2_X_256 = 256, + TestETestEmptyEnum2_X_257 = 257, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestQuality.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestQuality.cs new file mode 100644 index 00000000..dce06d2c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestQuality.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestETestQuality : int +{ + __GENERATE_DEFAULT_VALUE = 0, + TestETestQuality_A = 1, + TestETestQuality_B = 2, + TestETestQuality_C = 3, + TestETestQuality_D = 4, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestUeType.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestUeType.cs new file mode 100644 index 00000000..ccbc032f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestETestUeType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestETestUeType : int +{ + TestETestUeType_WHITE = 0, + TestETestUeType_BLACK = 1, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestEquipment.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestEquipment.cs new file mode 100644 index 00000000..67621a7d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestEquipment.cs @@ -0,0 +1,82 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestEquipment : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestEquipment GetRootAsTestEquipment(ByteBuffer _bb) { return GetRootAsTestEquipment(_bb, new TestEquipment()); } + public static TestEquipment GetRootAsTestEquipment(ByteBuffer _bb, TestEquipment obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestEquipment __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public string Desc { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(8); } + public cfg.TestDemoEnum Attr { get { int o = __p.__offset(10); return o != 0 ? (cfg.TestDemoEnum)__p.bb.GetInt(o + __p.bb_pos) : cfg.TestDemoEnum.TestDemoEnum_NONE; } } + public int Value { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestEquipment(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + StringOffset descOffset = default(StringOffset), + cfg.TestDemoEnum attr = cfg.TestDemoEnum.TestDemoEnum_NONE, + int value = 0) { + builder.StartTable(5); + TestEquipment.AddValue(builder, value); + TestEquipment.AddAttr(builder, attr); + TestEquipment.AddDesc(builder, descOffset); + TestEquipment.AddName(builder, nameOffset); + TestEquipment.AddId(builder, id); + return TestEquipment.EndTestEquipment(builder); + } + + public static void StartTestEquipment(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(2, descOffset.Value, 0); } + public static void AddAttr(FlatBufferBuilder builder, cfg.TestDemoEnum attr) { builder.AddInt(3, (int)attr, 0); } + public static void AddValue(FlatBufferBuilder builder, int value) { builder.AddInt(4, value, 0); } + public static Offset EndTestEquipment(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestEquipmentVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyString(tablePos, 8 /*Desc*/, false) + && verifier.VerifyField(tablePos, 10 /*Attr*/, 4 /*cfg.TestDemoEnum*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Value*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestExcelFromJson.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestExcelFromJson.cs new file mode 100644 index 00000000..c0b9fc91 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestExcelFromJson.cs @@ -0,0 +1,189 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestExcelFromJson : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestExcelFromJson GetRootAsTestExcelFromJson(ByteBuffer _bb) { return GetRootAsTestExcelFromJson(_bb, new TestExcelFromJson()); } + public static TestExcelFromJson GetRootAsTestExcelFromJson(ByteBuffer _bb, TestExcelFromJson obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestExcelFromJson __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X4 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool X1 { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long X5 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float X6 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string S1 { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS1Bytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetS1Bytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetS1Array() { return __p.__vector_as_array(12); } + public string S2 { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS2Bytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetS2Bytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetS2Array() { return __p.__vector_as_array(14); } + public long T1 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public cfg.TestDemoType1? X12 { get { int o = __p.__offset(18); return o != 0 ? (cfg.TestDemoType1?)(new cfg.TestDemoType1()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestDemoEnum X13 { get { int o = __p.__offset(20); return o != 0 ? (cfg.TestDemoEnum)__p.bb.GetInt(o + __p.bb_pos) : cfg.TestDemoEnum.TestDemoEnum_NONE; } } + public cfg.TestDemoDynamic X14Type { get { int o = __p.__offset(22); return o != 0 ? (cfg.TestDemoDynamic)__p.bb.Get(o + __p.bb_pos) : cfg.TestDemoDynamic.NONE; } } + public TTable? X14() where TTable : struct, IFlatbufferObject { int o = __p.__offset(24); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.TestDemoD2 X14AsTestDemoD2() { return X14().Value; } + public cfg.TestDemoE1 X14AsTestDemoE1() { return X14().Value; } + public cfg.TestLoginRoleInfo X14AsTestLoginRoleInfo() { return X14().Value; } + public cfg.TestDemoD5 X14AsTestDemoD5() { return X14().Value; } + public int K1(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int K1Length { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK1Bytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetK1Bytes() { return __p.__vector_as_arraysegment(26); } +#endif + public int[] GetK1Array() { return __p.__vector_as_array(26); } + public cfg.KeyValue_int32_int32? K8(int j) { int o = __p.__offset(28); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K8Length { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestDemoE2? K9(int j) { int o = __p.__offset(30); return o != 0 ? (cfg.TestDemoE2?)(new cfg.TestDemoE2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int K9Length { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestDemoDynamic K15Type(int j) { int o = __p.__offset(32); return o != 0 ? (cfg.TestDemoDynamic)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.TestDemoDynamic)0; } + public int K15TypeLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetK15TypeBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetK15TypeBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public cfg.TestDemoDynamic[] GetK15TypeArray() { int o = __p.__offset(32); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.TestDemoDynamic[] a = new cfg.TestDemoDynamic[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.TestDemoDynamic)__p.bb.Get(p + i * 1); } return a; } + public TTable? K15(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(34); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int K15Length { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestExcelFromJson(FlatBufferBuilder builder, + int x4 = 0, + bool x1 = false, + long x5 = 0, + float x6 = 0.0f, + StringOffset s1Offset = default(StringOffset), + StringOffset s2Offset = default(StringOffset), + long t1 = 0, + Offset x12Offset = default(Offset), + cfg.TestDemoEnum x13 = cfg.TestDemoEnum.TestDemoEnum_NONE, + cfg.TestDemoDynamic x14_type = cfg.TestDemoDynamic.NONE, + int x14Offset = 0, + VectorOffset k1Offset = default(VectorOffset), + VectorOffset k8Offset = default(VectorOffset), + VectorOffset k9Offset = default(VectorOffset), + VectorOffset k15_typeOffset = default(VectorOffset), + VectorOffset k15Offset = default(VectorOffset)) { + builder.StartTable(16); + TestExcelFromJson.AddT1(builder, t1); + TestExcelFromJson.AddX5(builder, x5); + TestExcelFromJson.AddK15(builder, k15Offset); + TestExcelFromJson.AddK15Type(builder, k15_typeOffset); + TestExcelFromJson.AddK9(builder, k9Offset); + TestExcelFromJson.AddK8(builder, k8Offset); + TestExcelFromJson.AddK1(builder, k1Offset); + TestExcelFromJson.AddX14(builder, x14Offset); + TestExcelFromJson.AddX13(builder, x13); + TestExcelFromJson.AddX12(builder, x12Offset); + TestExcelFromJson.AddS2(builder, s2Offset); + TestExcelFromJson.AddS1(builder, s1Offset); + TestExcelFromJson.AddX6(builder, x6); + TestExcelFromJson.AddX4(builder, x4); + TestExcelFromJson.AddX14Type(builder, x14_type); + TestExcelFromJson.AddX1(builder, x1); + return TestExcelFromJson.EndTestExcelFromJson(builder); + } + + public static void StartTestExcelFromJson(FlatBufferBuilder builder) { builder.StartTable(16); } + public static void AddX4(FlatBufferBuilder builder, int x4) { builder.AddInt(0, x4, 0); } + public static void AddX1(FlatBufferBuilder builder, bool x1) { builder.AddBool(1, x1, false); } + public static void AddX5(FlatBufferBuilder builder, long x5) { builder.AddLong(2, x5, 0); } + public static void AddX6(FlatBufferBuilder builder, float x6) { builder.AddFloat(3, x6, 0.0f); } + public static void AddS1(FlatBufferBuilder builder, StringOffset s1Offset) { builder.AddOffset(4, s1Offset.Value, 0); } + public static void AddS2(FlatBufferBuilder builder, StringOffset s2Offset) { builder.AddOffset(5, s2Offset.Value, 0); } + public static void AddT1(FlatBufferBuilder builder, long t1) { builder.AddLong(6, t1, 0); } + public static void AddX12(FlatBufferBuilder builder, Offset x12Offset) { builder.AddOffset(7, x12Offset.Value, 0); } + public static void AddX13(FlatBufferBuilder builder, cfg.TestDemoEnum x13) { builder.AddInt(8, (int)x13, 0); } + public static void AddX14Type(FlatBufferBuilder builder, cfg.TestDemoDynamic x14Type) { builder.AddByte(9, (byte)x14Type, 0); } + public static void AddX14(FlatBufferBuilder builder, int x14Offset) { builder.AddOffset(10, x14Offset, 0); } + public static void AddK1(FlatBufferBuilder builder, VectorOffset k1Offset) { builder.AddOffset(11, k1Offset.Value, 0); } + public static VectorOffset CreateK1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK8(FlatBufferBuilder builder, VectorOffset k8Offset) { builder.AddOffset(12, k8Offset.Value, 0); } + public static VectorOffset CreateK8Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK8VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK8Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK9(FlatBufferBuilder builder, VectorOffset k9Offset) { builder.AddOffset(13, k9Offset.Value, 0); } + public static VectorOffset CreateK9Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK9VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK9Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddK15Type(FlatBufferBuilder builder, VectorOffset k15TypeOffset) { builder.AddOffset(14, k15TypeOffset.Value, 0); } + public static VectorOffset CreateK15TypeVector(FlatBufferBuilder builder, cfg.TestDemoDynamic[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateK15TypeVectorBlock(FlatBufferBuilder builder, cfg.TestDemoDynamic[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15TypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15TypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK15TypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddK15(FlatBufferBuilder builder, VectorOffset k15Offset) { builder.AddOffset(15, k15Offset.Value, 0); } + public static VectorOffset CreateK15Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateK15VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateK15VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartK15Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestExcelFromJson(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 18); // x12 + builder.Required(o, 24); // x14 + builder.Required(o, 26); // k1 + builder.Required(o, 28); // k8 + builder.Required(o, 30); // k9 + builder.Required(o, 32); // k15_type + builder.Required(o, 34); // k15 + return new Offset(o); + } +} + + +static public class TestExcelFromJsonVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X4*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X1*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*X5*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*X6*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*S1*/, false) + && verifier.VerifyString(tablePos, 14 /*S2*/, false) + && verifier.VerifyField(tablePos, 16 /*T1*/, 8 /*long*/, 8, false) + && verifier.VerifyTable(tablePos, 18 /*X12*/, cfg.TestDemoType1Verify.Verify, true) + && verifier.VerifyField(tablePos, 20 /*X13*/, 4 /*cfg.TestDemoEnum*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*X14Type*/, 1 /*cfg.TestDemoDynamic*/, 1, false) + && verifier.VerifyUnion(tablePos, 22, 24 /*X14*/, cfg.TestDemoDynamicVerify.Verify, true) + && verifier.VerifyVectorOfData(tablePos, 26 /*K1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfTables(tablePos, 28 /*K8*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 30 /*K9*/, cfg.TestDemoE2Verify.Verify, true) + && verifier.VerifyVectorOfData(tablePos, 32 /*K15Type*/, 1 /*cfg.TestDemoDynamic*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestExcelFromJsonMultiRow.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..44255869 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestExcelFromJsonMultiRow.cs @@ -0,0 +1,67 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestExcelFromJsonMultiRow : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestExcelFromJsonMultiRow GetRootAsTestExcelFromJsonMultiRow(ByteBuffer _bb) { return GetRootAsTestExcelFromJsonMultiRow(_bb, new TestExcelFromJsonMultiRow()); } + public static TestExcelFromJsonMultiRow GetRootAsTestExcelFromJsonMultiRow(ByteBuffer _bb, TestExcelFromJsonMultiRow obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestExcelFromJsonMultiRow __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestTestRow? Items(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.TestTestRow?)(new cfg.TestTestRow()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int ItemsLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestExcelFromJsonMultiRow(FlatBufferBuilder builder, + int id = 0, + int x = 0, + VectorOffset itemsOffset = default(VectorOffset)) { + builder.StartTable(3); + TestExcelFromJsonMultiRow.AddItems(builder, itemsOffset); + TestExcelFromJsonMultiRow.AddX(builder, x); + TestExcelFromJsonMultiRow.AddId(builder, id); + return TestExcelFromJsonMultiRow.EndTestExcelFromJsonMultiRow(builder); + } + + public static void StartTestExcelFromJsonMultiRow(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(1, x, 0); } + public static void AddItems(FlatBufferBuilder builder, VectorOffset itemsOffset) { builder.AddOffset(2, itemsOffset.Value, 0); } + public static VectorOffset CreateItemsVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateItemsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateItemsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateItemsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartItemsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestExcelFromJsonMultiRow(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // items + return new Offset(o); + } +} + + +static public class TestExcelFromJsonMultiRowVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfTables(tablePos, 8 /*Items*/, cfg.TestTestRowVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestFoo.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestFoo.cs new file mode 100644 index 00000000..0fb2551e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestFoo.cs @@ -0,0 +1,60 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestFoo : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestFoo GetRootAsTestFoo(ByteBuffer _bb) { return GetRootAsTestFoo(_bb, new TestFoo()); } + public static TestFoo GetRootAsTestFoo(ByteBuffer _bb, TestFoo obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestFoo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Y1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y2 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y3 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestFoo(FlatBufferBuilder builder, + int y1 = 0, + int y2 = 0, + int y3 = 0) { + builder.StartTable(3); + TestFoo.AddY3(builder, y3); + TestFoo.AddY2(builder, y2); + TestFoo.AddY1(builder, y1); + return TestFoo.EndTestFoo(builder); + } + + public static void StartTestFoo(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddY1(FlatBufferBuilder builder, int y1) { builder.AddInt(0, y1, 0); } + public static void AddY2(FlatBufferBuilder builder, int y2) { builder.AddInt(1, y2, 0); } + public static void AddY3(FlatBufferBuilder builder, int y3) { builder.AddInt(2, y3, 0); } + public static Offset EndTestFoo(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestFooVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Y1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y2*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Y3*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestH1.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestH1.cs new file mode 100644 index 00000000..8c39d014 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestH1.cs @@ -0,0 +1,56 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestH1 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestH1 GetRootAsTestH1(ByteBuffer _bb) { return GetRootAsTestH1(_bb, new TestH1()); } + public static TestH1 GetRootAsTestH1(ByteBuffer _bb, TestH1 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestH1 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestH2? Y2 { get { int o = __p.__offset(4); return o != 0 ? (cfg.TestH2?)(new cfg.TestH2()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public int Y3 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestH1(FlatBufferBuilder builder, + Offset y2Offset = default(Offset), + int y3 = 0) { + builder.StartTable(2); + TestH1.AddY3(builder, y3); + TestH1.AddY2(builder, y2Offset); + return TestH1.EndTestH1(builder); + } + + public static void StartTestH1(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddY2(FlatBufferBuilder builder, Offset y2Offset) { builder.AddOffset(0, y2Offset.Value, 0); } + public static void AddY3(FlatBufferBuilder builder, int y3) { builder.AddInt(1, y3, 0); } + public static Offset EndTestH1(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // y2 + return new Offset(o); + } +} + + +static public class TestH1Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyTable(tablePos, 4 /*Y2*/, cfg.TestH2Verify.Verify, true) + && verifier.VerifyField(tablePos, 6 /*Y3*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestH2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestH2.cs new file mode 100644 index 00000000..9851609d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestH2.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestH2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestH2 GetRootAsTestH2(ByteBuffer _bb) { return GetRootAsTestH2(_bb, new TestH2()); } + public static TestH2 GetRootAsTestH2(ByteBuffer _bb, TestH2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestH2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Z2 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Z3 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestH2(FlatBufferBuilder builder, + int z2 = 0, + int z3 = 0) { + builder.StartTable(2); + TestH2.AddZ3(builder, z3); + TestH2.AddZ2(builder, z2); + return TestH2.EndTestH2(builder); + } + + public static void StartTestH2(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddZ2(FlatBufferBuilder builder, int z2) { builder.AddInt(0, z2, 0); } + public static void AddZ3(FlatBufferBuilder builder, int z3) { builder.AddInt(1, z3, 0); } + public static Offset EndTestH2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestH2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Z2*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Z3*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestInnerGroup.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestInnerGroup.cs new file mode 100644 index 00000000..8c22e163 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestInnerGroup.cs @@ -0,0 +1,65 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestInnerGroup : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestInnerGroup GetRootAsTestInnerGroup(ByteBuffer _bb) { return GetRootAsTestInnerGroup(_bb, new TestInnerGroup()); } + public static TestInnerGroup GetRootAsTestInnerGroup(ByteBuffer _bb, TestInnerGroup obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestInnerGroup __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Y1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y2 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y3 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y4 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestInnerGroup(FlatBufferBuilder builder, + int y1 = 0, + int y2 = 0, + int y3 = 0, + int y4 = 0) { + builder.StartTable(4); + TestInnerGroup.AddY4(builder, y4); + TestInnerGroup.AddY3(builder, y3); + TestInnerGroup.AddY2(builder, y2); + TestInnerGroup.AddY1(builder, y1); + return TestInnerGroup.EndTestInnerGroup(builder); + } + + public static void StartTestInnerGroup(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddY1(FlatBufferBuilder builder, int y1) { builder.AddInt(0, y1, 0); } + public static void AddY2(FlatBufferBuilder builder, int y2) { builder.AddInt(1, y2, 0); } + public static void AddY3(FlatBufferBuilder builder, int y3) { builder.AddInt(2, y3, 0); } + public static void AddY4(FlatBufferBuilder builder, int y4) { builder.AddInt(3, y4, 0); } + public static Offset EndTestInnerGroup(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestInnerGroupVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Y1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y2*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Y3*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Y4*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestItem.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestItem.cs new file mode 100644 index 00000000..6408e8d6 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestItem.cs @@ -0,0 +1,82 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestItem : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestItem GetRootAsTestItem(ByteBuffer _bb) { return GetRootAsTestItem(_bb, new TestItem()); } + public static TestItem GetRootAsTestItem(ByteBuffer _bb, TestItem obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestItem __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public string Desc { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(8); } + public int Num { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Price { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestItem(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + StringOffset descOffset = default(StringOffset), + int num = 0, + int price = 0) { + builder.StartTable(5); + TestItem.AddPrice(builder, price); + TestItem.AddNum(builder, num); + TestItem.AddDesc(builder, descOffset); + TestItem.AddName(builder, nameOffset); + TestItem.AddId(builder, id); + return TestItem.EndTestItem(builder); + } + + public static void StartTestItem(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(2, descOffset.Value, 0); } + public static void AddNum(FlatBufferBuilder builder, int num) { builder.AddInt(3, num, 0); } + public static void AddPrice(FlatBufferBuilder builder, int price) { builder.AddInt(4, price, 0); } + public static Offset EndTestItem(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestItemVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyString(tablePos, 8 /*Desc*/, false) + && verifier.VerifyField(tablePos, 10 /*Num*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Price*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestItemBase.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestItemBase.cs new file mode 100644 index 00000000..dde5f4ef --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestItemBase.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestItemBase : byte +{ + NONE = 0, + TestItem = 1, + TestEquipment = 2, + TestDecorator = 3, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestLoginRoleInfo.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestLoginRoleInfo.cs new file mode 100644 index 00000000..9b025c91 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestLoginRoleInfo.cs @@ -0,0 +1,60 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestLoginRoleInfo : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestLoginRoleInfo GetRootAsTestLoginRoleInfo(ByteBuffer _bb) { return GetRootAsTestLoginRoleInfo(_bb, new TestLoginRoleInfo()); } + public static TestLoginRoleInfo GetRootAsTestLoginRoleInfo(ByteBuffer _bb, TestLoginRoleInfo obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestLoginRoleInfo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X3 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long RoleId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTestLoginRoleInfo(FlatBufferBuilder builder, + int x1 = 0, + int x3 = 0, + long role_id = 0) { + builder.StartTable(3); + TestLoginRoleInfo.AddRoleId(builder, role_id); + TestLoginRoleInfo.AddX3(builder, x3); + TestLoginRoleInfo.AddX1(builder, x1); + return TestLoginRoleInfo.EndTestLoginRoleInfo(builder); + } + + public static void StartTestLoginRoleInfo(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(0, x1, 0); } + public static void AddX3(FlatBufferBuilder builder, int x3) { builder.AddInt(1, x3, 0); } + public static void AddRoleId(FlatBufferBuilder builder, long roleId) { builder.AddLong(2, roleId, 0); } + public static Offset EndTestLoginRoleInfo(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestLoginRoleInfoVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X3*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RoleId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiIndexList.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiIndexList.cs new file mode 100644 index 00000000..2079b43f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiIndexList.cs @@ -0,0 +1,82 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestMultiIndexList : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestMultiIndexList GetRootAsTestMultiIndexList(ByteBuffer _bb) { return GetRootAsTestMultiIndexList(_bb, new TestMultiIndexList()); } + public static TestMultiIndexList GetRootAsTestMultiIndexList(ByteBuffer _bb, TestMultiIndexList obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestMultiIndexList __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long Id2 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Id3 { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetId3Bytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetId3Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetId3Array() { return __p.__vector_as_array(8); } + public int Num { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Desc { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(12); } + + public static Offset CreateTestMultiIndexList(FlatBufferBuilder builder, + int id1 = 0, + long id2 = 0, + StringOffset id3Offset = default(StringOffset), + int num = 0, + StringOffset descOffset = default(StringOffset)) { + builder.StartTable(5); + TestMultiIndexList.AddId2(builder, id2); + TestMultiIndexList.AddDesc(builder, descOffset); + TestMultiIndexList.AddNum(builder, num); + TestMultiIndexList.AddId3(builder, id3Offset); + TestMultiIndexList.AddId1(builder, id1); + return TestMultiIndexList.EndTestMultiIndexList(builder); + } + + public static void StartTestMultiIndexList(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId1(FlatBufferBuilder builder, int id1) { builder.AddInt(0, id1, 0); } + public static void AddId2(FlatBufferBuilder builder, long id2) { builder.AddLong(1, id2, 0); } + public static void AddId3(FlatBufferBuilder builder, StringOffset id3Offset) { builder.AddOffset(2, id3Offset.Value, 0); } + public static void AddNum(FlatBufferBuilder builder, int num) { builder.AddInt(3, num, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(4, descOffset.Value, 0); } + public static Offset EndTestMultiIndexList(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestMultiIndexListVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Id2*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*Id3*/, false) + && verifier.VerifyField(tablePos, 10 /*Num*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*Desc*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowRecord.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowRecord.cs new file mode 100644 index 00000000..13472d29 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowRecord.cs @@ -0,0 +1,145 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestMultiRowRecord : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestMultiRowRecord GetRootAsTestMultiRowRecord(ByteBuffer _bb) { return GetRootAsTestMultiRowRecord(_bb, new TestMultiRowRecord()); } + public static TestMultiRowRecord GetRootAsTestMultiRowRecord(ByteBuffer _bb, TestMultiRowRecord obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestMultiRowRecord __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public cfg.TestMultiRowType1? OneRows(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.TestMultiRowType1?)(new cfg.TestMultiRowType1()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int OneRowsLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestMultiRowType1? MultiRows1(int j) { int o = __p.__offset(10); return o != 0 ? (cfg.TestMultiRowType1?)(new cfg.TestMultiRowType1()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int MultiRows1Length { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestMultiRowType1? MultiRows2(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.TestMultiRowType1?)(new cfg.TestMultiRowType1()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int MultiRows2Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.KeyValue_int32_TestMultiRowType2? MultiRows4(int j) { int o = __p.__offset(14); return o != 0 ? (cfg.KeyValue_int32_TestMultiRowType2?)(new cfg.KeyValue_int32_TestMultiRowType2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int MultiRows4Length { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestMultiRowType3? MultiRows5(int j) { int o = __p.__offset(16); return o != 0 ? (cfg.TestMultiRowType3?)(new cfg.TestMultiRowType3()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int MultiRows5Length { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.KeyValue_int32_TestMultiRowType2? MultiRows6(int j) { int o = __p.__offset(18); return o != 0 ? (cfg.KeyValue_int32_TestMultiRowType2?)(new cfg.KeyValue_int32_TestMultiRowType2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int MultiRows6Length { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.KeyValue_int32_int32? MultiRows7(int j) { int o = __p.__offset(20); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int MultiRows7Length { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestMultiRowRecord(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + VectorOffset one_rowsOffset = default(VectorOffset), + VectorOffset multi_rows1Offset = default(VectorOffset), + VectorOffset multi_rows2Offset = default(VectorOffset), + VectorOffset multi_rows4Offset = default(VectorOffset), + VectorOffset multi_rows5Offset = default(VectorOffset), + VectorOffset multi_rows6Offset = default(VectorOffset), + VectorOffset multi_rows7Offset = default(VectorOffset)) { + builder.StartTable(9); + TestMultiRowRecord.AddMultiRows7(builder, multi_rows7Offset); + TestMultiRowRecord.AddMultiRows6(builder, multi_rows6Offset); + TestMultiRowRecord.AddMultiRows5(builder, multi_rows5Offset); + TestMultiRowRecord.AddMultiRows4(builder, multi_rows4Offset); + TestMultiRowRecord.AddMultiRows2(builder, multi_rows2Offset); + TestMultiRowRecord.AddMultiRows1(builder, multi_rows1Offset); + TestMultiRowRecord.AddOneRows(builder, one_rowsOffset); + TestMultiRowRecord.AddName(builder, nameOffset); + TestMultiRowRecord.AddId(builder, id); + return TestMultiRowRecord.EndTestMultiRowRecord(builder); + } + + public static void StartTestMultiRowRecord(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddOneRows(FlatBufferBuilder builder, VectorOffset oneRowsOffset) { builder.AddOffset(2, oneRowsOffset.Value, 0); } + public static VectorOffset CreateOneRowsVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateOneRowsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOneRowsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOneRowsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartOneRowsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMultiRows1(FlatBufferBuilder builder, VectorOffset multiRows1Offset) { builder.AddOffset(3, multiRows1Offset.Value, 0); } + public static VectorOffset CreateMultiRows1Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateMultiRows1VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows1VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMultiRows1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMultiRows2(FlatBufferBuilder builder, VectorOffset multiRows2Offset) { builder.AddOffset(4, multiRows2Offset.Value, 0); } + public static VectorOffset CreateMultiRows2Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateMultiRows2VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows2VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMultiRows2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMultiRows4(FlatBufferBuilder builder, VectorOffset multiRows4Offset) { builder.AddOffset(5, multiRows4Offset.Value, 0); } + public static VectorOffset CreateMultiRows4Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateMultiRows4VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows4VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows4VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMultiRows4Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMultiRows5(FlatBufferBuilder builder, VectorOffset multiRows5Offset) { builder.AddOffset(6, multiRows5Offset.Value, 0); } + public static VectorOffset CreateMultiRows5Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateMultiRows5VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows5VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows5VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMultiRows5Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMultiRows6(FlatBufferBuilder builder, VectorOffset multiRows6Offset) { builder.AddOffset(7, multiRows6Offset.Value, 0); } + public static VectorOffset CreateMultiRows6Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateMultiRows6VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows6VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows6VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMultiRows6Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMultiRows7(FlatBufferBuilder builder, VectorOffset multiRows7Offset) { builder.AddOffset(8, multiRows7Offset.Value, 0); } + public static VectorOffset CreateMultiRows7Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateMultiRows7VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows7VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMultiRows7VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMultiRows7Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestMultiRowRecord(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // one_rows + builder.Required(o, 10); // multi_rows1 + builder.Required(o, 12); // multi_rows2 + builder.Required(o, 14); // multi_rows4 + builder.Required(o, 16); // multi_rows5 + builder.Required(o, 18); // multi_rows6 + builder.Required(o, 20); // multi_rows7 + return new Offset(o); + } +} + + +static public class TestMultiRowRecordVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyVectorOfTables(tablePos, 8 /*OneRows*/, cfg.TestMultiRowType1Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 10 /*MultiRows1*/, cfg.TestMultiRowType1Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 12 /*MultiRows2*/, cfg.TestMultiRowType1Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 14 /*MultiRows4*/, cfg.KeyValue_int32_TestMultiRowType2Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 16 /*MultiRows5*/, cfg.TestMultiRowType3Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 18 /*MultiRows6*/, cfg.KeyValue_int32_TestMultiRowType2Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 20 /*MultiRows7*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowTitle.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowTitle.cs new file mode 100644 index 00000000..2eca0a61 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowTitle.cs @@ -0,0 +1,108 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestMultiRowTitle : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestMultiRowTitle GetRootAsTestMultiRowTitle(ByteBuffer _bb) { return GetRootAsTestMultiRowTitle(_bb, new TestMultiRowTitle()); } + public static TestMultiRowTitle GetRootAsTestMultiRowTitle(ByteBuffer _bb, TestMultiRowTitle obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestMultiRowTitle __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public cfg.TestH1? X1 { get { int o = __p.__offset(8); return o != 0 ? (cfg.TestH1?)(new cfg.TestH1()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestH2? X20 { get { int o = __p.__offset(10); return o != 0 ? (cfg.TestH2?)(new cfg.TestH2()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestH2? X2(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.TestH2?)(new cfg.TestH2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X2Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestH2? X3(int j) { int o = __p.__offset(14); return o != 0 ? (cfg.TestH2?)(new cfg.TestH2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X3Length { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestH2? X4(int j) { int o = __p.__offset(16); return o != 0 ? (cfg.TestH2?)(new cfg.TestH2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X4Length { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestMultiRowTitle(FlatBufferBuilder builder, + int id = 0, + StringOffset nameOffset = default(StringOffset), + Offset x1Offset = default(Offset), + Offset x2_0Offset = default(Offset), + VectorOffset x2Offset = default(VectorOffset), + VectorOffset x3Offset = default(VectorOffset), + VectorOffset x4Offset = default(VectorOffset)) { + builder.StartTable(7); + TestMultiRowTitle.AddX4(builder, x4Offset); + TestMultiRowTitle.AddX3(builder, x3Offset); + TestMultiRowTitle.AddX2(builder, x2Offset); + TestMultiRowTitle.AddX20(builder, x2_0Offset); + TestMultiRowTitle.AddX1(builder, x1Offset); + TestMultiRowTitle.AddName(builder, nameOffset); + TestMultiRowTitle.AddId(builder, id); + return TestMultiRowTitle.EndTestMultiRowTitle(builder); + } + + public static void StartTestMultiRowTitle(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddX1(FlatBufferBuilder builder, Offset x1Offset) { builder.AddOffset(2, x1Offset.Value, 0); } + public static void AddX20(FlatBufferBuilder builder, Offset x20Offset) { builder.AddOffset(3, x20Offset.Value, 0); } + public static void AddX2(FlatBufferBuilder builder, VectorOffset x2Offset) { builder.AddOffset(4, x2Offset.Value, 0); } + public static VectorOffset CreateX2Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX3(FlatBufferBuilder builder, VectorOffset x3Offset) { builder.AddOffset(5, x3Offset.Value, 0); } + public static VectorOffset CreateX3Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX3Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX4(FlatBufferBuilder builder, VectorOffset x4Offset) { builder.AddOffset(6, x4Offset.Value, 0); } + public static VectorOffset CreateX4Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX4Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestMultiRowTitle(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // x1 + builder.Required(o, 12); // x2 + builder.Required(o, 14); // x3 + builder.Required(o, 16); // x4 + return new Offset(o); + } +} + + +static public class TestMultiRowTitleVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyTable(tablePos, 8 /*X1*/, cfg.TestH1Verify.Verify, true) + && verifier.VerifyTable(tablePos, 10 /*X20*/, cfg.TestH2Verify.Verify, false) + && verifier.VerifyVectorOfTables(tablePos, 12 /*X2*/, cfg.TestH2Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 14 /*X3*/, cfg.TestH2Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 16 /*X4*/, cfg.TestH2Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType1.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType1.cs new file mode 100644 index 00000000..6eea07f3 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType1.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestMultiRowType1 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestMultiRowType1 GetRootAsTestMultiRowType1(ByteBuffer _bb) { return GetRootAsTestMultiRowType1(_bb, new TestMultiRowType1()); } + public static TestMultiRowType1 GetRootAsTestMultiRowType1(ByteBuffer _bb, TestMultiRowType1 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestMultiRowType1 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestMultiRowType1(FlatBufferBuilder builder, + int id = 0, + int x = 0) { + builder.StartTable(2); + TestMultiRowType1.AddX(builder, x); + TestMultiRowType1.AddId(builder, id); + return TestMultiRowType1.EndTestMultiRowType1(builder); + } + + public static void StartTestMultiRowType1(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(1, x, 0); } + public static Offset EndTestMultiRowType1(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestMultiRowType1Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType2.cs new file mode 100644 index 00000000..c2dc7b8e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType2.cs @@ -0,0 +1,60 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestMultiRowType2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestMultiRowType2 GetRootAsTestMultiRowType2(ByteBuffer _bb) { return GetRootAsTestMultiRowType2(_bb, new TestMultiRowType2()); } + public static TestMultiRowType2 GetRootAsTestMultiRowType2(ByteBuffer _bb, TestMultiRowType2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestMultiRowType2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float Y { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateTestMultiRowType2(FlatBufferBuilder builder, + int id = 0, + int x = 0, + float y = 0.0f) { + builder.StartTable(3); + TestMultiRowType2.AddY(builder, y); + TestMultiRowType2.AddX(builder, x); + TestMultiRowType2.AddId(builder, id); + return TestMultiRowType2.EndTestMultiRowType2(builder); + } + + public static void StartTestMultiRowType2(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(1, x, 0); } + public static void AddY(FlatBufferBuilder builder, float y) { builder.AddFloat(2, y, 0.0f); } + public static Offset EndTestMultiRowType2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestMultiRowType2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Y*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType3.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType3.cs new file mode 100644 index 00000000..3b09ac5a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiRowType3.cs @@ -0,0 +1,62 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestMultiRowType3 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestMultiRowType3 GetRootAsTestMultiRowType3(ByteBuffer _bb) { return GetRootAsTestMultiRowType3(_bb, new TestMultiRowType3()); } + public static TestMultiRowType3 GetRootAsTestMultiRowType3(ByteBuffer _bb, TestMultiRowType3 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestMultiRowType3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestMultiRowType1? Items(int j) { int o = __p.__offset(6); return o != 0 ? (cfg.TestMultiRowType1?)(new cfg.TestMultiRowType1()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int ItemsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestMultiRowType3(FlatBufferBuilder builder, + int id = 0, + VectorOffset itemsOffset = default(VectorOffset)) { + builder.StartTable(2); + TestMultiRowType3.AddItems(builder, itemsOffset); + TestMultiRowType3.AddId(builder, id); + return TestMultiRowType3.EndTestMultiRowType3(builder); + } + + public static void StartTestMultiRowType3(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddItems(FlatBufferBuilder builder, VectorOffset itemsOffset) { builder.AddOffset(1, itemsOffset.Value, 0); } + public static VectorOffset CreateItemsVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateItemsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateItemsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateItemsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartItemsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestMultiRowType3(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // items + return new Offset(o); + } +} + + +static public class TestMultiRowType3Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfTables(tablePos, 6 /*Items*/, cfg.TestMultiRowType1Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiUnionIndexList.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiUnionIndexList.cs new file mode 100644 index 00000000..5270a826 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestMultiUnionIndexList.cs @@ -0,0 +1,82 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestMultiUnionIndexList : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestMultiUnionIndexList GetRootAsTestMultiUnionIndexList(ByteBuffer _bb) { return GetRootAsTestMultiUnionIndexList(_bb, new TestMultiUnionIndexList()); } + public static TestMultiUnionIndexList GetRootAsTestMultiUnionIndexList(ByteBuffer _bb, TestMultiUnionIndexList obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestMultiUnionIndexList __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long Id2 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Id3 { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetId3Bytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetId3Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetId3Array() { return __p.__vector_as_array(8); } + public int Num { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Desc { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(12); } + + public static Offset CreateTestMultiUnionIndexList(FlatBufferBuilder builder, + int id1 = 0, + long id2 = 0, + StringOffset id3Offset = default(StringOffset), + int num = 0, + StringOffset descOffset = default(StringOffset)) { + builder.StartTable(5); + TestMultiUnionIndexList.AddId2(builder, id2); + TestMultiUnionIndexList.AddDesc(builder, descOffset); + TestMultiUnionIndexList.AddNum(builder, num); + TestMultiUnionIndexList.AddId3(builder, id3Offset); + TestMultiUnionIndexList.AddId1(builder, id1); + return TestMultiUnionIndexList.EndTestMultiUnionIndexList(builder); + } + + public static void StartTestMultiUnionIndexList(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId1(FlatBufferBuilder builder, int id1) { builder.AddInt(0, id1, 0); } + public static void AddId2(FlatBufferBuilder builder, long id2) { builder.AddLong(1, id2, 0); } + public static void AddId3(FlatBufferBuilder builder, StringOffset id3Offset) { builder.AddOffset(2, id3Offset.Value, 0); } + public static void AddNum(FlatBufferBuilder builder, int num) { builder.AddInt(3, num, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(4, descOffset.Value, 0); } + public static Offset EndTestMultiUnionIndexList(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestMultiUnionIndexListVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Id2*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*Id3*/, false) + && verifier.VerifyField(tablePos, 10 /*Num*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*Desc*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestNotIndexList.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestNotIndexList.cs new file mode 100644 index 00000000..66da58dd --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestNotIndexList.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestNotIndexList : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestNotIndexList GetRootAsTestNotIndexList(ByteBuffer _bb) { return GetRootAsTestNotIndexList(_bb, new TestNotIndexList()); } + public static TestNotIndexList GetRootAsTestNotIndexList(ByteBuffer _bb, TestNotIndexList obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestNotIndexList __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestNotIndexList(FlatBufferBuilder builder, + int x = 0, + int y = 0) { + builder.StartTable(2); + TestNotIndexList.AddY(builder, y); + TestNotIndexList.AddX(builder, x); + return TestNotIndexList.EndTestNotIndexList(builder); + } + + public static void StartTestNotIndexList(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(0, x, 0); } + public static void AddY(FlatBufferBuilder builder, int y) { builder.AddInt(1, y, 0); } + public static Offset EndTestNotIndexList(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestNotIndexListVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestRefBean.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestRefBean.cs new file mode 100644 index 00000000..284873cc --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestRefBean.cs @@ -0,0 +1,68 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestRefBean : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestRefBean GetRootAsTestRefBean(ByteBuffer _bb) { return GetRootAsTestRefBean(_bb, new TestRefBean()); } + public static TestRefBean GetRootAsTestRefBean(ByteBuffer _bb, TestRefBean obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestRefBean __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Arr(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ArrLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetArrBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetArrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public int[] GetArrArray() { return __p.__vector_as_array(6); } + + public static Offset CreateTestRefBean(FlatBufferBuilder builder, + int x = 0, + VectorOffset arrOffset = default(VectorOffset)) { + builder.StartTable(2); + TestRefBean.AddArr(builder, arrOffset); + TestRefBean.AddX(builder, x); + return TestRefBean.EndTestRefBean(builder); + } + + public static void StartTestRefBean(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(0, x, 0); } + public static void AddArr(FlatBufferBuilder builder, VectorOffset arrOffset) { builder.AddOffset(1, arrOffset.Value, 0); } + public static VectorOffset CreateArrVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateArrVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateArrVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateArrVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartArrVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestRefBean(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // arr + return new Offset(o); + } +} + + +static public class TestRefBeanVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*Arr*/, 4 /*int*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestRefDynamicBase.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestRefDynamicBase.cs new file mode 100644 index 00000000..5aa7f5bc --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestRefDynamicBase.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestRefDynamicBase : byte +{ + NONE = 0, + TestRefBean = 1, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestShape.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestShape.cs new file mode 100644 index 00000000..8a437881 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestShape.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +public enum TestShape : byte +{ + NONE = 0, + TestCircle = 1, + Test2Rectangle = 2, +}; + + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable1.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable1.cs new file mode 100644 index 00000000..15b89246 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable1.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbCompositeJsonTable1 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbCompositeJsonTable1 GetRootAsTestTbCompositeJsonTable1(ByteBuffer _bb) { return GetRootAsTestTbCompositeJsonTable1(_bb, new TestTbCompositeJsonTable1()); } + public static TestTbCompositeJsonTable1 GetRootAsTestTbCompositeJsonTable1(ByteBuffer _bb, TestTbCompositeJsonTable1 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbCompositeJsonTable1 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestCompositeJsonTable1? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestCompositeJsonTable1?)(new cfg.TestCompositeJsonTable1()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbCompositeJsonTable1(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbCompositeJsonTable1.AddDataList(builder, data_listOffset); + return TestTbCompositeJsonTable1.EndTestTbCompositeJsonTable1(builder); + } + + public static void StartTestTbCompositeJsonTable1(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbCompositeJsonTable1(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbCompositeJsonTable1Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestCompositeJsonTable1Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable2.cs new file mode 100644 index 00000000..a0561fb5 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable2.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbCompositeJsonTable2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbCompositeJsonTable2 GetRootAsTestTbCompositeJsonTable2(ByteBuffer _bb) { return GetRootAsTestTbCompositeJsonTable2(_bb, new TestTbCompositeJsonTable2()); } + public static TestTbCompositeJsonTable2 GetRootAsTestTbCompositeJsonTable2(ByteBuffer _bb, TestTbCompositeJsonTable2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbCompositeJsonTable2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestCompositeJsonTable2? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestCompositeJsonTable2?)(new cfg.TestCompositeJsonTable2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbCompositeJsonTable2(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbCompositeJsonTable2.AddDataList(builder, data_listOffset); + return TestTbCompositeJsonTable2.EndTestTbCompositeJsonTable2(builder); + } + + public static void StartTestTbCompositeJsonTable2(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbCompositeJsonTable2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbCompositeJsonTable2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestCompositeJsonTable2Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable3.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable3.cs new file mode 100644 index 00000000..23b8050d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbCompositeJsonTable3.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbCompositeJsonTable3 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbCompositeJsonTable3 GetRootAsTestTbCompositeJsonTable3(ByteBuffer _bb) { return GetRootAsTestTbCompositeJsonTable3(_bb, new TestTbCompositeJsonTable3()); } + public static TestTbCompositeJsonTable3 GetRootAsTestTbCompositeJsonTable3(ByteBuffer _bb, TestTbCompositeJsonTable3 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbCompositeJsonTable3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestCompositeJsonTable3? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestCompositeJsonTable3?)(new cfg.TestCompositeJsonTable3()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbCompositeJsonTable3(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbCompositeJsonTable3.AddDataList(builder, data_listOffset); + return TestTbCompositeJsonTable3.EndTestTbCompositeJsonTable3(builder); + } + + public static void StartTestTbCompositeJsonTable3(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbCompositeJsonTable3(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbCompositeJsonTable3Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestCompositeJsonTable3Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDataFromMisc.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDataFromMisc.cs new file mode 100644 index 00000000..b2f866c6 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDataFromMisc.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDataFromMisc : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDataFromMisc GetRootAsTestTbDataFromMisc(ByteBuffer _bb) { return GetRootAsTestTbDataFromMisc(_bb, new TestTbDataFromMisc()); } + public static TestTbDataFromMisc GetRootAsTestTbDataFromMisc(ByteBuffer _bb, TestTbDataFromMisc obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDataFromMisc __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoType2? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoType2?)(new cfg.TestDemoType2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDataFromMisc(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDataFromMisc.AddDataList(builder, data_listOffset); + return TestTbDataFromMisc.EndTestTbDataFromMisc(builder); + } + + public static void StartTestTbDataFromMisc(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDataFromMisc(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbDataFromMiscVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoType2Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDefineFromExcel2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDefineFromExcel2.cs new file mode 100644 index 00000000..239b4fe0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDefineFromExcel2.cs @@ -0,0 +1,60 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDefineFromExcel2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDefineFromExcel2 GetRootAsTestTbDefineFromExcel2(ByteBuffer _bb) { return GetRootAsTestTbDefineFromExcel2(_bb, new TestTbDefineFromExcel2()); } + public static TestTbDefineFromExcel2 GetRootAsTestTbDefineFromExcel2(ByteBuffer _bb, TestTbDefineFromExcel2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public static bool VerifyTestTbDefineFromExcel2(ByteBuffer _bb) {Google.FlatBuffers.Verifier verifier = new Google.FlatBuffers.Verifier(_bb); return verifier.VerifyBuffer("", false, TestTbDefineFromExcel2Verify.Verify); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDefineFromExcel2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.DefineFromExcel2? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.DefineFromExcel2?)(new cfg.DefineFromExcel2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDefineFromExcel2(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDefineFromExcel2.AddDataList(builder, data_listOffset); + return TestTbDefineFromExcel2.EndTestTbDefineFromExcel2(builder); + } + + public static void StartTestTbDefineFromExcel2(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDefineFromExcel2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } + public static void FinishTestTbDefineFromExcel2Buffer(FlatBufferBuilder builder, Offset offset) { builder.Finish(offset.Value); } + public static void FinishSizePrefixedTestTbDefineFromExcel2Buffer(FlatBufferBuilder builder, Offset offset) { builder.FinishSizePrefixed(offset.Value); } +} + + +static public class TestTbDefineFromExcel2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.DefineFromExcel2Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup.cs new file mode 100644 index 00000000..309b3fd9 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDemoGroup : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDemoGroup GetRootAsTestTbDemoGroup(ByteBuffer _bb) { return GetRootAsTestTbDemoGroup(_bb, new TestTbDemoGroup()); } + public static TestTbDemoGroup GetRootAsTestTbDemoGroup(ByteBuffer _bb, TestTbDemoGroup obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDemoGroup __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoGroup? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoGroup?)(new cfg.TestDemoGroup()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDemoGroup(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDemoGroup.AddDataList(builder, data_listOffset); + return TestTbDemoGroup.EndTestTbDemoGroup(builder); + } + + public static void StartTestTbDemoGroup(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDemoGroup(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbDemoGroupVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoGroupVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_C.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_C.cs new file mode 100644 index 00000000..8b5d4d1c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_C.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDemoGroup_C : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDemoGroup_C GetRootAsTestTbDemoGroup_C(ByteBuffer _bb) { return GetRootAsTestTbDemoGroup_C(_bb, new TestTbDemoGroup_C()); } + public static TestTbDemoGroup_C GetRootAsTestTbDemoGroup_C(ByteBuffer _bb, TestTbDemoGroup_C obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDemoGroup_C __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoGroup? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoGroup?)(new cfg.TestDemoGroup()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDemoGroup_C(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDemoGroup_C.AddDataList(builder, data_listOffset); + return TestTbDemoGroup_C.EndTestTbDemoGroup_C(builder); + } + + public static void StartTestTbDemoGroup_C(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDemoGroup_C(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbDemoGroup_CVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoGroupVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_E.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_E.cs new file mode 100644 index 00000000..1f08785e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_E.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDemoGroup_E : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDemoGroup_E GetRootAsTestTbDemoGroup_E(ByteBuffer _bb) { return GetRootAsTestTbDemoGroup_E(_bb, new TestTbDemoGroup_E()); } + public static TestTbDemoGroup_E GetRootAsTestTbDemoGroup_E(ByteBuffer _bb, TestTbDemoGroup_E obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDemoGroup_E __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoGroup? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoGroup?)(new cfg.TestDemoGroup()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDemoGroup_E(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDemoGroup_E.AddDataList(builder, data_listOffset); + return TestTbDemoGroup_E.EndTestTbDemoGroup_E(builder); + } + + public static void StartTestTbDemoGroup_E(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDemoGroup_E(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbDemoGroup_EVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoGroupVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_S.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_S.cs new file mode 100644 index 00000000..e5aa4142 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoGroup_S.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDemoGroup_S : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDemoGroup_S GetRootAsTestTbDemoGroup_S(ByteBuffer _bb) { return GetRootAsTestTbDemoGroup_S(_bb, new TestTbDemoGroup_S()); } + public static TestTbDemoGroup_S GetRootAsTestTbDemoGroup_S(ByteBuffer _bb, TestTbDemoGroup_S obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDemoGroup_S __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoGroup? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoGroup?)(new cfg.TestDemoGroup()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDemoGroup_S(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDemoGroup_S.AddDataList(builder, data_listOffset); + return TestTbDemoGroup_S.EndTestTbDemoGroup_S(builder); + } + + public static void StartTestTbDemoGroup_S(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDemoGroup_S(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbDemoGroup_SVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoGroupVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoPrimitive.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoPrimitive.cs new file mode 100644 index 00000000..854427cf --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDemoPrimitive.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDemoPrimitive : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDemoPrimitive GetRootAsTestTbDemoPrimitive(ByteBuffer _bb) { return GetRootAsTestTbDemoPrimitive(_bb, new TestTbDemoPrimitive()); } + public static TestTbDemoPrimitive GetRootAsTestTbDemoPrimitive(ByteBuffer _bb, TestTbDemoPrimitive obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDemoPrimitive __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoPrimitiveTypesTable? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoPrimitiveTypesTable?)(new cfg.TestDemoPrimitiveTypesTable()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDemoPrimitive(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDemoPrimitive.AddDataList(builder, data_listOffset); + return TestTbDemoPrimitive.EndTestTbDemoPrimitive(builder); + } + + public static void StartTestTbDemoPrimitive(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDemoPrimitive(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbDemoPrimitiveVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoPrimitiveTypesTableVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDetectCsvEncoding.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDetectCsvEncoding.cs new file mode 100644 index 00000000..6f610b23 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbDetectCsvEncoding.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbDetectCsvEncoding : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbDetectCsvEncoding GetRootAsTestTbDetectCsvEncoding(ByteBuffer _bb) { return GetRootAsTestTbDetectCsvEncoding(_bb, new TestTbDetectCsvEncoding()); } + public static TestTbDetectCsvEncoding GetRootAsTestTbDetectCsvEncoding(ByteBuffer _bb, TestTbDetectCsvEncoding obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbDetectCsvEncoding __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDetectEncoding? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDetectEncoding?)(new cfg.TestDetectEncoding()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbDetectCsvEncoding(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbDetectCsvEncoding.AddDataList(builder, data_listOffset); + return TestTbDetectCsvEncoding.EndTestTbDetectCsvEncoding(builder); + } + + public static void StartTestTbDetectCsvEncoding(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbDetectCsvEncoding(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbDetectCsvEncodingVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDetectEncodingVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbExcelFromJson.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbExcelFromJson.cs new file mode 100644 index 00000000..596fe7e2 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbExcelFromJson.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbExcelFromJson : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbExcelFromJson GetRootAsTestTbExcelFromJson(ByteBuffer _bb) { return GetRootAsTestTbExcelFromJson(_bb, new TestTbExcelFromJson()); } + public static TestTbExcelFromJson GetRootAsTestTbExcelFromJson(ByteBuffer _bb, TestTbExcelFromJson obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbExcelFromJson __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestExcelFromJson? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestExcelFromJson?)(new cfg.TestExcelFromJson()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbExcelFromJson(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbExcelFromJson.AddDataList(builder, data_listOffset); + return TestTbExcelFromJson.EndTestTbExcelFromJson(builder); + } + + public static void StartTestTbExcelFromJson(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbExcelFromJson(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbExcelFromJsonVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestExcelFromJsonVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbExcelFromJsonMultiRow.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbExcelFromJsonMultiRow.cs new file mode 100644 index 00000000..63e3013f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbExcelFromJsonMultiRow.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbExcelFromJsonMultiRow : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbExcelFromJsonMultiRow GetRootAsTestTbExcelFromJsonMultiRow(ByteBuffer _bb) { return GetRootAsTestTbExcelFromJsonMultiRow(_bb, new TestTbExcelFromJsonMultiRow()); } + public static TestTbExcelFromJsonMultiRow GetRootAsTestTbExcelFromJsonMultiRow(ByteBuffer _bb, TestTbExcelFromJsonMultiRow obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbExcelFromJsonMultiRow __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestExcelFromJsonMultiRow? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestExcelFromJsonMultiRow?)(new cfg.TestExcelFromJsonMultiRow()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbExcelFromJsonMultiRow(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbExcelFromJsonMultiRow.AddDataList(builder, data_listOffset); + return TestTbExcelFromJsonMultiRow.EndTestTbExcelFromJsonMultiRow(builder); + } + + public static void StartTestTbExcelFromJsonMultiRow(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbExcelFromJsonMultiRow(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbExcelFromJsonMultiRowVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestExcelFromJsonMultiRowVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbFullTypes.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbFullTypes.cs new file mode 100644 index 00000000..be6e0cf7 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbFullTypes.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbFullTypes : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbFullTypes GetRootAsTestTbFullTypes(ByteBuffer _bb) { return GetRootAsTestTbFullTypes(_bb, new TestTbFullTypes()); } + public static TestTbFullTypes GetRootAsTestTbFullTypes(ByteBuffer _bb, TestTbFullTypes obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbFullTypes __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoType2? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoType2?)(new cfg.TestDemoType2()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbFullTypes(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbFullTypes.AddDataList(builder, data_listOffset); + return TestTbFullTypes.EndTestTbFullTypes(builder); + } + + public static void StartTestTbFullTypes(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbFullTypes(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbFullTypesVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoType2Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbItem2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbItem2.cs new file mode 100644 index 00000000..9c80c331 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbItem2.cs @@ -0,0 +1,74 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbItem2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbItem2 GetRootAsTestTbItem2(ByteBuffer _bb) { return GetRootAsTestTbItem2(_bb, new TestTbItem2()); } + public static TestTbItem2 GetRootAsTestTbItem2(ByteBuffer _bb, TestTbItem2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbItem2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestItemBase DataListType(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestItemBase)__p.bb.Get(__p.__vector(o) + j * 1) : (cfg.TestItemBase)0; } + public int DataListTypeLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDataListTypeBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetDataListTypeBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public cfg.TestItemBase[] GetDataListTypeArray() { int o = __p.__offset(4); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.TestItemBase[] a = new cfg.TestItemBase[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.TestItemBase)__p.bb.Get(p + i * 1); } return a; } + public TTable? DataList(int j) where TTable : struct, IFlatbufferObject { int o = __p.__offset(6); return o != 0 ? (TTable?)__p.__union(__p.__vector(o) + j * 4) : null; } + public int DataListLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbItem2(FlatBufferBuilder builder, + VectorOffset data_list_typeOffset = default(VectorOffset), + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(2); + TestTbItem2.AddDataList(builder, data_listOffset); + TestTbItem2.AddDataListType(builder, data_list_typeOffset); + return TestTbItem2.EndTestTbItem2(builder); + } + + public static void StartTestTbItem2(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddDataListType(FlatBufferBuilder builder, VectorOffset dataListTypeOffset) { builder.AddOffset(0, dataListTypeOffset.Value, 0); } + public static VectorOffset CreateDataListTypeVector(FlatBufferBuilder builder, cfg.TestItemBase[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddByte((byte)data[i]); return builder.EndVector(); } + public static VectorOffset CreateDataListTypeVectorBlock(FlatBufferBuilder builder, cfg.TestItemBase[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(1, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbItem2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list_type + builder.Required(o, 6); // data_list + return new Offset(o); + } +} + + +static public class TestTbItem2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfData(tablePos, 4 /*DataListType*/, 1 /*cfg.TestItemBase*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiIndexList.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiIndexList.cs new file mode 100644 index 00000000..c4ff5389 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiIndexList.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbMultiIndexList : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbMultiIndexList GetRootAsTestTbMultiIndexList(ByteBuffer _bb) { return GetRootAsTestTbMultiIndexList(_bb, new TestTbMultiIndexList()); } + public static TestTbMultiIndexList GetRootAsTestTbMultiIndexList(ByteBuffer _bb, TestTbMultiIndexList obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbMultiIndexList __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestMultiIndexList? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestMultiIndexList?)(new cfg.TestMultiIndexList()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbMultiIndexList(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbMultiIndexList.AddDataList(builder, data_listOffset); + return TestTbMultiIndexList.EndTestTbMultiIndexList(builder); + } + + public static void StartTestTbMultiIndexList(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbMultiIndexList(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbMultiIndexListVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestMultiIndexListVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiRowRecord.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiRowRecord.cs new file mode 100644 index 00000000..3a5153fb --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiRowRecord.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbMultiRowRecord : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbMultiRowRecord GetRootAsTestTbMultiRowRecord(ByteBuffer _bb) { return GetRootAsTestTbMultiRowRecord(_bb, new TestTbMultiRowRecord()); } + public static TestTbMultiRowRecord GetRootAsTestTbMultiRowRecord(ByteBuffer _bb, TestTbMultiRowRecord obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbMultiRowRecord __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestMultiRowRecord? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestMultiRowRecord?)(new cfg.TestMultiRowRecord()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbMultiRowRecord(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbMultiRowRecord.AddDataList(builder, data_listOffset); + return TestTbMultiRowRecord.EndTestTbMultiRowRecord(builder); + } + + public static void StartTestTbMultiRowRecord(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbMultiRowRecord(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbMultiRowRecordVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestMultiRowRecordVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiRowTitle.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiRowTitle.cs new file mode 100644 index 00000000..5efb19f1 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiRowTitle.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbMultiRowTitle : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbMultiRowTitle GetRootAsTestTbMultiRowTitle(ByteBuffer _bb) { return GetRootAsTestTbMultiRowTitle(_bb, new TestTbMultiRowTitle()); } + public static TestTbMultiRowTitle GetRootAsTestTbMultiRowTitle(ByteBuffer _bb, TestTbMultiRowTitle obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbMultiRowTitle __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestMultiRowTitle? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestMultiRowTitle?)(new cfg.TestMultiRowTitle()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbMultiRowTitle(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbMultiRowTitle.AddDataList(builder, data_listOffset); + return TestTbMultiRowTitle.EndTestTbMultiRowTitle(builder); + } + + public static void StartTestTbMultiRowTitle(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbMultiRowTitle(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbMultiRowTitleVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestMultiRowTitleVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiUnionIndexList.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiUnionIndexList.cs new file mode 100644 index 00000000..748261b6 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbMultiUnionIndexList.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbMultiUnionIndexList : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbMultiUnionIndexList GetRootAsTestTbMultiUnionIndexList(ByteBuffer _bb) { return GetRootAsTestTbMultiUnionIndexList(_bb, new TestTbMultiUnionIndexList()); } + public static TestTbMultiUnionIndexList GetRootAsTestTbMultiUnionIndexList(ByteBuffer _bb, TestTbMultiUnionIndexList obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbMultiUnionIndexList __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestMultiUnionIndexList? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestMultiUnionIndexList?)(new cfg.TestMultiUnionIndexList()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbMultiUnionIndexList(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbMultiUnionIndexList.AddDataList(builder, data_listOffset); + return TestTbMultiUnionIndexList.EndTestTbMultiUnionIndexList(builder); + } + + public static void StartTestTbMultiUnionIndexList(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbMultiUnionIndexList(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbMultiUnionIndexListVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestMultiUnionIndexListVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbNotIndexList.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbNotIndexList.cs new file mode 100644 index 00000000..9c5f61d0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbNotIndexList.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbNotIndexList : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbNotIndexList GetRootAsTestTbNotIndexList(ByteBuffer _bb) { return GetRootAsTestTbNotIndexList(_bb, new TestTbNotIndexList()); } + public static TestTbNotIndexList GetRootAsTestTbNotIndexList(ByteBuffer _bb, TestTbNotIndexList obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbNotIndexList __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestNotIndexList? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestNotIndexList?)(new cfg.TestNotIndexList()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbNotIndexList(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbNotIndexList.AddDataList(builder, data_listOffset); + return TestTbNotIndexList.EndTestTbNotIndexList(builder); + } + + public static void StartTestTbNotIndexList(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbNotIndexList(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbNotIndexListVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestNotIndexListVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbSingleton.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbSingleton.cs new file mode 100644 index 00000000..a0bcbfba --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbSingleton.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbSingleton : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbSingleton GetRootAsTestTbSingleton(ByteBuffer _bb) { return GetRootAsTestTbSingleton(_bb, new TestTbSingleton()); } + public static TestTbSingleton GetRootAsTestTbSingleton(ByteBuffer _bb, TestTbSingleton obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbSingleton __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestDemoSingletonType? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestDemoSingletonType?)(new cfg.TestDemoSingletonType()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbSingleton(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbSingleton.AddDataList(builder, data_listOffset); + return TestTbSingleton.EndTestTbSingleton(builder); + } + + public static void StartTestTbSingleton(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbSingleton(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbSingletonVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestDemoSingletonTypeVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestBeRef.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestBeRef.cs new file mode 100644 index 00000000..af78758b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestBeRef.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestBeRef : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestBeRef GetRootAsTestTbTestBeRef(ByteBuffer _bb) { return GetRootAsTestTbTestBeRef(_bb, new TestTbTestBeRef()); } + public static TestTbTestBeRef GetRootAsTestTbTestBeRef(ByteBuffer _bb, TestTbTestBeRef obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestBeRef __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestBeRef? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestBeRef?)(new cfg.TestTestBeRef()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestBeRef(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestBeRef.AddDataList(builder, data_listOffset); + return TestTbTestBeRef.EndTestTbTestBeRef(builder); + } + + public static void StartTestTbTestBeRef(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestBeRef(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestBeRefVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestBeRefVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestBeRef2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestBeRef2.cs new file mode 100644 index 00000000..00c4cdb2 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestBeRef2.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestBeRef2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestBeRef2 GetRootAsTestTbTestBeRef2(ByteBuffer _bb) { return GetRootAsTestTbTestBeRef2(_bb, new TestTbTestBeRef2()); } + public static TestTbTestBeRef2 GetRootAsTestTbTestBeRef2(ByteBuffer _bb, TestTbTestBeRef2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestBeRef2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestBeRef? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestBeRef?)(new cfg.TestTestBeRef()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestBeRef2(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestBeRef2.AddDataList(builder, data_listOffset); + return TestTbTestBeRef2.EndTestTbTestBeRef2(builder); + } + + public static void StartTestTbTestBeRef2(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestBeRef2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestBeRef2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestBeRefVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestGlobal.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestGlobal.cs new file mode 100644 index 00000000..5276143d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestGlobal.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestGlobal : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestGlobal GetRootAsTestTbTestGlobal(ByteBuffer _bb) { return GetRootAsTestTbTestGlobal(_bb, new TestTbTestGlobal()); } + public static TestTbTestGlobal GetRootAsTestTbTestGlobal(ByteBuffer _bb, TestTbTestGlobal obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestGlobal __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestGlobal? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestGlobal?)(new cfg.TestTestGlobal()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestGlobal(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestGlobal.AddDataList(builder, data_listOffset); + return TestTbTestGlobal.EndTestTbTestGlobal(builder); + } + + public static void StartTestTbTestGlobal(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestGlobal(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestGlobalVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestGlobalVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestIndex.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestIndex.cs new file mode 100644 index 00000000..5b7fc195 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestIndex.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestIndex : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestIndex GetRootAsTestTbTestIndex(ByteBuffer _bb) { return GetRootAsTestTbTestIndex(_bb, new TestTbTestIndex()); } + public static TestTbTestIndex GetRootAsTestTbTestIndex(ByteBuffer _bb, TestTbTestIndex obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestIndex __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestIndex? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestIndex?)(new cfg.TestTestIndex()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestIndex(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestIndex.AddDataList(builder, data_listOffset); + return TestTbTestIndex.EndTestTbTestIndex(builder); + } + + public static void StartTestTbTestIndex(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestIndex(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestIndexVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestIndexVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMap.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMap.cs new file mode 100644 index 00000000..979d8f41 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMap.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestMap : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestMap GetRootAsTestTbTestMap(ByteBuffer _bb) { return GetRootAsTestTbTestMap(_bb, new TestTbTestMap()); } + public static TestTbTestMap GetRootAsTestTbTestMap(ByteBuffer _bb, TestTbTestMap obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestMap __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestMap? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestMap?)(new cfg.TestTestMap()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestMap(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestMap.AddDataList(builder, data_listOffset); + return TestTbTestMap.EndTestTbTestMap(builder); + } + + public static void StartTestTbTestMap(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestMap(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestMapVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestMapVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMapper.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMapper.cs new file mode 100644 index 00000000..16e33f88 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMapper.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestMapper : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestMapper GetRootAsTestTbTestMapper(ByteBuffer _bb) { return GetRootAsTestTbTestMapper(_bb, new TestTbTestMapper()); } + public static TestTbTestMapper GetRootAsTestTbTestMapper(ByteBuffer _bb, TestTbTestMapper obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestMapper __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestMapper? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestMapper?)(new cfg.TestTestMapper()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestMapper(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestMapper.AddDataList(builder, data_listOffset); + return TestTbTestMapper.EndTestTbTestMapper(builder); + } + + public static void StartTestTbTestMapper(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestMapper(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestMapperVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestMapperVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMultiColumn.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMultiColumn.cs new file mode 100644 index 00000000..3c215ecf --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestMultiColumn.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestMultiColumn : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestMultiColumn GetRootAsTestTbTestMultiColumn(ByteBuffer _bb) { return GetRootAsTestTbTestMultiColumn(_bb, new TestTbTestMultiColumn()); } + public static TestTbTestMultiColumn GetRootAsTestTbTestMultiColumn(ByteBuffer _bb, TestTbTestMultiColumn obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestMultiColumn __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestMultiColumn? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestMultiColumn?)(new cfg.TestTestMultiColumn()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestMultiColumn(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestMultiColumn.AddDataList(builder, data_listOffset); + return TestTbTestMultiColumn.EndTestTbTestMultiColumn(builder); + } + + public static void StartTestTbTestMultiColumn(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestMultiColumn(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestMultiColumnVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestMultiColumnVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestNull.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestNull.cs new file mode 100644 index 00000000..ab43552d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestNull.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestNull : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestNull GetRootAsTestTbTestNull(ByteBuffer _bb) { return GetRootAsTestTbTestNull(_bb, new TestTbTestNull()); } + public static TestTbTestNull GetRootAsTestTbTestNull(ByteBuffer _bb, TestTbTestNull obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestNull __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestNull? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestNull?)(new cfg.TestTestNull()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestNull(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestNull.AddDataList(builder, data_listOffset); + return TestTbTestNull.EndTestTbTestNull(builder); + } + + public static void StartTestTbTestNull(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestNull(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestNullVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestNullVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestRef.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestRef.cs new file mode 100644 index 00000000..ccb832d8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestRef.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestRef : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestRef GetRootAsTestTbTestRef(ByteBuffer _bb) { return GetRootAsTestTbTestRef(_bb, new TestTbTestRef()); } + public static TestTbTestRef GetRootAsTestTbTestRef(ByteBuffer _bb, TestTbTestRef obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestRef __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestRef? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestRef?)(new cfg.TestTestRef()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestRef(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestRef.AddDataList(builder, data_listOffset); + return TestTbTestRef.EndTestTbTestRef(builder); + } + + public static void StartTestTbTestRef(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestRef(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestRefVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestRefVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestScriptableObject.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestScriptableObject.cs new file mode 100644 index 00000000..5799c47e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestScriptableObject.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestScriptableObject : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestScriptableObject GetRootAsTestTbTestScriptableObject(ByteBuffer _bb) { return GetRootAsTestTbTestScriptableObject(_bb, new TestTbTestScriptableObject()); } + public static TestTbTestScriptableObject GetRootAsTestTbTestScriptableObject(ByteBuffer _bb, TestTbTestScriptableObject obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestScriptableObject __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestScriptableObject? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestScriptableObject?)(new cfg.TestTestScriptableObject()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestScriptableObject(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestScriptableObject.AddDataList(builder, data_listOffset); + return TestTbTestScriptableObject.EndTestTbTestScriptableObject(builder); + } + + public static void StartTestTbTestScriptableObject(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestScriptableObject(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestScriptableObjectVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestScriptableObjectVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestSet.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestSet.cs new file mode 100644 index 00000000..e9880e5e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestSet.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestSet : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestSet GetRootAsTestTbTestSet(ByteBuffer _bb) { return GetRootAsTestTbTestSet(_bb, new TestTbTestSet()); } + public static TestTbTestSet GetRootAsTestTbTestSet(ByteBuffer _bb, TestTbTestSet obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestSet __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestSet? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestSet?)(new cfg.TestTestSet()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestSet(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestSet.AddDataList(builder, data_listOffset); + return TestTbTestSet.EndTestTbTestSet(builder); + } + + public static void StartTestTbTestSet(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestSet(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestSetVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestSetVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestSize.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestSize.cs new file mode 100644 index 00000000..01b06ac3 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestSize.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestSize : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestSize GetRootAsTestTbTestSize(ByteBuffer _bb) { return GetRootAsTestTbTestSize(_bb, new TestTbTestSize()); } + public static TestTbTestSize GetRootAsTestTbTestSize(ByteBuffer _bb, TestTbTestSize obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestSize __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestSize? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestSize?)(new cfg.TestTestSize()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestSize(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestSize.AddDataList(builder, data_listOffset); + return TestTbTestSize.EndTestTbTestSize(builder); + } + + public static void StartTestTbTestSize(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestSize(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestSizeVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestSizeVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestString.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestString.cs new file mode 100644 index 00000000..0836393f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTbTestString.cs @@ -0,0 +1,57 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTbTestString : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTbTestString GetRootAsTestTbTestString(ByteBuffer _bb) { return GetRootAsTestTbTestString(_bb, new TestTbTestString()); } + public static TestTbTestString GetRootAsTestTbTestString(ByteBuffer _bb, TestTbTestString obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTbTestString __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public cfg.TestTestString? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (cfg.TestTestString?)(new cfg.TestTestString()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTbTestString(FlatBufferBuilder builder, + VectorOffset data_listOffset = default(VectorOffset)) { + builder.StartTable(1); + TestTbTestString.AddDataList(builder, data_listOffset); + return TestTbTestString.EndTestTbTestString(builder); + } + + public static void StartTestTbTestString(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } + public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTbTestString(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 4); // data_list + return new Offset(o); + } +} + + +static public class TestTbTestStringVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, cfg.TestTestStringVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTest3.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTest3.cs new file mode 100644 index 00000000..51cb08be --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTest3.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTest3 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTest3 GetRootAsTestTest3(ByteBuffer _bb) { return GetRootAsTestTest3(_bb, new TestTest3()); } + public static TestTest3 GetRootAsTestTest3(ByteBuffer _bb, TestTest3 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTest3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestTest3(FlatBufferBuilder builder, + int x = 0, + int y = 0) { + builder.StartTable(2); + TestTest3.AddY(builder, y); + TestTest3.AddX(builder, x); + return TestTest3.EndTestTest3(builder); + } + + public static void StartTestTest3(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(0, x, 0); } + public static void AddY(FlatBufferBuilder builder, int y) { builder.AddInt(1, y, 0); } + public static Offset EndTestTest3(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestTest3Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestBeRef.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestBeRef.cs new file mode 100644 index 00000000..7323db6c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestBeRef.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestBeRef : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestBeRef GetRootAsTestTestBeRef(ByteBuffer _bb) { return GetRootAsTestTestBeRef(_bb, new TestTestBeRef()); } + public static TestTestBeRef GetRootAsTestTestBeRef(ByteBuffer _bb, TestTestBeRef obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestBeRef __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Count { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestTestBeRef(FlatBufferBuilder builder, + int id = 0, + int count = 0) { + builder.StartTable(2); + TestTestBeRef.AddCount(builder, count); + TestTestBeRef.AddId(builder, id); + return TestTestBeRef.EndTestTestBeRef(builder); + } + + public static void StartTestTestBeRef(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddCount(FlatBufferBuilder builder, int count) { builder.AddInt(1, count, 0); } + public static Offset EndTestTestBeRef(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestTestBeRefVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Count*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestExcelBean1.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestExcelBean1.cs new file mode 100644 index 00000000..44353474 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestExcelBean1.cs @@ -0,0 +1,71 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestExcelBean1 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestExcelBean1 GetRootAsTestTestExcelBean1(ByteBuffer _bb) { return GetRootAsTestTestExcelBean1(_bb, new TestTestExcelBean1()); } + public static TestTestExcelBean1 GetRootAsTestTestExcelBean1(ByteBuffer _bb, TestTestExcelBean1 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestExcelBean1 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X1 { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string X2 { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetX2Bytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetX2Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetX2Array() { return __p.__vector_as_array(6); } + public int X3 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float X4 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateTestTestExcelBean1(FlatBufferBuilder builder, + int x1 = 0, + StringOffset x2Offset = default(StringOffset), + int x3 = 0, + float x4 = 0.0f) { + builder.StartTable(4); + TestTestExcelBean1.AddX4(builder, x4); + TestTestExcelBean1.AddX3(builder, x3); + TestTestExcelBean1.AddX2(builder, x2Offset); + TestTestExcelBean1.AddX1(builder, x1); + return TestTestExcelBean1.EndTestTestExcelBean1(builder); + } + + public static void StartTestTestExcelBean1(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(0, x1, 0); } + public static void AddX2(FlatBufferBuilder builder, StringOffset x2Offset) { builder.AddOffset(1, x2Offset.Value, 0); } + public static void AddX3(FlatBufferBuilder builder, int x3) { builder.AddInt(2, x3, 0); } + public static void AddX4(FlatBufferBuilder builder, float x4) { builder.AddFloat(3, x4, 0.0f); } + public static Offset EndTestTestExcelBean1(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestTestExcelBean1Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*X2*/, false) + && verifier.VerifyField(tablePos, 8 /*X3*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*X4*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestGlobal.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestGlobal.cs new file mode 100644 index 00000000..7996d07b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestGlobal.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestGlobal : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestGlobal GetRootAsTestTestGlobal(ByteBuffer _bb) { return GetRootAsTestTestGlobal(_bb, new TestTestGlobal()); } + public static TestTestGlobal GetRootAsTestTestGlobal(ByteBuffer _bb, TestTestGlobal obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestGlobal __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int UnlockEquip { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int UnlockHero { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTestTestGlobal(FlatBufferBuilder builder, + int unlock_equip = 0, + int unlock_hero = 0) { + builder.StartTable(2); + TestTestGlobal.AddUnlockHero(builder, unlock_hero); + TestTestGlobal.AddUnlockEquip(builder, unlock_equip); + return TestTestGlobal.EndTestTestGlobal(builder); + } + + public static void StartTestTestGlobal(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddUnlockEquip(FlatBufferBuilder builder, int unlockEquip) { builder.AddInt(0, unlockEquip, 0); } + public static void AddUnlockHero(FlatBufferBuilder builder, int unlockHero) { builder.AddInt(1, unlockHero, 0); } + public static Offset EndTestTestGlobal(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestTestGlobalVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UnlockEquip*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*UnlockHero*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestIndex.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestIndex.cs new file mode 100644 index 00000000..fe80d3fb --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestIndex.cs @@ -0,0 +1,62 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestIndex : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestIndex GetRootAsTestTestIndex(ByteBuffer _bb) { return GetRootAsTestTestIndex(_bb, new TestTestIndex()); } + public static TestTestIndex GetRootAsTestTestIndex(ByteBuffer _bb, TestTestIndex obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestIndex __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestDemoType1? Eles(int j) { int o = __p.__offset(6); return o != 0 ? (cfg.TestDemoType1?)(new cfg.TestDemoType1()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int ElesLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTestIndex(FlatBufferBuilder builder, + int id = 0, + VectorOffset elesOffset = default(VectorOffset)) { + builder.StartTable(2); + TestTestIndex.AddEles(builder, elesOffset); + TestTestIndex.AddId(builder, id); + return TestTestIndex.EndTestTestIndex(builder); + } + + public static void StartTestTestIndex(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddEles(FlatBufferBuilder builder, VectorOffset elesOffset) { builder.AddOffset(1, elesOffset.Value, 0); } + public static VectorOffset CreateElesVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateElesVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateElesVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateElesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartElesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTestIndex(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // eles + return new Offset(o); + } +} + + +static public class TestTestIndexVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfTables(tablePos, 6 /*Eles*/, cfg.TestDemoType1Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMap.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMap.cs new file mode 100644 index 00000000..6a6dc139 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMap.cs @@ -0,0 +1,98 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestMap : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestMap GetRootAsTestTestMap(ByteBuffer _bb) { return GetRootAsTestTestMap(_bb, new TestTestMap()); } + public static TestTestMap GetRootAsTestTestMap(ByteBuffer _bb, TestTestMap obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestMap __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.KeyValue_int32_int32? X1(int j) { int o = __p.__offset(6); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X1Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.KeyValue_int64_int32? X2(int j) { int o = __p.__offset(8); return o != 0 ? (cfg.KeyValue_int64_int32?)(new cfg.KeyValue_int64_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X2Length { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.KeyValue_string_int32? X3(int j) { int o = __p.__offset(10); return o != 0 ? (cfg.KeyValue_string_int32?)(new cfg.KeyValue_string_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X3Length { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.KeyValue_TestDemoEnum_int32? X4(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.KeyValue_TestDemoEnum_int32?)(new cfg.KeyValue_TestDemoEnum_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X4Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTestMap(FlatBufferBuilder builder, + int id = 0, + VectorOffset x1Offset = default(VectorOffset), + VectorOffset x2Offset = default(VectorOffset), + VectorOffset x3Offset = default(VectorOffset), + VectorOffset x4Offset = default(VectorOffset)) { + builder.StartTable(5); + TestTestMap.AddX4(builder, x4Offset); + TestTestMap.AddX3(builder, x3Offset); + TestTestMap.AddX2(builder, x2Offset); + TestTestMap.AddX1(builder, x1Offset); + TestTestMap.AddId(builder, id); + return TestTestMap.EndTestTestMap(builder); + } + + public static void StartTestTestMap(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX1(FlatBufferBuilder builder, VectorOffset x1Offset) { builder.AddOffset(1, x1Offset.Value, 0); } + public static VectorOffset CreateX1Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX2(FlatBufferBuilder builder, VectorOffset x2Offset) { builder.AddOffset(2, x2Offset.Value, 0); } + public static VectorOffset CreateX2Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX3(FlatBufferBuilder builder, VectorOffset x3Offset) { builder.AddOffset(3, x3Offset.Value, 0); } + public static VectorOffset CreateX3Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX3Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX4(FlatBufferBuilder builder, VectorOffset x4Offset) { builder.AddOffset(4, x4Offset.Value, 0); } + public static VectorOffset CreateX4Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX4Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTestMap(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // x1 + builder.Required(o, 8); // x2 + builder.Required(o, 10); // x3 + builder.Required(o, 12); // x4 + return new Offset(o); + } +} + + +static public class TestTestMapVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfTables(tablePos, 6 /*X1*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 8 /*X2*/, cfg.KeyValue_int64_int32Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 10 /*X3*/, cfg.KeyValue_string_int32Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 12 /*X4*/, cfg.KeyValue_TestDemoEnum_int32Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMapper.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMapper.cs new file mode 100644 index 00000000..439ce73f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMapper.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestMapper : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestMapper GetRootAsTestTestMapper(ByteBuffer _bb) { return GetRootAsTestTestMapper(_bb, new TestTestMapper()); } + public static TestTestMapper GetRootAsTestTestMapper(ByteBuffer _bb, TestTestMapper obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestMapper __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.AudioType AudioType { get { int o = __p.__offset(6); return o != 0 ? (cfg.AudioType)__p.bb.GetInt(o + __p.bb_pos) : cfg.AudioType.AudioType_UNKNOWN; } } + public cfg.vector2? V2 { get { int o = __p.__offset(8); return o != 0 ? (cfg.vector2?)(new cfg.vector2()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + + public static Offset CreateTestTestMapper(FlatBufferBuilder builder, + int id = 0, + cfg.AudioType audio_type = cfg.AudioType.AudioType_UNKNOWN, + Offset v2Offset = default(Offset)) { + builder.StartTable(3); + TestTestMapper.AddV2(builder, v2Offset); + TestTestMapper.AddAudioType(builder, audio_type); + TestTestMapper.AddId(builder, id); + return TestTestMapper.EndTestTestMapper(builder); + } + + public static void StartTestTestMapper(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddAudioType(FlatBufferBuilder builder, cfg.AudioType audioType) { builder.AddInt(1, (int)audioType, 0); } + public static void AddV2(FlatBufferBuilder builder, Offset v2Offset) { builder.AddOffset(2, v2Offset.Value, 0); } + public static Offset EndTestTestMapper(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // v2 + return new Offset(o); + } +} + + +static public class TestTestMapperVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*AudioType*/, 4 /*cfg.AudioType*/, 4, false) + && verifier.VerifyTable(tablePos, 8 /*V2*/, cfg.vector2Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMultiColumn.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMultiColumn.cs new file mode 100644 index 00000000..42f1611b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestMultiColumn.cs @@ -0,0 +1,68 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestMultiColumn : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestMultiColumn GetRootAsTestTestMultiColumn(ByteBuffer _bb) { return GetRootAsTestTestMultiColumn(_bb, new TestTestMultiColumn()); } + public static TestTestMultiColumn GetRootAsTestTestMultiColumn(ByteBuffer _bb, TestTestMultiColumn obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestMultiColumn __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestFoo? A { get { int o = __p.__offset(6); return o != 0 ? (cfg.TestFoo?)(new cfg.TestFoo()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestFoo? B { get { int o = __p.__offset(8); return o != 0 ? (cfg.TestFoo?)(new cfg.TestFoo()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestFoo? C { get { int o = __p.__offset(10); return o != 0 ? (cfg.TestFoo?)(new cfg.TestFoo()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + + public static Offset CreateTestTestMultiColumn(FlatBufferBuilder builder, + int id = 0, + Offset aOffset = default(Offset), + Offset bOffset = default(Offset), + Offset cOffset = default(Offset)) { + builder.StartTable(4); + TestTestMultiColumn.AddC(builder, cOffset); + TestTestMultiColumn.AddB(builder, bOffset); + TestTestMultiColumn.AddA(builder, aOffset); + TestTestMultiColumn.AddId(builder, id); + return TestTestMultiColumn.EndTestTestMultiColumn(builder); + } + + public static void StartTestTestMultiColumn(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddA(FlatBufferBuilder builder, Offset aOffset) { builder.AddOffset(1, aOffset.Value, 0); } + public static void AddB(FlatBufferBuilder builder, Offset bOffset) { builder.AddOffset(2, bOffset.Value, 0); } + public static void AddC(FlatBufferBuilder builder, Offset cOffset) { builder.AddOffset(3, cOffset.Value, 0); } + public static Offset EndTestTestMultiColumn(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // a + builder.Required(o, 8); // b + builder.Required(o, 10); // c + return new Offset(o); + } +} + + +static public class TestTestMultiColumnVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyTable(tablePos, 6 /*A*/, cfg.TestFooVerify.Verify, true) + && verifier.VerifyTable(tablePos, 8 /*B*/, cfg.TestFooVerify.Verify, true) + && verifier.VerifyTable(tablePos, 10 /*C*/, cfg.TestFooVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestNull.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestNull.cs new file mode 100644 index 00000000..f43c8be0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestNull.cs @@ -0,0 +1,101 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestNull : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestNull GetRootAsTestTestNull(ByteBuffer _bb) { return GetRootAsTestTestNull(_bb, new TestTestNull()); } + public static TestTestNull GetRootAsTestTestNull(ByteBuffer _bb, TestTestNull obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestNull __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X1 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.TestDemoEnum X2 { get { int o = __p.__offset(8); return o != 0 ? (cfg.TestDemoEnum)__p.bb.GetInt(o + __p.bb_pos) : cfg.TestDemoEnum.TestDemoEnum_NONE; } } + public cfg.TestDemoType1? X3 { get { int o = __p.__offset(10); return o != 0 ? (cfg.TestDemoType1?)(new cfg.TestDemoType1()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestDemoDynamic X4Type { get { int o = __p.__offset(12); return o != 0 ? (cfg.TestDemoDynamic)__p.bb.Get(o + __p.bb_pos) : cfg.TestDemoDynamic.NONE; } } + public TTable? X4() where TTable : struct, IFlatbufferObject { int o = __p.__offset(14); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.TestDemoD2 X4AsTestDemoD2() { return X4().Value; } + public cfg.TestDemoE1 X4AsTestDemoE1() { return X4().Value; } + public cfg.TestLoginRoleInfo X4AsTestLoginRoleInfo() { return X4().Value; } + public cfg.TestDemoD5 X4AsTestDemoD5() { return X4().Value; } + public string S1 { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS1Bytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetS1Bytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetS1Array() { return __p.__vector_as_array(16); } + public string S2 { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS2Bytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetS2Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetS2Array() { return __p.__vector_as_array(18); } + + public static Offset CreateTestTestNull(FlatBufferBuilder builder, + int id = 0, + int x1 = 0, + cfg.TestDemoEnum x2 = cfg.TestDemoEnum.TestDemoEnum_NONE, + Offset x3Offset = default(Offset), + cfg.TestDemoDynamic x4_type = cfg.TestDemoDynamic.NONE, + int x4Offset = 0, + StringOffset s1Offset = default(StringOffset), + StringOffset s2Offset = default(StringOffset)) { + builder.StartTable(8); + TestTestNull.AddS2(builder, s2Offset); + TestTestNull.AddS1(builder, s1Offset); + TestTestNull.AddX4(builder, x4Offset); + TestTestNull.AddX3(builder, x3Offset); + TestTestNull.AddX2(builder, x2); + TestTestNull.AddX1(builder, x1); + TestTestNull.AddId(builder, id); + TestTestNull.AddX4Type(builder, x4_type); + return TestTestNull.EndTestTestNull(builder); + } + + public static void StartTestTestNull(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(1, x1, 0); } + public static void AddX2(FlatBufferBuilder builder, cfg.TestDemoEnum x2) { builder.AddInt(2, (int)x2, 0); } + public static void AddX3(FlatBufferBuilder builder, Offset x3Offset) { builder.AddOffset(3, x3Offset.Value, 0); } + public static void AddX4Type(FlatBufferBuilder builder, cfg.TestDemoDynamic x4Type) { builder.AddByte(4, (byte)x4Type, 0); } + public static void AddX4(FlatBufferBuilder builder, int x4Offset) { builder.AddOffset(5, x4Offset, 0); } + public static void AddS1(FlatBufferBuilder builder, StringOffset s1Offset) { builder.AddOffset(6, s1Offset.Value, 0); } + public static void AddS2(FlatBufferBuilder builder, StringOffset s2Offset) { builder.AddOffset(7, s2Offset.Value, 0); } + public static Offset EndTestTestNull(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TestTestNullVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*X2*/, 4 /*cfg.TestDemoEnum*/, 4, false) + && verifier.VerifyTable(tablePos, 10 /*X3*/, cfg.TestDemoType1Verify.Verify, false) + && verifier.VerifyField(tablePos, 12 /*X4Type*/, 1 /*cfg.TestDemoDynamic*/, 1, false) + && verifier.VerifyUnion(tablePos, 12, 14 /*X4*/, cfg.TestDemoDynamicVerify.Verify, false) + && verifier.VerifyString(tablePos, 16 /*S1*/, false) + && verifier.VerifyString(tablePos, 18 /*S2*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestRef.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestRef.cs new file mode 100644 index 00000000..4d277180 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestRef.cs @@ -0,0 +1,261 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestRef : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestRef GetRootAsTestTestRef(ByteBuffer _bb) { return GetRootAsTestTestRef(_bb, new TestTestRef()); } + public static TestTestRef GetRootAsTestTestRef(ByteBuffer _bb, TestTestRef obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestRef __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X1 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X12 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X2 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X3 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X4 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int A1(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int A1Length { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetA1Bytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetA1Bytes() { return __p.__vector_as_arraysegment(16); } +#endif + public int[] GetA1Array() { return __p.__vector_as_array(16); } + public int A2(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int A2Length { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetA2Bytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetA2Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public int[] GetA2Array() { return __p.__vector_as_array(18); } + public int B1(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int B1Length { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetB1Bytes() { return __p.__vector_as_span(20, 4); } +#else + public ArraySegment? GetB1Bytes() { return __p.__vector_as_arraysegment(20); } +#endif + public int[] GetB1Array() { return __p.__vector_as_array(20); } + public int B2(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int B2Length { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetB2Bytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetB2Bytes() { return __p.__vector_as_arraysegment(22); } +#endif + public int[] GetB2Array() { return __p.__vector_as_array(22); } + public int C1(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int C1Length { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetC1Bytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetC1Bytes() { return __p.__vector_as_arraysegment(24); } +#endif + public int[] GetC1Array() { return __p.__vector_as_array(24); } + public int C2(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int C2Length { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetC2Bytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetC2Bytes() { return __p.__vector_as_arraysegment(26); } +#endif + public int[] GetC2Array() { return __p.__vector_as_array(26); } + public cfg.KeyValue_int32_int32? D1(int j) { int o = __p.__offset(28); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int D1Length { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.KeyValue_int32_int32? D2(int j) { int o = __p.__offset(30); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int D2Length { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } + public int E1 { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long E2 { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string E3 { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetE3Bytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetE3Bytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetE3Array() { return __p.__vector_as_array(36); } + public int F1 { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long F2 { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string F3 { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetF3Bytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetF3Bytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetF3Array() { return __p.__vector_as_array(42); } + public cfg.TestRefDynamicBase S1Type { get { int o = __p.__offset(44); return o != 0 ? (cfg.TestRefDynamicBase)__p.bb.Get(o + __p.bb_pos) : cfg.TestRefDynamicBase.NONE; } } + public TTable? S1() where TTable : struct, IFlatbufferObject { int o = __p.__offset(46); return o != 0 ? (TTable?)__p.__union(o + __p.bb_pos) : null; } + public cfg.TestRefBean S1AsTestRefBean() { return S1().Value; } + + public static Offset CreateTestTestRef(FlatBufferBuilder builder, + int id = 0, + int x1 = 0, + int x1_2 = 0, + int x2 = 0, + int x3 = 0, + int x4 = 0, + VectorOffset a1Offset = default(VectorOffset), + VectorOffset a2Offset = default(VectorOffset), + VectorOffset b1Offset = default(VectorOffset), + VectorOffset b2Offset = default(VectorOffset), + VectorOffset c1Offset = default(VectorOffset), + VectorOffset c2Offset = default(VectorOffset), + VectorOffset d1Offset = default(VectorOffset), + VectorOffset d2Offset = default(VectorOffset), + int e1 = 0, + long e2 = 0, + StringOffset e3Offset = default(StringOffset), + int f1 = 0, + long f2 = 0, + StringOffset f3Offset = default(StringOffset), + cfg.TestRefDynamicBase s1_type = cfg.TestRefDynamicBase.NONE, + int s1Offset = 0) { + builder.StartTable(22); + TestTestRef.AddF2(builder, f2); + TestTestRef.AddE2(builder, e2); + TestTestRef.AddS1(builder, s1Offset); + TestTestRef.AddF3(builder, f3Offset); + TestTestRef.AddF1(builder, f1); + TestTestRef.AddE3(builder, e3Offset); + TestTestRef.AddE1(builder, e1); + TestTestRef.AddD2(builder, d2Offset); + TestTestRef.AddD1(builder, d1Offset); + TestTestRef.AddC2(builder, c2Offset); + TestTestRef.AddC1(builder, c1Offset); + TestTestRef.AddB2(builder, b2Offset); + TestTestRef.AddB1(builder, b1Offset); + TestTestRef.AddA2(builder, a2Offset); + TestTestRef.AddA1(builder, a1Offset); + TestTestRef.AddX4(builder, x4); + TestTestRef.AddX3(builder, x3); + TestTestRef.AddX2(builder, x2); + TestTestRef.AddX12(builder, x1_2); + TestTestRef.AddX1(builder, x1); + TestTestRef.AddId(builder, id); + TestTestRef.AddS1Type(builder, s1_type); + return TestTestRef.EndTestTestRef(builder); + } + + public static void StartTestTestRef(FlatBufferBuilder builder) { builder.StartTable(22); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX1(FlatBufferBuilder builder, int x1) { builder.AddInt(1, x1, 0); } + public static void AddX12(FlatBufferBuilder builder, int x12) { builder.AddInt(2, x12, 0); } + public static void AddX2(FlatBufferBuilder builder, int x2) { builder.AddInt(3, x2, 0); } + public static void AddX3(FlatBufferBuilder builder, int x3) { builder.AddInt(4, x3, 0); } + public static void AddX4(FlatBufferBuilder builder, int x4) { builder.AddInt(5, x4, 0); } + public static void AddA1(FlatBufferBuilder builder, VectorOffset a1Offset) { builder.AddOffset(6, a1Offset.Value, 0); } + public static VectorOffset CreateA1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateA1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateA1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateA1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartA1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddA2(FlatBufferBuilder builder, VectorOffset a2Offset) { builder.AddOffset(7, a2Offset.Value, 0); } + public static VectorOffset CreateA2Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateA2VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateA2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateA2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartA2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddB1(FlatBufferBuilder builder, VectorOffset b1Offset) { builder.AddOffset(8, b1Offset.Value, 0); } + public static VectorOffset CreateB1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateB1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateB1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateB1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartB1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddB2(FlatBufferBuilder builder, VectorOffset b2Offset) { builder.AddOffset(9, b2Offset.Value, 0); } + public static VectorOffset CreateB2Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateB2VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateB2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateB2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartB2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddC1(FlatBufferBuilder builder, VectorOffset c1Offset) { builder.AddOffset(10, c1Offset.Value, 0); } + public static VectorOffset CreateC1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateC1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateC1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateC1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartC1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddC2(FlatBufferBuilder builder, VectorOffset c2Offset) { builder.AddOffset(11, c2Offset.Value, 0); } + public static VectorOffset CreateC2Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateC2VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateC2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateC2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartC2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddD1(FlatBufferBuilder builder, VectorOffset d1Offset) { builder.AddOffset(12, d1Offset.Value, 0); } + public static VectorOffset CreateD1Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateD1VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateD1VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateD1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartD1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddD2(FlatBufferBuilder builder, VectorOffset d2Offset) { builder.AddOffset(13, d2Offset.Value, 0); } + public static VectorOffset CreateD2Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateD2VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateD2VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateD2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartD2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddE1(FlatBufferBuilder builder, int e1) { builder.AddInt(14, e1, 0); } + public static void AddE2(FlatBufferBuilder builder, long e2) { builder.AddLong(15, e2, 0); } + public static void AddE3(FlatBufferBuilder builder, StringOffset e3Offset) { builder.AddOffset(16, e3Offset.Value, 0); } + public static void AddF1(FlatBufferBuilder builder, int f1) { builder.AddInt(17, f1, 0); } + public static void AddF2(FlatBufferBuilder builder, long f2) { builder.AddLong(18, f2, 0); } + public static void AddF3(FlatBufferBuilder builder, StringOffset f3Offset) { builder.AddOffset(19, f3Offset.Value, 0); } + public static void AddS1Type(FlatBufferBuilder builder, cfg.TestRefDynamicBase s1Type) { builder.AddByte(20, (byte)s1Type, 0); } + public static void AddS1(FlatBufferBuilder builder, int s1Offset) { builder.AddOffset(21, s1Offset, 0); } + public static Offset EndTestTestRef(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 16); // a1 + builder.Required(o, 18); // a2 + builder.Required(o, 20); // b1 + builder.Required(o, 22); // b2 + builder.Required(o, 24); // c1 + builder.Required(o, 26); // c2 + builder.Required(o, 28); // d1 + builder.Required(o, 30); // d2 + builder.Required(o, 46); // s1 + return new Offset(o); + } +} + + +static public class TestTestRefVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*X1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*X12*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*X2*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*X3*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*X4*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*A1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 18 /*A2*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 20 /*B1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 22 /*B2*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 24 /*C1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 26 /*C2*/, 4 /*int*/, true) + && verifier.VerifyVectorOfTables(tablePos, 28 /*D1*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyVectorOfTables(tablePos, 30 /*D2*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyField(tablePos, 32 /*E1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*E2*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 36 /*E3*/, false) + && verifier.VerifyField(tablePos, 38 /*F1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*F2*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 42 /*F3*/, false) + && verifier.VerifyField(tablePos, 44 /*S1Type*/, 1 /*cfg.TestRefDynamicBase*/, 1, false) + && verifier.VerifyUnion(tablePos, 44, 46 /*S1*/, cfg.TestRefDynamicBaseVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestRow.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestRow.cs new file mode 100644 index 00000000..ef117329 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestRow.cs @@ -0,0 +1,90 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestRow : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestRow GetRootAsTestTestRow(ByteBuffer _bb) { return GetRootAsTestTestRow(_bb, new TestTestRow()); } + public static TestTestRow GetRootAsTestTestRow(ByteBuffer _bb, TestTestRow obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestRow __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool Y { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string Z { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetZBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetZBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetZArray() { return __p.__vector_as_array(8); } + public cfg.TestTest3? A { get { int o = __p.__offset(10); return o != 0 ? (cfg.TestTest3?)(new cfg.TestTest3()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public int B(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetBBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public int[] GetBArray() { return __p.__vector_as_array(12); } + + public static Offset CreateTestTestRow(FlatBufferBuilder builder, + int x = 0, + bool y = false, + StringOffset zOffset = default(StringOffset), + Offset aOffset = default(Offset), + VectorOffset bOffset = default(VectorOffset)) { + builder.StartTable(5); + TestTestRow.AddB(builder, bOffset); + TestTestRow.AddA(builder, aOffset); + TestTestRow.AddZ(builder, zOffset); + TestTestRow.AddX(builder, x); + TestTestRow.AddY(builder, y); + return TestTestRow.EndTestTestRow(builder); + } + + public static void StartTestTestRow(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(0, x, 0); } + public static void AddY(FlatBufferBuilder builder, bool y) { builder.AddBool(1, y, false); } + public static void AddZ(FlatBufferBuilder builder, StringOffset zOffset) { builder.AddOffset(2, zOffset.Value, 0); } + public static void AddA(FlatBufferBuilder builder, Offset aOffset) { builder.AddOffset(3, aOffset.Value, 0); } + public static void AddB(FlatBufferBuilder builder, VectorOffset bOffset) { builder.AddOffset(4, bOffset.Value, 0); } + public static VectorOffset CreateBVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateBVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTestRow(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 10); // a + builder.Required(o, 12); // b + return new Offset(o); + } +} + + +static public class TestTestRowVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 8 /*Z*/, false) + && verifier.VerifyTable(tablePos, 10 /*A*/, cfg.TestTest3Verify.Verify, true) + && verifier.VerifyVectorOfData(tablePos, 12 /*B*/, 4 /*int*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestScriptableObject.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestScriptableObject.cs new file mode 100644 index 00000000..4bea6099 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestScriptableObject.cs @@ -0,0 +1,89 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestScriptableObject : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestScriptableObject GetRootAsTestTestScriptableObject(ByteBuffer _bb) { return GetRootAsTestTestScriptableObject(_bb, new TestTestScriptableObject()); } + public static TestTestScriptableObject GetRootAsTestTestScriptableObject(ByteBuffer _bb, TestTestScriptableObject obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestScriptableObject __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Desc { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDescBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDescArray() { return __p.__vector_as_array(6); } + public float Rate { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int Num { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public cfg.vector2? V2 { get { int o = __p.__offset(12); return o != 0 ? (cfg.vector2?)(new cfg.vector2()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.vector3? V3 { get { int o = __p.__offset(14); return o != 0 ? (cfg.vector3?)(new cfg.vector3()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.vector4? V4 { get { int o = __p.__offset(16); return o != 0 ? (cfg.vector4?)(new cfg.vector4()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + + public static Offset CreateTestTestScriptableObject(FlatBufferBuilder builder, + int id = 0, + StringOffset descOffset = default(StringOffset), + float rate = 0.0f, + int num = 0, + Offset v2Offset = default(Offset), + Offset v3Offset = default(Offset), + Offset v4Offset = default(Offset)) { + builder.StartTable(7); + TestTestScriptableObject.AddV4(builder, v4Offset); + TestTestScriptableObject.AddV3(builder, v3Offset); + TestTestScriptableObject.AddV2(builder, v2Offset); + TestTestScriptableObject.AddNum(builder, num); + TestTestScriptableObject.AddRate(builder, rate); + TestTestScriptableObject.AddDesc(builder, descOffset); + TestTestScriptableObject.AddId(builder, id); + return TestTestScriptableObject.EndTestTestScriptableObject(builder); + } + + public static void StartTestTestScriptableObject(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddDesc(FlatBufferBuilder builder, StringOffset descOffset) { builder.AddOffset(1, descOffset.Value, 0); } + public static void AddRate(FlatBufferBuilder builder, float rate) { builder.AddFloat(2, rate, 0.0f); } + public static void AddNum(FlatBufferBuilder builder, int num) { builder.AddInt(3, num, 0); } + public static void AddV2(FlatBufferBuilder builder, Offset v2Offset) { builder.AddOffset(4, v2Offset.Value, 0); } + public static void AddV3(FlatBufferBuilder builder, Offset v3Offset) { builder.AddOffset(5, v3Offset.Value, 0); } + public static void AddV4(FlatBufferBuilder builder, Offset v4Offset) { builder.AddOffset(6, v4Offset.Value, 0); } + public static Offset EndTestTestScriptableObject(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 12); // v2 + builder.Required(o, 14); // v3 + builder.Required(o, 16); // v4 + return new Offset(o); + } +} + + +static public class TestTestScriptableObjectVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Desc*/, false) + && verifier.VerifyField(tablePos, 8 /*Rate*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Num*/, 4 /*int*/, 4, false) + && verifier.VerifyTable(tablePos, 12 /*V2*/, cfg.vector2Verify.Verify, true) + && verifier.VerifyTable(tablePos, 14 /*V3*/, cfg.vector3Verify.Verify, true) + && verifier.VerifyTable(tablePos, 16 /*V4*/, cfg.vector4Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestSet.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestSet.cs new file mode 100644 index 00000000..b7c29ec0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestSet.cs @@ -0,0 +1,127 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestSet : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestSet GetRootAsTestTestSet(ByteBuffer _bb) { return GetRootAsTestTestSet(_bb, new TestTestSet()); } + public static TestTestSet GetRootAsTestTestSet(ByteBuffer _bb, TestTestSet obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestSet __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string X0 { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetX0Bytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetX0Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetX0Array() { return __p.__vector_as_array(6); } + public int X1(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int X1Length { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetX1Bytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetX1Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public int[] GetX1Array() { return __p.__vector_as_array(8); } + public long X2(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int X2Length { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetX2Bytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetX2Bytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetX2Array() { return __p.__vector_as_array(10); } + public string X3(int j) { int o = __p.__offset(12); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int X3Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } + public cfg.TestDemoEnum X4(int j) { int o = __p.__offset(14); return o != 0 ? (cfg.TestDemoEnum)__p.bb.GetInt(__p.__vector(o) + j * 4) : (cfg.TestDemoEnum)0; } + public int X4Length { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetX4Bytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetX4Bytes() { return __p.__vector_as_arraysegment(14); } +#endif + public cfg.TestDemoEnum[] GetX4Array() { int o = __p.__offset(14); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); cfg.TestDemoEnum[] a = new cfg.TestDemoEnum[l]; for (int i = 0; i < l; i++) { a[i] = (cfg.TestDemoEnum)__p.bb.GetInt(p + i * 4); } return a; } + + public static Offset CreateTestTestSet(FlatBufferBuilder builder, + int id = 0, + StringOffset x0Offset = default(StringOffset), + VectorOffset x1Offset = default(VectorOffset), + VectorOffset x2Offset = default(VectorOffset), + VectorOffset x3Offset = default(VectorOffset), + VectorOffset x4Offset = default(VectorOffset)) { + builder.StartTable(6); + TestTestSet.AddX4(builder, x4Offset); + TestTestSet.AddX3(builder, x3Offset); + TestTestSet.AddX2(builder, x2Offset); + TestTestSet.AddX1(builder, x1Offset); + TestTestSet.AddX0(builder, x0Offset); + TestTestSet.AddId(builder, id); + return TestTestSet.EndTestTestSet(builder); + } + + public static void StartTestTestSet(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX0(FlatBufferBuilder builder, StringOffset x0Offset) { builder.AddOffset(1, x0Offset.Value, 0); } + public static void AddX1(FlatBufferBuilder builder, VectorOffset x1Offset) { builder.AddOffset(2, x1Offset.Value, 0); } + public static VectorOffset CreateX1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX2(FlatBufferBuilder builder, VectorOffset x2Offset) { builder.AddOffset(3, x2Offset.Value, 0); } + public static VectorOffset CreateX2Vector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddX3(FlatBufferBuilder builder, VectorOffset x3Offset) { builder.AddOffset(4, x3Offset.Value, 0); } + public static VectorOffset CreateX3Vector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX3Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX4(FlatBufferBuilder builder, VectorOffset x4Offset) { builder.AddOffset(5, x4Offset.Value, 0); } + public static VectorOffset CreateX4Vector(FlatBufferBuilder builder, cfg.TestDemoEnum[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, cfg.TestDemoEnum[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX4Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTestSet(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // x1 + builder.Required(o, 10); // x2 + builder.Required(o, 12); // x3 + builder.Required(o, 14); // x4 + return new Offset(o); + } +} + + +static public class TestTestSetVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*X0*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*X1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 10 /*X2*/, 8 /*long*/, true) + && verifier.VerifyVectorOfStrings(tablePos, 12 /*X3*/, true) + && verifier.VerifyVectorOfData(tablePos, 14 /*X4*/, 4 /*cfg.TestDemoEnum*/, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestSize.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestSize.cs new file mode 100644 index 00000000..2f7314d5 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestSize.cs @@ -0,0 +1,116 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestSize : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestSize GetRootAsTestTestSize(ByteBuffer _bb) { return GetRootAsTestTestSize(_bb, new TestTestSize()); } + public static TestTestSize GetRootAsTestTestSize(ByteBuffer _bb, TestTestSize obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestSize __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int X1(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int X1Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetX1Bytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetX1Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public int[] GetX1Array() { return __p.__vector_as_array(6); } + public int X2(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int X2Length { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetX2Bytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetX2Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public int[] GetX2Array() { return __p.__vector_as_array(8); } + public int X3(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int X3Length { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetX3Bytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetX3Bytes() { return __p.__vector_as_arraysegment(10); } +#endif + public int[] GetX3Array() { return __p.__vector_as_array(10); } + public cfg.KeyValue_int32_int32? X4(int j) { int o = __p.__offset(12); return o != 0 ? (cfg.KeyValue_int32_int32?)(new cfg.KeyValue_int32_int32()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int X4Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTestTestSize(FlatBufferBuilder builder, + int id = 0, + VectorOffset x1Offset = default(VectorOffset), + VectorOffset x2Offset = default(VectorOffset), + VectorOffset x3Offset = default(VectorOffset), + VectorOffset x4Offset = default(VectorOffset)) { + builder.StartTable(5); + TestTestSize.AddX4(builder, x4Offset); + TestTestSize.AddX3(builder, x3Offset); + TestTestSize.AddX2(builder, x2Offset); + TestTestSize.AddX1(builder, x1Offset); + TestTestSize.AddId(builder, id); + return TestTestSize.EndTestTestSize(builder); + } + + public static void StartTestTestSize(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddX1(FlatBufferBuilder builder, VectorOffset x1Offset) { builder.AddOffset(1, x1Offset.Value, 0); } + public static VectorOffset CreateX1Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX2(FlatBufferBuilder builder, VectorOffset x2Offset) { builder.AddOffset(2, x2Offset.Value, 0); } + public static VectorOffset CreateX2Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX3(FlatBufferBuilder builder, VectorOffset x3Offset) { builder.AddOffset(3, x3Offset.Value, 0); } + public static VectorOffset CreateX3Vector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX3VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX3Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX4(FlatBufferBuilder builder, VectorOffset x4Offset) { builder.AddOffset(4, x4Offset.Value, 0); } + public static VectorOffset CreateX4Vector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateX4VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartX4Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTestTestSize(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 6); // x1 + builder.Required(o, 8); // x2 + builder.Required(o, 10); // x3 + builder.Required(o, 12); // x4 + return new Offset(o); + } +} + + +static public class TestTestSizeVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*X1*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 8 /*X2*/, 4 /*int*/, true) + && verifier.VerifyVectorOfData(tablePos, 10 /*X3*/, 4 /*int*/, true) + && verifier.VerifyVectorOfTables(tablePos, 12 /*X4*/, cfg.KeyValue_int32_int32Verify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestString.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestString.cs new file mode 100644 index 00000000..bb9850d7 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/TestTestString.cs @@ -0,0 +1,73 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct TestTestString : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static TestTestString GetRootAsTestTestString(ByteBuffer _bb) { return GetRootAsTestTestString(_bb, new TestTestString()); } + public static TestTestString GetRootAsTestTestString(ByteBuffer _bb, TestTestString obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TestTestString __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string S1 { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetS1Bytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetS1Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetS1Array() { return __p.__vector_as_array(6); } + public cfg.TestCompactString? Cs1 { get { int o = __p.__offset(8); return o != 0 ? (cfg.TestCompactString?)(new cfg.TestCompactString()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public cfg.TestCompactString? Cs2 { get { int o = __p.__offset(10); return o != 0 ? (cfg.TestCompactString?)(new cfg.TestCompactString()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + + public static Offset CreateTestTestString(FlatBufferBuilder builder, + int id = 0, + StringOffset s1Offset = default(StringOffset), + Offset cs1Offset = default(Offset), + Offset cs2Offset = default(Offset)) { + builder.StartTable(4); + TestTestString.AddCs2(builder, cs2Offset); + TestTestString.AddCs1(builder, cs1Offset); + TestTestString.AddS1(builder, s1Offset); + TestTestString.AddId(builder, id); + return TestTestString.EndTestTestString(builder); + } + + public static void StartTestTestString(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddS1(FlatBufferBuilder builder, StringOffset s1Offset) { builder.AddOffset(1, s1Offset.Value, 0); } + public static void AddCs1(FlatBufferBuilder builder, Offset cs1Offset) { builder.AddOffset(2, cs1Offset.Value, 0); } + public static void AddCs2(FlatBufferBuilder builder, Offset cs2Offset) { builder.AddOffset(3, cs2Offset.Value, 0); } + public static Offset EndTestTestString(FlatBufferBuilder builder) { + int o = builder.EndTable(); + builder.Required(o, 8); // cs1 + builder.Required(o, 10); // cs2 + return new Offset(o); + } +} + + +static public class TestTestStringVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*S1*/, false) + && verifier.VerifyTable(tablePos, 8 /*Cs1*/, cfg.TestCompactStringVerify.Verify, true) + && verifier.VerifyTable(tablePos, 10 /*Cs2*/, cfg.TestCompactStringVerify.Verify, true) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector2.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector2.cs new file mode 100644 index 00000000..9f073e94 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector2.cs @@ -0,0 +1,55 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct vector2 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static vector2 GetRootAsvector2(ByteBuffer _bb) { return GetRootAsvector2(_bb, new vector2()); } + public static vector2 GetRootAsvector2(ByteBuffer _bb, vector2 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public vector2 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset Createvector2(FlatBufferBuilder builder, + float x = 0.0f, + float y = 0.0f) { + builder.StartTable(2); + vector2.AddY(builder, y); + vector2.AddX(builder, x); + return vector2.Endvector2(builder); + } + + public static void Startvector2(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddX(FlatBufferBuilder builder, float x) { builder.AddFloat(0, x, 0.0f); } + public static void AddY(FlatBufferBuilder builder, float y) { builder.AddFloat(1, y, 0.0f); } + public static Offset Endvector2(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class vector2Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector3.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector3.cs new file mode 100644 index 00000000..5ac4848e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector3.cs @@ -0,0 +1,60 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct vector3 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static vector3 GetRootAsvector3(ByteBuffer _bb) { return GetRootAsvector3(_bb, new vector3()); } + public static vector3 GetRootAsvector3(ByteBuffer _bb, vector3 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public vector3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Z { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset Createvector3(FlatBufferBuilder builder, + float x = 0.0f, + float y = 0.0f, + float z = 0.0f) { + builder.StartTable(3); + vector3.AddZ(builder, z); + vector3.AddY(builder, y); + vector3.AddX(builder, x); + return vector3.Endvector3(builder); + } + + public static void Startvector3(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddX(FlatBufferBuilder builder, float x) { builder.AddFloat(0, x, 0.0f); } + public static void AddY(FlatBufferBuilder builder, float y) { builder.AddFloat(1, y, 0.0f); } + public static void AddZ(FlatBufferBuilder builder, float z) { builder.AddFloat(2, z, 0.0f); } + public static Offset Endvector3(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class vector3Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Z*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector4.cs b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector4.cs new file mode 100644 index 00000000..4b626b73 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Gen/cfg/vector4.cs @@ -0,0 +1,65 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace cfg +{ + +using global::System; +using global::System.Collections.Generic; +using global::Google.FlatBuffers; + +public struct vector4 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_23_5_26(); } + public static vector4 GetRootAsvector4(ByteBuffer _bb) { return GetRootAsvector4(_bb, new vector4()); } + public static vector4 GetRootAsvector4(ByteBuffer _bb, vector4 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public vector4 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Z { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float W { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset Createvector4(FlatBufferBuilder builder, + float x = 0.0f, + float y = 0.0f, + float z = 0.0f, + float w = 0.0f) { + builder.StartTable(4); + vector4.AddW(builder, w); + vector4.AddZ(builder, z); + vector4.AddY(builder, y); + vector4.AddX(builder, x); + return vector4.Endvector4(builder); + } + + public static void Startvector4(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddX(FlatBufferBuilder builder, float x) { builder.AddFloat(0, x, 0.0f); } + public static void AddY(FlatBufferBuilder builder, float y) { builder.AddFloat(1, y, 0.0f); } + public static void AddZ(FlatBufferBuilder builder, float z) { builder.AddFloat(2, z, 0.0f); } + public static void AddW(FlatBufferBuilder builder, float w) { builder.AddFloat(3, w, 0.0f); } + public static Offset Endvector4(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class vector4Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Z*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*W*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/luban_examples/Projects/Flatbuffers_json/Program.cs b/luban_examples/Projects/Flatbuffers_json/Program.cs new file mode 100644 index 00000000..f5d47c11 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/Program.cs @@ -0,0 +1,68 @@ + +class Program +{ + + + public static void Main(string[] args) + { + TestFullTypes(); + TestNullable(); + } + + private static void TestNullable() + { + var file = "../../../pb_datas/test_tbtestnull.bytes"; + + var bytes = File.ReadAllBytes(file); + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + //var tbTestNull = Cfg.TestTbTestNull.Parser.ParseFrom(File.OpenRead(file)); + + //Console.WriteLine(tbTestNull); + } + + private static void TestFullTypes() + { + //var bytes = File.ReadAllBytes("../../../pb_datas/item_tbitem.pb"); + + //Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + //var tbItem = Cfg.ItemTbItem.Parser.ParseFrom(File.OpenRead("../../../pb_datas/item_tbitem.pb")); + + //Console.WriteLine(tbItem); + + var file = "../../../datas/test_tbfulltypes.bytes"; + + var bytes = File.ReadAllBytes(file); + + //var ft = new Cfg.TestDemoType2(); + //ft.X4 = 1; + //ft.X14 = new Cfg.TestDemoDynamic(); + //ft.X14.DemoD2 = new Cfg.TestDemoD2() + //{ + // X1 = 1, + // X2 = 2 + //}; + + + //var mm = new MemoryStream(); + //var cos = new CodedOutputStream(mm); + + //ft.WriteTo(cos); + //cos.Flush(); + + //mm.Seek(0, SeekOrigin.Begin); + + //var b2 = new byte[mm.Length]; + //mm.Read(b2, 0, (int)mm.Length); + + //Console.WriteLine(string.Join(',', b2.Select(b => b.ToString()))); + + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + //var tbFullTypes = Cfg.TestTbFullTypes.Parser.ParseFrom(File.OpenRead(file)); + + //Console.WriteLine(tbFullTypes); + } +} + + + + diff --git a/luban_examples/Projects/Flatbuffers_json/bytes/test_tbtestnull.bin b/luban_examples/Projects/Flatbuffers_json/bytes/test_tbtestnull.bin new file mode 100644 index 00000000..5a1108ef Binary files /dev/null and b/luban_examples/Projects/Flatbuffers_json/bytes/test_tbtestnull.bin differ diff --git a/luban_examples/Projects/Flatbuffers_json/flatc.exe b/luban_examples/Projects/Flatbuffers_json/flatc.exe new file mode 100644 index 00000000..79fd9065 Binary files /dev/null and b/luban_examples/Projects/Flatbuffers_json/flatc.exe differ diff --git a/luban_examples/Projects/Flatbuffers_json/gen_platbuffers_code.bat b/luban_examples/Projects/Flatbuffers_json/gen_platbuffers_code.bat new file mode 100644 index 00000000..ab342fbe --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/gen_platbuffers_code.bat @@ -0,0 +1,13 @@ +flatc -I schemas --csharp -o Gen schemas\schema.fbs + + +set FLATC=flatc +set SCHEMA_FILE=schemas\schema.fbs +set DATA_DIR=json +set OUTPUT_DIR=bytes + + +%FLATC% -o %OUTPUT_DIR% -b %SCHEMA_FILE% --root-type cfg.TestTbTestNull %DATA_DIR%\test_tbtestnull.json +%FLATC% -o %OUTPUT_DIR% -b %SCHEMA_FILE% --root-type cfg.TestTbFullTypes %DATA_DIR%\test_tbfulltypes.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/gen_platbuffers_schema_data.bat b/luban_examples/Projects/Flatbuffers_json/gen_platbuffers_schema_data.bat new file mode 100644 index 00000000..c17ff49c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/gen_platbuffers_schema_data.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %GEN_CLIENT% ^ + -t all ^ + -c flatbuffers ^ + -d flatbuffers-json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=schemas ^ + -x outputDataDir=json ^ + -x pathValidator.rootDir=D:\workspace2\luban_examples\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@D:\workspace2\luban_examples\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/ai_tbbehaviortree.json b/luban_examples/Projects/Flatbuffers_json/json/ai_tbbehaviortree.json new file mode 100644 index 00000000..60fbb20a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/ai_tbbehaviortree.json @@ -0,0 +1,46 @@ +{ + "data_list": [ + { + "id": 10002, + "name": "random move", + "desc": "demo behaviour tree haha", + "blackboard_id": "demo", + "root_type": "AiSequence", + "root": { + "id": 1, + "node_name": "test", + "decorators": [ + { + "id": 3, + "node_name": "", + "flow_abort_mode": 2, + "num_loops": 0, + "infinite_loop": true, + "infinite_loop_timeout_time": -1 + } + ], + "services": [], + "children": [ + { + "id": 30, + "node_name": "", + "decorators": [], + "services": [], + "ignore_restart_self": false, + "wait_time": 1, + "random_deviation": 0.5 + }, + { + "id": 75, + "node_name": "", + "decorators": [], + "services": [], + "ignore_restart_self": false, + "origin_position_key": "x5", + "radius": 30 + } + ] + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/ai_tbblackboard.json b/luban_examples/Projects/Flatbuffers_json/json/ai_tbblackboard.json new file mode 100644 index 00000000..33c17a9c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/ai_tbblackboard.json @@ -0,0 +1,130 @@ +{ + "data_list": [ + { + "name": "attack_or_patrol", + "desc": "demo hahaha", + "parent_name": "", + "keys": [ + { + "name": "OriginPosition", + "desc": "", + "is_static": false, + "type": 5, + "type_class_name": "" + }, + { + "name": "TargetActor", + "desc": "x2 haha", + "is_static": false, + "type": 10, + "type_class_name": "" + }, + { + "name": "AcceptableRadius", + "desc": "x3 haha", + "is_static": false, + "type": 3, + "type_class_name": "" + }, + { + "name": "CurChooseSkillId", + "desc": "x4 haha", + "is_static": false, + "type": 2, + "type_class_name": "" + } + ] + }, + { + "name": "demo", + "desc": "demo hahaha", + "parent_name": "demo_parent", + "keys": [ + { + "name": "x1", + "desc": "x1 haha", + "is_static": false, + "type": 1, + "type_class_name": "" + }, + { + "name": "x2", + "desc": "x2 haha", + "is_static": false, + "type": 2, + "type_class_name": "" + }, + { + "name": "x3", + "desc": "x3 haha", + "is_static": false, + "type": 3, + "type_class_name": "" + }, + { + "name": "x4", + "desc": "x4 haha", + "is_static": false, + "type": 4, + "type_class_name": "" + }, + { + "name": "x5", + "desc": "x5 haha", + "is_static": false, + "type": 5, + "type_class_name": "" + }, + { + "name": "x6", + "desc": "x6 haha", + "is_static": false, + "type": 6, + "type_class_name": "" + }, + { + "name": "x7", + "desc": "x7 haha", + "is_static": false, + "type": 7, + "type_class_name": "" + }, + { + "name": "x8", + "desc": "x8 haha", + "is_static": false, + "type": 8, + "type_class_name": "" + }, + { + "name": "x9", + "desc": "x9 haha", + "is_static": false, + "type": 9, + "type_class_name": "ABC" + }, + { + "name": "x10", + "desc": "x10 haha", + "is_static": false, + "type": 10, + "type_class_name": "OBJECT" + } + ] + }, + { + "name": "demo_parent", + "desc": "demo parent", + "parent_name": "", + "keys": [ + { + "name": "v1", + "desc": "v1 haha", + "is_static": false, + "type": 1, + "type_class_name": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/common_tbglobalconfig.json b/luban_examples/Projects/Flatbuffers_json/json/common_tbglobalconfig.json new file mode 100644 index 00000000..172b1532 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/common_tbglobalconfig.json @@ -0,0 +1,18 @@ +{ + "data_list": [ + { + "x1": 1101001101, + "x2": 150, + "x3": 500, + "x4": 50, + "x5": 10, + "x6": 4, + "x7": [ + 1, + 2, + 3, + 4 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/item_tbitem.json b/luban_examples/Projects/Flatbuffers_json/json/item_tbitem.json new file mode 100644 index 00000000..c51fed8b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/item_tbitem.json @@ -0,0 +1,164 @@ +{ + "data_list": [ + { + "id": 1, + "name": "钻石", + "minor_type": 101, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "rmb兑换的主要货币", + "show_order": 1 + }, + { + "id": 2, + "name": "金币", + "minor_type": 102, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "主要的高级流通代币", + "show_order": 2 + }, + { + "id": 3, + "name": "银币", + "minor_type": 103, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "主要的流通代币", + "show_order": 3 + }, + { + "id": 4, + "name": "经验", + "minor_type": 104, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "人物升级需要的经验", + "show_order": 4 + }, + { + "id": 5, + "name": "能量点", + "minor_type": 105, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "人物变身需要的能量点", + "show_order": 5 + }, + { + "id": 1020100001, + "name": "初始发型", + "minor_type": 210, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始发型", + "show_order": 6 + }, + { + "id": 1020200001, + "name": "初始外套", + "minor_type": 220, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始外套", + "show_order": 7 + }, + { + "id": 1020300001, + "name": "初始上衣", + "minor_type": 230, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始上衣", + "show_order": 8 + }, + { + "id": 1020400001, + "name": "初始裤子", + "minor_type": 242, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始下装", + "show_order": 9 + }, + { + "id": 1020500001, + "name": "初始袜子", + "minor_type": 250, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始袜子", + "show_order": 10 + }, + { + "id": 1020600001, + "name": "初始鞋子", + "minor_type": 260, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始鞋子", + "show_order": 11 + }, + { + "id": 1020700001, + "name": "初始发饰", + "minor_type": 271, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始发饰", + "show_order": 12 + }, + { + "id": 1022490000, + "name": "测试数据-包子", + "minor_type": 403, + "quality": 2, + "icon_backgroud": "", + "icon_mask": "", + "desc": "包子", + "show_order": 29 + }, + { + "id": 1022490001, + "name": "测试数据-铲子", + "minor_type": 424, + "quality": 3, + "icon_backgroud": "", + "icon_mask": "", + "desc": "一把铲子", + "show_order": 30 + }, + { + "id": 1021490001, + "name": "测试数据-不要动", + "minor_type": 278, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始手持物", + "show_order": 19 + }, + { + "id": 1022490002, + "name": "测试数据-不要动", + "minor_type": 290, + "quality": 2, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始套装", + "show_order": 26 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/l10n_tbl10ndemo.json b/luban_examples/Projects/Flatbuffers_json/json/l10n_tbl10ndemo.json new file mode 100644 index 00000000..4fda391e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/l10n_tbl10ndemo.json @@ -0,0 +1,36 @@ +{ + "data_list": [ + { + "id": 11, + "text": "/apple" + }, + { + "id": 12, + "text": "/apple" + }, + { + "id": 13, + "text": "/apple" + }, + { + "id": 14, + "text": "/apple" + }, + { + "id": 15, + "text": "/apple" + }, + { + "id": 16, + "text": "/apple" + }, + { + "id": 17, + "text": "/apple" + }, + { + "id": 18, + "text": "/apple" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/l10n_tbpatchdemo.json b/luban_examples/Projects/Flatbuffers_json/json/l10n_tbpatchdemo.json new file mode 100644 index 00000000..211d1031 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/l10n_tbpatchdemo.json @@ -0,0 +1,36 @@ +{ + "data_list": [ + { + "id": 11, + "value": 1 + }, + { + "id": 12, + "value": 2 + }, + { + "id": 13, + "value": 3 + }, + { + "id": 14, + "value": 4 + }, + { + "id": 15, + "value": 5 + }, + { + "id": 16, + "value": 6 + }, + { + "id": 17, + "value": 7 + }, + { + "id": 18, + "value": 8 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/tag_tbtesttag.json b/luban_examples/Projects/Flatbuffers_json/json/tag_tbtesttag.json new file mode 100644 index 00000000..20956995 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/tag_tbtesttag.json @@ -0,0 +1,76 @@ +{ + "data_list": [ + { + "id": 2001, + "value": "导出" + }, + { + "id": 2004, + "value": "any" + }, + { + "id": 2003, + "value": "test" + }, + { + "id": 100, + "value": "导出" + }, + { + "id": 1, + "value": "导出" + }, + { + "id": 2, + "value": "导出" + }, + { + "id": 6, + "value": "导出" + }, + { + "id": 7, + "value": "导出" + }, + { + "id": 9, + "value": "测试" + }, + { + "id": 10, + "value": "测试" + }, + { + "id": 11, + "value": "any" + }, + { + "id": 12, + "value": "导出" + }, + { + "id": 13, + "value": "导出" + }, + { + "id": 104, + "value": "any" + }, + { + "id": 102, + "value": "test" + }, + { + "id": 3001, + "value": "export" + }, + { + "id": 3004, + "value": "any" + }, + { + "id": 3003, + "value": "test" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable1.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable1.json new file mode 100644 index 00000000..a95f35c6 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable1.json @@ -0,0 +1,20 @@ +{ + "data_list": [ + { + "id": 1, + "x": "aaa1" + }, + { + "id": 2, + "x": "xx2" + }, + { + "id": 11, + "x": "aaa11" + }, + { + "id": 12, + "x": "xx12" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable2.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable2.json new file mode 100644 index 00000000..2da35ca2 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable2.json @@ -0,0 +1,12 @@ +{ + "data_list": [ + { + "id": 1, + "y": 100 + }, + { + "id": 3, + "y": 300 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable3.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable3.json new file mode 100644 index 00000000..4294f41b --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbcompositejsontable3.json @@ -0,0 +1,8 @@ +{ + "data_list": [ + { + "a": 111, + "b": 222 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbdatafrommisc.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbdatafrommisc.json new file mode 100644 index 00000000..b0a4ba53 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbdatafrommisc.json @@ -0,0 +1,376 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/def", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + { + "key": 2, + "value": 2 + }, + { + "key": 4, + "value": 10 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 11, + "x1": true, + "x2": 4, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1112232.43123, + "x8_0": 123, + "x8": 112233, + "x9": 112334, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 4, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 1, + 2 + ], + "k5": [ + 1, + 2 + ], + "k8": [ + { + "key": 2, + "value": 10 + }, + { + "key": 3, + "value": 30 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 2, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + { + "key": 2, + "value": 2 + }, + { + "key": 4, + "value": 10 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 12, + "x1": true, + "x2": 4, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1112232.43123, + "x8_0": 123, + "x8": 112233, + "x9": 112334, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 4, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 1, + 2 + ], + "k5": [ + 1, + 2 + ], + "k8": [ + { + "key": 2, + "value": 10 + }, + { + "key": 3, + "value": 30 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 40, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + { + "key": 2, + "value": 2 + }, + { + "key": 4, + "value": 10 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 22, + "x1": false, + "x2": 2, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1122, + "x8_0": 13, + "x8": 12, + "x9": 123, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 5, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 3 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 3 + ], + "k8": [ + { + "key": 2, + "value": 10 + }, + { + "key": 3, + "value": 12 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 10, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 3 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbdefinefromexcel2.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbdefinefromexcel2.json new file mode 100644 index 00000000..08fe4530 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbdefinefromexcel2.json @@ -0,0 +1,820 @@ +{ + "data_list": [ + { + "id": 10000, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 3, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "TestCircle", + "x15": { + "radius": 1 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 3 + }, + { + "x": 2, + "y": 3, + "z": 4 + }, + { + "x": 1, + "y": 2, + "z": 4 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 4 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 5 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + } + ] + }, + { + "id": 10001, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 5, + "x10": "huang", + "x13": 1, + "x13_2": 3, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 20 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 4 + }, + { + "x": 2, + "y": 3, + "z": 5 + }, + { + "x": 1, + "y": 2, + "z": 5 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 5 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + } + ] + }, + { + "id": 10002, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 6, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 21 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 5 + }, + { + "x": 2, + "y": 3, + "z": 6 + }, + { + "x": 1, + "y": 2, + "z": 6 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + } + ] + }, + { + "id": 10003, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 3, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 22 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 933732549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 6 + }, + { + "x": 2, + "y": 3, + "z": 7 + }, + { + "x": 1, + "y": 2, + "z": 7 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + } + ] + }, + { + "id": 10004, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 4, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 23 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 7 + }, + { + "x": 2, + "y": 3, + "z": 8 + }, + { + "x": 1, + "y": 2, + "z": 8 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + } + ] + }, + { + "id": 10005, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 5, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 24 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 8 + }, + { + "x": 2, + "y": 3, + "z": 9 + }, + { + "x": 1, + "y": 2, + "z": 9 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + } + ] + }, + { + "id": 10006, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 6, + "x10": "", + "x13": 2, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 25 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 9 + }, + { + "x": 2, + "y": 3, + "z": 10 + }, + { + "x": 1, + "y": 2, + "z": 10 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + } + ] + }, + { + "id": 10007, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 4, + "x10": "xxx", + "x13": 2, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 26 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 10 + }, + { + "x": 2, + "y": 3, + "z": 11 + }, + { + "x": 1, + "y": 2, + "z": 11 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 13 + } + ] + }, + { + "id": 10008, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 3, + "x10": "xxx", + "x13": 2, + "x13_2": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "x15_type": "Test2Rectangle", + "x15": { + "width": 10, + "height": 27 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 11 + }, + { + "x": 2, + "y": 3, + "z": 12 + }, + { + "x": 1, + "y": 2, + "z": 12 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 13 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 14 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbdemogroup.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbdemogroup.json new file mode 100644 index 00000000..14b72fa2 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbdemogroup.json @@ -0,0 +1,28 @@ +{ + "data_list": [ + { + "id": 1, + "x5": { + "y1": 10 + } + }, + { + "id": 2, + "x5": { + "y1": 10 + } + }, + { + "id": 3, + "x5": { + "y1": 10 + } + }, + { + "id": 4, + "x5": { + "y1": 10 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbdemoprimitive.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbdemoprimitive.json new file mode 100644 index 00000000..b0618828 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbdemoprimitive.json @@ -0,0 +1,112 @@ +{ + "data_list": [ + { + "x1": false, + "x2": 1, + "x3": 2, + "x4": 3, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "hello", + "s2": "/apple", + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 2, + "y": 3, + "z": 4 + }, + "v4": { + "x": 4, + "y": 5, + "z": 6, + "w": 7 + }, + "t1": 946742700 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 4, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "world", + "s2": "/apple", + "v2": { + "x": 2, + "y": 3 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.4 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.7, + "w": 8.8 + }, + "t1": 946829099 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 5, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "nihao", + "s2": "/apple", + "v2": { + "x": 4, + "y": 5 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.5 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.8, + "w": 9.9 + }, + "t1": 946915499 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 6, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "shijie", + "s2": "/apple", + "v2": { + "x": 6, + "y": 7 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.6 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.9, + "w": 123 + }, + "t1": 947001899 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbdetectcsvencoding.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbdetectcsvencoding.json new file mode 100644 index 00000000..0224eedd --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbdetectcsvencoding.json @@ -0,0 +1,52 @@ +{ + "data_list": [ + { + "id": 21, + "name": "测试编码" + }, + { + "id": 22, + "name": "还果园国要" + }, + { + "id": 23, + "name": "工枯加盟仍" + }, + { + "id": 11, + "name": "测试编码" + }, + { + "id": 12, + "name": "还果园国要" + }, + { + "id": 13, + "name": "工枯加盟仍" + }, + { + "id": 31, + "name": "测试编码" + }, + { + "id": 32, + "name": "还果园国要" + }, + { + "id": 33, + "name": "工枯加盟仍" + }, + { + "id": 1, + "name": "测试编码" + }, + { + "id": 2, + "name": "还果园国要" + }, + { + "id": 3, + "name": "工枯加盟仍" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbexcelfromjson.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbexcelfromjson.json new file mode 100644 index 00000000..0c43e1d7 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbexcelfromjson.json @@ -0,0 +1,157 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + { + "key": 2, + "value": 2 + }, + { + "key": 4, + "value": 10 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 2, + "x2": 3 + } + ] + }, + { + "x4": 2, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 2, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + { + "key": 2, + "value": 2 + }, + { + "key": 4, + "value": 10 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 2, + "x2": 3 + } + ] + }, + { + "x4": 3, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 4, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + { + "key": 2, + "value": 2 + }, + { + "key": 4, + "value": 10 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 2, + "x2": 3 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbexcelfromjsonmultirow.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbexcelfromjsonmultirow.json new file mode 100644 index 00000000..f6927d6e --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbexcelfromjsonmultirow.json @@ -0,0 +1,83 @@ +{ + "data_list": [ + { + "id": 1, + "x": 5, + "items": [ + { + "x": 1, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 100 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 2, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] + }, + { + "id": 2, + "x": 9, + "items": [ + { + "x": 2, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 11 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 4, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + }, + { + "x": 5, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbfulltypes.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbfulltypes.json new file mode 100644 index 00000000..a3362257 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbfulltypes.json @@ -0,0 +1,845 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x2": 5, + "x3": 1, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas[10000]", + "x12": { + "x1": 1988 + }, + "x13": 0, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 3 + } + ] + }, + { + "x4": 2, + "x1": false, + "x2": 0, + "x3": 2, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 3, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 4 + } + ] + }, + { + "x4": 3, + "x1": false, + "x2": 0, + "x3": 3, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 4, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 5 + } + ] + }, + { + "x4": 4, + "x1": false, + "x2": 5, + "x3": 4, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 933732549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 5, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 6 + } + ] + }, + { + "x4": 5, + "x1": false, + "x2": 5, + "x3": 6, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas[20000]", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 6, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 7 + } + ] + }, + { + "x4": 6, + "x1": true, + "x2": 5, + "x3": 7, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 7, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 8 + } + ] + }, + { + "x4": 7, + "x1": true, + "x2": 5, + "x3": 8, + "x5": 1213123, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 8, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 9 + } + ] + }, + { + "x4": 8, + "x1": true, + "x2": 5, + "x3": 9, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 2, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 9, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 10 + } + ] + }, + { + "x4": 9, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 10, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 11 + } + ] + }, + { + "x4": 10, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1989 + }, + "x13": 1, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 3 + }, + "s1": "/apple", + "t1": 935460550, + "k1": [ + 1, + 2, + 4 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 5 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 11, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 12 + } + ] + }, + { + "x4": 12, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1990 + }, + "x13": 2, + "x14_type": "TestLoginRoleInfo", + "x14": { + "x1": 1, + "x3": 4, + "role_id": 10000 + }, + "s1": "/apple", + "t1": 935460551, + "k1": [ + 1, + 2, + 5 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 6 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 12, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 13 + } + ] + }, + { + "x4": 30, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1991 + }, + "x13": 4, + "x14_type": "TestDemoD2", + "x14": { + "x1": 1, + "x2": 5 + }, + "s1": "/apple", + "t1": 935460552, + "k1": [ + 1, + 2, + 6 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 7 + } + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 13, + "y2": false + } + ], + "k15": [ + { + "x1": 1, + "x2": 2 + }, + { + "x1": 1, + "x3": 2, + "x4": 14 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbitem2.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbitem2.json new file mode 100644 index 00000000..d91f9b30 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbitem2.json @@ -0,0 +1,64 @@ +{ + "data_list": [ + { + "id": 1001, + "name": "道具1", + "desc": "道具1", + "num": 100, + "price": 15 + }, + { + "id": 1002, + "name": "道具2", + "desc": "道具1", + "num": 20, + "price": 30 + }, + { + "id": 2001, + "name": "装备1", + "desc": "装备1", + "attr": 1, + "value": 100 + }, + { + "id": 2002, + "name": "装备2", + "desc": "装备2好", + "attr": 2, + "value": 15 + }, + { + "id": 3001, + "name": "耳环", + "desc": "耳环", + "duration": 100 + }, + { + "id": 3002, + "name": "耳环", + "desc": "耳环", + "duration": 100 + }, + { + "id": 1010, + "name": "道具10", + "desc": "道具10", + "num": 100, + "price": 10 + }, + { + "id": 2010, + "name": "装备20", + "desc": "装备好", + "attr": 4, + "value": 10 + }, + { + "id": 3010, + "name": "帽子", + "desc": "帽子", + "duration": 100 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbmultiindexlist.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultiindexlist.json new file mode 100644 index 00000000..acd219d0 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultiindexlist.json @@ -0,0 +1,81 @@ +{ + "data_list": [ + { + "id1": 1, + "id2": 1, + "id3": "ab1", + "num": 1, + "desc": "desc1" + }, + { + "id1": 2, + "id2": 3, + "id3": "ab2", + "num": 2, + "desc": "desc2" + }, + { + "id1": 3, + "id2": 5, + "id3": "ab3", + "num": 3, + "desc": "desc3" + }, + { + "id1": 4, + "id2": 7, + "id3": "ab4", + "num": 4, + "desc": "desc4" + }, + { + "id1": 5, + "id2": 9, + "id3": "ab5", + "num": 5, + "desc": "desc5" + }, + { + "id1": 6, + "id2": 11, + "id3": "ab6", + "num": 6, + "desc": "desc6" + }, + { + "id1": 7, + "id2": 13, + "id3": "ab7", + "num": 7, + "desc": "desc7" + }, + { + "id1": 8, + "id2": 15, + "id3": "ab8", + "num": 8, + "desc": "desc8" + }, + { + "id1": 9, + "id2": 17, + "id3": "ab9", + "num": 9, + "desc": "desc9" + }, + { + "id1": 10, + "id2": 19, + "id3": "ab10", + "num": 10, + "desc": "desc10" + }, + { + "id1": 11, + "id2": 21, + "id3": "ab11", + "num": 11, + "desc": "desc11" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbmultirowrecord.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultirowrecord.json new file mode 100644 index 00000000..b58f3f90 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultirowrecord.json @@ -0,0 +1,334 @@ +{ + "data_list": [ + { + "id": 1, + "name": "xxx", + "one_rows": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows1": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows2": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows4": [ + { + "key": 1, + "value": { + "id": 1, + "x": 2, + "y": 3 + } + } + ], + "multi_rows5": [ + { + "id": 1, + "items": [ + { + "id": 100, + "x": 1 + } + ] + } + ], + "multi_rows6": [], + "multi_rows7": [ + { + "key": 1, + "value": 10 + }, + { + "key": 2, + "value": 10 + }, + { + "key": 3, + "value": 30 + }, + { + "key": 4, + "value": 40 + } + ] + }, + { + "id": 2, + "name": "xxx", + "one_rows": [ + { + "id": 2, + "x": 4 + } + ], + "multi_rows1": [ + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + } + ], + "multi_rows2": [ + { + "id": 3, + "x": 4 + }, + { + "id": 3, + "x": 4 + } + ], + "multi_rows4": [ + { + "key": 2, + "value": { + "id": 4, + "x": 5, + "y": 4 + } + } + ], + "multi_rows5": [ + { + "id": 2, + "items": [ + { + "id": 100, + "x": 1 + }, + { + "id": 200, + "x": 2 + } + ] + }, + { + "id": 3, + "items": [ + { + "id": 300, + "x": 3 + } + ] + }, + { + "id": 4, + "items": [ + { + "id": 400, + "x": 4 + }, + { + "id": 500, + "x": 5 + }, + { + "id": 600, + "x": 6 + } + ] + } + ], + "multi_rows6": [ + { + "key": 2, + "value": { + "id": 2, + "x": 2, + "y": 2 + } + }, + { + "key": 22, + "value": { + "id": 22, + "x": 22, + "y": 22 + } + }, + { + "key": 222, + "value": { + "id": 3, + "x": 3, + "y": 3 + } + }, + { + "key": 2222, + "value": { + "id": 4, + "x": 4, + "y": 4 + } + } + ], + "multi_rows7": [ + { + "key": 1, + "value": 100 + }, + { + "key": 2, + "value": 200 + } + ] + }, + { + "id": 3, + "name": "ds", + "one_rows": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows1": [ + { + "id": 1, + "x": 2 + }, + { + "id": 2, + "x": 4 + } + ], + "multi_rows2": [ + { + "id": 3, + "x": 4 + }, + { + "id": 3, + "x": 4 + } + ], + "multi_rows4": [ + { + "key": 1, + "value": { + "id": 1, + "x": 2, + "y": 3 + } + }, + { + "key": 2, + "value": { + "id": 4, + "x": 5, + "y": 4 + } + }, + { + "key": 3, + "value": { + "id": 4, + "x": 5, + "y": 4 + } + } + ], + "multi_rows5": [ + { + "id": 5, + "items": [ + { + "id": 100, + "x": 1 + }, + { + "id": 200, + "x": 2 + }, + { + "id": 300, + "x": 3 + }, + { + "id": 400, + "x": 4 + } + ] + } + ], + "multi_rows6": [ + { + "key": 1, + "value": { + "id": 2, + "x": 3, + "y": 4 + } + }, + { + "key": 10, + "value": { + "id": 20, + "x": 3, + "y": 40 + } + }, + { + "key": 100, + "value": { + "id": 200, + "x": 4, + "y": 400 + } + }, + { + "key": 1000, + "value": { + "id": 2000, + "x": 5, + "y": 4000 + } + } + ], + "multi_rows7": [ + { + "key": 1, + "value": 1 + }, + { + "key": 2, + "value": 2 + }, + { + "key": 4, + "value": 4 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbmultirowtitle.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultirowtitle.json new file mode 100644 index 00000000..cc85b730 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultirowtitle.json @@ -0,0 +1,98 @@ +{ + "data_list": [ + { + "id": 1, + "name": "xxx", + "x1": { + "y2": { + "z2": 2, + "z3": 3 + }, + "y3": 4 + }, + "x2": [ + { + "z2": 1, + "z3": 2 + }, + { + "z2": 3, + "z3": 4 + } + ], + "x3": [ + { + "z2": 1, + "z3": 2 + }, + { + "z2": 3, + "z3": 4 + } + ], + "x4": [ + { + "z2": 12, + "z3": 13 + }, + { + "z2": 22, + "z3": 23 + }, + { + "z2": 32, + "z3": 33 + } + ] + }, + { + "id": 11, + "name": "yyy", + "x1": { + "y2": { + "z2": 12, + "z3": 13 + }, + "y3": 14 + }, + "x2_0": { + "z2": 1, + "z3": 2 + }, + "x2": [ + { + "z2": 11, + "z3": 12 + }, + { + "z2": 13, + "z3": 14 + } + ], + "x3": [ + { + "z2": 11, + "z3": 12 + }, + { + "z2": 13, + "z3": 14 + } + ], + "x4": [ + { + "z2": 112, + "z3": 113 + }, + { + "z2": 122, + "z3": 123 + }, + { + "z2": 132, + "z3": 133 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbmultiunionindexlist.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultiunionindexlist.json new file mode 100644 index 00000000..6c0d6549 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbmultiunionindexlist.json @@ -0,0 +1,81 @@ +{ + "data_list": [ + { + "id1": 1, + "id2": 1, + "id3": "ab1", + "num": 1, + "desc": "desc1" + }, + { + "id1": 1, + "id2": 1, + "id3": "ab2", + "num": 2, + "desc": "desc2" + }, + { + "id1": 1, + "id2": 5, + "id3": "ab1", + "num": 3, + "desc": "desc3" + }, + { + "id1": 4, + "id2": 5, + "id3": "ab1", + "num": 4, + "desc": "desc4" + }, + { + "id1": 5, + "id2": 9, + "id3": "ab5", + "num": 5, + "desc": "desc5" + }, + { + "id1": 6, + "id2": 11, + "id3": "ab6", + "num": 6, + "desc": "desc6" + }, + { + "id1": 7, + "id2": 13, + "id3": "ab7", + "num": 7, + "desc": "desc7" + }, + { + "id1": 8, + "id2": 15, + "id3": "ab8", + "num": 8, + "desc": "desc8" + }, + { + "id1": 9, + "id2": 17, + "id3": "ab9", + "num": 9, + "desc": "desc9" + }, + { + "id1": 10, + "id2": 19, + "id3": "ab10", + "num": 10, + "desc": "desc10" + }, + { + "id1": 11, + "id2": 21, + "id3": "ab11", + "num": 11, + "desc": "desc11" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbnotindexlist.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbnotindexlist.json new file mode 100644 index 00000000..ffda7157 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbnotindexlist.json @@ -0,0 +1,24 @@ +{ + "data_list": [ + { + "x": 1, + "y": 2 + }, + { + "x": 1, + "y": 2 + }, + { + "x": 2, + "y": 3 + }, + { + "x": 3, + "y": 4 + }, + { + "x": 2, + "y": 3 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbsingleton.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbsingleton.json new file mode 100644 index 00000000..29d61d78 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbsingleton.json @@ -0,0 +1,16 @@ +{ + "data_list": [ + { + "id": 5, + "name": "key_name", + "date_type": "TestDemoD5", + "date": { + "x1": 1, + "time": { + "start_time": 398966400, + "end_time": 936806400 + } + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestberef.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestberef.json new file mode 100644 index 00000000..af631a82 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestberef.json @@ -0,0 +1,44 @@ +{ + "data_list": [ + { + "id": 1, + "count": 10 + }, + { + "id": 2, + "count": 10 + }, + { + "id": 3, + "count": 10 + }, + { + "id": 4, + "count": 10 + }, + { + "id": 5, + "count": 10 + }, + { + "id": 6, + "count": 10 + }, + { + "id": 7, + "count": 10 + }, + { + "id": 8, + "count": 10 + }, + { + "id": 9, + "count": 10 + }, + { + "id": 10, + "count": 10 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestberef2.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestberef2.json new file mode 100644 index 00000000..0886c622 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestberef2.json @@ -0,0 +1,44 @@ +{ + "data_list": [ + { + "id": 11, + "count": 10 + }, + { + "id": 12, + "count": 10 + }, + { + "id": 13, + "count": 10 + }, + { + "id": 14, + "count": 10 + }, + { + "id": 15, + "count": 10 + }, + { + "id": 16, + "count": 10 + }, + { + "id": 17, + "count": 10 + }, + { + "id": 18, + "count": 10 + }, + { + "id": 19, + "count": 10 + }, + { + "id": 20, + "count": 10 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestglobal.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestglobal.json new file mode 100644 index 00000000..45d0f4e6 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestglobal.json @@ -0,0 +1,8 @@ +{ + "data_list": [ + { + "unlock_equip": 10, + "unlock_hero": 20 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestindex.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestindex.json new file mode 100644 index 00000000..69c7dab2 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestindex.json @@ -0,0 +1,84 @@ +{ + "data_list": [ + { + "id": 1, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 2, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 3, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 4, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmap.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmap.json new file mode 100644 index 00000000..609d805f --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmap.json @@ -0,0 +1,47 @@ +{ + "data_list": [ + { + "id": 1, + "x1": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "x2": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "x3": [ + { + "key": "aaa", + "value": 1 + }, + { + "key": "bbb", + "value": 2 + } + ], + "x4": [ + { + "key": 1, + "value": 1 + }, + { + "key": 2, + "value": 20 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmapper.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmapper.json new file mode 100644 index 00000000..a009e49c --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmapper.json @@ -0,0 +1,20 @@ +{ + "data_list": [ + { + "id": 1, + "audio_type": 1, + "v2": { + "x": 1, + "y": 2 + } + }, + { + "id": 2, + "audio_type": 1, + "v2": { + "x": 1, + "y": 3 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmulticolumn.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmulticolumn.json new file mode 100644 index 00000000..751a636d --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestmulticolumn.json @@ -0,0 +1,40 @@ +{ + "data_list": [ + { + "id": 1, + "a": { + "y1": 1, + "y2": 2, + "y3": 3 + }, + "b": { + "y1": 21, + "y2": 221, + "y3": 23 + }, + "c": { + "y1": 31, + "y2": 32, + "y3": 33 + } + }, + { + "id": 2, + "a": { + "y1": 1, + "y2": 2, + "y3": 3 + }, + "b": { + "y1": 21, + "y2": 221, + "y3": 23 + }, + "c": { + "y1": 31, + "y2": 32, + "y3": 33 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestnull.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestnull.json new file mode 100644 index 00000000..87ccf8b8 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestnull.json @@ -0,0 +1,92 @@ +{ + "data_list": [ + { + "id": 10 + }, + { + "id": 11 + }, + { + "id": 12, + "x1": 1, + "x2": 1, + "x3": { + "x1": 1 + }, + "x4_type": "TestDemoD2", + "x4": { + "x1": 2, + "x2": 3 + }, + "s1": "asf", + "s2": "/abc" + }, + { + "id": 20 + }, + { + "id": 21 + }, + { + "id": 22, + "x1": 1, + "x2": 2, + "x3": { + "x1": 3 + }, + "x4_type": "TestDemoD2", + "x4": { + "x1": 1, + "x2": 2 + }, + "s1": "asfs", + "s2": "/abc" + }, + { + "id": 30, + "x1": 1, + "x2": 1, + "x3": { + "x1": 1 + }, + "x4_type": "TestDemoD2", + "x4": { + "x1": 1, + "x2": 22 + }, + "s1": "/apple", + "s2": "/apple" + }, + { + "id": 31 + }, + { + "id": 1 + }, + { + "id": 2, + "x1": 1, + "x2": 1, + "x3": { + "x1": 3 + }, + "x4_type": "TestDemoD2", + "x4": { + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "s2": "/apple" + }, + { + "id": 3, + "s1": "", + "s2": "" + }, + { + "id": 4, + "s1": "/apple", + "s2": "/apple" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestref.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestref.json new file mode 100644 index 00000000..80e35011 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestref.json @@ -0,0 +1,205 @@ +{ + "data_list": [ + { + "id": 1, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 1, + "x4": 3001, + "a1": [ + 1, + 2 + ], + "a2": [ + 2, + 3 + ], + "b1": [ + 3, + 4 + ], + "b2": [ + 4, + 5 + ], + "c1": [ + 5, + 6, + 7 + ], + "c2": [ + 6, + 7 + ], + "d1": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "d2": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1_type": "TestRefBean", + "s1": { + "x": 1, + "arr": [ + 1, + 4 + ] + } + }, + { + "id": 2, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 20, + "x4": 3001, + "a1": [ + 1, + 3 + ], + "a2": [ + 2, + 4 + ], + "b1": [ + 3, + 5 + ], + "b2": [ + 4, + 6 + ], + "c1": [ + 5, + 6, + 8 + ], + "c2": [ + 6, + 8 + ], + "d1": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "d2": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1_type": "TestRefBean", + "s1": { + "x": 1, + "arr": [ + 1, + 3 + ] + } + }, + { + "id": 3, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 19, + "x4": 3001, + "a1": [ + 1, + 4 + ], + "a2": [ + 2, + 5 + ], + "b1": [ + 3, + 6 + ], + "b2": [ + 4, + 7 + ], + "c1": [ + 5, + 6, + 9 + ], + "c2": [ + 6, + 9 + ], + "d1": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "d2": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1_type": "TestRefBean", + "s1": { + "x": 1, + "arr": [ + 2, + 3 + ] + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestscriptableobject.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestscriptableobject.json new file mode 100644 index 00000000..54b2a2d2 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestscriptableobject.json @@ -0,0 +1,46 @@ +{ + "data_list": [ + { + "id": 1, + "desc": "aaaa", + "rate": 0.45, + "num": 12131, + "v2": { + "x": 1, + "y": 1 + }, + "v3": { + "x": 2, + "y": 2, + "z": 2 + }, + "v4": { + "x": 3, + "y": 3, + "z": 4, + "w": 4 + } + }, + { + "id": 2, + "desc": "bbbbb", + "rate": 0.8, + "num": 1111, + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 1, + "y": 2, + "z": 3 + }, + "v4": { + "x": 1, + "y": 2, + "z": 3, + "w": 4 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestset.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestset.json new file mode 100644 index 00000000..9de8d951 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestset.json @@ -0,0 +1,45 @@ +{ + "data_list": [ + { + "id": 1, + "x0": "ab", + "x1": [ + 1, + 2, + 3 + ], + "x2": [ + 2, + 3, + 4 + ], + "x3": [ + "ab", + "cd" + ], + "x4": [ + 1, + 2 + ] + }, + { + "id": 2, + "x0": "cd", + "x1": [ + 1, + 2 + ], + "x2": [ + 2, + 3 + ], + "x3": [ + "ab", + "cd" + ], + "x4": [ + 1 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbtestsize.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestsize.json new file mode 100644 index 00000000..2abe8cfd --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbtestsize.json @@ -0,0 +1,29 @@ +{ + "data_list": [ + { + "id": 1, + "x1": [ + 1, + 2 + ], + "x2": [ + 3, + 4 + ], + "x3": [ + 5, + 6 + ], + "x4": [ + { + "key": 1, + "value": 2 + }, + { + "key": 3, + "value": 4 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/json/test_tbteststring.json b/luban_examples/Projects/Flatbuffers_json/json/test_tbteststring.json new file mode 100644 index 00000000..72d51f67 --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/json/test_tbteststring.json @@ -0,0 +1,79 @@ +{ + "data_list": [ + { + "id": "\\a", + "s1": "asfas", + "s2": "aaa\nbbb", + "cs1": { + "id": 1, + "s2": "asf", + "s3": "aaa" + }, + "cs2": { + "id": 1, + "s2": "asf", + "s3": "aaa" + } + }, + { + "id": "2", + "s1": "aaa\\nbbb", + "s2": "aaa\t\tbbb", + "cs1": { + "id": 2, + "s2": "", + "s3": "bbb" + }, + "cs2": { + "id": 2, + "s2": "", + "s3": "bbb" + } + }, + { + "id": "3", + "s1": "升级到10级\"\"", + "s2": "cccc", + "cs1": { + "id": 3, + "s2": "asdfas", + "s3": "" + }, + "cs2": { + "id": 3, + "s2": "asdfas", + "s3": "" + } + }, + { + "id": "4", + "s1": "\\abc", + "s2": "", + "cs1": { + "id": 4, + "s2": "", + "s3": "" + }, + "cs2": { + "id": 4, + "s2": "", + "s3": "" + } + }, + { + "id": "5", + "s1": "升级到10级\nabc", + "s2": "", + "cs1": { + "id": 3, + "s2": "asdfas", + "s3": "" + }, + "cs2": { + "id": 3, + "s2": "asdfas", + "s3": "" + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Flatbuffers_json/schemas/schema.fbs b/luban_examples/Projects/Flatbuffers_json/schemas/schema.fbs new file mode 100644 index 00000000..5e64501a --- /dev/null +++ b/luban_examples/Projects/Flatbuffers_json/schemas/schema.fbs @@ -0,0 +1,1172 @@ +namespace cfg; + +enum AiEExecutor:int { + AiEExecutor_CLIENT = 0, + AiEExecutor_SERVER = 1, +} +enum AiEKeyType:int { + __GENERATE_DEFAULT_VALUE = 0, + AiEKeyType_BOOL = 1, + AiEKeyType_INT = 2, + AiEKeyType_FLOAT = 3, + AiEKeyType_STRING = 4, + AiEKeyType_VECTOR = 5, + AiEKeyType_ROTATOR = 6, + AiEKeyType_NAME = 7, + AiEKeyType_CLASS = 8, + AiEKeyType_ENUM = 9, + AiEKeyType_OBJECT = 10, +} +enum AiEFlowAbortMode:int { + AiEFlowAbortMode_NONE = 0, + AiEFlowAbortMode_LOWER_PRIORITY = 1, + AiEFlowAbortMode_SELF = 2, + AiEFlowAbortMode_BOTH = 3, +} +enum AiEFinishMode:int { + AiEFinishMode_IMMEDIATE = 0, + AiEFinishMode_DELAYED = 1, +} +enum AiENotifyObserverMode:int { + AiENotifyObserverMode_ON_VALUE_CHANGE = 0, + AiENotifyObserverMode_ON_RESULT_CHANGE = 1, +} +enum AiEOperator:int { + AiEOperator_IS_EQUAL_TO = 0, + AiEOperator_IS_NOT_EQUAL_TO = 1, + AiEOperator_IS_LESS_THAN = 2, + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3, + AiEOperator_IS_GREAT_THAN = 4, + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5, + AiEOperator_CONTAINS = 6, + AiEOperator_NOT_CONTAINS = 7, +} +enum AudioType:int { + AudioType_UNKNOWN = 0, + AudioType_ACC = 1, + AudioType_AIFF = 2, +} +enum CommonEBoolOperator:int { + CommonEBoolOperator_AND = 0, + CommonEBoolOperator_OR = 1, +} +enum ItemEItemQuality:int { + ItemEItemQuality_WHITE = 0, + ItemEItemQuality_GREEN = 1, + ItemEItemQuality_BLUE = 2, + ItemEItemQuality_PURPLE = 3, + ItemEItemQuality_GOLDEN = 4, +} +enum ItemECurrencyType:int { + __GENERATE_DEFAULT_VALUE = 0, + ItemECurrencyType_DIAMOND = 1, + ItemECurrencyType_GOLD = 2, + ItemECurrencyType_SILVER = 3, + ItemECurrencyType_EXP = 4, + ItemECurrencyType_POWER_POINT = 5, +} +enum ItemEMajorType:int { + __GENERATE_DEFAULT_VALUE = 0, + ItemEMajorType_CURRENCY = 1, + ItemEMajorType_CLOTH = 2, + ItemEMajorType_QUEST = 3, + ItemEMajorType_CONSUMABLES = 4, + ItemEMajorType_TREASURE_BOX = 5, + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6, + ItemEMajorType_HEAD_FRAME = 7, + ItemEMajorType_VOICE = 8, + ItemEMajorType_ACTION = 9, + ItemEMajorType_EXPANSION = 10, + ItemEMajorType_MATERIAL = 11, +} +enum ItemEMinorType:int { + __GENERATE_DEFAULT_VALUE = 0, + ItemEMinorType_DIAMOND = 101, + ItemEMinorType_GOLD = 102, + ItemEMinorType_SILVER = 103, + ItemEMinorType_EXP = 104, + ItemEMinorType_POWER_POINT = 105, + ItemEMinorType_HAIR_STYLE = 210, + ItemEMinorType_COAT = 220, + ItemEMinorType_UPPER_JACKET = 230, + ItemEMinorType_TROUSERS = 241, + ItemEMinorType_SKIRT = 242, + ItemEMinorType_SOCKS = 250, + ItemEMinorType_SHOES = 260, + ItemEMinorType_HAIR_ACCESSORY = 271, + ItemEMinorType_HAT = 272, + ItemEMinorType_EARRING = 273, + ItemEMinorType_NECKLACE = 274, + ItemEMinorType_BRACELET = 275, + ItemEMinorType_HAIR_CLASP = 276, + ItemEMinorType_GLOVE = 277, + ItemEMinorType_HANDHELD_OBJECT = 278, + ItemEMinorType_SPECIAL = 279, + ItemEMinorType_BASE_COSMETIC = 281, + ItemEMinorType_EYEBROW_COSMETIC = 282, + ItemEMinorType_EYELASH = 283, + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284, + ItemEMinorType_LIP_COSMETIC = 285, + ItemEMinorType_SKIN_COLOR = 286, + ItemEMinorType_ONE_PIECE_DRESS = 290, + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291, + ItemEMinorType_QUEST = 301, + ItemEMinorType_CAST = 401, + ItemEMinorType_SWORD = 421, + ItemEMinorType_BOW_ARROW = 422, + ItemEMinorType_WANDS = 423, + ItemEMinorType_SPECIAL_TOOL = 424, + ItemEMinorType_FOOD = 403, + ItemEMinorType_TREASURE_BOX = 501, + ItemEMinorType_KEY = 502, + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503, + ItemEMinorType_ACHIEVEMENT = 601, + ItemEMinorType_TITLE = 602, + ItemEMinorType_AVATAR_FRAME = 701, + ItemEMinorType_VOICE = 801, + ItemEMinorType_IDLE_POSE = 901, + ItemEMinorType_PHOTO_POSE = 902, + ItemEMinorType_BAG = 1001, + ItemEMinorType_FRIEND_CAPACITY = 1002, + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101, + ItemEMinorType_DESIGN_DRAWING = 1102, +} +enum ItemEClothersStarQualityType:int { + __GENERATE_DEFAULT_VALUE = 0, + ItemEClothersStarQualityType_ONE = 1, + ItemEClothersStarQualityType_TWO = 2, + ItemEClothersStarQualityType_THREE = 3, + ItemEClothersStarQualityType_FOUR = 4, + ItemEClothersStarQualityType_FIVE = 5, + ItemEClothersStarQualityType_SIX = 6, + ItemEClothersStarQualityType_SEVEN = 7, + ItemEClothersStarQualityType_EIGHT = 8, + ItemEClothersStarQualityType_NINE = 9, + ItemEClothersStarQualityType_TEN = 10, +} +enum ItemEClothersTag:int { + __GENERATE_DEFAULT_VALUE = 0, + ItemEClothersTag_FANG_SHAI = 1, + ItemEClothersTag_WU_ZHE = 2, +} +enum ItemEUseType:int { + ItemEUseType_MANUAL = 0, + ItemEUseType_AUTO = 1, +} +enum ItemEClothesHidePartType:int { + ItemEClothesHidePartType_CHEST = 0, + ItemEClothesHidePartType_HEAD = 1, + ItemEClothesHidePartType_SPINE_UPPER = 2, + ItemEClothesHidePartType_SPINE_LOWER = 3, + ItemEClothesHidePartType_HIP = 4, + ItemEClothesHidePartType_LEG_UPPER = 5, + ItemEClothesHidePartType_LEG_MIDDLE = 6, + ItemEClothesHidePartType_LEG_LOWER = 7, +} +enum ItemEClothesPropertyType:int { + __GENERATE_DEFAULT_VALUE = 0, + ItemEClothesPropertyType_JIAN_YUE = 1, + ItemEClothesPropertyType_HUA_LI = 2, + ItemEClothesPropertyType_KE_AI = 3, + ItemEClothesPropertyType_CHENG_SHU = 4, + ItemEClothesPropertyType_HUO_PO = 5, + ItemEClothesPropertyType_YOU_YA = 6, + ItemEClothesPropertyType_QING_CHUN = 7, + ItemEClothesPropertyType_XING_GAN = 8, + ItemEClothesPropertyType_QING_LIANG = 9, + ItemEClothesPropertyType_BAO_NUAN = 10, +} +enum TestDemoEnum:int { + TestDemoEnum_NONE = 0, + TestDemoEnum_A = 1, + TestDemoEnum_B = 2, + TestDemoEnum_C = 4, + TestDemoEnum_D = 5, +} +enum TestDemoFlag:int { + __GENERATE_DEFAULT_VALUE = 0, + TestDemoFlag_A = 1, + TestDemoFlag_B = 2, + TestDemoFlag_C = 4, + TestDemoFlag_D = 8, +} +enum TestETestUeType:int { + TestETestUeType_WHITE = 0, + TestETestUeType_BLACK = 1, +} +enum TestETestEmptyEnum:int { + __GENERATE_DEFAULT_VALUE = 0, +} +enum TestETestEmptyEnum2:int { + __GENERATE_DEFAULT_VALUE = 0, + TestETestEmptyEnum2_SMALL_THAN_256 = 255, + TestETestEmptyEnum2_X_256 = 256, + TestETestEmptyEnum2_X_257 = 257, +} +enum TestETestQuality:int { + __GENERATE_DEFAULT_VALUE = 0, + TestETestQuality_A = 1, + TestETestQuality_B = 2, + TestETestQuality_C = 3, + TestETestQuality_D = 4, +} +enum TestAccessFlag:int { + __GENERATE_DEFAULT_VALUE = 0, + TestAccessFlag_WRITE = 1, + TestAccessFlag_READ = 2, + TestAccessFlag_TRUNCATE = 4, + TestAccessFlag_NEW = 8, + TestAccessFlag_READ_WRITE = 3, +} + +union AiNode { + AiUeSetDefaultFocus, + AiExecuteTimeStatistic, + AiChooseTarget, + AiKeepFaceTarget, + AiGetOwnerPlayer, + AiUpdateDailyBehaviorProps, + AiUeLoop, + AiUeCooldown, + AiUeTimeLimit, + AiUeBlackboard, + AiUeForceSuccess, + AiIsAtLocation, + AiDistanceLessThan, + AiSequence, + AiSelector, + AiSimpleParallel, + AiUeWait, + AiUeWaitBlackboardTime, + AiMoveToTarget, + AiChooseSkill, + AiMoveToRandomLocation, + AiMoveToLocation, + AiDebugPrint, +} +union AiService { + AiUeSetDefaultFocus, + AiExecuteTimeStatistic, + AiChooseTarget, + AiKeepFaceTarget, + AiGetOwnerPlayer, + AiUpdateDailyBehaviorProps, +} +union AiDecorator { + AiUeLoop, + AiUeCooldown, + AiUeTimeLimit, + AiUeBlackboard, + AiUeForceSuccess, + AiIsAtLocation, + AiDistanceLessThan, +} +union AiKeyQueryOperator { + AiIsSet, + AiIsNotSet, + AiBinaryOperator, +} +union AiKeyData { + AiFloatKeyData, + AiIntKeyData, + AiStringKeyData, + AiBlackboardKeyData, +} +union AiFlowNode { + AiSequence, + AiSelector, + AiSimpleParallel, + AiUeWait, + AiUeWaitBlackboardTime, + AiMoveToTarget, + AiChooseSkill, + AiMoveToRandomLocation, + AiMoveToLocation, + AiDebugPrint, +} +union AiComposeNode { + AiSequence, + AiSelector, + AiSimpleParallel, +} +union AiTask { + AiUeWait, + AiUeWaitBlackboardTime, + AiMoveToTarget, + AiChooseSkill, + AiMoveToRandomLocation, + AiMoveToLocation, + AiDebugPrint, +} +union TestDemoDynamic { + TestDemoD2, + TestDemoE1, + TestLoginRoleInfo, + TestDemoD5, +} +union TestDemoD3 { + TestDemoE1, + TestLoginRoleInfo, +} +union TestRefDynamicBase { + TestRefBean, +} +union TestItemBase { + TestItem, + TestEquipment, + TestDecorator, +} +union TestShape { + TestCircle, + Test2Rectangle, +} + +table AiBlackboard { + name:string; + desc:string; + parent_name:string; + keys:[AiBlackboardKey](required); +} +table AiBlackboardKey { + name:string; + desc:string; + is_static:bool; + type:AiEKeyType; + type_class_name:string; +} +table AiBehaviorTree { + id:int32; + name:string; + desc:string; + blackboard_id:string; + root:AiComposeNode(required); +} +table AiUeSetDefaultFocus { + id:int32; + node_name:string; + keyboard_key:string; +} +table AiExecuteTimeStatistic { + id:int32; + node_name:string; +} +table AiChooseTarget { + id:int32; + node_name:string; + result_target_key:string; +} +table AiKeepFaceTarget { + id:int32; + node_name:string; + target_actor_key:string; +} +table AiGetOwnerPlayer { + id:int32; + node_name:string; + player_actor_key:string; +} +table AiUpdateDailyBehaviorProps { + id:int32; + node_name:string; + satiety_key:string; + energy_key:string; + mood_key:string; + satiety_lower_threshold_key:string; + satiety_upper_threshold_key:string; + energy_lower_threshold_key:string; + energy_upper_threshold_key:string; + mood_lower_threshold_key:string; + mood_upper_threshold_key:string; +} +table AiUeLoop { + id:int32; + node_name:string; + flow_abort_mode:AiEFlowAbortMode; + num_loops:int32; + infinite_loop:bool; + infinite_loop_timeout_time:float32; +} +table AiUeCooldown { + id:int32; + node_name:string; + flow_abort_mode:AiEFlowAbortMode; + cooldown_time:float32; +} +table AiUeTimeLimit { + id:int32; + node_name:string; + flow_abort_mode:AiEFlowAbortMode; + limit_time:float32; +} +table AiUeBlackboard { + id:int32; + node_name:string; + flow_abort_mode:AiEFlowAbortMode; + notify_observer:AiENotifyObserverMode; + blackboard_key:string; + key_query:AiKeyQueryOperator(required); +} +table AiIsSet { +} +table AiIsNotSet { +} +table AiBinaryOperator { + oper:AiEOperator; + data:AiKeyData(required); +} +table AiFloatKeyData { + value:float32; +} +table AiIntKeyData { + value:int32; +} +table AiStringKeyData { + value:string; +} +table AiBlackboardKeyData { + value:string; +} +table AiUeForceSuccess { + id:int32; + node_name:string; + flow_abort_mode:AiEFlowAbortMode; +} +table AiIsAtLocation { + id:int32; + node_name:string; + flow_abort_mode:AiEFlowAbortMode; + acceptable_radius:float32; + keyboard_key:string; + inverse_condition:bool; +} +table AiDistanceLessThan { + id:int32; + node_name:string; + flow_abort_mode:AiEFlowAbortMode; + actor1_key:string; + actor2_key:string; + distance:float32; + reverse_result:bool; +} +table AiSequence { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + children:[AiFlowNode](required); +} +table AiSelector { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + children:[AiFlowNode](required); +} +table AiSimpleParallel { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + finish_mode:AiEFinishMode; + main_task:AiTask(required); + background_node:AiFlowNode(required); +} +table AiUeWait { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + ignore_restart_self:bool; + wait_time:float32; + random_deviation:float32; +} +table AiUeWaitBlackboardTime { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + ignore_restart_self:bool; + blackboard_key:string; +} +table AiMoveToTarget { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + ignore_restart_self:bool; + target_actor_key:string; + acceptable_radius:float32; +} +table AiChooseSkill { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + ignore_restart_self:bool; + target_actor_key:string; + result_skill_id_key:string; +} +table AiMoveToRandomLocation { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + ignore_restart_self:bool; + origin_position_key:string; + radius:float32; +} +table AiMoveToLocation { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + ignore_restart_self:bool; + acceptable_radius:float32; +} +table AiDebugPrint { + id:int32; + node_name:string; + decorators:[AiDecorator](required); + services:[AiService](required); + ignore_restart_self:bool; + text:string; +} +table CommonGlobalConfig { + x1:int32; + x2:int32; + x3:int32; + x4:int32; + x5:int32; + x6:int32; + x7:[int32](required); +} +table ItemItem { + id:int32; + name:string; + minor_type:ItemEMinorType; + quality:ItemEItemQuality; + icon_backgroud:string; + icon_mask:string; + desc:string; + show_order:int32; +} +table L10nL10NDemo { + id:int32; + text:string; +} +table L10nPatchDemo { + id:int32; + value:int32; +} +table TagTestTag { + id:int32; + value:string; +} +table TestDemoType2 { + x4:int32; + x1:bool; + x2:ubyte; + x3:int16; + x5:int64; + x6:float32; + x7:float64; + x8_0:int16; + x8:int32; + x9:int64; + x10:string; + x12:TestDemoType1(required); + x13:TestDemoEnum; + x14:TestDemoDynamic(required); + s1:string; + t1:int64; + k1:[int32](required); + k2:[int32](required); + k5:[int32](required); + k8:[KeyValue_int32_int32](required); + k9:[TestDemoE2](required); + k15:[TestDemoDynamic](required); +} +table TestDemoType1 { + x1:int32; +} +table TestDemoD2 { + x1:int32; + x2:int32; +} +table TestDemoE1 { + x1:int32; + x3:int32; + x4:int32; +} +table TestLoginRoleInfo { + x1:int32; + x3:int32; + role_id:int64; +} +table TestDemoD5 { + x1:int32; + time:TestDateTimeRange(required); +} +table TestDateTimeRange { + start_time:int64; + end_time:int64; +} +table TestDemoE2 { + y1:int32; + y2:bool; +} +table TestDemoSingletonType { + id:int32; + name:string; + date:TestDemoDynamic(required); +} +table TestNotIndexList { + x:int32; + y:int32; +} +table TestMultiUnionIndexList { + id1:int32; + id2:int64; + id3:string; + num:int32; + desc:string; +} +table TestMultiIndexList { + id1:int32; + id2:int64; + id3:string; + num:int32; + desc:string; +} +table TestMultiRowRecord { + id:int32; + name:string; + one_rows:[TestMultiRowType1](required); + multi_rows1:[TestMultiRowType1](required); + multi_rows2:[TestMultiRowType1](required); + multi_rows4:[KeyValue_int32_TestMultiRowType2](required); + multi_rows5:[TestMultiRowType3](required); + multi_rows6:[KeyValue_int32_TestMultiRowType2](required); + multi_rows7:[KeyValue_int32_int32](required); +} +table TestMultiRowType1 { + id:int32; + x:int32; +} +table TestMultiRowType2 { + id:int32; + x:int32; + y:float32; +} +table TestMultiRowType3 { + id:int32; + items:[TestMultiRowType1](required); +} +table TestTestMultiColumn { + id:int32; + a:TestFoo(required); + b:TestFoo(required); + c:TestFoo(required); +} +table TestFoo { + y1:int32; + y2:int32; + y3:int32; +} +table TestMultiRowTitle { + id:int32; + name:string; + x1:TestH1(required); + x2_0:TestH2; + x2:[TestH2](required); + x3:[TestH2](required); + x4:[TestH2](required); +} +table TestH1 { + y2:TestH2(required); + y3:int32; +} +table TestH2 { + z2:int32; + z3:int32; +} +table TestTestNull { + id:int32; + x1:int32; + x2:TestDemoEnum; + x3:TestDemoType1; + x4:TestDemoDynamic; + s1:string; + s2:string; +} +table TestDemoPrimitiveTypesTable { + x1:bool; + x2:ubyte; + x3:int16; + x4:int32; + x5:int64; + x6:float32; + x7:float64; + s1:string; + s2:string; + v2:vec2(required); + v3:vec3(required); + v4:vec4(required); + t1:int64; +} +table vec2 { + x:float32; + y:float32; +} +table vec3 { + x:float32; + y:float32; + z:float32; +} +table vec4 { + x:float32; + y:float32; + z:float32; + w:float32; +} +table TestTestString { + id:string; + s1:string; + s2:string; + cs1:TestCompactString(required); + cs2:TestCompactString(required); +} +table TestCompactString { + id:int32; + s2:string; + s3:string; +} +table TestDemoGroup { + id:int32; + x5:TestInnerGroup(required); +} +table TestInnerGroup { + y1:int32; +} +table TestTestGlobal { + unlock_equip:int32; + unlock_hero:int32; +} +table TestTestBeRef { + id:int32; + count:int32; +} +table TestTestRef { + id:int32; + x1:int32; + x1_2:int32; + x2:int32; + x3:int32; + x4:int32; + a1:[int32](required); + a2:[int32](required); + b1:[int32](required); + b2:[int32](required); + c1:[int32](required); + c2:[int32](required); + d1:[KeyValue_int32_int32](required); + d2:[KeyValue_int32_int32](required); + e1:int32; + e2:int64; + e3:string; + f1:int32; + f2:int64; + f3:string; + s1:TestRefDynamicBase(required); +} +table TestRefBean { + x:int32; + arr:[int32](required); +} +table TestTestSize { + id:int32; + x1:[int32](required); + x2:[int32](required); + x3:[int32](required); + x4:[KeyValue_int32_int32](required); +} +table TestTestSet { + id:int32; + x0:string; + x1:[int32](required); + x2:[int64](required); + x3:[string](required); + x4:[TestDemoEnum](required); +} +table TestDetectEncoding { + id:int32; + name:string; +} +table TestItem { + id:int32; + name:string; + desc:string; + num:int32; + price:int32; +} +table TestEquipment { + id:int32; + name:string; + desc:string; + attr:TestDemoEnum; + value:int32; +} +table TestDecorator { + id:int32; + name:string; + desc:string; + duration:int32; +} +table TestTestIndex { + id:int32; + eles:[TestDemoType1](required); +} +table TestTestMap { + id:int32; + x1:[KeyValue_int32_int32](required); + x2:[KeyValue_int64_int32](required); + x3:[KeyValue_string_int32](required); + x4:[KeyValue_TestDemoEnum_int32](required); +} +table TestExcelFromJson { + x4:int32; + x1:bool; + x5:int64; + x6:float32; + s1:string; + s2:string; + t1:int64; + x12:TestDemoType1(required); + x13:TestDemoEnum; + x14:TestDemoDynamic(required); + k1:[int32](required); + k8:[KeyValue_int32_int32](required); + k9:[TestDemoE2](required); + k15:[TestDemoDynamic](required); +} +table TestCompositeJsonTable1 { + id:int32; + x:string; +} +table TestCompositeJsonTable2 { + id:int32; + y:int32; +} +table TestCompositeJsonTable3 { + a:int32; + b:int32; +} +table TestExcelFromJsonMultiRow { + id:int32; + x:int32; + items:[TestTestRow](required); +} +table TestTestRow { + x:int32; + y:bool; + z:string; + a:TestTest3(required); + b:[int32](required); +} +table TestTest3 { + x:int32; + y:int32; +} +table TestTestScriptableObject { + id:int32; + desc:string; + rate:float32; + num:int32; + v2:vec2(required); + v3:vec3(required); + v4:vec4(required); +} +table TestTestMapper { + id:int32; + audio_type:AudioType; + v2:vec2(required); +} +table DefineFromExcel2 { + id:int32; + x1:bool; + x5:int64; + x6:float32; + x8:int32; + x10:string; + x13:TestDemoEnum; + x13_2:TestDemoFlag; + x14:TestDemoDynamic(required); + x15:TestShape(required); + v2:vec2(required); + t1:int64; + k1:[int32](required); + k2:[int32](required); + k8:[KeyValue_int32_int32](required); + k9:[TestDemoE2](required); + k10:[vec3](required); + k11:[vec4](required); +} +table TestCircle { + radius:float32; +} +table Test2Rectangle { + width:float32; + height:float32; +} + +table KeyValue_int32_int32 { + key: int32; + value: int32; +} +table KeyValue_int32_TestMultiRowType2 { + key: int32; + value: TestMultiRowType2(required); +} +table KeyValue_int64_int32 { + key: int64; + value: int32; +} +table KeyValue_string_int32 { + key: string; + value: int32; +} +table KeyValue_TestDemoEnum_int32 { + key: TestDemoEnum; + value: int32; +} + +table AiTbBlackboard { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[AiBlackboard](required); +} + +root_type AiTbBlackboard; +table AiTbBehaviorTree { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[AiBehaviorTree](required); +} + +root_type AiTbBehaviorTree; +table CommonTbGlobalConfig { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[CommonGlobalConfig](required); +} + +root_type CommonTbGlobalConfig; +table ItemTbItem { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[ItemItem](required); +} + +root_type ItemTbItem; +table L10nTbL10NDemo { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[L10nL10NDemo](required); +} + +root_type L10nTbL10NDemo; +table L10nTbPatchDemo { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[L10nPatchDemo](required); +} + +root_type L10nTbPatchDemo; +table TagTbTestTag { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TagTestTag](required); +} + +root_type TagTbTestTag; +table TestTbFullTypes { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestDemoType2](required); +} + +root_type TestTbFullTypes; +table TestTbSingleton { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestDemoSingletonType](required); +} + +root_type TestTbSingleton; +table TestTbNotIndexList { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestNotIndexList](required); +} + +root_type TestTbNotIndexList; +table TestTbMultiUnionIndexList { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestMultiUnionIndexList](required); +} + +root_type TestTbMultiUnionIndexList; +table TestTbMultiIndexList { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestMultiIndexList](required); +} + +root_type TestTbMultiIndexList; +table TestTbDataFromMisc { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestDemoType2](required); +} + +root_type TestTbDataFromMisc; +table TestTbMultiRowRecord { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestMultiRowRecord](required); +} + +root_type TestTbMultiRowRecord; +table TestTbTestMultiColumn { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestMultiColumn](required); +} + +root_type TestTbTestMultiColumn; +table TestTbMultiRowTitle { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestMultiRowTitle](required); +} + +root_type TestTbMultiRowTitle; +table TestTbTestNull { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestNull](required); +} + +root_type TestTbTestNull; +table TestTbDemoPrimitive { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestDemoPrimitiveTypesTable](required); +} + +root_type TestTbDemoPrimitive; +table TestTbTestString { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestString](required); +} + +root_type TestTbTestString; +table TestTbDemoGroup { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestDemoGroup](required); +} + +root_type TestTbDemoGroup; +table TestTbTestGlobal { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestGlobal](required); +} + +root_type TestTbTestGlobal; +table TestTbTestBeRef { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestBeRef](required); +} + +root_type TestTbTestBeRef; +table TestTbTestBeRef2 { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestBeRef](required); +} + +root_type TestTbTestBeRef2; +table TestTbTestRef { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestRef](required); +} + +root_type TestTbTestRef; +table TestTbTestSize { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestSize](required); +} + +root_type TestTbTestSize; +table TestTbTestSet { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestSet](required); +} + +root_type TestTbTestSet; +table TestTbDetectCsvEncoding { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestDetectEncoding](required); +} + +root_type TestTbDetectCsvEncoding; +table TestTbItem2 { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestItemBase](required); +} + +root_type TestTbItem2; +table TestTbTestIndex { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestIndex](required); +} + +root_type TestTbTestIndex; +table TestTbTestMap { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestMap](required); +} + +root_type TestTbTestMap; +table TestTbExcelFromJson { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestExcelFromJson](required); +} + +root_type TestTbExcelFromJson; +table TestTbCompositeJsonTable1 { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestCompositeJsonTable1](required); +} + +root_type TestTbCompositeJsonTable1; +table TestTbCompositeJsonTable2 { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestCompositeJsonTable2](required); +} + +root_type TestTbCompositeJsonTable2; +table TestTbCompositeJsonTable3 { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestCompositeJsonTable3](required); +} + +root_type TestTbCompositeJsonTable3; +table TestTbExcelFromJsonMultiRow { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestExcelFromJsonMultiRow](required); +} + +root_type TestTbExcelFromJsonMultiRow; +table TestTbTestScriptableObject { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestScriptableObject](required); +} + +root_type TestTbTestScriptableObject; +table TestTbTestMapper { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[TestTestMapper](required); +} + +root_type TestTbTestMapper; +table TestTbDefineFromExcel2 { + // WARN! The name 'data_list' is used by FlatBuffersJsonExporter. don't modify it! + data_list:[DefineFromExcel2](required); +} + +root_type TestTbDefineFromExcel2; + + diff --git a/luban_examples/Projects/GDScript_json/Scenes/node_2d.tscn b/luban_examples/Projects/GDScript_json/Scenes/node_2d.tscn new file mode 100644 index 00000000..894e9dfd --- /dev/null +++ b/luban_examples/Projects/GDScript_json/Scenes/node_2d.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://2hxc3egwbji6"] + +[ext_resource type="Script" path="res://main.gd" id="1_onodp"] + +[node name="Node2D" type="Node2D"] +script = ExtResource("1_onodp") diff --git a/luban_examples/Projects/GDScript_json/gen.bat b/luban_examples/Projects/GDScript_json/gen.bat new file mode 100644 index 00000000..27db7aec --- /dev/null +++ b/luban_examples/Projects/GDScript_json/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c gdscript-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=gen ^ + -x outputDataDir=json ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GDScript_json/gen/schema.gd b/luban_examples/Projects/GDScript_json/gen/schema.gd new file mode 100644 index 00000000..72c6648c --- /dev/null +++ b/luban_examples/Projects/GDScript_json/gen/schema.gd @@ -0,0 +1,2886 @@ + +# +# This code was generated by a tool. +# Changes to this file may cause incorrect behavior and will be lost if +# the code is regenerated. +# + +@tool +class_name Schema +extends RefCounted + + +enum AiEExecutor +{ + CLIENT = 0, + SERVER = 1, +} + + +enum AiEKeyType +{ + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, +} + + +enum AiEFlowAbortMode +{ + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, +} + + +enum AiEFinishMode +{ + IMMEDIATE = 0, + DELAYED = 1, +} + + +enum AiENotifyObserverMode +{ + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, +} + + +enum AiEOperator +{ + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, +} + + +enum AudioType +{ + UNKNOWN = 0, + ACC = 1, + AIFF = 2, +} + + +enum CommonEBoolOperator +{ + AND = 0, + OR = 1, +} + + +## 道具品质 +enum ItemEItemQuality +{ + ## 白 + WHITE = 0, + ## 绿 + GREEN = 1, + ## 蓝 + BLUE = 2, + ## 紫 + PURPLE = 3, + ## 金 + GOLDEN = 4, +} + + +enum ItemECurrencyType +{ + ## 钻石 + DIAMOND = 1, + ## 金币 + GOLD = 2, + ## 银币 + SILVER = 3, + ## 经验 + EXP = 4, + ## 能量点 + POWER_POINT = 5, +} + + +enum ItemEMajorType +{ + ## 货币 + CURRENCY = 1, + ## 服装 + CLOTH = 2, + ## 任务 + QUEST = 3, + ## 消耗品 + CONSUMABLES = 4, + ## 宝箱 + TREASURE_BOX = 5, + ## 成就和称谓 + ACHIEVEMENT_AND_TITLE = 6, + ## 头像框 + HEAD_FRAME = 7, + ## 语音 + VOICE = 8, + ## 动作 + ACTION = 9, + ## 扩容道具 + EXPANSION = 10, + ## 制作材料 + MATERIAL = 11, +} + + +enum ItemEMinorType +{ + ## 钻石 + DIAMOND = 101, + ## 金币 + GOLD = 102, + ## 银币 + SILVER = 103, + ## 经验 + EXP = 104, + ## 能量点 + POWER_POINT = 105, + ## 发型 + HAIR_STYLE = 210, + ## 外套 + COAT = 220, + ## 上衣 + UPPER_JACKET = 230, + ## 裤子 + TROUSERS = 241, + ## 裙子 + SKIRT = 242, + ## 袜子 + SOCKS = 250, + ## 鞋子 + SHOES = 260, + ## 发饰 + HAIR_ACCESSORY = 271, + ## 帽子 + HAT = 272, + ## 耳饰 + EARRING = 273, + ## 颈饰 + NECKLACE = 274, + ## 腕饰 + BRACELET = 275, + ## 发箍 + HAIR_CLASP = 276, + ## 手套 + GLOVE = 277, + ## 手持物 + HANDHELD_OBJECT = 278, + ## 特殊 + SPECIAL = 279, + ## 底妆 + BASE_COSMETIC = 281, + ## 眉妆 + EYEBROW_COSMETIC = 282, + ## 睫毛 + EYELASH = 283, + ## 美瞳 + COSMETIC_CONTACT_LENSES = 284, + ## 唇妆 + LIP_COSMETIC = 285, + ## 肤色 + SKIN_COLOR = 286, + ## 连衣裙 + ONE_PIECE_DRESS = 290, + ## 换装场景 + SWITCH_CLOTHES_SCENE = 291, + ## 任务道具 + QUEST = 301, + ## 投掷物 + CAST = 401, + ## 刀剑 + SWORD = 421, + ## 弓箭 + BOW_ARROW = 422, + ## 法杖 + WANDS = 423, + ## 特殊工具 + SPECIAL_TOOL = 424, + ## 食物 + FOOD = 403, + ## 宝箱 + TREASURE_BOX = 501, + ## 钥匙 + KEY = 502, + ## 多选一宝箱 + MULTI_CHOOSE_TREASURE_BOX = 503, + ## 成就相关 + ACHIEVEMENT = 601, + ## 称谓相关 + TITLE = 602, + ## 头像框 + AVATAR_FRAME = 701, + ## 语音 + VOICE = 801, + ## 特殊待机动作 + IDLE_POSE = 901, + ## 拍照动作 + PHOTO_POSE = 902, + ## 背包 + BAG = 1001, + ## 好友数量 + FRIEND_CAPACITY = 1002, + ## 制作材料 + CONSTRUCTION_MATERIAL = 1101, + ## 设计图纸 + DESIGN_DRAWING = 1102, +} + + +enum ItemEClothersStarQualityType +{ + ## 一星 + ONE = 1, + ## 二星 + TWO = 2, + ## 三星 + THREE = 3, + ## 四星 + FOUR = 4, + ## 五星 + FIVE = 5, + ## 六星 + SIX = 6, + ## 七星 + SEVEN = 7, + ## 八星 + EIGHT = 8, + ## 九星 + NINE = 9, + ## 十星 + TEN = 10, +} + + +enum ItemEClothersTag +{ + ## 防晒 + FANG_SHAI = 1, + ## 舞者 + WU_ZHE = 2, +} + + +enum ItemEUseType +{ + ## 手动 + MANUAL = 0, + ## 自动 + AUTO = 1, +} + + +enum ItemEClothesHidePartType +{ + ## 胸部 + CHEST = 0, + ## 手 + HEAD = 1, + ## 脊柱上 + SPINE_UPPER = 2, + ## 脊柱下 + SPINE_LOWER = 3, + ## 臀部 + HIP = 4, + ## 腿上 + LEG_UPPER = 5, + ## 腿中 + LEG_MIDDLE = 6, + ## 腿下 + LEG_LOWER = 7, +} + + +enum ItemEClothesPropertyType +{ + ## 简约 + JIAN_YUE = 1, + ## 华丽 + HUA_LI = 2, + ## 可爱 + KE_AI = 3, + ## 成熟 + CHENG_SHU = 4, + ## 活泼 + HUO_PO = 5, + ## 优雅 + YOU_YA = 6, + ## 清纯 + QING_CHUN = 7, + ## 性感 + XING_GAN = 8, + ## 清凉 + QING_LIANG = 9, + ## 保暖 + BAO_NUAN = 10, +} + + +enum TestDemoEnum +{ + NONE = 0, + ## aa + A = 1, + ## bb + B = 2, + ## cc + C = 4, + ## dd + D = 5, + Any = 6, +} + + +enum TestDemoFlag +{ + A = 1, + B = 2, + C = 4, + D = 8, +} + + +enum TestETestUeType +{ + ## 白 + WHITE = 0, + BLACK = 1, +} + + +enum TestETestEmptyEnum +{ +} + + +enum TestETestEmptyEnum2 +{ + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, +} + + +enum TestETestQuality +{ + ## 最高品质 + A = 1, + ## 黑色的 + B = 2, + ## 蓝色的 + C = 3, + ## 最差品质 + D = 4, +} + + +enum TestAccessFlag +{ + WRITE = 1, + READ = 2, + TRUNCATE = 4, + NEW = 8, + READ_WRITE = WRITE|READ, +} + + +class Vec2: + var x: float + var y: float + + func _init(_json_) -> void: + self.x = _json_["x"] + self.y = _json_["y"] + + +class Vec3: + var x: float + var y: float + var z: float + + func _init(_json_) -> void: + self.x = _json_["x"] + self.y = _json_["y"] + self.z = _json_["z"] + + +class Vec4: + var x: float + var y: float + var z: float + var w: float + + func _init(_json_) -> void: + self.x = _json_["x"] + self.y = _json_["y"] + self.z = _json_["z"] + self.w = _json_["w"] + + +## 这是个测试excel结构 +class TestTestExcelBean1: + ## 最高品质 + var x1: int + ## 黑色的 + var x2: String + ## 蓝色的 + var x3: int + ## 最差品质 + var x4: float + + func _init(_json_) -> void: + self.x1 = _json_["x1"] + self.x2 = _json_["x2"] + self.x3 = _json_["x3"] + self.x4 = _json_["x4"] + + +class AiBlackboard: + var name: String + var desc: String + var parent_name: String + var keys: Array[AiBlackboardKey] + + func _init(_json_) -> void: + self.name = _json_["name"] + self.desc = _json_["desc"] + self.parent_name = _json_["parent_name"] + self.keys = [] + for _ele in _json_["keys"]: var _e: AiBlackboardKey; _e = AiBlackboardKey.new(_ele); self.keys.append(_e) + + +class AiBlackboardKey: + var name: String + var desc: String + var is_static: bool + var type: int + var type_class_name: String + + func _init(_json_) -> void: + self.name = _json_["name"] + self.desc = _json_["desc"] + self.is_static = _json_["is_static"] + self.type = _json_["type"] + self.type_class_name = _json_["type_class_name"] + + +class AiBehaviorTree: + var id: int + var name: String + var desc: String + var blackboard_id: String + var root: AiComposeNode + + func _init(_json_) -> void: + self.id = _json_["id"] + self.name = _json_["name"] + self.desc = _json_["desc"] + self.blackboard_id = _json_["blackboard_id"] + self.root = AiComposeNode.fromJson(_json_["root"]) + + +class AiNode: + var id: int + var node_name: String + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "UeSetDefaultFocus": return AiUeSetDefaultFocus.new(_json_) + "ExecuteTimeStatistic": return AiExecuteTimeStatistic.new(_json_) + "ChooseTarget": return AiChooseTarget.new(_json_) + "KeepFaceTarget": return AiKeepFaceTarget.new(_json_) + "GetOwnerPlayer": return AiGetOwnerPlayer.new(_json_) + "UpdateDailyBehaviorProps": return AiUpdateDailyBehaviorProps.new(_json_) + "UeLoop": return AiUeLoop.new(_json_) + "UeCooldown": return AiUeCooldown.new(_json_) + "UeTimeLimit": return AiUeTimeLimit.new(_json_) + "UeBlackboard": return AiUeBlackboard.new(_json_) + "UeForceSuccess": return AiUeForceSuccess.new(_json_) + "IsAtLocation": return AiIsAtLocation.new(_json_) + "DistanceLessThan": return AiDistanceLessThan.new(_json_) + "Sequence": return AiSequence.new(_json_) + "Selector": return AiSelector.new(_json_) + "SimpleParallel": return AiSimpleParallel.new(_json_) + "UeWait": return AiUeWait.new(_json_) + "UeWaitBlackboardTime": return AiUeWaitBlackboardTime.new(_json_) + "MoveToTarget": return AiMoveToTarget.new(_json_) + "ChooseSkill": return AiChooseSkill.new(_json_) + "MoveToRandomLocation": return AiMoveToRandomLocation.new(_json_) + "MoveToLocation": return AiMoveToLocation.new(_json_) + "DebugPrint": return AiDebugPrint.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + self.id = _json_["id"] + self.node_name = _json_["node_name"] + + +class AiService extends AiNode: + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "UeSetDefaultFocus": return AiUeSetDefaultFocus.new(_json_) + "ExecuteTimeStatistic": return AiExecuteTimeStatistic.new(_json_) + "ChooseTarget": return AiChooseTarget.new(_json_) + "KeepFaceTarget": return AiKeepFaceTarget.new(_json_) + "GetOwnerPlayer": return AiGetOwnerPlayer.new(_json_) + "UpdateDailyBehaviorProps": return AiUpdateDailyBehaviorProps.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + super(_json_) + pass + + +class AiUeSetDefaultFocus extends AiService: + var keyboard_key: String + + func _init(_json_) -> void: + super(_json_) + self.keyboard_key = _json_["keyboard_key"] + + +class AiExecuteTimeStatistic extends AiService: + + func _init(_json_) -> void: + super(_json_) + pass + + +class AiChooseTarget extends AiService: + var result_target_key: String + + func _init(_json_) -> void: + super(_json_) + self.result_target_key = _json_["result_target_key"] + + +class AiKeepFaceTarget extends AiService: + var target_actor_key: String + + func _init(_json_) -> void: + super(_json_) + self.target_actor_key = _json_["target_actor_key"] + + +class AiGetOwnerPlayer extends AiService: + var player_actor_key: String + + func _init(_json_) -> void: + super(_json_) + self.player_actor_key = _json_["player_actor_key"] + + +class AiUpdateDailyBehaviorProps extends AiService: + var satiety_key: String + var energy_key: String + var mood_key: String + var satiety_lower_threshold_key: String + var satiety_upper_threshold_key: String + var energy_lower_threshold_key: String + var energy_upper_threshold_key: String + var mood_lower_threshold_key: String + var mood_upper_threshold_key: String + + func _init(_json_) -> void: + super(_json_) + self.satiety_key = _json_["satiety_key"] + self.energy_key = _json_["energy_key"] + self.mood_key = _json_["mood_key"] + self.satiety_lower_threshold_key = _json_["satiety_lower_threshold_key"] + self.satiety_upper_threshold_key = _json_["satiety_upper_threshold_key"] + self.energy_lower_threshold_key = _json_["energy_lower_threshold_key"] + self.energy_upper_threshold_key = _json_["energy_upper_threshold_key"] + self.mood_lower_threshold_key = _json_["mood_lower_threshold_key"] + self.mood_upper_threshold_key = _json_["mood_upper_threshold_key"] + + +class AiDecorator extends AiNode: + var flow_abort_mode: int + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "UeLoop": return AiUeLoop.new(_json_) + "UeCooldown": return AiUeCooldown.new(_json_) + "UeTimeLimit": return AiUeTimeLimit.new(_json_) + "UeBlackboard": return AiUeBlackboard.new(_json_) + "UeForceSuccess": return AiUeForceSuccess.new(_json_) + "IsAtLocation": return AiIsAtLocation.new(_json_) + "DistanceLessThan": return AiDistanceLessThan.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + super(_json_) + self.flow_abort_mode = _json_["flow_abort_mode"] + + +class AiUeLoop extends AiDecorator: + var num_loops: int + var infinite_loop: bool + var infinite_loop_timeout_time: float + + func _init(_json_) -> void: + super(_json_) + self.num_loops = _json_["num_loops"] + self.infinite_loop = _json_["infinite_loop"] + self.infinite_loop_timeout_time = _json_["infinite_loop_timeout_time"] + + +class AiUeCooldown extends AiDecorator: + var cooldown_time: float + + func _init(_json_) -> void: + super(_json_) + self.cooldown_time = _json_["cooldown_time"] + + +class AiUeTimeLimit extends AiDecorator: + var limit_time: float + + func _init(_json_) -> void: + super(_json_) + self.limit_time = _json_["limit_time"] + + +class AiUeBlackboard extends AiDecorator: + var notify_observer: int + var blackboard_key: String + var key_query: AiKeyQueryOperator + + func _init(_json_) -> void: + super(_json_) + self.notify_observer = _json_["notify_observer"] + self.blackboard_key = _json_["blackboard_key"] + self.key_query = AiKeyQueryOperator.fromJson(_json_["key_query"]) + + +class AiKeyQueryOperator: + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "IsSet": return AiIsSet.new(_json_) + "IsNotSet": return AiIsNotSet.new(_json_) + "BinaryOperator": return AiBinaryOperator.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + pass + + +class AiIsSet extends AiKeyQueryOperator: + + func _init(_json_) -> void: + super(_json_) + pass + + +class AiIsNotSet extends AiKeyQueryOperator: + + func _init(_json_) -> void: + super(_json_) + pass + + +class AiBinaryOperator extends AiKeyQueryOperator: + var oper: int + var data: AiKeyData + + func _init(_json_) -> void: + super(_json_) + self.oper = _json_["oper"] + self.data = AiKeyData.fromJson(_json_["data"]) + + +class AiKeyData: + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "FloatKeyData": return AiFloatKeyData.new(_json_) + "IntKeyData": return AiIntKeyData.new(_json_) + "StringKeyData": return AiStringKeyData.new(_json_) + "BlackboardKeyData": return AiBlackboardKeyData.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + pass + + +class AiFloatKeyData extends AiKeyData: + var value: float + + func _init(_json_) -> void: + super(_json_) + self.value = _json_["value"] + + +class AiIntKeyData extends AiKeyData: + var value: int + + func _init(_json_) -> void: + super(_json_) + self.value = _json_["value"] + + +class AiStringKeyData extends AiKeyData: + var value: String + + func _init(_json_) -> void: + super(_json_) + self.value = _json_["value"] + + +class AiBlackboardKeyData extends AiKeyData: + var value: String + + func _init(_json_) -> void: + super(_json_) + self.value = _json_["value"] + + +class AiUeForceSuccess extends AiDecorator: + + func _init(_json_) -> void: + super(_json_) + pass + + +class AiIsAtLocation extends AiDecorator: + var acceptable_radius: float + var keyboard_key: String + var inverse_condition: bool + + func _init(_json_) -> void: + super(_json_) + self.acceptable_radius = _json_["acceptable_radius"] + self.keyboard_key = _json_["keyboard_key"] + self.inverse_condition = _json_["inverse_condition"] + + +class AiDistanceLessThan extends AiDecorator: + var actor1_key: String + var actor2_key: String + var distance: float + var reverse_result: bool + + func _init(_json_) -> void: + super(_json_) + self.actor1_key = _json_["actor1_key"] + self.actor2_key = _json_["actor2_key"] + self.distance = _json_["distance"] + self.reverse_result = _json_["reverse_result"] + + +class AiFlowNode extends AiNode: + var decorators: Array[AiDecorator] + var services: Array[AiService] + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "Sequence": return AiSequence.new(_json_) + "Selector": return AiSelector.new(_json_) + "SimpleParallel": return AiSimpleParallel.new(_json_) + "UeWait": return AiUeWait.new(_json_) + "UeWaitBlackboardTime": return AiUeWaitBlackboardTime.new(_json_) + "MoveToTarget": return AiMoveToTarget.new(_json_) + "ChooseSkill": return AiChooseSkill.new(_json_) + "MoveToRandomLocation": return AiMoveToRandomLocation.new(_json_) + "MoveToLocation": return AiMoveToLocation.new(_json_) + "DebugPrint": return AiDebugPrint.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + super(_json_) + self.decorators = [] + for _ele in _json_["decorators"]: var _e: AiDecorator; _e = AiDecorator.fromJson(_ele); self.decorators.append(_e) + self.services = [] + for _ele in _json_["services"]: var _e: AiService; _e = AiService.fromJson(_ele); self.services.append(_e) + + +class AiComposeNode extends AiFlowNode: + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "Sequence": return AiSequence.new(_json_) + "Selector": return AiSelector.new(_json_) + "SimpleParallel": return AiSimpleParallel.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + super(_json_) + pass + + +class AiSequence extends AiComposeNode: + var children: Array[AiFlowNode] + + func _init(_json_) -> void: + super(_json_) + self.children = [] + for _ele in _json_["children"]: var _e: AiFlowNode; _e = AiFlowNode.fromJson(_ele); self.children.append(_e) + + +class AiSelector extends AiComposeNode: + var children: Array[AiFlowNode] + + func _init(_json_) -> void: + super(_json_) + self.children = [] + for _ele in _json_["children"]: var _e: AiFlowNode; _e = AiFlowNode.fromJson(_ele); self.children.append(_e) + + +class AiSimpleParallel extends AiComposeNode: + var finish_mode: int + var main_task: AiTask + var background_node: AiFlowNode + + func _init(_json_) -> void: + super(_json_) + self.finish_mode = _json_["finish_mode"] + self.main_task = AiTask.fromJson(_json_["main_task"]) + self.background_node = AiFlowNode.fromJson(_json_["background_node"]) + + +class AiTask extends AiFlowNode: + var ignore_restart_self: bool + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "UeWait": return AiUeWait.new(_json_) + "UeWaitBlackboardTime": return AiUeWaitBlackboardTime.new(_json_) + "MoveToTarget": return AiMoveToTarget.new(_json_) + "ChooseSkill": return AiChooseSkill.new(_json_) + "MoveToRandomLocation": return AiMoveToRandomLocation.new(_json_) + "MoveToLocation": return AiMoveToLocation.new(_json_) + "DebugPrint": return AiDebugPrint.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + super(_json_) + self.ignore_restart_self = _json_["ignore_restart_self"] + + +class AiUeWait extends AiTask: + var wait_time: float + var random_deviation: float + + func _init(_json_) -> void: + super(_json_) + self.wait_time = _json_["wait_time"] + self.random_deviation = _json_["random_deviation"] + + +class AiUeWaitBlackboardTime extends AiTask: + var blackboard_key: String + + func _init(_json_) -> void: + super(_json_) + self.blackboard_key = _json_["blackboard_key"] + + +class AiMoveToTarget extends AiTask: + var target_actor_key: String + var acceptable_radius: float + + func _init(_json_) -> void: + super(_json_) + self.target_actor_key = _json_["target_actor_key"] + self.acceptable_radius = _json_["acceptable_radius"] + + +class AiChooseSkill extends AiTask: + var target_actor_key: String + var result_skill_id_key: String + + func _init(_json_) -> void: + super(_json_) + self.target_actor_key = _json_["target_actor_key"] + self.result_skill_id_key = _json_["result_skill_id_key"] + + +class AiMoveToRandomLocation extends AiTask: + var origin_position_key: String + var radius: float + + func _init(_json_) -> void: + super(_json_) + self.origin_position_key = _json_["origin_position_key"] + self.radius = _json_["radius"] + + +class AiMoveToLocation extends AiTask: + var acceptable_radius: float + + func _init(_json_) -> void: + super(_json_) + self.acceptable_radius = _json_["acceptable_radius"] + + +class AiDebugPrint extends AiTask: + var text: String + + func _init(_json_) -> void: + super(_json_) + self.text = _json_["text"] + + +class CommonGlobalConfig: + ## 背包容量 + var x1: int + var x2: int + var x3: int + var x4: int + var x5: int + var x6: int + var x7: Array[int] + + func _init(_json_) -> void: + self.x1 = _json_["x1"] + self.x2 = _json_["x2"] + self.x3 = _json_["x3"] + self.x4 = _json_["x4"] + self.x5 = _json_["x5"] + self.x6 = _json_["x6"] + self.x7 = [] + for _ele in _json_["x7"]: var _e: int; _e = _ele; self.x7.append(_e) + + +## 道具 +class ItemItem: + ## 道具id + var id: int + var name: String + var major_type: int + var minor_type: int + var max_pile_num: int + var quality: int + var icon: String + var icon_backgroud: String + var icon_mask: String + var desc: String + var show_order: int + + func _init(_json_) -> void: + self.id = _json_["id"] + self.name = _json_["name"] + self.major_type = _json_["major_type"] + self.minor_type = _json_["minor_type"] + self.max_pile_num = _json_["max_pile_num"] + self.quality = _json_["quality"] + self.icon = _json_["icon"] + self.icon_backgroud = _json_["icon_backgroud"] + self.icon_mask = _json_["icon_mask"] + self.desc = _json_["desc"] + self.show_order = _json_["show_order"] + + +class L10nL10NDemo: + var id: int + var text: String + + func _init(_json_) -> void: + self.id = _json_["id"] + self.text = _json_["text"] + + +class L10nPatchDemo: + var id: int + var value: int + + func _init(_json_) -> void: + self.id = _json_["id"] + self.value = _json_["value"] + + +class TagTestTag: + var id: int + var value: String + + func _init(_json_) -> void: + self.id = _json_["id"] + self.value = _json_["value"] + + +class TestDemoType2: + var x4: int + var x1: bool + var x2: int + var x3: int + var x5: int + var x6: float + var x7: float + var x8_0: int + var x8: int + var x9: int + var x10: String + var x12: TestDemoType1 + var x13: int + var x14: TestDemoDynamic + var s1: String + var t1: int + var k1: Array[int] + var k2: Array[int] + var k5: Array[int] + var k8: Dictionary + var k9: Array[TestDemoE2] + var k15: Array[TestDemoDynamic] + + func _init(_json_) -> void: + self.x4 = _json_["x4"] + self.x1 = _json_["x1"] + self.x2 = _json_["x2"] + self.x3 = _json_["x3"] + self.x5 = _json_["x5"] + self.x6 = _json_["x6"] + self.x7 = _json_["x7"] + self.x8_0 = _json_["x8_0"] + self.x8 = _json_["x8"] + self.x9 = _json_["x9"] + self.x10 = _json_["x10"] + self.x12 = TestDemoType1.new(_json_["x12"]) + self.x13 = _json_["x13"] + self.x14 = TestDemoDynamic.fromJson(_json_["x14"]) + self.s1 = _json_["s1"] + self.t1 = _json_["t1"] + self.k1 = [] + for _ele in _json_["k1"]: var _e: int; _e = _ele; self.k1.append(_e) + self.k2 = [] + for _ele in _json_["k2"]: var _e: int; _e = _ele; self.k2.append(_e) + self.k5 = [] + for _ele in _json_["k5"]: var _e: int; _e = _ele; self.k5.append(_e) + self.k8 = {} + for _e in _json_["k8"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.k8[_k] = _v + self.k9 = [] + for _ele in _json_["k9"]: var _e: TestDemoE2; _e = TestDemoE2.new(_ele); self.k9.append(_e) + self.k15 = [] + for _ele in _json_["k15"]: var _e: TestDemoDynamic; _e = TestDemoDynamic.fromJson(_ele); self.k15.append(_e) + + +class TestDemoType1: + var x1: int + + func _init(_json_) -> void: + self.x1 = _json_["x1"] + + +class TestDemoDynamic: + var x1: int + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "DemoD2": return TestDemoD2.new(_json_) + "DemoE1": return TestDemoE1.new(_json_) + "test.login.RoleInfo": return Test_loginRoleInfo.new(_json_) + "DemoD5": return TestDemoD5.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + self.x1 = _json_["x1"] + + +class TestDemoD2 extends TestDemoDynamic: + var x2: int + + func _init(_json_) -> void: + super(_json_) + self.x2 = _json_["x2"] + + +class TestDemoD3 extends TestDemoDynamic: + var x3: int + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "DemoE1": return TestDemoE1.new(_json_) + "test.login.RoleInfo": return Test_loginRoleInfo.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + super(_json_) + self.x3 = _json_["x3"] + + +class TestDemoE1 extends TestDemoD3: + var x4: int + + func _init(_json_) -> void: + super(_json_) + self.x4 = _json_["x4"] + + +class Test_loginRoleInfo extends TestDemoD3: + var role_id: int + + func _init(_json_) -> void: + super(_json_) + self.role_id = _json_["role_id"] + + +class TestDemoD5 extends TestDemoDynamic: + var time: TestDateTimeRange + + func _init(_json_) -> void: + super(_json_) + self.time = TestDateTimeRange.new(_json_["time"]) + + +class TestDateTimeRange: + var start_time: int + var end_time: int + + func _init(_json_) -> void: + self.start_time = _json_["start_time"] + self.end_time = _json_["end_time"] + + +class TestDemoE2: + var y1: int + var y2: bool + + func _init(_json_) -> void: + if _json_.get('y1') != null: self.y1 = _json_["y1"] + self.y2 = _json_["y2"] + + +class TestDemoSingletonType: + var id: int + var name: String + var date: TestDemoDynamic + + func _init(_json_) -> void: + self.id = _json_["id"] + self.name = _json_["name"] + self.date = TestDemoDynamic.fromJson(_json_["date"]) + + +class TestNotIndexList: + var x: int + var y: int + + func _init(_json_) -> void: + self.x = _json_["x"] + self.y = _json_["y"] + + +class TestMultiUnionIndexList: + var id1: int + var id2: int + var id3: String + var num: int + var desc: String + + func _init(_json_) -> void: + self.id1 = _json_["id1"] + self.id2 = _json_["id2"] + self.id3 = _json_["id3"] + self.num = _json_["num"] + self.desc = _json_["desc"] + + +class TestMultiIndexList: + var id1: int + var id2: int + var id3: String + var num: int + var desc: String + + func _init(_json_) -> void: + self.id1 = _json_["id1"] + self.id2 = _json_["id2"] + self.id3 = _json_["id3"] + self.num = _json_["num"] + self.desc = _json_["desc"] + + +class TestMultiRowRecord: + var id: int + var name: String + var one_rows: Array[TestMultiRowType1] + var multi_rows1: Array[TestMultiRowType1] + var multi_rows2: Array[TestMultiRowType1] + var multi_rows4: Dictionary + var multi_rows5: Array[TestMultiRowType3] + var multi_rows6: Dictionary + var multi_rows7: Dictionary + + func _init(_json_) -> void: + self.id = _json_["id"] + self.name = _json_["name"] + self.one_rows = [] + for _ele in _json_["one_rows"]: var _e: TestMultiRowType1; _e = TestMultiRowType1.new(_ele); self.one_rows.append(_e) + self.multi_rows1 = [] + for _ele in _json_["multi_rows1"]: var _e: TestMultiRowType1; _e = TestMultiRowType1.new(_ele); self.multi_rows1.append(_e) + self.multi_rows2 = [] + for _ele in _json_["multi_rows2"]: var _e: TestMultiRowType1; _e = TestMultiRowType1.new(_ele); self.multi_rows2.append(_e) + self.multi_rows4 = {} + for _e in _json_["multi_rows4"]: var _k: int; _k = _e[0]; var _v: TestMultiRowType2; _v = TestMultiRowType2.new(_e[1]); self.multi_rows4[_k] = _v + self.multi_rows5 = [] + for _ele in _json_["multi_rows5"]: var _e: TestMultiRowType3; _e = TestMultiRowType3.new(_ele); self.multi_rows5.append(_e) + self.multi_rows6 = {} + for _e in _json_["multi_rows6"]: var _k: int; _k = _e[0]; var _v: TestMultiRowType2; _v = TestMultiRowType2.new(_e[1]); self.multi_rows6[_k] = _v + self.multi_rows7 = {} + for _e in _json_["multi_rows7"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.multi_rows7[_k] = _v + + +class TestMultiRowType1: + var id: int + var x: int + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x = _json_["x"] + + +class TestMultiRowType2: + var id: int + var x: int + var y: float + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x = _json_["x"] + self.y = _json_["y"] + + +class TestMultiRowType3: + var id: int + var items: Array[TestMultiRowType1] + + func _init(_json_) -> void: + self.id = _json_["id"] + self.items = [] + for _ele in _json_["items"]: var _e: TestMultiRowType1; _e = TestMultiRowType1.new(_ele); self.items.append(_e) + + +class TestTestMultiColumn: + var id: int + var a: TestFoo + var b: TestFoo + var c: TestFoo + + func _init(_json_) -> void: + self.id = _json_["id"] + self.a = TestFoo.new(_json_["a"]) + self.b = TestFoo.new(_json_["b"]) + self.c = TestFoo.new(_json_["c"]) + + +class TestFoo: + var y1: int + var y2: int + var y3: int + + func _init(_json_) -> void: + self.y1 = _json_["y1"] + self.y2 = _json_["y2"] + self.y3 = _json_["y3"] + + +class TestMultiRowTitle: + var id: int + var name: String + var x1: TestH1 + var x2_0: TestH2 + var x2: Array[TestH2] + var x3: Array[TestH2] + var x4: Array[TestH2] + + func _init(_json_) -> void: + self.id = _json_["id"] + self.name = _json_["name"] + self.x1 = TestH1.new(_json_["x1"]) + if _json_.get('x2_0') != null: self.x2_0 = TestH2.new(_json_["x2_0"]) + self.x2 = [] + for _ele in _json_["x2"]: var _e: TestH2; _e = TestH2.new(_ele); self.x2.append(_e) + self.x3 = [] + for _ele in _json_["x3"]: var _e: TestH2; _e = TestH2.new(_ele); self.x3.append(_e) + self.x4 = [] + for _ele in _json_["x4"]: var _e: TestH2; _e = TestH2.new(_ele); self.x4.append(_e) + + +class TestH1: + var y2: TestH2 + var y3: int + + func _init(_json_) -> void: + self.y2 = TestH2.new(_json_["y2"]) + self.y3 = _json_["y3"] + + +class TestH2: + var z2: int + var z3: int + + func _init(_json_) -> void: + self.z2 = _json_["z2"] + self.z3 = _json_["z3"] + + +class TestTestNull: + var id: int + var x1: int + var x2: int + var x3: TestDemoType1 + var x4: TestDemoDynamic + var s1: String + var s2: String + + func _init(_json_) -> void: + self.id = _json_["id"] + if _json_.get('x1') != null: self.x1 = _json_["x1"] + if _json_.get('x2') != null: self.x2 = _json_["x2"] + if _json_.get('x3') != null: self.x3 = TestDemoType1.new(_json_["x3"]) + if _json_.get('x4') != null: self.x4 = TestDemoDynamic.fromJson(_json_["x4"]) + if _json_.get('s1') != null: self.s1 = _json_["s1"] + if _json_.get('s2') != null: self.s2 = _json_["s2"] + + +class TestDemoPrimitiveTypesTable: + var x1: bool + var x2: int + var x3: int + var x4: int + var x5: int + var x6: float + var x7: float + var s1: String + var s2: String + var v2: Vec2 + var v3: Vec3 + var v4: Vec4 + var t1: int + + func _init(_json_) -> void: + self.x1 = _json_["x1"] + self.x2 = _json_["x2"] + self.x3 = _json_["x3"] + self.x4 = _json_["x4"] + self.x5 = _json_["x5"] + self.x6 = _json_["x6"] + self.x7 = _json_["x7"] + self.s1 = _json_["s1"] + self.s2 = _json_["s2"] + self.v2 = Vec2.new(_json_["v2"]) + self.v3 = Vec3.new(_json_["v3"]) + self.v4 = Vec4.new(_json_["v4"]) + self.t1 = _json_["t1"] + + +class TestTestString: + var id: String + var s1: String + var s2: String + var cs1: TestCompactString + var cs2: TestCompactString + + func _init(_json_) -> void: + self.id = _json_["id"] + self.s1 = _json_["s1"] + self.s2 = _json_["s2"] + self.cs1 = TestCompactString.new(_json_["cs1"]) + self.cs2 = TestCompactString.new(_json_["cs2"]) + + +class TestCompactString: + var id: int + var s2: String + var s3: String + + func _init(_json_) -> void: + self.id = _json_["id"] + self.s2 = _json_["s2"] + self.s3 = _json_["s3"] + + +class TestDemoGroup: + var id: int + var x1: int + var x2: int + var x3: int + var x4: int + var x5: TestInnerGroup + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x1 = _json_["x1"] + self.x2 = _json_["x2"] + self.x3 = _json_["x3"] + self.x4 = _json_["x4"] + self.x5 = TestInnerGroup.new(_json_["x5"]) + + +class TestInnerGroup: + var y1: int + var y2: int + var y3: int + var y4: int + + func _init(_json_) -> void: + self.y1 = _json_["y1"] + self.y2 = _json_["y2"] + self.y3 = _json_["y3"] + self.y4 = _json_["y4"] + + +class TestTestGlobal: + var unlock_equip: int + var unlock_hero: int + + func _init(_json_) -> void: + self.unlock_equip = _json_["unlock_equip"] + self.unlock_hero = _json_["unlock_hero"] + + +class TestTestBeRef: + var id: int + var count: int + + func _init(_json_) -> void: + self.id = _json_["id"] + self.count = _json_["count"] + + +class TestTestRef: + var id: int + var x1: int + var x1_2: int + var x2: int + var x3: int + var x4: int + var a1: Array[int] + var a2: Array[int] + var b1: Array[int] + var b2: Array[int] + var c1: Array[int] + var c2: Array[int] + var d1: Dictionary + var d2: Dictionary + var e1: int + var e2: int + var e3: String + var f1: int + var f2: int + var f3: String + var s1: TestRefDynamicBase + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x1 = _json_["x1"] + self.x1_2 = _json_["x1_2"] + self.x2 = _json_["x2"] + self.x3 = _json_["x3"] + self.x4 = _json_["x4"] + self.a1 = [] + for _ele in _json_["a1"]: var _e: int; _e = _ele; self.a1.append(_e) + self.a2 = [] + for _ele in _json_["a2"]: var _e: int; _e = _ele; self.a2.append(_e) + self.b1 = [] + for _ele in _json_["b1"]: var _e: int; _e = _ele; self.b1.append(_e) + self.b2 = [] + for _ele in _json_["b2"]: var _e: int; _e = _ele; self.b2.append(_e) + self.c1 = [] + for _ele in _json_["c1"]: var _e: int; _e = _ele; self.c1.append(_e) + self.c2 = [] + for _ele in _json_["c2"]: var _e: int; _e = _ele; self.c2.append(_e) + self.d1 = {} + for _e in _json_["d1"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.d1[_k] = _v + self.d2 = {} + for _e in _json_["d2"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.d2[_k] = _v + self.e1 = _json_["e1"] + self.e2 = _json_["e2"] + self.e3 = _json_["e3"] + self.f1 = _json_["f1"] + self.f2 = _json_["f2"] + self.f3 = _json_["f3"] + self.s1 = TestRefDynamicBase.fromJson(_json_["s1"]) + + +class TestRefDynamicBase: + var x: int + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "RefBean": return TestRefBean.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + self.x = _json_["x"] + + +class TestRefBean extends TestRefDynamicBase: + var arr: Array[int] + + func _init(_json_) -> void: + super(_json_) + self.arr = [] + for _ele in _json_["arr"]: var _e: int; _e = _ele; self.arr.append(_e) + + +class TestTestSize: + var id: int + var x1: Array[int] + var x2: Array[int] + var x3: Array[int] + var x4: Dictionary + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x1 = [] + for _ele in _json_["x1"]: var _e: int; _e = _ele; self.x1.append(_e) + self.x2 = [] + for _ele in _json_["x2"]: var _e: int; _e = _ele; self.x2.append(_e) + self.x3 = [] + for _ele in _json_["x3"]: var _e: int; _e = _ele; self.x3.append(_e) + self.x4 = {} + for _e in _json_["x4"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.x4[_k] = _v + + +class TestTestSet: + var id: int + var x0: String + var x1: Array[int] + var x2: Array[int] + var x3: Array[String] + var x4: Array[int] + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x0 = _json_["x0"] + self.x1 = [] + for _ele in _json_["x1"]: var _e: int; _e = _ele; self.x1.append(_e) + self.x2 = [] + for _ele in _json_["x2"]: var _e: int; _e = _ele; self.x2.append(_e) + self.x3 = [] + for _ele in _json_["x3"]: var _e: String; _e = _ele; self.x3.append(_e) + self.x4 = [] + for _ele in _json_["x4"]: var _e: int; _e = _ele; self.x4.append(_e) + + +class TestDetectEncoding: + var id: int + var name: String + + func _init(_json_) -> void: + self.id = _json_["id"] + self.name = _json_["name"] + + +class TestItemBase: + var id: int + var name: String + var desc: String + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "Item": return TestItem.new(_json_) + "Equipment": return TestEquipment.new(_json_) + "Decorator": return TestDecorator.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + self.id = _json_["id"] + self.name = _json_["name"] + self.desc = _json_["desc"] + + +class TestItem extends TestItemBase: + var num: int + var price: int + + func _init(_json_) -> void: + super(_json_) + self.num = _json_["num"] + self.price = _json_["price"] + + +class TestEquipment extends TestItemBase: + var attr: int + var value: int + + func _init(_json_) -> void: + super(_json_) + self.attr = _json_["attr"] + self.value = _json_["value"] + + +class TestDecorator extends TestItemBase: + var duration: int + + func _init(_json_) -> void: + super(_json_) + self.duration = _json_["duration"] + + +class TestTestIndex: + var id: int + var eles: Array[TestDemoType1] + + func _init(_json_) -> void: + self.id = _json_["id"] + self.eles = [] + for _ele in _json_["eles"]: var _e: TestDemoType1; _e = TestDemoType1.new(_ele); self.eles.append(_e) + + +class TestTestMap: + var id: int + var x1: Dictionary + var x2: Dictionary + var x3: Dictionary + var x4: Dictionary + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x1 = {} + for _e in _json_["x1"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.x1[_k] = _v + self.x2 = {} + for _e in _json_["x2"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.x2[_k] = _v + self.x3 = {} + for _e in _json_["x3"]: var _k: String; _k = _e[0]; var _v: int; _v = _e[1]; self.x3[_k] = _v + self.x4 = {} + for _e in _json_["x4"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.x4[_k] = _v + + +class TestExcelFromJson: + var x4: int + var x1: bool + var x5: int + var x6: float + var s1: String + var s2: String + var t1: int + var x12: TestDemoType1 + var x13: int + var x14: TestDemoDynamic + var k1: Array[int] + var k8: Dictionary + var k9: Array[TestDemoE2] + var k15: Array[TestDemoDynamic] + + func _init(_json_) -> void: + self.x4 = _json_["x4"] + self.x1 = _json_["x1"] + self.x5 = _json_["x5"] + self.x6 = _json_["x6"] + self.s1 = _json_["s1"] + self.s2 = _json_["s2"] + self.t1 = _json_["t1"] + self.x12 = TestDemoType1.new(_json_["x12"]) + self.x13 = _json_["x13"] + self.x14 = TestDemoDynamic.fromJson(_json_["x14"]) + self.k1 = [] + for _ele in _json_["k1"]: var _e: int; _e = _ele; self.k1.append(_e) + self.k8 = {} + for _e in _json_["k8"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.k8[_k] = _v + self.k9 = [] + for _ele in _json_["k9"]: var _e: TestDemoE2; _e = TestDemoE2.new(_ele); self.k9.append(_e) + self.k15 = [] + for _ele in _json_["k15"]: var _e: TestDemoDynamic; _e = TestDemoDynamic.fromJson(_ele); self.k15.append(_e) + + +class TestCompositeJsonTable1: + var id: int + var x: String + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x = _json_["x"] + + +class TestCompositeJsonTable2: + var id: int + var y: int + + func _init(_json_) -> void: + self.id = _json_["id"] + self.y = _json_["y"] + + +class TestCompositeJsonTable3: + var a: int + var b: int + + func _init(_json_) -> void: + self.a = _json_["a"] + self.b = _json_["b"] + + +class TestExcelFromJsonMultiRow: + var id: int + var x: int + var items: Array[TestTestRow] + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x = _json_["x"] + self.items = [] + for _ele in _json_["items"]: var _e: TestTestRow; _e = TestTestRow.new(_ele); self.items.append(_e) + + +class TestTestRow: + var x: int + var y: bool + var z: String + var a: TestTest3 + var b: Array[int] + + func _init(_json_) -> void: + self.x = _json_["x"] + self.y = _json_["y"] + self.z = _json_["z"] + self.a = TestTest3.new(_json_["a"]) + self.b = [] + for _ele in _json_["b"]: var _e: int; _e = _ele; self.b.append(_e) + + +class TestTest3: + var x: int + var y: int + + func _init(_json_) -> void: + self.x = _json_["x"] + self.y = _json_["y"] + + +class TestTestScriptableObject: + var id: int + var desc: String + var rate: float + var num: int + var v2: Vec2 + var v3: Vec3 + var v4: Vec4 + + func _init(_json_) -> void: + self.id = _json_["id"] + self.desc = _json_["desc"] + self.rate = _json_["rate"] + self.num = _json_["num"] + self.v2 = Vec2.new(_json_["v2"]) + self.v3 = Vec3.new(_json_["v3"]) + self.v4 = Vec4.new(_json_["v4"]) + + +class TestPath: + var id: int + var res: String + + func _init(_json_) -> void: + self.id = _json_["id"] + self.res = _json_["res"] + + +class TestTestMapper: + var id: int + var audio_type: int + var v2: Vec2 + + func _init(_json_) -> void: + self.id = _json_["id"] + self.audio_type = _json_["audio_type"] + self.v2 = Vec2.new(_json_["v2"]) + + +class DefineFromExcel2: + ## 这是id + var id: int + ## 字段x1 + var x1: bool + var x5: int + var x6: float + var x8: int + var x10: String + var x13: int + var x13_2: int + var x14: TestDemoDynamic + var x15: TestShape + var v2: Vec2 + var t1: int + var k1: Array[int] + var k2: Array[int] + var k8: Dictionary + var k9: Array[TestDemoE2] + var k10: Array[Vec3] + var k11: Array[Vec4] + + func _init(_json_) -> void: + self.id = _json_["id"] + self.x1 = _json_["x1"] + self.x5 = _json_["x5"] + self.x6 = _json_["x6"] + self.x8 = _json_["x8"] + self.x10 = _json_["x10"] + self.x13 = _json_["x13"] + self.x13_2 = _json_["x13_2"] + self.x14 = TestDemoDynamic.fromJson(_json_["x14"]) + self.x15 = TestShape.fromJson(_json_["x15"]) + self.v2 = Vec2.new(_json_["v2"]) + self.t1 = _json_["t1"] + self.k1 = [] + for _ele in _json_["k1"]: var _e: int; _e = _ele; self.k1.append(_e) + self.k2 = [] + for _ele in _json_["k2"]: var _e: int; _e = _ele; self.k2.append(_e) + self.k8 = {} + for _e in _json_["k8"]: var _k: int; _k = _e[0]; var _v: int; _v = _e[1]; self.k8[_k] = _v + self.k9 = [] + for _ele in _json_["k9"]: var _e: TestDemoE2; _e = TestDemoE2.new(_ele); self.k9.append(_e) + self.k10 = [] + for _ele in _json_["k10"]: var _e: Vec3; _e = Vec3.new(_ele); self.k10.append(_e) + self.k11 = [] + for _ele in _json_["k11"]: var _e: Vec4; _e = Vec4.new(_ele); self.k11.append(_e) + + +class TestShape: + + static func fromJson(_json_): + var type = _json_['$type'] + match type: + "Circle": return TestCircle.new(_json_) + "test2.Rectangle": return Test2Rectangle.new(_json_) + _: assert(false) + + func _init(_json_) -> void: + pass + + +## 圆 +class TestCircle extends TestShape: + ## 半径 + var radius: float + + func _init(_json_) -> void: + super(_json_) + self.radius = _json_["radius"] + + +## 矩形 +class Test2Rectangle extends TestShape: + ## 宽度 + var width: float + ## 高度 + var height: float + + func _init(_json_) -> void: + super(_json_) + self.width = _json_["width"] + self.height = _json_["height"] + + +class AiTbBlackboard: + var _data_list: Array[AiBlackboard] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: AiBlackboard + _v = AiBlackboard.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.name] = _v + + func get_data_list() -> Array[AiBlackboard]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> AiBlackboard: + return self._data_map.get(key) + + +class AiTbBehaviorTree: + var _data_list: Array[AiBehaviorTree] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: AiBehaviorTree + _v = AiBehaviorTree.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[AiBehaviorTree]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> AiBehaviorTree: + return self._data_map.get(key) + + +class CommonTbGlobalConfig: + var _data:CommonGlobalConfig + + func _init(_json_) -> void: + assert(len(_json_) == 1, "table mode = one, but size != 1") + self._data = CommonGlobalConfig.new(_json_[0]) + + func get_data() -> CommonGlobalConfig: + return self._data + + ## 背包容量 + var x1: int: + get: return self._data.x1 + + var x2: int: + get: return self._data.x2 + + var x3: int: + get: return self._data.x3 + + var x4: int: + get: return self._data.x4 + + var x5: int: + get: return self._data.x5 + + var x6: int: + get: return self._data.x6 + + var x7: Array[int]: + get: return self._data.x7 + + +## 道具表 +class ItemTbItem: + var _data_list: Array[ItemItem] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: ItemItem + _v = ItemItem.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[ItemItem]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> ItemItem: + return self._data_map.get(key) + + +class L10nTbL10NDemo: + var _data_list: Array[L10nL10NDemo] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: L10nL10NDemo + _v = L10nL10NDemo.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[L10nL10NDemo]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> L10nL10NDemo: + return self._data_map.get(key) + + +class L10nTbPatchDemo: + var _data_list: Array[L10nPatchDemo] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: L10nPatchDemo + _v = L10nPatchDemo.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[L10nPatchDemo]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> L10nPatchDemo: + return self._data_map.get(key) + + +class TagTbTestTag: + var _data_list: Array[TagTestTag] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TagTestTag + _v = TagTestTag.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TagTestTag]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TagTestTag: + return self._data_map.get(key) + + +class TestTbFullTypes: + var _data_list: Array[TestDemoType2] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDemoType2 + _v = TestDemoType2.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.x4] = _v + + func get_data_list() -> Array[TestDemoType2]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDemoType2: + return self._data_map.get(key) + + +class TestTbSingleton: + var _data:TestDemoSingletonType + + func _init(_json_) -> void: + assert(len(_json_) == 1, "table mode = one, but size != 1") + self._data = TestDemoSingletonType.new(_json_[0]) + + func get_data() -> TestDemoSingletonType: + return self._data + + var id: int: + get: return self._data.id + + var name: String: + get: return self._data.name + + var date: TestDemoDynamic: + get: return self._data.date + + +class TestTbNotIndexList: + var _data_list: Array[TestNotIndexList] ## 数据数组 + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestNotIndexList + _v = TestNotIndexList.new(_json2_) + self._data_list.append(_v) + + func get_data_list() -> Array[TestNotIndexList]: + return self._data_list + + func get_item(index) -> TestNotIndexList: + return self._data_list[index] + +class TestTbMultiUnionIndexList: + var _data_list: Array[TestMultiUnionIndexList] ## 数据数组 + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestMultiUnionIndexList + _v = TestMultiUnionIndexList.new(_json2_) + self._data_list.append(_v) + + func get_data_list() -> Array[TestMultiUnionIndexList]: + return self._data_list + + func get_item(index) -> TestMultiUnionIndexList: + return self._data_list[index] + +class TestTbMultiIndexList: + var _data_list: Array[TestMultiIndexList] + var _data_map: Dictionary + var _id1_data_map: Dictionary ## 以id1为key的数据字典 + var _id2_data_map: Dictionary ## 以id2为key的数据字典 + var _id3_data_map: Dictionary ## 以id3为key的数据字典 + + func _init(_json_) -> void: + self._id1_data_map = {} + self._id2_data_map = {} + self._id3_data_map = {} + + for _json2_ in _json_: + var _v: TestMultiIndexList + _v = TestMultiIndexList.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id1] = _v + self._id1_data_map[_v.id1] = _v + self._id2_data_map[_v.id2] = _v + self._id3_data_map[_v.id3] = _v + + func get_data_list() -> Array[TestMultiIndexList]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_id1_data_map() -> Dictionary: + return self._id1_data_map + + func get_id2_data_map() -> Dictionary: + return self._id2_data_map + + func get_id3_data_map() -> Dictionary: + return self._id3_data_map + + func get_item(key) -> TestMultiIndexList: + return self._data_map.get(key) + + func get_item_by_id1(id1) -> TestMultiIndexList: + return self._id1_data_map.get(id1) + + func get_item_by_id2(id2) -> TestMultiIndexList: + return self._id2_data_map.get(id2) + + func get_item_by_id3(id3) -> TestMultiIndexList: + return self._id3_data_map.get(id3) + + +class TestTbDataFromMisc: + var _data_list: Array[TestDemoType2] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDemoType2 + _v = TestDemoType2.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.x4] = _v + + func get_data_list() -> Array[TestDemoType2]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDemoType2: + return self._data_map.get(key) + + +class TestTbMultiRowRecord: + var _data_list: Array[TestMultiRowRecord] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestMultiRowRecord + _v = TestMultiRowRecord.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestMultiRowRecord]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestMultiRowRecord: + return self._data_map.get(key) + + +class TestTbTestMultiColumn: + var _data_list: Array[TestTestMultiColumn] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestMultiColumn + _v = TestTestMultiColumn.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestMultiColumn]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestMultiColumn: + return self._data_map.get(key) + + +class TestTbMultiRowTitle: + var _data_list: Array[TestMultiRowTitle] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestMultiRowTitle + _v = TestMultiRowTitle.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestMultiRowTitle]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestMultiRowTitle: + return self._data_map.get(key) + + +class TestTbTestNull: + var _data_list: Array[TestTestNull] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestNull + _v = TestTestNull.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestNull]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestNull: + return self._data_map.get(key) + + +class TestTbDemoPrimitive: + var _data_list: Array[TestDemoPrimitiveTypesTable] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDemoPrimitiveTypesTable + _v = TestDemoPrimitiveTypesTable.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.x4] = _v + + func get_data_list() -> Array[TestDemoPrimitiveTypesTable]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDemoPrimitiveTypesTable: + return self._data_map.get(key) + + +class TestTbTestString: + var _data_list: Array[TestTestString] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestString + _v = TestTestString.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestString]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestString: + return self._data_map.get(key) + + +class TestTbDemoGroup: + var _data_list: Array[TestDemoGroup] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDemoGroup + _v = TestDemoGroup.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestDemoGroup]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDemoGroup: + return self._data_map.get(key) + + +class TestTbDemoGroup_C: + var _data_list: Array[TestDemoGroup] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDemoGroup + _v = TestDemoGroup.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestDemoGroup]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDemoGroup: + return self._data_map.get(key) + + +class TestTbDemoGroup_S: + var _data_list: Array[TestDemoGroup] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDemoGroup + _v = TestDemoGroup.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestDemoGroup]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDemoGroup: + return self._data_map.get(key) + + +class TestTbDemoGroup_E: + var _data_list: Array[TestDemoGroup] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDemoGroup + _v = TestDemoGroup.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestDemoGroup]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDemoGroup: + return self._data_map.get(key) + + +class TestTbTestGlobal: + var _data:TestTestGlobal + + func _init(_json_) -> void: + assert(len(_json_) == 1, "table mode = one, but size != 1") + self._data = TestTestGlobal.new(_json_[0]) + + func get_data() -> TestTestGlobal: + return self._data + + var unlock_equip: int: + get: return self._data.unlock_equip + + var unlock_hero: int: + get: return self._data.unlock_hero + + +class TestTbTestBeRef: + var _data_list: Array[TestTestBeRef] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestBeRef + _v = TestTestBeRef.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestBeRef]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestBeRef: + return self._data_map.get(key) + + +class TestTbTestBeRef2: + var _data_list: Array[TestTestBeRef] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestBeRef + _v = TestTestBeRef.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestBeRef]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestBeRef: + return self._data_map.get(key) + + +class TestTbTestRef: + var _data_list: Array[TestTestRef] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestRef + _v = TestTestRef.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestRef]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestRef: + return self._data_map.get(key) + + +class TestTbTestSize: + var _data_list: Array[TestTestSize] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestSize + _v = TestTestSize.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestSize]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestSize: + return self._data_map.get(key) + + +class TestTbTestSet: + var _data_list: Array[TestTestSet] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestSet + _v = TestTestSet.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestSet]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestSet: + return self._data_map.get(key) + + +class TestTbDetectCsvEncoding: + var _data_list: Array[TestDetectEncoding] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestDetectEncoding + _v = TestDetectEncoding.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestDetectEncoding]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestDetectEncoding: + return self._data_map.get(key) + + +class TestTbItem2: + var _data_list: Array[TestItemBase] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestItemBase + _v = TestItemBase.fromJson(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestItemBase]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestItemBase: + return self._data_map.get(key) + + +class TestTbTestIndex: + var _data_list: Array[TestTestIndex] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestIndex + _v = TestTestIndex.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestIndex]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestIndex: + return self._data_map.get(key) + + +class TestTbTestMap: + var _data_list: Array[TestTestMap] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestMap + _v = TestTestMap.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestMap]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestMap: + return self._data_map.get(key) + + +class TestTbExcelFromJson: + var _data_list: Array[TestExcelFromJson] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestExcelFromJson + _v = TestExcelFromJson.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.x4] = _v + + func get_data_list() -> Array[TestExcelFromJson]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestExcelFromJson: + return self._data_map.get(key) + + +class TestTbCompositeJsonTable1: + var _data_list: Array[TestCompositeJsonTable1] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestCompositeJsonTable1 + _v = TestCompositeJsonTable1.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestCompositeJsonTable1]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestCompositeJsonTable1: + return self._data_map.get(key) + + +class TestTbCompositeJsonTable2: + var _data_list: Array[TestCompositeJsonTable2] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestCompositeJsonTable2 + _v = TestCompositeJsonTable2.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestCompositeJsonTable2]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestCompositeJsonTable2: + return self._data_map.get(key) + + +class TestTbCompositeJsonTable3: + var _data:TestCompositeJsonTable3 + + func _init(_json_) -> void: + assert(len(_json_) == 1, "table mode = one, but size != 1") + self._data = TestCompositeJsonTable3.new(_json_[0]) + + func get_data() -> TestCompositeJsonTable3: + return self._data + + var a: int: + get: return self._data.a + + var b: int: + get: return self._data.b + + +class TestTbExcelFromJsonMultiRow: + var _data_list: Array[TestExcelFromJsonMultiRow] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestExcelFromJsonMultiRow + _v = TestExcelFromJsonMultiRow.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestExcelFromJsonMultiRow]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestExcelFromJsonMultiRow: + return self._data_map.get(key) + + +class TestTbTestScriptableObject: + var _data_list: Array[TestTestScriptableObject] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestScriptableObject + _v = TestTestScriptableObject.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestScriptableObject]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestScriptableObject: + return self._data_map.get(key) + + +class TestTbPath: + var _data_list: Array[TestPath] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestPath + _v = TestPath.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestPath]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestPath: + return self._data_map.get(key) + + +class TestTbTestMapper: + var _data_list: Array[TestTestMapper] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: TestTestMapper + _v = TestTestMapper.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[TestTestMapper]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> TestTestMapper: + return self._data_map.get(key) + + +class TestTbDefineFromExcel2: + var _data_list: Array[DefineFromExcel2] + var _data_map: Dictionary + + func _init(_json_) -> void: + for _json2_ in _json_: + var _v: DefineFromExcel2 + _v = DefineFromExcel2.new(_json2_) + self._data_list.append(_v) + self._data_map[_v.id] = _v + + func get_data_list() -> Array[DefineFromExcel2]: + return self._data_list + + func get_data_map() -> Dictionary: + return self._data_map + + func get_item(key) -> DefineFromExcel2: + return self._data_map.get(key) + + +class CfgTables: + var TbBlackboard: AiTbBlackboard + var TbBehaviorTree: AiTbBehaviorTree + var TbGlobalConfig: CommonTbGlobalConfig + ## 道具表 + var TbItem: ItemTbItem + var TbL10NDemo: L10nTbL10NDemo + var TbPatchDemo: L10nTbPatchDemo + var TbTestTag: TagTbTestTag + var TbFullTypes: TestTbFullTypes + var TbSingleton: TestTbSingleton + var TbNotIndexList: TestTbNotIndexList + var TbMultiUnionIndexList: TestTbMultiUnionIndexList + var TbMultiIndexList: TestTbMultiIndexList + var TbDataFromMisc: TestTbDataFromMisc + var TbMultiRowRecord: TestTbMultiRowRecord + var TbTestMultiColumn: TestTbTestMultiColumn + var TbMultiRowTitle: TestTbMultiRowTitle + var TbTestNull: TestTbTestNull + var TbDemoPrimitive: TestTbDemoPrimitive + var TbTestString: TestTbTestString + var TbDemoGroup: TestTbDemoGroup + var TbDemoGroup_C: TestTbDemoGroup_C + var TbDemoGroup_S: TestTbDemoGroup_S + var TbDemoGroup_E: TestTbDemoGroup_E + var TbTestGlobal: TestTbTestGlobal + var TbTestBeRef: TestTbTestBeRef + var TbTestBeRef2: TestTbTestBeRef2 + var TbTestRef: TestTbTestRef + var TbTestSize: TestTbTestSize + var TbTestSet: TestTbTestSet + var TbDetectCsvEncoding: TestTbDetectCsvEncoding + var TbItem2: TestTbItem2 + var TbTestIndex: TestTbTestIndex + var TbTestMap: TestTbTestMap + var TbExcelFromJson: TestTbExcelFromJson + var TbCompositeJsonTable1: TestTbCompositeJsonTable1 + var TbCompositeJsonTable2: TestTbCompositeJsonTable2 + var TbCompositeJsonTable3: TestTbCompositeJsonTable3 + var TbExcelFromJsonMultiRow: TestTbExcelFromJsonMultiRow + var TbTestScriptableObject: TestTbTestScriptableObject + var TbPath: TestTbPath + var TbTestMapper: TestTbTestMapper + var TbDefineFromExcel2: TestTbDefineFromExcel2 + + func _init(loader: Callable) -> void: + self.TbBlackboard = AiTbBlackboard.new(loader.call('ai_tbblackboard')) + self.TbBehaviorTree = AiTbBehaviorTree.new(loader.call('ai_tbbehaviortree')) + self.TbGlobalConfig = CommonTbGlobalConfig.new(loader.call('common_tbglobalconfig')) + self.TbItem = ItemTbItem.new(loader.call('item_tbitem')) + self.TbL10NDemo = L10nTbL10NDemo.new(loader.call('l10n_tbl10ndemo')) + self.TbPatchDemo = L10nTbPatchDemo.new(loader.call('l10n_tbpatchdemo')) + self.TbTestTag = TagTbTestTag.new(loader.call('tag_tbtesttag')) + self.TbFullTypes = TestTbFullTypes.new(loader.call('test_tbfulltypes')) + self.TbSingleton = TestTbSingleton.new(loader.call('test_tbsingleton')) + self.TbNotIndexList = TestTbNotIndexList.new(loader.call('test_tbnotindexlist')) + self.TbMultiUnionIndexList = TestTbMultiUnionIndexList.new(loader.call('test_tbmultiunionindexlist')) + self.TbMultiIndexList = TestTbMultiIndexList.new(loader.call('test_tbmultiindexlist')) + self.TbDataFromMisc = TestTbDataFromMisc.new(loader.call('test_tbdatafrommisc')) + self.TbMultiRowRecord = TestTbMultiRowRecord.new(loader.call('test_tbmultirowrecord')) + self.TbTestMultiColumn = TestTbTestMultiColumn.new(loader.call('test_tbtestmulticolumn')) + self.TbMultiRowTitle = TestTbMultiRowTitle.new(loader.call('test_tbmultirowtitle')) + self.TbTestNull = TestTbTestNull.new(loader.call('test_tbtestnull')) + self.TbDemoPrimitive = TestTbDemoPrimitive.new(loader.call('test_tbdemoprimitive')) + self.TbTestString = TestTbTestString.new(loader.call('test_tbteststring')) + self.TbDemoGroup = TestTbDemoGroup.new(loader.call('test_tbdemogroup')) + self.TbDemoGroup_C = TestTbDemoGroup_C.new(loader.call('test_tbdemogroup_c')) + self.TbDemoGroup_S = TestTbDemoGroup_S.new(loader.call('test_tbdemogroup_s')) + self.TbDemoGroup_E = TestTbDemoGroup_E.new(loader.call('test_tbdemogroup_e')) + self.TbTestGlobal = TestTbTestGlobal.new(loader.call('test_tbtestglobal')) + self.TbTestBeRef = TestTbTestBeRef.new(loader.call('test_tbtestberef')) + self.TbTestBeRef2 = TestTbTestBeRef2.new(loader.call('test_tbtestberef2')) + self.TbTestRef = TestTbTestRef.new(loader.call('test_tbtestref')) + self.TbTestSize = TestTbTestSize.new(loader.call('test_tbtestsize')) + self.TbTestSet = TestTbTestSet.new(loader.call('test_tbtestset')) + self.TbDetectCsvEncoding = TestTbDetectCsvEncoding.new(loader.call('test_tbdetectcsvencoding')) + self.TbItem2 = TestTbItem2.new(loader.call('test_tbitem2')) + self.TbTestIndex = TestTbTestIndex.new(loader.call('test_tbtestindex')) + self.TbTestMap = TestTbTestMap.new(loader.call('test_tbtestmap')) + self.TbExcelFromJson = TestTbExcelFromJson.new(loader.call('test_tbexcelfromjson')) + self.TbCompositeJsonTable1 = TestTbCompositeJsonTable1.new(loader.call('test_tbcompositejsontable1')) + self.TbCompositeJsonTable2 = TestTbCompositeJsonTable2.new(loader.call('test_tbcompositejsontable2')) + self.TbCompositeJsonTable3 = TestTbCompositeJsonTable3.new(loader.call('test_tbcompositejsontable3')) + self.TbExcelFromJsonMultiRow = TestTbExcelFromJsonMultiRow.new(loader.call('test_tbexcelfromjsonmultirow')) + self.TbTestScriptableObject = TestTbTestScriptableObject.new(loader.call('test_tbtestscriptableobject')) + self.TbPath = TestTbPath.new(loader.call('test_tbpath')) + self.TbTestMapper = TestTbTestMapper.new(loader.call('test_tbtestmapper')) + self.TbDefineFromExcel2 = TestTbDefineFromExcel2.new(loader.call('test_tbdefinefromexcel2')) + diff --git a/luban_examples/Projects/GDScript_json/icon.svg b/luban_examples/Projects/GDScript_json/icon.svg new file mode 100644 index 00000000..b370ceb7 --- /dev/null +++ b/luban_examples/Projects/GDScript_json/icon.svg @@ -0,0 +1 @@ + diff --git a/luban_examples/Projects/GDScript_json/icon.svg.import b/luban_examples/Projects/GDScript_json/icon.svg.import new file mode 100644 index 00000000..fc46fba2 --- /dev/null +++ b/luban_examples/Projects/GDScript_json/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c0bvwj4jbq24e" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/luban_examples/Projects/GDScript_json/main.gd b/luban_examples/Projects/GDScript_json/main.gd new file mode 100644 index 00000000..f6014433 --- /dev/null +++ b/luban_examples/Projects/GDScript_json/main.gd @@ -0,0 +1,17 @@ +extends Node + +var config +var json_path:String = "res://json/" + +func loader(file_name:String): + var json_file = FileAccess.open(self.json_path + file_name + ".json", FileAccess.READ) + var json_text = json_file.get_as_text() + json_file.close() + return JSON.parse_string(json_text) + +func _ready(): + # load config + config = Schema.CfgTables.new(loader) + # just print a few config, confirm load success. + for i in config.TbItem.get_data_list(): + print(i.id, i.name, i.desc) diff --git a/luban_examples/Projects/GDScript_json/project.godot b/luban_examples/Projects/GDScript_json/project.godot new file mode 100644 index 00000000..1e6d5cd0 --- /dev/null +++ b/luban_examples/Projects/GDScript_json/project.godot @@ -0,0 +1,20 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="GDScript_json" +run/main_scene="res://Scenes/node_2d.tscn" +config/features=PackedStringArray("4.1", "Forward Plus") +config/icon="res://icon.svg" + +[dotnet] + +project/assembly_name="GDScript_json" diff --git a/luban_examples/Projects/GenerateDatas/bson/ai_tbbehaviortree.bson b/luban_examples/Projects/GenerateDatas/bson/ai_tbbehaviortree.bson new file mode 100644 index 00000000..3c46aab3 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/ai_tbbehaviortree.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/ai_tbblackboard.bson b/luban_examples/Projects/GenerateDatas/bson/ai_tbblackboard.bson new file mode 100644 index 00000000..a7fb9c7b Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/ai_tbblackboard.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/common_tbglobalconfig.bson b/luban_examples/Projects/GenerateDatas/bson/common_tbglobalconfig.bson new file mode 100644 index 00000000..67ed3acc Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/common_tbglobalconfig.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/item_tbitem.bson b/luban_examples/Projects/GenerateDatas/bson/item_tbitem.bson new file mode 100644 index 00000000..6a376b3a Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/item_tbitem.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/l10n_tbl10ndemo.bson b/luban_examples/Projects/GenerateDatas/bson/l10n_tbl10ndemo.bson new file mode 100644 index 00000000..f1a6fdeb Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/l10n_tbl10ndemo.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/l10n_tbpatchdemo.bson b/luban_examples/Projects/GenerateDatas/bson/l10n_tbpatchdemo.bson new file mode 100644 index 00000000..bcb5e38b Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/l10n_tbpatchdemo.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/tag_tbtesttag.bson b/luban_examples/Projects/GenerateDatas/bson/tag_tbtesttag.bson new file mode 100644 index 00000000..5d8ae1b2 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/tag_tbtesttag.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable1.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable1.bson new file mode 100644 index 00000000..2a21b161 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable1.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable2.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable2.bson new file mode 100644 index 00000000..4ddb93f5 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable2.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable3.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable3.bson new file mode 100644 index 00000000..1353e06a Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbcompositejsontable3.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdatafrommisc.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdatafrommisc.bson new file mode 100644 index 00000000..c89a926d Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdatafrommisc.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdefinefromexcel2.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdefinefromexcel2.bson new file mode 100644 index 00000000..15f92282 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdefinefromexcel2.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup.bson new file mode 100644 index 00000000..7d7151a6 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_c.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_c.bson new file mode 100644 index 00000000..7d7151a6 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_c.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_e.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_e.bson new file mode 100644 index 00000000..7d7151a6 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_e.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_s.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_s.bson new file mode 100644 index 00000000..7d7151a6 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdemogroup_s.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdemoprimitive.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdemoprimitive.bson new file mode 100644 index 00000000..b78ae1ae Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdemoprimitive.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbdetectcsvencoding.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbdetectcsvencoding.bson new file mode 100644 index 00000000..4a74c61f Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbdetectcsvencoding.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbexcelfromjson.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbexcelfromjson.bson new file mode 100644 index 00000000..92ee62e2 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbexcelfromjson.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbexcelfromjsonmultirow.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbexcelfromjsonmultirow.bson new file mode 100644 index 00000000..13d2dd30 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbexcelfromjsonmultirow.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbfulltypes.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbfulltypes.bson new file mode 100644 index 00000000..19e86cf7 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbfulltypes.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbitem2.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbitem2.bson new file mode 100644 index 00000000..f6d8d697 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbitem2.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbmultiindexlist.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbmultiindexlist.bson new file mode 100644 index 00000000..09c62dbe Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbmultiindexlist.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbmultirowrecord.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbmultirowrecord.bson new file mode 100644 index 00000000..288ef723 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbmultirowrecord.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbmultirowtitle.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbmultirowtitle.bson new file mode 100644 index 00000000..daa6677d Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbmultirowtitle.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbmultiunionindexlist.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbmultiunionindexlist.bson new file mode 100644 index 00000000..382066ae Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbmultiunionindexlist.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbnotindexlist.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbnotindexlist.bson new file mode 100644 index 00000000..a25edc0c Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbnotindexlist.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbsingleton.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbsingleton.bson new file mode 100644 index 00000000..c9b5dfd0 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbsingleton.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestberef.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestberef.bson new file mode 100644 index 00000000..73271b58 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestberef.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestberef2.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestberef2.bson new file mode 100644 index 00000000..656a63dc Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestberef2.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestglobal.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestglobal.bson new file mode 100644 index 00000000..3e0bc00a Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestglobal.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestindex.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestindex.bson new file mode 100644 index 00000000..c383a86c Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestindex.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestmap.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestmap.bson new file mode 100644 index 00000000..2cd94583 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestmap.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestmapper.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestmapper.bson new file mode 100644 index 00000000..7f47f9bb Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestmapper.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestmulticolumn.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestmulticolumn.bson new file mode 100644 index 00000000..38506927 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestmulticolumn.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestnull.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestnull.bson new file mode 100644 index 00000000..64cd8b47 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestnull.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestref.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestref.bson new file mode 100644 index 00000000..3e6dc166 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestref.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestscriptableobject.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestscriptableobject.bson new file mode 100644 index 00000000..02c5c953 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestscriptableobject.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestset.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestset.bson new file mode 100644 index 00000000..63503658 Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestset.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbtestsize.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbtestsize.bson new file mode 100644 index 00000000..4e69bf6a Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbtestsize.bson differ diff --git a/luban_examples/Projects/GenerateDatas/bson/test_tbteststring.bson b/luban_examples/Projects/GenerateDatas/bson/test_tbteststring.bson new file mode 100644 index 00000000..d5b1f91f Binary files /dev/null and b/luban_examples/Projects/GenerateDatas/bson/test_tbteststring.bson differ diff --git a/luban_examples/Projects/GenerateDatas/gen_data_bidx.bat b/luban_examples/Projects/GenerateDatas/gen_data_bidx.bat new file mode 100644 index 00000000..5a73a67c --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_bidx.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir bidx ^ + --gen_types data_bidx ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_bson.bat b/luban_examples/Projects/GenerateDatas/gen_data_bson.bat new file mode 100644 index 00000000..5edced19 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_bson.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir bson ^ + --gen_types data_bson ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_bytes.bat b/luban_examples/Projects/GenerateDatas/gen_data_bytes.bat new file mode 100644 index 00000000..03b89013 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_bytes.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir bytes ^ + --gen_types data_bin ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_json.bat b/luban_examples/Projects/GenerateDatas/gen_data_json.bat new file mode 100644 index 00000000..b2413e62 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_json.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -h %LUBAN_SERVER_IP% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir json ^ + --gen_types data_json ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_json2.bat b/luban_examples/Projects/GenerateDatas/gen_data_json2.bat new file mode 100644 index 00000000..d8cb98ac --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_json2.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir json2 ^ + --gen_types data_json2 ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_json_custom_include_exclude.bat b/luban_examples/Projects/GenerateDatas/gen_data_json_custom_include_exclude.bat new file mode 100644 index 00000000..e859d745 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_json_custom_include_exclude.bat @@ -0,0 +1,18 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir json_custom_include_exclude ^ + --gen_types data_json ^ + --output:tables test.TbTestRef,test.TbTestBeRef,test.TbTestMap ^ + --output:include_tables test.TbTestSize,test.TbTestSet ^ + --output:exclude_tables test.TbTestMap ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_json_exclude_tags.bat b/luban_examples/Projects/GenerateDatas/gen_data_json_exclude_tags.bat new file mode 100644 index 00000000..b28be143 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_json_exclude_tags.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir json_exclude_tags ^ + --gen_types data_json ^ + -s all ^ + --output:exclude_tags test,dev + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_json_monolithic.bat b/luban_examples/Projects/GenerateDatas/gen_data_json_monolithic.bat new file mode 100644 index 00000000..50a2ede2 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_json_monolithic.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --gen_types data_json_monolithic ^ + --output_data_dir json_monolithic ^ + --output:data:json_monolithic_file json_monolithic/all.json ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_json_timezone.bat b/luban_examples/Projects/GenerateDatas/gen_data_json_timezone.bat new file mode 100644 index 00000000..fee6a175 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_json_timezone.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir json ^ + --gen_types data_json ^ + -t "SA Western Standard Time" ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_json_use_clientserver.bat b/luban_examples/Projects/GenerateDatas/gen_data_json_use_clientserver.bat new file mode 100644 index 00000000..3bb64cac --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_json_use_clientserver.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir json ^ + --gen_types data_json ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_lua.bat b/luban_examples/Projects/GenerateDatas/gen_data_lua.bat new file mode 100644 index 00000000..9708772c --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_lua.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir lua ^ + --gen_types data_lua ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_xml.bat b/luban_examples/Projects/GenerateDatas/gen_data_xml.bat new file mode 100644 index 00000000..d68df16a --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_xml.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir xml ^ + --gen_types data_xml ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_data_yaml.bat b/luban_examples/Projects/GenerateDatas/gen_data_yaml.bat new file mode 100644 index 00000000..6355f339 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_data_yaml.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir yaml ^ + --gen_types data_yaml ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/gen_resource_list.bat b/luban_examples/Projects/GenerateDatas/gen_resource_list.bat new file mode 100644 index 00000000..baad0ca4 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/gen_resource_list.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set GEN_CLIENT=%WORKSPACE%\Tools\Luban.ClientServer\Luban.ClientServer.exe +set CONF_ROOT=%WORKSPACE%\DataTables + + +%GEN_CLIENT% -j cfg --^ + -d %CONF_ROOT%\Defines\__root__.xml ^ + --input_data_dir %CONF_ROOT%\Datas ^ + --output_data_dir lua ^ + --gen_types data_resources ^ + --output:data:resource_list_file resources.txt ^ + -s all + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/GenerateDatas/resources.txt b/luban_examples/Projects/GenerateDatas/resources.txt new file mode 100644 index 00000000..b3afa043 --- /dev/null +++ b/luban_examples/Projects/GenerateDatas/resources.txt @@ -0,0 +1,3 @@ +demo,huang +demo,hq +demo,yf \ No newline at end of file diff --git a/luban_examples/Projects/Go_bin/gen.bat b/luban_examples/Projects/Go_bin/gen.bat new file mode 100644 index 00000000..d6765edc --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen.bat @@ -0,0 +1,18 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c go-bin ^ + -d bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=gen ^ + -x outputDataDir=..\GenerateDatas\bytes ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json ^ + -x lubanGoModule=demo/luban + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Go_bin/gen/AudioType.go b/luban_examples/Projects/Go_bin/gen/AudioType.go new file mode 100644 index 00000000..5f395b0a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/AudioType.go @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AudioType_UNKNOWN = 0; + AudioType_ACC = 1; + AudioType_AIFF = 2; +) + diff --git a/luban_examples/Projects/Go_bin/gen/DefineFromExcel2.go b/luban_examples/Projects/Go_bin/gen/DefineFromExcel2.go new file mode 100644 index 00000000..b7d22b90 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/DefineFromExcel2.go @@ -0,0 +1,68 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type DefineFromExcel2 struct { + Id int32 + X1 bool + X5 int64 + X6 float32 + X8 int32 + X10 string + X13 int32 + X132 int32 + X14 interface{} + X15 interface{} + V2 *vec2 + T1 int64 + K1 []int32 + K2 []int32 + K8 map[int32]int32 + K9 []*TestDemoE2 + K10 []*vec3 + K11 []*vec4 +} + +const TypeId_DefineFromExcel2 = 482045152 + +func (*DefineFromExcel2) GetTypeId() int32 { + return 482045152 +} + +func NewDefineFromExcel2(_buf *luban.ByteBuf) (_v *DefineFromExcel2, err error) { + _v = &DefineFromExcel2{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X1, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.X5, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.X6, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.X8, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X10, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.X13, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X132, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X14, err = NewTestDemoDynamic(_buf); err != nil { err = errors.New("error"); return } } + { if _v.X15, err = NewTestShape(_buf); err != nil { err = errors.New("error"); return } } + { if _v.V2, err = Newvec2(_buf); err != nil { err = errors.New("error"); return } } + { if _v.T1, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + {_v.K1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K1 = append(_v.K1, _e_) } } + {_v.K2 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K2 = append(_v.K2, _e_) } } + { _v.K8 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K8[_key_] = _value_} } + {_v.K9 = make([]*TestDemoE2, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestDemoE2; { if _e_, err = NewTestDemoE2(_buf); err != nil { err = errors.New("error"); return } }; _v.K9 = append(_v.K9, _e_) } } + {_v.K10 = make([]*vec3, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *vec3; { if _e_, err = Newvec3(_buf); err != nil { err = errors.New("error"); return } }; _v.K10 = append(_v.K10, _e_) } } + {_v.K11 = make([]*vec4, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *vec4; { if _e_, err = Newvec4(_buf); err != nil { err = errors.New("error"); return } }; _v.K11 = append(_v.K11, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/Tables.go b/luban_examples/Projects/Go_bin/gen/Tables.go new file mode 100644 index 00000000..bcfce53b --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/Tables.go @@ -0,0 +1,314 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import "demo/luban" + +type ByteBufLoader func(string) (*luban.ByteBuf, error) + +type Tables struct { + TbBlackboard *AiTbBlackboard + TbBehaviorTree *AiTbBehaviorTree + TbGlobalConfig *CommonTbGlobalConfig + TbItem *ItemTbItem + TbL10NDemo *L10nTbL10NDemo + TbPatchDemo *L10nTbPatchDemo + TbTestTag *TagTbTestTag + TbFullTypes *TestTbFullTypes + TbSingleton *TestTbSingleton + TbNotIndexList *TestTbNotIndexList + TbMultiUnionIndexList *TestTbMultiUnionIndexList + TbMultiIndexList *TestTbMultiIndexList + TbDataFromMisc *TestTbDataFromMisc + TbMultiRowRecord *TestTbMultiRowRecord + TbTestMultiColumn *TestTbTestMultiColumn + TbMultiRowTitle *TestTbMultiRowTitle + TbTestNull *TestTbTestNull + TbDemoPrimitive *TestTbDemoPrimitive + TbTestString *TestTbTestString + TbDemoGroup *TestTbDemoGroup + TbDemoGroup_C *TestTbDemoGroup_C + TbDemoGroup_S *TestTbDemoGroup_S + TbDemoGroup_E *TestTbDemoGroup_E + TbTestGlobal *TestTbTestGlobal + TbTestBeRef *TestTbTestBeRef + TbTestBeRef2 *TestTbTestBeRef2 + TbTestRef *TestTbTestRef + TbTestSize *TestTbTestSize + TbTestSet *TestTbTestSet + TbDetectCsvEncoding *TestTbDetectCsvEncoding + TbItem2 *TestTbItem2 + TbTestIndex *TestTbTestIndex + TbTestMap *TestTbTestMap + TbExcelFromJson *TestTbExcelFromJson + TbCompositeJsonTable1 *TestTbCompositeJsonTable1 + TbCompositeJsonTable2 *TestTbCompositeJsonTable2 + TbCompositeJsonTable3 *TestTbCompositeJsonTable3 + TbExcelFromJsonMultiRow *TestTbExcelFromJsonMultiRow + TbTestScriptableObject *TestTbTestScriptableObject + TbTestMapper *TestTbTestMapper + TbDefineFromExcel2 *TestTbDefineFromExcel2 +} + +func NewTables(loader ByteBufLoader) (*Tables, error) { + var err error + var buf *luban.ByteBuf + + tables := &Tables{} + if buf, err = loader("ai_tbblackboard") ; err != nil { + return nil, err + } + if tables.TbBlackboard, err = NewAiTbBlackboard(buf) ; err != nil { + return nil, err + } + if buf, err = loader("ai_tbbehaviortree") ; err != nil { + return nil, err + } + if tables.TbBehaviorTree, err = NewAiTbBehaviorTree(buf) ; err != nil { + return nil, err + } + if buf, err = loader("common_tbglobalconfig") ; err != nil { + return nil, err + } + if tables.TbGlobalConfig, err = NewCommonTbGlobalConfig(buf) ; err != nil { + return nil, err + } + if buf, err = loader("item_tbitem") ; err != nil { + return nil, err + } + if tables.TbItem, err = NewItemTbItem(buf) ; err != nil { + return nil, err + } + if buf, err = loader("l10n_tbl10ndemo") ; err != nil { + return nil, err + } + if tables.TbL10NDemo, err = NewL10nTbL10NDemo(buf) ; err != nil { + return nil, err + } + if buf, err = loader("l10n_tbpatchdemo") ; err != nil { + return nil, err + } + if tables.TbPatchDemo, err = NewL10nTbPatchDemo(buf) ; err != nil { + return nil, err + } + if buf, err = loader("tag_tbtesttag") ; err != nil { + return nil, err + } + if tables.TbTestTag, err = NewTagTbTestTag(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbfulltypes") ; err != nil { + return nil, err + } + if tables.TbFullTypes, err = NewTestTbFullTypes(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbsingleton") ; err != nil { + return nil, err + } + if tables.TbSingleton, err = NewTestTbSingleton(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbnotindexlist") ; err != nil { + return nil, err + } + if tables.TbNotIndexList, err = NewTestTbNotIndexList(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultiunionindexlist") ; err != nil { + return nil, err + } + if tables.TbMultiUnionIndexList, err = NewTestTbMultiUnionIndexList(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultiindexlist") ; err != nil { + return nil, err + } + if tables.TbMultiIndexList, err = NewTestTbMultiIndexList(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdatafrommisc") ; err != nil { + return nil, err + } + if tables.TbDataFromMisc, err = NewTestTbDataFromMisc(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultirowrecord") ; err != nil { + return nil, err + } + if tables.TbMultiRowRecord, err = NewTestTbMultiRowRecord(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestmulticolumn") ; err != nil { + return nil, err + } + if tables.TbTestMultiColumn, err = NewTestTbTestMultiColumn(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultirowtitle") ; err != nil { + return nil, err + } + if tables.TbMultiRowTitle, err = NewTestTbMultiRowTitle(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestnull") ; err != nil { + return nil, err + } + if tables.TbTestNull, err = NewTestTbTestNull(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemoprimitive") ; err != nil { + return nil, err + } + if tables.TbDemoPrimitive, err = NewTestTbDemoPrimitive(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbteststring") ; err != nil { + return nil, err + } + if tables.TbTestString, err = NewTestTbTestString(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup") ; err != nil { + return nil, err + } + if tables.TbDemoGroup, err = NewTestTbDemoGroup(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup_c") ; err != nil { + return nil, err + } + if tables.TbDemoGroup_C, err = NewTestTbDemoGroup_C(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup_s") ; err != nil { + return nil, err + } + if tables.TbDemoGroup_S, err = NewTestTbDemoGroup_S(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup_e") ; err != nil { + return nil, err + } + if tables.TbDemoGroup_E, err = NewTestTbDemoGroup_E(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestglobal") ; err != nil { + return nil, err + } + if tables.TbTestGlobal, err = NewTestTbTestGlobal(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestberef") ; err != nil { + return nil, err + } + if tables.TbTestBeRef, err = NewTestTbTestBeRef(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestberef2") ; err != nil { + return nil, err + } + if tables.TbTestBeRef2, err = NewTestTbTestBeRef2(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestref") ; err != nil { + return nil, err + } + if tables.TbTestRef, err = NewTestTbTestRef(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestsize") ; err != nil { + return nil, err + } + if tables.TbTestSize, err = NewTestTbTestSize(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestset") ; err != nil { + return nil, err + } + if tables.TbTestSet, err = NewTestTbTestSet(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdetectcsvencoding") ; err != nil { + return nil, err + } + if tables.TbDetectCsvEncoding, err = NewTestTbDetectCsvEncoding(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbitem2") ; err != nil { + return nil, err + } + if tables.TbItem2, err = NewTestTbItem2(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestindex") ; err != nil { + return nil, err + } + if tables.TbTestIndex, err = NewTestTbTestIndex(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestmap") ; err != nil { + return nil, err + } + if tables.TbTestMap, err = NewTestTbTestMap(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbexcelfromjson") ; err != nil { + return nil, err + } + if tables.TbExcelFromJson, err = NewTestTbExcelFromJson(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbcompositejsontable1") ; err != nil { + return nil, err + } + if tables.TbCompositeJsonTable1, err = NewTestTbCompositeJsonTable1(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbcompositejsontable2") ; err != nil { + return nil, err + } + if tables.TbCompositeJsonTable2, err = NewTestTbCompositeJsonTable2(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbcompositejsontable3") ; err != nil { + return nil, err + } + if tables.TbCompositeJsonTable3, err = NewTestTbCompositeJsonTable3(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbexcelfromjsonmultirow") ; err != nil { + return nil, err + } + if tables.TbExcelFromJsonMultiRow, err = NewTestTbExcelFromJsonMultiRow(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestscriptableobject") ; err != nil { + return nil, err + } + if tables.TbTestScriptableObject, err = NewTestTbTestScriptableObject(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestmapper") ; err != nil { + return nil, err + } + if tables.TbTestMapper, err = NewTestTbTestMapper(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdefinefromexcel2") ; err != nil { + return nil, err + } + if tables.TbDefineFromExcel2, err = NewTestTbDefineFromExcel2(buf) ; err != nil { + return nil, err + } + return tables, nil +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.BehaviorTree.go b/luban_examples/Projects/Go_bin/gen/ai.BehaviorTree.go new file mode 100644 index 00000000..781ed19f --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.BehaviorTree.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiBehaviorTree struct { + Id int32 + Name string + Desc string + BlackboardId string + Root interface{} +} + +const TypeId_AiBehaviorTree = 159552822 + +func (*AiBehaviorTree) GetTypeId() int32 { + return 159552822 +} + +func NewAiBehaviorTree(_buf *luban.ByteBuf) (_v *AiBehaviorTree, err error) { + _v = &AiBehaviorTree{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.BlackboardId, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Root, err = NewAiComposeNode(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.BinaryOperator.go b/luban_examples/Projects/Go_bin/gen/ai.BinaryOperator.go new file mode 100644 index 00000000..a4ae0ec3 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.BinaryOperator.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiBinaryOperator struct { + Oper int32 + Data interface{} +} + +const TypeId_AiBinaryOperator = -979891605 + +func (*AiBinaryOperator) GetTypeId() int32 { + return -979891605 +} + +func NewAiBinaryOperator(_buf *luban.ByteBuf) (_v *AiBinaryOperator, err error) { + _v = &AiBinaryOperator{} + { if _v.Oper, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Data, err = NewAiKeyData(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.Blackboard.go b/luban_examples/Projects/Go_bin/gen/ai.Blackboard.go new file mode 100644 index 00000000..168a3a7c --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.Blackboard.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiBlackboard struct { + Name string + Desc string + ParentName string + Keys []*AiBlackboardKey +} + +const TypeId_AiBlackboard = 1576193005 + +func (*AiBlackboard) GetTypeId() int32 { + return 1576193005 +} + +func NewAiBlackboard(_buf *luban.ByteBuf) (_v *AiBlackboard, err error) { + _v = &AiBlackboard{} + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.ParentName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Keys = make([]*AiBlackboardKey, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *AiBlackboardKey; { if _e_, err = NewAiBlackboardKey(_buf); err != nil { err = errors.New("error"); return } }; _v.Keys = append(_v.Keys, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.BlackboardKey.go b/luban_examples/Projects/Go_bin/gen/ai.BlackboardKey.go new file mode 100644 index 00000000..a978e79b --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.BlackboardKey.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiBlackboardKey struct { + Name string + Desc string + IsStatic bool + Type int32 + TypeClassName string +} + +const TypeId_AiBlackboardKey = -511559886 + +func (*AiBlackboardKey) GetTypeId() int32 { + return -511559886 +} + +func NewAiBlackboardKey(_buf *luban.ByteBuf) (_v *AiBlackboardKey, err error) { + _v = &AiBlackboardKey{} + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.IsStatic, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.Type, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.TypeClassName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.BlackboardKeyData.go b/luban_examples/Projects/Go_bin/gen/ai.BlackboardKeyData.go new file mode 100644 index 00000000..9da83be3 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.BlackboardKeyData.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiBlackboardKeyData struct { + Value string +} + +const TypeId_AiBlackboardKeyData = 1517269500 + +func (*AiBlackboardKeyData) GetTypeId() int32 { + return 1517269500 +} + +func NewAiBlackboardKeyData(_buf *luban.ByteBuf) (_v *AiBlackboardKeyData, err error) { + _v = &AiBlackboardKeyData{} + { if _v.Value, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.ChooseSkill.go b/luban_examples/Projects/Go_bin/gen/ai.ChooseSkill.go new file mode 100644 index 00000000..c65ee95f --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.ChooseSkill.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiChooseSkill struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + TargetActorKey string + ResultSkillIdKey string +} + +const TypeId_AiChooseSkill = -918812268 + +func (*AiChooseSkill) GetTypeId() int32 { + return -918812268 +} + +func NewAiChooseSkill(_buf *luban.ByteBuf) (_v *AiChooseSkill, err error) { + _v = &AiChooseSkill{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.IgnoreRestartSelf, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.TargetActorKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.ResultSkillIdKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.ChooseTarget.go b/luban_examples/Projects/Go_bin/gen/ai.ChooseTarget.go new file mode 100644 index 00000000..24bac0fe --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.ChooseTarget.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiChooseTarget struct { + Id int32 + NodeName string + ResultTargetKey string +} + +const TypeId_AiChooseTarget = 1601247918 + +func (*AiChooseTarget) GetTypeId() int32 { + return 1601247918 +} + +func NewAiChooseTarget(_buf *luban.ByteBuf) (_v *AiChooseTarget, err error) { + _v = &AiChooseTarget{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.ResultTargetKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.ComposeNode.go b/luban_examples/Projects/Go_bin/gen/ai.ComposeNode.go new file mode 100644 index 00000000..5d2a9ea4 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.ComposeNode.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiComposeNode struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} +} + +const TypeId_AiComposeNode = -70129202 + +func (*AiComposeNode) GetTypeId() int32 { + return -70129202 +} + +func NewAiComposeNode(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -1789006105: _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("ai.sequence") } else { return _v, nil } + case -1946981627: _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("ai.selector") } else { return _v, nil } + case -1952582529: _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("ai.simpleparallel") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.DebugPrint.go b/luban_examples/Projects/Go_bin/gen/ai.DebugPrint.go new file mode 100644 index 00000000..aaea1269 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.DebugPrint.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiDebugPrint struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + Text string +} + +const TypeId_AiDebugPrint = 1357409728 + +func (*AiDebugPrint) GetTypeId() int32 { + return 1357409728 +} + +func NewAiDebugPrint(_buf *luban.ByteBuf) (_v *AiDebugPrint, err error) { + _v = &AiDebugPrint{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.IgnoreRestartSelf, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.Text, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.Decorator.go b/luban_examples/Projects/Go_bin/gen/ai.Decorator.go new file mode 100644 index 00000000..4812dcca --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.Decorator.go @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiDecorator struct { + Id int32 + NodeName string + FlowAbortMode int32 +} + +const TypeId_AiDecorator = 2017109461 + +func (*AiDecorator) GetTypeId() int32 { + return 2017109461 +} + +func NewAiDecorator(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -513308166: _v, err := NewAiUeLoop(_buf); if err != nil { return nil, errors.New("ai.ueloop") } else { return _v, nil } + case -951439423: _v, err := NewAiUeCooldown(_buf); if err != nil { return nil, errors.New("ai.uecooldown") } else { return _v, nil } + case 338469720: _v, err := NewAiUeTimeLimit(_buf); if err != nil { return nil, errors.New("ai.uetimelimit") } else { return _v, nil } + case -315297507: _v, err := NewAiUeBlackboard(_buf); if err != nil { return nil, errors.New("ai.ueblackboard") } else { return _v, nil } + case 195054574: _v, err := NewAiUeForceSuccess(_buf); if err != nil { return nil, errors.New("ai.ueforcesuccess") } else { return _v, nil } + case 1255972344: _v, err := NewAiIsAtLocation(_buf); if err != nil { return nil, errors.New("ai.isatlocation") } else { return _v, nil } + case -1207170283: _v, err := NewAiDistanceLessThan(_buf); if err != nil { return nil, errors.New("ai.distancelessthan") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.DistanceLessThan.go b/luban_examples/Projects/Go_bin/gen/ai.DistanceLessThan.go new file mode 100644 index 00000000..9c50b74b --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.DistanceLessThan.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiDistanceLessThan struct { + Id int32 + NodeName string + FlowAbortMode int32 + Actor1Key string + Actor2Key string + Distance float32 + ReverseResult bool +} + +const TypeId_AiDistanceLessThan = -1207170283 + +func (*AiDistanceLessThan) GetTypeId() int32 { + return -1207170283 +} + +func NewAiDistanceLessThan(_buf *luban.ByteBuf) (_v *AiDistanceLessThan, err error) { + _v = &AiDistanceLessThan{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Actor1Key, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Actor2Key, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Distance, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.ReverseResult, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.EExecutor.go b/luban_examples/Projects/Go_bin/gen/ai.EExecutor.go new file mode 100644 index 00000000..0d989068 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.EExecutor.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEExecutor_CLIENT = 0; + AiEExecutor_SERVER = 1; +) + diff --git a/luban_examples/Projects/Go_bin/gen/ai.EFinishMode.go b/luban_examples/Projects/Go_bin/gen/ai.EFinishMode.go new file mode 100644 index 00000000..454d8b24 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.EFinishMode.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEFinishMode_IMMEDIATE = 0; + AiEFinishMode_DELAYED = 1; +) + diff --git a/luban_examples/Projects/Go_bin/gen/ai.EFlowAbortMode.go b/luban_examples/Projects/Go_bin/gen/ai.EFlowAbortMode.go new file mode 100644 index 00000000..752872d3 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.EFlowAbortMode.go @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEFlowAbortMode_NONE = 0; + AiEFlowAbortMode_LOWER_PRIORITY = 1; + AiEFlowAbortMode_SELF = 2; + AiEFlowAbortMode_BOTH = 3; +) + diff --git a/luban_examples/Projects/Go_bin/gen/ai.EKeyType.go b/luban_examples/Projects/Go_bin/gen/ai.EKeyType.go new file mode 100644 index 00000000..9e9f30cd --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.EKeyType.go @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEKeyType_BOOL = 1; + AiEKeyType_INT = 2; + AiEKeyType_FLOAT = 3; + AiEKeyType_STRING = 4; + AiEKeyType_VECTOR = 5; + AiEKeyType_ROTATOR = 6; + AiEKeyType_NAME = 7; + AiEKeyType_CLASS = 8; + AiEKeyType_ENUM = 9; + AiEKeyType_OBJECT = 10; +) + diff --git a/luban_examples/Projects/Go_bin/gen/ai.ENotifyObserverMode.go b/luban_examples/Projects/Go_bin/gen/ai.ENotifyObserverMode.go new file mode 100644 index 00000000..76aae36e --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.ENotifyObserverMode.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiENotifyObserverMode_ON_VALUE_CHANGE = 0; + AiENotifyObserverMode_ON_RESULT_CHANGE = 1; +) + diff --git a/luban_examples/Projects/Go_bin/gen/ai.EOperator.go b/luban_examples/Projects/Go_bin/gen/ai.EOperator.go new file mode 100644 index 00000000..258928bd --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.EOperator.go @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEOperator_IS_EQUAL_TO = 0; + AiEOperator_IS_NOT_EQUAL_TO = 1; + AiEOperator_IS_LESS_THAN = 2; + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3; + AiEOperator_IS_GREAT_THAN = 4; + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5; + AiEOperator_CONTAINS = 6; + AiEOperator_NOT_CONTAINS = 7; +) + diff --git a/luban_examples/Projects/Go_bin/gen/ai.ExecuteTimeStatistic.go b/luban_examples/Projects/Go_bin/gen/ai.ExecuteTimeStatistic.go new file mode 100644 index 00000000..b835dfc2 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.ExecuteTimeStatistic.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiExecuteTimeStatistic struct { + Id int32 + NodeName string +} + +const TypeId_AiExecuteTimeStatistic = 990693812 + +func (*AiExecuteTimeStatistic) GetTypeId() int32 { + return 990693812 +} + +func NewAiExecuteTimeStatistic(_buf *luban.ByteBuf) (_v *AiExecuteTimeStatistic, err error) { + _v = &AiExecuteTimeStatistic{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.FloatKeyData.go b/luban_examples/Projects/Go_bin/gen/ai.FloatKeyData.go new file mode 100644 index 00000000..a7802e1b --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.FloatKeyData.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiFloatKeyData struct { + Value float32 +} + +const TypeId_AiFloatKeyData = -719747885 + +func (*AiFloatKeyData) GetTypeId() int32 { + return -719747885 +} + +func NewAiFloatKeyData(_buf *luban.ByteBuf) (_v *AiFloatKeyData, err error) { + _v = &AiFloatKeyData{} + { if _v.Value, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.FlowNode.go b/luban_examples/Projects/Go_bin/gen/ai.FlowNode.go new file mode 100644 index 00000000..ba5594e0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.FlowNode.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiFlowNode struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} +} + +const TypeId_AiFlowNode = -1109240970 + +func (*AiFlowNode) GetTypeId() int32 { + return -1109240970 +} + +func NewAiFlowNode(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -1789006105: _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("ai.sequence") } else { return _v, nil } + case -1946981627: _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("ai.selector") } else { return _v, nil } + case -1952582529: _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("ai.simpleparallel") } else { return _v, nil } + case -512994101: _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("ai.uewait") } else { return _v, nil } + case 1215378271: _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("ai.uewaitblackboardtime") } else { return _v, nil } + case 514987779: _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("ai.movetotarget") } else { return _v, nil } + case -918812268: _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("ai.chooseskill") } else { return _v, nil } + case -2140042998: _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("ai.movetorandomlocation") } else { return _v, nil } + case -969953113: _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("ai.movetolocation") } else { return _v, nil } + case 1357409728: _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("ai.debugprint") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.GetOwnerPlayer.go b/luban_examples/Projects/Go_bin/gen/ai.GetOwnerPlayer.go new file mode 100644 index 00000000..52e6aa31 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.GetOwnerPlayer.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiGetOwnerPlayer struct { + Id int32 + NodeName string + PlayerActorKey string +} + +const TypeId_AiGetOwnerPlayer = -999247644 + +func (*AiGetOwnerPlayer) GetTypeId() int32 { + return -999247644 +} + +func NewAiGetOwnerPlayer(_buf *luban.ByteBuf) (_v *AiGetOwnerPlayer, err error) { + _v = &AiGetOwnerPlayer{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.PlayerActorKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.IntKeyData.go b/luban_examples/Projects/Go_bin/gen/ai.IntKeyData.go new file mode 100644 index 00000000..bc98aee6 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.IntKeyData.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiIntKeyData struct { + Value int32 +} + +const TypeId_AiIntKeyData = -342751904 + +func (*AiIntKeyData) GetTypeId() int32 { + return -342751904 +} + +func NewAiIntKeyData(_buf *luban.ByteBuf) (_v *AiIntKeyData, err error) { + _v = &AiIntKeyData{} + { if _v.Value, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.IsAtLocation.go b/luban_examples/Projects/Go_bin/gen/ai.IsAtLocation.go new file mode 100644 index 00000000..ef4faf1a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.IsAtLocation.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiIsAtLocation struct { + Id int32 + NodeName string + FlowAbortMode int32 + AcceptableRadius float32 + KeyboardKey string + InverseCondition bool +} + +const TypeId_AiIsAtLocation = 1255972344 + +func (*AiIsAtLocation) GetTypeId() int32 { + return 1255972344 +} + +func NewAiIsAtLocation(_buf *luban.ByteBuf) (_v *AiIsAtLocation, err error) { + _v = &AiIsAtLocation{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.AcceptableRadius, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.KeyboardKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.InverseCondition, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.IsNotSet.go b/luban_examples/Projects/Go_bin/gen/ai.IsNotSet.go new file mode 100644 index 00000000..f9d3441c --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.IsNotSet.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + + + +type AiIsNotSet struct { +} + +const TypeId_AiIsNotSet = 790736255 + +func (*AiIsNotSet) GetTypeId() int32 { + return 790736255 +} + +func NewAiIsNotSet(_buf *luban.ByteBuf) (_v *AiIsNotSet, err error) { + _v = &AiIsNotSet{} + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.IsSet.go b/luban_examples/Projects/Go_bin/gen/ai.IsSet.go new file mode 100644 index 00000000..09d27e58 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.IsSet.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + + + +type AiIsSet struct { +} + +const TypeId_AiIsSet = 1635350898 + +func (*AiIsSet) GetTypeId() int32 { + return 1635350898 +} + +func NewAiIsSet(_buf *luban.ByteBuf) (_v *AiIsSet, err error) { + _v = &AiIsSet{} + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.KeepFaceTarget.go b/luban_examples/Projects/Go_bin/gen/ai.KeepFaceTarget.go new file mode 100644 index 00000000..e92535ce --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.KeepFaceTarget.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiKeepFaceTarget struct { + Id int32 + NodeName string + TargetActorKey string +} + +const TypeId_AiKeepFaceTarget = 1195270745 + +func (*AiKeepFaceTarget) GetTypeId() int32 { + return 1195270745 +} + +func NewAiKeepFaceTarget(_buf *luban.ByteBuf) (_v *AiKeepFaceTarget, err error) { + _v = &AiKeepFaceTarget{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.TargetActorKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.KeyData.go b/luban_examples/Projects/Go_bin/gen/ai.KeyData.go new file mode 100644 index 00000000..3bbcd326 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.KeyData.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiKeyData struct { +} + +const TypeId_AiKeyData = 1022478019 + +func (*AiKeyData) GetTypeId() int32 { + return 1022478019 +} + +func NewAiKeyData(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -719747885: _v, err := NewAiFloatKeyData(_buf); if err != nil { return nil, errors.New("ai.floatkeydata") } else { return _v, nil } + case -342751904: _v, err := NewAiIntKeyData(_buf); if err != nil { return nil, errors.New("ai.intkeydata") } else { return _v, nil } + case -307888654: _v, err := NewAiStringKeyData(_buf); if err != nil { return nil, errors.New("ai.stringkeydata") } else { return _v, nil } + case 1517269500: _v, err := NewAiBlackboardKeyData(_buf); if err != nil { return nil, errors.New("ai.blackboardkeydata") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.KeyQueryOperator.go b/luban_examples/Projects/Go_bin/gen/ai.KeyQueryOperator.go new file mode 100644 index 00000000..0a19256a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.KeyQueryOperator.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiKeyQueryOperator struct { +} + +const TypeId_AiKeyQueryOperator = -738364781 + +func (*AiKeyQueryOperator) GetTypeId() int32 { + return -738364781 +} + +func NewAiKeyQueryOperator(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case 1635350898: _v, err := NewAiIsSet(_buf); if err != nil { return nil, errors.New("ai.isset") } else { return _v, nil } + case 790736255: _v, err := NewAiIsNotSet(_buf); if err != nil { return nil, errors.New("ai.isnotset") } else { return _v, nil } + case -979891605: _v, err := NewAiBinaryOperator(_buf); if err != nil { return nil, errors.New("ai.binaryoperator") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.MoveToLocation.go b/luban_examples/Projects/Go_bin/gen/ai.MoveToLocation.go new file mode 100644 index 00000000..839b811d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.MoveToLocation.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiMoveToLocation struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + AcceptableRadius float32 +} + +const TypeId_AiMoveToLocation = -969953113 + +func (*AiMoveToLocation) GetTypeId() int32 { + return -969953113 +} + +func NewAiMoveToLocation(_buf *luban.ByteBuf) (_v *AiMoveToLocation, err error) { + _v = &AiMoveToLocation{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.IgnoreRestartSelf, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.AcceptableRadius, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.MoveToRandomLocation.go b/luban_examples/Projects/Go_bin/gen/ai.MoveToRandomLocation.go new file mode 100644 index 00000000..56e5a63d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.MoveToRandomLocation.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiMoveToRandomLocation struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + OriginPositionKey string + Radius float32 +} + +const TypeId_AiMoveToRandomLocation = -2140042998 + +func (*AiMoveToRandomLocation) GetTypeId() int32 { + return -2140042998 +} + +func NewAiMoveToRandomLocation(_buf *luban.ByteBuf) (_v *AiMoveToRandomLocation, err error) { + _v = &AiMoveToRandomLocation{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.IgnoreRestartSelf, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.OriginPositionKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Radius, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.MoveToTarget.go b/luban_examples/Projects/Go_bin/gen/ai.MoveToTarget.go new file mode 100644 index 00000000..aca287ca --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.MoveToTarget.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiMoveToTarget struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + TargetActorKey string + AcceptableRadius float32 +} + +const TypeId_AiMoveToTarget = 514987779 + +func (*AiMoveToTarget) GetTypeId() int32 { + return 514987779 +} + +func NewAiMoveToTarget(_buf *luban.ByteBuf) (_v *AiMoveToTarget, err error) { + _v = &AiMoveToTarget{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.IgnoreRestartSelf, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.TargetActorKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.AcceptableRadius, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.Node.go b/luban_examples/Projects/Go_bin/gen/ai.Node.go new file mode 100644 index 00000000..c421a996 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.Node.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiNode struct { + Id int32 + NodeName string +} + +const TypeId_AiNode = -1055479768 + +func (*AiNode) GetTypeId() int32 { + return -1055479768 +} + +func NewAiNode(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case 1812449155: _v, err := NewAiUeSetDefaultFocus(_buf); if err != nil { return nil, errors.New("ai.uesetdefaultfocus") } else { return _v, nil } + case 990693812: _v, err := NewAiExecuteTimeStatistic(_buf); if err != nil { return nil, errors.New("ai.executetimestatistic") } else { return _v, nil } + case 1601247918: _v, err := NewAiChooseTarget(_buf); if err != nil { return nil, errors.New("ai.choosetarget") } else { return _v, nil } + case 1195270745: _v, err := NewAiKeepFaceTarget(_buf); if err != nil { return nil, errors.New("ai.keepfacetarget") } else { return _v, nil } + case -999247644: _v, err := NewAiGetOwnerPlayer(_buf); if err != nil { return nil, errors.New("ai.getownerplayer") } else { return _v, nil } + case -61887372: _v, err := NewAiUpdateDailyBehaviorProps(_buf); if err != nil { return nil, errors.New("ai.updatedailybehaviorprops") } else { return _v, nil } + case -513308166: _v, err := NewAiUeLoop(_buf); if err != nil { return nil, errors.New("ai.ueloop") } else { return _v, nil } + case -951439423: _v, err := NewAiUeCooldown(_buf); if err != nil { return nil, errors.New("ai.uecooldown") } else { return _v, nil } + case 338469720: _v, err := NewAiUeTimeLimit(_buf); if err != nil { return nil, errors.New("ai.uetimelimit") } else { return _v, nil } + case -315297507: _v, err := NewAiUeBlackboard(_buf); if err != nil { return nil, errors.New("ai.ueblackboard") } else { return _v, nil } + case 195054574: _v, err := NewAiUeForceSuccess(_buf); if err != nil { return nil, errors.New("ai.ueforcesuccess") } else { return _v, nil } + case 1255972344: _v, err := NewAiIsAtLocation(_buf); if err != nil { return nil, errors.New("ai.isatlocation") } else { return _v, nil } + case -1207170283: _v, err := NewAiDistanceLessThan(_buf); if err != nil { return nil, errors.New("ai.distancelessthan") } else { return _v, nil } + case -1789006105: _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("ai.sequence") } else { return _v, nil } + case -1946981627: _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("ai.selector") } else { return _v, nil } + case -1952582529: _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("ai.simpleparallel") } else { return _v, nil } + case -512994101: _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("ai.uewait") } else { return _v, nil } + case 1215378271: _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("ai.uewaitblackboardtime") } else { return _v, nil } + case 514987779: _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("ai.movetotarget") } else { return _v, nil } + case -918812268: _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("ai.chooseskill") } else { return _v, nil } + case -2140042998: _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("ai.movetorandomlocation") } else { return _v, nil } + case -969953113: _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("ai.movetolocation") } else { return _v, nil } + case 1357409728: _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("ai.debugprint") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.Selector.go b/luban_examples/Projects/Go_bin/gen/ai.Selector.go new file mode 100644 index 00000000..43ca8d75 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.Selector.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiSelector struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + Children []interface{} +} + +const TypeId_AiSelector = -1946981627 + +func (*AiSelector) GetTypeId() int32 { + return -1946981627 +} + +func NewAiSelector(_buf *luban.ByteBuf) (_v *AiSelector, err error) { + _v = &AiSelector{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + {_v.Children = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiFlowNode(_buf); err != nil { err = errors.New("error"); return } }; _v.Children = append(_v.Children, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.Sequence.go b/luban_examples/Projects/Go_bin/gen/ai.Sequence.go new file mode 100644 index 00000000..7ed92073 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.Sequence.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiSequence struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + Children []interface{} +} + +const TypeId_AiSequence = -1789006105 + +func (*AiSequence) GetTypeId() int32 { + return -1789006105 +} + +func NewAiSequence(_buf *luban.ByteBuf) (_v *AiSequence, err error) { + _v = &AiSequence{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + {_v.Children = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiFlowNode(_buf); err != nil { err = errors.New("error"); return } }; _v.Children = append(_v.Children, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.Service.go b/luban_examples/Projects/Go_bin/gen/ai.Service.go new file mode 100644 index 00000000..671789be --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.Service.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiService struct { + Id int32 + NodeName string +} + +const TypeId_AiService = -472395057 + +func (*AiService) GetTypeId() int32 { + return -472395057 +} + +func NewAiService(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case 1812449155: _v, err := NewAiUeSetDefaultFocus(_buf); if err != nil { return nil, errors.New("ai.uesetdefaultfocus") } else { return _v, nil } + case 990693812: _v, err := NewAiExecuteTimeStatistic(_buf); if err != nil { return nil, errors.New("ai.executetimestatistic") } else { return _v, nil } + case 1601247918: _v, err := NewAiChooseTarget(_buf); if err != nil { return nil, errors.New("ai.choosetarget") } else { return _v, nil } + case 1195270745: _v, err := NewAiKeepFaceTarget(_buf); if err != nil { return nil, errors.New("ai.keepfacetarget") } else { return _v, nil } + case -999247644: _v, err := NewAiGetOwnerPlayer(_buf); if err != nil { return nil, errors.New("ai.getownerplayer") } else { return _v, nil } + case -61887372: _v, err := NewAiUpdateDailyBehaviorProps(_buf); if err != nil { return nil, errors.New("ai.updatedailybehaviorprops") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.SimpleParallel.go b/luban_examples/Projects/Go_bin/gen/ai.SimpleParallel.go new file mode 100644 index 00000000..e19f0df2 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.SimpleParallel.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiSimpleParallel struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + FinishMode int32 + MainTask interface{} + BackgroundNode interface{} +} + +const TypeId_AiSimpleParallel = -1952582529 + +func (*AiSimpleParallel) GetTypeId() int32 { + return -1952582529 +} + +func NewAiSimpleParallel(_buf *luban.ByteBuf) (_v *AiSimpleParallel, err error) { + _v = &AiSimpleParallel{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.FinishMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.MainTask, err = NewAiTask(_buf); err != nil { err = errors.New("error"); return } } + { if _v.BackgroundNode, err = NewAiFlowNode(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.StringKeyData.go b/luban_examples/Projects/Go_bin/gen/ai.StringKeyData.go new file mode 100644 index 00000000..1ccedc0d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.StringKeyData.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiStringKeyData struct { + Value string +} + +const TypeId_AiStringKeyData = -307888654 + +func (*AiStringKeyData) GetTypeId() int32 { + return -307888654 +} + +func NewAiStringKeyData(_buf *luban.ByteBuf) (_v *AiStringKeyData, err error) { + _v = &AiStringKeyData{} + { if _v.Value, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.Task.go b/luban_examples/Projects/Go_bin/gen/ai.Task.go new file mode 100644 index 00000000..0dc75af8 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.Task.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiTask struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool +} + +const TypeId_AiTask = -1055314005 + +func (*AiTask) GetTypeId() int32 { + return -1055314005 +} + +func NewAiTask(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -512994101: _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("ai.uewait") } else { return _v, nil } + case 1215378271: _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("ai.uewaitblackboardtime") } else { return _v, nil } + case 514987779: _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("ai.movetotarget") } else { return _v, nil } + case -918812268: _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("ai.chooseskill") } else { return _v, nil } + case -2140042998: _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("ai.movetorandomlocation") } else { return _v, nil } + case -969953113: _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("ai.movetolocation") } else { return _v, nil } + case 1357409728: _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("ai.debugprint") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.TbBehaviorTree.go b/luban_examples/Projects/Go_bin/gen/ai.TbBehaviorTree.go new file mode 100644 index 00000000..abd85502 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.TbBehaviorTree.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type AiTbBehaviorTree struct { + _dataMap map[int32]*AiBehaviorTree + _dataList []*AiBehaviorTree +} + +func NewAiTbBehaviorTree(_buf *luban.ByteBuf) (*AiTbBehaviorTree, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*AiBehaviorTree, 0, size) + dataMap := make(map[int32]*AiBehaviorTree) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewAiBehaviorTree(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &AiTbBehaviorTree{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *AiTbBehaviorTree) GetDataMap() map[int32]*AiBehaviorTree { + return table._dataMap +} + +func (table *AiTbBehaviorTree) GetDataList() []*AiBehaviorTree { + return table._dataList +} + +func (table *AiTbBehaviorTree) Get(key int32) *AiBehaviorTree { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.TbBlackboard.go b/luban_examples/Projects/Go_bin/gen/ai.TbBlackboard.go new file mode 100644 index 00000000..6dac875c --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.TbBlackboard.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type AiTbBlackboard struct { + _dataMap map[string]*AiBlackboard + _dataList []*AiBlackboard +} + +func NewAiTbBlackboard(_buf *luban.ByteBuf) (*AiTbBlackboard, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*AiBlackboard, 0, size) + dataMap := make(map[string]*AiBlackboard) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewAiBlackboard(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Name] = _v + } + } + return &AiTbBlackboard{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *AiTbBlackboard) GetDataMap() map[string]*AiBlackboard { + return table._dataMap +} + +func (table *AiTbBlackboard) GetDataList() []*AiBlackboard { + return table._dataList +} + +func (table *AiTbBlackboard) Get(key string) *AiBlackboard { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeBlackboard.go b/luban_examples/Projects/Go_bin/gen/ai.UeBlackboard.go new file mode 100644 index 00000000..81879d46 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeBlackboard.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeBlackboard struct { + Id int32 + NodeName string + FlowAbortMode int32 + NotifyObserver int32 + BlackboardKey string + KeyQuery interface{} +} + +const TypeId_AiUeBlackboard = -315297507 + +func (*AiUeBlackboard) GetTypeId() int32 { + return -315297507 +} + +func NewAiUeBlackboard(_buf *luban.ByteBuf) (_v *AiUeBlackboard, err error) { + _v = &AiUeBlackboard{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NotifyObserver, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.BlackboardKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.KeyQuery, err = NewAiKeyQueryOperator(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeCooldown.go b/luban_examples/Projects/Go_bin/gen/ai.UeCooldown.go new file mode 100644 index 00000000..3a00eca4 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeCooldown.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeCooldown struct { + Id int32 + NodeName string + FlowAbortMode int32 + CooldownTime float32 +} + +const TypeId_AiUeCooldown = -951439423 + +func (*AiUeCooldown) GetTypeId() int32 { + return -951439423 +} + +func NewAiUeCooldown(_buf *luban.ByteBuf) (_v *AiUeCooldown, err error) { + _v = &AiUeCooldown{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.CooldownTime, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeForceSuccess.go b/luban_examples/Projects/Go_bin/gen/ai.UeForceSuccess.go new file mode 100644 index 00000000..1ab173d2 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeForceSuccess.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeForceSuccess struct { + Id int32 + NodeName string + FlowAbortMode int32 +} + +const TypeId_AiUeForceSuccess = 195054574 + +func (*AiUeForceSuccess) GetTypeId() int32 { + return 195054574 +} + +func NewAiUeForceSuccess(_buf *luban.ByteBuf) (_v *AiUeForceSuccess, err error) { + _v = &AiUeForceSuccess{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeLoop.go b/luban_examples/Projects/Go_bin/gen/ai.UeLoop.go new file mode 100644 index 00000000..76d2e3ab --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeLoop.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeLoop struct { + Id int32 + NodeName string + FlowAbortMode int32 + NumLoops int32 + InfiniteLoop bool + InfiniteLoopTimeoutTime float32 +} + +const TypeId_AiUeLoop = -513308166 + +func (*AiUeLoop) GetTypeId() int32 { + return -513308166 +} + +func NewAiUeLoop(_buf *luban.ByteBuf) (_v *AiUeLoop, err error) { + _v = &AiUeLoop{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NumLoops, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.InfiniteLoop, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.InfiniteLoopTimeoutTime, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeSetDefaultFocus.go b/luban_examples/Projects/Go_bin/gen/ai.UeSetDefaultFocus.go new file mode 100644 index 00000000..11863eeb --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeSetDefaultFocus.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeSetDefaultFocus struct { + Id int32 + NodeName string + KeyboardKey string +} + +const TypeId_AiUeSetDefaultFocus = 1812449155 + +func (*AiUeSetDefaultFocus) GetTypeId() int32 { + return 1812449155 +} + +func NewAiUeSetDefaultFocus(_buf *luban.ByteBuf) (_v *AiUeSetDefaultFocus, err error) { + _v = &AiUeSetDefaultFocus{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.KeyboardKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeTimeLimit.go b/luban_examples/Projects/Go_bin/gen/ai.UeTimeLimit.go new file mode 100644 index 00000000..fcbfc1d2 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeTimeLimit.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeTimeLimit struct { + Id int32 + NodeName string + FlowAbortMode int32 + LimitTime float32 +} + +const TypeId_AiUeTimeLimit = 338469720 + +func (*AiUeTimeLimit) GetTypeId() int32 { + return 338469720 +} + +func NewAiUeTimeLimit(_buf *luban.ByteBuf) (_v *AiUeTimeLimit, err error) { + _v = &AiUeTimeLimit{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.LimitTime, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeWait.go b/luban_examples/Projects/Go_bin/gen/ai.UeWait.go new file mode 100644 index 00000000..7acdde4d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeWait.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeWait struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + WaitTime float32 + RandomDeviation float32 +} + +const TypeId_AiUeWait = -512994101 + +func (*AiUeWait) GetTypeId() int32 { + return -512994101 +} + +func NewAiUeWait(_buf *luban.ByteBuf) (_v *AiUeWait, err error) { + _v = &AiUeWait{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.IgnoreRestartSelf, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.WaitTime, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.RandomDeviation, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UeWaitBlackboardTime.go b/luban_examples/Projects/Go_bin/gen/ai.UeWaitBlackboardTime.go new file mode 100644 index 00000000..565713b6 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UeWaitBlackboardTime.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUeWaitBlackboardTime struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + BlackboardKey string +} + +const TypeId_AiUeWaitBlackboardTime = 1215378271 + +func (*AiUeWaitBlackboardTime) GetTypeId() int32 { + return 1215378271 +} + +func NewAiUeWaitBlackboardTime(_buf *luban.ByteBuf) (_v *AiUeWaitBlackboardTime, err error) { + _v = &AiUeWaitBlackboardTime{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.Decorators = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiDecorator(_buf); err != nil { err = errors.New("error"); return } }; _v.Decorators = append(_v.Decorators, _e_) } } + {_v.Services = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewAiService(_buf); err != nil { err = errors.New("error"); return } }; _v.Services = append(_v.Services, _e_) } } + { if _v.IgnoreRestartSelf, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.BlackboardKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/ai.UpdateDailyBehaviorProps.go b/luban_examples/Projects/Go_bin/gen/ai.UpdateDailyBehaviorProps.go new file mode 100644 index 00000000..3083dca8 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/ai.UpdateDailyBehaviorProps.go @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type AiUpdateDailyBehaviorProps struct { + Id int32 + NodeName string + SatietyKey string + EnergyKey string + MoodKey string + SatietyLowerThresholdKey string + SatietyUpperThresholdKey string + EnergyLowerThresholdKey string + EnergyUpperThresholdKey string + MoodLowerThresholdKey string + MoodUpperThresholdKey string +} + +const TypeId_AiUpdateDailyBehaviorProps = -61887372 + +func (*AiUpdateDailyBehaviorProps) GetTypeId() int32 { + return -61887372 +} + +func NewAiUpdateDailyBehaviorProps(_buf *luban.ByteBuf) (_v *AiUpdateDailyBehaviorProps, err error) { + _v = &AiUpdateDailyBehaviorProps{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.SatietyKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.EnergyKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.MoodKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.SatietyLowerThresholdKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.SatietyUpperThresholdKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.EnergyLowerThresholdKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.EnergyUpperThresholdKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.MoodLowerThresholdKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.MoodUpperThresholdKey, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/common.EBoolOperator.go b/luban_examples/Projects/Go_bin/gen/common.EBoolOperator.go new file mode 100644 index 00000000..b347ea1a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/common.EBoolOperator.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + CommonEBoolOperator_AND = 0; + CommonEBoolOperator_OR = 1; +) + diff --git a/luban_examples/Projects/Go_bin/gen/common.GlobalConfig.go b/luban_examples/Projects/Go_bin/gen/common.GlobalConfig.go new file mode 100644 index 00000000..e7f49116 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/common.GlobalConfig.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type CommonGlobalConfig struct { + X1 int32 + X2 int32 + X3 int32 + X4 int32 + X5 int32 + X6 int32 + X7 []int32 +} + +const TypeId_CommonGlobalConfig = -848234488 + +func (*CommonGlobalConfig) GetTypeId() int32 { + return -848234488 +} + +func NewCommonGlobalConfig(_buf *luban.ByteBuf) (_v *CommonGlobalConfig, err error) { + _v = &CommonGlobalConfig{} + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X5, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X6, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + {_v.X7 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X7 = append(_v.X7, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/common.TbGlobalConfig.go b/luban_examples/Projects/Go_bin/gen/common.TbGlobalConfig.go new file mode 100644 index 00000000..b9e65186 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/common.TbGlobalConfig.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + + +import "errors" + +type CommonTbGlobalConfig struct { + _data *CommonGlobalConfig +} + +func NewCommonTbGlobalConfig(_buf *luban.ByteBuf) (*CommonTbGlobalConfig, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else if size != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewCommonGlobalConfig(_buf); err2 != nil { + return nil, err2 + } else { + return &CommonTbGlobalConfig{_data:_v}, nil + } + } +} + +func (table *CommonTbGlobalConfig) Get() *CommonGlobalConfig { + return table._data +} + + diff --git a/luban_examples/Projects/Go_bin/gen/item.EClothersStarQualityType.go b/luban_examples/Projects/Go_bin/gen/item.EClothersStarQualityType.go new file mode 100644 index 00000000..0e88af4b --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EClothersStarQualityType.go @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 一星 + */ + ItemEClothersStarQualityType_ONE = 1; + /** + * 二星 + */ + ItemEClothersStarQualityType_TWO = 2; + /** + * 三星 + */ + ItemEClothersStarQualityType_THREE = 3; + /** + * 四星 + */ + ItemEClothersStarQualityType_FOUR = 4; + /** + * 五星 + */ + ItemEClothersStarQualityType_FIVE = 5; + /** + * 六星 + */ + ItemEClothersStarQualityType_SIX = 6; + /** + * 七星 + */ + ItemEClothersStarQualityType_SEVEN = 7; + /** + * 八星 + */ + ItemEClothersStarQualityType_EIGHT = 8; + /** + * 九星 + */ + ItemEClothersStarQualityType_NINE = 9; + /** + * 十星 + */ + ItemEClothersStarQualityType_TEN = 10; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.EClothersTag.go b/luban_examples/Projects/Go_bin/gen/item.EClothersTag.go new file mode 100644 index 00000000..11b46eff --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EClothersTag.go @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 防晒 + */ + ItemEClothersTag_FANG_SHAI = 1; + /** + * 舞者 + */ + ItemEClothersTag_WU_ZHE = 2; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.EClothesHidePartType.go b/luban_examples/Projects/Go_bin/gen/item.EClothesHidePartType.go new file mode 100644 index 00000000..4cd7db31 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EClothesHidePartType.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 胸部 + */ + ItemEClothesHidePartType_CHEST = 0; + /** + * 手 + */ + ItemEClothesHidePartType_HEAD = 1; + /** + * 脊柱上 + */ + ItemEClothesHidePartType_SPINE_UPPER = 2; + /** + * 脊柱下 + */ + ItemEClothesHidePartType_SPINE_LOWER = 3; + /** + * 臀部 + */ + ItemEClothesHidePartType_HIP = 4; + /** + * 腿上 + */ + ItemEClothesHidePartType_LEG_UPPER = 5; + /** + * 腿中 + */ + ItemEClothesHidePartType_LEG_MIDDLE = 6; + /** + * 腿下 + */ + ItemEClothesHidePartType_LEG_LOWER = 7; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.EClothesPropertyType.go b/luban_examples/Projects/Go_bin/gen/item.EClothesPropertyType.go new file mode 100644 index 00000000..420031eb --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EClothesPropertyType.go @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 简约 + */ + ItemEClothesPropertyType_JIAN_YUE = 1; + /** + * 华丽 + */ + ItemEClothesPropertyType_HUA_LI = 2; + /** + * 可爱 + */ + ItemEClothesPropertyType_KE_AI = 3; + /** + * 成熟 + */ + ItemEClothesPropertyType_CHENG_SHU = 4; + /** + * 活泼 + */ + ItemEClothesPropertyType_HUO_PO = 5; + /** + * 优雅 + */ + ItemEClothesPropertyType_YOU_YA = 6; + /** + * 清纯 + */ + ItemEClothesPropertyType_QING_CHUN = 7; + /** + * 性感 + */ + ItemEClothesPropertyType_XING_GAN = 8; + /** + * 清凉 + */ + ItemEClothesPropertyType_QING_LIANG = 9; + /** + * 保暖 + */ + ItemEClothesPropertyType_BAO_NUAN = 10; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.ECurrencyType.go b/luban_examples/Projects/Go_bin/gen/item.ECurrencyType.go new file mode 100644 index 00000000..9eb9e092 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.ECurrencyType.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 钻石 + */ + ItemECurrencyType_DIAMOND = 1; + /** + * 金币 + */ + ItemECurrencyType_GOLD = 2; + /** + * 银币 + */ + ItemECurrencyType_SILVER = 3; + /** + * 经验 + */ + ItemECurrencyType_EXP = 4; + /** + * 能量点 + */ + ItemECurrencyType_POWER_POINT = 5; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.EItemQuality.go b/luban_examples/Projects/Go_bin/gen/item.EItemQuality.go new file mode 100644 index 00000000..4bdd909c --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EItemQuality.go @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +/** + * 道具品质 + */ +const ( + /** + * 白 + */ + ItemEItemQuality_WHITE = 0; + /** + * 绿 + */ + ItemEItemQuality_GREEN = 1; + /** + * 蓝 + */ + ItemEItemQuality_BLUE = 2; + /** + * 紫 + */ + ItemEItemQuality_PURPLE = 3; + /** + * 金 + */ + ItemEItemQuality_GOLDEN = 4; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.EMajorType.go b/luban_examples/Projects/Go_bin/gen/item.EMajorType.go new file mode 100644 index 00000000..499e8cad --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EMajorType.go @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 货币 + */ + ItemEMajorType_CURRENCY = 1; + /** + * 服装 + */ + ItemEMajorType_CLOTH = 2; + /** + * 任务 + */ + ItemEMajorType_QUEST = 3; + /** + * 消耗品 + */ + ItemEMajorType_CONSUMABLES = 4; + /** + * 宝箱 + */ + ItemEMajorType_TREASURE_BOX = 5; + /** + * 成就和称谓 + */ + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6; + /** + * 头像框 + */ + ItemEMajorType_HEAD_FRAME = 7; + /** + * 语音 + */ + ItemEMajorType_VOICE = 8; + /** + * 动作 + */ + ItemEMajorType_ACTION = 9; + /** + * 扩容道具 + */ + ItemEMajorType_EXPANSION = 10; + /** + * 制作材料 + */ + ItemEMajorType_MATERIAL = 11; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.EMinorType.go b/luban_examples/Projects/Go_bin/gen/item.EMinorType.go new file mode 100644 index 00000000..89daddc9 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EMinorType.go @@ -0,0 +1,210 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 钻石 + */ + ItemEMinorType_DIAMOND = 101; + /** + * 金币 + */ + ItemEMinorType_GOLD = 102; + /** + * 银币 + */ + ItemEMinorType_SILVER = 103; + /** + * 经验 + */ + ItemEMinorType_EXP = 104; + /** + * 能量点 + */ + ItemEMinorType_POWER_POINT = 105; + /** + * 发型 + */ + ItemEMinorType_HAIR_STYLE = 210; + /** + * 外套 + */ + ItemEMinorType_COAT = 220; + /** + * 上衣 + */ + ItemEMinorType_UPPER_JACKET = 230; + /** + * 裤子 + */ + ItemEMinorType_TROUSERS = 241; + /** + * 裙子 + */ + ItemEMinorType_SKIRT = 242; + /** + * 袜子 + */ + ItemEMinorType_SOCKS = 250; + /** + * 鞋子 + */ + ItemEMinorType_SHOES = 260; + /** + * 发饰 + */ + ItemEMinorType_HAIR_ACCESSORY = 271; + /** + * 帽子 + */ + ItemEMinorType_HAT = 272; + /** + * 耳饰 + */ + ItemEMinorType_EARRING = 273; + /** + * 颈饰 + */ + ItemEMinorType_NECKLACE = 274; + /** + * 腕饰 + */ + ItemEMinorType_BRACELET = 275; + /** + * 发箍 + */ + ItemEMinorType_HAIR_CLASP = 276; + /** + * 手套 + */ + ItemEMinorType_GLOVE = 277; + /** + * 手持物 + */ + ItemEMinorType_HANDHELD_OBJECT = 278; + /** + * 特殊 + */ + ItemEMinorType_SPECIAL = 279; + /** + * 底妆 + */ + ItemEMinorType_BASE_COSMETIC = 281; + /** + * 眉妆 + */ + ItemEMinorType_EYEBROW_COSMETIC = 282; + /** + * 睫毛 + */ + ItemEMinorType_EYELASH = 283; + /** + * 美瞳 + */ + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284; + /** + * 唇妆 + */ + ItemEMinorType_LIP_COSMETIC = 285; + /** + * 肤色 + */ + ItemEMinorType_SKIN_COLOR = 286; + /** + * 连衣裙 + */ + ItemEMinorType_ONE_PIECE_DRESS = 290; + /** + * 换装场景 + */ + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291; + /** + * 任务道具 + */ + ItemEMinorType_QUEST = 301; + /** + * 投掷物 + */ + ItemEMinorType_CAST = 401; + /** + * 刀剑 + */ + ItemEMinorType_SWORD = 421; + /** + * 弓箭 + */ + ItemEMinorType_BOW_ARROW = 422; + /** + * 法杖 + */ + ItemEMinorType_WANDS = 423; + /** + * 特殊工具 + */ + ItemEMinorType_SPECIAL_TOOL = 424; + /** + * 食物 + */ + ItemEMinorType_FOOD = 403; + /** + * 宝箱 + */ + ItemEMinorType_TREASURE_BOX = 501; + /** + * 钥匙 + */ + ItemEMinorType_KEY = 502; + /** + * 多选一宝箱 + */ + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503; + /** + * 成就相关 + */ + ItemEMinorType_ACHIEVEMENT = 601; + /** + * 称谓相关 + */ + ItemEMinorType_TITLE = 602; + /** + * 头像框 + */ + ItemEMinorType_AVATAR_FRAME = 701; + /** + * 语音 + */ + ItemEMinorType_VOICE = 801; + /** + * 特殊待机动作 + */ + ItemEMinorType_IDLE_POSE = 901; + /** + * 拍照动作 + */ + ItemEMinorType_PHOTO_POSE = 902; + /** + * 背包 + */ + ItemEMinorType_BAG = 1001; + /** + * 好友数量 + */ + ItemEMinorType_FRIEND_CAPACITY = 1002; + /** + * 制作材料 + */ + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101; + /** + * 设计图纸 + */ + ItemEMinorType_DESIGN_DRAWING = 1102; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.EUseType.go b/luban_examples/Projects/Go_bin/gen/item.EUseType.go new file mode 100644 index 00000000..62e3ada5 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.EUseType.go @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 手动 + */ + ItemEUseType_MANUAL = 0; + /** + * 自动 + */ + ItemEUseType_AUTO = 1; +) + diff --git a/luban_examples/Projects/Go_bin/gen/item.Item.go b/luban_examples/Projects/Go_bin/gen/item.Item.go new file mode 100644 index 00000000..94664fdd --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.Item.go @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type ItemItem struct { + Id int32 + Name string + MajorType int32 + MinorType int32 + MaxPileNum int32 + Quality int32 + Icon string + IconBackgroud string + IconMask string + Desc string + ShowOrder int32 +} + +const TypeId_ItemItem = 2107285806 + +func (*ItemItem) GetTypeId() int32 { + return 2107285806 +} + +func NewItemItem(_buf *luban.ByteBuf) (_v *ItemItem, err error) { + _v = &ItemItem{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.MajorType, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.MinorType, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.MaxPileNum, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Quality, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Icon, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.IconBackgroud, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.IconMask, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.ShowOrder, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/item.TbItem.go b/luban_examples/Projects/Go_bin/gen/item.TbItem.go new file mode 100644 index 00000000..da84a3ea --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/item.TbItem.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type ItemTbItem struct { + _dataMap map[int32]*ItemItem + _dataList []*ItemItem +} + +func NewItemTbItem(_buf *luban.ByteBuf) (*ItemTbItem, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*ItemItem, 0, size) + dataMap := make(map[int32]*ItemItem) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewItemItem(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &ItemTbItem{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *ItemTbItem) GetDataMap() map[int32]*ItemItem { + return table._dataMap +} + +func (table *ItemTbItem) GetDataList() []*ItemItem { + return table._dataList +} + +func (table *ItemTbItem) Get(key int32) *ItemItem { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/l10n.L10NDemo.go b/luban_examples/Projects/Go_bin/gen/l10n.L10NDemo.go new file mode 100644 index 00000000..272fb9a0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/l10n.L10NDemo.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type L10nL10NDemo struct { + Id int32 + Text string +} + +const TypeId_L10nL10NDemo = -331195887 + +func (*L10nL10NDemo) GetTypeId() int32 { + return -331195887 +} + +func NewL10nL10NDemo(_buf *luban.ByteBuf) (_v *L10nL10NDemo, err error) { + _v = &L10nL10NDemo{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Text, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/l10n.PatchDemo.go b/luban_examples/Projects/Go_bin/gen/l10n.PatchDemo.go new file mode 100644 index 00000000..37f83528 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/l10n.PatchDemo.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type L10nPatchDemo struct { + Id int32 + Value int32 +} + +const TypeId_L10nPatchDemo = -1707294656 + +func (*L10nPatchDemo) GetTypeId() int32 { + return -1707294656 +} + +func NewL10nPatchDemo(_buf *luban.ByteBuf) (_v *L10nPatchDemo, err error) { + _v = &L10nPatchDemo{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Value, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/l10n.TbL10NDemo.go b/luban_examples/Projects/Go_bin/gen/l10n.TbL10NDemo.go new file mode 100644 index 00000000..8bf58a2d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/l10n.TbL10NDemo.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type L10nTbL10NDemo struct { + _dataMap map[int32]*L10nL10NDemo + _dataList []*L10nL10NDemo +} + +func NewL10nTbL10NDemo(_buf *luban.ByteBuf) (*L10nTbL10NDemo, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*L10nL10NDemo, 0, size) + dataMap := make(map[int32]*L10nL10NDemo) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewL10nL10NDemo(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &L10nTbL10NDemo{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *L10nTbL10NDemo) GetDataMap() map[int32]*L10nL10NDemo { + return table._dataMap +} + +func (table *L10nTbL10NDemo) GetDataList() []*L10nL10NDemo { + return table._dataList +} + +func (table *L10nTbL10NDemo) Get(key int32) *L10nL10NDemo { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/l10n.TbPatchDemo.go b/luban_examples/Projects/Go_bin/gen/l10n.TbPatchDemo.go new file mode 100644 index 00000000..bbca7da5 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/l10n.TbPatchDemo.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type L10nTbPatchDemo struct { + _dataMap map[int32]*L10nPatchDemo + _dataList []*L10nPatchDemo +} + +func NewL10nTbPatchDemo(_buf *luban.ByteBuf) (*L10nTbPatchDemo, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*L10nPatchDemo, 0, size) + dataMap := make(map[int32]*L10nPatchDemo) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewL10nPatchDemo(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &L10nTbPatchDemo{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *L10nTbPatchDemo) GetDataMap() map[int32]*L10nPatchDemo { + return table._dataMap +} + +func (table *L10nTbPatchDemo) GetDataList() []*L10nPatchDemo { + return table._dataList +} + +func (table *L10nTbPatchDemo) Get(key int32) *L10nPatchDemo { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/tag.TbTestTag.go b/luban_examples/Projects/Go_bin/gen/tag.TbTestTag.go new file mode 100644 index 00000000..a08a9d67 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/tag.TbTestTag.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TagTbTestTag struct { + _dataMap map[int32]*TagTestTag + _dataList []*TagTestTag +} + +func NewTagTbTestTag(_buf *luban.ByteBuf) (*TagTbTestTag, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TagTestTag, 0, size) + dataMap := make(map[int32]*TagTestTag) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTagTestTag(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TagTbTestTag{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TagTbTestTag) GetDataMap() map[int32]*TagTestTag { + return table._dataMap +} + +func (table *TagTbTestTag) GetDataList() []*TagTestTag { + return table._dataList +} + +func (table *TagTbTestTag) Get(key int32) *TagTestTag { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/tag.TestTag.go b/luban_examples/Projects/Go_bin/gen/tag.TestTag.go new file mode 100644 index 00000000..aedac24e --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/tag.TestTag.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TagTestTag struct { + Id int32 + Value string +} + +const TypeId_TagTestTag = 1742933812 + +func (*TagTestTag) GetTypeId() int32 { + return 1742933812 +} + +func NewTagTestTag(_buf *luban.ByteBuf) (_v *TagTestTag, err error) { + _v = &TagTestTag{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Value, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.AccessFlag.go b/luban_examples/Projects/Go_bin/gen/test.AccessFlag.go new file mode 100644 index 00000000..e56e4c35 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.AccessFlag.go @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestAccessFlag_WRITE = 1; + TestAccessFlag_READ = 2; + TestAccessFlag_TRUNCATE = 4; + TestAccessFlag_NEW = 8; + TestAccessFlag_READ_WRITE = 3; +) + diff --git a/luban_examples/Projects/Go_bin/gen/test.Circle.go b/luban_examples/Projects/Go_bin/gen/test.Circle.go new file mode 100644 index 00000000..bf604129 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.Circle.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestCircle struct { + Radius float32 +} + +const TypeId_TestCircle = 2131829196 + +func (*TestCircle) GetTypeId() int32 { + return 2131829196 +} + +func NewTestCircle(_buf *luban.ByteBuf) (_v *TestCircle, err error) { + _v = &TestCircle{} + { if _v.Radius, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.CompactString.go b/luban_examples/Projects/Go_bin/gen/test.CompactString.go new file mode 100644 index 00000000..aa43ec84 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.CompactString.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestCompactString struct { + Id int32 + S2 string + S3 string +} + +const TypeId_TestCompactString = 1968089240 + +func (*TestCompactString) GetTypeId() int32 { + return 1968089240 +} + +func NewTestCompactString(_buf *luban.ByteBuf) (_v *TestCompactString, err error) { + _v = &TestCompactString{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.S2, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.S3, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable1.go b/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable1.go new file mode 100644 index 00000000..dd866700 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable1.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestCompositeJsonTable1 struct { + Id int32 + X string +} + +const TypeId_TestCompositeJsonTable1 = 1566207894 + +func (*TestCompositeJsonTable1) GetTypeId() int32 { + return 1566207894 +} + +func NewTestCompositeJsonTable1(_buf *luban.ByteBuf) (_v *TestCompositeJsonTable1, err error) { + _v = &TestCompositeJsonTable1{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable2.go b/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable2.go new file mode 100644 index 00000000..13b17ab8 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable2.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestCompositeJsonTable2 struct { + Id int32 + Y int32 +} + +const TypeId_TestCompositeJsonTable2 = 1566207895 + +func (*TestCompositeJsonTable2) GetTypeId() int32 { + return 1566207895 +} + +func NewTestCompositeJsonTable2(_buf *luban.ByteBuf) (_v *TestCompositeJsonTable2, err error) { + _v = &TestCompositeJsonTable2{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable3.go b/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable3.go new file mode 100644 index 00000000..d62f444c --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.CompositeJsonTable3.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestCompositeJsonTable3 struct { + A int32 + B int32 +} + +const TypeId_TestCompositeJsonTable3 = 1566207896 + +func (*TestCompositeJsonTable3) GetTypeId() int32 { + return 1566207896 +} + +func NewTestCompositeJsonTable3(_buf *luban.ByteBuf) (_v *TestCompositeJsonTable3, err error) { + _v = &TestCompositeJsonTable3{} + { if _v.A, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.B, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DateTimeRange.go b/luban_examples/Projects/Go_bin/gen/test.DateTimeRange.go new file mode 100644 index 00000000..ac7fd705 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DateTimeRange.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDateTimeRange struct { + StartTime int64 + EndTime int64 +} + +const TypeId_TestDateTimeRange = 495315430 + +func (*TestDateTimeRange) GetTypeId() int32 { + return 495315430 +} + +func NewTestDateTimeRange(_buf *luban.ByteBuf) (_v *TestDateTimeRange, err error) { + _v = &TestDateTimeRange{} + { if _v.StartTime, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.EndTime, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.Decorator.go b/luban_examples/Projects/Go_bin/gen/test.Decorator.go new file mode 100644 index 00000000..ffac85b5 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.Decorator.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDecorator struct { + Id int32 + Name string + Desc string + Duration int32 +} + +const TypeId_TestDecorator = -625155649 + +func (*TestDecorator) GetTypeId() int32 { + return -625155649 +} + +func NewTestDecorator(_buf *luban.ByteBuf) (_v *TestDecorator, err error) { + _v = &TestDecorator{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Duration, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoD2.go b/luban_examples/Projects/Go_bin/gen/test.DemoD2.go new file mode 100644 index 00000000..c47e78c3 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoD2.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoD2 struct { + X1 int32 + X2 int32 +} + +const TypeId_TestDemoD2 = -2138341747 + +func (*TestDemoD2) GetTypeId() int32 { + return -2138341747 +} + +func NewTestDemoD2(_buf *luban.ByteBuf) (_v *TestDemoD2, err error) { + _v = &TestDemoD2{} + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoD3.go b/luban_examples/Projects/Go_bin/gen/test.DemoD3.go new file mode 100644 index 00000000..357c2d24 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoD3.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoD3 struct { + X1 int32 + X3 int32 +} + +const TypeId_TestDemoD3 = -2138341746 + +func (*TestDemoD3) GetTypeId() int32 { + return -2138341746 +} + +func NewTestDemoD3(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -2138341717: _v, err := NewTestDemoE1(_buf); if err != nil { return nil, errors.New("test.demoe1") } else { return _v, nil } + case -989153243: _v, err := NewTestLoginRoleInfo(_buf); if err != nil { return nil, errors.New("test.login.roleinfo") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoD5.go b/luban_examples/Projects/Go_bin/gen/test.DemoD5.go new file mode 100644 index 00000000..c09f8434 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoD5.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoD5 struct { + X1 int32 + Time *TestDateTimeRange +} + +const TypeId_TestDemoD5 = -2138341744 + +func (*TestDemoD5) GetTypeId() int32 { + return -2138341744 +} + +func NewTestDemoD5(_buf *luban.ByteBuf) (_v *TestDemoD5, err error) { + _v = &TestDemoD5{} + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Time, err = NewTestDateTimeRange(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoDynamic.go b/luban_examples/Projects/Go_bin/gen/test.DemoDynamic.go new file mode 100644 index 00000000..7a507368 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoDynamic.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoDynamic struct { + X1 int32 +} + +const TypeId_TestDemoDynamic = -1863156384 + +func (*TestDemoDynamic) GetTypeId() int32 { + return -1863156384 +} + +func NewTestDemoDynamic(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -2138341747: _v, err := NewTestDemoD2(_buf); if err != nil { return nil, errors.New("test.demod2") } else { return _v, nil } + case -2138341717: _v, err := NewTestDemoE1(_buf); if err != nil { return nil, errors.New("test.demoe1") } else { return _v, nil } + case -989153243: _v, err := NewTestLoginRoleInfo(_buf); if err != nil { return nil, errors.New("test.login.roleinfo") } else { return _v, nil } + case -2138341744: _v, err := NewTestDemoD5(_buf); if err != nil { return nil, errors.New("test.demod5") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoE1.go b/luban_examples/Projects/Go_bin/gen/test.DemoE1.go new file mode 100644 index 00000000..bd101bf6 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoE1.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoE1 struct { + X1 int32 + X3 int32 + X4 int32 +} + +const TypeId_TestDemoE1 = -2138341717 + +func (*TestDemoE1) GetTypeId() int32 { + return -2138341717 +} + +func NewTestDemoE1(_buf *luban.ByteBuf) (_v *TestDemoE1, err error) { + _v = &TestDemoE1{} + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoE2.go b/luban_examples/Projects/Go_bin/gen/test.DemoE2.go new file mode 100644 index 00000000..ad81dccf --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoE2.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoE2 struct { + Y1 *int32 + Y2 bool +} + +const TypeId_TestDemoE2 = -2138341716 + +func (*TestDemoE2) GetTypeId() int32 { + return -2138341716 +} + +func NewTestDemoE2(_buf *luban.ByteBuf) (_v *TestDemoE2, err error) { + _v = &TestDemoE2{} + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ int32; { if __x__, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.Y1 = &__x__ }} + { if _v.Y2, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoEnum.go b/luban_examples/Projects/Go_bin/gen/test.DemoEnum.go new file mode 100644 index 00000000..d1c2525e --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoEnum.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestDemoEnum_NONE = 0; + /** + * aa + */ + TestDemoEnum_A = 1; + /** + * bb + */ + TestDemoEnum_B = 2; + /** + * cc + */ + TestDemoEnum_C = 4; + /** + * dd + */ + TestDemoEnum_D = 5; + TestDemoEnum_Any = 6; +) + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoFlag.go b/luban_examples/Projects/Go_bin/gen/test.DemoFlag.go new file mode 100644 index 00000000..def8a36d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoFlag.go @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestDemoFlag_A = 1; + TestDemoFlag_B = 2; + TestDemoFlag_C = 4; + TestDemoFlag_D = 8; +) + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoGroup.go b/luban_examples/Projects/Go_bin/gen/test.DemoGroup.go new file mode 100644 index 00000000..4de9cf99 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoGroup.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoGroup struct { + Id int32 + X1 int32 + X2 int32 + X3 int32 + X4 int32 + X5 *TestInnerGroup +} + +const TypeId_TestDemoGroup = -379263008 + +func (*TestDemoGroup) GetTypeId() int32 { + return -379263008 +} + +func NewTestDemoGroup(_buf *luban.ByteBuf) (_v *TestDemoGroup, err error) { + _v = &TestDemoGroup{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X5, err = NewTestInnerGroup(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoPrimitiveTypesTable.go b/luban_examples/Projects/Go_bin/gen/test.DemoPrimitiveTypesTable.go new file mode 100644 index 00000000..2cfbdcb7 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoPrimitiveTypesTable.go @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoPrimitiveTypesTable struct { + X1 bool + X2 byte + X3 int16 + X4 int32 + X5 int64 + X6 float32 + X7 float64 + S1 string + S2 string + V2 *vec2 + V3 *vec3 + V4 *vec4 + T1 int64 +} + +const TypeId_TestDemoPrimitiveTypesTable = -370934083 + +func (*TestDemoPrimitiveTypesTable) GetTypeId() int32 { + return -370934083 +} + +func NewTestDemoPrimitiveTypesTable(_buf *luban.ByteBuf) (_v *TestDemoPrimitiveTypesTable, err error) { + _v = &TestDemoPrimitiveTypesTable{} + { if _v.X1, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.X2, err = _buf.ReadByte(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadShort(); err != nil { err = errors.New("error"); return } } + { if _v.X4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X5, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.X6, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.X7, err = _buf.ReadDouble(); err != nil { err = errors.New("error"); return } } + { if _v.S1, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.S2, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.V2, err = Newvec2(_buf); err != nil { err = errors.New("error"); return } } + { if _v.V3, err = Newvec3(_buf); err != nil { err = errors.New("error"); return } } + { if _v.V4, err = Newvec4(_buf); err != nil { err = errors.New("error"); return } } + { if _v.T1, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoSingletonType.go b/luban_examples/Projects/Go_bin/gen/test.DemoSingletonType.go new file mode 100644 index 00000000..408e72cb --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoSingletonType.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoSingletonType struct { + Id int32 + Name string + Date interface{} +} + +const TypeId_TestDemoSingletonType = 539196998 + +func (*TestDemoSingletonType) GetTypeId() int32 { + return 539196998 +} + +func NewTestDemoSingletonType(_buf *luban.ByteBuf) (_v *TestDemoSingletonType, err error) { + _v = &TestDemoSingletonType{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Date, err = NewTestDemoDynamic(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoType1.go b/luban_examples/Projects/Go_bin/gen/test.DemoType1.go new file mode 100644 index 00000000..b74446d4 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoType1.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoType1 struct { + X1 int32 +} + +const TypeId_TestDemoType1 = -367048296 + +func (*TestDemoType1) GetTypeId() int32 { + return -367048296 +} + +func NewTestDemoType1(_buf *luban.ByteBuf) (_v *TestDemoType1, err error) { + _v = &TestDemoType1{} + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DemoType2.go b/luban_examples/Projects/Go_bin/gen/test.DemoType2.go new file mode 100644 index 00000000..680fcb30 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DemoType2.go @@ -0,0 +1,76 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDemoType2 struct { + X4 int32 + X1 bool + X2 byte + X3 int16 + X5 int64 + X6 float32 + X7 float64 + X80 int16 + X8 int32 + X9 int64 + X10 string + X12 *TestDemoType1 + X13 int32 + X14 interface{} + S1 string + T1 int64 + K1 []int32 + K2 []int32 + K5 []int32 + K8 map[int32]int32 + K9 []*TestDemoE2 + K15 []interface{} +} + +const TypeId_TestDemoType2 = -367048295 + +func (*TestDemoType2) GetTypeId() int32 { + return -367048295 +} + +func NewTestDemoType2(_buf *luban.ByteBuf) (_v *TestDemoType2, err error) { + _v = &TestDemoType2{} + { if _v.X4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X1, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.X2, err = _buf.ReadByte(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadShort(); err != nil { err = errors.New("error"); return } } + { if _v.X5, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.X6, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.X7, err = _buf.ReadDouble(); err != nil { err = errors.New("error"); return } } + { if _v.X80, err = _buf.ReadShort(); err != nil { err = errors.New("error"); return } } + { if _v.X8, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X9, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.X10, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.X12, err = NewTestDemoType1(_buf); err != nil { err = errors.New("error"); return } } + { if _v.X13, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X14, err = NewTestDemoDynamic(_buf); err != nil { err = errors.New("error"); return } } + { if _v.S1, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.T1, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + {_v.K1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K1 = append(_v.K1, _e_) } } + {_v.K2 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K2 = append(_v.K2, _e_) } } + {_v.K5 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K5 = append(_v.K5, _e_) } } + { _v.K8 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K8[_key_] = _value_} } + {_v.K9 = make([]*TestDemoE2, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestDemoE2; { if _e_, err = NewTestDemoE2(_buf); err != nil { err = errors.New("error"); return } }; _v.K9 = append(_v.K9, _e_) } } + {_v.K15 = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewTestDemoDynamic(_buf); err != nil { err = errors.New("error"); return } }; _v.K15 = append(_v.K15, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.DetectEncoding.go b/luban_examples/Projects/Go_bin/gen/test.DetectEncoding.go new file mode 100644 index 00000000..efbf80c2 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.DetectEncoding.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestDetectEncoding struct { + Id int32 + Name string +} + +const TypeId_TestDetectEncoding = -1154609646 + +func (*TestDetectEncoding) GetTypeId() int32 { + return -1154609646 +} + +func NewTestDetectEncoding(_buf *luban.ByteBuf) (_v *TestDetectEncoding, err error) { + _v = &TestDetectEncoding{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.ETestEmptyEnum.go b/luban_examples/Projects/Go_bin/gen/test.ETestEmptyEnum.go new file mode 100644 index 00000000..054c82a7 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.ETestEmptyEnum.go @@ -0,0 +1,14 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( +) + diff --git a/luban_examples/Projects/Go_bin/gen/test.ETestEmptyEnum2.go b/luban_examples/Projects/Go_bin/gen/test.ETestEmptyEnum2.go new file mode 100644 index 00000000..bbbfb06e --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.ETestEmptyEnum2.go @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestETestEmptyEnum2_SMALL_THAN_256 = 255; + TestETestEmptyEnum2_X_256 = 256; + TestETestEmptyEnum2_X_257 = 257; +) + diff --git a/luban_examples/Projects/Go_bin/gen/test.ETestQuality.go b/luban_examples/Projects/Go_bin/gen/test.ETestQuality.go new file mode 100644 index 00000000..45613f67 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.ETestQuality.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 最高品质 + */ + TestETestQuality_A = 1; + /** + * 黑色的 + */ + TestETestQuality_B = 2; + /** + * 蓝色的 + */ + TestETestQuality_C = 3; + /** + * 最差品质 + */ + TestETestQuality_D = 4; +) + diff --git a/luban_examples/Projects/Go_bin/gen/test.ETestUeType.go b/luban_examples/Projects/Go_bin/gen/test.ETestUeType.go new file mode 100644 index 00000000..f7d26e7a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.ETestUeType.go @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 白 + */ + TestETestUeType_WHITE = 0; + TestETestUeType_BLACK = 1; +) + diff --git a/luban_examples/Projects/Go_bin/gen/test.Equipment.go b/luban_examples/Projects/Go_bin/gen/test.Equipment.go new file mode 100644 index 00000000..893064c9 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.Equipment.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestEquipment struct { + Id int32 + Name string + Desc string + Attr int32 + Value int32 +} + +const TypeId_TestEquipment = -76837102 + +func (*TestEquipment) GetTypeId() int32 { + return -76837102 +} + +func NewTestEquipment(_buf *luban.ByteBuf) (_v *TestEquipment, err error) { + _v = &TestEquipment{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Attr, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Value, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.ExcelFromJson.go b/luban_examples/Projects/Go_bin/gen/test.ExcelFromJson.go new file mode 100644 index 00000000..9678c468 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.ExcelFromJson.go @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestExcelFromJson struct { + X4 int32 + X1 bool + X5 int64 + X6 float32 + S1 string + S2 string + T1 int64 + X12 *TestDemoType1 + X13 int32 + X14 interface{} + K1 []int32 + K8 map[int32]int32 + K9 []*TestDemoE2 + K15 []interface{} +} + +const TypeId_TestExcelFromJson = -1485706483 + +func (*TestExcelFromJson) GetTypeId() int32 { + return -1485706483 +} + +func NewTestExcelFromJson(_buf *luban.ByteBuf) (_v *TestExcelFromJson, err error) { + _v = &TestExcelFromJson{} + { if _v.X4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X1, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.X5, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.X6, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.S1, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.S2, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.T1, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.X12, err = NewTestDemoType1(_buf); err != nil { err = errors.New("error"); return } } + { if _v.X13, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X14, err = NewTestDemoDynamic(_buf); err != nil { err = errors.New("error"); return } } + {_v.K1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K1 = append(_v.K1, _e_) } } + { _v.K8 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.K8[_key_] = _value_} } + {_v.K9 = make([]*TestDemoE2, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestDemoE2; { if _e_, err = NewTestDemoE2(_buf); err != nil { err = errors.New("error"); return } }; _v.K9 = append(_v.K9, _e_) } } + {_v.K15 = make([]interface{}, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ interface{}; { if _e_, err = NewTestDemoDynamic(_buf); err != nil { err = errors.New("error"); return } }; _v.K15 = append(_v.K15, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.ExcelFromJsonMultiRow.go b/luban_examples/Projects/Go_bin/gen/test.ExcelFromJsonMultiRow.go new file mode 100644 index 00000000..1818e9c0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.ExcelFromJsonMultiRow.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestExcelFromJsonMultiRow struct { + Id int32 + X int32 + Items []*TestTestRow +} + +const TypeId_TestExcelFromJsonMultiRow = 715335694 + +func (*TestExcelFromJsonMultiRow) GetTypeId() int32 { + return 715335694 +} + +func NewTestExcelFromJsonMultiRow(_buf *luban.ByteBuf) (_v *TestExcelFromJsonMultiRow, err error) { + _v = &TestExcelFromJsonMultiRow{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + {_v.Items = make([]*TestTestRow, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestTestRow; { if _e_, err = NewTestTestRow(_buf); err != nil { err = errors.New("error"); return } }; _v.Items = append(_v.Items, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.Foo.go b/luban_examples/Projects/Go_bin/gen/test.Foo.go new file mode 100644 index 00000000..bac5dbd2 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.Foo.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestFoo struct { + Y1 int32 + Y2 int32 + Y3 int32 +} + +const TypeId_TestFoo = -1147950774 + +func (*TestFoo) GetTypeId() int32 { + return -1147950774 +} + +func NewTestFoo(_buf *luban.ByteBuf) (_v *TestFoo, err error) { + _v = &TestFoo{} + { if _v.Y1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.H1.go b/luban_examples/Projects/Go_bin/gen/test.H1.go new file mode 100644 index 00000000..3c6e6d28 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.H1.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestH1 struct { + Y2 *TestH2 + Y3 int32 +} + +const TypeId_TestH1 = -1422503995 + +func (*TestH1) GetTypeId() int32 { + return -1422503995 +} + +func NewTestH1(_buf *luban.ByteBuf) (_v *TestH1, err error) { + _v = &TestH1{} + { if _v.Y2, err = NewTestH2(_buf); err != nil { err = errors.New("error"); return } } + { if _v.Y3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.H2.go b/luban_examples/Projects/Go_bin/gen/test.H2.go new file mode 100644 index 00000000..6dce0b7a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.H2.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestH2 struct { + Z2 int32 + Z3 int32 +} + +const TypeId_TestH2 = -1422503994 + +func (*TestH2) GetTypeId() int32 { + return -1422503994 +} + +func NewTestH2(_buf *luban.ByteBuf) (_v *TestH2, err error) { + _v = &TestH2{} + { if _v.Z2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Z3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.InnerGroup.go b/luban_examples/Projects/Go_bin/gen/test.InnerGroup.go new file mode 100644 index 00000000..87360f65 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.InnerGroup.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestInnerGroup struct { + Y1 int32 + Y2 int32 + Y3 int32 + Y4 int32 +} + +const TypeId_TestInnerGroup = -587873083 + +func (*TestInnerGroup) GetTypeId() int32 { + return -587873083 +} + +func NewTestInnerGroup(_buf *luban.ByteBuf) (_v *TestInnerGroup, err error) { + _v = &TestInnerGroup{} + { if _v.Y1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.Item.go b/luban_examples/Projects/Go_bin/gen/test.Item.go new file mode 100644 index 00000000..7cc858a6 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.Item.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestItem struct { + Id int32 + Name string + Desc string + Num int32 + Price int32 +} + +const TypeId_TestItem = -1226641649 + +func (*TestItem) GetTypeId() int32 { + return -1226641649 +} + +func NewTestItem(_buf *luban.ByteBuf) (_v *TestItem, err error) { + _v = &TestItem{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Num, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Price, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.ItemBase.go b/luban_examples/Projects/Go_bin/gen/test.ItemBase.go new file mode 100644 index 00000000..14b694fa --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.ItemBase.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestItemBase struct { + Id int32 + Name string + Desc string +} + +const TypeId_TestItemBase = -1631171968 + +func (*TestItemBase) GetTypeId() int32 { + return -1631171968 +} + +func NewTestItemBase(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case -1226641649: _v, err := NewTestItem(_buf); if err != nil { return nil, errors.New("test.item") } else { return _v, nil } + case -76837102: _v, err := NewTestEquipment(_buf); if err != nil { return nil, errors.New("test.equipment") } else { return _v, nil } + case -625155649: _v, err := NewTestDecorator(_buf); if err != nil { return nil, errors.New("test.decorator") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.MultiIndexList.go b/luban_examples/Projects/Go_bin/gen/test.MultiIndexList.go new file mode 100644 index 00000000..99b65442 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.MultiIndexList.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestMultiIndexList struct { + Id1 int32 + Id2 int64 + Id3 string + Num int32 + Desc string +} + +const TypeId_TestMultiIndexList = 2016237651 + +func (*TestMultiIndexList) GetTypeId() int32 { + return 2016237651 +} + +func NewTestMultiIndexList(_buf *luban.ByteBuf) (_v *TestMultiIndexList, err error) { + _v = &TestMultiIndexList{} + { if _v.Id1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Id2, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.Id3, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Num, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.MultiRowRecord.go b/luban_examples/Projects/Go_bin/gen/test.MultiRowRecord.go new file mode 100644 index 00000000..160e5b6f --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.MultiRowRecord.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestMultiRowRecord struct { + Id int32 + Name string + OneRows []*TestMultiRowType1 + MultiRows1 []*TestMultiRowType1 + MultiRows2 []*TestMultiRowType1 + MultiRows4 map[int32]*TestMultiRowType2 + MultiRows5 []*TestMultiRowType3 + MultiRows6 map[int32]*TestMultiRowType2 + MultiRows7 map[int32]int32 +} + +const TypeId_TestMultiRowRecord = -501249394 + +func (*TestMultiRowRecord) GetTypeId() int32 { + return -501249394 +} + +func NewTestMultiRowRecord(_buf *luban.ByteBuf) (_v *TestMultiRowRecord, err error) { + _v = &TestMultiRowRecord{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.OneRows = make([]*TestMultiRowType1, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestMultiRowType1; { if _e_, err = NewTestMultiRowType1(_buf); err != nil { err = errors.New("error"); return } }; _v.OneRows = append(_v.OneRows, _e_) } } + {_v.MultiRows1 = make([]*TestMultiRowType1, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestMultiRowType1; { if _e_, err = NewTestMultiRowType1(_buf); err != nil { err = errors.New("error"); return } }; _v.MultiRows1 = append(_v.MultiRows1, _e_) } } + {_v.MultiRows2 = make([]*TestMultiRowType1, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestMultiRowType1; { if _e_, err = NewTestMultiRowType1(_buf); err != nil { err = errors.New("error"); return } }; _v.MultiRows2 = append(_v.MultiRows2, _e_) } } + { _v.MultiRows4 = make(map[int32]*TestMultiRowType2); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ *TestMultiRowType2; { if _value_, err = NewTestMultiRowType2(_buf); err != nil { err = errors.New("error"); return } }; _v.MultiRows4[_key_] = _value_} } + {_v.MultiRows5 = make([]*TestMultiRowType3, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestMultiRowType3; { if _e_, err = NewTestMultiRowType3(_buf); err != nil { err = errors.New("error"); return } }; _v.MultiRows5 = append(_v.MultiRows5, _e_) } } + { _v.MultiRows6 = make(map[int32]*TestMultiRowType2); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ *TestMultiRowType2; { if _value_, err = NewTestMultiRowType2(_buf); err != nil { err = errors.New("error"); return } }; _v.MultiRows6[_key_] = _value_} } + { _v.MultiRows7 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.MultiRows7[_key_] = _value_} } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.MultiRowTitle.go b/luban_examples/Projects/Go_bin/gen/test.MultiRowTitle.go new file mode 100644 index 00000000..1d9d8926 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.MultiRowTitle.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestMultiRowTitle struct { + Id int32 + Name string + X1 *TestH1 + X20 *TestH2 + X2 []*TestH2 + X3 []*TestH2 + X4 []*TestH2 +} + +const TypeId_TestMultiRowTitle = 540002427 + +func (*TestMultiRowTitle) GetTypeId() int32 { + return 540002427 +} + +func NewTestMultiRowTitle(_buf *luban.ByteBuf) (_v *TestMultiRowTitle, err error) { + _v = &TestMultiRowTitle{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.X1, err = NewTestH1(_buf); err != nil { err = errors.New("error"); return } } + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ *TestH2; { if __x__, err = NewTestH2(_buf); err != nil { err = errors.New("error"); return } }; _v.X20 = __x__ }} + {_v.X2 = make([]*TestH2, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestH2; { if _e_, err = NewTestH2(_buf); err != nil { err = errors.New("error"); return } }; _v.X2 = append(_v.X2, _e_) } } + {_v.X3 = make([]*TestH2, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestH2; { if _e_, err = NewTestH2(_buf); err != nil { err = errors.New("error"); return } }; _v.X3 = append(_v.X3, _e_) } } + {_v.X4 = make([]*TestH2, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestH2; { if _e_, err = NewTestH2(_buf); err != nil { err = errors.New("error"); return } }; _v.X4 = append(_v.X4, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.MultiRowType1.go b/luban_examples/Projects/Go_bin/gen/test.MultiRowType1.go new file mode 100644 index 00000000..051e35cb --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.MultiRowType1.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestMultiRowType1 struct { + Id int32 + X int32 +} + +const TypeId_TestMultiRowType1 = 540474970 + +func (*TestMultiRowType1) GetTypeId() int32 { + return 540474970 +} + +func NewTestMultiRowType1(_buf *luban.ByteBuf) (_v *TestMultiRowType1, err error) { + _v = &TestMultiRowType1{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.MultiRowType2.go b/luban_examples/Projects/Go_bin/gen/test.MultiRowType2.go new file mode 100644 index 00000000..63a673d9 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.MultiRowType2.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestMultiRowType2 struct { + Id int32 + X int32 + Y float32 +} + +const TypeId_TestMultiRowType2 = 540474971 + +func (*TestMultiRowType2) GetTypeId() int32 { + return 540474971 +} + +func NewTestMultiRowType2(_buf *luban.ByteBuf) (_v *TestMultiRowType2, err error) { + _v = &TestMultiRowType2{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.MultiRowType3.go b/luban_examples/Projects/Go_bin/gen/test.MultiRowType3.go new file mode 100644 index 00000000..eb32ac13 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.MultiRowType3.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestMultiRowType3 struct { + Id int32 + Items []*TestMultiRowType1 +} + +const TypeId_TestMultiRowType3 = 540474972 + +func (*TestMultiRowType3) GetTypeId() int32 { + return 540474972 +} + +func NewTestMultiRowType3(_buf *luban.ByteBuf) (_v *TestMultiRowType3, err error) { + _v = &TestMultiRowType3{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + {_v.Items = make([]*TestMultiRowType1, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestMultiRowType1; { if _e_, err = NewTestMultiRowType1(_buf); err != nil { err = errors.New("error"); return } }; _v.Items = append(_v.Items, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.MultiUnionIndexList.go b/luban_examples/Projects/Go_bin/gen/test.MultiUnionIndexList.go new file mode 100644 index 00000000..012e00a1 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.MultiUnionIndexList.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestMultiUnionIndexList struct { + Id1 int32 + Id2 int64 + Id3 string + Num int32 + Desc string +} + +const TypeId_TestMultiUnionIndexList = 1966847134 + +func (*TestMultiUnionIndexList) GetTypeId() int32 { + return 1966847134 +} + +func NewTestMultiUnionIndexList(_buf *luban.ByteBuf) (_v *TestMultiUnionIndexList, err error) { + _v = &TestMultiUnionIndexList{} + { if _v.Id1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Id2, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.Id3, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Num, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.NotIndexList.go b/luban_examples/Projects/Go_bin/gen/test.NotIndexList.go new file mode 100644 index 00000000..2aca12aa --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.NotIndexList.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestNotIndexList struct { + X int32 + Y int32 +} + +const TypeId_TestNotIndexList = -50446599 + +func (*TestNotIndexList) GetTypeId() int32 { + return -50446599 +} + +func NewTestNotIndexList(_buf *luban.ByteBuf) (_v *TestNotIndexList, err error) { + _v = &TestNotIndexList{} + { if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.RefBean.go b/luban_examples/Projects/Go_bin/gen/test.RefBean.go new file mode 100644 index 00000000..50b24f6d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.RefBean.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestRefBean struct { + X int32 + Arr []int32 +} + +const TypeId_TestRefBean = 1963260263 + +func (*TestRefBean) GetTypeId() int32 { + return 1963260263 +} + +func NewTestRefBean(_buf *luban.ByteBuf) (_v *TestRefBean, err error) { + _v = &TestRefBean{} + { if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + {_v.Arr = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.Arr = append(_v.Arr, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.RefDynamicBase.go b/luban_examples/Projects/Go_bin/gen/test.RefDynamicBase.go new file mode 100644 index 00000000..1ea84fee --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.RefDynamicBase.go @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestRefDynamicBase struct { + X int32 +} + +const TypeId_TestRefDynamicBase = 772878873 + +func (*TestRefDynamicBase) GetTypeId() int32 { + return 772878873 +} + +func NewTestRefDynamicBase(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case 1963260263: _v, err := NewTestRefBean(_buf); if err != nil { return nil, errors.New("test.refbean") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.Shape.go b/luban_examples/Projects/Go_bin/gen/test.Shape.go new file mode 100644 index 00000000..9047df7b --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.Shape.go @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestShape struct { +} + +const TypeId_TestShape = 637688613 + +func (*TestShape) GetTypeId() int32 { + return 637688613 +} + +func NewTestShape(_buf *luban.ByteBuf) (interface{}, error) { + var id int32 + var err error + if id, err = _buf.ReadInt() ; err != nil { + return nil, err + } + switch id { + case 2131829196: _v, err := NewTestCircle(_buf); if err != nil { return nil, errors.New("test.circle") } else { return _v, nil } + case 694982337: _v, err := NewTest2Rectangle(_buf); if err != nil { return nil, errors.New("test2.rectangle") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable1.go b/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable1.go new file mode 100644 index 00000000..e74f7210 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable1.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbCompositeJsonTable1 struct { + _dataMap map[int32]*TestCompositeJsonTable1 + _dataList []*TestCompositeJsonTable1 +} + +func NewTestTbCompositeJsonTable1(_buf *luban.ByteBuf) (*TestTbCompositeJsonTable1, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestCompositeJsonTable1, 0, size) + dataMap := make(map[int32]*TestCompositeJsonTable1) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestCompositeJsonTable1(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbCompositeJsonTable1{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbCompositeJsonTable1) GetDataMap() map[int32]*TestCompositeJsonTable1 { + return table._dataMap +} + +func (table *TestTbCompositeJsonTable1) GetDataList() []*TestCompositeJsonTable1 { + return table._dataList +} + +func (table *TestTbCompositeJsonTable1) Get(key int32) *TestCompositeJsonTable1 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable2.go b/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable2.go new file mode 100644 index 00000000..589e8acc --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable2.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbCompositeJsonTable2 struct { + _dataMap map[int32]*TestCompositeJsonTable2 + _dataList []*TestCompositeJsonTable2 +} + +func NewTestTbCompositeJsonTable2(_buf *luban.ByteBuf) (*TestTbCompositeJsonTable2, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestCompositeJsonTable2, 0, size) + dataMap := make(map[int32]*TestCompositeJsonTable2) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestCompositeJsonTable2(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbCompositeJsonTable2{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbCompositeJsonTable2) GetDataMap() map[int32]*TestCompositeJsonTable2 { + return table._dataMap +} + +func (table *TestTbCompositeJsonTable2) GetDataList() []*TestCompositeJsonTable2 { + return table._dataList +} + +func (table *TestTbCompositeJsonTable2) Get(key int32) *TestCompositeJsonTable2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable3.go b/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable3.go new file mode 100644 index 00000000..94cd2094 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbCompositeJsonTable3.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + + +import "errors" + +type TestTbCompositeJsonTable3 struct { + _data *TestCompositeJsonTable3 +} + +func NewTestTbCompositeJsonTable3(_buf *luban.ByteBuf) (*TestTbCompositeJsonTable3, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else if size != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewTestCompositeJsonTable3(_buf); err2 != nil { + return nil, err2 + } else { + return &TestTbCompositeJsonTable3{_data:_v}, nil + } + } +} + +func (table *TestTbCompositeJsonTable3) Get() *TestCompositeJsonTable3 { + return table._data +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDataFromMisc.go b/luban_examples/Projects/Go_bin/gen/test.TbDataFromMisc.go new file mode 100644 index 00000000..beeb0564 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDataFromMisc.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDataFromMisc struct { + _dataMap map[int32]*TestDemoType2 + _dataList []*TestDemoType2 +} + +func NewTestTbDataFromMisc(_buf *luban.ByteBuf) (*TestTbDataFromMisc, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDemoType2, 0, size) + dataMap := make(map[int32]*TestDemoType2) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDemoType2(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbDataFromMisc{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDataFromMisc) GetDataMap() map[int32]*TestDemoType2 { + return table._dataMap +} + +func (table *TestTbDataFromMisc) GetDataList() []*TestDemoType2 { + return table._dataList +} + +func (table *TestTbDataFromMisc) Get(key int32) *TestDemoType2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDefineFromExcel2.go b/luban_examples/Projects/Go_bin/gen/test.TbDefineFromExcel2.go new file mode 100644 index 00000000..519a389e --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDefineFromExcel2.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDefineFromExcel2 struct { + _dataMap map[int32]*DefineFromExcel2 + _dataList []*DefineFromExcel2 +} + +func NewTestTbDefineFromExcel2(_buf *luban.ByteBuf) (*TestTbDefineFromExcel2, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*DefineFromExcel2, 0, size) + dataMap := make(map[int32]*DefineFromExcel2) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewDefineFromExcel2(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDefineFromExcel2{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDefineFromExcel2) GetDataMap() map[int32]*DefineFromExcel2 { + return table._dataMap +} + +func (table *TestTbDefineFromExcel2) GetDataList() []*DefineFromExcel2 { + return table._dataList +} + +func (table *TestTbDefineFromExcel2) Get(key int32) *DefineFromExcel2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup.go b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup.go new file mode 100644 index 00000000..15929fe0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDemoGroup struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup(_buf *luban.ByteBuf) (*TestTbDemoGroup, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDemoGroup, 0, size) + dataMap := make(map[int32]*TestDemoGroup) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDemoGroup(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDemoGroup) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_C.go b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_C.go new file mode 100644 index 00000000..c2f4f3d6 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_C.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDemoGroup_C struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup_C(_buf *luban.ByteBuf) (*TestTbDemoGroup_C, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDemoGroup, 0, size) + dataMap := make(map[int32]*TestDemoGroup) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDemoGroup(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup_C{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDemoGroup_C) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup_C) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup_C) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_E.go b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_E.go new file mode 100644 index 00000000..62c0c5d0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_E.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDemoGroup_E struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup_E(_buf *luban.ByteBuf) (*TestTbDemoGroup_E, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDemoGroup, 0, size) + dataMap := make(map[int32]*TestDemoGroup) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDemoGroup(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup_E{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDemoGroup_E) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup_E) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup_E) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_S.go b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_S.go new file mode 100644 index 00000000..5be7fa32 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDemoGroup_S.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDemoGroup_S struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup_S(_buf *luban.ByteBuf) (*TestTbDemoGroup_S, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDemoGroup, 0, size) + dataMap := make(map[int32]*TestDemoGroup) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDemoGroup(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup_S{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDemoGroup_S) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup_S) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup_S) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDemoPrimitive.go b/luban_examples/Projects/Go_bin/gen/test.TbDemoPrimitive.go new file mode 100644 index 00000000..f1a34ad1 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDemoPrimitive.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDemoPrimitive struct { + _dataMap map[int32]*TestDemoPrimitiveTypesTable + _dataList []*TestDemoPrimitiveTypesTable +} + +func NewTestTbDemoPrimitive(_buf *luban.ByteBuf) (*TestTbDemoPrimitive, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDemoPrimitiveTypesTable, 0, size) + dataMap := make(map[int32]*TestDemoPrimitiveTypesTable) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDemoPrimitiveTypesTable(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbDemoPrimitive{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDemoPrimitive) GetDataMap() map[int32]*TestDemoPrimitiveTypesTable { + return table._dataMap +} + +func (table *TestTbDemoPrimitive) GetDataList() []*TestDemoPrimitiveTypesTable { + return table._dataList +} + +func (table *TestTbDemoPrimitive) Get(key int32) *TestDemoPrimitiveTypesTable { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbDetectCsvEncoding.go b/luban_examples/Projects/Go_bin/gen/test.TbDetectCsvEncoding.go new file mode 100644 index 00000000..217554db --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbDetectCsvEncoding.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbDetectCsvEncoding struct { + _dataMap map[int32]*TestDetectEncoding + _dataList []*TestDetectEncoding +} + +func NewTestTbDetectCsvEncoding(_buf *luban.ByteBuf) (*TestTbDetectCsvEncoding, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDetectEncoding, 0, size) + dataMap := make(map[int32]*TestDetectEncoding) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDetectEncoding(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDetectCsvEncoding{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbDetectCsvEncoding) GetDataMap() map[int32]*TestDetectEncoding { + return table._dataMap +} + +func (table *TestTbDetectCsvEncoding) GetDataList() []*TestDetectEncoding { + return table._dataList +} + +func (table *TestTbDetectCsvEncoding) Get(key int32) *TestDetectEncoding { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbExcelFromJson.go b/luban_examples/Projects/Go_bin/gen/test.TbExcelFromJson.go new file mode 100644 index 00000000..e9a2a88c --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbExcelFromJson.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbExcelFromJson struct { + _dataMap map[int32]*TestExcelFromJson + _dataList []*TestExcelFromJson +} + +func NewTestTbExcelFromJson(_buf *luban.ByteBuf) (*TestTbExcelFromJson, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestExcelFromJson, 0, size) + dataMap := make(map[int32]*TestExcelFromJson) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestExcelFromJson(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbExcelFromJson{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbExcelFromJson) GetDataMap() map[int32]*TestExcelFromJson { + return table._dataMap +} + +func (table *TestTbExcelFromJson) GetDataList() []*TestExcelFromJson { + return table._dataList +} + +func (table *TestTbExcelFromJson) Get(key int32) *TestExcelFromJson { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbExcelFromJsonMultiRow.go b/luban_examples/Projects/Go_bin/gen/test.TbExcelFromJsonMultiRow.go new file mode 100644 index 00000000..43cb4f9a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbExcelFromJsonMultiRow.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbExcelFromJsonMultiRow struct { + _dataMap map[int32]*TestExcelFromJsonMultiRow + _dataList []*TestExcelFromJsonMultiRow +} + +func NewTestTbExcelFromJsonMultiRow(_buf *luban.ByteBuf) (*TestTbExcelFromJsonMultiRow, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestExcelFromJsonMultiRow, 0, size) + dataMap := make(map[int32]*TestExcelFromJsonMultiRow) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestExcelFromJsonMultiRow(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbExcelFromJsonMultiRow{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbExcelFromJsonMultiRow) GetDataMap() map[int32]*TestExcelFromJsonMultiRow { + return table._dataMap +} + +func (table *TestTbExcelFromJsonMultiRow) GetDataList() []*TestExcelFromJsonMultiRow { + return table._dataList +} + +func (table *TestTbExcelFromJsonMultiRow) Get(key int32) *TestExcelFromJsonMultiRow { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbFullTypes.go b/luban_examples/Projects/Go_bin/gen/test.TbFullTypes.go new file mode 100644 index 00000000..48e49aaa --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbFullTypes.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbFullTypes struct { + _dataMap map[int32]*TestDemoType2 + _dataList []*TestDemoType2 +} + +func NewTestTbFullTypes(_buf *luban.ByteBuf) (*TestTbFullTypes, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestDemoType2, 0, size) + dataMap := make(map[int32]*TestDemoType2) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestDemoType2(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbFullTypes{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbFullTypes) GetDataMap() map[int32]*TestDemoType2 { + return table._dataMap +} + +func (table *TestTbFullTypes) GetDataList() []*TestDemoType2 { + return table._dataList +} + +func (table *TestTbFullTypes) Get(key int32) *TestDemoType2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbItem2.go b/luban_examples/Projects/Go_bin/gen/test.TbItem2.go new file mode 100644 index 00000000..f7e8d7bd --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbItem2.go @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbItem2 struct { + _dataMap map[int32]interface{} + _dataList []interface{} +} + +func NewTestTbItem2(_buf *luban.ByteBuf) (*TestTbItem2, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]interface{}, 0, size) + dataMap := make(map[int32]interface{}) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestItemBase(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + if __v, __is := _v.(*TestItem) ; __is { + dataMap[__v.Id] = _v + continue + } + if __v, __is := _v.(*TestEquipment) ; __is { + dataMap[__v.Id] = _v + continue + } + if __v, __is := _v.(*TestDecorator) ; __is { + dataMap[__v.Id] = _v + continue + } + } + } + return &TestTbItem2{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbItem2) GetDataMap() map[int32]interface{} { + return table._dataMap +} + +func (table *TestTbItem2) GetDataList() []interface{} { + return table._dataList +} + +func (table *TestTbItem2) Get(key int32) interface{} { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbMultiIndexList.go b/luban_examples/Projects/Go_bin/gen/test.TbMultiIndexList.go new file mode 100644 index 00000000..6bc385a5 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbMultiIndexList.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbMultiIndexList struct { + _dataList []*TestMultiIndexList +} + +func NewTestTbMultiIndexList(_buf *luban.ByteBuf) (*TestTbMultiIndexList, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestMultiIndexList, 0, size) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestMultiIndexList(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + } + } + return &TestTbMultiIndexList{_dataList:_dataList}, nil + } +} + +func (table *TestTbMultiIndexList) GetDataList() []*TestMultiIndexList { + return table._dataList +} + +func (table *TestTbMultiIndexList) Get(index int) *TestMultiIndexList { + return table._dataList[index] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbMultiRowRecord.go b/luban_examples/Projects/Go_bin/gen/test.TbMultiRowRecord.go new file mode 100644 index 00000000..05448c11 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbMultiRowRecord.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbMultiRowRecord struct { + _dataMap map[int32]*TestMultiRowRecord + _dataList []*TestMultiRowRecord +} + +func NewTestTbMultiRowRecord(_buf *luban.ByteBuf) (*TestTbMultiRowRecord, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestMultiRowRecord, 0, size) + dataMap := make(map[int32]*TestMultiRowRecord) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestMultiRowRecord(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbMultiRowRecord{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbMultiRowRecord) GetDataMap() map[int32]*TestMultiRowRecord { + return table._dataMap +} + +func (table *TestTbMultiRowRecord) GetDataList() []*TestMultiRowRecord { + return table._dataList +} + +func (table *TestTbMultiRowRecord) Get(key int32) *TestMultiRowRecord { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbMultiRowTitle.go b/luban_examples/Projects/Go_bin/gen/test.TbMultiRowTitle.go new file mode 100644 index 00000000..f4873363 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbMultiRowTitle.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbMultiRowTitle struct { + _dataMap map[int32]*TestMultiRowTitle + _dataList []*TestMultiRowTitle +} + +func NewTestTbMultiRowTitle(_buf *luban.ByteBuf) (*TestTbMultiRowTitle, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestMultiRowTitle, 0, size) + dataMap := make(map[int32]*TestMultiRowTitle) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestMultiRowTitle(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbMultiRowTitle{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbMultiRowTitle) GetDataMap() map[int32]*TestMultiRowTitle { + return table._dataMap +} + +func (table *TestTbMultiRowTitle) GetDataList() []*TestMultiRowTitle { + return table._dataList +} + +func (table *TestTbMultiRowTitle) Get(key int32) *TestMultiRowTitle { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbMultiUnionIndexList.go b/luban_examples/Projects/Go_bin/gen/test.TbMultiUnionIndexList.go new file mode 100644 index 00000000..6304befe --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbMultiUnionIndexList.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbMultiUnionIndexList struct { + _dataList []*TestMultiUnionIndexList +} + +func NewTestTbMultiUnionIndexList(_buf *luban.ByteBuf) (*TestTbMultiUnionIndexList, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestMultiUnionIndexList, 0, size) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestMultiUnionIndexList(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + } + } + return &TestTbMultiUnionIndexList{_dataList:_dataList}, nil + } +} + +func (table *TestTbMultiUnionIndexList) GetDataList() []*TestMultiUnionIndexList { + return table._dataList +} + +func (table *TestTbMultiUnionIndexList) Get(index int) *TestMultiUnionIndexList { + return table._dataList[index] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbNotIndexList.go b/luban_examples/Projects/Go_bin/gen/test.TbNotIndexList.go new file mode 100644 index 00000000..154efda0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbNotIndexList.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbNotIndexList struct { + _dataList []*TestNotIndexList +} + +func NewTestTbNotIndexList(_buf *luban.ByteBuf) (*TestTbNotIndexList, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestNotIndexList, 0, size) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestNotIndexList(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + } + } + return &TestTbNotIndexList{_dataList:_dataList}, nil + } +} + +func (table *TestTbNotIndexList) GetDataList() []*TestNotIndexList { + return table._dataList +} + +func (table *TestTbNotIndexList) Get(index int) *TestNotIndexList { + return table._dataList[index] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbSingleton.go b/luban_examples/Projects/Go_bin/gen/test.TbSingleton.go new file mode 100644 index 00000000..1aef4e47 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbSingleton.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + + +import "errors" + +type TestTbSingleton struct { + _data *TestDemoSingletonType +} + +func NewTestTbSingleton(_buf *luban.ByteBuf) (*TestTbSingleton, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else if size != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewTestDemoSingletonType(_buf); err2 != nil { + return nil, err2 + } else { + return &TestTbSingleton{_data:_v}, nil + } + } +} + +func (table *TestTbSingleton) Get() *TestDemoSingletonType { + return table._data +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestBeRef.go b/luban_examples/Projects/Go_bin/gen/test.TbTestBeRef.go new file mode 100644 index 00000000..ec54585b --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestBeRef.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestBeRef struct { + _dataMap map[int32]*TestTestBeRef + _dataList []*TestTestBeRef +} + +func NewTestTbTestBeRef(_buf *luban.ByteBuf) (*TestTbTestBeRef, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestBeRef, 0, size) + dataMap := make(map[int32]*TestTestBeRef) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestBeRef(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestBeRef{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestBeRef) GetDataMap() map[int32]*TestTestBeRef { + return table._dataMap +} + +func (table *TestTbTestBeRef) GetDataList() []*TestTestBeRef { + return table._dataList +} + +func (table *TestTbTestBeRef) Get(key int32) *TestTestBeRef { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestBeRef2.go b/luban_examples/Projects/Go_bin/gen/test.TbTestBeRef2.go new file mode 100644 index 00000000..4e7c42c8 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestBeRef2.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestBeRef2 struct { + _dataMap map[int32]*TestTestBeRef + _dataList []*TestTestBeRef +} + +func NewTestTbTestBeRef2(_buf *luban.ByteBuf) (*TestTbTestBeRef2, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestBeRef, 0, size) + dataMap := make(map[int32]*TestTestBeRef) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestBeRef(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestBeRef2{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestBeRef2) GetDataMap() map[int32]*TestTestBeRef { + return table._dataMap +} + +func (table *TestTbTestBeRef2) GetDataList() []*TestTestBeRef { + return table._dataList +} + +func (table *TestTbTestBeRef2) Get(key int32) *TestTestBeRef { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestGlobal.go b/luban_examples/Projects/Go_bin/gen/test.TbTestGlobal.go new file mode 100644 index 00000000..2fdd715a --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestGlobal.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + + +import "errors" + +type TestTbTestGlobal struct { + _data *TestTestGlobal +} + +func NewTestTbTestGlobal(_buf *luban.ByteBuf) (*TestTbTestGlobal, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else if size != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewTestTestGlobal(_buf); err2 != nil { + return nil, err2 + } else { + return &TestTbTestGlobal{_data:_v}, nil + } + } +} + +func (table *TestTbTestGlobal) Get() *TestTestGlobal { + return table._data +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestIndex.go b/luban_examples/Projects/Go_bin/gen/test.TbTestIndex.go new file mode 100644 index 00000000..58404238 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestIndex.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestIndex struct { + _dataMap map[int32]*TestTestIndex + _dataList []*TestTestIndex +} + +func NewTestTbTestIndex(_buf *luban.ByteBuf) (*TestTbTestIndex, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestIndex, 0, size) + dataMap := make(map[int32]*TestTestIndex) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestIndex(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestIndex{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestIndex) GetDataMap() map[int32]*TestTestIndex { + return table._dataMap +} + +func (table *TestTbTestIndex) GetDataList() []*TestTestIndex { + return table._dataList +} + +func (table *TestTbTestIndex) Get(key int32) *TestTestIndex { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestMap.go b/luban_examples/Projects/Go_bin/gen/test.TbTestMap.go new file mode 100644 index 00000000..45aaf0ad --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestMap.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestMap struct { + _dataMap map[int32]*TestTestMap + _dataList []*TestTestMap +} + +func NewTestTbTestMap(_buf *luban.ByteBuf) (*TestTbTestMap, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestMap, 0, size) + dataMap := make(map[int32]*TestTestMap) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestMap(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestMap{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestMap) GetDataMap() map[int32]*TestTestMap { + return table._dataMap +} + +func (table *TestTbTestMap) GetDataList() []*TestTestMap { + return table._dataList +} + +func (table *TestTbTestMap) Get(key int32) *TestTestMap { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestMapper.go b/luban_examples/Projects/Go_bin/gen/test.TbTestMapper.go new file mode 100644 index 00000000..afea7032 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestMapper.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestMapper struct { + _dataMap map[int32]*TestTestMapper + _dataList []*TestTestMapper +} + +func NewTestTbTestMapper(_buf *luban.ByteBuf) (*TestTbTestMapper, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestMapper, 0, size) + dataMap := make(map[int32]*TestTestMapper) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestMapper(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestMapper{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestMapper) GetDataMap() map[int32]*TestTestMapper { + return table._dataMap +} + +func (table *TestTbTestMapper) GetDataList() []*TestTestMapper { + return table._dataList +} + +func (table *TestTbTestMapper) Get(key int32) *TestTestMapper { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestMultiColumn.go b/luban_examples/Projects/Go_bin/gen/test.TbTestMultiColumn.go new file mode 100644 index 00000000..131c39ed --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestMultiColumn.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestMultiColumn struct { + _dataMap map[int32]*TestTestMultiColumn + _dataList []*TestTestMultiColumn +} + +func NewTestTbTestMultiColumn(_buf *luban.ByteBuf) (*TestTbTestMultiColumn, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestMultiColumn, 0, size) + dataMap := make(map[int32]*TestTestMultiColumn) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestMultiColumn(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestMultiColumn{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestMultiColumn) GetDataMap() map[int32]*TestTestMultiColumn { + return table._dataMap +} + +func (table *TestTbTestMultiColumn) GetDataList() []*TestTestMultiColumn { + return table._dataList +} + +func (table *TestTbTestMultiColumn) Get(key int32) *TestTestMultiColumn { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestNull.go b/luban_examples/Projects/Go_bin/gen/test.TbTestNull.go new file mode 100644 index 00000000..18453a5d --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestNull.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestNull struct { + _dataMap map[int32]*TestTestNull + _dataList []*TestTestNull +} + +func NewTestTbTestNull(_buf *luban.ByteBuf) (*TestTbTestNull, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestNull, 0, size) + dataMap := make(map[int32]*TestTestNull) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestNull(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestNull{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestNull) GetDataMap() map[int32]*TestTestNull { + return table._dataMap +} + +func (table *TestTbTestNull) GetDataList() []*TestTestNull { + return table._dataList +} + +func (table *TestTbTestNull) Get(key int32) *TestTestNull { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestRef.go b/luban_examples/Projects/Go_bin/gen/test.TbTestRef.go new file mode 100644 index 00000000..a7546e77 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestRef.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestRef struct { + _dataMap map[int32]*TestTestRef + _dataList []*TestTestRef +} + +func NewTestTbTestRef(_buf *luban.ByteBuf) (*TestTbTestRef, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestRef, 0, size) + dataMap := make(map[int32]*TestTestRef) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestRef(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestRef{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestRef) GetDataMap() map[int32]*TestTestRef { + return table._dataMap +} + +func (table *TestTbTestRef) GetDataList() []*TestTestRef { + return table._dataList +} + +func (table *TestTbTestRef) Get(key int32) *TestTestRef { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestScriptableObject.go b/luban_examples/Projects/Go_bin/gen/test.TbTestScriptableObject.go new file mode 100644 index 00000000..32bad7bf --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestScriptableObject.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestScriptableObject struct { + _dataMap map[int32]*TestTestScriptableObject + _dataList []*TestTestScriptableObject +} + +func NewTestTbTestScriptableObject(_buf *luban.ByteBuf) (*TestTbTestScriptableObject, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestScriptableObject, 0, size) + dataMap := make(map[int32]*TestTestScriptableObject) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestScriptableObject(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestScriptableObject{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestScriptableObject) GetDataMap() map[int32]*TestTestScriptableObject { + return table._dataMap +} + +func (table *TestTbTestScriptableObject) GetDataList() []*TestTestScriptableObject { + return table._dataList +} + +func (table *TestTbTestScriptableObject) Get(key int32) *TestTestScriptableObject { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestSet.go b/luban_examples/Projects/Go_bin/gen/test.TbTestSet.go new file mode 100644 index 00000000..73ec22ef --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestSet.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestSet struct { + _dataMap map[int32]*TestTestSet + _dataList []*TestTestSet +} + +func NewTestTbTestSet(_buf *luban.ByteBuf) (*TestTbTestSet, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestSet, 0, size) + dataMap := make(map[int32]*TestTestSet) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestSet(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestSet{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestSet) GetDataMap() map[int32]*TestTestSet { + return table._dataMap +} + +func (table *TestTbTestSet) GetDataList() []*TestTestSet { + return table._dataList +} + +func (table *TestTbTestSet) Get(key int32) *TestTestSet { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestSize.go b/luban_examples/Projects/Go_bin/gen/test.TbTestSize.go new file mode 100644 index 00000000..bc05f1f6 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestSize.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestSize struct { + _dataMap map[int32]*TestTestSize + _dataList []*TestTestSize +} + +func NewTestTbTestSize(_buf *luban.ByteBuf) (*TestTbTestSize, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestSize, 0, size) + dataMap := make(map[int32]*TestTestSize) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestSize(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestSize{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestSize) GetDataMap() map[int32]*TestTestSize { + return table._dataMap +} + +func (table *TestTbTestSize) GetDataList() []*TestTestSize { + return table._dataList +} + +func (table *TestTbTestSize) Get(key int32) *TestTestSize { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.TbTestString.go b/luban_examples/Projects/Go_bin/gen/test.TbTestString.go new file mode 100644 index 00000000..7884bc68 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TbTestString.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "demo/luban" + +type TestTbTestString struct { + _dataMap map[string]*TestTestString + _dataList []*TestTestString +} + +func NewTestTbTestString(_buf *luban.ByteBuf) (*TestTbTestString, error) { + if size, err := _buf.ReadSize() ; err != nil { + return nil, err + } else { + _dataList := make([]*TestTestString, 0, size) + dataMap := make(map[string]*TestTestString) + + for i := 0 ; i < size ; i++ { + if _v, err2 := NewTestTestString(_buf); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestString{_dataList:_dataList, _dataMap:dataMap}, nil + } +} + +func (table *TestTbTestString) GetDataMap() map[string]*TestTestString { + return table._dataMap +} + +func (table *TestTbTestString) GetDataList() []*TestTestString { + return table._dataList +} + +func (table *TestTbTestString) Get(key string) *TestTestString { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_bin/gen/test.Test3.go b/luban_examples/Projects/Go_bin/gen/test.Test3.go new file mode 100644 index 00000000..7b64e2e3 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.Test3.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTest3 struct { + X int32 + Y int32 +} + +const TypeId_TestTest3 = 638540133 + +func (*TestTest3) GetTypeId() int32 { + return 638540133 +} + +func NewTestTest3(_buf *luban.ByteBuf) (_v *TestTest3, err error) { + _v = &TestTest3{} + { if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestBeRef.go b/luban_examples/Projects/Go_bin/gen/test.TestBeRef.go new file mode 100644 index 00000000..6976d932 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestBeRef.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestBeRef struct { + Id int32 + Count int32 +} + +const TypeId_TestTestBeRef = 1934403938 + +func (*TestTestBeRef) GetTypeId() int32 { + return 1934403938 +} + +func NewTestTestBeRef(_buf *luban.ByteBuf) (_v *TestTestBeRef, err error) { + _v = &TestTestBeRef{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Count, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestExcelBean1.go b/luban_examples/Projects/Go_bin/gen/test.TestExcelBean1.go new file mode 100644 index 00000000..5fec84d0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestExcelBean1.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestExcelBean1 struct { + X1 int32 + X2 string + X3 int32 + X4 float32 +} + +const TypeId_TestTestExcelBean1 = -1738345160 + +func (*TestTestExcelBean1) GetTypeId() int32 { + return -1738345160 +} + +func NewTestTestExcelBean1(_buf *luban.ByteBuf) (_v *TestTestExcelBean1, err error) { + _v = &TestTestExcelBean1{} + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X2, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X4, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestGlobal.go b/luban_examples/Projects/Go_bin/gen/test.TestGlobal.go new file mode 100644 index 00000000..5a3e7b07 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestGlobal.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestGlobal struct { + UnlockEquip int32 + UnlockHero int32 +} + +const TypeId_TestTestGlobal = -12548655 + +func (*TestTestGlobal) GetTypeId() int32 { + return -12548655 +} + +func NewTestTestGlobal(_buf *luban.ByteBuf) (_v *TestTestGlobal, err error) { + _v = &TestTestGlobal{} + { if _v.UnlockEquip, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.UnlockHero, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestIndex.go b/luban_examples/Projects/Go_bin/gen/test.TestIndex.go new file mode 100644 index 00000000..34af2b91 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestIndex.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestIndex struct { + Id int32 + Eles []*TestDemoType1 +} + +const TypeId_TestTestIndex = 1941154020 + +func (*TestTestIndex) GetTypeId() int32 { + return 1941154020 +} + +func NewTestTestIndex(_buf *luban.ByteBuf) (_v *TestTestIndex, err error) { + _v = &TestTestIndex{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + {_v.Eles = make([]*TestDemoType1, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ *TestDemoType1; { if _e_, err = NewTestDemoType1(_buf); err != nil { err = errors.New("error"); return } }; _v.Eles = append(_v.Eles, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestMap.go b/luban_examples/Projects/Go_bin/gen/test.TestMap.go new file mode 100644 index 00000000..e81cace2 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestMap.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestMap struct { + Id int32 + X1 map[int32]int32 + X2 map[int64]int32 + X3 map[string]int32 + X4 map[int32]int32 +} + +const TypeId_TestTestMap = -543227410 + +func (*TestTestMap) GetTypeId() int32 { + return -543227410 +} + +func NewTestTestMap(_buf *luban.ByteBuf) (_v *TestTestMap, err error) { + _v = &TestTestMap{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { _v.X1 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X1[_key_] = _value_} } + { _v.X2 = make(map[int64]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int64; { if _key_, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X2[_key_] = _value_} } + { _v.X3 = make(map[string]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ string; { if _key_, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X3[_key_] = _value_} } + { _v.X4 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X4[_key_] = _value_} } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestMapper.go b/luban_examples/Projects/Go_bin/gen/test.TestMapper.go new file mode 100644 index 00000000..34fbebcc --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestMapper.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestMapper struct { + Id int32 + AudioType int32 + V2 *vec2 +} + +const TypeId_TestTestMapper = 149110895 + +func (*TestTestMapper) GetTypeId() int32 { + return 149110895 +} + +func NewTestTestMapper(_buf *luban.ByteBuf) (_v *TestTestMapper, err error) { + _v = &TestTestMapper{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.AudioType, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.V2, err = Newvec2(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestMultiColumn.go b/luban_examples/Projects/Go_bin/gen/test.TestMultiColumn.go new file mode 100644 index 00000000..cbce2017 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestMultiColumn.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestMultiColumn struct { + Id int32 + A *TestFoo + B *TestFoo + C *TestFoo +} + +const TypeId_TestTestMultiColumn = -294473599 + +func (*TestTestMultiColumn) GetTypeId() int32 { + return -294473599 +} + +func NewTestTestMultiColumn(_buf *luban.ByteBuf) (_v *TestTestMultiColumn, err error) { + _v = &TestTestMultiColumn{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.A, err = NewTestFoo(_buf); err != nil { err = errors.New("error"); return } } + { if _v.B, err = NewTestFoo(_buf); err != nil { err = errors.New("error"); return } } + { if _v.C, err = NewTestFoo(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestNull.go b/luban_examples/Projects/Go_bin/gen/test.TestNull.go new file mode 100644 index 00000000..5b8dc5b0 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestNull.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestNull struct { + Id int32 + X1 *int32 + X2 *int32 + X3 *TestDemoType1 + X4 interface{} + S1 *string + S2 *string +} + +const TypeId_TestTestNull = 339868469 + +func (*TestTestNull) GetTypeId() int32 { + return 339868469 +} + +func NewTestTestNull(_buf *luban.ByteBuf) (_v *TestTestNull, err error) { + _v = &TestTestNull{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ int32; { if __x__, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X1 = &__x__ }} + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ int32; { if __x__, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X2 = &__x__ }} + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ *TestDemoType1; { if __x__, err = NewTestDemoType1(_buf); err != nil { err = errors.New("error"); return } }; _v.X3 = __x__ }} + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ interface{}; { if __x__, err = NewTestDemoDynamic(_buf); err != nil { err = errors.New("error"); return } }; _v.X4 = __x__ }} + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ string; { if __x__, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } }; _v.S1 = &__x__ }} + { var __exists__ bool; if __exists__, err = _buf.ReadBool(); err != nil { return }; if __exists__ { var __x__ string; { if __x__, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } }; _v.S2 = &__x__ }} + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestRef.go b/luban_examples/Projects/Go_bin/gen/test.TestRef.go new file mode 100644 index 00000000..78acbda1 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestRef.go @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestRef struct { + Id int32 + X1 int32 + X12 int32 + X2 int32 + X3 int32 + X4 int32 + A1 []int32 + A2 []int32 + B1 []int32 + B2 []int32 + C1 []int32 + C2 []int32 + D1 map[int32]int32 + D2 map[int32]int32 + E1 int32 + E2 int64 + E3 string + F1 int32 + F2 int64 + F3 string + S1 interface{} +} + +const TypeId_TestTestRef = -543222491 + +func (*TestTestRef) GetTypeId() int32 { + return -543222491 +} + +func NewTestTestRef(_buf *luban.ByteBuf) (_v *TestTestRef, err error) { + _v = &TestTestRef{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X12, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X2, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X4, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + {_v.A1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.A1 = append(_v.A1, _e_) } } + {_v.A2 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.A2 = append(_v.A2, _e_) } } + {_v.B1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.B1 = append(_v.B1, _e_) } } + {_v.B2 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.B2 = append(_v.B2, _e_) } } + {_v.C1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.C1 = append(_v.C1, _e_) } } + {_v.C2 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.C2 = append(_v.C2, _e_) } } + { _v.D1 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.D1[_key_] = _value_} } + { _v.D2 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.D2[_key_] = _value_} } + { if _v.E1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.E2, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.E3, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.F1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.F2, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + { if _v.F3, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.S1, err = NewTestRefDynamicBase(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestRow.go b/luban_examples/Projects/Go_bin/gen/test.TestRow.go new file mode 100644 index 00000000..04714799 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestRow.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestRow struct { + X int32 + Y bool + Z string + A *TestTest3 + B []int32 +} + +const TypeId_TestTestRow = -543222164 + +func (*TestTestRow) GetTypeId() int32 { + return -543222164 +} + +func NewTestTestRow(_buf *luban.ByteBuf) (_v *TestTestRow, err error) { + _v = &TestTestRow{} + { if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } + { if _v.Z, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.A, err = NewTestTest3(_buf); err != nil { err = errors.New("error"); return } } + {_v.B = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.B = append(_v.B, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestScriptableObject.go b/luban_examples/Projects/Go_bin/gen/test.TestScriptableObject.go new file mode 100644 index 00000000..6d5d8bb5 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestScriptableObject.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestScriptableObject struct { + Id int32 + Desc string + Rate float32 + Num int32 + V2 *vec2 + V3 *vec3 + V4 *vec4 +} + +const TypeId_TestTestScriptableObject = -1896814350 + +func (*TestTestScriptableObject) GetTypeId() int32 { + return -1896814350 +} + +func NewTestTestScriptableObject(_buf *luban.ByteBuf) (_v *TestTestScriptableObject, err error) { + _v = &TestTestScriptableObject{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Rate, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.Num, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.V2, err = Newvec2(_buf); err != nil { err = errors.New("error"); return } } + { if _v.V3, err = Newvec3(_buf); err != nil { err = errors.New("error"); return } } + { if _v.V4, err = Newvec4(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestSet.go b/luban_examples/Projects/Go_bin/gen/test.TestSet.go new file mode 100644 index 00000000..5710ff60 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestSet.go @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestSet struct { + Id int32 + X0 string + X1 []int32 + X2 []int64 + X3 []string + X4 []int32 +} + +const TypeId_TestTestSet = -543221516 + +func (*TestTestSet) GetTypeId() int32 { + return -543221516 +} + +func NewTestTestSet(_buf *luban.ByteBuf) (_v *TestTestSet, err error) { + _v = &TestTestSet{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X0, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + {_v.X1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X1 = append(_v.X1, _e_) } } + {_v.X2 = make([]int64, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int64; { if _e_, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } }; _v.X2 = append(_v.X2, _e_) } } + {_v.X3 = make([]string, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ string; { if _e_, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } }; _v.X3 = append(_v.X3, _e_) } } + {_v.X4 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X4 = append(_v.X4, _e_) } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestSize.go b/luban_examples/Projects/Go_bin/gen/test.TestSize.go new file mode 100644 index 00000000..78421b8f --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestSize.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestSize struct { + Id int32 + X1 []int32 + X2 []int32 + X3 []int32 + X4 map[int32]int32 +} + +const TypeId_TestTestSize = 340006319 + +func (*TestTestSize) GetTypeId() int32 { + return 340006319 +} + +func NewTestTestSize(_buf *luban.ByteBuf) (_v *TestTestSize, err error) { + _v = &TestTestSize{} + { if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + {_v.X1 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X1 = append(_v.X1, _e_) } } + {_v.X2 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X2 = append(_v.X2, _e_) } } + {_v.X3 = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X3 = append(_v.X3, _e_) } } + { _v.X4 = make(map[int32]int32); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _key_ int32; { if _key_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; var _value_ int32; { if _value_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.X4[_key_] = _value_} } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.TestString.go b/luban_examples/Projects/Go_bin/gen/test.TestString.go new file mode 100644 index 00000000..0dc01422 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.TestString.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestTestString struct { + Id string + S1 string + S2 string + Cs1 *TestCompactString + Cs2 *TestCompactString +} + +const TypeId_TestTestString = 338485823 + +func (*TestTestString) GetTypeId() int32 { + return 338485823 +} + +func NewTestTestString(_buf *luban.ByteBuf) (_v *TestTestString, err error) { + _v = &TestTestString{} + { if _v.Id, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.S1, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.S2, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } + { if _v.Cs1, err = NewTestCompactString(_buf); err != nil { err = errors.New("error"); return } } + { if _v.Cs2, err = NewTestCompactString(_buf); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test.login.RoleInfo.go b/luban_examples/Projects/Go_bin/gen/test.login.RoleInfo.go new file mode 100644 index 00000000..2af222ac --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test.login.RoleInfo.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type TestLoginRoleInfo struct { + X1 int32 + X3 int32 + RoleId int64 +} + +const TypeId_TestLoginRoleInfo = -989153243 + +func (*TestLoginRoleInfo) GetTypeId() int32 { + return -989153243 +} + +func NewTestLoginRoleInfo(_buf *luban.ByteBuf) (_v *TestLoginRoleInfo, err error) { + _v = &TestLoginRoleInfo{} + { if _v.X1, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.X3, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } + { if _v.RoleId, err = _buf.ReadLong(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/test2.Rectangle.go b/luban_examples/Projects/Go_bin/gen/test2.Rectangle.go new file mode 100644 index 00000000..76760ea5 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/test2.Rectangle.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type Test2Rectangle struct { + Width float32 + Height float32 +} + +const TypeId_Test2Rectangle = 694982337 + +func (*Test2Rectangle) GetTypeId() int32 { + return 694982337 +} + +func NewTest2Rectangle(_buf *luban.ByteBuf) (_v *Test2Rectangle, err error) { + _v = &Test2Rectangle{} + { if _v.Width, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.Height, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/vec2.go b/luban_examples/Projects/Go_bin/gen/vec2.go new file mode 100644 index 00000000..0fd516d3 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/vec2.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type vec2 struct { + X float32 + Y float32 +} + +const TypeId_vec2 = 3615518 + +func (*vec2) GetTypeId() int32 { + return 3615518 +} + +func Newvec2(_buf *luban.ByteBuf) (_v *vec2, err error) { + _v = &vec2{} + { if _v.X, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/vec3.go b/luban_examples/Projects/Go_bin/gen/vec3.go new file mode 100644 index 00000000..044bacc4 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/vec3.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type vec3 struct { + X float32 + Y float32 + Z float32 +} + +const TypeId_vec3 = 3615519 + +func (*vec3) GetTypeId() int32 { + return 3615519 +} + +func Newvec3(_buf *luban.ByteBuf) (_v *vec3, err error) { + _v = &vec3{} + { if _v.X, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.Z, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/gen/vec4.go b/luban_examples/Projects/Go_bin/gen/vec4.go new file mode 100644 index 00000000..591ac345 --- /dev/null +++ b/luban_examples/Projects/Go_bin/gen/vec4.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import ( + "demo/luban" +) + +import "errors" + +type vec4 struct { + X float32 + Y float32 + Z float32 + W float32 +} + +const TypeId_vec4 = 3615520 + +func (*vec4) GetTypeId() int32 { + return 3615520 +} + +func Newvec4(_buf *luban.ByteBuf) (_v *vec4, err error) { + _v = &vec4{} + { if _v.X, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.Y, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.Z, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + { if _v.W, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_bin/go.mod b/luban_examples/Projects/Go_bin/go.mod new file mode 100644 index 00000000..21cc4823 --- /dev/null +++ b/luban_examples/Projects/Go_bin/go.mod @@ -0,0 +1,3 @@ +module demo + +go 1.18 diff --git a/luban_examples/Projects/Go_bin/luban/ByteBuf.go b/luban_examples/Projects/Go_bin/luban/ByteBuf.go new file mode 100644 index 00000000..1ae76e73 --- /dev/null +++ b/luban_examples/Projects/Go_bin/luban/ByteBuf.go @@ -0,0 +1,611 @@ +package luban + +import ( + "errors" + "math" +) + +var EmptyBytes []byte + +var UnmarshalErr = errors.New("read not enough") + +func init() { + EmptyBytes = make([]byte, 0) +} + +type ByteBuf struct { + readerIndex int + writerIndex int + capacity int + bytes []byte +} + +func NewByteBuf(capacity int) *ByteBuf { + v := &ByteBuf{} + v.bytes = make([]byte, capacity, capacity) + v.readerIndex = 0 + v.writerIndex = 0 + v.capacity = capacity + return v +} + +func WrapByteBuf(bytes []byte) *ByteBuf { + v := &ByteBuf{} + v.bytes = bytes + v.readerIndex = 0 + v.writerIndex = len(bytes) + v.capacity = len(bytes) + return v +} + +func (buf *ByteBuf) Replace(bytes []byte) { + buf.bytes = bytes + buf.readerIndex = 0 + buf.writerIndex = len(bytes) + buf.capacity = len(bytes) +} + +func (buf *ByteBuf) Clear() { + buf.readerIndex = 0 + buf.writerIndex = 0 +} + +func (buf *ByteBuf) Size() int { + return buf.writerIndex - buf.readerIndex +} + +func (buf *ByteBuf) GetBytes() []byte { + return buf.bytes +} + +func (buf *ByteBuf) CopyRemainData() []byte { + size := len(buf.bytes) + if size > 0 { + bs := make([]byte, size, size) + copy(bs, buf.bytes[buf.readerIndex:buf.writerIndex]) + return bs + } else { + return EmptyBytes + } +} + +func (buf *ByteBuf) CalcNewCap(curSize int, needSize int) int { + curSize *= 2 + if curSize < 16 { + curSize = 16 + } + for ; curSize < needSize; curSize *= 2 { + } + return curSize +} + +func (buf *ByteBuf) EnsureWrite(remain int) { + if buf.writerIndex+remain > buf.capacity { + size := buf.Size() + if size+remain <= buf.capacity { + copy(buf.bytes, buf.bytes[buf.readerIndex:buf.writerIndex]) + } else { + buf.capacity = buf.CalcNewCap(buf.capacity, size+remain) + newBytes := make([]byte, buf.capacity, buf.capacity) + copy(newBytes, buf.bytes[buf.readerIndex:buf.writerIndex]) + buf.bytes = newBytes + } + buf.writerIndex = size + buf.readerIndex = 0 + } +} + +func (buf *ByteBuf) ReadBool() (bool, error) { + if buf.readerIndex < buf.writerIndex { + x := buf.bytes[buf.readerIndex] != 0 + buf.readerIndex++ + return x, nil + } else { + return false, UnmarshalErr + } +} + +func (buf *ByteBuf) WriteBool(x bool) { + buf.EnsureWrite(1) + if x { + buf.bytes[buf.writerIndex] = 1 + } else { + buf.bytes[buf.writerIndex] = 0 + } + buf.writerIndex++ +} + +func (buf *ByteBuf) ReadByte() (byte, error) { + if buf.readerIndex < buf.writerIndex { + x := buf.bytes[buf.readerIndex] + buf.readerIndex++ + return x, nil + } else { + return 0, UnmarshalErr + } +} + +func (buf *ByteBuf) WriteByte(x byte) { + buf.EnsureWrite(1) + buf.bytes[buf.writerIndex] = x + buf.writerIndex++ +} + +func (buf *ByteBuf) ReadShort() (int16, error) { + if buf.readerIndex >= buf.writerIndex { + return 0, UnmarshalErr + } + h := uint32(buf.bytes[buf.readerIndex]) + if h < 0x80 { + buf.readerIndex++ + return int16(h), nil + } else if h < 0xc0 { + if buf.readerIndex+2 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x3f) << 8) | uint32(buf.bytes[buf.readerIndex+1]) + buf.readerIndex += 2 + return int16(x), nil + } else if h == 0xff { + if buf.readerIndex+3 > buf.writerIndex { + return 0, UnmarshalErr + } + x := (uint32(buf.bytes[buf.readerIndex+1]) << 8) | uint32(buf.bytes[buf.readerIndex+2]) + buf.readerIndex += 3 + return int16(x), nil + } else { + return 0, UnmarshalErr + } +} + +func (buf *ByteBuf) WriteShort(x int16) { + if x >= 0 { + if x < 0x80 { + buf.EnsureWrite(1) + buf.bytes[buf.writerIndex] = byte(x) + buf.writerIndex++ + return + } else if x < 0x4000 { + buf.EnsureWrite(2) + buf.bytes[buf.writerIndex+1] = byte(x) + buf.bytes[buf.writerIndex] = byte((x >> 8) | 0x80) + buf.writerIndex += 2 + return + } + } + buf.EnsureWrite(3) + buf.bytes[buf.writerIndex] = 0xff + buf.bytes[buf.writerIndex+2] = byte(x) + buf.bytes[buf.writerIndex+1] = byte(x >> 8) + buf.writerIndex += 3 +} + +func (buf *ByteBuf) ReadFshort() (int16, error) { + if buf.readerIndex+2 > buf.writerIndex { + return 0, UnmarshalErr + } + x := int(buf.bytes[buf.readerIndex]) | (int(buf.bytes[buf.readerIndex+1]) << 8) + buf.readerIndex += 2 + return int16(x), nil +} + +func (buf *ByteBuf) WriteFshort(x int16) { + buf.EnsureWrite(2) + buf.bytes[buf.writerIndex] = byte(x) + buf.bytes[buf.writerIndex+1] = byte(x >> 8) + buf.writerIndex += 2 +} + +func (buf *ByteBuf) ReadInt() (int32, error) { + x, err := buf.ReadUint() + return int32(x), err +} + +func (buf *ByteBuf) WriteInt(x int32) { + buf.WriteUint(uint32(x)) +} + +func (buf *ByteBuf) ReadUint() (uint32, error) { + if buf.readerIndex >= buf.writerIndex { + return 0, UnmarshalErr + } + h := uint32(buf.bytes[buf.readerIndex]) + if h < 0x80 { + buf.readerIndex++ + return h, nil + } else if h < 0xc0 { + if buf.readerIndex+2 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x3f) << 8) | uint32(buf.bytes[buf.readerIndex+1]) + buf.readerIndex += 2 + return x, nil + } else if h < 0xe0 { + if buf.readerIndex+3 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x1f) << 16) | (uint32(buf.bytes[buf.readerIndex+1]) << 8) | uint32(buf.bytes[buf.readerIndex+2]) + buf.readerIndex += 3 + return x, nil + } else if h < 0xf0 { + if buf.readerIndex+4 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x0f) << 24) | (uint32(buf.bytes[buf.readerIndex+1]) << 16) | (uint32(buf.bytes[buf.readerIndex+2]) << 8) | uint32(buf.bytes[buf.readerIndex+3]) + buf.readerIndex += 4 + return x, nil + } else { + if buf.readerIndex+5 > buf.writerIndex { + return 0, UnmarshalErr + } + x := (uint32(buf.bytes[buf.readerIndex+1]) << 24) | (uint32(buf.bytes[buf.readerIndex+2]) << 16) | (uint32(buf.bytes[buf.readerIndex+3]) << 8) | uint32(buf.bytes[buf.readerIndex+4]) + buf.readerIndex += 5 + return x, nil + } +} + +func (buf *ByteBuf) WriteUint(x uint32) { + if x < 0x80 { + buf.EnsureWrite(1) + buf.bytes[buf.writerIndex] = byte(x) + buf.writerIndex++ + } else if x < 0x4000 { + buf.EnsureWrite(2) + buf.bytes[buf.writerIndex+1] = byte(x) + buf.bytes[buf.writerIndex] = byte((x >> 8) | 0x80) + buf.writerIndex += 2 + } else if x < 0x200000 { + buf.EnsureWrite(3) + buf.bytes[buf.writerIndex+2] = byte(x) + buf.bytes[buf.writerIndex+1] = byte(x >> 8) + buf.bytes[buf.writerIndex] = byte((x >> 16) | 0xc0) + buf.writerIndex += 3 + } else if x < 0x10000000 { + buf.EnsureWrite(4) + buf.bytes[buf.writerIndex+3] = byte(x) + buf.bytes[buf.writerIndex+2] = byte(x >> 8) + buf.bytes[buf.writerIndex+1] = byte(x >> 16) + buf.bytes[buf.writerIndex] = byte((x >> 24) | 0xe0) + buf.writerIndex += 4 + } else { + buf.EnsureWrite(5) + buf.bytes[buf.writerIndex] = 0xf0 + buf.bytes[buf.writerIndex+4] = byte(x) + buf.bytes[buf.writerIndex+3] = byte(x >> 8) + buf.bytes[buf.writerIndex+2] = byte(x >> 16) + buf.bytes[buf.writerIndex+1] = byte(x >> 24) + buf.writerIndex += 5 + } +} + +func (buf *ByteBuf) ReadFint() (int32, error) { + if buf.readerIndex+4 > buf.writerIndex { + return 0, UnmarshalErr + } + x := int32(uint(buf.bytes[buf.readerIndex]) | (uint(buf.bytes[buf.readerIndex+1]) << 8) | + (uint(buf.bytes[buf.readerIndex+2]) << 16) | (uint(buf.bytes[buf.readerIndex+3]) << 24)) + buf.readerIndex += 4 + return x, nil +} + +func (buf *ByteBuf) WriteFint(x int32) { + buf.EnsureWrite(4) + buf.bytes[buf.writerIndex] = byte(x) + buf.bytes[buf.writerIndex+1] = byte(x >> 8) + buf.bytes[buf.writerIndex+2] = byte(x >> 16) + buf.bytes[buf.writerIndex+3] = byte(x >> 24) + buf.writerIndex += 4 +} + +func (buf *ByteBuf) ReadLong() (int64, error) { + x, err := buf.ReadUlong() + return int64(x), err +} + +func (buf *ByteBuf) WriteLong(x int64) { + buf.WriteUlong(uint64(x)) +} + +func (buf *ByteBuf) ReadUlong() (uint64, error) { + if buf.readerIndex >= buf.writerIndex { + return 0, UnmarshalErr + } + h := uint64(buf.bytes[buf.readerIndex]) + if h < 0x80 { + buf.readerIndex++ + return h, nil + } else if h < 0xc0 { + if buf.readerIndex+2 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x3f) << 8) | uint64(buf.bytes[buf.readerIndex+1]) + buf.readerIndex += 2 + return x, nil + } else if h < 0xe0 { + if buf.readerIndex+3 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x1f) << 16) | (uint64(buf.bytes[buf.readerIndex+1]) << 8) | uint64(buf.bytes[buf.readerIndex+2]) + buf.readerIndex += 3 + return x, nil + } else if h < 0xf0 { + if buf.readerIndex+4 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x1f) << 24) | (uint64(buf.bytes[buf.readerIndex+1]) << 16) | (uint64(buf.bytes[buf.readerIndex+2]) << 8) | + uint64(buf.bytes[buf.readerIndex+3]) + buf.readerIndex += 4 + return x, nil + } else if h < 0xf8 { + if buf.readerIndex+5 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x7) << 32) | (uint64(buf.bytes[buf.readerIndex+1]) << 24) | (uint64(buf.bytes[buf.readerIndex+2]) << 16) | + (uint64(buf.bytes[buf.readerIndex+3]) << 8) | uint64(buf.bytes[buf.readerIndex+4]) + buf.readerIndex += 5 + return x, nil + } else if h < 0xfc { + if buf.readerIndex+6 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x3) << 40) | (uint64(buf.bytes[buf.readerIndex+1]) << 32) | (uint64(buf.bytes[buf.readerIndex+2]) << 24) | + (uint64(buf.bytes[buf.readerIndex+3]) << 16) | (uint64(buf.bytes[buf.readerIndex+4]) << 8) | + (uint64(buf.bytes[buf.readerIndex+5])) + buf.readerIndex += 6 + return x, nil + } else if h < 0xfe { + if buf.readerIndex+7 > buf.writerIndex { + return 0, UnmarshalErr + } + x := ((h & 0x1) << 48) | (uint64(buf.bytes[buf.readerIndex+1]) << 40) | (uint64(buf.bytes[buf.readerIndex+2]) << 32) | + (uint64(buf.bytes[buf.readerIndex+3]) << 24) | (uint64(buf.bytes[buf.readerIndex+4]) << 16) | + (uint64(buf.bytes[buf.readerIndex+5]) << 8) | (uint64(buf.bytes[buf.readerIndex+6])) + buf.readerIndex += 7 + return x, nil + } else if h < 0xff { + if buf.readerIndex+8 > buf.writerIndex { + return 0, UnmarshalErr + } + x := (uint64(buf.bytes[buf.readerIndex+1]) << 48) | (uint64(buf.bytes[buf.readerIndex+2]) << 40) | + (uint64(buf.bytes[buf.readerIndex+3]) << 32) | (uint64(buf.bytes[buf.readerIndex+4]) << 24) | + (uint64(buf.bytes[buf.readerIndex+5]) << 16) | (uint64(buf.bytes[buf.readerIndex+6]) << 8) | + (uint64(buf.bytes[buf.readerIndex+7])) + buf.readerIndex += 8 + return x, nil + } else { + if buf.readerIndex+9 > buf.writerIndex { + return 0, UnmarshalErr + } + x := (uint64(buf.bytes[buf.readerIndex+1]) << 56) | (uint64(buf.bytes[buf.readerIndex+2]) << 48) | + (uint64(buf.bytes[buf.readerIndex+3]) << 40) | (uint64(buf.bytes[buf.readerIndex+4]) << 32) | + (uint64(buf.bytes[buf.readerIndex+5]) << 24) | (uint64(buf.bytes[buf.readerIndex+6]) << 16) | + (uint64(buf.bytes[buf.readerIndex+7]) << 8) | (uint64(buf.bytes[buf.readerIndex+8])) + buf.readerIndex += 9 + return x, nil + } +} + +func (buf *ByteBuf) WriteUlong(x uint64) { + if x < 0x80 { + buf.EnsureWrite(1) + buf.bytes[buf.writerIndex] = byte(x) + buf.writerIndex++ + } else if x < 0x4000 { + buf.EnsureWrite(2) + buf.bytes[buf.writerIndex+1] = byte(x) + buf.bytes[buf.writerIndex] = byte((x >> 8) | 0x80) + buf.writerIndex += 2 + } else if x < 0x200000 { + buf.EnsureWrite(3) + buf.bytes[buf.writerIndex+2] = byte(x) + buf.bytes[buf.writerIndex+1] = byte(x >> 8) + buf.bytes[buf.writerIndex] = byte((x >> 16) | 0xc0) + buf.writerIndex += 3 + } else if x < 0x10000000 { + buf.EnsureWrite(4) + buf.bytes[buf.writerIndex+3] = byte(x) + buf.bytes[buf.writerIndex+2] = byte(x >> 8) + buf.bytes[buf.writerIndex+1] = byte(x >> 16) + buf.bytes[buf.writerIndex] = byte((x >> 24) | 0xe0) + buf.writerIndex += 4 + } else if x < 0x800000000 { + buf.EnsureWrite(5) + buf.bytes[buf.writerIndex+4] = byte(x) + buf.bytes[buf.writerIndex+3] = byte(x >> 8) + buf.bytes[buf.writerIndex+2] = byte(x >> 16) + buf.bytes[buf.writerIndex+1] = byte(x >> 24) + buf.bytes[buf.writerIndex] = byte((x >> 32) | 0xf0) + buf.writerIndex += 5 + } else if x < 0x40000000000 { + buf.EnsureWrite(6) + buf.bytes[buf.writerIndex+5] = byte(x) + buf.bytes[buf.writerIndex+4] = byte(x >> 8) + buf.bytes[buf.writerIndex+3] = byte(x >> 16) + buf.bytes[buf.writerIndex+2] = byte(x >> 24) + buf.bytes[buf.writerIndex+1] = byte(x >> 32) + buf.bytes[buf.writerIndex] = byte((x >> 40) | 0xf8) + buf.writerIndex += 6 + } else if x < 0x200000000000 { + buf.EnsureWrite(7) + buf.bytes[buf.writerIndex+6] = byte(x) + buf.bytes[buf.writerIndex+5] = byte(x >> 8) + buf.bytes[buf.writerIndex+4] = byte(x >> 16) + buf.bytes[buf.writerIndex+3] = byte(x >> 24) + buf.bytes[buf.writerIndex+2] = byte(x >> 32) + buf.bytes[buf.writerIndex+1] = byte(x >> 40) + buf.bytes[buf.writerIndex] = byte((x >> 48) | 0xfc) + buf.writerIndex += 7 + } else if x < 0x100000000000000 { + buf.EnsureWrite(8) + buf.bytes[buf.writerIndex+7] = byte(x) + buf.bytes[buf.writerIndex+6] = byte(x >> 8) + buf.bytes[buf.writerIndex+5] = byte(x >> 16) + buf.bytes[buf.writerIndex+4] = byte(x >> 24) + buf.bytes[buf.writerIndex+3] = byte(x >> 32) + buf.bytes[buf.writerIndex+2] = byte(x >> 40) + buf.bytes[buf.writerIndex+1] = byte(x >> 48) + buf.bytes[buf.writerIndex] = byte((x >> 56) | 0xfe) + buf.writerIndex += 8 + } else { + buf.EnsureWrite(9) + buf.bytes[buf.writerIndex+8] = byte(x) + buf.bytes[buf.writerIndex+7] = byte(x >> 8) + buf.bytes[buf.writerIndex+6] = byte(x >> 16) + buf.bytes[buf.writerIndex+5] = byte(x >> 24) + buf.bytes[buf.writerIndex+4] = byte(x >> 32) + buf.bytes[buf.writerIndex+3] = byte(x >> 40) + buf.bytes[buf.writerIndex+2] = byte(x >> 48) + buf.bytes[buf.writerIndex+1] = byte(x >> 56) + buf.bytes[buf.writerIndex] = 0xff + buf.writerIndex += 9 + } +} + +func (buf *ByteBuf) ReadFlong() (int64, error) { + if buf.readerIndex+8 > buf.writerIndex { + return 0, UnmarshalErr + } + x := (uint64(buf.bytes[buf.readerIndex+7]) << 56) | (uint64(buf.bytes[buf.readerIndex+6]) << 48) | + (uint64(buf.bytes[buf.readerIndex+5]) << 40) | (uint64(buf.bytes[buf.readerIndex+4]) << 32) | + (uint64(buf.bytes[buf.readerIndex+3]) << 24) | (uint64(buf.bytes[buf.readerIndex+2]) << 16) | + (uint64(buf.bytes[buf.readerIndex+1]) << 8) | (uint64(buf.bytes[buf.readerIndex])) + buf.readerIndex += 8 + return int64(x), nil +} + +func (buf *ByteBuf) WriteFlong(x int64) { + buf.EnsureWrite(8) + buf.bytes[buf.writerIndex] = byte(x) + buf.bytes[buf.writerIndex+1] = byte(x >> 8) + buf.bytes[buf.writerIndex+2] = byte(x >> 16) + buf.bytes[buf.writerIndex+3] = byte(x >> 24) + buf.bytes[buf.writerIndex+4] = byte(x >> 32) + buf.bytes[buf.writerIndex+5] = byte(x >> 40) + buf.bytes[buf.writerIndex+6] = byte(x >> 48) + buf.bytes[buf.writerIndex+7] = byte(x >> 56) + buf.writerIndex += 8 +} + +func (buf *ByteBuf) ReadFloat() (float32, error) { + if x, err := buf.ReadFint(); err == nil { + return math.Float32frombits(uint32(x)), nil + } else { + return 0, err + } +} + +func (buf *ByteBuf) WriteFloat(x float32) { + buf.WriteFint(int32(math.Float32bits(x))) +} + +func (buf *ByteBuf) ReadDouble() (float64, error) { + if x, err := buf.ReadFlong(); err == nil { + return math.Float64frombits(uint64(x)), nil + } else { + return 0, err + } +} + +func (buf *ByteBuf) WriteDouble(x float64) { + buf.WriteFlong(int64(math.Float64bits(x))) +} + +func (buf *ByteBuf) ReadSize() (int, error) { + x, err := buf.ReadUint() + return int(x), err +} + +func (buf *ByteBuf) WriteSize(x int) { + buf.WriteUint(uint32(x)) +} + +// marshal int +// n -> (n << 1) ^ (n >> 31) +// Read +// (x >>> 1) ^ ((x << 31) >> 31) +// (x >>> 1) ^ -(n&1) +func (buf *ByteBuf) ReadSint() (int32, error) { + if x, err := buf.ReadUint(); err == nil { + return int32((x >> 1) ^ ((x & 1) << 31)), nil + } else { + return 0, err + } +} + +func (buf *ByteBuf) WriteSint(x int32) { + buf.WriteUint((uint32(x) << 1) ^ (uint32(x) >> 31)) +} + +// marshal long +// n -> (n << 1) ^ (n >> 63) +// Read +// (x >>> 1) ^((x << 63) >> 63) +// (x >>> 1) ^ -(n&1L) +func (buf *ByteBuf) ReadSlong() (int64, error) { + if x, err := buf.ReadUlong(); err == nil { + return int64((x >> 1) ^ ((x & 1) << 63)), nil + } else { + return 0, err + } +} + +func (buf *ByteBuf) WriteSlong(x int64) { + buf.WriteUlong((uint64(x) << 1) ^ (uint64(x) >> 31)) +} + +func (buf *ByteBuf) WriteString(x string) { + bs := []byte(x) + buf.WriteSize(len(bs)) + buf.WriteBytesWithoutSize(bs) +} + +func (buf *ByteBuf) ReadString() (string, error) { + if size, err := buf.ReadSize(); err == nil { + if buf.readerIndex+size > buf.writerIndex { + return "", UnmarshalErr + } + s := string(buf.bytes[buf.readerIndex : buf.readerIndex+size]) + buf.readerIndex += size + return s, nil + } else { + return "", err + } +} + +func (buf *ByteBuf) ReadBytes() ([]byte, error) { + if size, err := buf.ReadSize(); err == nil { + if size == 0 { + return EmptyBytes, nil + } else if buf.readerIndex+size > buf.writerIndex { + return nil, UnmarshalErr + } else { + bs := make([]byte, size) + copy(bs, buf.bytes[buf.readerIndex:buf.readerIndex+size]) + buf.readerIndex += size + return bs, nil + } + } else { + return nil, err + } +} + +func (buf *ByteBuf) WriteBytes(x []byte) { + size := len(x) + buf.WriteSize(size) + if size > 0 { + buf.EnsureWrite(size) + copy(buf.bytes[buf.writerIndex:], x) + buf.writerIndex += size + } +} + +func (buf *ByteBuf) WriteBytesWithSize(x []byte) { + buf.WriteBytes(x) +} + +func (buf *ByteBuf) WriteBytesWithoutSize(x []byte) { + size := len(x) + buf.EnsureWrite(size) + copy(buf.bytes[buf.writerIndex:], x) + buf.writerIndex += size +} diff --git a/luban_examples/Projects/Go_bin/luban/marshal_test.go b/luban_examples/Projects/Go_bin/luban/marshal_test.go new file mode 100644 index 00000000..bc22c991 --- /dev/null +++ b/luban_examples/Projects/Go_bin/luban/marshal_test.go @@ -0,0 +1,172 @@ +package luban + +import ( + "bytes" + "testing" +) + +func TestMarshal(t *testing.T) { + buf := NewByteBuf(10) + + for i := 0; i < 2; i++ { + x := i != 0 + buf.WriteBool(x) + if v, err := buf.ReadBool(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 256; i = i*3/2 + 1 { + x := byte(i) + buf.WriteByte(x) + if v, err := buf.ReadByte(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x10000; i = i*3/2 + 1 { + x := int16(i) + buf.WriteShort(x) + if v, err := buf.ReadShort(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x10000; i = i*3/2 + 1 { + x := int16(i) + buf.WriteFshort(x) + if v, err := buf.ReadFshort(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x1000000000; i = i*3/2 + 1 { + x := int32(i) + buf.WriteInt(x) + if v, err := buf.ReadInt(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x1000000000; i = i*3/2 + 1 { + x := int32(i) + buf.WriteFint(x) + if v, err := buf.ReadFint(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x100000000; i = i*3/2 + 1 { + x := int(i) + buf.WriteSize(x) + if v, err := buf.ReadSize(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x100000000; i = i*3/2 + 1 { + x := int32(i) + buf.WriteSint(x) + if v, err := buf.ReadSint(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x1000000000000000; i = i*3/2 + 1 { + x := int64(i) + buf.WriteLong(x) + if v, err := buf.ReadLong(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + + x = -x + buf.WriteLong(x) + if v, err := buf.ReadLong(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + for i := 0; i < 0x100000000; i = i*3/2 + 1 { + x := float32(i) + buf.WriteFloat(x) + if v, err := buf.ReadFloat(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + for i := 0; i < 0x100000000; i = i*3/2 + 1 { + x := float64(i) + buf.WriteDouble(x) + if v, err := buf.ReadDouble(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + { + x := "walon" + buf.WriteString(x) + if v, err := buf.ReadString(); err != nil || v != x { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + + { + x := []byte{1, 2, 3} + buf.WriteBytes(x) + if v, err := buf.ReadBytes(); err != nil || !bytes.Equal(x, v) { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + { + x := []byte{1, 2, 3, 4} + buf.WriteBytesWithoutSize(x) + if v, err := buf.ReadFint(); err != nil || v != 0x04030201 { + t.Fatalf("expect %v, get %v", x, v) + } + if buf.Size() != 0 { + t.Fatalf("expect empty. but size:%v, x:%v", buf.Size(), x) + } + } + +} diff --git a/luban_examples/Projects/Go_bin/main.go b/luban_examples/Projects/Go_bin/main.go new file mode 100644 index 00000000..b49c4088 --- /dev/null +++ b/luban_examples/Projects/Go_bin/main.go @@ -0,0 +1,25 @@ +package main + +import ( + "demo/gen" + "demo/luban" + "fmt" + "io/ioutil" +) + +func loader(file string) (*luban.ByteBuf, error) { + if bytes, err := ioutil.ReadFile("../GenerateDatas/bytes/" + file + ".bytes"); err != nil { + return nil, err + } else { + return luban.WrapByteBuf(bytes), nil + } +} + +func main() { + if tables, err := cfg.NewTables(loader); err != nil { + println(err.Error()) + } else { + fmt.Printf("%v", tables.TbItem.GetDataList()[0]) + } + +} diff --git a/luban_examples/Projects/Go_json/gen.bat b/luban_examples/Projects/Go_json/gen.bat new file mode 100644 index 00000000..87340a5b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen.bat @@ -0,0 +1,18 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c go-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=gen ^ + -x outputDataDir=..\GenerateDatas\json ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json ^ + -x lubanGoModule=demo/luban + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Go_json/gen/AudioType.go b/luban_examples/Projects/Go_json/gen/AudioType.go new file mode 100644 index 00000000..5f395b0a --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/AudioType.go @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AudioType_UNKNOWN = 0; + AudioType_ACC = 1; + AudioType_AIFF = 2; +) + diff --git a/luban_examples/Projects/Go_json/gen/DefineFromExcel2.go b/luban_examples/Projects/Go_json/gen/DefineFromExcel2.go new file mode 100644 index 00000000..3f417b80 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/DefineFromExcel2.go @@ -0,0 +1,145 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type DefineFromExcel2 struct { + Id int32 + X1 bool + X5 int64 + X6 float32 + X8 int32 + X10 string + X13 int32 + X132 int32 + X14 interface{} + X15 interface{} + V2 *vec2 + T1 int64 + K1 []int32 + K2 []int32 + K8 map[int32]int32 + K9 []*TestDemoE2 + K10 []*vec3 + K11 []*vec4 +} + +const TypeId_DefineFromExcel2 = 482045152 + +func (*DefineFromExcel2) GetTypeId() int32 { + return 482045152 +} + +func NewDefineFromExcel2(_buf map[string]interface{}) (_v *DefineFromExcel2, err error) { + _v = &DefineFromExcel2{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x8"].(float64); !_ok_ { err = errors.New("x8 error"); return }; _v.X8 = int32(_tempNum_) } + { var _ok_ bool; if _v.X10, _ok_ = _buf["x10"].(string); !_ok_ { err = errors.New("x10 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13"].(float64); !_ok_ { err = errors.New("x13 error"); return }; _v.X13 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13_2"].(float64); !_ok_ { err = errors.New("x13_2 error"); return }; _v.X132 = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x14"].(map[string]interface{}); !_ok_ { err = errors.New("x14 error"); return }; if _v.X14, err = NewTestDemoDynamic(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x15"].(map[string]interface{}); !_ok_ { err = errors.New("x15 error"); return }; if _v.X15, err = NewTestShape(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v2"].(map[string]interface{}); !_ok_ { err = errors.New("v2 error"); return }; if _v.V2, err = Newvec2(_x_); err != nil { return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k1"].([]interface{}); !_ok_ { err = errors.New("k1 error"); return } + + _v.K1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.K1 = append(_v.K1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k2"].([]interface{}); !_ok_ { err = errors.New("k2 error"); return } + + _v.K2 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.K2 = append(_v.K2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k8"].([]interface{}); !_ok_ { err = errors.New("k8 error"); return } + + _v.K8 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("k8 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.K8[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k9"].([]interface{}); !_ok_ { err = errors.New("k9 error"); return } + + _v.K9 = make([]*TestDemoE2, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestDemoE2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestDemoE2(_x_); err != nil { return } } + _v.K9 = append(_v.K9, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k10"].([]interface{}); !_ok_ { err = errors.New("k10 error"); return } + + _v.K10 = make([]*vec3, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *vec3 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = Newvec3(_x_); err != nil { return } } + _v.K10 = append(_v.K10, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k11"].([]interface{}); !_ok_ { err = errors.New("k11 error"); return } + + _v.K11 = make([]*vec4, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *vec4 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = Newvec4(_x_); err != nil { return } } + _v.K11 = append(_v.K11, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/Tables.go b/luban_examples/Projects/Go_json/gen/Tables.go new file mode 100644 index 00000000..85a177dd --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/Tables.go @@ -0,0 +1,312 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +type JsonLoader func(string) ([]map[string]interface{}, error) + +type Tables struct { + TbBlackboard *AiTbBlackboard + TbBehaviorTree *AiTbBehaviorTree + TbGlobalConfig *CommonTbGlobalConfig + TbItem *ItemTbItem + TbL10NDemo *L10nTbL10NDemo + TbPatchDemo *L10nTbPatchDemo + TbTestTag *TagTbTestTag + TbFullTypes *TestTbFullTypes + TbSingleton *TestTbSingleton + TbNotIndexList *TestTbNotIndexList + TbMultiUnionIndexList *TestTbMultiUnionIndexList + TbMultiIndexList *TestTbMultiIndexList + TbDataFromMisc *TestTbDataFromMisc + TbMultiRowRecord *TestTbMultiRowRecord + TbTestMultiColumn *TestTbTestMultiColumn + TbMultiRowTitle *TestTbMultiRowTitle + TbTestNull *TestTbTestNull + TbDemoPrimitive *TestTbDemoPrimitive + TbTestString *TestTbTestString + TbDemoGroup *TestTbDemoGroup + TbDemoGroup_C *TestTbDemoGroup_C + TbDemoGroup_S *TestTbDemoGroup_S + TbDemoGroup_E *TestTbDemoGroup_E + TbTestGlobal *TestTbTestGlobal + TbTestBeRef *TestTbTestBeRef + TbTestBeRef2 *TestTbTestBeRef2 + TbTestRef *TestTbTestRef + TbTestSize *TestTbTestSize + TbTestSet *TestTbTestSet + TbDetectCsvEncoding *TestTbDetectCsvEncoding + TbItem2 *TestTbItem2 + TbTestIndex *TestTbTestIndex + TbTestMap *TestTbTestMap + TbExcelFromJson *TestTbExcelFromJson + TbCompositeJsonTable1 *TestTbCompositeJsonTable1 + TbCompositeJsonTable2 *TestTbCompositeJsonTable2 + TbCompositeJsonTable3 *TestTbCompositeJsonTable3 + TbExcelFromJsonMultiRow *TestTbExcelFromJsonMultiRow + TbTestScriptableObject *TestTbTestScriptableObject + TbTestMapper *TestTbTestMapper + TbDefineFromExcel2 *TestTbDefineFromExcel2 +} + +func NewTables(loader JsonLoader) (*Tables, error) { + var err error + var buf []map[string]interface{} + + tables := &Tables{} + if buf, err = loader("ai_tbblackboard") ; err != nil { + return nil, err + } + if tables.TbBlackboard, err = NewAiTbBlackboard(buf) ; err != nil { + return nil, err + } + if buf, err = loader("ai_tbbehaviortree") ; err != nil { + return nil, err + } + if tables.TbBehaviorTree, err = NewAiTbBehaviorTree(buf) ; err != nil { + return nil, err + } + if buf, err = loader("common_tbglobalconfig") ; err != nil { + return nil, err + } + if tables.TbGlobalConfig, err = NewCommonTbGlobalConfig(buf) ; err != nil { + return nil, err + } + if buf, err = loader("item_tbitem") ; err != nil { + return nil, err + } + if tables.TbItem, err = NewItemTbItem(buf) ; err != nil { + return nil, err + } + if buf, err = loader("l10n_tbl10ndemo") ; err != nil { + return nil, err + } + if tables.TbL10NDemo, err = NewL10nTbL10NDemo(buf) ; err != nil { + return nil, err + } + if buf, err = loader("l10n_tbpatchdemo") ; err != nil { + return nil, err + } + if tables.TbPatchDemo, err = NewL10nTbPatchDemo(buf) ; err != nil { + return nil, err + } + if buf, err = loader("tag_tbtesttag") ; err != nil { + return nil, err + } + if tables.TbTestTag, err = NewTagTbTestTag(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbfulltypes") ; err != nil { + return nil, err + } + if tables.TbFullTypes, err = NewTestTbFullTypes(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbsingleton") ; err != nil { + return nil, err + } + if tables.TbSingleton, err = NewTestTbSingleton(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbnotindexlist") ; err != nil { + return nil, err + } + if tables.TbNotIndexList, err = NewTestTbNotIndexList(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultiunionindexlist") ; err != nil { + return nil, err + } + if tables.TbMultiUnionIndexList, err = NewTestTbMultiUnionIndexList(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultiindexlist") ; err != nil { + return nil, err + } + if tables.TbMultiIndexList, err = NewTestTbMultiIndexList(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdatafrommisc") ; err != nil { + return nil, err + } + if tables.TbDataFromMisc, err = NewTestTbDataFromMisc(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultirowrecord") ; err != nil { + return nil, err + } + if tables.TbMultiRowRecord, err = NewTestTbMultiRowRecord(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestmulticolumn") ; err != nil { + return nil, err + } + if tables.TbTestMultiColumn, err = NewTestTbTestMultiColumn(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbmultirowtitle") ; err != nil { + return nil, err + } + if tables.TbMultiRowTitle, err = NewTestTbMultiRowTitle(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestnull") ; err != nil { + return nil, err + } + if tables.TbTestNull, err = NewTestTbTestNull(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemoprimitive") ; err != nil { + return nil, err + } + if tables.TbDemoPrimitive, err = NewTestTbDemoPrimitive(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbteststring") ; err != nil { + return nil, err + } + if tables.TbTestString, err = NewTestTbTestString(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup") ; err != nil { + return nil, err + } + if tables.TbDemoGroup, err = NewTestTbDemoGroup(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup_c") ; err != nil { + return nil, err + } + if tables.TbDemoGroup_C, err = NewTestTbDemoGroup_C(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup_s") ; err != nil { + return nil, err + } + if tables.TbDemoGroup_S, err = NewTestTbDemoGroup_S(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdemogroup_e") ; err != nil { + return nil, err + } + if tables.TbDemoGroup_E, err = NewTestTbDemoGroup_E(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestglobal") ; err != nil { + return nil, err + } + if tables.TbTestGlobal, err = NewTestTbTestGlobal(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestberef") ; err != nil { + return nil, err + } + if tables.TbTestBeRef, err = NewTestTbTestBeRef(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestberef2") ; err != nil { + return nil, err + } + if tables.TbTestBeRef2, err = NewTestTbTestBeRef2(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestref") ; err != nil { + return nil, err + } + if tables.TbTestRef, err = NewTestTbTestRef(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestsize") ; err != nil { + return nil, err + } + if tables.TbTestSize, err = NewTestTbTestSize(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestset") ; err != nil { + return nil, err + } + if tables.TbTestSet, err = NewTestTbTestSet(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdetectcsvencoding") ; err != nil { + return nil, err + } + if tables.TbDetectCsvEncoding, err = NewTestTbDetectCsvEncoding(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbitem2") ; err != nil { + return nil, err + } + if tables.TbItem2, err = NewTestTbItem2(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestindex") ; err != nil { + return nil, err + } + if tables.TbTestIndex, err = NewTestTbTestIndex(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestmap") ; err != nil { + return nil, err + } + if tables.TbTestMap, err = NewTestTbTestMap(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbexcelfromjson") ; err != nil { + return nil, err + } + if tables.TbExcelFromJson, err = NewTestTbExcelFromJson(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbcompositejsontable1") ; err != nil { + return nil, err + } + if tables.TbCompositeJsonTable1, err = NewTestTbCompositeJsonTable1(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbcompositejsontable2") ; err != nil { + return nil, err + } + if tables.TbCompositeJsonTable2, err = NewTestTbCompositeJsonTable2(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbcompositejsontable3") ; err != nil { + return nil, err + } + if tables.TbCompositeJsonTable3, err = NewTestTbCompositeJsonTable3(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbexcelfromjsonmultirow") ; err != nil { + return nil, err + } + if tables.TbExcelFromJsonMultiRow, err = NewTestTbExcelFromJsonMultiRow(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestscriptableobject") ; err != nil { + return nil, err + } + if tables.TbTestScriptableObject, err = NewTestTbTestScriptableObject(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbtestmapper") ; err != nil { + return nil, err + } + if tables.TbTestMapper, err = NewTestTbTestMapper(buf) ; err != nil { + return nil, err + } + if buf, err = loader("test_tbdefinefromexcel2") ; err != nil { + return nil, err + } + if tables.TbDefineFromExcel2, err = NewTestTbDefineFromExcel2(buf) ; err != nil { + return nil, err + } + return tables, nil +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.BehaviorTree.go b/luban_examples/Projects/Go_json/gen/ai.BehaviorTree.go new file mode 100644 index 00000000..ffd5d279 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.BehaviorTree.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiBehaviorTree struct { + Id int32 + Name string + Desc string + BlackboardId string + Root interface{} +} + +const TypeId_AiBehaviorTree = 159552822 + +func (*AiBehaviorTree) GetTypeId() int32 { + return 159552822 +} + +func NewAiBehaviorTree(_buf map[string]interface{}) (_v *AiBehaviorTree, err error) { + _v = &AiBehaviorTree{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; if _v.BlackboardId, _ok_ = _buf["blackboard_id"].(string); !_ok_ { err = errors.New("blackboard_id error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["root"].(map[string]interface{}); !_ok_ { err = errors.New("root error"); return }; if _v.Root, err = NewAiComposeNode(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.BinaryOperator.go b/luban_examples/Projects/Go_json/gen/ai.BinaryOperator.go new file mode 100644 index 00000000..f10b86a1 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.BinaryOperator.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiBinaryOperator struct { + Oper int32 + Data interface{} +} + +const TypeId_AiBinaryOperator = -979891605 + +func (*AiBinaryOperator) GetTypeId() int32 { + return -979891605 +} + +func NewAiBinaryOperator(_buf map[string]interface{}) (_v *AiBinaryOperator, err error) { + _v = &AiBinaryOperator{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["oper"].(float64); !_ok_ { err = errors.New("oper error"); return }; _v.Oper = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["data"].(map[string]interface{}); !_ok_ { err = errors.New("data error"); return }; if _v.Data, err = NewAiKeyData(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.Blackboard.go b/luban_examples/Projects/Go_json/gen/ai.Blackboard.go new file mode 100644 index 00000000..003bee1c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.Blackboard.go @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiBlackboard struct { + Name string + Desc string + ParentName string + Keys []*AiBlackboardKey +} + +const TypeId_AiBlackboard = 1576193005 + +func (*AiBlackboard) GetTypeId() int32 { + return 1576193005 +} + +func NewAiBlackboard(_buf map[string]interface{}) (_v *AiBlackboard, err error) { + _v = &AiBlackboard{} + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; if _v.ParentName, _ok_ = _buf["parent_name"].(string); !_ok_ { err = errors.New("parent_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["keys"].([]interface{}); !_ok_ { err = errors.New("keys error"); return } + + _v.Keys = make([]*AiBlackboardKey, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *AiBlackboardKey + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiBlackboardKey(_x_); err != nil { return } } + _v.Keys = append(_v.Keys, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.BlackboardKey.go b/luban_examples/Projects/Go_json/gen/ai.BlackboardKey.go new file mode 100644 index 00000000..6108262b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.BlackboardKey.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiBlackboardKey struct { + Name string + Desc string + IsStatic bool + Type int32 + TypeClassName string +} + +const TypeId_AiBlackboardKey = -511559886 + +func (*AiBlackboardKey) GetTypeId() int32 { + return -511559886 +} + +func NewAiBlackboardKey(_buf map[string]interface{}) (_v *AiBlackboardKey, err error) { + _v = &AiBlackboardKey{} + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; if _v.IsStatic, _ok_ = _buf["is_static"].(bool); !_ok_ { err = errors.New("is_static error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) } + { var _ok_ bool; if _v.TypeClassName, _ok_ = _buf["type_class_name"].(string); !_ok_ { err = errors.New("type_class_name error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.BlackboardKeyData.go b/luban_examples/Projects/Go_json/gen/ai.BlackboardKeyData.go new file mode 100644 index 00000000..777625d9 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.BlackboardKeyData.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiBlackboardKeyData struct { + Value string +} + +const TypeId_AiBlackboardKeyData = 1517269500 + +func (*AiBlackboardKeyData) GetTypeId() int32 { + return 1517269500 +} + +func NewAiBlackboardKeyData(_buf map[string]interface{}) (_v *AiBlackboardKeyData, err error) { + _v = &AiBlackboardKeyData{} + { var _ok_ bool; if _v.Value, _ok_ = _buf["value"].(string); !_ok_ { err = errors.New("value error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.ChooseSkill.go b/luban_examples/Projects/Go_json/gen/ai.ChooseSkill.go new file mode 100644 index 00000000..90101618 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.ChooseSkill.go @@ -0,0 +1,68 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiChooseSkill struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + TargetActorKey string + ResultSkillIdKey string +} + +const TypeId_AiChooseSkill = -918812268 + +func (*AiChooseSkill) GetTypeId() int32 { + return -918812268 +} + +func NewAiChooseSkill(_buf map[string]interface{}) (_v *AiChooseSkill, err error) { + _v = &AiChooseSkill{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } } + { var _ok_ bool; if _v.TargetActorKey, _ok_ = _buf["target_actor_key"].(string); !_ok_ { err = errors.New("target_actor_key error"); return } } + { var _ok_ bool; if _v.ResultSkillIdKey, _ok_ = _buf["result_skill_id_key"].(string); !_ok_ { err = errors.New("result_skill_id_key error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.ChooseTarget.go b/luban_examples/Projects/Go_json/gen/ai.ChooseTarget.go new file mode 100644 index 00000000..0f6c2f6e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.ChooseTarget.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiChooseTarget struct { + Id int32 + NodeName string + ResultTargetKey string +} + +const TypeId_AiChooseTarget = 1601247918 + +func (*AiChooseTarget) GetTypeId() int32 { + return 1601247918 +} + +func NewAiChooseTarget(_buf map[string]interface{}) (_v *AiChooseTarget, err error) { + _v = &AiChooseTarget{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; if _v.ResultTargetKey, _ok_ = _buf["result_target_key"].(string); !_ok_ { err = errors.New("result_target_key error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.ComposeNode.go b/luban_examples/Projects/Go_json/gen/ai.ComposeNode.go new file mode 100644 index 00000000..6de816ea --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.ComposeNode.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiComposeNode struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} +} + +const TypeId_AiComposeNode = -70129202 + +func (*AiComposeNode) GetTypeId() int32 { + return -70129202 +} + +func NewAiComposeNode(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "Sequence": _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("aisequence") } else { return _v, nil } + case "Selector": _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("aiselector") } else { return _v, nil } + case "SimpleParallel": _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("aisimpleparallel") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.DebugPrint.go b/luban_examples/Projects/Go_json/gen/ai.DebugPrint.go new file mode 100644 index 00000000..fdc8e519 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.DebugPrint.go @@ -0,0 +1,66 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiDebugPrint struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + Text string +} + +const TypeId_AiDebugPrint = 1357409728 + +func (*AiDebugPrint) GetTypeId() int32 { + return 1357409728 +} + +func NewAiDebugPrint(_buf map[string]interface{}) (_v *AiDebugPrint, err error) { + _v = &AiDebugPrint{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } } + { var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.Decorator.go b/luban_examples/Projects/Go_json/gen/ai.Decorator.go new file mode 100644 index 00000000..0c2567c0 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.Decorator.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiDecorator struct { + Id int32 + NodeName string + FlowAbortMode int32 +} + +const TypeId_AiDecorator = 2017109461 + +func (*AiDecorator) GetTypeId() int32 { + return 2017109461 +} + +func NewAiDecorator(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "UeLoop": _v, err := NewAiUeLoop(_buf); if err != nil { return nil, errors.New("aiueloop") } else { return _v, nil } + case "UeCooldown": _v, err := NewAiUeCooldown(_buf); if err != nil { return nil, errors.New("aiuecooldown") } else { return _v, nil } + case "UeTimeLimit": _v, err := NewAiUeTimeLimit(_buf); if err != nil { return nil, errors.New("aiuetimelimit") } else { return _v, nil } + case "UeBlackboard": _v, err := NewAiUeBlackboard(_buf); if err != nil { return nil, errors.New("aiueblackboard") } else { return _v, nil } + case "UeForceSuccess": _v, err := NewAiUeForceSuccess(_buf); if err != nil { return nil, errors.New("aiueforcesuccess") } else { return _v, nil } + case "IsAtLocation": _v, err := NewAiIsAtLocation(_buf); if err != nil { return nil, errors.New("aiisatlocation") } else { return _v, nil } + case "DistanceLessThan": _v, err := NewAiDistanceLessThan(_buf); if err != nil { return nil, errors.New("aidistancelessthan") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.DistanceLessThan.go b/luban_examples/Projects/Go_json/gen/ai.DistanceLessThan.go new file mode 100644 index 00000000..b96e9862 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.DistanceLessThan.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiDistanceLessThan struct { + Id int32 + NodeName string + FlowAbortMode int32 + Actor1Key string + Actor2Key string + Distance float32 + ReverseResult bool +} + +const TypeId_AiDistanceLessThan = -1207170283 + +func (*AiDistanceLessThan) GetTypeId() int32 { + return -1207170283 +} + +func NewAiDistanceLessThan(_buf map[string]interface{}) (_v *AiDistanceLessThan, err error) { + _v = &AiDistanceLessThan{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) } + { var _ok_ bool; if _v.Actor1Key, _ok_ = _buf["actor1_key"].(string); !_ok_ { err = errors.New("actor1_key error"); return } } + { var _ok_ bool; if _v.Actor2Key, _ok_ = _buf["actor2_key"].(string); !_ok_ { err = errors.New("actor2_key error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["distance"].(float64); !_ok_ { err = errors.New("distance error"); return }; _v.Distance = float32(_tempNum_) } + { var _ok_ bool; if _v.ReverseResult, _ok_ = _buf["reverse_result"].(bool); !_ok_ { err = errors.New("reverse_result error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.EExecutor.go b/luban_examples/Projects/Go_json/gen/ai.EExecutor.go new file mode 100644 index 00000000..0d989068 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.EExecutor.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEExecutor_CLIENT = 0; + AiEExecutor_SERVER = 1; +) + diff --git a/luban_examples/Projects/Go_json/gen/ai.EFinishMode.go b/luban_examples/Projects/Go_json/gen/ai.EFinishMode.go new file mode 100644 index 00000000..454d8b24 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.EFinishMode.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEFinishMode_IMMEDIATE = 0; + AiEFinishMode_DELAYED = 1; +) + diff --git a/luban_examples/Projects/Go_json/gen/ai.EFlowAbortMode.go b/luban_examples/Projects/Go_json/gen/ai.EFlowAbortMode.go new file mode 100644 index 00000000..752872d3 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.EFlowAbortMode.go @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEFlowAbortMode_NONE = 0; + AiEFlowAbortMode_LOWER_PRIORITY = 1; + AiEFlowAbortMode_SELF = 2; + AiEFlowAbortMode_BOTH = 3; +) + diff --git a/luban_examples/Projects/Go_json/gen/ai.EKeyType.go b/luban_examples/Projects/Go_json/gen/ai.EKeyType.go new file mode 100644 index 00000000..9e9f30cd --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.EKeyType.go @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEKeyType_BOOL = 1; + AiEKeyType_INT = 2; + AiEKeyType_FLOAT = 3; + AiEKeyType_STRING = 4; + AiEKeyType_VECTOR = 5; + AiEKeyType_ROTATOR = 6; + AiEKeyType_NAME = 7; + AiEKeyType_CLASS = 8; + AiEKeyType_ENUM = 9; + AiEKeyType_OBJECT = 10; +) + diff --git a/luban_examples/Projects/Go_json/gen/ai.ENotifyObserverMode.go b/luban_examples/Projects/Go_json/gen/ai.ENotifyObserverMode.go new file mode 100644 index 00000000..76aae36e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.ENotifyObserverMode.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiENotifyObserverMode_ON_VALUE_CHANGE = 0; + AiENotifyObserverMode_ON_RESULT_CHANGE = 1; +) + diff --git a/luban_examples/Projects/Go_json/gen/ai.EOperator.go b/luban_examples/Projects/Go_json/gen/ai.EOperator.go new file mode 100644 index 00000000..258928bd --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.EOperator.go @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + AiEOperator_IS_EQUAL_TO = 0; + AiEOperator_IS_NOT_EQUAL_TO = 1; + AiEOperator_IS_LESS_THAN = 2; + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3; + AiEOperator_IS_GREAT_THAN = 4; + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5; + AiEOperator_CONTAINS = 6; + AiEOperator_NOT_CONTAINS = 7; +) + diff --git a/luban_examples/Projects/Go_json/gen/ai.ExecuteTimeStatistic.go b/luban_examples/Projects/Go_json/gen/ai.ExecuteTimeStatistic.go new file mode 100644 index 00000000..f9f3480c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.ExecuteTimeStatistic.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiExecuteTimeStatistic struct { + Id int32 + NodeName string +} + +const TypeId_AiExecuteTimeStatistic = 990693812 + +func (*AiExecuteTimeStatistic) GetTypeId() int32 { + return 990693812 +} + +func NewAiExecuteTimeStatistic(_buf map[string]interface{}) (_v *AiExecuteTimeStatistic, err error) { + _v = &AiExecuteTimeStatistic{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.FloatKeyData.go b/luban_examples/Projects/Go_json/gen/ai.FloatKeyData.go new file mode 100644 index 00000000..5a6a1184 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.FloatKeyData.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiFloatKeyData struct { + Value float32 +} + +const TypeId_AiFloatKeyData = -719747885 + +func (*AiFloatKeyData) GetTypeId() int32 { + return -719747885 +} + +func NewAiFloatKeyData(_buf map[string]interface{}) (_v *AiFloatKeyData, err error) { + _v = &AiFloatKeyData{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.FlowNode.go b/luban_examples/Projects/Go_json/gen/ai.FlowNode.go new file mode 100644 index 00000000..2c210d95 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.FlowNode.go @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiFlowNode struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} +} + +const TypeId_AiFlowNode = -1109240970 + +func (*AiFlowNode) GetTypeId() int32 { + return -1109240970 +} + +func NewAiFlowNode(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "Sequence": _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("aisequence") } else { return _v, nil } + case "Selector": _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("aiselector") } else { return _v, nil } + case "SimpleParallel": _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("aisimpleparallel") } else { return _v, nil } + case "UeWait": _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("aiuewait") } else { return _v, nil } + case "UeWaitBlackboardTime": _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("aiuewaitblackboardtime") } else { return _v, nil } + case "MoveToTarget": _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("aimovetotarget") } else { return _v, nil } + case "ChooseSkill": _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("aichooseskill") } else { return _v, nil } + case "MoveToRandomLocation": _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("aimovetorandomlocation") } else { return _v, nil } + case "MoveToLocation": _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("aimovetolocation") } else { return _v, nil } + case "DebugPrint": _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("aidebugprint") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.GetOwnerPlayer.go b/luban_examples/Projects/Go_json/gen/ai.GetOwnerPlayer.go new file mode 100644 index 00000000..765adf68 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.GetOwnerPlayer.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiGetOwnerPlayer struct { + Id int32 + NodeName string + PlayerActorKey string +} + +const TypeId_AiGetOwnerPlayer = -999247644 + +func (*AiGetOwnerPlayer) GetTypeId() int32 { + return -999247644 +} + +func NewAiGetOwnerPlayer(_buf map[string]interface{}) (_v *AiGetOwnerPlayer, err error) { + _v = &AiGetOwnerPlayer{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; if _v.PlayerActorKey, _ok_ = _buf["player_actor_key"].(string); !_ok_ { err = errors.New("player_actor_key error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.IntKeyData.go b/luban_examples/Projects/Go_json/gen/ai.IntKeyData.go new file mode 100644 index 00000000..05755caf --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.IntKeyData.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiIntKeyData struct { + Value int32 +} + +const TypeId_AiIntKeyData = -342751904 + +func (*AiIntKeyData) GetTypeId() int32 { + return -342751904 +} + +func NewAiIntKeyData(_buf map[string]interface{}) (_v *AiIntKeyData, err error) { + _v = &AiIntKeyData{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.IsAtLocation.go b/luban_examples/Projects/Go_json/gen/ai.IsAtLocation.go new file mode 100644 index 00000000..16422b70 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.IsAtLocation.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiIsAtLocation struct { + Id int32 + NodeName string + FlowAbortMode int32 + AcceptableRadius float32 + KeyboardKey string + InverseCondition bool +} + +const TypeId_AiIsAtLocation = 1255972344 + +func (*AiIsAtLocation) GetTypeId() int32 { + return 1255972344 +} + +func NewAiIsAtLocation(_buf map[string]interface{}) (_v *AiIsAtLocation, err error) { + _v = &AiIsAtLocation{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["acceptable_radius"].(float64); !_ok_ { err = errors.New("acceptable_radius error"); return }; _v.AcceptableRadius = float32(_tempNum_) } + { var _ok_ bool; if _v.KeyboardKey, _ok_ = _buf["keyboard_key"].(string); !_ok_ { err = errors.New("keyboard_key error"); return } } + { var _ok_ bool; if _v.InverseCondition, _ok_ = _buf["inverse_condition"].(bool); !_ok_ { err = errors.New("inverse_condition error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.IsNotSet.go b/luban_examples/Projects/Go_json/gen/ai.IsNotSet.go new file mode 100644 index 00000000..8f1567ec --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.IsNotSet.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + + + +type AiIsNotSet struct { +} + +const TypeId_AiIsNotSet = 790736255 + +func (*AiIsNotSet) GetTypeId() int32 { + return 790736255 +} + +func NewAiIsNotSet(_buf map[string]interface{}) (_v *AiIsNotSet, err error) { + _v = &AiIsNotSet{} + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.IsSet.go b/luban_examples/Projects/Go_json/gen/ai.IsSet.go new file mode 100644 index 00000000..d11857bd --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.IsSet.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + + + +type AiIsSet struct { +} + +const TypeId_AiIsSet = 1635350898 + +func (*AiIsSet) GetTypeId() int32 { + return 1635350898 +} + +func NewAiIsSet(_buf map[string]interface{}) (_v *AiIsSet, err error) { + _v = &AiIsSet{} + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.KeepFaceTarget.go b/luban_examples/Projects/Go_json/gen/ai.KeepFaceTarget.go new file mode 100644 index 00000000..1ba92b83 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.KeepFaceTarget.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiKeepFaceTarget struct { + Id int32 + NodeName string + TargetActorKey string +} + +const TypeId_AiKeepFaceTarget = 1195270745 + +func (*AiKeepFaceTarget) GetTypeId() int32 { + return 1195270745 +} + +func NewAiKeepFaceTarget(_buf map[string]interface{}) (_v *AiKeepFaceTarget, err error) { + _v = &AiKeepFaceTarget{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; if _v.TargetActorKey, _ok_ = _buf["target_actor_key"].(string); !_ok_ { err = errors.New("target_actor_key error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.KeyData.go b/luban_examples/Projects/Go_json/gen/ai.KeyData.go new file mode 100644 index 00000000..809680dd --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.KeyData.go @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiKeyData struct { +} + +const TypeId_AiKeyData = 1022478019 + +func (*AiKeyData) GetTypeId() int32 { + return 1022478019 +} + +func NewAiKeyData(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "FloatKeyData": _v, err := NewAiFloatKeyData(_buf); if err != nil { return nil, errors.New("aifloatkeydata") } else { return _v, nil } + case "IntKeyData": _v, err := NewAiIntKeyData(_buf); if err != nil { return nil, errors.New("aiintkeydata") } else { return _v, nil } + case "StringKeyData": _v, err := NewAiStringKeyData(_buf); if err != nil { return nil, errors.New("aistringkeydata") } else { return _v, nil } + case "BlackboardKeyData": _v, err := NewAiBlackboardKeyData(_buf); if err != nil { return nil, errors.New("aiblackboardkeydata") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.KeyQueryOperator.go b/luban_examples/Projects/Go_json/gen/ai.KeyQueryOperator.go new file mode 100644 index 00000000..80b4a307 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.KeyQueryOperator.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiKeyQueryOperator struct { +} + +const TypeId_AiKeyQueryOperator = -738364781 + +func (*AiKeyQueryOperator) GetTypeId() int32 { + return -738364781 +} + +func NewAiKeyQueryOperator(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "IsSet": _v, err := NewAiIsSet(_buf); if err != nil { return nil, errors.New("aiisset") } else { return _v, nil } + case "IsNotSet": _v, err := NewAiIsNotSet(_buf); if err != nil { return nil, errors.New("aiisnotset") } else { return _v, nil } + case "BinaryOperator": _v, err := NewAiBinaryOperator(_buf); if err != nil { return nil, errors.New("aibinaryoperator") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.MoveToLocation.go b/luban_examples/Projects/Go_json/gen/ai.MoveToLocation.go new file mode 100644 index 00000000..194036af --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.MoveToLocation.go @@ -0,0 +1,66 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiMoveToLocation struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + AcceptableRadius float32 +} + +const TypeId_AiMoveToLocation = -969953113 + +func (*AiMoveToLocation) GetTypeId() int32 { + return -969953113 +} + +func NewAiMoveToLocation(_buf map[string]interface{}) (_v *AiMoveToLocation, err error) { + _v = &AiMoveToLocation{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["acceptable_radius"].(float64); !_ok_ { err = errors.New("acceptable_radius error"); return }; _v.AcceptableRadius = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.MoveToRandomLocation.go b/luban_examples/Projects/Go_json/gen/ai.MoveToRandomLocation.go new file mode 100644 index 00000000..bb16fdd8 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.MoveToRandomLocation.go @@ -0,0 +1,68 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiMoveToRandomLocation struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + OriginPositionKey string + Radius float32 +} + +const TypeId_AiMoveToRandomLocation = -2140042998 + +func (*AiMoveToRandomLocation) GetTypeId() int32 { + return -2140042998 +} + +func NewAiMoveToRandomLocation(_buf map[string]interface{}) (_v *AiMoveToRandomLocation, err error) { + _v = &AiMoveToRandomLocation{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } } + { var _ok_ bool; if _v.OriginPositionKey, _ok_ = _buf["origin_position_key"].(string); !_ok_ { err = errors.New("origin_position_key error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["radius"].(float64); !_ok_ { err = errors.New("radius error"); return }; _v.Radius = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.MoveToTarget.go b/luban_examples/Projects/Go_json/gen/ai.MoveToTarget.go new file mode 100644 index 00000000..eedd5d4d --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.MoveToTarget.go @@ -0,0 +1,68 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiMoveToTarget struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + TargetActorKey string + AcceptableRadius float32 +} + +const TypeId_AiMoveToTarget = 514987779 + +func (*AiMoveToTarget) GetTypeId() int32 { + return 514987779 +} + +func NewAiMoveToTarget(_buf map[string]interface{}) (_v *AiMoveToTarget, err error) { + _v = &AiMoveToTarget{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } } + { var _ok_ bool; if _v.TargetActorKey, _ok_ = _buf["target_actor_key"].(string); !_ok_ { err = errors.New("target_actor_key error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["acceptable_radius"].(float64); !_ok_ { err = errors.New("acceptable_radius error"); return }; _v.AcceptableRadius = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.Node.go b/luban_examples/Projects/Go_json/gen/ai.Node.go new file mode 100644 index 00000000..0fe598de --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.Node.go @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiNode struct { + Id int32 + NodeName string +} + +const TypeId_AiNode = -1055479768 + +func (*AiNode) GetTypeId() int32 { + return -1055479768 +} + +func NewAiNode(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "UeSetDefaultFocus": _v, err := NewAiUeSetDefaultFocus(_buf); if err != nil { return nil, errors.New("aiuesetdefaultfocus") } else { return _v, nil } + case "ExecuteTimeStatistic": _v, err := NewAiExecuteTimeStatistic(_buf); if err != nil { return nil, errors.New("aiexecutetimestatistic") } else { return _v, nil } + case "ChooseTarget": _v, err := NewAiChooseTarget(_buf); if err != nil { return nil, errors.New("aichoosetarget") } else { return _v, nil } + case "KeepFaceTarget": _v, err := NewAiKeepFaceTarget(_buf); if err != nil { return nil, errors.New("aikeepfacetarget") } else { return _v, nil } + case "GetOwnerPlayer": _v, err := NewAiGetOwnerPlayer(_buf); if err != nil { return nil, errors.New("aigetownerplayer") } else { return _v, nil } + case "UpdateDailyBehaviorProps": _v, err := NewAiUpdateDailyBehaviorProps(_buf); if err != nil { return nil, errors.New("aiupdatedailybehaviorprops") } else { return _v, nil } + case "UeLoop": _v, err := NewAiUeLoop(_buf); if err != nil { return nil, errors.New("aiueloop") } else { return _v, nil } + case "UeCooldown": _v, err := NewAiUeCooldown(_buf); if err != nil { return nil, errors.New("aiuecooldown") } else { return _v, nil } + case "UeTimeLimit": _v, err := NewAiUeTimeLimit(_buf); if err != nil { return nil, errors.New("aiuetimelimit") } else { return _v, nil } + case "UeBlackboard": _v, err := NewAiUeBlackboard(_buf); if err != nil { return nil, errors.New("aiueblackboard") } else { return _v, nil } + case "UeForceSuccess": _v, err := NewAiUeForceSuccess(_buf); if err != nil { return nil, errors.New("aiueforcesuccess") } else { return _v, nil } + case "IsAtLocation": _v, err := NewAiIsAtLocation(_buf); if err != nil { return nil, errors.New("aiisatlocation") } else { return _v, nil } + case "DistanceLessThan": _v, err := NewAiDistanceLessThan(_buf); if err != nil { return nil, errors.New("aidistancelessthan") } else { return _v, nil } + case "Sequence": _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("aisequence") } else { return _v, nil } + case "Selector": _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("aiselector") } else { return _v, nil } + case "SimpleParallel": _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("aisimpleparallel") } else { return _v, nil } + case "UeWait": _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("aiuewait") } else { return _v, nil } + case "UeWaitBlackboardTime": _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("aiuewaitblackboardtime") } else { return _v, nil } + case "MoveToTarget": _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("aimovetotarget") } else { return _v, nil } + case "ChooseSkill": _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("aichooseskill") } else { return _v, nil } + case "MoveToRandomLocation": _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("aimovetorandomlocation") } else { return _v, nil } + case "MoveToLocation": _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("aimovetolocation") } else { return _v, nil } + case "DebugPrint": _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("aidebugprint") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.Selector.go b/luban_examples/Projects/Go_json/gen/ai.Selector.go new file mode 100644 index 00000000..f8a694dc --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.Selector.go @@ -0,0 +1,77 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiSelector struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + Children []interface{} +} + +const TypeId_AiSelector = -1946981627 + +func (*AiSelector) GetTypeId() int32 { + return -1946981627 +} + +func NewAiSelector(_buf map[string]interface{}) (_v *AiSelector, err error) { + _v = &AiSelector{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["children"].([]interface{}); !_ok_ { err = errors.New("children error"); return } + + _v.Children = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiFlowNode(_x_); err != nil { return } } + _v.Children = append(_v.Children, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.Sequence.go b/luban_examples/Projects/Go_json/gen/ai.Sequence.go new file mode 100644 index 00000000..5973ba1b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.Sequence.go @@ -0,0 +1,77 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiSequence struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + Children []interface{} +} + +const TypeId_AiSequence = -1789006105 + +func (*AiSequence) GetTypeId() int32 { + return -1789006105 +} + +func NewAiSequence(_buf map[string]interface{}) (_v *AiSequence, err error) { + _v = &AiSequence{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["children"].([]interface{}); !_ok_ { err = errors.New("children error"); return } + + _v.Children = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiFlowNode(_x_); err != nil { return } } + _v.Children = append(_v.Children, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.Service.go b/luban_examples/Projects/Go_json/gen/ai.Service.go new file mode 100644 index 00000000..a1cb7b0e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.Service.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiService struct { + Id int32 + NodeName string +} + +const TypeId_AiService = -472395057 + +func (*AiService) GetTypeId() int32 { + return -472395057 +} + +func NewAiService(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "UeSetDefaultFocus": _v, err := NewAiUeSetDefaultFocus(_buf); if err != nil { return nil, errors.New("aiuesetdefaultfocus") } else { return _v, nil } + case "ExecuteTimeStatistic": _v, err := NewAiExecuteTimeStatistic(_buf); if err != nil { return nil, errors.New("aiexecutetimestatistic") } else { return _v, nil } + case "ChooseTarget": _v, err := NewAiChooseTarget(_buf); if err != nil { return nil, errors.New("aichoosetarget") } else { return _v, nil } + case "KeepFaceTarget": _v, err := NewAiKeepFaceTarget(_buf); if err != nil { return nil, errors.New("aikeepfacetarget") } else { return _v, nil } + case "GetOwnerPlayer": _v, err := NewAiGetOwnerPlayer(_buf); if err != nil { return nil, errors.New("aigetownerplayer") } else { return _v, nil } + case "UpdateDailyBehaviorProps": _v, err := NewAiUpdateDailyBehaviorProps(_buf); if err != nil { return nil, errors.New("aiupdatedailybehaviorprops") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.SimpleParallel.go b/luban_examples/Projects/Go_json/gen/ai.SimpleParallel.go new file mode 100644 index 00000000..6b88826b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.SimpleParallel.go @@ -0,0 +1,68 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiSimpleParallel struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + FinishMode int32 + MainTask interface{} + BackgroundNode interface{} +} + +const TypeId_AiSimpleParallel = -1952582529 + +func (*AiSimpleParallel) GetTypeId() int32 { + return -1952582529 +} + +func NewAiSimpleParallel(_buf map[string]interface{}) (_v *AiSimpleParallel, err error) { + _v = &AiSimpleParallel{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["finish_mode"].(float64); !_ok_ { err = errors.New("finish_mode error"); return }; _v.FinishMode = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["main_task"].(map[string]interface{}); !_ok_ { err = errors.New("main_task error"); return }; if _v.MainTask, err = NewAiTask(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["background_node"].(map[string]interface{}); !_ok_ { err = errors.New("background_node error"); return }; if _v.BackgroundNode, err = NewAiFlowNode(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.StringKeyData.go b/luban_examples/Projects/Go_json/gen/ai.StringKeyData.go new file mode 100644 index 00000000..c3c7f3ff --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.StringKeyData.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiStringKeyData struct { + Value string +} + +const TypeId_AiStringKeyData = -307888654 + +func (*AiStringKeyData) GetTypeId() int32 { + return -307888654 +} + +func NewAiStringKeyData(_buf map[string]interface{}) (_v *AiStringKeyData, err error) { + _v = &AiStringKeyData{} + { var _ok_ bool; if _v.Value, _ok_ = _buf["value"].(string); !_ok_ { err = errors.New("value error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.Task.go b/luban_examples/Projects/Go_json/gen/ai.Task.go new file mode 100644 index 00000000..bd670b93 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.Task.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiTask struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool +} + +const TypeId_AiTask = -1055314005 + +func (*AiTask) GetTypeId() int32 { + return -1055314005 +} + +func NewAiTask(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "UeWait": _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("aiuewait") } else { return _v, nil } + case "UeWaitBlackboardTime": _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("aiuewaitblackboardtime") } else { return _v, nil } + case "MoveToTarget": _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("aimovetotarget") } else { return _v, nil } + case "ChooseSkill": _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("aichooseskill") } else { return _v, nil } + case "MoveToRandomLocation": _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("aimovetorandomlocation") } else { return _v, nil } + case "MoveToLocation": _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("aimovetolocation") } else { return _v, nil } + case "DebugPrint": _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("aidebugprint") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.TbBehaviorTree.go b/luban_examples/Projects/Go_json/gen/ai.TbBehaviorTree.go new file mode 100644 index 00000000..9a3d2cff --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.TbBehaviorTree.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type AiTbBehaviorTree struct { + _dataMap map[int32]*AiBehaviorTree + _dataList []*AiBehaviorTree +} + +func NewAiTbBehaviorTree(_buf []map[string]interface{}) (*AiTbBehaviorTree, error) { + _dataList := make([]*AiBehaviorTree, 0, len(_buf)) + dataMap := make(map[int32]*AiBehaviorTree) + + for _, _ele_ := range _buf { + if _v, err2 := NewAiBehaviorTree(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &AiTbBehaviorTree{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *AiTbBehaviorTree) GetDataMap() map[int32]*AiBehaviorTree { + return table._dataMap +} + +func (table *AiTbBehaviorTree) GetDataList() []*AiBehaviorTree { + return table._dataList +} + +func (table *AiTbBehaviorTree) Get(key int32) *AiBehaviorTree { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.TbBlackboard.go b/luban_examples/Projects/Go_json/gen/ai.TbBlackboard.go new file mode 100644 index 00000000..f20f41bf --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.TbBlackboard.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type AiTbBlackboard struct { + _dataMap map[string]*AiBlackboard + _dataList []*AiBlackboard +} + +func NewAiTbBlackboard(_buf []map[string]interface{}) (*AiTbBlackboard, error) { + _dataList := make([]*AiBlackboard, 0, len(_buf)) + dataMap := make(map[string]*AiBlackboard) + + for _, _ele_ := range _buf { + if _v, err2 := NewAiBlackboard(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Name] = _v + } + } + return &AiTbBlackboard{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *AiTbBlackboard) GetDataMap() map[string]*AiBlackboard { + return table._dataMap +} + +func (table *AiTbBlackboard) GetDataList() []*AiBlackboard { + return table._dataList +} + +func (table *AiTbBlackboard) Get(key string) *AiBlackboard { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeBlackboard.go b/luban_examples/Projects/Go_json/gen/ai.UeBlackboard.go new file mode 100644 index 00000000..55d395f2 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeBlackboard.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeBlackboard struct { + Id int32 + NodeName string + FlowAbortMode int32 + NotifyObserver int32 + BlackboardKey string + KeyQuery interface{} +} + +const TypeId_AiUeBlackboard = -315297507 + +func (*AiUeBlackboard) GetTypeId() int32 { + return -315297507 +} + +func NewAiUeBlackboard(_buf map[string]interface{}) (_v *AiUeBlackboard, err error) { + _v = &AiUeBlackboard{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["notify_observer"].(float64); !_ok_ { err = errors.New("notify_observer error"); return }; _v.NotifyObserver = int32(_tempNum_) } + { var _ok_ bool; if _v.BlackboardKey, _ok_ = _buf["blackboard_key"].(string); !_ok_ { err = errors.New("blackboard_key error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["key_query"].(map[string]interface{}); !_ok_ { err = errors.New("key_query error"); return }; if _v.KeyQuery, err = NewAiKeyQueryOperator(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeCooldown.go b/luban_examples/Projects/Go_json/gen/ai.UeCooldown.go new file mode 100644 index 00000000..ca68b67c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeCooldown.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeCooldown struct { + Id int32 + NodeName string + FlowAbortMode int32 + CooldownTime float32 +} + +const TypeId_AiUeCooldown = -951439423 + +func (*AiUeCooldown) GetTypeId() int32 { + return -951439423 +} + +func NewAiUeCooldown(_buf map[string]interface{}) (_v *AiUeCooldown, err error) { + _v = &AiUeCooldown{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["cooldown_time"].(float64); !_ok_ { err = errors.New("cooldown_time error"); return }; _v.CooldownTime = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeForceSuccess.go b/luban_examples/Projects/Go_json/gen/ai.UeForceSuccess.go new file mode 100644 index 00000000..07862e87 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeForceSuccess.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeForceSuccess struct { + Id int32 + NodeName string + FlowAbortMode int32 +} + +const TypeId_AiUeForceSuccess = 195054574 + +func (*AiUeForceSuccess) GetTypeId() int32 { + return 195054574 +} + +func NewAiUeForceSuccess(_buf map[string]interface{}) (_v *AiUeForceSuccess, err error) { + _v = &AiUeForceSuccess{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeLoop.go b/luban_examples/Projects/Go_json/gen/ai.UeLoop.go new file mode 100644 index 00000000..f17b75d1 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeLoop.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeLoop struct { + Id int32 + NodeName string + FlowAbortMode int32 + NumLoops int32 + InfiniteLoop bool + InfiniteLoopTimeoutTime float32 +} + +const TypeId_AiUeLoop = -513308166 + +func (*AiUeLoop) GetTypeId() int32 { + return -513308166 +} + +func NewAiUeLoop(_buf map[string]interface{}) (_v *AiUeLoop, err error) { + _v = &AiUeLoop{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num_loops"].(float64); !_ok_ { err = errors.New("num_loops error"); return }; _v.NumLoops = int32(_tempNum_) } + { var _ok_ bool; if _v.InfiniteLoop, _ok_ = _buf["infinite_loop"].(bool); !_ok_ { err = errors.New("infinite_loop error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["infinite_loop_timeout_time"].(float64); !_ok_ { err = errors.New("infinite_loop_timeout_time error"); return }; _v.InfiniteLoopTimeoutTime = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeSetDefaultFocus.go b/luban_examples/Projects/Go_json/gen/ai.UeSetDefaultFocus.go new file mode 100644 index 00000000..a13f1158 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeSetDefaultFocus.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeSetDefaultFocus struct { + Id int32 + NodeName string + KeyboardKey string +} + +const TypeId_AiUeSetDefaultFocus = 1812449155 + +func (*AiUeSetDefaultFocus) GetTypeId() int32 { + return 1812449155 +} + +func NewAiUeSetDefaultFocus(_buf map[string]interface{}) (_v *AiUeSetDefaultFocus, err error) { + _v = &AiUeSetDefaultFocus{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; if _v.KeyboardKey, _ok_ = _buf["keyboard_key"].(string); !_ok_ { err = errors.New("keyboard_key error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeTimeLimit.go b/luban_examples/Projects/Go_json/gen/ai.UeTimeLimit.go new file mode 100644 index 00000000..23efe7e0 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeTimeLimit.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeTimeLimit struct { + Id int32 + NodeName string + FlowAbortMode int32 + LimitTime float32 +} + +const TypeId_AiUeTimeLimit = 338469720 + +func (*AiUeTimeLimit) GetTypeId() int32 { + return 338469720 +} + +func NewAiUeTimeLimit(_buf map[string]interface{}) (_v *AiUeTimeLimit, err error) { + _v = &AiUeTimeLimit{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["limit_time"].(float64); !_ok_ { err = errors.New("limit_time error"); return }; _v.LimitTime = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeWait.go b/luban_examples/Projects/Go_json/gen/ai.UeWait.go new file mode 100644 index 00000000..f8307f47 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeWait.go @@ -0,0 +1,68 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeWait struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + WaitTime float32 + RandomDeviation float32 +} + +const TypeId_AiUeWait = -512994101 + +func (*AiUeWait) GetTypeId() int32 { + return -512994101 +} + +func NewAiUeWait(_buf map[string]interface{}) (_v *AiUeWait, err error) { + _v = &AiUeWait{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["wait_time"].(float64); !_ok_ { err = errors.New("wait_time error"); return }; _v.WaitTime = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["random_deviation"].(float64); !_ok_ { err = errors.New("random_deviation error"); return }; _v.RandomDeviation = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UeWaitBlackboardTime.go b/luban_examples/Projects/Go_json/gen/ai.UeWaitBlackboardTime.go new file mode 100644 index 00000000..6fd4b6e5 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UeWaitBlackboardTime.go @@ -0,0 +1,66 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUeWaitBlackboardTime struct { + Id int32 + NodeName string + Decorators []interface{} + Services []interface{} + IgnoreRestartSelf bool + BlackboardKey string +} + +const TypeId_AiUeWaitBlackboardTime = 1215378271 + +func (*AiUeWaitBlackboardTime) GetTypeId() int32 { + return 1215378271 +} + +func NewAiUeWaitBlackboardTime(_buf map[string]interface{}) (_v *AiUeWaitBlackboardTime, err error) { + _v = &AiUeWaitBlackboardTime{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return } + + _v.Decorators = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiDecorator(_x_); err != nil { return } } + _v.Decorators = append(_v.Decorators, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return } + + _v.Services = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewAiService(_x_); err != nil { return } } + _v.Services = append(_v.Services, _list_v_) + } + } + + { var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } } + { var _ok_ bool; if _v.BlackboardKey, _ok_ = _buf["blackboard_key"].(string); !_ok_ { err = errors.New("blackboard_key error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/ai.UpdateDailyBehaviorProps.go b/luban_examples/Projects/Go_json/gen/ai.UpdateDailyBehaviorProps.go new file mode 100644 index 00000000..0682fb84 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/ai.UpdateDailyBehaviorProps.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type AiUpdateDailyBehaviorProps struct { + Id int32 + NodeName string + SatietyKey string + EnergyKey string + MoodKey string + SatietyLowerThresholdKey string + SatietyUpperThresholdKey string + EnergyLowerThresholdKey string + EnergyUpperThresholdKey string + MoodLowerThresholdKey string + MoodUpperThresholdKey string +} + +const TypeId_AiUpdateDailyBehaviorProps = -61887372 + +func (*AiUpdateDailyBehaviorProps) GetTypeId() int32 { + return -61887372 +} + +func NewAiUpdateDailyBehaviorProps(_buf map[string]interface{}) (_v *AiUpdateDailyBehaviorProps, err error) { + _v = &AiUpdateDailyBehaviorProps{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } } + { var _ok_ bool; if _v.SatietyKey, _ok_ = _buf["satiety_key"].(string); !_ok_ { err = errors.New("satiety_key error"); return } } + { var _ok_ bool; if _v.EnergyKey, _ok_ = _buf["energy_key"].(string); !_ok_ { err = errors.New("energy_key error"); return } } + { var _ok_ bool; if _v.MoodKey, _ok_ = _buf["mood_key"].(string); !_ok_ { err = errors.New("mood_key error"); return } } + { var _ok_ bool; if _v.SatietyLowerThresholdKey, _ok_ = _buf["satiety_lower_threshold_key"].(string); !_ok_ { err = errors.New("satiety_lower_threshold_key error"); return } } + { var _ok_ bool; if _v.SatietyUpperThresholdKey, _ok_ = _buf["satiety_upper_threshold_key"].(string); !_ok_ { err = errors.New("satiety_upper_threshold_key error"); return } } + { var _ok_ bool; if _v.EnergyLowerThresholdKey, _ok_ = _buf["energy_lower_threshold_key"].(string); !_ok_ { err = errors.New("energy_lower_threshold_key error"); return } } + { var _ok_ bool; if _v.EnergyUpperThresholdKey, _ok_ = _buf["energy_upper_threshold_key"].(string); !_ok_ { err = errors.New("energy_upper_threshold_key error"); return } } + { var _ok_ bool; if _v.MoodLowerThresholdKey, _ok_ = _buf["mood_lower_threshold_key"].(string); !_ok_ { err = errors.New("mood_lower_threshold_key error"); return } } + { var _ok_ bool; if _v.MoodUpperThresholdKey, _ok_ = _buf["mood_upper_threshold_key"].(string); !_ok_ { err = errors.New("mood_upper_threshold_key error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/common.EBoolOperator.go b/luban_examples/Projects/Go_json/gen/common.EBoolOperator.go new file mode 100644 index 00000000..b347ea1a --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/common.EBoolOperator.go @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + CommonEBoolOperator_AND = 0; + CommonEBoolOperator_OR = 1; +) + diff --git a/luban_examples/Projects/Go_json/gen/common.GlobalConfig.go b/luban_examples/Projects/Go_json/gen/common.GlobalConfig.go new file mode 100644 index 00000000..33a01749 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/common.GlobalConfig.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type CommonGlobalConfig struct { + X1 int32 + X2 int32 + X3 int32 + X4 int32 + X5 int32 + X6 int32 + X7 []int32 +} + +const TypeId_CommonGlobalConfig = -848234488 + +func (*CommonGlobalConfig) GetTypeId() int32 { + return -848234488 +} + +func NewCommonGlobalConfig(_buf map[string]interface{}) (_v *CommonGlobalConfig, err error) { + _v = &CommonGlobalConfig{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x7"].([]interface{}); !_ok_ { err = errors.New("x7 error"); return } + + _v.X7 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.X7 = append(_v.X7, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/common.TbGlobalConfig.go b/luban_examples/Projects/Go_json/gen/common.TbGlobalConfig.go new file mode 100644 index 00000000..5fab156e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/common.TbGlobalConfig.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + + +import "errors" + +type CommonTbGlobalConfig struct { + _data *CommonGlobalConfig +} + +func NewCommonTbGlobalConfig(_buf []map[string]interface{}) (*CommonTbGlobalConfig, error) { + if len(_buf) != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewCommonGlobalConfig(_buf[0]); err2 != nil { + return nil, err2 + } else { + return &CommonTbGlobalConfig{_data:_v}, nil + } + } +} + +func (table *CommonTbGlobalConfig) Get() *CommonGlobalConfig { + return table._data +} + + diff --git a/luban_examples/Projects/Go_json/gen/item.EClothersStarQualityType.go b/luban_examples/Projects/Go_json/gen/item.EClothersStarQualityType.go new file mode 100644 index 00000000..0e88af4b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EClothersStarQualityType.go @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 一星 + */ + ItemEClothersStarQualityType_ONE = 1; + /** + * 二星 + */ + ItemEClothersStarQualityType_TWO = 2; + /** + * 三星 + */ + ItemEClothersStarQualityType_THREE = 3; + /** + * 四星 + */ + ItemEClothersStarQualityType_FOUR = 4; + /** + * 五星 + */ + ItemEClothersStarQualityType_FIVE = 5; + /** + * 六星 + */ + ItemEClothersStarQualityType_SIX = 6; + /** + * 七星 + */ + ItemEClothersStarQualityType_SEVEN = 7; + /** + * 八星 + */ + ItemEClothersStarQualityType_EIGHT = 8; + /** + * 九星 + */ + ItemEClothersStarQualityType_NINE = 9; + /** + * 十星 + */ + ItemEClothersStarQualityType_TEN = 10; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.EClothersTag.go b/luban_examples/Projects/Go_json/gen/item.EClothersTag.go new file mode 100644 index 00000000..11b46eff --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EClothersTag.go @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 防晒 + */ + ItemEClothersTag_FANG_SHAI = 1; + /** + * 舞者 + */ + ItemEClothersTag_WU_ZHE = 2; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.EClothesHidePartType.go b/luban_examples/Projects/Go_json/gen/item.EClothesHidePartType.go new file mode 100644 index 00000000..4cd7db31 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EClothesHidePartType.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 胸部 + */ + ItemEClothesHidePartType_CHEST = 0; + /** + * 手 + */ + ItemEClothesHidePartType_HEAD = 1; + /** + * 脊柱上 + */ + ItemEClothesHidePartType_SPINE_UPPER = 2; + /** + * 脊柱下 + */ + ItemEClothesHidePartType_SPINE_LOWER = 3; + /** + * 臀部 + */ + ItemEClothesHidePartType_HIP = 4; + /** + * 腿上 + */ + ItemEClothesHidePartType_LEG_UPPER = 5; + /** + * 腿中 + */ + ItemEClothesHidePartType_LEG_MIDDLE = 6; + /** + * 腿下 + */ + ItemEClothesHidePartType_LEG_LOWER = 7; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.EClothesPropertyType.go b/luban_examples/Projects/Go_json/gen/item.EClothesPropertyType.go new file mode 100644 index 00000000..420031eb --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EClothesPropertyType.go @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 简约 + */ + ItemEClothesPropertyType_JIAN_YUE = 1; + /** + * 华丽 + */ + ItemEClothesPropertyType_HUA_LI = 2; + /** + * 可爱 + */ + ItemEClothesPropertyType_KE_AI = 3; + /** + * 成熟 + */ + ItemEClothesPropertyType_CHENG_SHU = 4; + /** + * 活泼 + */ + ItemEClothesPropertyType_HUO_PO = 5; + /** + * 优雅 + */ + ItemEClothesPropertyType_YOU_YA = 6; + /** + * 清纯 + */ + ItemEClothesPropertyType_QING_CHUN = 7; + /** + * 性感 + */ + ItemEClothesPropertyType_XING_GAN = 8; + /** + * 清凉 + */ + ItemEClothesPropertyType_QING_LIANG = 9; + /** + * 保暖 + */ + ItemEClothesPropertyType_BAO_NUAN = 10; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.ECurrencyType.go b/luban_examples/Projects/Go_json/gen/item.ECurrencyType.go new file mode 100644 index 00000000..9eb9e092 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.ECurrencyType.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 钻石 + */ + ItemECurrencyType_DIAMOND = 1; + /** + * 金币 + */ + ItemECurrencyType_GOLD = 2; + /** + * 银币 + */ + ItemECurrencyType_SILVER = 3; + /** + * 经验 + */ + ItemECurrencyType_EXP = 4; + /** + * 能量点 + */ + ItemECurrencyType_POWER_POINT = 5; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.EItemQuality.go b/luban_examples/Projects/Go_json/gen/item.EItemQuality.go new file mode 100644 index 00000000..4bdd909c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EItemQuality.go @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +/** + * 道具品质 + */ +const ( + /** + * 白 + */ + ItemEItemQuality_WHITE = 0; + /** + * 绿 + */ + ItemEItemQuality_GREEN = 1; + /** + * 蓝 + */ + ItemEItemQuality_BLUE = 2; + /** + * 紫 + */ + ItemEItemQuality_PURPLE = 3; + /** + * 金 + */ + ItemEItemQuality_GOLDEN = 4; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.EMajorType.go b/luban_examples/Projects/Go_json/gen/item.EMajorType.go new file mode 100644 index 00000000..499e8cad --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EMajorType.go @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 货币 + */ + ItemEMajorType_CURRENCY = 1; + /** + * 服装 + */ + ItemEMajorType_CLOTH = 2; + /** + * 任务 + */ + ItemEMajorType_QUEST = 3; + /** + * 消耗品 + */ + ItemEMajorType_CONSUMABLES = 4; + /** + * 宝箱 + */ + ItemEMajorType_TREASURE_BOX = 5; + /** + * 成就和称谓 + */ + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6; + /** + * 头像框 + */ + ItemEMajorType_HEAD_FRAME = 7; + /** + * 语音 + */ + ItemEMajorType_VOICE = 8; + /** + * 动作 + */ + ItemEMajorType_ACTION = 9; + /** + * 扩容道具 + */ + ItemEMajorType_EXPANSION = 10; + /** + * 制作材料 + */ + ItemEMajorType_MATERIAL = 11; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.EMinorType.go b/luban_examples/Projects/Go_json/gen/item.EMinorType.go new file mode 100644 index 00000000..89daddc9 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EMinorType.go @@ -0,0 +1,210 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 钻石 + */ + ItemEMinorType_DIAMOND = 101; + /** + * 金币 + */ + ItemEMinorType_GOLD = 102; + /** + * 银币 + */ + ItemEMinorType_SILVER = 103; + /** + * 经验 + */ + ItemEMinorType_EXP = 104; + /** + * 能量点 + */ + ItemEMinorType_POWER_POINT = 105; + /** + * 发型 + */ + ItemEMinorType_HAIR_STYLE = 210; + /** + * 外套 + */ + ItemEMinorType_COAT = 220; + /** + * 上衣 + */ + ItemEMinorType_UPPER_JACKET = 230; + /** + * 裤子 + */ + ItemEMinorType_TROUSERS = 241; + /** + * 裙子 + */ + ItemEMinorType_SKIRT = 242; + /** + * 袜子 + */ + ItemEMinorType_SOCKS = 250; + /** + * 鞋子 + */ + ItemEMinorType_SHOES = 260; + /** + * 发饰 + */ + ItemEMinorType_HAIR_ACCESSORY = 271; + /** + * 帽子 + */ + ItemEMinorType_HAT = 272; + /** + * 耳饰 + */ + ItemEMinorType_EARRING = 273; + /** + * 颈饰 + */ + ItemEMinorType_NECKLACE = 274; + /** + * 腕饰 + */ + ItemEMinorType_BRACELET = 275; + /** + * 发箍 + */ + ItemEMinorType_HAIR_CLASP = 276; + /** + * 手套 + */ + ItemEMinorType_GLOVE = 277; + /** + * 手持物 + */ + ItemEMinorType_HANDHELD_OBJECT = 278; + /** + * 特殊 + */ + ItemEMinorType_SPECIAL = 279; + /** + * 底妆 + */ + ItemEMinorType_BASE_COSMETIC = 281; + /** + * 眉妆 + */ + ItemEMinorType_EYEBROW_COSMETIC = 282; + /** + * 睫毛 + */ + ItemEMinorType_EYELASH = 283; + /** + * 美瞳 + */ + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284; + /** + * 唇妆 + */ + ItemEMinorType_LIP_COSMETIC = 285; + /** + * 肤色 + */ + ItemEMinorType_SKIN_COLOR = 286; + /** + * 连衣裙 + */ + ItemEMinorType_ONE_PIECE_DRESS = 290; + /** + * 换装场景 + */ + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291; + /** + * 任务道具 + */ + ItemEMinorType_QUEST = 301; + /** + * 投掷物 + */ + ItemEMinorType_CAST = 401; + /** + * 刀剑 + */ + ItemEMinorType_SWORD = 421; + /** + * 弓箭 + */ + ItemEMinorType_BOW_ARROW = 422; + /** + * 法杖 + */ + ItemEMinorType_WANDS = 423; + /** + * 特殊工具 + */ + ItemEMinorType_SPECIAL_TOOL = 424; + /** + * 食物 + */ + ItemEMinorType_FOOD = 403; + /** + * 宝箱 + */ + ItemEMinorType_TREASURE_BOX = 501; + /** + * 钥匙 + */ + ItemEMinorType_KEY = 502; + /** + * 多选一宝箱 + */ + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503; + /** + * 成就相关 + */ + ItemEMinorType_ACHIEVEMENT = 601; + /** + * 称谓相关 + */ + ItemEMinorType_TITLE = 602; + /** + * 头像框 + */ + ItemEMinorType_AVATAR_FRAME = 701; + /** + * 语音 + */ + ItemEMinorType_VOICE = 801; + /** + * 特殊待机动作 + */ + ItemEMinorType_IDLE_POSE = 901; + /** + * 拍照动作 + */ + ItemEMinorType_PHOTO_POSE = 902; + /** + * 背包 + */ + ItemEMinorType_BAG = 1001; + /** + * 好友数量 + */ + ItemEMinorType_FRIEND_CAPACITY = 1002; + /** + * 制作材料 + */ + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101; + /** + * 设计图纸 + */ + ItemEMinorType_DESIGN_DRAWING = 1102; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.EUseType.go b/luban_examples/Projects/Go_json/gen/item.EUseType.go new file mode 100644 index 00000000..62e3ada5 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.EUseType.go @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 手动 + */ + ItemEUseType_MANUAL = 0; + /** + * 自动 + */ + ItemEUseType_AUTO = 1; +) + diff --git a/luban_examples/Projects/Go_json/gen/item.Item.go b/luban_examples/Projects/Go_json/gen/item.Item.go new file mode 100644 index 00000000..45bf4fc9 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.Item.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type ItemItem struct { + Id int32 + Name string + MajorType int32 + MinorType int32 + MaxPileNum int32 + Quality int32 + Icon string + IconBackgroud string + IconMask string + Desc string + ShowOrder int32 +} + +const TypeId_ItemItem = 2107285806 + +func (*ItemItem) GetTypeId() int32 { + return 2107285806 +} + +func NewItemItem(_buf map[string]interface{}) (_v *ItemItem, err error) { + _v = &ItemItem{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["major_type"].(float64); !_ok_ { err = errors.New("major_type error"); return }; _v.MajorType = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["minor_type"].(float64); !_ok_ { err = errors.New("minor_type error"); return }; _v.MinorType = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_pile_num"].(float64); !_ok_ { err = errors.New("max_pile_num error"); return }; _v.MaxPileNum = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["quality"].(float64); !_ok_ { err = errors.New("quality error"); return }; _v.Quality = int32(_tempNum_) } + { var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } } + { var _ok_ bool; if _v.IconBackgroud, _ok_ = _buf["icon_backgroud"].(string); !_ok_ { err = errors.New("icon_backgroud error"); return } } + { var _ok_ bool; if _v.IconMask, _ok_ = _buf["icon_mask"].(string); !_ok_ { err = errors.New("icon_mask error"); return } } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["show_order"].(float64); !_ok_ { err = errors.New("show_order error"); return }; _v.ShowOrder = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/item.TbItem.go b/luban_examples/Projects/Go_json/gen/item.TbItem.go new file mode 100644 index 00000000..19e8d6ab --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/item.TbItem.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type ItemTbItem struct { + _dataMap map[int32]*ItemItem + _dataList []*ItemItem +} + +func NewItemTbItem(_buf []map[string]interface{}) (*ItemTbItem, error) { + _dataList := make([]*ItemItem, 0, len(_buf)) + dataMap := make(map[int32]*ItemItem) + + for _, _ele_ := range _buf { + if _v, err2 := NewItemItem(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &ItemTbItem{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *ItemTbItem) GetDataMap() map[int32]*ItemItem { + return table._dataMap +} + +func (table *ItemTbItem) GetDataList() []*ItemItem { + return table._dataList +} + +func (table *ItemTbItem) Get(key int32) *ItemItem { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/l10n.L10NDemo.go b/luban_examples/Projects/Go_json/gen/l10n.L10NDemo.go new file mode 100644 index 00000000..4e161fbf --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/l10n.L10NDemo.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type L10nL10NDemo struct { + Id int32 + Text string +} + +const TypeId_L10nL10NDemo = -331195887 + +func (*L10nL10NDemo) GetTypeId() int32 { + return -331195887 +} + +func NewL10nL10NDemo(_buf map[string]interface{}) (_v *L10nL10NDemo, err error) { + _v = &L10nL10NDemo{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/l10n.PatchDemo.go b/luban_examples/Projects/Go_json/gen/l10n.PatchDemo.go new file mode 100644 index 00000000..0363fd3a --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/l10n.PatchDemo.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type L10nPatchDemo struct { + Id int32 + Value int32 +} + +const TypeId_L10nPatchDemo = -1707294656 + +func (*L10nPatchDemo) GetTypeId() int32 { + return -1707294656 +} + +func NewL10nPatchDemo(_buf map[string]interface{}) (_v *L10nPatchDemo, err error) { + _v = &L10nPatchDemo{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/l10n.TbL10NDemo.go b/luban_examples/Projects/Go_json/gen/l10n.TbL10NDemo.go new file mode 100644 index 00000000..65525644 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/l10n.TbL10NDemo.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type L10nTbL10NDemo struct { + _dataMap map[int32]*L10nL10NDemo + _dataList []*L10nL10NDemo +} + +func NewL10nTbL10NDemo(_buf []map[string]interface{}) (*L10nTbL10NDemo, error) { + _dataList := make([]*L10nL10NDemo, 0, len(_buf)) + dataMap := make(map[int32]*L10nL10NDemo) + + for _, _ele_ := range _buf { + if _v, err2 := NewL10nL10NDemo(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &L10nTbL10NDemo{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *L10nTbL10NDemo) GetDataMap() map[int32]*L10nL10NDemo { + return table._dataMap +} + +func (table *L10nTbL10NDemo) GetDataList() []*L10nL10NDemo { + return table._dataList +} + +func (table *L10nTbL10NDemo) Get(key int32) *L10nL10NDemo { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/l10n.TbPatchDemo.go b/luban_examples/Projects/Go_json/gen/l10n.TbPatchDemo.go new file mode 100644 index 00000000..e924a6d0 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/l10n.TbPatchDemo.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type L10nTbPatchDemo struct { + _dataMap map[int32]*L10nPatchDemo + _dataList []*L10nPatchDemo +} + +func NewL10nTbPatchDemo(_buf []map[string]interface{}) (*L10nTbPatchDemo, error) { + _dataList := make([]*L10nPatchDemo, 0, len(_buf)) + dataMap := make(map[int32]*L10nPatchDemo) + + for _, _ele_ := range _buf { + if _v, err2 := NewL10nPatchDemo(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &L10nTbPatchDemo{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *L10nTbPatchDemo) GetDataMap() map[int32]*L10nPatchDemo { + return table._dataMap +} + +func (table *L10nTbPatchDemo) GetDataList() []*L10nPatchDemo { + return table._dataList +} + +func (table *L10nTbPatchDemo) Get(key int32) *L10nPatchDemo { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/tag.TbTestTag.go b/luban_examples/Projects/Go_json/gen/tag.TbTestTag.go new file mode 100644 index 00000000..3e650b47 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/tag.TbTestTag.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TagTbTestTag struct { + _dataMap map[int32]*TagTestTag + _dataList []*TagTestTag +} + +func NewTagTbTestTag(_buf []map[string]interface{}) (*TagTbTestTag, error) { + _dataList := make([]*TagTestTag, 0, len(_buf)) + dataMap := make(map[int32]*TagTestTag) + + for _, _ele_ := range _buf { + if _v, err2 := NewTagTestTag(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TagTbTestTag{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TagTbTestTag) GetDataMap() map[int32]*TagTestTag { + return table._dataMap +} + +func (table *TagTbTestTag) GetDataList() []*TagTestTag { + return table._dataList +} + +func (table *TagTbTestTag) Get(key int32) *TagTestTag { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/tag.TestTag.go b/luban_examples/Projects/Go_json/gen/tag.TestTag.go new file mode 100644 index 00000000..37bca9c0 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/tag.TestTag.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TagTestTag struct { + Id int32 + Value string +} + +const TypeId_TagTestTag = 1742933812 + +func (*TagTestTag) GetTypeId() int32 { + return 1742933812 +} + +func NewTagTestTag(_buf map[string]interface{}) (_v *TagTestTag, err error) { + _v = &TagTestTag{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Value, _ok_ = _buf["value"].(string); !_ok_ { err = errors.New("value error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.AccessFlag.go b/luban_examples/Projects/Go_json/gen/test.AccessFlag.go new file mode 100644 index 00000000..e56e4c35 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.AccessFlag.go @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestAccessFlag_WRITE = 1; + TestAccessFlag_READ = 2; + TestAccessFlag_TRUNCATE = 4; + TestAccessFlag_NEW = 8; + TestAccessFlag_READ_WRITE = 3; +) + diff --git a/luban_examples/Projects/Go_json/gen/test.Circle.go b/luban_examples/Projects/Go_json/gen/test.Circle.go new file mode 100644 index 00000000..f4319264 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.Circle.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestCircle struct { + Radius float32 +} + +const TypeId_TestCircle = 2131829196 + +func (*TestCircle) GetTypeId() int32 { + return 2131829196 +} + +func NewTestCircle(_buf map[string]interface{}) (_v *TestCircle, err error) { + _v = &TestCircle{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["radius"].(float64); !_ok_ { err = errors.New("radius error"); return }; _v.Radius = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.CompactString.go b/luban_examples/Projects/Go_json/gen/test.CompactString.go new file mode 100644 index 00000000..c4bd6e8c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.CompactString.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestCompactString struct { + Id int32 + S2 string + S3 string +} + +const TypeId_TestCompactString = 1968089240 + +func (*TestCompactString) GetTypeId() int32 { + return 1968089240 +} + +func NewTestCompactString(_buf map[string]interface{}) (_v *TestCompactString, err error) { + _v = &TestCompactString{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } } + { var _ok_ bool; if _v.S3, _ok_ = _buf["s3"].(string); !_ok_ { err = errors.New("s3 error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable1.go b/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable1.go new file mode 100644 index 00000000..5cfa3c6c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable1.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestCompositeJsonTable1 struct { + Id int32 + X string +} + +const TypeId_TestCompositeJsonTable1 = 1566207894 + +func (*TestCompositeJsonTable1) GetTypeId() int32 { + return 1566207894 +} + +func NewTestCompositeJsonTable1(_buf map[string]interface{}) (_v *TestCompositeJsonTable1, err error) { + _v = &TestCompositeJsonTable1{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.X, _ok_ = _buf["x"].(string); !_ok_ { err = errors.New("x error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable2.go b/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable2.go new file mode 100644 index 00000000..380cf91e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable2.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestCompositeJsonTable2 struct { + Id int32 + Y int32 +} + +const TypeId_TestCompositeJsonTable2 = 1566207895 + +func (*TestCompositeJsonTable2) GetTypeId() int32 { + return 1566207895 +} + +func NewTestCompositeJsonTable2(_buf map[string]interface{}) (_v *TestCompositeJsonTable2, err error) { + _v = &TestCompositeJsonTable2{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable3.go b/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable3.go new file mode 100644 index 00000000..5dfefc69 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable3.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestCompositeJsonTable3 struct { + A int32 + B int32 +} + +const TypeId_TestCompositeJsonTable3 = 1566207896 + +func (*TestCompositeJsonTable3) GetTypeId() int32 { + return 1566207896 +} + +func NewTestCompositeJsonTable3(_buf map[string]interface{}) (_v *TestCompositeJsonTable3, err error) { + _v = &TestCompositeJsonTable3{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["a"].(float64); !_ok_ { err = errors.New("a error"); return }; _v.A = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["b"].(float64); !_ok_ { err = errors.New("b error"); return }; _v.B = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DateTimeRange.go b/luban_examples/Projects/Go_json/gen/test.DateTimeRange.go new file mode 100644 index 00000000..68263cae --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DateTimeRange.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDateTimeRange struct { + StartTime int64 + EndTime int64 +} + +const TypeId_TestDateTimeRange = 495315430 + +func (*TestDateTimeRange) GetTypeId() int32 { + return 495315430 +} + +func NewTestDateTimeRange(_buf map[string]interface{}) (_v *TestDateTimeRange, err error) { + _v = &TestDateTimeRange{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["start_time"].(float64); !_ok_ { err = errors.New("start_time error"); return }; _v.StartTime = int64(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["end_time"].(float64); !_ok_ { err = errors.New("end_time error"); return }; _v.EndTime = int64(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.Decorator.go b/luban_examples/Projects/Go_json/gen/test.Decorator.go new file mode 100644 index 00000000..7a970c26 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.Decorator.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDecorator struct { + Id int32 + Name string + Desc string + Duration int32 +} + +const TypeId_TestDecorator = -625155649 + +func (*TestDecorator) GetTypeId() int32 { + return -625155649 +} + +func NewTestDecorator(_buf map[string]interface{}) (_v *TestDecorator, err error) { + _v = &TestDecorator{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["duration"].(float64); !_ok_ { err = errors.New("duration error"); return }; _v.Duration = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoD2.go b/luban_examples/Projects/Go_json/gen/test.DemoD2.go new file mode 100644 index 00000000..b7a00c5c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoD2.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoD2 struct { + X1 int32 + X2 int32 +} + +const TypeId_TestDemoD2 = -2138341747 + +func (*TestDemoD2) GetTypeId() int32 { + return -2138341747 +} + +func NewTestDemoD2(_buf map[string]interface{}) (_v *TestDemoD2, err error) { + _v = &TestDemoD2{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoD3.go b/luban_examples/Projects/Go_json/gen/test.DemoD3.go new file mode 100644 index 00000000..1edcfa9d --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoD3.go @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoD3 struct { + X1 int32 + X3 int32 +} + +const TypeId_TestDemoD3 = -2138341746 + +func (*TestDemoD3) GetTypeId() int32 { + return -2138341746 +} + +func NewTestDemoD3(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "DemoE1": _v, err := NewTestDemoE1(_buf); if err != nil { return nil, errors.New("testdemoe1") } else { return _v, nil } + case "test.login.RoleInfo": _v, err := NewTestLoginRoleInfo(_buf); if err != nil { return nil, errors.New("testloginroleinfo") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoD5.go b/luban_examples/Projects/Go_json/gen/test.DemoD5.go new file mode 100644 index 00000000..7c6498ff --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoD5.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoD5 struct { + X1 int32 + Time *TestDateTimeRange +} + +const TypeId_TestDemoD5 = -2138341744 + +func (*TestDemoD5) GetTypeId() int32 { + return -2138341744 +} + +func NewTestDemoD5(_buf map[string]interface{}) (_v *TestDemoD5, err error) { + _v = &TestDemoD5{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["time"].(map[string]interface{}); !_ok_ { err = errors.New("time error"); return }; if _v.Time, err = NewTestDateTimeRange(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoDynamic.go b/luban_examples/Projects/Go_json/gen/test.DemoDynamic.go new file mode 100644 index 00000000..e7991e38 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoDynamic.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoDynamic struct { + X1 int32 +} + +const TypeId_TestDemoDynamic = -1863156384 + +func (*TestDemoDynamic) GetTypeId() int32 { + return -1863156384 +} + +func NewTestDemoDynamic(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "DemoD2": _v, err := NewTestDemoD2(_buf); if err != nil { return nil, errors.New("testdemod2") } else { return _v, nil } + case "DemoE1": _v, err := NewTestDemoE1(_buf); if err != nil { return nil, errors.New("testdemoe1") } else { return _v, nil } + case "test.login.RoleInfo": _v, err := NewTestLoginRoleInfo(_buf); if err != nil { return nil, errors.New("testloginroleinfo") } else { return _v, nil } + case "DemoD5": _v, err := NewTestDemoD5(_buf); if err != nil { return nil, errors.New("testdemod5") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoE1.go b/luban_examples/Projects/Go_json/gen/test.DemoE1.go new file mode 100644 index 00000000..0bc1a644 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoE1.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoE1 struct { + X1 int32 + X3 int32 + X4 int32 +} + +const TypeId_TestDemoE1 = -2138341717 + +func (*TestDemoE1) GetTypeId() int32 { + return -2138341717 +} + +func NewTestDemoE1(_buf map[string]interface{}) (_v *TestDemoE1, err error) { + _v = &TestDemoE1{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoE2.go b/luban_examples/Projects/Go_json/gen/test.DemoE2.go new file mode 100644 index 00000000..181f5078 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoE2.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoE2 struct { + Y1 *int32 + Y2 bool +} + +const TypeId_TestDemoE2 = -2138341716 + +func (*TestDemoE2) GetTypeId() int32 { + return -2138341716 +} + +func NewTestDemoE2(_buf map[string]interface{}) (_v *TestDemoE2, err error) { + _v = &TestDemoE2{} + { var _ok_ bool; var __json_y1__ interface{}; if __json_y1__, _ok_ = _buf["y1"]; !_ok_ || __json_y1__ == nil { _v.Y1 = nil } else { var __x__ int32; { var _ok_ bool; var _x_ float64; if _x_, _ok_ = __json_y1__.(float64); !_ok_ { err = errors.New("__x__ error"); return }; __x__ = int32(_x_) }; _v.Y1 = &__x__ }} + { var _ok_ bool; if _v.Y2, _ok_ = _buf["y2"].(bool); !_ok_ { err = errors.New("y2 error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoEnum.go b/luban_examples/Projects/Go_json/gen/test.DemoEnum.go new file mode 100644 index 00000000..82a92e52 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoEnum.go @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestDemoEnum_NONE = 0; + /** + * aa + */ + TestDemoEnum_A = 1; + /** + * bb + */ + TestDemoEnum_B = 2; + /** + * cc + */ + TestDemoEnum_C = 4; + /** + * dd + */ + TestDemoEnum_D = 5; +) + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoFlag.go b/luban_examples/Projects/Go_json/gen/test.DemoFlag.go new file mode 100644 index 00000000..def8a36d --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoFlag.go @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestDemoFlag_A = 1; + TestDemoFlag_B = 2; + TestDemoFlag_C = 4; + TestDemoFlag_D = 8; +) + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoGroup.go b/luban_examples/Projects/Go_json/gen/test.DemoGroup.go new file mode 100644 index 00000000..86aa2814 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoGroup.go @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoGroup struct { + Id int32 + X1 int32 + X2 int32 + X3 int32 + X4 int32 + X5 *TestInnerGroup +} + +const TypeId_TestDemoGroup = -379263008 + +func (*TestDemoGroup) GetTypeId() int32 { + return -379263008 +} + +func NewTestDemoGroup(_buf map[string]interface{}) (_v *TestDemoGroup, err error) { + _v = &TestDemoGroup{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x5"].(map[string]interface{}); !_ok_ { err = errors.New("x5 error"); return }; if _v.X5, err = NewTestInnerGroup(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoPrimitiveTypesTable.go b/luban_examples/Projects/Go_json/gen/test.DemoPrimitiveTypesTable.go new file mode 100644 index 00000000..a5507f10 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoPrimitiveTypesTable.go @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoPrimitiveTypesTable struct { + X1 bool + X2 byte + X3 int16 + X4 int32 + X5 int64 + X6 float32 + X7 float64 + S1 string + S2 string + V2 *vec2 + V3 *vec3 + V4 *vec4 + T1 int64 +} + +const TypeId_TestDemoPrimitiveTypesTable = -370934083 + +func (*TestDemoPrimitiveTypesTable) GetTypeId() int32 { + return -370934083 +} + +func NewTestDemoPrimitiveTypesTable(_buf map[string]interface{}) (_v *TestDemoPrimitiveTypesTable, err error) { + _v = &TestDemoPrimitiveTypesTable{} + { var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = byte(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int16(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x7"].(float64); !_ok_ { err = errors.New("x7 error"); return }; _v.X7 = float64(_tempNum_) } + { var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } } + { var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v2"].(map[string]interface{}); !_ok_ { err = errors.New("v2 error"); return }; if _v.V2, err = Newvec2(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v3"].(map[string]interface{}); !_ok_ { err = errors.New("v3 error"); return }; if _v.V3, err = Newvec3(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v4"].(map[string]interface{}); !_ok_ { err = errors.New("v4 error"); return }; if _v.V4, err = Newvec4(_x_); err != nil { return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoSingletonType.go b/luban_examples/Projects/Go_json/gen/test.DemoSingletonType.go new file mode 100644 index 00000000..3a451e22 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoSingletonType.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoSingletonType struct { + Id int32 + Name string + Date interface{} +} + +const TypeId_TestDemoSingletonType = 539196998 + +func (*TestDemoSingletonType) GetTypeId() int32 { + return 539196998 +} + +func NewTestDemoSingletonType(_buf map[string]interface{}) (_v *TestDemoSingletonType, err error) { + _v = &TestDemoSingletonType{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["date"].(map[string]interface{}); !_ok_ { err = errors.New("date error"); return }; if _v.Date, err = NewTestDemoDynamic(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoType1.go b/luban_examples/Projects/Go_json/gen/test.DemoType1.go new file mode 100644 index 00000000..fa4213bb --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoType1.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoType1 struct { + X1 int32 +} + +const TypeId_TestDemoType1 = -367048296 + +func (*TestDemoType1) GetTypeId() int32 { + return -367048296 +} + +func NewTestDemoType1(_buf map[string]interface{}) (_v *TestDemoType1, err error) { + _v = &TestDemoType1{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DemoType2.go b/luban_examples/Projects/Go_json/gen/test.DemoType2.go new file mode 100644 index 00000000..13d27ecb --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DemoType2.go @@ -0,0 +1,153 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDemoType2 struct { + X4 int32 + X1 bool + X2 byte + X3 int16 + X5 int64 + X6 float32 + X7 float64 + X80 int16 + X8 int32 + X9 int64 + X10 string + X12 *TestDemoType1 + X13 int32 + X14 interface{} + S1 string + T1 int64 + K1 []int32 + K2 []int32 + K5 []int32 + K8 map[int32]int32 + K9 []*TestDemoE2 + K15 []interface{} +} + +const TypeId_TestDemoType2 = -367048295 + +func (*TestDemoType2) GetTypeId() int32 { + return -367048295 +} + +func NewTestDemoType2(_buf map[string]interface{}) (_v *TestDemoType2, err error) { + _v = &TestDemoType2{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) } + { var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = byte(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int16(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x7"].(float64); !_ok_ { err = errors.New("x7 error"); return }; _v.X7 = float64(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x8_0"].(float64); !_ok_ { err = errors.New("x8_0 error"); return }; _v.X80 = int16(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x8"].(float64); !_ok_ { err = errors.New("x8 error"); return }; _v.X8 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x9"].(float64); !_ok_ { err = errors.New("x9 error"); return }; _v.X9 = int64(_tempNum_) } + { var _ok_ bool; if _v.X10, _ok_ = _buf["x10"].(string); !_ok_ { err = errors.New("x10 error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x12"].(map[string]interface{}); !_ok_ { err = errors.New("x12 error"); return }; if _v.X12, err = NewTestDemoType1(_x_); err != nil { return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13"].(float64); !_ok_ { err = errors.New("x13 error"); return }; _v.X13 = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x14"].(map[string]interface{}); !_ok_ { err = errors.New("x14 error"); return }; if _v.X14, err = NewTestDemoDynamic(_x_); err != nil { return } } + { var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k1"].([]interface{}); !_ok_ { err = errors.New("k1 error"); return } + + _v.K1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.K1 = append(_v.K1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k2"].([]interface{}); !_ok_ { err = errors.New("k2 error"); return } + + _v.K2 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.K2 = append(_v.K2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k5"].([]interface{}); !_ok_ { err = errors.New("k5 error"); return } + + _v.K5 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.K5 = append(_v.K5, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k8"].([]interface{}); !_ok_ { err = errors.New("k8 error"); return } + + _v.K8 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("k8 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.K8[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k9"].([]interface{}); !_ok_ { err = errors.New("k9 error"); return } + + _v.K9 = make([]*TestDemoE2, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestDemoE2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestDemoE2(_x_); err != nil { return } } + _v.K9 = append(_v.K9, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k15"].([]interface{}); !_ok_ { err = errors.New("k15 error"); return } + + _v.K15 = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestDemoDynamic(_x_); err != nil { return } } + _v.K15 = append(_v.K15, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.DetectEncoding.go b/luban_examples/Projects/Go_json/gen/test.DetectEncoding.go new file mode 100644 index 00000000..3793887e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.DetectEncoding.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestDetectEncoding struct { + Id int32 + Name string +} + +const TypeId_TestDetectEncoding = -1154609646 + +func (*TestDetectEncoding) GetTypeId() int32 { + return -1154609646 +} + +func NewTestDetectEncoding(_buf map[string]interface{}) (_v *TestDetectEncoding, err error) { + _v = &TestDetectEncoding{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.ETestEmptyEnum.go b/luban_examples/Projects/Go_json/gen/test.ETestEmptyEnum.go new file mode 100644 index 00000000..054c82a7 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.ETestEmptyEnum.go @@ -0,0 +1,14 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( +) + diff --git a/luban_examples/Projects/Go_json/gen/test.ETestEmptyEnum2.go b/luban_examples/Projects/Go_json/gen/test.ETestEmptyEnum2.go new file mode 100644 index 00000000..bbbfb06e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.ETestEmptyEnum2.go @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + TestETestEmptyEnum2_SMALL_THAN_256 = 255; + TestETestEmptyEnum2_X_256 = 256; + TestETestEmptyEnum2_X_257 = 257; +) + diff --git a/luban_examples/Projects/Go_json/gen/test.ETestQuality.go b/luban_examples/Projects/Go_json/gen/test.ETestQuality.go new file mode 100644 index 00000000..45613f67 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.ETestQuality.go @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 最高品质 + */ + TestETestQuality_A = 1; + /** + * 黑色的 + */ + TestETestQuality_B = 2; + /** + * 蓝色的 + */ + TestETestQuality_C = 3; + /** + * 最差品质 + */ + TestETestQuality_D = 4; +) + diff --git a/luban_examples/Projects/Go_json/gen/test.ETestUeType.go b/luban_examples/Projects/Go_json/gen/test.ETestUeType.go new file mode 100644 index 00000000..f7d26e7a --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.ETestUeType.go @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +const ( + /** + * 白 + */ + TestETestUeType_WHITE = 0; + TestETestUeType_BLACK = 1; +) + diff --git a/luban_examples/Projects/Go_json/gen/test.Equipment.go b/luban_examples/Projects/Go_json/gen/test.Equipment.go new file mode 100644 index 00000000..3d915674 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.Equipment.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestEquipment struct { + Id int32 + Name string + Desc string + Attr int32 + Value int32 +} + +const TypeId_TestEquipment = -76837102 + +func (*TestEquipment) GetTypeId() int32 { + return -76837102 +} + +func NewTestEquipment(_buf map[string]interface{}) (_v *TestEquipment, err error) { + _v = &TestEquipment{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["attr"].(float64); !_ok_ { err = errors.New("attr error"); return }; _v.Attr = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.ExcelFromJson.go b/luban_examples/Projects/Go_json/gen/test.ExcelFromJson.go new file mode 100644 index 00000000..83212ab2 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.ExcelFromJson.go @@ -0,0 +1,111 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestExcelFromJson struct { + X4 int32 + X1 bool + X5 int64 + X6 float32 + S1 string + S2 string + T1 int64 + X12 *TestDemoType1 + X13 int32 + X14 interface{} + K1 []int32 + K8 map[int32]int32 + K9 []*TestDemoE2 + K15 []interface{} +} + +const TypeId_TestExcelFromJson = -1485706483 + +func (*TestExcelFromJson) GetTypeId() int32 { + return -1485706483 +} + +func NewTestExcelFromJson(_buf map[string]interface{}) (_v *TestExcelFromJson, err error) { + _v = &TestExcelFromJson{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) } + { var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) } + { var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } } + { var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x12"].(map[string]interface{}); !_ok_ { err = errors.New("x12 error"); return }; if _v.X12, err = NewTestDemoType1(_x_); err != nil { return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13"].(float64); !_ok_ { err = errors.New("x13 error"); return }; _v.X13 = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x14"].(map[string]interface{}); !_ok_ { err = errors.New("x14 error"); return }; if _v.X14, err = NewTestDemoDynamic(_x_); err != nil { return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k1"].([]interface{}); !_ok_ { err = errors.New("k1 error"); return } + + _v.K1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.K1 = append(_v.K1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k8"].([]interface{}); !_ok_ { err = errors.New("k8 error"); return } + + _v.K8 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("k8 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.K8[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k9"].([]interface{}); !_ok_ { err = errors.New("k9 error"); return } + + _v.K9 = make([]*TestDemoE2, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestDemoE2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestDemoE2(_x_); err != nil { return } } + _v.K9 = append(_v.K9, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["k15"].([]interface{}); !_ok_ { err = errors.New("k15 error"); return } + + _v.K15 = make([]interface{}, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ interface{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestDemoDynamic(_x_); err != nil { return } } + _v.K15 = append(_v.K15, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.ExcelFromJsonMultiRow.go b/luban_examples/Projects/Go_json/gen/test.ExcelFromJsonMultiRow.go new file mode 100644 index 00000000..c19b3f9e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.ExcelFromJsonMultiRow.go @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestExcelFromJsonMultiRow struct { + Id int32 + X int32 + Items []*TestTestRow +} + +const TypeId_TestExcelFromJsonMultiRow = 715335694 + +func (*TestExcelFromJsonMultiRow) GetTypeId() int32 { + return 715335694 +} + +func NewTestExcelFromJsonMultiRow(_buf map[string]interface{}) (_v *TestExcelFromJsonMultiRow, err error) { + _v = &TestExcelFromJsonMultiRow{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["items"].([]interface{}); !_ok_ { err = errors.New("items error"); return } + + _v.Items = make([]*TestTestRow, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestTestRow + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestTestRow(_x_); err != nil { return } } + _v.Items = append(_v.Items, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.Foo.go b/luban_examples/Projects/Go_json/gen/test.Foo.go new file mode 100644 index 00000000..78171fae --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.Foo.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestFoo struct { + Y1 int32 + Y2 int32 + Y3 int32 +} + +const TypeId_TestFoo = -1147950774 + +func (*TestFoo) GetTypeId() int32 { + return -1147950774 +} + +func NewTestFoo(_buf map[string]interface{}) (_v *TestFoo, err error) { + _v = &TestFoo{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y1"].(float64); !_ok_ { err = errors.New("y1 error"); return }; _v.Y1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y2"].(float64); !_ok_ { err = errors.New("y2 error"); return }; _v.Y2 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y3"].(float64); !_ok_ { err = errors.New("y3 error"); return }; _v.Y3 = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.H1.go b/luban_examples/Projects/Go_json/gen/test.H1.go new file mode 100644 index 00000000..bd5537ec --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.H1.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestH1 struct { + Y2 *TestH2 + Y3 int32 +} + +const TypeId_TestH1 = -1422503995 + +func (*TestH1) GetTypeId() int32 { + return -1422503995 +} + +func NewTestH1(_buf map[string]interface{}) (_v *TestH1, err error) { + _v = &TestH1{} + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["y2"].(map[string]interface{}); !_ok_ { err = errors.New("y2 error"); return }; if _v.Y2, err = NewTestH2(_x_); err != nil { return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y3"].(float64); !_ok_ { err = errors.New("y3 error"); return }; _v.Y3 = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.H2.go b/luban_examples/Projects/Go_json/gen/test.H2.go new file mode 100644 index 00000000..35ffbf34 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.H2.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestH2 struct { + Z2 int32 + Z3 int32 +} + +const TypeId_TestH2 = -1422503994 + +func (*TestH2) GetTypeId() int32 { + return -1422503994 +} + +func NewTestH2(_buf map[string]interface{}) (_v *TestH2, err error) { + _v = &TestH2{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["z2"].(float64); !_ok_ { err = errors.New("z2 error"); return }; _v.Z2 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["z3"].(float64); !_ok_ { err = errors.New("z3 error"); return }; _v.Z3 = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.InnerGroup.go b/luban_examples/Projects/Go_json/gen/test.InnerGroup.go new file mode 100644 index 00000000..c3d22a8b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.InnerGroup.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestInnerGroup struct { + Y1 int32 + Y2 int32 + Y3 int32 + Y4 int32 +} + +const TypeId_TestInnerGroup = -587873083 + +func (*TestInnerGroup) GetTypeId() int32 { + return -587873083 +} + +func NewTestInnerGroup(_buf map[string]interface{}) (_v *TestInnerGroup, err error) { + _v = &TestInnerGroup{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y1"].(float64); !_ok_ { err = errors.New("y1 error"); return }; _v.Y1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y2"].(float64); !_ok_ { err = errors.New("y2 error"); return }; _v.Y2 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y3"].(float64); !_ok_ { err = errors.New("y3 error"); return }; _v.Y3 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y4"].(float64); !_ok_ { err = errors.New("y4 error"); return }; _v.Y4 = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.Item.go b/luban_examples/Projects/Go_json/gen/test.Item.go new file mode 100644 index 00000000..460d2bf9 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.Item.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestItem struct { + Id int32 + Name string + Desc string + Num int32 + Price int32 +} + +const TypeId_TestItem = -1226641649 + +func (*TestItem) GetTypeId() int32 { + return -1226641649 +} + +func NewTestItem(_buf map[string]interface{}) (_v *TestItem, err error) { + _v = &TestItem{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["price"].(float64); !_ok_ { err = errors.New("price error"); return }; _v.Price = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.ItemBase.go b/luban_examples/Projects/Go_json/gen/test.ItemBase.go new file mode 100644 index 00000000..7e9a9ef5 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.ItemBase.go @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestItemBase struct { + Id int32 + Name string + Desc string +} + +const TypeId_TestItemBase = -1631171968 + +func (*TestItemBase) GetTypeId() int32 { + return -1631171968 +} + +func NewTestItemBase(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "Item": _v, err := NewTestItem(_buf); if err != nil { return nil, errors.New("testitem") } else { return _v, nil } + case "Equipment": _v, err := NewTestEquipment(_buf); if err != nil { return nil, errors.New("testequipment") } else { return _v, nil } + case "Decorator": _v, err := NewTestDecorator(_buf); if err != nil { return nil, errors.New("testdecorator") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.MultiIndexList.go b/luban_examples/Projects/Go_json/gen/test.MultiIndexList.go new file mode 100644 index 00000000..eb359e9f --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.MultiIndexList.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestMultiIndexList struct { + Id1 int32 + Id2 int64 + Id3 string + Num int32 + Desc string +} + +const TypeId_TestMultiIndexList = 2016237651 + +func (*TestMultiIndexList) GetTypeId() int32 { + return 2016237651 +} + +func NewTestMultiIndexList(_buf map[string]interface{}) (_v *TestMultiIndexList, err error) { + _v = &TestMultiIndexList{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id1"].(float64); !_ok_ { err = errors.New("id1 error"); return }; _v.Id1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id2"].(float64); !_ok_ { err = errors.New("id2 error"); return }; _v.Id2 = int64(_tempNum_) } + { var _ok_ bool; if _v.Id3, _ok_ = _buf["id3"].(string); !_ok_ { err = errors.New("id3 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.MultiRowRecord.go b/luban_examples/Projects/Go_json/gen/test.MultiRowRecord.go new file mode 100644 index 00000000..0440d420 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.MultiRowRecord.go @@ -0,0 +1,146 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestMultiRowRecord struct { + Id int32 + Name string + OneRows []*TestMultiRowType1 + MultiRows1 []*TestMultiRowType1 + MultiRows2 []*TestMultiRowType1 + MultiRows4 map[int32]*TestMultiRowType2 + MultiRows5 []*TestMultiRowType3 + MultiRows6 map[int32]*TestMultiRowType2 + MultiRows7 map[int32]int32 +} + +const TypeId_TestMultiRowRecord = -501249394 + +func (*TestMultiRowRecord) GetTypeId() int32 { + return -501249394 +} + +func NewTestMultiRowRecord(_buf map[string]interface{}) (_v *TestMultiRowRecord, err error) { + _v = &TestMultiRowRecord{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["one_rows"].([]interface{}); !_ok_ { err = errors.New("one_rows error"); return } + + _v.OneRows = make([]*TestMultiRowType1, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestMultiRowType1 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestMultiRowType1(_x_); err != nil { return } } + _v.OneRows = append(_v.OneRows, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["multi_rows1"].([]interface{}); !_ok_ { err = errors.New("multi_rows1 error"); return } + + _v.MultiRows1 = make([]*TestMultiRowType1, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestMultiRowType1 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestMultiRowType1(_x_); err != nil { return } } + _v.MultiRows1 = append(_v.MultiRows1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["multi_rows2"].([]interface{}); !_ok_ { err = errors.New("multi_rows2 error"); return } + + _v.MultiRows2 = make([]*TestMultiRowType1, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestMultiRowType1 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestMultiRowType1(_x_); err != nil { return } } + _v.MultiRows2 = append(_v.MultiRows2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["multi_rows4"].([]interface{}); !_ok_ { err = errors.New("multi_rows4 error"); return } + + _v.MultiRows4 = make(map[int32]*TestMultiRowType2) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("multi_rows4 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ *TestMultiRowType2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _kv_[1].(map[string]interface{}); !_ok_ { err = errors.New("_value_ error"); return }; if _value_, err = NewTestMultiRowType2(_x_); err != nil { return } } + _v.MultiRows4[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["multi_rows5"].([]interface{}); !_ok_ { err = errors.New("multi_rows5 error"); return } + + _v.MultiRows5 = make([]*TestMultiRowType3, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestMultiRowType3 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestMultiRowType3(_x_); err != nil { return } } + _v.MultiRows5 = append(_v.MultiRows5, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["multi_rows6"].([]interface{}); !_ok_ { err = errors.New("multi_rows6 error"); return } + + _v.MultiRows6 = make(map[int32]*TestMultiRowType2) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("multi_rows6 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ *TestMultiRowType2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _kv_[1].(map[string]interface{}); !_ok_ { err = errors.New("_value_ error"); return }; if _value_, err = NewTestMultiRowType2(_x_); err != nil { return } } + _v.MultiRows6[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["multi_rows7"].([]interface{}); !_ok_ { err = errors.New("multi_rows7 error"); return } + + _v.MultiRows7 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("multi_rows7 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.MultiRows7[_key_] = _value_ + } + } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.MultiRowTitle.go b/luban_examples/Projects/Go_json/gen/test.MultiRowTitle.go new file mode 100644 index 00000000..040cad8a --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.MultiRowTitle.go @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestMultiRowTitle struct { + Id int32 + Name string + X1 *TestH1 + X20 *TestH2 + X2 []*TestH2 + X3 []*TestH2 + X4 []*TestH2 +} + +const TypeId_TestMultiRowTitle = 540002427 + +func (*TestMultiRowTitle) GetTypeId() int32 { + return 540002427 +} + +func NewTestMultiRowTitle(_buf map[string]interface{}) (_v *TestMultiRowTitle, err error) { + _v = &TestMultiRowTitle{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x1"].(map[string]interface{}); !_ok_ { err = errors.New("x1 error"); return }; if _v.X1, err = NewTestH1(_x_); err != nil { return } } + { var _ok_ bool; var __json_x2_0__ interface{}; if __json_x2_0__, _ok_ = _buf["x2_0"]; !_ok_ || __json_x2_0__ == nil { _v.X20 = nil } else { var __x__ *TestH2; { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = __json_x2_0__.(map[string]interface{}); !_ok_ { err = errors.New("__x__ error"); return }; if __x__, err = NewTestH2(_x_); err != nil { return } }; _v.X20 = __x__ }} + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x2"].([]interface{}); !_ok_ { err = errors.New("x2 error"); return } + + _v.X2 = make([]*TestH2, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestH2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestH2(_x_); err != nil { return } } + _v.X2 = append(_v.X2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x3"].([]interface{}); !_ok_ { err = errors.New("x3 error"); return } + + _v.X3 = make([]*TestH2, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestH2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestH2(_x_); err != nil { return } } + _v.X3 = append(_v.X3, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x4"].([]interface{}); !_ok_ { err = errors.New("x4 error"); return } + + _v.X4 = make([]*TestH2, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestH2 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestH2(_x_); err != nil { return } } + _v.X4 = append(_v.X4, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.MultiRowType1.go b/luban_examples/Projects/Go_json/gen/test.MultiRowType1.go new file mode 100644 index 00000000..c6fce093 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.MultiRowType1.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestMultiRowType1 struct { + Id int32 + X int32 +} + +const TypeId_TestMultiRowType1 = 540474970 + +func (*TestMultiRowType1) GetTypeId() int32 { + return 540474970 +} + +func NewTestMultiRowType1(_buf map[string]interface{}) (_v *TestMultiRowType1, err error) { + _v = &TestMultiRowType1{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.MultiRowType2.go b/luban_examples/Projects/Go_json/gen/test.MultiRowType2.go new file mode 100644 index 00000000..bb7510b4 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.MultiRowType2.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestMultiRowType2 struct { + Id int32 + X int32 + Y float32 +} + +const TypeId_TestMultiRowType2 = 540474971 + +func (*TestMultiRowType2) GetTypeId() int32 { + return 540474971 +} + +func NewTestMultiRowType2(_buf map[string]interface{}) (_v *TestMultiRowType2, err error) { + _v = &TestMultiRowType2{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.MultiRowType3.go b/luban_examples/Projects/Go_json/gen/test.MultiRowType3.go new file mode 100644 index 00000000..84ca031b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.MultiRowType3.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestMultiRowType3 struct { + Id int32 + Items []*TestMultiRowType1 +} + +const TypeId_TestMultiRowType3 = 540474972 + +func (*TestMultiRowType3) GetTypeId() int32 { + return 540474972 +} + +func NewTestMultiRowType3(_buf map[string]interface{}) (_v *TestMultiRowType3, err error) { + _v = &TestMultiRowType3{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["items"].([]interface{}); !_ok_ { err = errors.New("items error"); return } + + _v.Items = make([]*TestMultiRowType1, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestMultiRowType1 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestMultiRowType1(_x_); err != nil { return } } + _v.Items = append(_v.Items, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.MultiUnionIndexList.go b/luban_examples/Projects/Go_json/gen/test.MultiUnionIndexList.go new file mode 100644 index 00000000..0409a6b8 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.MultiUnionIndexList.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestMultiUnionIndexList struct { + Id1 int32 + Id2 int64 + Id3 string + Num int32 + Desc string +} + +const TypeId_TestMultiUnionIndexList = 1966847134 + +func (*TestMultiUnionIndexList) GetTypeId() int32 { + return 1966847134 +} + +func NewTestMultiUnionIndexList(_buf map[string]interface{}) (_v *TestMultiUnionIndexList, err error) { + _v = &TestMultiUnionIndexList{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id1"].(float64); !_ok_ { err = errors.New("id1 error"); return }; _v.Id1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id2"].(float64); !_ok_ { err = errors.New("id2 error"); return }; _v.Id2 = int64(_tempNum_) } + { var _ok_ bool; if _v.Id3, _ok_ = _buf["id3"].(string); !_ok_ { err = errors.New("id3 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.NotIndexList.go b/luban_examples/Projects/Go_json/gen/test.NotIndexList.go new file mode 100644 index 00000000..c72c3139 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.NotIndexList.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestNotIndexList struct { + X int32 + Y int32 +} + +const TypeId_TestNotIndexList = -50446599 + +func (*TestNotIndexList) GetTypeId() int32 { + return -50446599 +} + +func NewTestNotIndexList(_buf map[string]interface{}) (_v *TestNotIndexList, err error) { + _v = &TestNotIndexList{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.RefBean.go b/luban_examples/Projects/Go_json/gen/test.RefBean.go new file mode 100644 index 00000000..72c21f7f --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.RefBean.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestRefBean struct { + X int32 + Arr []int32 +} + +const TypeId_TestRefBean = 1963260263 + +func (*TestRefBean) GetTypeId() int32 { + return 1963260263 +} + +func NewTestRefBean(_buf map[string]interface{}) (_v *TestRefBean, err error) { + _v = &TestRefBean{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["arr"].([]interface{}); !_ok_ { err = errors.New("arr error"); return } + + _v.Arr = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.Arr = append(_v.Arr, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.RefDynamicBase.go b/luban_examples/Projects/Go_json/gen/test.RefDynamicBase.go new file mode 100644 index 00000000..74f2296c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.RefDynamicBase.go @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestRefDynamicBase struct { + X int32 +} + +const TypeId_TestRefDynamicBase = 772878873 + +func (*TestRefDynamicBase) GetTypeId() int32 { + return 772878873 +} + +func NewTestRefDynamicBase(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "RefBean": _v, err := NewTestRefBean(_buf); if err != nil { return nil, errors.New("testrefbean") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.Shape.go b/luban_examples/Projects/Go_json/gen/test.Shape.go new file mode 100644 index 00000000..d3f7c594 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.Shape.go @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestShape struct { +} + +const TypeId_TestShape = 637688613 + +func (*TestShape) GetTypeId() int32 { + return 637688613 +} + +func NewTestShape(_buf map[string]interface{}) (interface{}, error) { + var id string + var _ok_ bool + if id, _ok_ = _buf["$type"].(string) ; !_ok_ { + return nil, errors.New("type id missing") + } + switch id { + case "Circle": _v, err := NewTestCircle(_buf); if err != nil { return nil, errors.New("testcircle") } else { return _v, nil } + case "test2.Rectangle": _v, err := NewTest2Rectangle(_buf); if err != nil { return nil, errors.New("test2rectangle") } else { return _v, nil } + default: return nil, errors.New("unknown type id") + } +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable1.go b/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable1.go new file mode 100644 index 00000000..c34d79c1 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable1.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbCompositeJsonTable1 struct { + _dataMap map[int32]*TestCompositeJsonTable1 + _dataList []*TestCompositeJsonTable1 +} + +func NewTestTbCompositeJsonTable1(_buf []map[string]interface{}) (*TestTbCompositeJsonTable1, error) { + _dataList := make([]*TestCompositeJsonTable1, 0, len(_buf)) + dataMap := make(map[int32]*TestCompositeJsonTable1) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestCompositeJsonTable1(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbCompositeJsonTable1{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbCompositeJsonTable1) GetDataMap() map[int32]*TestCompositeJsonTable1 { + return table._dataMap +} + +func (table *TestTbCompositeJsonTable1) GetDataList() []*TestCompositeJsonTable1 { + return table._dataList +} + +func (table *TestTbCompositeJsonTable1) Get(key int32) *TestCompositeJsonTable1 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable2.go b/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable2.go new file mode 100644 index 00000000..938cdf18 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable2.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbCompositeJsonTable2 struct { + _dataMap map[int32]*TestCompositeJsonTable2 + _dataList []*TestCompositeJsonTable2 +} + +func NewTestTbCompositeJsonTable2(_buf []map[string]interface{}) (*TestTbCompositeJsonTable2, error) { + _dataList := make([]*TestCompositeJsonTable2, 0, len(_buf)) + dataMap := make(map[int32]*TestCompositeJsonTable2) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestCompositeJsonTable2(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbCompositeJsonTable2{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbCompositeJsonTable2) GetDataMap() map[int32]*TestCompositeJsonTable2 { + return table._dataMap +} + +func (table *TestTbCompositeJsonTable2) GetDataList() []*TestCompositeJsonTable2 { + return table._dataList +} + +func (table *TestTbCompositeJsonTable2) Get(key int32) *TestCompositeJsonTable2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable3.go b/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable3.go new file mode 100644 index 00000000..f6e21064 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbCompositeJsonTable3.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + + +import "errors" + +type TestTbCompositeJsonTable3 struct { + _data *TestCompositeJsonTable3 +} + +func NewTestTbCompositeJsonTable3(_buf []map[string]interface{}) (*TestTbCompositeJsonTable3, error) { + if len(_buf) != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewTestCompositeJsonTable3(_buf[0]); err2 != nil { + return nil, err2 + } else { + return &TestTbCompositeJsonTable3{_data:_v}, nil + } + } +} + +func (table *TestTbCompositeJsonTable3) Get() *TestCompositeJsonTable3 { + return table._data +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDataFromMisc.go b/luban_examples/Projects/Go_json/gen/test.TbDataFromMisc.go new file mode 100644 index 00000000..d530f057 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDataFromMisc.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDataFromMisc struct { + _dataMap map[int32]*TestDemoType2 + _dataList []*TestDemoType2 +} + +func NewTestTbDataFromMisc(_buf []map[string]interface{}) (*TestTbDataFromMisc, error) { + _dataList := make([]*TestDemoType2, 0, len(_buf)) + dataMap := make(map[int32]*TestDemoType2) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDemoType2(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbDataFromMisc{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDataFromMisc) GetDataMap() map[int32]*TestDemoType2 { + return table._dataMap +} + +func (table *TestTbDataFromMisc) GetDataList() []*TestDemoType2 { + return table._dataList +} + +func (table *TestTbDataFromMisc) Get(key int32) *TestDemoType2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDefineFromExcel2.go b/luban_examples/Projects/Go_json/gen/test.TbDefineFromExcel2.go new file mode 100644 index 00000000..f301fcdd --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDefineFromExcel2.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDefineFromExcel2 struct { + _dataMap map[int32]*DefineFromExcel2 + _dataList []*DefineFromExcel2 +} + +func NewTestTbDefineFromExcel2(_buf []map[string]interface{}) (*TestTbDefineFromExcel2, error) { + _dataList := make([]*DefineFromExcel2, 0, len(_buf)) + dataMap := make(map[int32]*DefineFromExcel2) + + for _, _ele_ := range _buf { + if _v, err2 := NewDefineFromExcel2(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDefineFromExcel2{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDefineFromExcel2) GetDataMap() map[int32]*DefineFromExcel2 { + return table._dataMap +} + +func (table *TestTbDefineFromExcel2) GetDataList() []*DefineFromExcel2 { + return table._dataList +} + +func (table *TestTbDefineFromExcel2) Get(key int32) *DefineFromExcel2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDemoGroup.go b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup.go new file mode 100644 index 00000000..5489d8a3 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDemoGroup struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup(_buf []map[string]interface{}) (*TestTbDemoGroup, error) { + _dataList := make([]*TestDemoGroup, 0, len(_buf)) + dataMap := make(map[int32]*TestDemoGroup) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDemoGroup(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDemoGroup) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_C.go b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_C.go new file mode 100644 index 00000000..35443054 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_C.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDemoGroup_C struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup_C(_buf []map[string]interface{}) (*TestTbDemoGroup_C, error) { + _dataList := make([]*TestDemoGroup, 0, len(_buf)) + dataMap := make(map[int32]*TestDemoGroup) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDemoGroup(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup_C{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDemoGroup_C) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup_C) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup_C) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_E.go b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_E.go new file mode 100644 index 00000000..27b48e1a --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_E.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDemoGroup_E struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup_E(_buf []map[string]interface{}) (*TestTbDemoGroup_E, error) { + _dataList := make([]*TestDemoGroup, 0, len(_buf)) + dataMap := make(map[int32]*TestDemoGroup) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDemoGroup(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup_E{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDemoGroup_E) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup_E) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup_E) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_S.go b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_S.go new file mode 100644 index 00000000..3d61cf19 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDemoGroup_S.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDemoGroup_S struct { + _dataMap map[int32]*TestDemoGroup + _dataList []*TestDemoGroup +} + +func NewTestTbDemoGroup_S(_buf []map[string]interface{}) (*TestTbDemoGroup_S, error) { + _dataList := make([]*TestDemoGroup, 0, len(_buf)) + dataMap := make(map[int32]*TestDemoGroup) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDemoGroup(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDemoGroup_S{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDemoGroup_S) GetDataMap() map[int32]*TestDemoGroup { + return table._dataMap +} + +func (table *TestTbDemoGroup_S) GetDataList() []*TestDemoGroup { + return table._dataList +} + +func (table *TestTbDemoGroup_S) Get(key int32) *TestDemoGroup { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDemoPrimitive.go b/luban_examples/Projects/Go_json/gen/test.TbDemoPrimitive.go new file mode 100644 index 00000000..4ca95f77 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDemoPrimitive.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDemoPrimitive struct { + _dataMap map[int32]*TestDemoPrimitiveTypesTable + _dataList []*TestDemoPrimitiveTypesTable +} + +func NewTestTbDemoPrimitive(_buf []map[string]interface{}) (*TestTbDemoPrimitive, error) { + _dataList := make([]*TestDemoPrimitiveTypesTable, 0, len(_buf)) + dataMap := make(map[int32]*TestDemoPrimitiveTypesTable) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDemoPrimitiveTypesTable(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbDemoPrimitive{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDemoPrimitive) GetDataMap() map[int32]*TestDemoPrimitiveTypesTable { + return table._dataMap +} + +func (table *TestTbDemoPrimitive) GetDataList() []*TestDemoPrimitiveTypesTable { + return table._dataList +} + +func (table *TestTbDemoPrimitive) Get(key int32) *TestDemoPrimitiveTypesTable { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbDetectCsvEncoding.go b/luban_examples/Projects/Go_json/gen/test.TbDetectCsvEncoding.go new file mode 100644 index 00000000..030c6fc7 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbDetectCsvEncoding.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbDetectCsvEncoding struct { + _dataMap map[int32]*TestDetectEncoding + _dataList []*TestDetectEncoding +} + +func NewTestTbDetectCsvEncoding(_buf []map[string]interface{}) (*TestTbDetectCsvEncoding, error) { + _dataList := make([]*TestDetectEncoding, 0, len(_buf)) + dataMap := make(map[int32]*TestDetectEncoding) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDetectEncoding(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbDetectCsvEncoding{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbDetectCsvEncoding) GetDataMap() map[int32]*TestDetectEncoding { + return table._dataMap +} + +func (table *TestTbDetectCsvEncoding) GetDataList() []*TestDetectEncoding { + return table._dataList +} + +func (table *TestTbDetectCsvEncoding) Get(key int32) *TestDetectEncoding { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbExcelFromJson.go b/luban_examples/Projects/Go_json/gen/test.TbExcelFromJson.go new file mode 100644 index 00000000..3e2bcc63 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbExcelFromJson.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbExcelFromJson struct { + _dataMap map[int32]*TestExcelFromJson + _dataList []*TestExcelFromJson +} + +func NewTestTbExcelFromJson(_buf []map[string]interface{}) (*TestTbExcelFromJson, error) { + _dataList := make([]*TestExcelFromJson, 0, len(_buf)) + dataMap := make(map[int32]*TestExcelFromJson) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestExcelFromJson(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbExcelFromJson{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbExcelFromJson) GetDataMap() map[int32]*TestExcelFromJson { + return table._dataMap +} + +func (table *TestTbExcelFromJson) GetDataList() []*TestExcelFromJson { + return table._dataList +} + +func (table *TestTbExcelFromJson) Get(key int32) *TestExcelFromJson { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbExcelFromJsonMultiRow.go b/luban_examples/Projects/Go_json/gen/test.TbExcelFromJsonMultiRow.go new file mode 100644 index 00000000..87c8d4c8 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbExcelFromJsonMultiRow.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbExcelFromJsonMultiRow struct { + _dataMap map[int32]*TestExcelFromJsonMultiRow + _dataList []*TestExcelFromJsonMultiRow +} + +func NewTestTbExcelFromJsonMultiRow(_buf []map[string]interface{}) (*TestTbExcelFromJsonMultiRow, error) { + _dataList := make([]*TestExcelFromJsonMultiRow, 0, len(_buf)) + dataMap := make(map[int32]*TestExcelFromJsonMultiRow) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestExcelFromJsonMultiRow(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbExcelFromJsonMultiRow{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbExcelFromJsonMultiRow) GetDataMap() map[int32]*TestExcelFromJsonMultiRow { + return table._dataMap +} + +func (table *TestTbExcelFromJsonMultiRow) GetDataList() []*TestExcelFromJsonMultiRow { + return table._dataList +} + +func (table *TestTbExcelFromJsonMultiRow) Get(key int32) *TestExcelFromJsonMultiRow { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbFullTypes.go b/luban_examples/Projects/Go_json/gen/test.TbFullTypes.go new file mode 100644 index 00000000..4b7dd211 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbFullTypes.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbFullTypes struct { + _dataMap map[int32]*TestDemoType2 + _dataList []*TestDemoType2 +} + +func NewTestTbFullTypes(_buf []map[string]interface{}) (*TestTbFullTypes, error) { + _dataList := make([]*TestDemoType2, 0, len(_buf)) + dataMap := make(map[int32]*TestDemoType2) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestDemoType2(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.X4] = _v + } + } + return &TestTbFullTypes{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbFullTypes) GetDataMap() map[int32]*TestDemoType2 { + return table._dataMap +} + +func (table *TestTbFullTypes) GetDataList() []*TestDemoType2 { + return table._dataList +} + +func (table *TestTbFullTypes) Get(key int32) *TestDemoType2 { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbItem2.go b/luban_examples/Projects/Go_json/gen/test.TbItem2.go new file mode 100644 index 00000000..56077f90 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbItem2.go @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbItem2 struct { + _dataMap map[int32]interface{} + _dataList []interface{} +} + +func NewTestTbItem2(_buf []map[string]interface{}) (*TestTbItem2, error) { + _dataList := make([]interface{}, 0, len(_buf)) + dataMap := make(map[int32]interface{}) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestItemBase(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + if __v, __is := _v.(*TestItem) ; __is { + dataMap[__v.Id] = _v + continue + } + if __v, __is := _v.(*TestEquipment) ; __is { + dataMap[__v.Id] = _v + continue + } + if __v, __is := _v.(*TestDecorator) ; __is { + dataMap[__v.Id] = _v + continue + } + } + } + return &TestTbItem2{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbItem2) GetDataMap() map[int32]interface{} { + return table._dataMap +} + +func (table *TestTbItem2) GetDataList() []interface{} { + return table._dataList +} + +func (table *TestTbItem2) Get(key int32) interface{} { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbMultiIndexList.go b/luban_examples/Projects/Go_json/gen/test.TbMultiIndexList.go new file mode 100644 index 00000000..c26e8368 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbMultiIndexList.go @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbMultiIndexList struct { + _dataList []*TestMultiIndexList +} + +func NewTestTbMultiIndexList(_buf []map[string]interface{}) (*TestTbMultiIndexList, error) { + _dataList := make([]*TestMultiIndexList, 0, len(_buf)) + for _, _ele_ := range _buf { + if _v, err2 := NewTestMultiIndexList(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + } + } + return &TestTbMultiIndexList{_dataList:_dataList}, nil +} + +func (table *TestTbMultiIndexList) GetDataList() []*TestMultiIndexList { + return table._dataList +} + +func (table *TestTbMultiIndexList) Get(index int) *TestMultiIndexList { + return table._dataList[index] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbMultiRowRecord.go b/luban_examples/Projects/Go_json/gen/test.TbMultiRowRecord.go new file mode 100644 index 00000000..db8d0b3e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbMultiRowRecord.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbMultiRowRecord struct { + _dataMap map[int32]*TestMultiRowRecord + _dataList []*TestMultiRowRecord +} + +func NewTestTbMultiRowRecord(_buf []map[string]interface{}) (*TestTbMultiRowRecord, error) { + _dataList := make([]*TestMultiRowRecord, 0, len(_buf)) + dataMap := make(map[int32]*TestMultiRowRecord) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestMultiRowRecord(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbMultiRowRecord{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbMultiRowRecord) GetDataMap() map[int32]*TestMultiRowRecord { + return table._dataMap +} + +func (table *TestTbMultiRowRecord) GetDataList() []*TestMultiRowRecord { + return table._dataList +} + +func (table *TestTbMultiRowRecord) Get(key int32) *TestMultiRowRecord { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbMultiRowTitle.go b/luban_examples/Projects/Go_json/gen/test.TbMultiRowTitle.go new file mode 100644 index 00000000..11e94da2 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbMultiRowTitle.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbMultiRowTitle struct { + _dataMap map[int32]*TestMultiRowTitle + _dataList []*TestMultiRowTitle +} + +func NewTestTbMultiRowTitle(_buf []map[string]interface{}) (*TestTbMultiRowTitle, error) { + _dataList := make([]*TestMultiRowTitle, 0, len(_buf)) + dataMap := make(map[int32]*TestMultiRowTitle) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestMultiRowTitle(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbMultiRowTitle{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbMultiRowTitle) GetDataMap() map[int32]*TestMultiRowTitle { + return table._dataMap +} + +func (table *TestTbMultiRowTitle) GetDataList() []*TestMultiRowTitle { + return table._dataList +} + +func (table *TestTbMultiRowTitle) Get(key int32) *TestMultiRowTitle { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbMultiUnionIndexList.go b/luban_examples/Projects/Go_json/gen/test.TbMultiUnionIndexList.go new file mode 100644 index 00000000..785b000e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbMultiUnionIndexList.go @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbMultiUnionIndexList struct { + _dataList []*TestMultiUnionIndexList +} + +func NewTestTbMultiUnionIndexList(_buf []map[string]interface{}) (*TestTbMultiUnionIndexList, error) { + _dataList := make([]*TestMultiUnionIndexList, 0, len(_buf)) + for _, _ele_ := range _buf { + if _v, err2 := NewTestMultiUnionIndexList(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + } + } + return &TestTbMultiUnionIndexList{_dataList:_dataList}, nil +} + +func (table *TestTbMultiUnionIndexList) GetDataList() []*TestMultiUnionIndexList { + return table._dataList +} + +func (table *TestTbMultiUnionIndexList) Get(index int) *TestMultiUnionIndexList { + return table._dataList[index] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbNotIndexList.go b/luban_examples/Projects/Go_json/gen/test.TbNotIndexList.go new file mode 100644 index 00000000..4179a8ea --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbNotIndexList.go @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbNotIndexList struct { + _dataList []*TestNotIndexList +} + +func NewTestTbNotIndexList(_buf []map[string]interface{}) (*TestTbNotIndexList, error) { + _dataList := make([]*TestNotIndexList, 0, len(_buf)) + for _, _ele_ := range _buf { + if _v, err2 := NewTestNotIndexList(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + } + } + return &TestTbNotIndexList{_dataList:_dataList}, nil +} + +func (table *TestTbNotIndexList) GetDataList() []*TestNotIndexList { + return table._dataList +} + +func (table *TestTbNotIndexList) Get(index int) *TestNotIndexList { + return table._dataList[index] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbSingleton.go b/luban_examples/Projects/Go_json/gen/test.TbSingleton.go new file mode 100644 index 00000000..b35891d8 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbSingleton.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + + +import "errors" + +type TestTbSingleton struct { + _data *TestDemoSingletonType +} + +func NewTestTbSingleton(_buf []map[string]interface{}) (*TestTbSingleton, error) { + if len(_buf) != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewTestDemoSingletonType(_buf[0]); err2 != nil { + return nil, err2 + } else { + return &TestTbSingleton{_data:_v}, nil + } + } +} + +func (table *TestTbSingleton) Get() *TestDemoSingletonType { + return table._data +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestBeRef.go b/luban_examples/Projects/Go_json/gen/test.TbTestBeRef.go new file mode 100644 index 00000000..8dcaedd8 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestBeRef.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestBeRef struct { + _dataMap map[int32]*TestTestBeRef + _dataList []*TestTestBeRef +} + +func NewTestTbTestBeRef(_buf []map[string]interface{}) (*TestTbTestBeRef, error) { + _dataList := make([]*TestTestBeRef, 0, len(_buf)) + dataMap := make(map[int32]*TestTestBeRef) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestBeRef(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestBeRef{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestBeRef) GetDataMap() map[int32]*TestTestBeRef { + return table._dataMap +} + +func (table *TestTbTestBeRef) GetDataList() []*TestTestBeRef { + return table._dataList +} + +func (table *TestTbTestBeRef) Get(key int32) *TestTestBeRef { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestBeRef2.go b/luban_examples/Projects/Go_json/gen/test.TbTestBeRef2.go new file mode 100644 index 00000000..ebc717f4 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestBeRef2.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestBeRef2 struct { + _dataMap map[int32]*TestTestBeRef + _dataList []*TestTestBeRef +} + +func NewTestTbTestBeRef2(_buf []map[string]interface{}) (*TestTbTestBeRef2, error) { + _dataList := make([]*TestTestBeRef, 0, len(_buf)) + dataMap := make(map[int32]*TestTestBeRef) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestBeRef(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestBeRef2{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestBeRef2) GetDataMap() map[int32]*TestTestBeRef { + return table._dataMap +} + +func (table *TestTbTestBeRef2) GetDataList() []*TestTestBeRef { + return table._dataList +} + +func (table *TestTbTestBeRef2) Get(key int32) *TestTestBeRef { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestGlobal.go b/luban_examples/Projects/Go_json/gen/test.TbTestGlobal.go new file mode 100644 index 00000000..5bcefe24 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestGlobal.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + + +import "errors" + +type TestTbTestGlobal struct { + _data *TestTestGlobal +} + +func NewTestTbTestGlobal(_buf []map[string]interface{}) (*TestTbTestGlobal, error) { + if len(_buf) != 1 { + return nil, errors.New(" size != 1 ") + } else { + if _v, err2 := NewTestTestGlobal(_buf[0]); err2 != nil { + return nil, err2 + } else { + return &TestTbTestGlobal{_data:_v}, nil + } + } +} + +func (table *TestTbTestGlobal) Get() *TestTestGlobal { + return table._data +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestIndex.go b/luban_examples/Projects/Go_json/gen/test.TbTestIndex.go new file mode 100644 index 00000000..d7536830 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestIndex.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestIndex struct { + _dataMap map[int32]*TestTestIndex + _dataList []*TestTestIndex +} + +func NewTestTbTestIndex(_buf []map[string]interface{}) (*TestTbTestIndex, error) { + _dataList := make([]*TestTestIndex, 0, len(_buf)) + dataMap := make(map[int32]*TestTestIndex) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestIndex(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestIndex{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestIndex) GetDataMap() map[int32]*TestTestIndex { + return table._dataMap +} + +func (table *TestTbTestIndex) GetDataList() []*TestTestIndex { + return table._dataList +} + +func (table *TestTbTestIndex) Get(key int32) *TestTestIndex { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestMap.go b/luban_examples/Projects/Go_json/gen/test.TbTestMap.go new file mode 100644 index 00000000..36fe295d --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestMap.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestMap struct { + _dataMap map[int32]*TestTestMap + _dataList []*TestTestMap +} + +func NewTestTbTestMap(_buf []map[string]interface{}) (*TestTbTestMap, error) { + _dataList := make([]*TestTestMap, 0, len(_buf)) + dataMap := make(map[int32]*TestTestMap) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestMap(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestMap{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestMap) GetDataMap() map[int32]*TestTestMap { + return table._dataMap +} + +func (table *TestTbTestMap) GetDataList() []*TestTestMap { + return table._dataList +} + +func (table *TestTbTestMap) Get(key int32) *TestTestMap { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestMapper.go b/luban_examples/Projects/Go_json/gen/test.TbTestMapper.go new file mode 100644 index 00000000..04d8f3a4 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestMapper.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestMapper struct { + _dataMap map[int32]*TestTestMapper + _dataList []*TestTestMapper +} + +func NewTestTbTestMapper(_buf []map[string]interface{}) (*TestTbTestMapper, error) { + _dataList := make([]*TestTestMapper, 0, len(_buf)) + dataMap := make(map[int32]*TestTestMapper) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestMapper(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestMapper{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestMapper) GetDataMap() map[int32]*TestTestMapper { + return table._dataMap +} + +func (table *TestTbTestMapper) GetDataList() []*TestTestMapper { + return table._dataList +} + +func (table *TestTbTestMapper) Get(key int32) *TestTestMapper { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestMultiColumn.go b/luban_examples/Projects/Go_json/gen/test.TbTestMultiColumn.go new file mode 100644 index 00000000..51cdb3ba --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestMultiColumn.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestMultiColumn struct { + _dataMap map[int32]*TestTestMultiColumn + _dataList []*TestTestMultiColumn +} + +func NewTestTbTestMultiColumn(_buf []map[string]interface{}) (*TestTbTestMultiColumn, error) { + _dataList := make([]*TestTestMultiColumn, 0, len(_buf)) + dataMap := make(map[int32]*TestTestMultiColumn) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestMultiColumn(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestMultiColumn{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestMultiColumn) GetDataMap() map[int32]*TestTestMultiColumn { + return table._dataMap +} + +func (table *TestTbTestMultiColumn) GetDataList() []*TestTestMultiColumn { + return table._dataList +} + +func (table *TestTbTestMultiColumn) Get(key int32) *TestTestMultiColumn { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestNull.go b/luban_examples/Projects/Go_json/gen/test.TbTestNull.go new file mode 100644 index 00000000..7146e5e6 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestNull.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestNull struct { + _dataMap map[int32]*TestTestNull + _dataList []*TestTestNull +} + +func NewTestTbTestNull(_buf []map[string]interface{}) (*TestTbTestNull, error) { + _dataList := make([]*TestTestNull, 0, len(_buf)) + dataMap := make(map[int32]*TestTestNull) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestNull(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestNull{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestNull) GetDataMap() map[int32]*TestTestNull { + return table._dataMap +} + +func (table *TestTbTestNull) GetDataList() []*TestTestNull { + return table._dataList +} + +func (table *TestTbTestNull) Get(key int32) *TestTestNull { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestRef.go b/luban_examples/Projects/Go_json/gen/test.TbTestRef.go new file mode 100644 index 00000000..2181d25c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestRef.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestRef struct { + _dataMap map[int32]*TestTestRef + _dataList []*TestTestRef +} + +func NewTestTbTestRef(_buf []map[string]interface{}) (*TestTbTestRef, error) { + _dataList := make([]*TestTestRef, 0, len(_buf)) + dataMap := make(map[int32]*TestTestRef) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestRef(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestRef{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestRef) GetDataMap() map[int32]*TestTestRef { + return table._dataMap +} + +func (table *TestTbTestRef) GetDataList() []*TestTestRef { + return table._dataList +} + +func (table *TestTbTestRef) Get(key int32) *TestTestRef { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestScriptableObject.go b/luban_examples/Projects/Go_json/gen/test.TbTestScriptableObject.go new file mode 100644 index 00000000..e1a51c9e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestScriptableObject.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestScriptableObject struct { + _dataMap map[int32]*TestTestScriptableObject + _dataList []*TestTestScriptableObject +} + +func NewTestTbTestScriptableObject(_buf []map[string]interface{}) (*TestTbTestScriptableObject, error) { + _dataList := make([]*TestTestScriptableObject, 0, len(_buf)) + dataMap := make(map[int32]*TestTestScriptableObject) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestScriptableObject(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestScriptableObject{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestScriptableObject) GetDataMap() map[int32]*TestTestScriptableObject { + return table._dataMap +} + +func (table *TestTbTestScriptableObject) GetDataList() []*TestTestScriptableObject { + return table._dataList +} + +func (table *TestTbTestScriptableObject) Get(key int32) *TestTestScriptableObject { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestSet.go b/luban_examples/Projects/Go_json/gen/test.TbTestSet.go new file mode 100644 index 00000000..b25e6ba3 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestSet.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestSet struct { + _dataMap map[int32]*TestTestSet + _dataList []*TestTestSet +} + +func NewTestTbTestSet(_buf []map[string]interface{}) (*TestTbTestSet, error) { + _dataList := make([]*TestTestSet, 0, len(_buf)) + dataMap := make(map[int32]*TestTestSet) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestSet(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestSet{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestSet) GetDataMap() map[int32]*TestTestSet { + return table._dataMap +} + +func (table *TestTbTestSet) GetDataList() []*TestTestSet { + return table._dataList +} + +func (table *TestTbTestSet) Get(key int32) *TestTestSet { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestSize.go b/luban_examples/Projects/Go_json/gen/test.TbTestSize.go new file mode 100644 index 00000000..bed96a2b --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestSize.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestSize struct { + _dataMap map[int32]*TestTestSize + _dataList []*TestTestSize +} + +func NewTestTbTestSize(_buf []map[string]interface{}) (*TestTbTestSize, error) { + _dataList := make([]*TestTestSize, 0, len(_buf)) + dataMap := make(map[int32]*TestTestSize) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestSize(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestSize{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestSize) GetDataMap() map[int32]*TestTestSize { + return table._dataMap +} + +func (table *TestTbTestSize) GetDataList() []*TestTestSize { + return table._dataList +} + +func (table *TestTbTestSize) Get(key int32) *TestTestSize { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.TbTestString.go b/luban_examples/Projects/Go_json/gen/test.TbTestString.go new file mode 100644 index 00000000..2254967f --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TbTestString.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +type TestTbTestString struct { + _dataMap map[string]*TestTestString + _dataList []*TestTestString +} + +func NewTestTbTestString(_buf []map[string]interface{}) (*TestTbTestString, error) { + _dataList := make([]*TestTestString, 0, len(_buf)) + dataMap := make(map[string]*TestTestString) + + for _, _ele_ := range _buf { + if _v, err2 := NewTestTestString(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &TestTbTestString{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *TestTbTestString) GetDataMap() map[string]*TestTestString { + return table._dataMap +} + +func (table *TestTbTestString) GetDataList() []*TestTestString { + return table._dataList +} + +func (table *TestTbTestString) Get(key string) *TestTestString { + return table._dataMap[key] +} + + diff --git a/luban_examples/Projects/Go_json/gen/test.Test3.go b/luban_examples/Projects/Go_json/gen/test.Test3.go new file mode 100644 index 00000000..6096dde1 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.Test3.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTest3 struct { + X int32 + Y int32 +} + +const TypeId_TestTest3 = 638540133 + +func (*TestTest3) GetTypeId() int32 { + return 638540133 +} + +func NewTestTest3(_buf map[string]interface{}) (_v *TestTest3, err error) { + _v = &TestTest3{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestBeRef.go b/luban_examples/Projects/Go_json/gen/test.TestBeRef.go new file mode 100644 index 00000000..d762f4ea --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestBeRef.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestBeRef struct { + Id int32 + Count int32 +} + +const TypeId_TestTestBeRef = 1934403938 + +func (*TestTestBeRef) GetTypeId() int32 { + return 1934403938 +} + +func NewTestTestBeRef(_buf map[string]interface{}) (_v *TestTestBeRef, err error) { + _v = &TestTestBeRef{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["count"].(float64); !_ok_ { err = errors.New("count error"); return }; _v.Count = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestExcelBean1.go b/luban_examples/Projects/Go_json/gen/test.TestExcelBean1.go new file mode 100644 index 00000000..1f97f57e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestExcelBean1.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestExcelBean1 struct { + X1 int32 + X2 string + X3 int32 + X4 float32 +} + +const TypeId_TestTestExcelBean1 = -1738345160 + +func (*TestTestExcelBean1) GetTypeId() int32 { + return -1738345160 +} + +func NewTestTestExcelBean1(_buf map[string]interface{}) (_v *TestTestExcelBean1, err error) { + _v = &TestTestExcelBean1{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; if _v.X2, _ok_ = _buf["x2"].(string); !_ok_ { err = errors.New("x2 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestGlobal.go b/luban_examples/Projects/Go_json/gen/test.TestGlobal.go new file mode 100644 index 00000000..6f00c105 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestGlobal.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestGlobal struct { + UnlockEquip int32 + UnlockHero int32 +} + +const TypeId_TestTestGlobal = -12548655 + +func (*TestTestGlobal) GetTypeId() int32 { + return -12548655 +} + +func NewTestTestGlobal(_buf map[string]interface{}) (_v *TestTestGlobal, err error) { + _v = &TestTestGlobal{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["unlock_equip"].(float64); !_ok_ { err = errors.New("unlock_equip error"); return }; _v.UnlockEquip = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["unlock_hero"].(float64); !_ok_ { err = errors.New("unlock_hero error"); return }; _v.UnlockHero = int32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestIndex.go b/luban_examples/Projects/Go_json/gen/test.TestIndex.go new file mode 100644 index 00000000..b1db57b1 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestIndex.go @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestIndex struct { + Id int32 + Eles []*TestDemoType1 +} + +const TypeId_TestTestIndex = 1941154020 + +func (*TestTestIndex) GetTypeId() int32 { + return 1941154020 +} + +func NewTestTestIndex(_buf map[string]interface{}) (_v *TestTestIndex, err error) { + _v = &TestTestIndex{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["eles"].([]interface{}); !_ok_ { err = errors.New("eles error"); return } + + _v.Eles = make([]*TestDemoType1, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *TestDemoType1 + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = NewTestDemoType1(_x_); err != nil { return } } + _v.Eles = append(_v.Eles, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestMap.go b/luban_examples/Projects/Go_json/gen/test.TestMap.go new file mode 100644 index 00000000..6f643fa3 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestMap.go @@ -0,0 +1,102 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestMap struct { + Id int32 + X1 map[int32]int32 + X2 map[int64]int32 + X3 map[string]int32 + X4 map[int32]int32 +} + +const TypeId_TestTestMap = -543227410 + +func (*TestTestMap) GetTypeId() int32 { + return -543227410 +} + +func NewTestTestMap(_buf map[string]interface{}) (_v *TestTestMap, err error) { + _v = &TestTestMap{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x1"].([]interface{}); !_ok_ { err = errors.New("x1 error"); return } + + _v.X1 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("x1 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.X1[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x2"].([]interface{}); !_ok_ { err = errors.New("x2 error"); return } + + _v.X2 = make(map[int64]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("x2 error"); return } + var _key_ int64 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int64(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.X2[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x3"].([]interface{}); !_ok_ { err = errors.New("x3 error"); return } + + _v.X3 = make(map[string]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("x3 error"); return } + var _key_ string + { if _key_, _ok_ = _kv_[0].(string); !_ok_ { err = errors.New("_key_ error"); return } } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.X3[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x4"].([]interface{}); !_ok_ { err = errors.New("x4 error"); return } + + _v.X4 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("x4 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.X4[_key_] = _value_ + } + } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestMapper.go b/luban_examples/Projects/Go_json/gen/test.TestMapper.go new file mode 100644 index 00000000..8418a860 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestMapper.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestMapper struct { + Id int32 + AudioType int32 + V2 *vec2 +} + +const TypeId_TestTestMapper = 149110895 + +func (*TestTestMapper) GetTypeId() int32 { + return 149110895 +} + +func NewTestTestMapper(_buf map[string]interface{}) (_v *TestTestMapper, err error) { + _v = &TestTestMapper{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["audio_type"].(float64); !_ok_ { err = errors.New("audio_type error"); return }; _v.AudioType = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v2"].(map[string]interface{}); !_ok_ { err = errors.New("v2 error"); return }; if _v.V2, err = Newvec2(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestMultiColumn.go b/luban_examples/Projects/Go_json/gen/test.TestMultiColumn.go new file mode 100644 index 00000000..b46d82c0 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestMultiColumn.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestMultiColumn struct { + Id int32 + A *TestFoo + B *TestFoo + C *TestFoo +} + +const TypeId_TestTestMultiColumn = -294473599 + +func (*TestTestMultiColumn) GetTypeId() int32 { + return -294473599 +} + +func NewTestTestMultiColumn(_buf map[string]interface{}) (_v *TestTestMultiColumn, err error) { + _v = &TestTestMultiColumn{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["a"].(map[string]interface{}); !_ok_ { err = errors.New("a error"); return }; if _v.A, err = NewTestFoo(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["b"].(map[string]interface{}); !_ok_ { err = errors.New("b error"); return }; if _v.B, err = NewTestFoo(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["c"].(map[string]interface{}); !_ok_ { err = errors.New("c error"); return }; if _v.C, err = NewTestFoo(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestNull.go b/luban_examples/Projects/Go_json/gen/test.TestNull.go new file mode 100644 index 00000000..77cba5cf --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestNull.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestNull struct { + Id int32 + X1 *int32 + X2 *int32 + X3 *TestDemoType1 + X4 interface{} + S1 *string + S2 *string +} + +const TypeId_TestTestNull = 339868469 + +func (*TestTestNull) GetTypeId() int32 { + return 339868469 +} + +func NewTestTestNull(_buf map[string]interface{}) (_v *TestTestNull, err error) { + _v = &TestTestNull{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var __json_x1__ interface{}; if __json_x1__, _ok_ = _buf["x1"]; !_ok_ || __json_x1__ == nil { _v.X1 = nil } else { var __x__ int32; { var _ok_ bool; var _x_ float64; if _x_, _ok_ = __json_x1__.(float64); !_ok_ { err = errors.New("__x__ error"); return }; __x__ = int32(_x_) }; _v.X1 = &__x__ }} + { var _ok_ bool; var __json_x2__ interface{}; if __json_x2__, _ok_ = _buf["x2"]; !_ok_ || __json_x2__ == nil { _v.X2 = nil } else { var __x__ int32; { var _ok_ bool; var _x_ float64; if _x_, _ok_ = __json_x2__.(float64); !_ok_ { err = errors.New("__x__ error"); return }; __x__ = int32(_x_) }; _v.X2 = &__x__ }} + { var _ok_ bool; var __json_x3__ interface{}; if __json_x3__, _ok_ = _buf["x3"]; !_ok_ || __json_x3__ == nil { _v.X3 = nil } else { var __x__ *TestDemoType1; { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = __json_x3__.(map[string]interface{}); !_ok_ { err = errors.New("__x__ error"); return }; if __x__, err = NewTestDemoType1(_x_); err != nil { return } }; _v.X3 = __x__ }} + { var _ok_ bool; var __json_x4__ interface{}; if __json_x4__, _ok_ = _buf["x4"]; !_ok_ || __json_x4__ == nil { _v.X4 = nil } else { var __x__ interface{}; { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = __json_x4__.(map[string]interface{}); !_ok_ { err = errors.New("__x__ error"); return }; if __x__, err = NewTestDemoDynamic(_x_); err != nil { return } }; _v.X4 = __x__ }} + { var _ok_ bool; var __json_s1__ interface{}; if __json_s1__, _ok_ = _buf["s1"]; !_ok_ || __json_s1__ == nil { _v.S1 = nil } else { var __x__ string; { if __x__, _ok_ = __json_s1__.(string); !_ok_ { err = errors.New("__x__ error"); return } }; _v.S1 = &__x__ }} + { var _ok_ bool; var __json_s2__ interface{}; if __json_s2__, _ok_ = _buf["s2"]; !_ok_ || __json_s2__ == nil { _v.S2 = nil } else { var __x__ string; { if __x__, _ok_ = __json_s2__.(string); !_ok_ { err = errors.New("__x__ error"); return } }; _v.S2 = &__x__ }} + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestRef.go b/luban_examples/Projects/Go_json/gen/test.TestRef.go new file mode 100644 index 00000000..20db51e1 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestRef.go @@ -0,0 +1,180 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestRef struct { + Id int32 + X1 int32 + X12 int32 + X2 int32 + X3 int32 + X4 int32 + A1 []int32 + A2 []int32 + B1 []int32 + B2 []int32 + C1 []int32 + C2 []int32 + D1 map[int32]int32 + D2 map[int32]int32 + E1 int32 + E2 int64 + E3 string + F1 int32 + F2 int64 + F3 string + S1 interface{} +} + +const TypeId_TestTestRef = -543222491 + +func (*TestTestRef) GetTypeId() int32 { + return -543222491 +} + +func NewTestTestRef(_buf map[string]interface{}) (_v *TestTestRef, err error) { + _v = &TestTestRef{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1_2"].(float64); !_ok_ { err = errors.New("x1_2 error"); return }; _v.X12 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["a1"].([]interface{}); !_ok_ { err = errors.New("a1 error"); return } + + _v.A1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.A1 = append(_v.A1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["a2"].([]interface{}); !_ok_ { err = errors.New("a2 error"); return } + + _v.A2 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.A2 = append(_v.A2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["b1"].([]interface{}); !_ok_ { err = errors.New("b1 error"); return } + + _v.B1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.B1 = append(_v.B1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["b2"].([]interface{}); !_ok_ { err = errors.New("b2 error"); return } + + _v.B2 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.B2 = append(_v.B2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["c1"].([]interface{}); !_ok_ { err = errors.New("c1 error"); return } + + _v.C1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.C1 = append(_v.C1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["c2"].([]interface{}); !_ok_ { err = errors.New("c2 error"); return } + + _v.C2 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.C2 = append(_v.C2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["d1"].([]interface{}); !_ok_ { err = errors.New("d1 error"); return } + + _v.D1 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("d1 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.D1[_key_] = _value_ + } + } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["d2"].([]interface{}); !_ok_ { err = errors.New("d2 error"); return } + + _v.D2 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("d2 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.D2[_key_] = _value_ + } + } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["e1"].(float64); !_ok_ { err = errors.New("e1 error"); return }; _v.E1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["e2"].(float64); !_ok_ { err = errors.New("e2 error"); return }; _v.E2 = int64(_tempNum_) } + { var _ok_ bool; if _v.E3, _ok_ = _buf["e3"].(string); !_ok_ { err = errors.New("e3 error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["f1"].(float64); !_ok_ { err = errors.New("f1 error"); return }; _v.F1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["f2"].(float64); !_ok_ { err = errors.New("f2 error"); return }; _v.F2 = int64(_tempNum_) } + { var _ok_ bool; if _v.F3, _ok_ = _buf["f3"].(string); !_ok_ { err = errors.New("f3 error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["s1"].(map[string]interface{}); !_ok_ { err = errors.New("s1 error"); return }; if _v.S1, err = NewTestRefDynamicBase(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestRow.go b/luban_examples/Projects/Go_json/gen/test.TestRow.go new file mode 100644 index 00000000..abf880b1 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestRow.go @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestRow struct { + X int32 + Y bool + Z string + A *TestTest3 + B []int32 +} + +const TypeId_TestTestRow = -543222164 + +func (*TestTestRow) GetTypeId() int32 { + return -543222164 +} + +func NewTestTestRow(_buf map[string]interface{}) (_v *TestTestRow, err error) { + _v = &TestTestRow{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = int32(_tempNum_) } + { var _ok_ bool; if _v.Y, _ok_ = _buf["y"].(bool); !_ok_ { err = errors.New("y error"); return } } + { var _ok_ bool; if _v.Z, _ok_ = _buf["z"].(string); !_ok_ { err = errors.New("z error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["a"].(map[string]interface{}); !_ok_ { err = errors.New("a error"); return }; if _v.A, err = NewTestTest3(_x_); err != nil { return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["b"].([]interface{}); !_ok_ { err = errors.New("b error"); return } + + _v.B = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.B = append(_v.B, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestScriptableObject.go b/luban_examples/Projects/Go_json/gen/test.TestScriptableObject.go new file mode 100644 index 00000000..63171cbe --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestScriptableObject.go @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestScriptableObject struct { + Id int32 + Desc string + Rate float32 + Num int32 + V2 *vec2 + V3 *vec3 + V4 *vec4 +} + +const TypeId_TestTestScriptableObject = -1896814350 + +func (*TestTestScriptableObject) GetTypeId() int32 { + return -1896814350 +} + +func NewTestTestScriptableObject(_buf map[string]interface{}) (_v *TestTestScriptableObject, err error) { + _v = &TestTestScriptableObject{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["rate"].(float64); !_ok_ { err = errors.New("rate error"); return }; _v.Rate = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v2"].(map[string]interface{}); !_ok_ { err = errors.New("v2 error"); return }; if _v.V2, err = Newvec2(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v3"].(map[string]interface{}); !_ok_ { err = errors.New("v3 error"); return }; if _v.V3, err = Newvec3(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v4"].(map[string]interface{}); !_ok_ { err = errors.New("v4 error"); return }; if _v.V4, err = Newvec4(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestSet.go b/luban_examples/Projects/Go_json/gen/test.TestSet.go new file mode 100644 index 00000000..d32c40de --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestSet.go @@ -0,0 +1,92 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestSet struct { + Id int32 + X0 string + X1 []int32 + X2 []int64 + X3 []string + X4 []int32 +} + +const TypeId_TestTestSet = -543221516 + +func (*TestTestSet) GetTypeId() int32 { + return -543221516 +} + +func NewTestTestSet(_buf map[string]interface{}) (_v *TestTestSet, err error) { + _v = &TestTestSet{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; if _v.X0, _ok_ = _buf["x0"].(string); !_ok_ { err = errors.New("x0 error"); return } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x1"].([]interface{}); !_ok_ { err = errors.New("x1 error"); return } + + _v.X1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.X1 = append(_v.X1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x2"].([]interface{}); !_ok_ { err = errors.New("x2 error"); return } + + _v.X2 = make([]int64, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int64 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int64(_x_) } + _v.X2 = append(_v.X2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x3"].([]interface{}); !_ok_ { err = errors.New("x3 error"); return } + + _v.X3 = make([]string, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ string + { if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } } + _v.X3 = append(_v.X3, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x4"].([]interface{}); !_ok_ { err = errors.New("x4 error"); return } + + _v.X4 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.X4 = append(_v.X4, _list_v_) + } + } + + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestSize.go b/luban_examples/Projects/Go_json/gen/test.TestSize.go new file mode 100644 index 00000000..c2a7752c --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestSize.go @@ -0,0 +1,93 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestSize struct { + Id int32 + X1 []int32 + X2 []int32 + X3 []int32 + X4 map[int32]int32 +} + +const TypeId_TestTestSize = 340006319 + +func (*TestTestSize) GetTypeId() int32 { + return 340006319 +} + +func NewTestTestSize(_buf map[string]interface{}) (_v *TestTestSize, err error) { + _v = &TestTestSize{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x1"].([]interface{}); !_ok_ { err = errors.New("x1 error"); return } + + _v.X1 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.X1 = append(_v.X1, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x2"].([]interface{}); !_ok_ { err = errors.New("x2 error"); return } + + _v.X2 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.X2 = append(_v.X2, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x3"].([]interface{}); !_ok_ { err = errors.New("x3 error"); return } + + _v.X3 = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.X3 = append(_v.X3, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["x4"].([]interface{}); !_ok_ { err = errors.New("x4 error"); return } + + _v.X4 = make(map[int32]int32) + + for _, _e_ := range _arr_ { + var _kv_ []interface{} + if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("x4 error"); return } + var _key_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) } + var _value_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) } + _v.X4[_key_] = _value_ + } + } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.TestString.go b/luban_examples/Projects/Go_json/gen/test.TestString.go new file mode 100644 index 00000000..480ac0d7 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.TestString.go @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestTestString struct { + Id string + S1 string + S2 string + Cs1 *TestCompactString + Cs2 *TestCompactString +} + +const TypeId_TestTestString = 338485823 + +func (*TestTestString) GetTypeId() int32 { + return 338485823 +} + +func NewTestTestString(_buf map[string]interface{}) (_v *TestTestString, err error) { + _v = &TestTestString{} + { var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } } + { var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } } + { var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["cs1"].(map[string]interface{}); !_ok_ { err = errors.New("cs1 error"); return }; if _v.Cs1, err = NewTestCompactString(_x_); err != nil { return } } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["cs2"].(map[string]interface{}); !_ok_ { err = errors.New("cs2 error"); return }; if _v.Cs2, err = NewTestCompactString(_x_); err != nil { return } } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test.login.RoleInfo.go b/luban_examples/Projects/Go_json/gen/test.login.RoleInfo.go new file mode 100644 index 00000000..e2df4adc --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test.login.RoleInfo.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type TestLoginRoleInfo struct { + X1 int32 + X3 int32 + RoleId int64 +} + +const TypeId_TestLoginRoleInfo = -989153243 + +func (*TestLoginRoleInfo) GetTypeId() int32 { + return -989153243 +} + +func NewTestLoginRoleInfo(_buf map[string]interface{}) (_v *TestLoginRoleInfo, err error) { + _v = &TestLoginRoleInfo{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["role_id"].(float64); !_ok_ { err = errors.New("role_id error"); return }; _v.RoleId = int64(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/test2.Rectangle.go b/luban_examples/Projects/Go_json/gen/test2.Rectangle.go new file mode 100644 index 00000000..ac8e874e --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/test2.Rectangle.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type Test2Rectangle struct { + Width float32 + Height float32 +} + +const TypeId_Test2Rectangle = 694982337 + +func (*Test2Rectangle) GetTypeId() int32 { + return 694982337 +} + +func NewTest2Rectangle(_buf map[string]interface{}) (_v *Test2Rectangle, err error) { + _v = &Test2Rectangle{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["width"].(float64); !_ok_ { err = errors.New("width error"); return }; _v.Width = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["height"].(float64); !_ok_ { err = errors.New("height error"); return }; _v.Height = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/vec2.go b/luban_examples/Projects/Go_json/gen/vec2.go new file mode 100644 index 00000000..95939c8d --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/vec2.go @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type vec2 struct { + X float32 + Y float32 +} + +const TypeId_vec2 = 3615518 + +func (*vec2) GetTypeId() int32 { + return 3615518 +} + +func Newvec2(_buf map[string]interface{}) (_v *vec2, err error) { + _v = &vec2{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/vec3.go b/luban_examples/Projects/Go_json/gen/vec3.go new file mode 100644 index 00000000..a283b926 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/vec3.go @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type vec3 struct { + X float32 + Y float32 + Z float32 +} + +const TypeId_vec3 = 3615519 + +func (*vec3) GetTypeId() int32 { + return 3615519 +} + +func Newvec3(_buf map[string]interface{}) (_v *vec3, err error) { + _v = &vec3{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["z"].(float64); !_ok_ { err = errors.New("z error"); return }; _v.Z = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/gen/vec4.go b/luban_examples/Projects/Go_json/gen/vec4.go new file mode 100644 index 00000000..d785d140 --- /dev/null +++ b/luban_examples/Projects/Go_json/gen/vec4.go @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + + +import "errors" + +type vec4 struct { + X float32 + Y float32 + Z float32 + W float32 +} + +const TypeId_vec4 = 3615520 + +func (*vec4) GetTypeId() int32 { + return 3615520 +} + +func Newvec4(_buf map[string]interface{}) (_v *vec4, err error) { + _v = &vec4{} + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x"].(float64); !_ok_ { err = errors.New("x error"); return }; _v.X = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["z"].(float64); !_ok_ { err = errors.New("z error"); return }; _v.Z = float32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["w"].(float64); !_ok_ { err = errors.New("w error"); return }; _v.W = float32(_tempNum_) } + return +} + diff --git a/luban_examples/Projects/Go_json/go.mod b/luban_examples/Projects/Go_json/go.mod new file mode 100644 index 00000000..21cc4823 --- /dev/null +++ b/luban_examples/Projects/Go_json/go.mod @@ -0,0 +1,3 @@ +module demo + +go 1.18 diff --git a/luban_examples/Projects/Go_json/main.go b/luban_examples/Projects/Go_json/main.go new file mode 100644 index 00000000..ea4a2841 --- /dev/null +++ b/luban_examples/Projects/Go_json/main.go @@ -0,0 +1,29 @@ +package main + +import ( + "demo/gen" + "encoding/json" + "fmt" + "io/ioutil" +) + +func loader(file string) ([]map[string]interface{}, error) { + if bytes, err := ioutil.ReadFile("../GenerateDatas/json/" + file + ".json"); err != nil { + return nil, err + } else { + jsonData := make([]map[string]interface{}, 0) + if err = json.Unmarshal(bytes, &jsonData); err != nil { + return nil, err + } + return jsonData, nil + } +} + +func main() { + if tables, err := cfg.NewTables(loader); err != nil { + println(err.Error()) + } else { + fmt.Printf("%v", tables.TbItem.GetDataList()[0]) + } + +} diff --git a/luban_examples/Projects/Java_bin/gen.bat b/luban_examples/Projects/Java_bin/gen.bat new file mode 100644 index 00000000..2ff8f157 --- /dev/null +++ b/luban_examples/Projects/Java_bin/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c java-bin ^ + -d bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=src/main/gen/cfg ^ + -x outputDataDir=..\GenerateDatas\bytes ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Java_bin/src/main/corelib/luban/AbstractBean.java b/luban_examples/Projects/Java_bin/src/main/corelib/luban/AbstractBean.java new file mode 100644 index 00000000..a55490d2 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/corelib/luban/AbstractBean.java @@ -0,0 +1,5 @@ +package luban; + +public abstract class AbstractBean { + public abstract int getTypeId(); +} diff --git a/luban_examples/Projects/Java_bin/src/main/corelib/luban/ByteBuf.java b/luban_examples/Projects/Java_bin/src/main/corelib/luban/ByteBuf.java new file mode 100644 index 00000000..3a6109f5 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/corelib/luban/ByteBuf.java @@ -0,0 +1,694 @@ +package luban; + +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.Stack; + +public class ByteBuf { + + public static final byte[] EMPTY_BYTES = new byte[0]; + private static final Charset MARSHAL_CHARSET = StandardCharsets.UTF_8; + private byte[] data; + private int beginPos; + private int endPos; + private int capacity; + + public ByteBuf() { + this(EMPTY_BYTES, 0, 0); + } + + public ByteBuf(int initCapacity) { + this(new byte[initCapacity], 0, 0); + } + + public ByteBuf(byte[] data) { + this(data, 0, data.length); + } + + public ByteBuf(byte[] data, int beginPos, int endPos) { + this.data = data; + this.beginPos = beginPos; + this.endPos = endPos; + this.capacity = data.length; + } + +// public static Octets wrap(byte[] bytes) { +// return new Octets(bytes, 0, bytes.length); +// } +// +// public static Octets wrap(byte[] bytes, int beginPos, int len) { +// return new Octets(bytes, beginPos, beginPos + len); +// } + + private final static ThreadLocal> pool = ThreadLocal.withInitial(Stack::new); + public static ByteBuf alloc() { + Stack p = pool.get(); + if(!p.empty()) { + return p.pop(); + } else { + return new ByteBuf(); + } + } + + public static ByteBuf free(ByteBuf os) { + os.clear(); + return pool.get().push(os); + } + + public void replace(byte[] data, int beginPos, int endPos) { + this.data = data; + this.beginPos = beginPos; + this.endPos = endPos; + this.capacity = data.length; + } + + public void replace(byte[] data) { + this.data = data; + this.beginPos = 0; + this.endPos = this.capacity = data.length; + } + + public void sureRead(int n) { + if (beginPos + n > endPos) { + throw new SerializationException("read not enough"); + } + } + + private int chooseNewSize(int originSize, int needSize) { + int newSize = Math.max(originSize, 12); + while (newSize < needSize) { + newSize = newSize * 3 / 2; + } + return newSize; + } + + public void sureWrite(int n) { + if (endPos + n > capacity) { + int curSize = endPos - beginPos; + int needSize = curSize + n; + if (needSize > capacity) { + capacity = chooseNewSize(capacity, needSize); + byte[] newData = new byte[capacity]; + System.arraycopy(data, beginPos, newData, 0, curSize); + data = newData; + } else { + System.arraycopy(data, beginPos, data, 0, curSize); + } + beginPos = 0; + endPos = curSize; + } + } + + public void writeSize(int x) { + writeCompactUint(x); + } + + public int readSize() { + return readCompactUint(); + } + + public void writeShort(short x) { + writeCompactShort(x); + } + + public short readShort() { + return readCompactShort(); + } + + public short readCompactShort() { + sureRead(1); + int h = (data[beginPos] & 0xff); + if (h < 0x80) { + beginPos++; + return (short)h; + } else if (h < 0xc0) { + sureRead(2); + int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff); + beginPos += 2; + return (short)x; + } else if( (h == 0xff)){ + sureRead(3); + int x = ((data[beginPos + 1] & 0xff) << 8) | (data[beginPos + 2] & 0xff); + beginPos += 3; + return (short)x; + } else { + throw new SerializationException("exceed max short"); + } + } + + public void writeCompactShort(short x) { + if (x >= 0) { + if (x < 0x80) { + sureWrite(1); + data[endPos++] = (byte) x; + return; + } else if (x < 0x4000) { + sureWrite(2); + data[endPos + 1] = (byte) x; + data[endPos] = (byte) ((x >> 8) | 0x80); + endPos += 2; + return; + } + } + sureWrite(3); + data[endPos] = (byte) 0xff; + data[endPos + 2] = (byte) x; + data[endPos + 1] = (byte) (x >> 8); + endPos += 3; + } + + public int readCompactInt() { + sureRead(1); + int h = data[beginPos] & 0xff; + if (h < 0x80) { + beginPos++; + return h; + } else if (h < 0xc0) { + sureRead(2); + int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff); + beginPos += 2; + return x; + } else if (h < 0xe0) { + sureRead(3); + int x = ((h & 0x1f) << 16) | ((data[beginPos + 1] & 0xff) << 8) | (data[beginPos + 2] & 0xff); + beginPos += 3; + return x; + } else if (h < 0xf0) { + sureRead(4); + int x = ((h & 0x0f) << 24) | ((data[beginPos + 1] & 0xff) << 16) | ((data[beginPos + 2] & 0xff) << 8) | (data[beginPos + 3] & 0xff); + beginPos += 4; + return x; + } else { + sureRead(5); + int x = ((data[beginPos + 1] & 0xff) << 24) | ((data[beginPos + 2] & 0xff) << 16) | ((data[beginPos + 3] & 0xff) << 8) | (data[beginPos + 4] & 0xff); + beginPos += 5; + return x; + } + } + + public void writeCompactInt(int x) { + if (x >= 0) { + if (x < 0x80) { + sureWrite(1); + data[endPos++] = (byte) x; + return; + } else if (x < 0x4000) { + sureWrite(2); + data[endPos + 1] = (byte) x; + data[endPos] = (byte) ((x >> 8) | 0x80); + endPos += 2; + return; + } else if (x < 0x200000) { + sureWrite(3); + data[endPos + 2] = (byte) x; + data[endPos + 1] = (byte) (x >> 8); + data[endPos] = (byte) ((x >> 16) | 0xc0); + endPos += 3; + return; + } else if (x < 0x10000000) { + sureWrite(4); + data[endPos + 3] = (byte) x; + data[endPos + 2] = (byte) (x >> 8); + data[endPos + 1] = (byte) (x >> 16); + data[endPos] = (byte) ((x >> 24) | 0xe0); + endPos += 4; + return; + } + } + sureWrite(5); + data[endPos] = (byte) 0xf0; + data[endPos + 4] = (byte) x; + data[endPos + 3] = (byte) (x >> 8); + data[endPos + 2] = (byte) (x >> 16); + data[endPos + 1] = (byte) (x >> 24); + endPos += 5; + } + + public long readCompactLong() { + sureRead(1); + int h = data[beginPos] & 0xff; + if (h < 0x80) { + beginPos++; + return h; + } else if (h < 0xc0) { + sureRead(2); + int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff); + beginPos += 2; + return x; + } else if (h < 0xe0) { + sureRead(3); + int x = ((h & 0x1f) << 16) | ((data[(beginPos + 1)] & 0xff) << 8) | (data[(beginPos + 2)] & 0xff); + beginPos += 3; + return x; + } else if (h < 0xf0) { + sureRead(4); + int x = ((h & 0x0f) << 24) | ((data[(beginPos + 1)] & 0xff) << 16) | ((data[(beginPos + 2)] & 0xff) << 8) | (data[(beginPos + 3)] & 0xff); + beginPos += 4; + return x; + } else if (h < 0xf8) { + sureRead(5); + int xl = (data[(beginPos + 1)] << 24) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 8) | (data[(beginPos + 4)] & 0xff); + int xh = h & 0x07; + beginPos += 5; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else if (h < 0xfc) { + sureRead(6); + int xl = (data[(beginPos + 2)] << 24) | ((data[(beginPos + 3)] & 0xff) << 16) | ((data[(beginPos + 4)] & 0xff) << 8) | (data[(beginPos + 5)] & 0xff); + int xh = ((h & 0x03) << 8) | (data[(beginPos + 1)] & 0xff); + beginPos += 6; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else if (h < 0xfe) { + sureRead(7); + int xl = (data[(beginPos + 3)] << 24) | ((data[(beginPos + 4)] & 0xff) << 16) | ((data[(beginPos + 5)] & 0xff) << 8) | (data[(beginPos + 6)] & 0xff); + int xh = ((h & 0x01) << 16) | ((data[(beginPos + 1)] & 0xff) << 8) | (data[(beginPos + 2)] & 0xff); + beginPos += 7; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else if (h < 0xff) { + sureRead(8); + int xl = (data[(beginPos + 4)] << 24) | ((data[(beginPos + 5)] & 0xff) << 16) | ((data[(beginPos + 6)] & 0xff) << 8) | (data[(beginPos + 7)] & 0xff); + int xh = /*((h & 0x0) << 16) | */ + ((data[(beginPos + 1)] & 0xff) << 16) | ((data[(beginPos + 2)] & 0xff) << 8) | (data[(beginPos + 3)] & 0xff); + beginPos += 8; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else { + sureRead(9); + int xl = (data[(beginPos + 5)] << 24) | ((data[(beginPos + 6)] & 0xff) << 16) | ((data[(beginPos + 7)] & 0xff) << 8) | (data[(beginPos + 8)] & 0xff); + int xh = (data[(beginPos + 1)] << 24) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 8) | (data[(beginPos + 4)] & 0xff); + beginPos += 9; + return ((long) xh << 32) | (xl & 0xffffffffL); + } + } + + public void writeCompactLong(long x) { + if (x >= 0) { + if (x < 0x80) { + sureWrite(1); + data[(endPos++)] = (byte) x; + return; + } else if (x < 0x4000) { + sureWrite(2); + data[(endPos + 1)] = (byte) x; + data[(endPos)] = (byte) ((x >> 8) | 0x80); + endPos += 2; + return; + } else if (x < 0x200000) { + sureWrite(3); + data[(endPos + 2)] = (byte) x; + data[(endPos + 1)] = (byte) (x >> 8); + data[(endPos)] = (byte) ((x >> 16) | 0xc0); + endPos += 3; + return; + } else if (x < 0x10000000) { + sureWrite(4); + data[(endPos + 3)] = (byte) x; + data[(endPos + 2)] = (byte) (x >> 8); + data[(endPos + 1)] = (byte) (x >> 16); + data[(endPos)] = (byte) ((x >> 24) | 0xe0); + endPos += 4; + return; + } else if (x < 0x800000000L) { + sureWrite(5); + data[(endPos + 4)] = (byte) x; + data[(endPos + 3)] = (byte) (x >> 8); + data[(endPos + 2)] = (byte) (x >> 16); + data[(endPos + 1)] = (byte) (x >> 24); + data[(endPos)] = (byte) ((x >> 32) | 0xf0); + endPos += 5; + return; + } else if (x < 0x40000000000L) { + sureWrite(6); + data[(endPos + 5)] = (byte) x; + data[(endPos + 4)] = (byte) (x >> 8); + data[(endPos + 3)] = (byte) (x >> 16); + data[(endPos + 2)] = (byte) (x >> 24); + data[(endPos + 1)] = (byte) (x >> 32); + data[(endPos)] = (byte) ((x >> 40) | 0xf8); + endPos += 6; + return; + } else if (x < 0x200000000000L) { + sureWrite(7); + data[(endPos + 6)] = (byte) x; + data[(endPos + 5)] = (byte) (x >> 8); + data[(endPos + 4)] = (byte) (x >> 16); + data[(endPos + 3)] = (byte) (x >> 24); + data[(endPos + 2)] = (byte) (x >> 32); + data[(endPos + 1)] = (byte) (x >> 40); + data[(endPos)] = (byte) ((x >> 48) | 0xfc); + endPos += 7; + return; + } else if (x < 0x100000000000000L) { + sureWrite(8); + data[(endPos + 7)] = (byte) x; + data[(endPos + 6)] = (byte) (x >> 8); + data[(endPos + 5)] = (byte) (x >> 16); + data[(endPos + 4)] = (byte) (x >> 24); + data[(endPos + 3)] = (byte) (x >> 32); + data[(endPos + 2)] = (byte) (x >> 40); + data[(endPos + 1)] = (byte) (x >> 48); + data[(endPos)] = /*(x >> 56) | */ (byte) 0xfe; + endPos += 8; + return; + } + } + sureWrite(9); + data[(endPos + 8)] = (byte) x; + data[(endPos + 7)] = (byte) (x >> 8); + data[(endPos + 6)] = (byte) (x >> 16); + data[(endPos + 5)] = (byte) (x >> 24); + data[(endPos + 4)] = (byte) (x >> 32); + data[(endPos + 3)] = (byte) (x >> 40); + data[(endPos + 2)] = (byte) (x >> 48); + data[(endPos + 1)] = (byte) (x >> 56); + data[(endPos)] = (byte) 0xff; + endPos += 9; + } + + public int readCompactUint() { + int n = readCompactInt(); + if (n >= 0) { + return n; + } else { + throw new SerializationException("unmarshal CompactUnit"); + } + } + + public void writeCompactUint(int x) { + writeCompactInt(x); + } + +// public void writeCompactUint(ByteBuf byteBuf, int x) { +// if (x >= 0) { +// if (x < 0x80) { +// byteBuf.writeByte(x); +// } else if (x < 0x4000) { +// byteBuf.writeShort(x | 0x8000); +// } else if (x < 0x200000) { +// byteBuf.writeMedium(x | 0xc00000); +// } else if (x < 0x10000000) { +// byteBuf.writeInt(x | 0xe0000000); +// } else { +// throw new RuntimeException("exceed max unit"); +// } +// } +// } + + public int readInt() { + return readCompactInt(); + } + + public void writeInt(int x) { + writeCompactInt(x); + } + + public long readLong() { + return readCompactLong(); + } + + public void writeLong(long x) { + writeCompactLong(x); + } + + public void writeSint(int x) { + writeInt((x << 1) | (x >>> 31)); + } + + public int readSint() { + int x = readInt(); + return (x >>> 1) | ((x&1) << 31); + } + + public void writeSlong(long x) { + writeLong((x << 1) | (x >>> 63)); + } + + public long readSlong() { + long x = readLong(); + return (x >>> 1) | ((x&1L) << 63); + } + public short readFshort() { + sureRead(4); + int x = (data[(beginPos)] & 0xff) | ((data[(beginPos + 1)] & 0xff) << 8); + beginPos += 2; + return (short)x; + } + + public void writeFshort(short x) { + sureWrite(2); + data[(endPos)] = (byte) (x & 0xff); + data[(endPos + 1)] = (byte) ((x >> 8) & 0xff); + endPos += 2; + } + + public int readFint() { + sureRead(4); + int x = (data[(beginPos)] & 0xff) | ((data[(beginPos + 1)] & 0xff) << 8) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 24); + beginPos += 4; + return x; + } + + public void writeFint(int x) { + sureWrite(4); + data[(endPos)] = (byte) (x & 0xff); + data[(endPos + 1)] = (byte) ((x >> 8) & 0xff); + data[(endPos + 2)] = (byte) ((x >> 16) & 0xff); + data[(endPos + 3)] = (byte) ((x >> 24) & 0xff); + endPos += 4; + } + + public long readFlong() { + sureRead(8); + long x = ((data[(beginPos + 7)] & 0xffL) << 56) | ((data[(beginPos + 6)] & 0xffL) << 48) | ((data[(beginPos + 5)] & 0xffL) << 40) | ((data[(beginPos + 4)] & 0xffL) << 32) | ((data[(beginPos + 3)] & 0xffL) << 24) | ((data[(beginPos + 2)] & 0xffL) << 16) | ((data[(beginPos + 1)] & 0xffL) << 8) | (data[(beginPos)] & 0xffL); + beginPos += 8; + return x; + } + + public void writeFlong(long x) { + sureWrite(8); + data[(endPos + 7)] = (byte) (x >> 56); + data[(endPos + 6)] = (byte) (x >> 48); + data[(endPos + 5)] = (byte) (x >> 40); + data[(endPos + 4)] = (byte) (x >> 32); + data[(endPos + 3)] = (byte) (x >> 24); + data[(endPos + 2)] = (byte) (x >> 16); + data[(endPos + 1)] = (byte) (x >> 8); + data[(endPos)] = (byte) x; + endPos += 8; + } + + public float readFloat() { + return Float.intBitsToFloat(readFint()); + } + + public void writeFloat(float z) { + writeFint(Float.floatToIntBits(z)); + } + + public double readDouble() { + return Double.longBitsToDouble(readFlong()); + } + + public void writeDouble(double z) { + writeFlong(Double.doubleToLongBits(z)); + } + + public String readString() { + int n = readSize(); + if(n > 0) { + sureRead(n); + int start = beginPos; + beginPos += n; + return new String(data, start, n, ByteBuf.MARSHAL_CHARSET); + } else { + return ""; + } + } + + public void writeString(String x) { + if(x.length() > 0) { + byte[] bytes = x.getBytes(ByteBuf.MARSHAL_CHARSET); + int n = bytes.length; + writeCompactUint(n); + sureWrite(n); + System.arraycopy(bytes, 0, data, endPos, n); + endPos += n; + } else { + writeCompactUint(0); + } + } + + public void writeOctets(ByteBuf o) { + int n = o.size(); + writeCompactUint(n); + if(n > 0) { + sureWrite(n); + System.arraycopy(o.data, o.beginPos, this.data, this.endPos, n); + this.endPos += n; + } + } + + public ByteBuf readOctets() { + int n = readSize(); + sureRead(n); + int start = beginPos; + beginPos += n; + return new ByteBuf(Arrays.copyOfRange(data, start, beginPos)); + } + + public ByteBuf readOctets(ByteBuf o) { + int n = readSize(); + sureRead(n); + int start = beginPos; + beginPos += n; + o.sureWrite(n); + System.arraycopy(data, start, o.data, o.endPos, n); + o.endPos += n; + return o; + } + + public byte[] readBytes() { + int n = readSize(); + if(n > 0) { + sureRead(n); + int start = beginPos; + beginPos += n; + return Arrays.copyOfRange(data, start, beginPos); + } else { + return EMPTY_BYTES; + } + } + + public void writeBytes(byte[] x) { + int n = x.length; + writeCompactUint(n); + if(n > 0) { + sureWrite(n); + System.arraycopy(x, 0, data, endPos, n); + endPos += n; + } + } + + public boolean readBool() { + sureRead(1); + return data[(beginPos++)] != 0; + } + + public void writeBool(boolean x) { + sureWrite(1); + data[(endPos++)] = x ? (byte) 1 : 0; + } + + public byte readByte() { + sureRead(1); + return data[(beginPos++)]; + } + + public void writeByte(byte x) { + sureWrite(1); + data[endPos++] = x; + } + +// public void writeTo(ByteBuf byteBuf) { +// int n = size(); +// writeCompactUint(byteBuf, n); +// byteBuf.writeBytes(data, beginPos, n); +// } + + public void writeTo(ByteBuf os) { + int n = size(); + os.writeCompactUint(n); + os.sureWrite(n); + System.arraycopy(data, beginPos, os.data, os.endPos, n); + os.endPos += n; + } + +// public void readFrom(ByteBuf byteBuf) { +// int n = byteBuf.readableBytes(); +// sureWrite(n); +// byteBuf.readBytes(data, endPos, n); +// endPos += n; +// } + + public void wrapRead(ByteBuf src, int size) { + this.data = src.data; + this.beginPos = src.beginPos; + this.endPos = src.beginPos += size; + this.capacity = src.capacity; + } + + public void clear() { + beginPos = 0; + endPos = 0; + } + + public int size() { + return endPos - beginPos; + } + + public boolean empty() { + return endPos == beginPos; + } + + public boolean nonEmpty() { + return endPos > beginPos; + } + + public int readerIndex() { + return beginPos; + } + + public void rollbackReadIndex(int readerMark) { + beginPos = readerMark; + } + + public void skip(int n) { + sureRead(n); + beginPos += n; + } + + public void skipBytes() { + int n = readSize(); + sureRead(n); + beginPos += n; + } + + public byte[] array() { + return data; + } + + public byte[] copyRemainData() { + return Arrays.copyOfRange(data, beginPos, endPos); + } + + public String toString() { + StringBuilder b = new StringBuilder(); + for (int i = beginPos; i < endPos; i++) { + b.append(data[i]).append(","); + } + return b.toString(); + } + + public static ByteBuf fromString(String value) { + if(value.isEmpty()) { + return new ByteBuf(); + } + String[] ss = value.split(","); + byte[] data = new byte[ss.length]; + for (int i = 0; i < data.length; i++) { + data[i] = (byte)Integer.parseInt(ss[i]); + } + return new ByteBuf(data); + } + + @Override + public boolean equals(Object x) { + if (!(x instanceof ByteBuf)) return false; + ByteBuf o = (ByteBuf) x; + if (size() != o.size()) return false; + for (int i = beginPos; i < endPos; i++) { + if (data[i] != o.data[o.beginPos + i - beginPos]) + return false; + } + return true; + } +} diff --git a/luban_examples/Projects/Java_bin/src/main/corelib/luban/SerializationException.java b/luban_examples/Projects/Java_bin/src/main/corelib/luban/SerializationException.java new file mode 100644 index 00000000..76d0f983 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/corelib/luban/SerializationException.java @@ -0,0 +1,23 @@ +package luban; + +public class SerializationException extends RuntimeException { + public SerializationException() { + + } + + public SerializationException(String message) { + super(message); + } + + public SerializationException(String message, Throwable cause) { + super(message, cause); + } + + public SerializationException(Throwable cause) { + super(cause); + } + + public SerializationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { + super(message, cause, enableSuppression, writableStackTrace); + } +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/AudioType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/AudioType.java new file mode 100644 index 00000000..569aa85b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/AudioType.java @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +public final class AudioType { + public static final int UNKNOWN = 0; + public static final int ACC = 1; + public static final int AIFF = 2; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/DefineFromExcel2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/DefineFromExcel2.java new file mode 100644 index 00000000..74f885ac --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/DefineFromExcel2.java @@ -0,0 +1,95 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; + + +public final class DefineFromExcel2 extends AbstractBean { + public DefineFromExcel2(ByteBuf _buf) { + id = _buf.readInt(); + x1 = _buf.readBool(); + x5 = _buf.readLong(); + x6 = _buf.readFloat(); + x8 = _buf.readInt(); + x10 = _buf.readString(); + x13 = _buf.readInt(); + x132 = _buf.readInt(); + x14 = cfg.test.DemoDynamic.deserialize(_buf); + x15 = cfg.test.Shape.deserialize(_buf); + v2 = cfg.vec2.deserialize(_buf); + t1 = _buf.readLong(); + {int n = Math.min(_buf.readSize(), _buf.size());k1 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); k1[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());k2 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); k2[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());k8 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); k8.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());k9 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.DemoE2 _e; _e = cfg.test.DemoE2.deserialize(_buf); k9.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());k10 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.vec3 _e; _e = cfg.vec3.deserialize(_buf); k10.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());k11 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.vec4 _e; _e = cfg.vec4.deserialize(_buf); k11.add(_e);}} + } + + public static DefineFromExcel2 deserialize(ByteBuf _buf) { + return new cfg.DefineFromExcel2(_buf); + } + + /** + * 这是id + */ + public final int id; + /** + * 字段x1 + */ + public final boolean x1; + public final long x5; + public final float x6; + public final int x8; + public final String x10; + public final int x13; + public final int x132; + public final cfg.test.DemoDynamic x14; + public final cfg.test.Shape x15; + public final cfg.vec2 v2; + public final long t1; + public final int[] k1; + public final int[] k2; + public final java.util.HashMap k8; + public final java.util.ArrayList k9; + public final java.util.ArrayList k10; + public final java.util.ArrayList k11; + + public static final int __ID__ = 482045152; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x8 + "," + + "(format_field_name __code_style field.name):" + x10 + "," + + "(format_field_name __code_style field.name):" + x13 + "," + + "(format_field_name __code_style field.name):" + x132 + "," + + "(format_field_name __code_style field.name):" + x14 + "," + + "(format_field_name __code_style field.name):" + x15 + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "(format_field_name __code_style field.name):" + k1 + "," + + "(format_field_name __code_style field.name):" + k2 + "," + + "(format_field_name __code_style field.name):" + k8 + "," + + "(format_field_name __code_style field.name):" + k9 + "," + + "(format_field_name __code_style field.name):" + k10 + "," + + "(format_field_name __code_style field.name):" + k11 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/Tables.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/Tables.java new file mode 100644 index 00000000..5a7eac36 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/Tables.java @@ -0,0 +1,141 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; + +public final class Tables +{ + public static interface IByteBufLoader { + ByteBuf load(String file) throws java.io.IOException; + } + + private final cfg.ai.TbBlackboard _tbblackboard; + public cfg.ai.TbBlackboard getTbBlackboard() { return _tbblackboard; } + private final cfg.ai.TbBehaviorTree _tbbehaviortree; + public cfg.ai.TbBehaviorTree getTbBehaviorTree() { return _tbbehaviortree; } + private final cfg.common.TbGlobalConfig _tbglobalconfig; + public cfg.common.TbGlobalConfig getTbGlobalConfig() { return _tbglobalconfig; } + /** + * 道具表 + */ + private final cfg.item.TbItem _tbitem; + public cfg.item.TbItem getTbItem() { return _tbitem; } + private final cfg.l10n.TbL10NDemo _tbl10ndemo; + public cfg.l10n.TbL10NDemo getTbL10NDemo() { return _tbl10ndemo; } + private final cfg.l10n.TbPatchDemo _tbpatchdemo; + public cfg.l10n.TbPatchDemo getTbPatchDemo() { return _tbpatchdemo; } + private final cfg.tag.TbTestTag _tbtesttag; + public cfg.tag.TbTestTag getTbTestTag() { return _tbtesttag; } + private final cfg.test.TbFullTypes _tbfulltypes; + public cfg.test.TbFullTypes getTbFullTypes() { return _tbfulltypes; } + private final cfg.test.TbSingleton _tbsingleton; + public cfg.test.TbSingleton getTbSingleton() { return _tbsingleton; } + private final cfg.test.TbNotIndexList _tbnotindexlist; + public cfg.test.TbNotIndexList getTbNotIndexList() { return _tbnotindexlist; } + private final cfg.test.TbMultiUnionIndexList _tbmultiunionindexlist; + public cfg.test.TbMultiUnionIndexList getTbMultiUnionIndexList() { return _tbmultiunionindexlist; } + private final cfg.test.TbMultiIndexList _tbmultiindexlist; + public cfg.test.TbMultiIndexList getTbMultiIndexList() { return _tbmultiindexlist; } + private final cfg.test.TbDataFromMisc _tbdatafrommisc; + public cfg.test.TbDataFromMisc getTbDataFromMisc() { return _tbdatafrommisc; } + private final cfg.test.TbMultiRowRecord _tbmultirowrecord; + public cfg.test.TbMultiRowRecord getTbMultiRowRecord() { return _tbmultirowrecord; } + private final cfg.test.TbTestMultiColumn _tbtestmulticolumn; + public cfg.test.TbTestMultiColumn getTbTestMultiColumn() { return _tbtestmulticolumn; } + private final cfg.test.TbMultiRowTitle _tbmultirowtitle; + public cfg.test.TbMultiRowTitle getTbMultiRowTitle() { return _tbmultirowtitle; } + private final cfg.test.TbTestNull _tbtestnull; + public cfg.test.TbTestNull getTbTestNull() { return _tbtestnull; } + private final cfg.test.TbDemoPrimitive _tbdemoprimitive; + public cfg.test.TbDemoPrimitive getTbDemoPrimitive() { return _tbdemoprimitive; } + private final cfg.test.TbTestString _tbteststring; + public cfg.test.TbTestString getTbTestString() { return _tbteststring; } + private final cfg.test.TbDemoGroup _tbdemogroup; + public cfg.test.TbDemoGroup getTbDemoGroup() { return _tbdemogroup; } + private final cfg.test.TbTestGlobal _tbtestglobal; + public cfg.test.TbTestGlobal getTbTestGlobal() { return _tbtestglobal; } + private final cfg.test.TbTestBeRef _tbtestberef; + public cfg.test.TbTestBeRef getTbTestBeRef() { return _tbtestberef; } + private final cfg.test.TbTestBeRef2 _tbtestberef2; + public cfg.test.TbTestBeRef2 getTbTestBeRef2() { return _tbtestberef2; } + private final cfg.test.TbTestRef _tbtestref; + public cfg.test.TbTestRef getTbTestRef() { return _tbtestref; } + private final cfg.test.TbTestSize _tbtestsize; + public cfg.test.TbTestSize getTbTestSize() { return _tbtestsize; } + private final cfg.test.TbTestSet _tbtestset; + public cfg.test.TbTestSet getTbTestSet() { return _tbtestset; } + private final cfg.test.TbDetectCsvEncoding _tbdetectcsvencoding; + public cfg.test.TbDetectCsvEncoding getTbDetectCsvEncoding() { return _tbdetectcsvencoding; } + private final cfg.test.TbItem2 _tbitem2; + public cfg.test.TbItem2 getTbItem2() { return _tbitem2; } + private final cfg.test.TbTestIndex _tbtestindex; + public cfg.test.TbTestIndex getTbTestIndex() { return _tbtestindex; } + private final cfg.test.TbTestMap _tbtestmap; + public cfg.test.TbTestMap getTbTestMap() { return _tbtestmap; } + private final cfg.test.TbExcelFromJson _tbexcelfromjson; + public cfg.test.TbExcelFromJson getTbExcelFromJson() { return _tbexcelfromjson; } + private final cfg.test.TbCompositeJsonTable1 _tbcompositejsontable1; + public cfg.test.TbCompositeJsonTable1 getTbCompositeJsonTable1() { return _tbcompositejsontable1; } + private final cfg.test.TbCompositeJsonTable2 _tbcompositejsontable2; + public cfg.test.TbCompositeJsonTable2 getTbCompositeJsonTable2() { return _tbcompositejsontable2; } + private final cfg.test.TbCompositeJsonTable3 _tbcompositejsontable3; + public cfg.test.TbCompositeJsonTable3 getTbCompositeJsonTable3() { return _tbcompositejsontable3; } + private final cfg.test.TbExcelFromJsonMultiRow _tbexcelfromjsonmultirow; + public cfg.test.TbExcelFromJsonMultiRow getTbExcelFromJsonMultiRow() { return _tbexcelfromjsonmultirow; } + private final cfg.test.TbTestScriptableObject _tbtestscriptableobject; + public cfg.test.TbTestScriptableObject getTbTestScriptableObject() { return _tbtestscriptableobject; } + private final cfg.test.TbTestMapper _tbtestmapper; + public cfg.test.TbTestMapper getTbTestMapper() { return _tbtestmapper; } + private final cfg.test.TbDefineFromExcel2 _tbdefinefromexcel2; + public cfg.test.TbDefineFromExcel2 getTbDefineFromExcel2() { return _tbdefinefromexcel2; } + + public Tables(IByteBufLoader loader) throws java.io.IOException { + _tbblackboard = new cfg.ai.TbBlackboard(loader.load("ai_tbblackboard")); + _tbbehaviortree = new cfg.ai.TbBehaviorTree(loader.load("ai_tbbehaviortree")); + _tbglobalconfig = new cfg.common.TbGlobalConfig(loader.load("common_tbglobalconfig")); + _tbitem = new cfg.item.TbItem(loader.load("item_tbitem")); + _tbl10ndemo = new cfg.l10n.TbL10NDemo(loader.load("l10n_tbl10ndemo")); + _tbpatchdemo = new cfg.l10n.TbPatchDemo(loader.load("l10n_tbpatchdemo")); + _tbtesttag = new cfg.tag.TbTestTag(loader.load("tag_tbtesttag")); + _tbfulltypes = new cfg.test.TbFullTypes(loader.load("test_tbfulltypes")); + _tbsingleton = new cfg.test.TbSingleton(loader.load("test_tbsingleton")); + _tbnotindexlist = new cfg.test.TbNotIndexList(loader.load("test_tbnotindexlist")); + _tbmultiunionindexlist = new cfg.test.TbMultiUnionIndexList(loader.load("test_tbmultiunionindexlist")); + _tbmultiindexlist = new cfg.test.TbMultiIndexList(loader.load("test_tbmultiindexlist")); + _tbdatafrommisc = new cfg.test.TbDataFromMisc(loader.load("test_tbdatafrommisc")); + _tbmultirowrecord = new cfg.test.TbMultiRowRecord(loader.load("test_tbmultirowrecord")); + _tbtestmulticolumn = new cfg.test.TbTestMultiColumn(loader.load("test_tbtestmulticolumn")); + _tbmultirowtitle = new cfg.test.TbMultiRowTitle(loader.load("test_tbmultirowtitle")); + _tbtestnull = new cfg.test.TbTestNull(loader.load("test_tbtestnull")); + _tbdemoprimitive = new cfg.test.TbDemoPrimitive(loader.load("test_tbdemoprimitive")); + _tbteststring = new cfg.test.TbTestString(loader.load("test_tbteststring")); + _tbdemogroup = new cfg.test.TbDemoGroup(loader.load("test_tbdemogroup")); + _tbtestglobal = new cfg.test.TbTestGlobal(loader.load("test_tbtestglobal")); + _tbtestberef = new cfg.test.TbTestBeRef(loader.load("test_tbtestberef")); + _tbtestberef2 = new cfg.test.TbTestBeRef2(loader.load("test_tbtestberef2")); + _tbtestref = new cfg.test.TbTestRef(loader.load("test_tbtestref")); + _tbtestsize = new cfg.test.TbTestSize(loader.load("test_tbtestsize")); + _tbtestset = new cfg.test.TbTestSet(loader.load("test_tbtestset")); + _tbdetectcsvencoding = new cfg.test.TbDetectCsvEncoding(loader.load("test_tbdetectcsvencoding")); + _tbitem2 = new cfg.test.TbItem2(loader.load("test_tbitem2")); + _tbtestindex = new cfg.test.TbTestIndex(loader.load("test_tbtestindex")); + _tbtestmap = new cfg.test.TbTestMap(loader.load("test_tbtestmap")); + _tbexcelfromjson = new cfg.test.TbExcelFromJson(loader.load("test_tbexcelfromjson")); + _tbcompositejsontable1 = new cfg.test.TbCompositeJsonTable1(loader.load("test_tbcompositejsontable1")); + _tbcompositejsontable2 = new cfg.test.TbCompositeJsonTable2(loader.load("test_tbcompositejsontable2")); + _tbcompositejsontable3 = new cfg.test.TbCompositeJsonTable3(loader.load("test_tbcompositejsontable3")); + _tbexcelfromjsonmultirow = new cfg.test.TbExcelFromJsonMultiRow(loader.load("test_tbexcelfromjsonmultirow")); + _tbtestscriptableobject = new cfg.test.TbTestScriptableObject(loader.load("test_tbtestscriptableobject")); + _tbtestmapper = new cfg.test.TbTestMapper(loader.load("test_tbtestmapper")); + _tbdefinefromexcel2 = new cfg.test.TbDefineFromExcel2(loader.load("test_tbdefinefromexcel2")); + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BehaviorTree.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BehaviorTree.java new file mode 100644 index 00000000..7f9f0738 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BehaviorTree.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class BehaviorTree extends AbstractBean { + public BehaviorTree(ByteBuf _buf) { + id = _buf.readInt(); + name = _buf.readString(); + desc = _buf.readString(); + blackboardId = _buf.readString(); + root = cfg.ai.ComposeNode.deserialize(_buf); + } + + public static BehaviorTree deserialize(ByteBuf _buf) { + return new cfg.ai.BehaviorTree(_buf); + } + + public final int id; + public final String name; + public final String desc; + public final String blackboardId; + public final cfg.ai.ComposeNode root; + + public static final int __ID__ = 159552822; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + blackboardId + "," + + "(format_field_name __code_style field.name):" + root + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BinaryOperator.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BinaryOperator.java new file mode 100644 index 00000000..712d9fd0 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BinaryOperator.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class BinaryOperator extends cfg.ai.KeyQueryOperator { + public BinaryOperator(ByteBuf _buf) { + super(_buf); + oper = _buf.readInt(); + data = cfg.ai.KeyData.deserialize(_buf); + } + + public static BinaryOperator deserialize(ByteBuf _buf) { + return new cfg.ai.BinaryOperator(_buf); + } + + public final int oper; + public final cfg.ai.KeyData data; + + public static final int __ID__ = -979891605; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + oper + "," + + "(format_field_name __code_style field.name):" + data + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Blackboard.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Blackboard.java new file mode 100644 index 00000000..b28654ef --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Blackboard.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class Blackboard extends AbstractBean { + public Blackboard(ByteBuf _buf) { + name = _buf.readString(); + desc = _buf.readString(); + parentName = _buf.readString(); + {int n = Math.min(_buf.readSize(), _buf.size());keys = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.ai.BlackboardKey _e; _e = cfg.ai.BlackboardKey.deserialize(_buf); keys.add(_e);}} + } + + public static Blackboard deserialize(ByteBuf _buf) { + return new cfg.ai.Blackboard(_buf); + } + + public final String name; + public final String desc; + public final String parentName; + public final java.util.ArrayList keys; + + public static final int __ID__ = 1576193005; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + parentName + "," + + "(format_field_name __code_style field.name):" + keys + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BlackboardKey.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BlackboardKey.java new file mode 100644 index 00000000..6831b175 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BlackboardKey.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class BlackboardKey extends AbstractBean { + public BlackboardKey(ByteBuf _buf) { + name = _buf.readString(); + desc = _buf.readString(); + isStatic = _buf.readBool(); + type = _buf.readInt(); + typeClassName = _buf.readString(); + } + + public static BlackboardKey deserialize(ByteBuf _buf) { + return new cfg.ai.BlackboardKey(_buf); + } + + public final String name; + public final String desc; + public final boolean isStatic; + public final int type; + public final String typeClassName; + + public static final int __ID__ = -511559886; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + isStatic + "," + + "(format_field_name __code_style field.name):" + type + "," + + "(format_field_name __code_style field.name):" + typeClassName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BlackboardKeyData.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BlackboardKeyData.java new file mode 100644 index 00000000..8f4517c8 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/BlackboardKeyData.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class BlackboardKeyData extends cfg.ai.KeyData { + public BlackboardKeyData(ByteBuf _buf) { + super(_buf); + value = _buf.readString(); + } + + public static BlackboardKeyData deserialize(ByteBuf _buf) { + return new cfg.ai.BlackboardKeyData(_buf); + } + + public final String value; + + public static final int __ID__ = 1517269500; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ChooseSkill.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ChooseSkill.java new file mode 100644 index 00000000..893ff78a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ChooseSkill.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class ChooseSkill extends cfg.ai.Task { + public ChooseSkill(ByteBuf _buf) { + super(_buf); + targetActorKey = _buf.readString(); + resultSkillIdKey = _buf.readString(); + } + + public static ChooseSkill deserialize(ByteBuf _buf) { + return new cfg.ai.ChooseSkill(_buf); + } + + public final String targetActorKey; + public final String resultSkillIdKey; + + public static final int __ID__ = -918812268; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + targetActorKey + "," + + "(format_field_name __code_style field.name):" + resultSkillIdKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ChooseTarget.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ChooseTarget.java new file mode 100644 index 00000000..d35ff030 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ChooseTarget.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class ChooseTarget extends cfg.ai.Service { + public ChooseTarget(ByteBuf _buf) { + super(_buf); + resultTargetKey = _buf.readString(); + } + + public static ChooseTarget deserialize(ByteBuf _buf) { + return new cfg.ai.ChooseTarget(_buf); + } + + public final String resultTargetKey; + + public static final int __ID__ = 1601247918; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + resultTargetKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ComposeNode.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ComposeNode.java new file mode 100644 index 00000000..e65830b4 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ComposeNode.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class ComposeNode extends cfg.ai.FlowNode { + public ComposeNode(ByteBuf _buf) { + super(_buf); + } + + public static ComposeNode deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.Sequence.__ID__: return new cfg.ai.Sequence(_buf); + case cfg.ai.Selector.__ID__: return new cfg.ai.Selector(_buf); + case cfg.ai.SimpleParallel.__ID__: return new cfg.ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/DebugPrint.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/DebugPrint.java new file mode 100644 index 00000000..7da0e864 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/DebugPrint.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class DebugPrint extends cfg.ai.Task { + public DebugPrint(ByteBuf _buf) { + super(_buf); + text = _buf.readString(); + } + + public static DebugPrint deserialize(ByteBuf _buf) { + return new cfg.ai.DebugPrint(_buf); + } + + public final String text; + + public static final int __ID__ = 1357409728; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + text + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Decorator.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Decorator.java new file mode 100644 index 00000000..848d02ac --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Decorator.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class Decorator extends cfg.ai.Node { + public Decorator(ByteBuf _buf) { + super(_buf); + flowAbortMode = _buf.readInt(); + } + + public static Decorator deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.UeLoop.__ID__: return new cfg.ai.UeLoop(_buf); + case cfg.ai.UeCooldown.__ID__: return new cfg.ai.UeCooldown(_buf); + case cfg.ai.UeTimeLimit.__ID__: return new cfg.ai.UeTimeLimit(_buf); + case cfg.ai.UeBlackboard.__ID__: return new cfg.ai.UeBlackboard(_buf); + case cfg.ai.UeForceSuccess.__ID__: return new cfg.ai.UeForceSuccess(_buf); + case cfg.ai.IsAtLocation.__ID__: return new cfg.ai.IsAtLocation(_buf); + case cfg.ai.DistanceLessThan.__ID__: return new cfg.ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public final int flowAbortMode; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/DistanceLessThan.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/DistanceLessThan.java new file mode 100644 index 00000000..02ff3ac6 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/DistanceLessThan.java @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class DistanceLessThan extends cfg.ai.Decorator { + public DistanceLessThan(ByteBuf _buf) { + super(_buf); + actor1Key = _buf.readString(); + actor2Key = _buf.readString(); + distance = _buf.readFloat(); + reverseResult = _buf.readBool(); + } + + public static DistanceLessThan deserialize(ByteBuf _buf) { + return new cfg.ai.DistanceLessThan(_buf); + } + + public final String actor1Key; + public final String actor2Key; + public final float distance; + public final boolean reverseResult; + + public static final int __ID__ = -1207170283; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + actor1Key + "," + + "(format_field_name __code_style field.name):" + actor2Key + "," + + "(format_field_name __code_style field.name):" + distance + "," + + "(format_field_name __code_style field.name):" + reverseResult + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EExecutor.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EExecutor.java new file mode 100644 index 00000000..58722354 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EExecutor.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EExecutor { + public static final int CLIENT = 0; + public static final int SERVER = 1; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EFinishMode.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EFinishMode.java new file mode 100644 index 00000000..4174486f --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EFinishMode.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EFinishMode { + public static final int IMMEDIATE = 0; + public static final int DELAYED = 1; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EFlowAbortMode.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EFlowAbortMode.java new file mode 100644 index 00000000..95f2c2c5 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EFlowAbortMode.java @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EFlowAbortMode { + public static final int NONE = 0; + public static final int LOWER_PRIORITY = 1; + public static final int SELF = 2; + public static final int BOTH = 3; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EKeyType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EKeyType.java new file mode 100644 index 00000000..6661e239 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EKeyType.java @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EKeyType { + public static final int BOOL = 1; + public static final int INT = 2; + public static final int FLOAT = 3; + public static final int STRING = 4; + public static final int VECTOR = 5; + public static final int ROTATOR = 6; + public static final int NAME = 7; + public static final int CLASS = 8; + public static final int ENUM = 9; + public static final int OBJECT = 10; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ENotifyObserverMode.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ENotifyObserverMode.java new file mode 100644 index 00000000..0f59ec59 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ENotifyObserverMode.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class ENotifyObserverMode { + public static final int ON_VALUE_CHANGE = 0; + public static final int ON_RESULT_CHANGE = 1; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EOperator.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EOperator.java new file mode 100644 index 00000000..268cc60f --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/EOperator.java @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EOperator { + public static final int IS_EQUAL_TO = 0; + public static final int IS_NOT_EQUAL_TO = 1; + public static final int IS_LESS_THAN = 2; + public static final int IS_LESS_THAN_OR_EQUAL_TO = 3; + public static final int IS_GREAT_THAN = 4; + public static final int IS_GREAT_THAN_OR_EQUAL_TO = 5; + public static final int CONTAINS = 6; + public static final int NOT_CONTAINS = 7; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ExecuteTimeStatistic.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ExecuteTimeStatistic.java new file mode 100644 index 00000000..b1ae3383 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/ExecuteTimeStatistic.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class ExecuteTimeStatistic extends cfg.ai.Service { + public ExecuteTimeStatistic(ByteBuf _buf) { + super(_buf); + } + + public static ExecuteTimeStatistic deserialize(ByteBuf _buf) { + return new cfg.ai.ExecuteTimeStatistic(_buf); + } + + + public static final int __ID__ = 990693812; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/FloatKeyData.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/FloatKeyData.java new file mode 100644 index 00000000..cf251b4c --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/FloatKeyData.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class FloatKeyData extends cfg.ai.KeyData { + public FloatKeyData(ByteBuf _buf) { + super(_buf); + value = _buf.readFloat(); + } + + public static FloatKeyData deserialize(ByteBuf _buf) { + return new cfg.ai.FloatKeyData(_buf); + } + + public final float value; + + public static final int __ID__ = -719747885; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/FlowNode.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/FlowNode.java new file mode 100644 index 00000000..83aab3bf --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/FlowNode.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class FlowNode extends cfg.ai.Node { + public FlowNode(ByteBuf _buf) { + super(_buf); + {int n = Math.min(_buf.readSize(), _buf.size());decorators = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.ai.Decorator _e; _e = cfg.ai.Decorator.deserialize(_buf); decorators.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());services = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.ai.Service _e; _e = cfg.ai.Service.deserialize(_buf); services.add(_e);}} + } + + public static FlowNode deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.Sequence.__ID__: return new cfg.ai.Sequence(_buf); + case cfg.ai.Selector.__ID__: return new cfg.ai.Selector(_buf); + case cfg.ai.SimpleParallel.__ID__: return new cfg.ai.SimpleParallel(_buf); + case cfg.ai.UeWait.__ID__: return new cfg.ai.UeWait(_buf); + case cfg.ai.UeWaitBlackboardTime.__ID__: return new cfg.ai.UeWaitBlackboardTime(_buf); + case cfg.ai.MoveToTarget.__ID__: return new cfg.ai.MoveToTarget(_buf); + case cfg.ai.ChooseSkill.__ID__: return new cfg.ai.ChooseSkill(_buf); + case cfg.ai.MoveToRandomLocation.__ID__: return new cfg.ai.MoveToRandomLocation(_buf); + case cfg.ai.MoveToLocation.__ID__: return new cfg.ai.MoveToLocation(_buf); + case cfg.ai.DebugPrint.__ID__: return new cfg.ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public final java.util.ArrayList decorators; + public final java.util.ArrayList services; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/GetOwnerPlayer.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/GetOwnerPlayer.java new file mode 100644 index 00000000..6a60341d --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/GetOwnerPlayer.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class GetOwnerPlayer extends cfg.ai.Service { + public GetOwnerPlayer(ByteBuf _buf) { + super(_buf); + playerActorKey = _buf.readString(); + } + + public static GetOwnerPlayer deserialize(ByteBuf _buf) { + return new cfg.ai.GetOwnerPlayer(_buf); + } + + public final String playerActorKey; + + public static final int __ID__ = -999247644; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + playerActorKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IntKeyData.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IntKeyData.java new file mode 100644 index 00000000..1b919eb1 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IntKeyData.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class IntKeyData extends cfg.ai.KeyData { + public IntKeyData(ByteBuf _buf) { + super(_buf); + value = _buf.readInt(); + } + + public static IntKeyData deserialize(ByteBuf _buf) { + return new cfg.ai.IntKeyData(_buf); + } + + public final int value; + + public static final int __ID__ = -342751904; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsAtLocation.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsAtLocation.java new file mode 100644 index 00000000..d69a984c --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsAtLocation.java @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class IsAtLocation extends cfg.ai.Decorator { + public IsAtLocation(ByteBuf _buf) { + super(_buf); + acceptableRadius = _buf.readFloat(); + keyboardKey = _buf.readString(); + inverseCondition = _buf.readBool(); + } + + public static IsAtLocation deserialize(ByteBuf _buf) { + return new cfg.ai.IsAtLocation(_buf); + } + + public final float acceptableRadius; + public final String keyboardKey; + public final boolean inverseCondition; + + public static final int __ID__ = 1255972344; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + acceptableRadius + "," + + "(format_field_name __code_style field.name):" + keyboardKey + "," + + "(format_field_name __code_style field.name):" + inverseCondition + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsNotSet.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsNotSet.java new file mode 100644 index 00000000..9541c946 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsNotSet.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class IsNotSet extends cfg.ai.KeyQueryOperator { + public IsNotSet(ByteBuf _buf) { + super(_buf); + } + + public static IsNotSet deserialize(ByteBuf _buf) { + return new cfg.ai.IsNotSet(_buf); + } + + + public static final int __ID__ = 790736255; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsSet.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsSet.java new file mode 100644 index 00000000..a56cf9aa --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/IsSet.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class IsSet extends cfg.ai.KeyQueryOperator { + public IsSet(ByteBuf _buf) { + super(_buf); + } + + public static IsSet deserialize(ByteBuf _buf) { + return new cfg.ai.IsSet(_buf); + } + + + public static final int __ID__ = 1635350898; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeepFaceTarget.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeepFaceTarget.java new file mode 100644 index 00000000..c52ad9a0 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeepFaceTarget.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class KeepFaceTarget extends cfg.ai.Service { + public KeepFaceTarget(ByteBuf _buf) { + super(_buf); + targetActorKey = _buf.readString(); + } + + public static KeepFaceTarget deserialize(ByteBuf _buf) { + return new cfg.ai.KeepFaceTarget(_buf); + } + + public final String targetActorKey; + + public static final int __ID__ = 1195270745; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + targetActorKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeyData.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeyData.java new file mode 100644 index 00000000..7ad2d8ea --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeyData.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class KeyData extends AbstractBean { + public KeyData(ByteBuf _buf) { + } + + public static KeyData deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.FloatKeyData.__ID__: return new cfg.ai.FloatKeyData(_buf); + case cfg.ai.IntKeyData.__ID__: return new cfg.ai.IntKeyData(_buf); + case cfg.ai.StringKeyData.__ID__: return new cfg.ai.StringKeyData(_buf); + case cfg.ai.BlackboardKeyData.__ID__: return new cfg.ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeyQueryOperator.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeyQueryOperator.java new file mode 100644 index 00000000..61a25ac8 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/KeyQueryOperator.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class KeyQueryOperator extends AbstractBean { + public KeyQueryOperator(ByteBuf _buf) { + } + + public static KeyQueryOperator deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.IsSet.__ID__: return new cfg.ai.IsSet(_buf); + case cfg.ai.IsNotSet.__ID__: return new cfg.ai.IsNotSet(_buf); + case cfg.ai.BinaryOperator.__ID__: return new cfg.ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToLocation.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToLocation.java new file mode 100644 index 00000000..859b5b54 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToLocation.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class MoveToLocation extends cfg.ai.Task { + public MoveToLocation(ByteBuf _buf) { + super(_buf); + acceptableRadius = _buf.readFloat(); + } + + public static MoveToLocation deserialize(ByteBuf _buf) { + return new cfg.ai.MoveToLocation(_buf); + } + + public final float acceptableRadius; + + public static final int __ID__ = -969953113; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + acceptableRadius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToRandomLocation.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToRandomLocation.java new file mode 100644 index 00000000..c1f7828e --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToRandomLocation.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class MoveToRandomLocation extends cfg.ai.Task { + public MoveToRandomLocation(ByteBuf _buf) { + super(_buf); + originPositionKey = _buf.readString(); + radius = _buf.readFloat(); + } + + public static MoveToRandomLocation deserialize(ByteBuf _buf) { + return new cfg.ai.MoveToRandomLocation(_buf); + } + + public final String originPositionKey; + public final float radius; + + public static final int __ID__ = -2140042998; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + originPositionKey + "," + + "(format_field_name __code_style field.name):" + radius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToTarget.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToTarget.java new file mode 100644 index 00000000..f9aa30f6 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/MoveToTarget.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class MoveToTarget extends cfg.ai.Task { + public MoveToTarget(ByteBuf _buf) { + super(_buf); + targetActorKey = _buf.readString(); + acceptableRadius = _buf.readFloat(); + } + + public static MoveToTarget deserialize(ByteBuf _buf) { + return new cfg.ai.MoveToTarget(_buf); + } + + public final String targetActorKey; + public final float acceptableRadius; + + public static final int __ID__ = 514987779; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + targetActorKey + "," + + "(format_field_name __code_style field.name):" + acceptableRadius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Node.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Node.java new file mode 100644 index 00000000..76c260ea --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Node.java @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class Node extends AbstractBean { + public Node(ByteBuf _buf) { + id = _buf.readInt(); + nodeName = _buf.readString(); + } + + public static Node deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.UeSetDefaultFocus.__ID__: return new cfg.ai.UeSetDefaultFocus(_buf); + case cfg.ai.ExecuteTimeStatistic.__ID__: return new cfg.ai.ExecuteTimeStatistic(_buf); + case cfg.ai.ChooseTarget.__ID__: return new cfg.ai.ChooseTarget(_buf); + case cfg.ai.KeepFaceTarget.__ID__: return new cfg.ai.KeepFaceTarget(_buf); + case cfg.ai.GetOwnerPlayer.__ID__: return new cfg.ai.GetOwnerPlayer(_buf); + case cfg.ai.UpdateDailyBehaviorProps.__ID__: return new cfg.ai.UpdateDailyBehaviorProps(_buf); + case cfg.ai.UeLoop.__ID__: return new cfg.ai.UeLoop(_buf); + case cfg.ai.UeCooldown.__ID__: return new cfg.ai.UeCooldown(_buf); + case cfg.ai.UeTimeLimit.__ID__: return new cfg.ai.UeTimeLimit(_buf); + case cfg.ai.UeBlackboard.__ID__: return new cfg.ai.UeBlackboard(_buf); + case cfg.ai.UeForceSuccess.__ID__: return new cfg.ai.UeForceSuccess(_buf); + case cfg.ai.IsAtLocation.__ID__: return new cfg.ai.IsAtLocation(_buf); + case cfg.ai.DistanceLessThan.__ID__: return new cfg.ai.DistanceLessThan(_buf); + case cfg.ai.Sequence.__ID__: return new cfg.ai.Sequence(_buf); + case cfg.ai.Selector.__ID__: return new cfg.ai.Selector(_buf); + case cfg.ai.SimpleParallel.__ID__: return new cfg.ai.SimpleParallel(_buf); + case cfg.ai.UeWait.__ID__: return new cfg.ai.UeWait(_buf); + case cfg.ai.UeWaitBlackboardTime.__ID__: return new cfg.ai.UeWaitBlackboardTime(_buf); + case cfg.ai.MoveToTarget.__ID__: return new cfg.ai.MoveToTarget(_buf); + case cfg.ai.ChooseSkill.__ID__: return new cfg.ai.ChooseSkill(_buf); + case cfg.ai.MoveToRandomLocation.__ID__: return new cfg.ai.MoveToRandomLocation(_buf); + case cfg.ai.MoveToLocation.__ID__: return new cfg.ai.MoveToLocation(_buf); + case cfg.ai.DebugPrint.__ID__: return new cfg.ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public final int id; + public final String nodeName; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Selector.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Selector.java new file mode 100644 index 00000000..863c63e0 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Selector.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class Selector extends cfg.ai.ComposeNode { + public Selector(ByteBuf _buf) { + super(_buf); + {int n = Math.min(_buf.readSize(), _buf.size());children = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.ai.FlowNode _e; _e = cfg.ai.FlowNode.deserialize(_buf); children.add(_e);}} + } + + public static Selector deserialize(ByteBuf _buf) { + return new cfg.ai.Selector(_buf); + } + + public final java.util.ArrayList children; + + public static final int __ID__ = -1946981627; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + children + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Sequence.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Sequence.java new file mode 100644 index 00000000..de9915b1 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Sequence.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class Sequence extends cfg.ai.ComposeNode { + public Sequence(ByteBuf _buf) { + super(_buf); + {int n = Math.min(_buf.readSize(), _buf.size());children = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.ai.FlowNode _e; _e = cfg.ai.FlowNode.deserialize(_buf); children.add(_e);}} + } + + public static Sequence deserialize(ByteBuf _buf) { + return new cfg.ai.Sequence(_buf); + } + + public final java.util.ArrayList children; + + public static final int __ID__ = -1789006105; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + children + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Service.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Service.java new file mode 100644 index 00000000..0708beee --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Service.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class Service extends cfg.ai.Node { + public Service(ByteBuf _buf) { + super(_buf); + } + + public static Service deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.UeSetDefaultFocus.__ID__: return new cfg.ai.UeSetDefaultFocus(_buf); + case cfg.ai.ExecuteTimeStatistic.__ID__: return new cfg.ai.ExecuteTimeStatistic(_buf); + case cfg.ai.ChooseTarget.__ID__: return new cfg.ai.ChooseTarget(_buf); + case cfg.ai.KeepFaceTarget.__ID__: return new cfg.ai.KeepFaceTarget(_buf); + case cfg.ai.GetOwnerPlayer.__ID__: return new cfg.ai.GetOwnerPlayer(_buf); + case cfg.ai.UpdateDailyBehaviorProps.__ID__: return new cfg.ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/SimpleParallel.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/SimpleParallel.java new file mode 100644 index 00000000..22d8ce30 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/SimpleParallel.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class SimpleParallel extends cfg.ai.ComposeNode { + public SimpleParallel(ByteBuf _buf) { + super(_buf); + finishMode = _buf.readInt(); + mainTask = cfg.ai.Task.deserialize(_buf); + backgroundNode = cfg.ai.FlowNode.deserialize(_buf); + } + + public static SimpleParallel deserialize(ByteBuf _buf) { + return new cfg.ai.SimpleParallel(_buf); + } + + public final int finishMode; + public final cfg.ai.Task mainTask; + public final cfg.ai.FlowNode backgroundNode; + + public static final int __ID__ = -1952582529; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + finishMode + "," + + "(format_field_name __code_style field.name):" + mainTask + "," + + "(format_field_name __code_style field.name):" + backgroundNode + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/StringKeyData.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/StringKeyData.java new file mode 100644 index 00000000..852716e8 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/StringKeyData.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class StringKeyData extends cfg.ai.KeyData { + public StringKeyData(ByteBuf _buf) { + super(_buf); + value = _buf.readString(); + } + + public static StringKeyData deserialize(ByteBuf _buf) { + return new cfg.ai.StringKeyData(_buf); + } + + public final String value; + + public static final int __ID__ = -307888654; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Task.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Task.java new file mode 100644 index 00000000..0e427771 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/Task.java @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public abstract class Task extends cfg.ai.FlowNode { + public Task(ByteBuf _buf) { + super(_buf); + ignoreRestartSelf = _buf.readBool(); + } + + public static Task deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.ai.UeWait.__ID__: return new cfg.ai.UeWait(_buf); + case cfg.ai.UeWaitBlackboardTime.__ID__: return new cfg.ai.UeWaitBlackboardTime(_buf); + case cfg.ai.MoveToTarget.__ID__: return new cfg.ai.MoveToTarget(_buf); + case cfg.ai.ChooseSkill.__ID__: return new cfg.ai.ChooseSkill(_buf); + case cfg.ai.MoveToRandomLocation.__ID__: return new cfg.ai.MoveToRandomLocation(_buf); + case cfg.ai.MoveToLocation.__ID__: return new cfg.ai.MoveToLocation(_buf); + case cfg.ai.DebugPrint.__ID__: return new cfg.ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public final boolean ignoreRestartSelf; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/TbBehaviorTree.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/TbBehaviorTree.java new file mode 100644 index 00000000..6d4fe5ec --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/TbBehaviorTree.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class TbBehaviorTree { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbBehaviorTree(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.ai.BehaviorTree _v; + _v = cfg.ai.BehaviorTree.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.ai.BehaviorTree get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/TbBlackboard.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/TbBlackboard.java new file mode 100644 index 00000000..b6cb35ef --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/TbBlackboard.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class TbBlackboard { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbBlackboard(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.ai.Blackboard _v; + _v = cfg.ai.Blackboard.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.name, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.ai.Blackboard get(String key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeBlackboard.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeBlackboard.java new file mode 100644 index 00000000..b219abac --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeBlackboard.java @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeBlackboard extends cfg.ai.Decorator { + public UeBlackboard(ByteBuf _buf) { + super(_buf); + notifyObserver = _buf.readInt(); + blackboardKey = _buf.readString(); + keyQuery = cfg.ai.KeyQueryOperator.deserialize(_buf); + } + + public static UeBlackboard deserialize(ByteBuf _buf) { + return new cfg.ai.UeBlackboard(_buf); + } + + public final int notifyObserver; + public final String blackboardKey; + public final cfg.ai.KeyQueryOperator keyQuery; + + public static final int __ID__ = -315297507; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + notifyObserver + "," + + "(format_field_name __code_style field.name):" + blackboardKey + "," + + "(format_field_name __code_style field.name):" + keyQuery + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeCooldown.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeCooldown.java new file mode 100644 index 00000000..c40d4233 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeCooldown.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeCooldown extends cfg.ai.Decorator { + public UeCooldown(ByteBuf _buf) { + super(_buf); + cooldownTime = _buf.readFloat(); + } + + public static UeCooldown deserialize(ByteBuf _buf) { + return new cfg.ai.UeCooldown(_buf); + } + + public final float cooldownTime; + + public static final int __ID__ = -951439423; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + cooldownTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeForceSuccess.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeForceSuccess.java new file mode 100644 index 00000000..023628b7 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeForceSuccess.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeForceSuccess extends cfg.ai.Decorator { + public UeForceSuccess(ByteBuf _buf) { + super(_buf); + } + + public static UeForceSuccess deserialize(ByteBuf _buf) { + return new cfg.ai.UeForceSuccess(_buf); + } + + + public static final int __ID__ = 195054574; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeLoop.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeLoop.java new file mode 100644 index 00000000..513c430a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeLoop.java @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeLoop extends cfg.ai.Decorator { + public UeLoop(ByteBuf _buf) { + super(_buf); + numLoops = _buf.readInt(); + infiniteLoop = _buf.readBool(); + infiniteLoopTimeoutTime = _buf.readFloat(); + } + + public static UeLoop deserialize(ByteBuf _buf) { + return new cfg.ai.UeLoop(_buf); + } + + public final int numLoops; + public final boolean infiniteLoop; + public final float infiniteLoopTimeoutTime; + + public static final int __ID__ = -513308166; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + numLoops + "," + + "(format_field_name __code_style field.name):" + infiniteLoop + "," + + "(format_field_name __code_style field.name):" + infiniteLoopTimeoutTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeSetDefaultFocus.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeSetDefaultFocus.java new file mode 100644 index 00000000..e1de2dce --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeSetDefaultFocus.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeSetDefaultFocus extends cfg.ai.Service { + public UeSetDefaultFocus(ByteBuf _buf) { + super(_buf); + keyboardKey = _buf.readString(); + } + + public static UeSetDefaultFocus deserialize(ByteBuf _buf) { + return new cfg.ai.UeSetDefaultFocus(_buf); + } + + public final String keyboardKey; + + public static final int __ID__ = 1812449155; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + keyboardKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeTimeLimit.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeTimeLimit.java new file mode 100644 index 00000000..ffa5852a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeTimeLimit.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeTimeLimit extends cfg.ai.Decorator { + public UeTimeLimit(ByteBuf _buf) { + super(_buf); + limitTime = _buf.readFloat(); + } + + public static UeTimeLimit deserialize(ByteBuf _buf) { + return new cfg.ai.UeTimeLimit(_buf); + } + + public final float limitTime; + + public static final int __ID__ = 338469720; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + limitTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeWait.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeWait.java new file mode 100644 index 00000000..3ea95db8 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeWait.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeWait extends cfg.ai.Task { + public UeWait(ByteBuf _buf) { + super(_buf); + waitTime = _buf.readFloat(); + randomDeviation = _buf.readFloat(); + } + + public static UeWait deserialize(ByteBuf _buf) { + return new cfg.ai.UeWait(_buf); + } + + public final float waitTime; + public final float randomDeviation; + + public static final int __ID__ = -512994101; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + waitTime + "," + + "(format_field_name __code_style field.name):" + randomDeviation + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeWaitBlackboardTime.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeWaitBlackboardTime.java new file mode 100644 index 00000000..ad4a3587 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UeWaitBlackboardTime.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UeWaitBlackboardTime extends cfg.ai.Task { + public UeWaitBlackboardTime(ByteBuf _buf) { + super(_buf); + blackboardKey = _buf.readString(); + } + + public static UeWaitBlackboardTime deserialize(ByteBuf _buf) { + return new cfg.ai.UeWaitBlackboardTime(_buf); + } + + public final String blackboardKey; + + public static final int __ID__ = 1215378271; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + blackboardKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UpdateDailyBehaviorProps.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UpdateDailyBehaviorProps.java new file mode 100644 index 00000000..823e8ceb --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/ai/UpdateDailyBehaviorProps.java @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; + + +public final class UpdateDailyBehaviorProps extends cfg.ai.Service { + public UpdateDailyBehaviorProps(ByteBuf _buf) { + super(_buf); + satietyKey = _buf.readString(); + energyKey = _buf.readString(); + moodKey = _buf.readString(); + satietyLowerThresholdKey = _buf.readString(); + satietyUpperThresholdKey = _buf.readString(); + energyLowerThresholdKey = _buf.readString(); + energyUpperThresholdKey = _buf.readString(); + moodLowerThresholdKey = _buf.readString(); + moodUpperThresholdKey = _buf.readString(); + } + + public static UpdateDailyBehaviorProps deserialize(ByteBuf _buf) { + return new cfg.ai.UpdateDailyBehaviorProps(_buf); + } + + public final String satietyKey; + public final String energyKey; + public final String moodKey; + public final String satietyLowerThresholdKey; + public final String satietyUpperThresholdKey; + public final String energyLowerThresholdKey; + public final String energyUpperThresholdKey; + public final String moodLowerThresholdKey; + public final String moodUpperThresholdKey; + + public static final int __ID__ = -61887372; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + satietyKey + "," + + "(format_field_name __code_style field.name):" + energyKey + "," + + "(format_field_name __code_style field.name):" + moodKey + "," + + "(format_field_name __code_style field.name):" + satietyLowerThresholdKey + "," + + "(format_field_name __code_style field.name):" + satietyUpperThresholdKey + "," + + "(format_field_name __code_style field.name):" + energyLowerThresholdKey + "," + + "(format_field_name __code_style field.name):" + energyUpperThresholdKey + "," + + "(format_field_name __code_style field.name):" + moodLowerThresholdKey + "," + + "(format_field_name __code_style field.name):" + moodUpperThresholdKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/EBoolOperator.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/EBoolOperator.java new file mode 100644 index 00000000..1df2f090 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/EBoolOperator.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.common; + +public final class EBoolOperator { + public static final int AND = 0; + public static final int OR = 1; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/GlobalConfig.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/GlobalConfig.java new file mode 100644 index 00000000..f447485a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/GlobalConfig.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.common; + +import luban.*; + + +public final class GlobalConfig extends AbstractBean { + public GlobalConfig(ByteBuf _buf) { + x1 = _buf.readInt(); + x2 = _buf.readInt(); + x3 = _buf.readInt(); + x4 = _buf.readInt(); + x5 = _buf.readInt(); + x6 = _buf.readInt(); + {int n = Math.min(_buf.readSize(), _buf.size());x7 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); x7.add(_e);}} + } + + public static GlobalConfig deserialize(ByteBuf _buf) { + return new cfg.common.GlobalConfig(_buf); + } + + /** + * 背包容量 + */ + public final int x1; + public final int x2; + public final int x3; + public final int x4; + public final int x5; + public final int x6; + public final java.util.ArrayList x7; + + public static final int __ID__ = -848234488; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x7 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/TbGlobalConfig.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/TbGlobalConfig.java new file mode 100644 index 00000000..a05c069a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/common/TbGlobalConfig.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.common; + +import luban.*; + + +public final class TbGlobalConfig { + private final cfg.common.GlobalConfig _data; + + public final cfg.common.GlobalConfig data() { return _data; } + + public TbGlobalConfig(ByteBuf _buf) { + int n = _buf.readSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.common.GlobalConfig.deserialize(_buf); + } + + + /** + * 背包容量 + */ + public int getX1() { return _data.x1; } + public int getX2() { return _data.x2; } + public int getX3() { return _data.x3; } + public int getX4() { return _data.x4; } + public int getX5() { return _data.x5; } + public int getX6() { return _data.x6; } + public java.util.ArrayList getX7() { return _data.x7; } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothersStarQualityType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothersStarQualityType.java new file mode 100644 index 00000000..d3dbc149 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothersStarQualityType.java @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothersStarQualityType { + /** + * 一星 + */ + public static final int ONE = 1; + /** + * 二星 + */ + public static final int TWO = 2; + /** + * 三星 + */ + public static final int THREE = 3; + /** + * 四星 + */ + public static final int FOUR = 4; + /** + * 五星 + */ + public static final int FIVE = 5; + /** + * 六星 + */ + public static final int SIX = 6; + /** + * 七星 + */ + public static final int SEVEN = 7; + /** + * 八星 + */ + public static final int EIGHT = 8; + /** + * 九星 + */ + public static final int NINE = 9; + /** + * 十星 + */ + public static final int TEN = 10; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothersTag.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothersTag.java new file mode 100644 index 00000000..761eb8e4 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothersTag.java @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothersTag { + /** + * 防晒 + */ + public static final int FANG_SHAI = 1; + /** + * 舞者 + */ + public static final int WU_ZHE = 2; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothesHidePartType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothesHidePartType.java new file mode 100644 index 00000000..e0afb396 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothesHidePartType.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothesHidePartType { + /** + * 胸部 + */ + public static final int CHEST = 0; + /** + * 手 + */ + public static final int HEAD = 1; + /** + * 脊柱上 + */ + public static final int SPINE_UPPER = 2; + /** + * 脊柱下 + */ + public static final int SPINE_LOWER = 3; + /** + * 臀部 + */ + public static final int HIP = 4; + /** + * 腿上 + */ + public static final int LEG_UPPER = 5; + /** + * 腿中 + */ + public static final int LEG_MIDDLE = 6; + /** + * 腿下 + */ + public static final int LEG_LOWER = 7; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothesPropertyType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothesPropertyType.java new file mode 100644 index 00000000..654bf271 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EClothesPropertyType.java @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothesPropertyType { + /** + * 简约 + */ + public static final int JIAN_YUE = 1; + /** + * 华丽 + */ + public static final int HUA_LI = 2; + /** + * 可爱 + */ + public static final int KE_AI = 3; + /** + * 成熟 + */ + public static final int CHENG_SHU = 4; + /** + * 活泼 + */ + public static final int HUO_PO = 5; + /** + * 优雅 + */ + public static final int YOU_YA = 6; + /** + * 清纯 + */ + public static final int QING_CHUN = 7; + /** + * 性感 + */ + public static final int XING_GAN = 8; + /** + * 清凉 + */ + public static final int QING_LIANG = 9; + /** + * 保暖 + */ + public static final int BAO_NUAN = 10; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/ECurrencyType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/ECurrencyType.java new file mode 100644 index 00000000..78dfac09 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/ECurrencyType.java @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class ECurrencyType { + /** + * 钻石 + */ + public static final int DIAMOND = 1; + /** + * 金币 + */ + public static final int GOLD = 2; + /** + * 银币 + */ + public static final int SILVER = 3; + /** + * 经验 + */ + public static final int EXP = 4; + /** + * 能量点 + */ + public static final int POWER_POINT = 5; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EItemQuality.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EItemQuality.java new file mode 100644 index 00000000..a8fca1a2 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EItemQuality.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +/** + * 道具品质 + */ +public final class EItemQuality { + /** + * 白 + */ + public static final int WHITE = 0; + /** + * 绿 + */ + public static final int GREEN = 1; + /** + * 蓝 + */ + public static final int BLUE = 2; + /** + * 紫 + */ + public static final int PURPLE = 3; + /** + * 金 + */ + public static final int GOLDEN = 4; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EMajorType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EMajorType.java new file mode 100644 index 00000000..38e30ba7 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EMajorType.java @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EMajorType { + /** + * 货币 + */ + public static final int CURRENCY = 1; + /** + * 服装 + */ + public static final int CLOTH = 2; + /** + * 任务 + */ + public static final int QUEST = 3; + /** + * 消耗品 + */ + public static final int CONSUMABLES = 4; + /** + * 宝箱 + */ + public static final int TREASURE_BOX = 5; + /** + * 成就和称谓 + */ + public static final int ACHIEVEMENT_AND_TITLE = 6; + /** + * 头像框 + */ + public static final int HEAD_FRAME = 7; + /** + * 语音 + */ + public static final int VOICE = 8; + /** + * 动作 + */ + public static final int ACTION = 9; + /** + * 扩容道具 + */ + public static final int EXPANSION = 10; + /** + * 制作材料 + */ + public static final int MATERIAL = 11; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EMinorType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EMinorType.java new file mode 100644 index 00000000..404dac12 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EMinorType.java @@ -0,0 +1,210 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EMinorType { + /** + * 钻石 + */ + public static final int DIAMOND = 101; + /** + * 金币 + */ + public static final int GOLD = 102; + /** + * 银币 + */ + public static final int SILVER = 103; + /** + * 经验 + */ + public static final int EXP = 104; + /** + * 能量点 + */ + public static final int POWER_POINT = 105; + /** + * 发型 + */ + public static final int HAIR_STYLE = 210; + /** + * 外套 + */ + public static final int COAT = 220; + /** + * 上衣 + */ + public static final int UPPER_JACKET = 230; + /** + * 裤子 + */ + public static final int TROUSERS = 241; + /** + * 裙子 + */ + public static final int SKIRT = 242; + /** + * 袜子 + */ + public static final int SOCKS = 250; + /** + * 鞋子 + */ + public static final int SHOES = 260; + /** + * 发饰 + */ + public static final int HAIR_ACCESSORY = 271; + /** + * 帽子 + */ + public static final int HAT = 272; + /** + * 耳饰 + */ + public static final int EARRING = 273; + /** + * 颈饰 + */ + public static final int NECKLACE = 274; + /** + * 腕饰 + */ + public static final int BRACELET = 275; + /** + * 发箍 + */ + public static final int HAIR_CLASP = 276; + /** + * 手套 + */ + public static final int GLOVE = 277; + /** + * 手持物 + */ + public static final int HANDHELD_OBJECT = 278; + /** + * 特殊 + */ + public static final int SPECIAL = 279; + /** + * 底妆 + */ + public static final int BASE_COSMETIC = 281; + /** + * 眉妆 + */ + public static final int EYEBROW_COSMETIC = 282; + /** + * 睫毛 + */ + public static final int EYELASH = 283; + /** + * 美瞳 + */ + public static final int COSMETIC_CONTACT_LENSES = 284; + /** + * 唇妆 + */ + public static final int LIP_COSMETIC = 285; + /** + * 肤色 + */ + public static final int SKIN_COLOR = 286; + /** + * 连衣裙 + */ + public static final int ONE_PIECE_DRESS = 290; + /** + * 换装场景 + */ + public static final int SWITCH_CLOTHES_SCENE = 291; + /** + * 任务道具 + */ + public static final int QUEST = 301; + /** + * 投掷物 + */ + public static final int CAST = 401; + /** + * 刀剑 + */ + public static final int SWORD = 421; + /** + * 弓箭 + */ + public static final int BOW_ARROW = 422; + /** + * 法杖 + */ + public static final int WANDS = 423; + /** + * 特殊工具 + */ + public static final int SPECIAL_TOOL = 424; + /** + * 食物 + */ + public static final int FOOD = 403; + /** + * 宝箱 + */ + public static final int TREASURE_BOX = 501; + /** + * 钥匙 + */ + public static final int KEY = 502; + /** + * 多选一宝箱 + */ + public static final int MULTI_CHOOSE_TREASURE_BOX = 503; + /** + * 成就相关 + */ + public static final int ACHIEVEMENT = 601; + /** + * 称谓相关 + */ + public static final int TITLE = 602; + /** + * 头像框 + */ + public static final int AVATAR_FRAME = 701; + /** + * 语音 + */ + public static final int VOICE = 801; + /** + * 特殊待机动作 + */ + public static final int IDLE_POSE = 901; + /** + * 拍照动作 + */ + public static final int PHOTO_POSE = 902; + /** + * 背包 + */ + public static final int BAG = 1001; + /** + * 好友数量 + */ + public static final int FRIEND_CAPACITY = 1002; + /** + * 制作材料 + */ + public static final int CONSTRUCTION_MATERIAL = 1101; + /** + * 设计图纸 + */ + public static final int DESIGN_DRAWING = 1102; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EUseType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EUseType.java new file mode 100644 index 00000000..8bd26889 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/EUseType.java @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EUseType { + /** + * 手动 + */ + public static final int MANUAL = 0; + /** + * 自动 + */ + public static final int AUTO = 1; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/Item.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/Item.java new file mode 100644 index 00000000..eefea75e --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/Item.java @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +import luban.*; + + +/** + * 道具 + */ +public final class Item extends AbstractBean { + public Item(ByteBuf _buf) { + id = _buf.readInt(); + name = _buf.readString(); + minorType = _buf.readInt(); + quality = _buf.readInt(); + iconBackgroud = _buf.readString(); + iconMask = _buf.readString(); + desc = _buf.readString(); + showOrder = _buf.readInt(); + } + + public static Item deserialize(ByteBuf _buf) { + return new cfg.item.Item(_buf); + } + + /** + * 道具id + */ + public final int id; + public final String name; + public final int minorType; + public final int quality; + public final String iconBackgroud; + public final String iconMask; + public final String desc; + public final int showOrder; + + public static final int __ID__ = 2107285806; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + minorType + "," + + "(format_field_name __code_style field.name):" + quality + "," + + "(format_field_name __code_style field.name):" + iconBackgroud + "," + + "(format_field_name __code_style field.name):" + iconMask + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + showOrder + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/TbItem.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/TbItem.java new file mode 100644 index 00000000..9a48141a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/item/TbItem.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +import luban.*; + + +/** + * 道具表 + */ +public final class TbItem { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbItem(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.item.Item _v; + _v = cfg.item.Item.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.item.Item get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/L10NDemo.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/L10NDemo.java new file mode 100644 index 00000000..bab71943 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/L10NDemo.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; + + +public final class L10NDemo extends AbstractBean { + public L10NDemo(ByteBuf _buf) { + id = _buf.readInt(); + text = _buf.readString(); + } + + public static L10NDemo deserialize(ByteBuf _buf) { + return new cfg.l10n.L10NDemo(_buf); + } + + public final int id; + public final String text; + + public static final int __ID__ = -331195887; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + text + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/PatchDemo.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/PatchDemo.java new file mode 100644 index 00000000..520d341b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/PatchDemo.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; + + +public final class PatchDemo extends AbstractBean { + public PatchDemo(ByteBuf _buf) { + id = _buf.readInt(); + value = _buf.readInt(); + } + + public static PatchDemo deserialize(ByteBuf _buf) { + return new cfg.l10n.PatchDemo(_buf); + } + + public final int id; + public final int value; + + public static final int __ID__ = -1707294656; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/TbL10NDemo.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/TbL10NDemo.java new file mode 100644 index 00000000..213c4de8 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/TbL10NDemo.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; + + +public final class TbL10NDemo { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbL10NDemo(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.l10n.L10NDemo _v; + _v = cfg.l10n.L10NDemo.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.l10n.L10NDemo get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/TbPatchDemo.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/TbPatchDemo.java new file mode 100644 index 00000000..eed828d3 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/l10n/TbPatchDemo.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; + + +public final class TbPatchDemo { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbPatchDemo(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.l10n.PatchDemo _v; + _v = cfg.l10n.PatchDemo.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.l10n.PatchDemo get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/tag/TbTestTag.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/tag/TbTestTag.java new file mode 100644 index 00000000..33925eab --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/tag/TbTestTag.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.tag; + +import luban.*; + + +public final class TbTestTag { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestTag(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.tag.TestTag _v; + _v = cfg.tag.TestTag.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.tag.TestTag get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/tag/TestTag.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/tag/TestTag.java new file mode 100644 index 00000000..678acdf7 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/tag/TestTag.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.tag; + +import luban.*; + + +public final class TestTag extends AbstractBean { + public TestTag(ByteBuf _buf) { + id = _buf.readInt(); + value = _buf.readString(); + } + + public static TestTag deserialize(ByteBuf _buf) { + return new cfg.tag.TestTag(_buf); + } + + public final int id; + public final String value; + + public static final int __ID__ = 1742933812; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/AccessFlag.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/AccessFlag.java new file mode 100644 index 00000000..41cfd5b4 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/AccessFlag.java @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class AccessFlag { + public static final int WRITE = 1; + public static final int READ = 2; + public static final int TRUNCATE = 4; + public static final int NEW = 8; + public static final int READ_WRITE = 3; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Circle.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Circle.java new file mode 100644 index 00000000..9d22dbd0 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Circle.java @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +/** + * 圆 + */ +public final class Circle extends cfg.test.Shape { + public Circle(ByteBuf _buf) { + super(_buf); + radius = _buf.readFloat(); + } + + public static Circle deserialize(ByteBuf _buf) { + return new cfg.test.Circle(_buf); + } + + /** + * 半径 + */ + public final float radius; + + public static final int __ID__ = 2131829196; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + radius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompactString.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompactString.java new file mode 100644 index 00000000..a9f6287e --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompactString.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class CompactString extends AbstractBean { + public CompactString(ByteBuf _buf) { + id = _buf.readInt(); + s2 = _buf.readString(); + s3 = _buf.readString(); + } + + public static CompactString deserialize(ByteBuf _buf) { + return new cfg.test.CompactString(_buf); + } + + public final int id; + public final String s2; + public final String s3; + + public static final int __ID__ = 1968089240; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + s3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable1.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable1.java new file mode 100644 index 00000000..fa0ea57b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable1.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class CompositeJsonTable1 extends AbstractBean { + public CompositeJsonTable1(ByteBuf _buf) { + id = _buf.readInt(); + x = _buf.readString(); + } + + public static CompositeJsonTable1 deserialize(ByteBuf _buf) { + return new cfg.test.CompositeJsonTable1(_buf); + } + + public final int id; + public final String x; + + public static final int __ID__ = 1566207894; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable2.java new file mode 100644 index 00000000..4a5e5a2a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable2.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class CompositeJsonTable2 extends AbstractBean { + public CompositeJsonTable2(ByteBuf _buf) { + id = _buf.readInt(); + y = _buf.readInt(); + } + + public static CompositeJsonTable2 deserialize(ByteBuf _buf) { + return new cfg.test.CompositeJsonTable2(_buf); + } + + public final int id; + public final int y; + + public static final int __ID__ = 1566207895; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable3.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable3.java new file mode 100644 index 00000000..7b58d077 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/CompositeJsonTable3.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class CompositeJsonTable3 extends AbstractBean { + public CompositeJsonTable3(ByteBuf _buf) { + a = _buf.readInt(); + b = _buf.readInt(); + } + + public static CompositeJsonTable3 deserialize(ByteBuf _buf) { + return new cfg.test.CompositeJsonTable3(_buf); + } + + public final int a; + public final int b; + + public static final int __ID__ = 1566207896; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + a + "," + + "(format_field_name __code_style field.name):" + b + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DateTimeRange.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DateTimeRange.java new file mode 100644 index 00000000..ec4c7d7f --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DateTimeRange.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DateTimeRange extends AbstractBean { + public DateTimeRange(ByteBuf _buf) { + startTime = _buf.readLong(); + endTime = _buf.readLong(); + } + + public static DateTimeRange deserialize(ByteBuf _buf) { + return new cfg.test.DateTimeRange(_buf); + } + + public final long startTime; + public final long endTime; + + public static final int __ID__ = 495315430; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + startTime + "," + + "(format_field_name __code_style field.name):" + endTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Decorator.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Decorator.java new file mode 100644 index 00000000..6c44e730 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Decorator.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class Decorator extends cfg.test.ItemBase { + public Decorator(ByteBuf _buf) { + super(_buf); + duration = _buf.readInt(); + } + + public static Decorator deserialize(ByteBuf _buf) { + return new cfg.test.Decorator(_buf); + } + + public final int duration; + + public static final int __ID__ = -625155649; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + duration + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD2.java new file mode 100644 index 00000000..2fa081a2 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD2.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoD2 extends cfg.test.DemoDynamic { + public DemoD2(ByteBuf _buf) { + super(_buf); + x2 = _buf.readInt(); + } + + public static DemoD2 deserialize(ByteBuf _buf) { + return new cfg.test.DemoD2(_buf); + } + + public final int x2; + + public static final int __ID__ = -2138341747; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD3.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD3.java new file mode 100644 index 00000000..d618f50a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD3.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public abstract class DemoD3 extends cfg.test.DemoDynamic { + public DemoD3(ByteBuf _buf) { + super(_buf); + x3 = _buf.readInt(); + } + + public static DemoD3 deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.test.DemoE1.__ID__: return new cfg.test.DemoE1(_buf); + case cfg.test.login.RoleInfo.__ID__: return new cfg.test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public final int x3; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD5.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD5.java new file mode 100644 index 00000000..ffb4e61e --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoD5.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoD5 extends cfg.test.DemoDynamic { + public DemoD5(ByteBuf _buf) { + super(_buf); + time = cfg.test.DateTimeRange.deserialize(_buf); + } + + public static DemoD5 deserialize(ByteBuf _buf) { + return new cfg.test.DemoD5(_buf); + } + + public final cfg.test.DateTimeRange time; + + public static final int __ID__ = -2138341744; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + time + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoDynamic.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoDynamic.java new file mode 100644 index 00000000..41f21fd3 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoDynamic.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public abstract class DemoDynamic extends AbstractBean { + public DemoDynamic(ByteBuf _buf) { + x1 = _buf.readInt(); + } + + public static DemoDynamic deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.test.DemoD2.__ID__: return new cfg.test.DemoD2(_buf); + case cfg.test.DemoE1.__ID__: return new cfg.test.DemoE1(_buf); + case cfg.test.login.RoleInfo.__ID__: return new cfg.test.login.RoleInfo(_buf); + case cfg.test.DemoD5.__ID__: return new cfg.test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public final int x1; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoE1.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoE1.java new file mode 100644 index 00000000..2bfe72c9 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoE1.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoE1 extends cfg.test.DemoD3 { + public DemoE1(ByteBuf _buf) { + super(_buf); + x4 = _buf.readInt(); + } + + public static DemoE1 deserialize(ByteBuf _buf) { + return new cfg.test.DemoE1(_buf); + } + + public final int x4; + + public static final int __ID__ = -2138341717; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoE2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoE2.java new file mode 100644 index 00000000..fdb0e261 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoE2.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoE2 extends AbstractBean { + public DemoE2(ByteBuf _buf) { + if(_buf.readBool()){ y1 = _buf.readInt(); } else { y1 = null; } + y2 = _buf.readBool(); + } + + public static DemoE2 deserialize(ByteBuf _buf) { + return new cfg.test.DemoE2(_buf); + } + + public final Integer y1; + public final boolean y2; + + public static final int __ID__ = -2138341716; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y1 + "," + + "(format_field_name __code_style field.name):" + y2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoEnum.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoEnum.java new file mode 100644 index 00000000..c8327858 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoEnum.java @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class DemoEnum { + public static final int NONE = 0; + /** + * aa + */ + public static final int A = 1; + /** + * bb + */ + public static final int B = 2; + /** + * cc + */ + public static final int C = 4; + /** + * dd + */ + public static final int D = 5; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoFlag.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoFlag.java new file mode 100644 index 00000000..6da1dba8 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoFlag.java @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class DemoFlag { + public static final int A = 1; + public static final int B = 2; + public static final int C = 4; + public static final int D = 8; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoGroup.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoGroup.java new file mode 100644 index 00000000..651fd7f6 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoGroup.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoGroup extends AbstractBean { + public DemoGroup(ByteBuf _buf) { + id = _buf.readInt(); + x5 = cfg.test.InnerGroup.deserialize(_buf); + } + + public static DemoGroup deserialize(ByteBuf _buf) { + return new cfg.test.DemoGroup(_buf); + } + + public final int id; + public final cfg.test.InnerGroup x5; + + public static final int __ID__ = -379263008; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoPrimitiveTypesTable.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoPrimitiveTypesTable.java new file mode 100644 index 00000000..73600348 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoPrimitiveTypesTable.java @@ -0,0 +1,74 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoPrimitiveTypesTable extends AbstractBean { + public DemoPrimitiveTypesTable(ByteBuf _buf) { + x1 = _buf.readBool(); + x2 = _buf.readByte(); + x3 = _buf.readShort(); + x4 = _buf.readInt(); + x5 = _buf.readLong(); + x6 = _buf.readFloat(); + x7 = _buf.readDouble(); + s1 = _buf.readString(); + s2 = _buf.readString(); + v2 = cfg.vec2.deserialize(_buf); + v3 = cfg.vec3.deserialize(_buf); + v4 = cfg.vec4.deserialize(_buf); + t1 = _buf.readLong(); + } + + public static DemoPrimitiveTypesTable deserialize(ByteBuf _buf) { + return new cfg.test.DemoPrimitiveTypesTable(_buf); + } + + public final boolean x1; + public final byte x2; + public final short x3; + public final int x4; + public final long x5; + public final float x6; + public final double x7; + public final String s1; + public final String s2; + public final cfg.vec2 v2; + public final cfg.vec3 v3; + public final cfg.vec4 v4; + public final long t1; + + public static final int __ID__ = -370934083; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x7 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "(format_field_name __code_style field.name):" + v3 + "," + + "(format_field_name __code_style field.name):" + v4 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoSingletonType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoSingletonType.java new file mode 100644 index 00000000..adff452d --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoSingletonType.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoSingletonType extends AbstractBean { + public DemoSingletonType(ByteBuf _buf) { + id = _buf.readInt(); + name = _buf.readString(); + date = cfg.test.DemoDynamic.deserialize(_buf); + } + + public static DemoSingletonType deserialize(ByteBuf _buf) { + return new cfg.test.DemoSingletonType(_buf); + } + + public final int id; + public final String name; + public final cfg.test.DemoDynamic date; + + public static final int __ID__ = 539196998; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + date + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoType1.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoType1.java new file mode 100644 index 00000000..ce6d3657 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoType1.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoType1 extends AbstractBean { + public DemoType1(ByteBuf _buf) { + x1 = _buf.readInt(); + } + + public static DemoType1 deserialize(ByteBuf _buf) { + return new cfg.test.DemoType1(_buf); + } + + public final int x1; + + public static final int __ID__ = -367048296; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoType2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoType2.java new file mode 100644 index 00000000..f12078dd --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DemoType2.java @@ -0,0 +1,101 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DemoType2 extends AbstractBean { + public DemoType2(ByteBuf _buf) { + x4 = _buf.readInt(); + x1 = _buf.readBool(); + x2 = _buf.readByte(); + x3 = _buf.readShort(); + x5 = _buf.readLong(); + x6 = _buf.readFloat(); + x7 = _buf.readDouble(); + x80 = _buf.readShort(); + x8 = _buf.readInt(); + x9 = _buf.readLong(); + x10 = _buf.readString(); + x12 = cfg.test.DemoType1.deserialize(_buf); + x13 = _buf.readInt(); + x14 = cfg.test.DemoDynamic.deserialize(_buf); + s1 = _buf.readString(); + t1 = _buf.readLong(); + {int n = Math.min(_buf.readSize(), _buf.size());k1 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); k1[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());k2 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); k2.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());k5 = new java.util.HashSet(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); k5.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());k8 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); k8.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());k9 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.DemoE2 _e; _e = cfg.test.DemoE2.deserialize(_buf); k9.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());k15 = new cfg.test.DemoDynamic[n];for(int i = 0 ; i < n ; i++) { cfg.test.DemoDynamic _e;_e = cfg.test.DemoDynamic.deserialize(_buf); k15[i] = _e;}} + } + + public static DemoType2 deserialize(ByteBuf _buf) { + return new cfg.test.DemoType2(_buf); + } + + public final int x4; + public final boolean x1; + public final byte x2; + public final short x3; + public final long x5; + public final float x6; + public final double x7; + public final short x80; + public final int x8; + public final long x9; + public final String x10; + public final cfg.test.DemoType1 x12; + public final int x13; + public final cfg.test.DemoDynamic x14; + public final String s1; + public final long t1; + public final int[] k1; + public final java.util.ArrayList k2; + public final java.util.HashSet k5; + public final java.util.HashMap k8; + public final java.util.ArrayList k9; + public final cfg.test.DemoDynamic[] k15; + + public static final int __ID__ = -367048295; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x7 + "," + + "(format_field_name __code_style field.name):" + x80 + "," + + "(format_field_name __code_style field.name):" + x8 + "," + + "(format_field_name __code_style field.name):" + x9 + "," + + "(format_field_name __code_style field.name):" + x10 + "," + + "(format_field_name __code_style field.name):" + x12 + "," + + "(format_field_name __code_style field.name):" + x13 + "," + + "(format_field_name __code_style field.name):" + x14 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "(format_field_name __code_style field.name):" + k1 + "," + + "(format_field_name __code_style field.name):" + k2 + "," + + "(format_field_name __code_style field.name):" + k5 + "," + + "(format_field_name __code_style field.name):" + k8 + "," + + "(format_field_name __code_style field.name):" + k9 + "," + + "(format_field_name __code_style field.name):" + k15 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DetectEncoding.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DetectEncoding.java new file mode 100644 index 00000000..ad522041 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/DetectEncoding.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class DetectEncoding extends AbstractBean { + public DetectEncoding(ByteBuf _buf) { + id = _buf.readInt(); + name = _buf.readString(); + } + + public static DetectEncoding deserialize(ByteBuf _buf) { + return new cfg.test.DetectEncoding(_buf); + } + + public final int id; + public final String name; + + public static final int __ID__ = -1154609646; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestEmptyEnum.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestEmptyEnum.java new file mode 100644 index 00000000..feb65848 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestEmptyEnum.java @@ -0,0 +1,14 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestEmptyEnum { +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestEmptyEnum2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestEmptyEnum2.java new file mode 100644 index 00000000..4e0e381f --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestEmptyEnum2.java @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestEmptyEnum2 { + public static final int SMALL_THAN_256 = 255; + public static final int X_256 = 256; + public static final int X_257 = 257; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestQuality.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestQuality.java new file mode 100644 index 00000000..0af5b522 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestQuality.java @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestQuality { + /** + * 最高品质 + */ + public static final int A = 1; + /** + * 黑色的 + */ + public static final int B = 2; + /** + * 蓝色的 + */ + public static final int C = 3; + /** + * 最差品质 + */ + public static final int D = 4; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestUeType.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestUeType.java new file mode 100644 index 00000000..d3dd0372 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ETestUeType.java @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestUeType { + /** + * 白 + */ + public static final int WHITE = 0; + public static final int BLACK = 1; +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Equipment.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Equipment.java new file mode 100644 index 00000000..6d7010c3 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Equipment.java @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class Equipment extends cfg.test.ItemBase { + public Equipment(ByteBuf _buf) { + super(_buf); + attr = _buf.readInt(); + value = _buf.readInt(); + } + + public static Equipment deserialize(ByteBuf _buf) { + return new cfg.test.Equipment(_buf); + } + + public final int attr; + public final int value; + + public static final int __ID__ = -76837102; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + attr + "," + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ExcelFromJson.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ExcelFromJson.java new file mode 100644 index 00000000..94ddf52e --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ExcelFromJson.java @@ -0,0 +1,77 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class ExcelFromJson extends AbstractBean { + public ExcelFromJson(ByteBuf _buf) { + x4 = _buf.readInt(); + x1 = _buf.readBool(); + x5 = _buf.readLong(); + x6 = _buf.readFloat(); + s1 = _buf.readString(); + s2 = _buf.readString(); + t1 = _buf.readLong(); + x12 = cfg.test.DemoType1.deserialize(_buf); + x13 = _buf.readInt(); + x14 = cfg.test.DemoDynamic.deserialize(_buf); + {int n = Math.min(_buf.readSize(), _buf.size());k1 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); k1[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());k8 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); k8.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());k9 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.DemoE2 _e; _e = cfg.test.DemoE2.deserialize(_buf); k9.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());k15 = new cfg.test.DemoDynamic[n];for(int i = 0 ; i < n ; i++) { cfg.test.DemoDynamic _e;_e = cfg.test.DemoDynamic.deserialize(_buf); k15[i] = _e;}} + } + + public static ExcelFromJson deserialize(ByteBuf _buf) { + return new cfg.test.ExcelFromJson(_buf); + } + + public final int x4; + public final boolean x1; + public final long x5; + public final float x6; + public final String s1; + public final String s2; + public final long t1; + public final cfg.test.DemoType1 x12; + public final int x13; + public final cfg.test.DemoDynamic x14; + public final int[] k1; + public final java.util.HashMap k8; + public final java.util.ArrayList k9; + public final cfg.test.DemoDynamic[] k15; + + public static final int __ID__ = -1485706483; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "(format_field_name __code_style field.name):" + x12 + "," + + "(format_field_name __code_style field.name):" + x13 + "," + + "(format_field_name __code_style field.name):" + x14 + "," + + "(format_field_name __code_style field.name):" + k1 + "," + + "(format_field_name __code_style field.name):" + k8 + "," + + "(format_field_name __code_style field.name):" + k9 + "," + + "(format_field_name __code_style field.name):" + k15 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ExcelFromJsonMultiRow.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ExcelFromJsonMultiRow.java new file mode 100644 index 00000000..3ef86590 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ExcelFromJsonMultiRow.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class ExcelFromJsonMultiRow extends AbstractBean { + public ExcelFromJsonMultiRow(ByteBuf _buf) { + id = _buf.readInt(); + x = _buf.readInt(); + {int n = Math.min(_buf.readSize(), _buf.size());items = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.TestRow _e; _e = cfg.test.TestRow.deserialize(_buf); items.add(_e);}} + } + + public static ExcelFromJsonMultiRow deserialize(ByteBuf _buf) { + return new cfg.test.ExcelFromJsonMultiRow(_buf); + } + + public final int id; + public final int x; + public final java.util.ArrayList items; + + public static final int __ID__ = 715335694; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + items + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Foo.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Foo.java new file mode 100644 index 00000000..077af2be --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Foo.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class Foo extends AbstractBean { + public Foo(ByteBuf _buf) { + y1 = _buf.readInt(); + y2 = _buf.readInt(); + y3 = _buf.readInt(); + } + + public static Foo deserialize(ByteBuf _buf) { + return new cfg.test.Foo(_buf); + } + + public final int y1; + public final int y2; + public final int y3; + + public static final int __ID__ = -1147950774; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y1 + "," + + "(format_field_name __code_style field.name):" + y2 + "," + + "(format_field_name __code_style field.name):" + y3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/H1.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/H1.java new file mode 100644 index 00000000..0e8e4cac --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/H1.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class H1 extends AbstractBean { + public H1(ByteBuf _buf) { + y2 = cfg.test.H2.deserialize(_buf); + y3 = _buf.readInt(); + } + + public static H1 deserialize(ByteBuf _buf) { + return new cfg.test.H1(_buf); + } + + public final cfg.test.H2 y2; + public final int y3; + + public static final int __ID__ = -1422503995; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y2 + "," + + "(format_field_name __code_style field.name):" + y3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/H2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/H2.java new file mode 100644 index 00000000..cdfb04ef --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/H2.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class H2 extends AbstractBean { + public H2(ByteBuf _buf) { + z2 = _buf.readInt(); + z3 = _buf.readInt(); + } + + public static H2 deserialize(ByteBuf _buf) { + return new cfg.test.H2(_buf); + } + + public final int z2; + public final int z3; + + public static final int __ID__ = -1422503994; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + z2 + "," + + "(format_field_name __code_style field.name):" + z3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/InnerGroup.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/InnerGroup.java new file mode 100644 index 00000000..35a6110b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/InnerGroup.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class InnerGroup extends AbstractBean { + public InnerGroup(ByteBuf _buf) { + y1 = _buf.readInt(); + } + + public static InnerGroup deserialize(ByteBuf _buf) { + return new cfg.test.InnerGroup(_buf); + } + + public final int y1; + + public static final int __ID__ = -587873083; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Item.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Item.java new file mode 100644 index 00000000..3f089d3e --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Item.java @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class Item extends cfg.test.ItemBase { + public Item(ByteBuf _buf) { + super(_buf); + num = _buf.readInt(); + price = _buf.readInt(); + } + + public static Item deserialize(ByteBuf _buf) { + return new cfg.test.Item(_buf); + } + + public final int num; + public final int price; + + public static final int __ID__ = -1226641649; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + price + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ItemBase.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ItemBase.java new file mode 100644 index 00000000..adc18610 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/ItemBase.java @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public abstract class ItemBase extends AbstractBean { + public ItemBase(ByteBuf _buf) { + id = _buf.readInt(); + name = _buf.readString(); + desc = _buf.readString(); + } + + public static ItemBase deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.test.Item.__ID__: return new cfg.test.Item(_buf); + case cfg.test.Equipment.__ID__: return new cfg.test.Equipment(_buf); + case cfg.test.Decorator.__ID__: return new cfg.test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public final int id; + public final String name; + public final String desc; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiIndexList.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiIndexList.java new file mode 100644 index 00000000..39436380 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiIndexList.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class MultiIndexList extends AbstractBean { + public MultiIndexList(ByteBuf _buf) { + id1 = _buf.readInt(); + id2 = _buf.readLong(); + id3 = _buf.readString(); + num = _buf.readInt(); + desc = _buf.readString(); + } + + public static MultiIndexList deserialize(ByteBuf _buf) { + return new cfg.test.MultiIndexList(_buf); + } + + public final int id1; + public final long id2; + public final String id3; + public final int num; + public final String desc; + + public static final int __ID__ = 2016237651; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id1 + "," + + "(format_field_name __code_style field.name):" + id2 + "," + + "(format_field_name __code_style field.name):" + id3 + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowRecord.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowRecord.java new file mode 100644 index 00000000..b3c987d5 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowRecord.java @@ -0,0 +1,62 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class MultiRowRecord extends AbstractBean { + public MultiRowRecord(ByteBuf _buf) { + id = _buf.readInt(); + name = _buf.readString(); + {int n = Math.min(_buf.readSize(), _buf.size());oneRows = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.MultiRowType1 _e; _e = cfg.test.MultiRowType1.deserialize(_buf); oneRows.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());multiRows1 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.MultiRowType1 _e; _e = cfg.test.MultiRowType1.deserialize(_buf); multiRows1.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());multiRows2 = new cfg.test.MultiRowType1[n];for(int i = 0 ; i < n ; i++) { cfg.test.MultiRowType1 _e;_e = cfg.test.MultiRowType1.deserialize(_buf); multiRows2[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());multiRows4 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); cfg.test.MultiRowType2 _v; _v = cfg.test.MultiRowType2.deserialize(_buf); multiRows4.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());multiRows5 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.MultiRowType3 _e; _e = cfg.test.MultiRowType3.deserialize(_buf); multiRows5.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());multiRows6 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); cfg.test.MultiRowType2 _v; _v = cfg.test.MultiRowType2.deserialize(_buf); multiRows6.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());multiRows7 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); multiRows7.put(_k, _v);}} + } + + public static MultiRowRecord deserialize(ByteBuf _buf) { + return new cfg.test.MultiRowRecord(_buf); + } + + public final int id; + public final String name; + public final java.util.ArrayList oneRows; + public final java.util.ArrayList multiRows1; + public final cfg.test.MultiRowType1[] multiRows2; + public final java.util.HashMap multiRows4; + public final java.util.ArrayList multiRows5; + public final java.util.HashMap multiRows6; + public final java.util.HashMap multiRows7; + + public static final int __ID__ = -501249394; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + oneRows + "," + + "(format_field_name __code_style field.name):" + multiRows1 + "," + + "(format_field_name __code_style field.name):" + multiRows2 + "," + + "(format_field_name __code_style field.name):" + multiRows4 + "," + + "(format_field_name __code_style field.name):" + multiRows5 + "," + + "(format_field_name __code_style field.name):" + multiRows6 + "," + + "(format_field_name __code_style field.name):" + multiRows7 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowTitle.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowTitle.java new file mode 100644 index 00000000..53bcc789 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowTitle.java @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class MultiRowTitle extends AbstractBean { + public MultiRowTitle(ByteBuf _buf) { + id = _buf.readInt(); + name = _buf.readString(); + x1 = cfg.test.H1.deserialize(_buf); + if(_buf.readBool()){ x20 = cfg.test.H2.deserialize(_buf); } else { x20 = null; } + {int n = Math.min(_buf.readSize(), _buf.size());x2 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.H2 _e; _e = cfg.test.H2.deserialize(_buf); x2.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());x3 = new cfg.test.H2[n];for(int i = 0 ; i < n ; i++) { cfg.test.H2 _e;_e = cfg.test.H2.deserialize(_buf); x3[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());x4 = new cfg.test.H2[n];for(int i = 0 ; i < n ; i++) { cfg.test.H2 _e;_e = cfg.test.H2.deserialize(_buf); x4[i] = _e;}} + } + + public static MultiRowTitle deserialize(ByteBuf _buf) { + return new cfg.test.MultiRowTitle(_buf); + } + + public final int id; + public final String name; + public final cfg.test.H1 x1; + public final cfg.test.H2 x20; + public final java.util.ArrayList x2; + public final cfg.test.H2[] x3; + public final cfg.test.H2[] x4; + + public static final int __ID__ = 540002427; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x20 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType1.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType1.java new file mode 100644 index 00000000..adff00e7 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType1.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class MultiRowType1 extends AbstractBean { + public MultiRowType1(ByteBuf _buf) { + id = _buf.readInt(); + x = _buf.readInt(); + } + + public static MultiRowType1 deserialize(ByteBuf _buf) { + return new cfg.test.MultiRowType1(_buf); + } + + public final int id; + public final int x; + + public static final int __ID__ = 540474970; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType2.java new file mode 100644 index 00000000..e0dc3c83 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType2.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class MultiRowType2 extends AbstractBean { + public MultiRowType2(ByteBuf _buf) { + id = _buf.readInt(); + x = _buf.readInt(); + y = _buf.readFloat(); + } + + public static MultiRowType2 deserialize(ByteBuf _buf) { + return new cfg.test.MultiRowType2(_buf); + } + + public final int id; + public final int x; + public final float y; + + public static final int __ID__ = 540474971; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType3.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType3.java new file mode 100644 index 00000000..394f5384 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiRowType3.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class MultiRowType3 extends AbstractBean { + public MultiRowType3(ByteBuf _buf) { + id = _buf.readInt(); + {int n = Math.min(_buf.readSize(), _buf.size());items = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.MultiRowType1 _e; _e = cfg.test.MultiRowType1.deserialize(_buf); items.add(_e);}} + } + + public static MultiRowType3 deserialize(ByteBuf _buf) { + return new cfg.test.MultiRowType3(_buf); + } + + public final int id; + public final java.util.ArrayList items; + + public static final int __ID__ = 540474972; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + items + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiUnionIndexList.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiUnionIndexList.java new file mode 100644 index 00000000..4d412f7b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/MultiUnionIndexList.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class MultiUnionIndexList extends AbstractBean { + public MultiUnionIndexList(ByteBuf _buf) { + id1 = _buf.readInt(); + id2 = _buf.readLong(); + id3 = _buf.readString(); + num = _buf.readInt(); + desc = _buf.readString(); + } + + public static MultiUnionIndexList deserialize(ByteBuf _buf) { + return new cfg.test.MultiUnionIndexList(_buf); + } + + public final int id1; + public final long id2; + public final String id3; + public final int num; + public final String desc; + + public static final int __ID__ = 1966847134; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id1 + "," + + "(format_field_name __code_style field.name):" + id2 + "," + + "(format_field_name __code_style field.name):" + id3 + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/NotIndexList.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/NotIndexList.java new file mode 100644 index 00000000..bf248145 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/NotIndexList.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class NotIndexList extends AbstractBean { + public NotIndexList(ByteBuf _buf) { + x = _buf.readInt(); + y = _buf.readInt(); + } + + public static NotIndexList deserialize(ByteBuf _buf) { + return new cfg.test.NotIndexList(_buf); + } + + public final int x; + public final int y; + + public static final int __ID__ = -50446599; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/RefBean.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/RefBean.java new file mode 100644 index 00000000..6aeac5f7 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/RefBean.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class RefBean extends cfg.test.RefDynamicBase { + public RefBean(ByteBuf _buf) { + super(_buf); + {int n = Math.min(_buf.readSize(), _buf.size());arr = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); arr.add(_e);}} + } + + public static RefBean deserialize(ByteBuf _buf) { + return new cfg.test.RefBean(_buf); + } + + public final java.util.ArrayList arr; + + public static final int __ID__ = 1963260263; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + arr + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/RefDynamicBase.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/RefDynamicBase.java new file mode 100644 index 00000000..ad7141ec --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/RefDynamicBase.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public abstract class RefDynamicBase extends AbstractBean { + public RefDynamicBase(ByteBuf _buf) { + x = _buf.readInt(); + } + + public static RefDynamicBase deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.test.RefBean.__ID__: return new cfg.test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public final int x; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Shape.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Shape.java new file mode 100644 index 00000000..dbef0410 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Shape.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public abstract class Shape extends AbstractBean { + public Shape(ByteBuf _buf) { + } + + public static Shape deserialize(ByteBuf _buf) { + switch (_buf.readInt()) { + case cfg.test.Circle.__ID__: return new cfg.test.Circle(_buf); + case cfg.test2.Rectangle.__ID__: return new cfg.test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable1.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable1.java new file mode 100644 index 00000000..06277cbb --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable1.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbCompositeJsonTable1 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbCompositeJsonTable1(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.CompositeJsonTable1 _v; + _v = cfg.test.CompositeJsonTable1.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.CompositeJsonTable1 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable2.java new file mode 100644 index 00000000..d2320025 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable2.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbCompositeJsonTable2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbCompositeJsonTable2(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.CompositeJsonTable2 _v; + _v = cfg.test.CompositeJsonTable2.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.CompositeJsonTable2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable3.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable3.java new file mode 100644 index 00000000..8522d328 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbCompositeJsonTable3.java @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbCompositeJsonTable3 { + private final cfg.test.CompositeJsonTable3 _data; + + public final cfg.test.CompositeJsonTable3 data() { return _data; } + + public TbCompositeJsonTable3(ByteBuf _buf) { + int n = _buf.readSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.test.CompositeJsonTable3.deserialize(_buf); + } + + + public int getA() { return _data.a; } + public int getB() { return _data.b; } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDataFromMisc.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDataFromMisc.java new file mode 100644 index 00000000..bbf39e44 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDataFromMisc.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbDataFromMisc { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDataFromMisc(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.DemoType2 _v; + _v = cfg.test.DemoType2.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoType2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDefineFromExcel2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDefineFromExcel2.java new file mode 100644 index 00000000..425dd229 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDefineFromExcel2.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbDefineFromExcel2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDefineFromExcel2(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.DefineFromExcel2 _v; + _v = cfg.DefineFromExcel2.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.DefineFromExcel2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDemoGroup.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDemoGroup.java new file mode 100644 index 00000000..2710b844 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDemoGroup.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbDemoGroup { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDemoGroup(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.DemoGroup _v; + _v = cfg.test.DemoGroup.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDemoPrimitive.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDemoPrimitive.java new file mode 100644 index 00000000..37fc04d0 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDemoPrimitive.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbDemoPrimitive { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDemoPrimitive(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.DemoPrimitiveTypesTable _v; + _v = cfg.test.DemoPrimitiveTypesTable.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoPrimitiveTypesTable get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDetectCsvEncoding.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDetectCsvEncoding.java new file mode 100644 index 00000000..b5446a5d --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbDetectCsvEncoding.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbDetectCsvEncoding { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDetectCsvEncoding(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.DetectEncoding _v; + _v = cfg.test.DetectEncoding.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DetectEncoding get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbExcelFromJson.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbExcelFromJson.java new file mode 100644 index 00000000..731c4392 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbExcelFromJson.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbExcelFromJson { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbExcelFromJson(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.ExcelFromJson _v; + _v = cfg.test.ExcelFromJson.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.ExcelFromJson get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbExcelFromJsonMultiRow.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbExcelFromJsonMultiRow.java new file mode 100644 index 00000000..5bc6b1b4 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbExcelFromJsonMultiRow.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbExcelFromJsonMultiRow { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbExcelFromJsonMultiRow(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.ExcelFromJsonMultiRow _v; + _v = cfg.test.ExcelFromJsonMultiRow.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.ExcelFromJsonMultiRow get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbFullTypes.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbFullTypes.java new file mode 100644 index 00000000..9c01714a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbFullTypes.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbFullTypes { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbFullTypes(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.DemoType2 _v; + _v = cfg.test.DemoType2.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoType2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbItem2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbItem2.java new file mode 100644 index 00000000..f4b99ae1 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbItem2.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbItem2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbItem2(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.ItemBase _v; + _v = cfg.test.ItemBase.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + @SuppressWarnings("unchecked") + public T getAs(int key) { return (T)_dataMap.get(key); } + public cfg.test.ItemBase get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiIndexList.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiIndexList.java new file mode 100644 index 00000000..05f14d52 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiIndexList.java @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbMultiIndexList { + private final java.util.ArrayList _dataList; + + public TbMultiIndexList(ByteBuf _buf) { + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.MultiIndexList _v; + _v = cfg.test.MultiIndexList.deserialize(_buf); + _dataList.add(_v); + } + } + + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiIndexList get(int index) { return _dataList.get(index); } + + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiRowRecord.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiRowRecord.java new file mode 100644 index 00000000..ed7ffa83 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiRowRecord.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbMultiRowRecord { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbMultiRowRecord(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.MultiRowRecord _v; + _v = cfg.test.MultiRowRecord.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiRowRecord get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiRowTitle.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiRowTitle.java new file mode 100644 index 00000000..54638cfb --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiRowTitle.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbMultiRowTitle { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbMultiRowTitle(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.MultiRowTitle _v; + _v = cfg.test.MultiRowTitle.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiRowTitle get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiUnionIndexList.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiUnionIndexList.java new file mode 100644 index 00000000..849e48dd --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbMultiUnionIndexList.java @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbMultiUnionIndexList { + private final java.util.ArrayList _dataList; + + public TbMultiUnionIndexList(ByteBuf _buf) { + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.MultiUnionIndexList _v; + _v = cfg.test.MultiUnionIndexList.deserialize(_buf); + _dataList.add(_v); + } + } + + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiUnionIndexList get(int index) { return _dataList.get(index); } + + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbNotIndexList.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbNotIndexList.java new file mode 100644 index 00000000..60f6bedf --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbNotIndexList.java @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbNotIndexList { + private final java.util.ArrayList _dataList; + + public TbNotIndexList(ByteBuf _buf) { + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.NotIndexList _v; + _v = cfg.test.NotIndexList.deserialize(_buf); + _dataList.add(_v); + } + } + + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.NotIndexList get(int index) { return _dataList.get(index); } + + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbSingleton.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbSingleton.java new file mode 100644 index 00000000..b879638b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbSingleton.java @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbSingleton { + private final cfg.test.DemoSingletonType _data; + + public final cfg.test.DemoSingletonType data() { return _data; } + + public TbSingleton(ByteBuf _buf) { + int n = _buf.readSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.test.DemoSingletonType.deserialize(_buf); + } + + + public int getId() { return _data.id; } + public String getName() { return _data.name; } + public cfg.test.DemoDynamic getDate() { return _data.date; } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestBeRef.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestBeRef.java new file mode 100644 index 00000000..c009bd13 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestBeRef.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestBeRef { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestBeRef(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestBeRef _v; + _v = cfg.test.TestBeRef.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestBeRef get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestBeRef2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestBeRef2.java new file mode 100644 index 00000000..fd77f5ff --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestBeRef2.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestBeRef2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestBeRef2(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestBeRef _v; + _v = cfg.test.TestBeRef.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestBeRef get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestGlobal.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestGlobal.java new file mode 100644 index 00000000..8bb961c1 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestGlobal.java @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestGlobal { + private final cfg.test.TestGlobal _data; + + public final cfg.test.TestGlobal data() { return _data; } + + public TbTestGlobal(ByteBuf _buf) { + int n = _buf.readSize(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.test.TestGlobal.deserialize(_buf); + } + + + public int getUnlockEquip() { return _data.unlockEquip; } + public int getUnlockHero() { return _data.unlockHero; } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestIndex.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestIndex.java new file mode 100644 index 00000000..90360ca1 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestIndex.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestIndex { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestIndex(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestIndex _v; + _v = cfg.test.TestIndex.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestIndex get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMap.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMap.java new file mode 100644 index 00000000..1a4842ee --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMap.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestMap { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestMap(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestMap _v; + _v = cfg.test.TestMap.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestMap get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMapper.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMapper.java new file mode 100644 index 00000000..2035df85 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMapper.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestMapper { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestMapper(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestMapper _v; + _v = cfg.test.TestMapper.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestMapper get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMultiColumn.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMultiColumn.java new file mode 100644 index 00000000..6c29fb0f --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestMultiColumn.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestMultiColumn { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestMultiColumn(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestMultiColumn _v; + _v = cfg.test.TestMultiColumn.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestMultiColumn get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestNull.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestNull.java new file mode 100644 index 00000000..df9f8cd9 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestNull.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestNull { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestNull(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestNull _v; + _v = cfg.test.TestNull.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestNull get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestRef.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestRef.java new file mode 100644 index 00000000..20d4f655 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestRef.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestRef { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestRef(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestRef _v; + _v = cfg.test.TestRef.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestRef get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestScriptableObject.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestScriptableObject.java new file mode 100644 index 00000000..f2c2f5ff --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestScriptableObject.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestScriptableObject { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestScriptableObject(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestScriptableObject _v; + _v = cfg.test.TestScriptableObject.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestScriptableObject get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestSet.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestSet.java new file mode 100644 index 00000000..3048899d --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestSet.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestSet { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestSet(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestSet _v; + _v = cfg.test.TestSet.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestSet get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestSize.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestSize.java new file mode 100644 index 00000000..14102020 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestSize.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestSize { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestSize(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestSize _v; + _v = cfg.test.TestSize.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestSize get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestString.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestString.java new file mode 100644 index 00000000..a550180c --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TbTestString.java @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TbTestString { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestString(ByteBuf _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for(int n = _buf.readSize() ; n > 0 ; --n) { + cfg.test.TestString _v; + _v = cfg.test.TestString.deserialize(_buf); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestString get(String key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Test3.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Test3.java new file mode 100644 index 00000000..7517b8d7 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/Test3.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class Test3 extends AbstractBean { + public Test3(ByteBuf _buf) { + x = _buf.readInt(); + y = _buf.readInt(); + } + + public static Test3 deserialize(ByteBuf _buf) { + return new cfg.test.Test3(_buf); + } + + public final int x; + public final int y; + + public static final int __ID__ = 638540133; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestBeRef.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestBeRef.java new file mode 100644 index 00000000..37b1df63 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestBeRef.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestBeRef extends AbstractBean { + public TestBeRef(ByteBuf _buf) { + id = _buf.readInt(); + count = _buf.readInt(); + } + + public static TestBeRef deserialize(ByteBuf _buf) { + return new cfg.test.TestBeRef(_buf); + } + + public final int id; + public final int count; + + public static final int __ID__ = 1934403938; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + count + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestGlobal.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestGlobal.java new file mode 100644 index 00000000..bf269f17 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestGlobal.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestGlobal extends AbstractBean { + public TestGlobal(ByteBuf _buf) { + unlockEquip = _buf.readInt(); + unlockHero = _buf.readInt(); + } + + public static TestGlobal deserialize(ByteBuf _buf) { + return new cfg.test.TestGlobal(_buf); + } + + public final int unlockEquip; + public final int unlockHero; + + public static final int __ID__ = -12548655; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + unlockEquip + "," + + "(format_field_name __code_style field.name):" + unlockHero + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestIndex.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestIndex.java new file mode 100644 index 00000000..4587e835 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestIndex.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestIndex extends AbstractBean { + public TestIndex(ByteBuf _buf) { + id = _buf.readInt(); + {int n = Math.min(_buf.readSize(), _buf.size());eles = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { cfg.test.DemoType1 _e; _e = cfg.test.DemoType1.deserialize(_buf); eles.add(_e);}} + } + + public static TestIndex deserialize(ByteBuf _buf) { + return new cfg.test.TestIndex(_buf); + } + + public final int id; + public final java.util.ArrayList eles; + + public static final int __ID__ = 1941154020; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + eles + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMap.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMap.java new file mode 100644 index 00000000..f1941ff4 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMap.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestMap extends AbstractBean { + public TestMap(ByteBuf _buf) { + id = _buf.readInt(); + {int n = Math.min(_buf.readSize(), _buf.size());x1 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); x1.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());x2 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Long _k; _k = _buf.readLong(); Integer _v; _v = _buf.readInt(); x2.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());x3 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { String _k; _k = _buf.readString(); Integer _v; _v = _buf.readInt(); x3.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());x4 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); x4.put(_k, _v);}} + } + + public static TestMap deserialize(ByteBuf _buf) { + return new cfg.test.TestMap(_buf); + } + + public final int id; + public final java.util.HashMap x1; + public final java.util.HashMap x2; + public final java.util.HashMap x3; + public final java.util.HashMap x4; + + public static final int __ID__ = -543227410; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMapper.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMapper.java new file mode 100644 index 00000000..e3d009b2 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMapper.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestMapper extends AbstractBean { + public TestMapper(ByteBuf _buf) { + id = _buf.readInt(); + audioType = _buf.readInt(); + v2 = cfg.vec2.deserialize(_buf); + } + + public static TestMapper deserialize(ByteBuf _buf) { + return new cfg.test.TestMapper(_buf); + } + + public final int id; + public final int audioType; + public final cfg.vec2 v2; + + public static final int __ID__ = 149110895; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + audioType + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMultiColumn.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMultiColumn.java new file mode 100644 index 00000000..487e3909 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestMultiColumn.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestMultiColumn extends AbstractBean { + public TestMultiColumn(ByteBuf _buf) { + id = _buf.readInt(); + a = cfg.test.Foo.deserialize(_buf); + b = cfg.test.Foo.deserialize(_buf); + c = cfg.test.Foo.deserialize(_buf); + } + + public static TestMultiColumn deserialize(ByteBuf _buf) { + return new cfg.test.TestMultiColumn(_buf); + } + + public final int id; + public final cfg.test.Foo a; + public final cfg.test.Foo b; + public final cfg.test.Foo c; + + public static final int __ID__ = -294473599; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + a + "," + + "(format_field_name __code_style field.name):" + b + "," + + "(format_field_name __code_style field.name):" + c + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestNull.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestNull.java new file mode 100644 index 00000000..dc48a58d --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestNull.java @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestNull extends AbstractBean { + public TestNull(ByteBuf _buf) { + id = _buf.readInt(); + if(_buf.readBool()){ x1 = _buf.readInt(); } else { x1 = null; } + if(_buf.readBool()){ x2 = _buf.readInt(); } else { x2 = null; } + if(_buf.readBool()){ x3 = cfg.test.DemoType1.deserialize(_buf); } else { x3 = null; } + if(_buf.readBool()){ x4 = cfg.test.DemoDynamic.deserialize(_buf); } else { x4 = null; } + if(_buf.readBool()){ s1 = _buf.readString(); } else { s1 = null; } + if(_buf.readBool()){ s2 = _buf.readString(); } else { s2 = null; } + } + + public static TestNull deserialize(ByteBuf _buf) { + return new cfg.test.TestNull(_buf); + } + + public final int id; + public final Integer x1; + public final Integer x2; + public final cfg.test.DemoType1 x3; + public final cfg.test.DemoDynamic x4; + public final String s1; + public final String s2; + + public static final int __ID__ = 339868469; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestRef.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestRef.java new file mode 100644 index 00000000..7a00d0e6 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestRef.java @@ -0,0 +1,98 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestRef extends AbstractBean { + public TestRef(ByteBuf _buf) { + id = _buf.readInt(); + x1 = _buf.readInt(); + x12 = _buf.readInt(); + x2 = _buf.readInt(); + x3 = _buf.readInt(); + x4 = _buf.readInt(); + {int n = Math.min(_buf.readSize(), _buf.size());a1 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); a1[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());a2 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); a2[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());b1 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); b1.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());b2 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); b2.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());c1 = new java.util.HashSet(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); c1.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());c2 = new java.util.HashSet(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); c2.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());d1 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); d1.put(_k, _v);}} + {int n = Math.min(_buf.readSize(), _buf.size());d2 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); d2.put(_k, _v);}} + e1 = _buf.readInt(); + e2 = _buf.readLong(); + e3 = _buf.readString(); + f1 = _buf.readInt(); + f2 = _buf.readLong(); + f3 = _buf.readString(); + s1 = cfg.test.RefDynamicBase.deserialize(_buf); + } + + public static TestRef deserialize(ByteBuf _buf) { + return new cfg.test.TestRef(_buf); + } + + public final int id; + public final int x1; + public final int x12; + public final int x2; + public final int x3; + public final int x4; + public final int[] a1; + public final int[] a2; + public final java.util.ArrayList b1; + public final java.util.ArrayList b2; + public final java.util.HashSet c1; + public final java.util.HashSet c2; + public final java.util.HashMap d1; + public final java.util.HashMap d2; + public final int e1; + public final long e2; + public final String e3; + public final int f1; + public final long f2; + public final String f3; + public final cfg.test.RefDynamicBase s1; + + public static final int __ID__ = -543222491; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x12 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + a1 + "," + + "(format_field_name __code_style field.name):" + a2 + "," + + "(format_field_name __code_style field.name):" + b1 + "," + + "(format_field_name __code_style field.name):" + b2 + "," + + "(format_field_name __code_style field.name):" + c1 + "," + + "(format_field_name __code_style field.name):" + c2 + "," + + "(format_field_name __code_style field.name):" + d1 + "," + + "(format_field_name __code_style field.name):" + d2 + "," + + "(format_field_name __code_style field.name):" + e1 + "," + + "(format_field_name __code_style field.name):" + e2 + "," + + "(format_field_name __code_style field.name):" + e3 + "," + + "(format_field_name __code_style field.name):" + f1 + "," + + "(format_field_name __code_style field.name):" + f2 + "," + + "(format_field_name __code_style field.name):" + f3 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestRow.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestRow.java new file mode 100644 index 00000000..7a8ba009 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestRow.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestRow extends AbstractBean { + public TestRow(ByteBuf _buf) { + x = _buf.readInt(); + y = _buf.readBool(); + z = _buf.readString(); + a = cfg.test.Test3.deserialize(_buf); + {int n = Math.min(_buf.readSize(), _buf.size());b = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); b.add(_e);}} + } + + public static TestRow deserialize(ByteBuf _buf) { + return new cfg.test.TestRow(_buf); + } + + public final int x; + public final boolean y; + public final String z; + public final cfg.test.Test3 a; + public final java.util.ArrayList b; + + public static final int __ID__ = -543222164; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "(format_field_name __code_style field.name):" + z + "," + + "(format_field_name __code_style field.name):" + a + "," + + "(format_field_name __code_style field.name):" + b + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestScriptableObject.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestScriptableObject.java new file mode 100644 index 00000000..51f4ed64 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestScriptableObject.java @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestScriptableObject extends AbstractBean { + public TestScriptableObject(ByteBuf _buf) { + id = _buf.readInt(); + desc = _buf.readString(); + rate = _buf.readFloat(); + num = _buf.readInt(); + v2 = cfg.vec2.deserialize(_buf); + v3 = cfg.vec3.deserialize(_buf); + v4 = cfg.vec4.deserialize(_buf); + } + + public static TestScriptableObject deserialize(ByteBuf _buf) { + return new cfg.test.TestScriptableObject(_buf); + } + + public final int id; + public final String desc; + public final float rate; + public final int num; + public final cfg.vec2 v2; + public final cfg.vec3 v3; + public final cfg.vec4 v4; + + public static final int __ID__ = -1896814350; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + rate + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "(format_field_name __code_style field.name):" + v3 + "," + + "(format_field_name __code_style field.name):" + v4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestSet.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestSet.java new file mode 100644 index 00000000..8e0c846b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestSet.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestSet extends AbstractBean { + public TestSet(ByteBuf _buf) { + id = _buf.readInt(); + x0 = _buf.readString(); + {int n = Math.min(_buf.readSize(), _buf.size());x1 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); x1.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());x2 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Long _e; _e = _buf.readLong(); x2.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());x3 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { String _e; _e = _buf.readString(); x3.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());x4 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); x4.add(_e);}} + } + + public static TestSet deserialize(ByteBuf _buf) { + return new cfg.test.TestSet(_buf); + } + + public final int id; + public final String x0; + public final java.util.ArrayList x1; + public final java.util.ArrayList x2; + public final java.util.ArrayList x3; + public final java.util.ArrayList x4; + + public static final int __ID__ = -543221516; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x0 + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestSize.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestSize.java new file mode 100644 index 00000000..a1e8ad05 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestSize.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestSize extends AbstractBean { + public TestSize(ByteBuf _buf) { + id = _buf.readInt(); + {int n = Math.min(_buf.readSize(), _buf.size());x1 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); x1[i] = _e;}} + {int n = Math.min(_buf.readSize(), _buf.size());x2 = new java.util.ArrayList(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); x2.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());x3 = new java.util.HashSet(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); x3.add(_e);}} + {int n = Math.min(_buf.readSize(), _buf.size());x4 = new java.util.HashMap(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); x4.put(_k, _v);}} + } + + public static TestSize deserialize(ByteBuf _buf) { + return new cfg.test.TestSize(_buf); + } + + public final int id; + public final int[] x1; + public final java.util.ArrayList x2; + public final java.util.HashSet x3; + public final java.util.HashMap x4; + + public static final int __ID__ = 340006319; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestString.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestString.java new file mode 100644 index 00000000..0237dc5d --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/TestString.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; + + +public final class TestString extends AbstractBean { + public TestString(ByteBuf _buf) { + id = _buf.readString(); + s1 = _buf.readString(); + s2 = _buf.readString(); + cs1 = cfg.test.CompactString.deserialize(_buf); + cs2 = cfg.test.CompactString.deserialize(_buf); + } + + public static TestString deserialize(ByteBuf _buf) { + return new cfg.test.TestString(_buf); + } + + public final String id; + public final String s1; + public final String s2; + public final cfg.test.CompactString cs1; + public final cfg.test.CompactString cs2; + + public static final int __ID__ = 338485823; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + cs1 + "," + + "(format_field_name __code_style field.name):" + cs2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/login/RoleInfo.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/login/RoleInfo.java new file mode 100644 index 00000000..11794957 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test/login/RoleInfo.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test.login; + +import luban.*; + + +public final class RoleInfo extends cfg.test.DemoD3 { + public RoleInfo(ByteBuf _buf) { + super(_buf); + roleId = _buf.readLong(); + } + + public static RoleInfo deserialize(ByteBuf _buf) { + return new cfg.test.login.RoleInfo(_buf); + } + + public final long roleId; + + public static final int __ID__ = -989153243; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + roleId + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/test2/Rectangle.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test2/Rectangle.java new file mode 100644 index 00000000..6ee4016e --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/test2/Rectangle.java @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test2; + +import luban.*; + + +/** + * 矩形 + */ +public final class Rectangle extends cfg.test.Shape { + public Rectangle(ByteBuf _buf) { + super(_buf); + width = _buf.readFloat(); + height = _buf.readFloat(); + } + + public static Rectangle deserialize(ByteBuf _buf) { + return new cfg.test2.Rectangle(_buf); + } + + /** + * 宽度 + */ + public final float width; + /** + * 高度 + */ + public final float height; + + public static final int __ID__ = 694982337; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + width + "," + + "(format_field_name __code_style field.name):" + height + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec2.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec2.java new file mode 100644 index 00000000..a8caf87a --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec2.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; + + +public final class vec2 extends AbstractBean { + public vec2(ByteBuf _buf) { + x = _buf.readFloat(); + y = _buf.readFloat(); + } + + public static vec2 deserialize(ByteBuf _buf) { + return new cfg.vec2(_buf); + } + + public final float x; + public final float y; + + public static final int __ID__ = 3615518; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec3.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec3.java new file mode 100644 index 00000000..15878834 --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec3.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; + + +public final class vec3 extends AbstractBean { + public vec3(ByteBuf _buf) { + x = _buf.readFloat(); + y = _buf.readFloat(); + z = _buf.readFloat(); + } + + public static vec3 deserialize(ByteBuf _buf) { + return new cfg.vec3(_buf); + } + + public final float x; + public final float y; + public final float z; + + public static final int __ID__ = 3615519; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "(format_field_name __code_style field.name):" + z + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec4.java b/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec4.java new file mode 100644 index 00000000..fcea2d1b --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/gen/cfg/vec4.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; + + +public final class vec4 extends AbstractBean { + public vec4(ByteBuf _buf) { + x = _buf.readFloat(); + y = _buf.readFloat(); + z = _buf.readFloat(); + w = _buf.readFloat(); + } + + public static vec4 deserialize(ByteBuf _buf) { + return new cfg.vec4(_buf); + } + + public final float x; + public final float y; + public final float z; + public final float w; + + public static final int __ID__ = 3615520; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "(format_field_name __code_style field.name):" + z + "," + + "(format_field_name __code_style field.name):" + w + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/Java_bin/src/main/java/Main.java b/luban_examples/Projects/Java_bin/src/main/java/Main.java new file mode 100644 index 00000000..a487264f --- /dev/null +++ b/luban_examples/Projects/Java_bin/src/main/java/Main.java @@ -0,0 +1,16 @@ +import luban.ByteBuf; + +import java.io.IOException; +import java.nio.file.Paths; + +public class Main { + + public static void main(String[] args) throws IOException { + cfg.Tables tables = new cfg.Tables(Main::createByteBufFromFile); + System.out.println("== load succ =="); + } + + private static ByteBuf createByteBufFromFile(String file) throws java.io.IOException { + return new ByteBuf(java.nio.file.Files.readAllBytes(Paths.get("../GenerateDatas/bytes", file + ".bytes"))); + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/.vsconfig b/luban_examples/Projects/Lua_Unity_xlua_bin/.vsconfig new file mode 100644 index 00000000..aade28f6 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/.vsconfig @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Workload.ManagedGame" + ] +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assembly-CSharp-Editor.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Assembly-CSharp-Editor.csproj new file mode 100644 index 00000000..f7b46506 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assembly-CSharp-Editor.csproj @@ -0,0 +1,1054 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {02FAA1B7-CF92-067F-C864-2EC47825FD84} + Library + Properties + Assembly-CSharp-Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Editor:5 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.NVIDIAModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEditor.Graphs.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\WebGLSupport\UnityEditor.WebGL.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\UnityEditor.Android.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\iOSSupport\UnityEditor.iOS.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\UnityEditor.WindowsStandalone.Extensions.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Newtonsoft.Json.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\Unity.Plastic.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\unityplastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll + + + Library\PackageCache\com.unity.collab-proxy@1.15.15\Lib\Editor\PlasticSCM\log4netPlastic.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + Library\PackageCache\com.unity.ext.nunit@1.0.6\net35\unity-custom\nunit.framework.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\iOSSupport\UnityEditor.iOS.Extensions.Common.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\UnityEngine.TestRunner.dll + + + Library\ScriptAssemblies\UnityEditor.TestRunner.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.Editor.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Shared.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.SettingsProvider.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.PlasticSCM.Editor.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.dll + + + + + {8B0DE455-4E78-8ABC-C0E3-BDB8A60B6046} + Assembly-CSharp + + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assembly-CSharp.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Assembly-CSharp.csproj new file mode 100644 index 00000000..9038a3ff --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assembly-CSharp.csproj @@ -0,0 +1,1020 @@ + + + + 9.0 + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {8B0DE455-4E78-8ABC-C0E3-BDB8A60B6046} + Library + Properties + Assembly-CSharp + v4.7.1 + 512 + . + + + true + full + false + Temp\Bin\Debug\ + UNITY_2021_3_1;UNITY_2021_3;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;UNITY_2021_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;USE_SEARCH_EXTENSION_API;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;NET_UNITY_4_8;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + True + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + True + + + true + true + false + false + false + + + {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Package + 2.0.14 + Game:1 + StandaloneWindows64:19 + 2021.3.1f1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ARModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AccessibilityModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AndroidJNIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AnimationModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AssetBundleModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.AudioModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClothModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterInputModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ClusterRendererModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CrashReportingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DSPGraphModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.DirectorModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GameCenterModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.GridModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.HotReloadModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.IMGUIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ImageConversionModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.InputLegacyModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.JSONSerializeModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ParticleSystemModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PerformanceReportingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.PhysicsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.Physics2DModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ProfilerModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.ScreenCaptureModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteMaskModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SpriteShapeModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.StreamingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubstanceModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.SubsystemsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TLSModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TerrainPhysicsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreFontEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextCoreTextEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TextRenderingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.TilemapModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UIElementsNativeModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UNETModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UmbraModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityAnalyticsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityConnectModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityCurlModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityTestProtocolModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestAudioModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestTextureModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.UnityWebRequestWWWModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VFXModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VRModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VehiclesModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VideoModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.VirtualTexturingModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.WindModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.XRModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.CoreModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DeviceSimulatorModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.DiagnosticsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.GraphViewModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.PackageManagerUIModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.QuickSearchModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.SceneTemplateModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreFontEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.TextCoreTextEngineModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIBuilderModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIElementsSamplesModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UIServiceModule.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\Managed\UnityEngine\UnityEditor.UnityConnectModule.dll + + + Library\PackageCache\com.unity.visualscripting@1.7.6\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\iOSSupport\UnityEditor.iOS.Extensions.Common.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Gradle.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\mscorlib.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Core.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Numerics.Vectors.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Microsoft.CSharp.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.Composition.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ComponentModel.DataAnnotations.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Configuration.Install.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.DataSetExtensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Entity.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.OracleClient.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.Client.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Data.Services.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Deployment.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Design.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Diagnostics.Tracing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.DirectoryServices.Protocols.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.Design.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Drawing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Dynamic.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.EnterpriseServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IdentityModel.Selectors.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.IO.Compression.FileSystem.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Json.Microsoft.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Management.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Messaging.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.Formatting.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Net.Http.WebRequest.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Core.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Debugger.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Experimental.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Interfaces.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Observable.Aliases.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.PlatformServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Providers.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Runtime.Remoting.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Forms.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reactive.Windows.Threading.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Reflection.Context.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Caching.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.DurableInstancing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Remoting.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Runtime.Serialization.Formatters.Soap.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Security.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Activation.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Discovery.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Routing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceModel.Web.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.ServiceProcess.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Threading.Tasks.Dataflow.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Transactions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Abstractions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.ApplicationServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.DynamicData.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.Design.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.SelfHost.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Http.WebHost.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mobile.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Mvc.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Razor.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.RegularExpressions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Routing.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.Services.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Deployment.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Web.WebPages.Razor.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.DataVisualization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Windows.Forms.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Activities.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.ComponentModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Workflow.Runtime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xaml.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\System.Xml.Serialization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.AppContext.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Buffers.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Concurrent.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.NonGeneric.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Collections.Specialized.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Annotations.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.EventBasedAsync.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ComponentModel.TypeConverter.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Console.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Data.Common.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Contracts.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Debug.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.FileVersionInfo.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Process.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.StackTrace.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TextWriterTraceListener.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.Tools.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Diagnostics.TraceSource.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Drawing.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Dynamic.Runtime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Calendars.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Globalization.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Compression.ZipFile.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.DriveInfo.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.FileSystem.Watcher.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.IsolatedStorage.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.MemoryMappedFiles.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.Pipes.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.IO.UnmanagedMemoryStream.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Expressions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Parallel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Linq.Queryable.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Memory.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Http.Rtc.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NameResolution.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.NetworkInformation.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Ping.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Requests.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Security.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.Sockets.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebHeaderCollection.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.Client.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Net.WebSockets.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ObjectModel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.DispatchProxy.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.ILGeneration.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Emit.Lightweight.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Reflection.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Reader.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.ResourceManager.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Resources.Writer.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.CompilerServices.VisualC.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Handles.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.RuntimeInformation.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.InteropServices.WindowsRuntime.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Numerics.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Formatters.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Json.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Runtime.Serialization.Xml.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Claims.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Algorithms.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Csp.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Encoding.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Cryptography.X509Certificates.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.Principal.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Security.SecureString.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Duplex.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Http.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.NetTcp.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ServiceModel.Security.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.Encoding.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Text.RegularExpressions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Overlapped.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Extensions.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Tasks.Parallel.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Thread.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.ThreadPool.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Threading.Timer.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.ValueTuple.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.ReaderWriter.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XDocument.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlDocument.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XmlSerializer.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\System.Xml.XPath.XDocument.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\Microsoft.Win32.Primitives.dll + + + D:\HubEditor\2021.3.1f1\Editor\Data\UnityReferenceAssemblies\unity-4.8-api\Facades\netstandard.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.Editor.dll + + + Library\ScriptAssemblies\Unity.VSCode.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Shared.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualStudio.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.Editor.dll + + + Library\ScriptAssemblies\Unity.Timeline.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.Editor.dll + + + Library\ScriptAssemblies\Unity.TextMeshPro.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.SettingsProvider.Editor.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Flow.dll + + + Library\ScriptAssemblies\UnityEditor.UI.dll + + + Library\ScriptAssemblies\Unity.PlasticSCM.Editor.dll + + + Library\ScriptAssemblies\Unity.Rider.Editor.dll + + + Library\ScriptAssemblies\UnityEngine.UI.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.State.dll + + + Library\ScriptAssemblies\Unity.VisualScripting.Core.dll + + + + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua.meta new file mode 100644 index 00000000..03e952c0 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 00f1b512f9b094c48a724a7cb129ff08 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen.meta new file mode 100644 index 00000000..9ae49ec3 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 11eeb1f91b39d9b4ea05d2c39ce57027 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen/schema.lua b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen/schema.lua new file mode 100644 index 00000000..224d131e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen/schema.lua @@ -0,0 +1,3823 @@ + +--[[------------------------------------------------------------------------------ +-- +-- This code was generated by a tool. +-- Changes to this file may cause incorrect behavior and will be lost if +-- the code is regenerated. +-- +--]]------------------------------------------------------------------------------ + +local setmetatable = setmetatable +local pairs = pairs +local ipairs = ipairs +local tinsert = table.insert + +local function SimpleClass() + local class = {} + class.__index = class + class.New = function(...) + local ctor = class.ctor + local o = ctor and ctor(...) or {} + setmetatable(o, class) + return o + end + return class +end + + +local function get_map_size(m) + local n = 0 + for _ in pairs(m) do + n = n + 1 + end + return n +end + +local enums = +{ + ---@class ai.EExecutor + ---@field public CLIENT integer + ---@field public SERVER integer + ['ai.EExecutor'] = { CLIENT=0, SERVER=1, }; + ---@class ai.EKeyType + ---@field public BOOL integer + ---@field public INT integer + ---@field public FLOAT integer + ---@field public STRING integer + ---@field public VECTOR integer + ---@field public ROTATOR integer + ---@field public NAME integer + ---@field public CLASS integer + ---@field public ENUM integer + ---@field public OBJECT integer + ['ai.EKeyType'] = { BOOL=1, INT=2, FLOAT=3, STRING=4, VECTOR=5, ROTATOR=6, NAME=7, CLASS=8, ENUM=9, OBJECT=10, }; + ---@class ai.EFlowAbortMode + ---@field public NONE integer + ---@field public LOWER_PRIORITY integer + ---@field public SELF integer + ---@field public BOTH integer + ['ai.EFlowAbortMode'] = { NONE=0, LOWER_PRIORITY=1, SELF=2, BOTH=3, }; + ---@class ai.EFinishMode + ---@field public IMMEDIATE integer + ---@field public DELAYED integer + ['ai.EFinishMode'] = { IMMEDIATE=0, DELAYED=1, }; + ---@class ai.ENotifyObserverMode + ---@field public ON_VALUE_CHANGE integer + ---@field public ON_RESULT_CHANGE integer + ['ai.ENotifyObserverMode'] = { ON_VALUE_CHANGE=0, ON_RESULT_CHANGE=1, }; + ---@class ai.EOperator + ---@field public IS_EQUAL_TO integer + ---@field public IS_NOT_EQUAL_TO integer + ---@field public IS_LESS_THAN integer + ---@field public IS_LESS_THAN_OR_EQUAL_TO integer + ---@field public IS_GREAT_THAN integer + ---@field public IS_GREAT_THAN_OR_EQUAL_TO integer + ---@field public CONTAINS integer + ---@field public NOT_CONTAINS integer + ['ai.EOperator'] = { IS_EQUAL_TO=0, IS_NOT_EQUAL_TO=1, IS_LESS_THAN=2, IS_LESS_THAN_OR_EQUAL_TO=3, IS_GREAT_THAN=4, IS_GREAT_THAN_OR_EQUAL_TO=5, CONTAINS=6, NOT_CONTAINS=7, }; + ---@class AudioType + ---@field public UNKNOWN integer + ---@field public ACC integer + ---@field public AIFF integer + ['AudioType'] = { UNKNOWN=0, ACC=1, AIFF=2, }; + ---@class common.EBoolOperator + ---@field public AND integer + ---@field public OR integer + ['common.EBoolOperator'] = { AND=0, OR=1, }; + ---@class item.EItemQuality @道具品质 + ---@field public WHITE integer @白 + ---@field public GREEN integer @绿 + ---@field public BLUE integer @蓝 + ---@field public PURPLE integer @紫 + ---@field public GOLDEN integer @金 + ['item.EItemQuality'] = { WHITE=0, GREEN=1, BLUE=2, PURPLE=3, GOLDEN=4, }; + ---@class item.ECurrencyType + ---@field public DIAMOND integer @钻石 + ---@field public GOLD integer @金币 + ---@field public SILVER integer @银币 + ---@field public EXP integer @经验 + ---@field public POWER_POINT integer @能量点 + ['item.ECurrencyType'] = { DIAMOND=1, GOLD=2, SILVER=3, EXP=4, POWER_POINT=5, }; + ---@class item.EMajorType + ---@field public CURRENCY integer @货币 + ---@field public CLOTH integer @服装 + ---@field public QUEST integer @任务 + ---@field public CONSUMABLES integer @消耗品 + ---@field public TREASURE_BOX integer @宝箱 + ---@field public ACHIEVEMENT_AND_TITLE integer @成就和称谓 + ---@field public HEAD_FRAME integer @头像框 + ---@field public VOICE integer @语音 + ---@field public ACTION integer @动作 + ---@field public EXPANSION integer @扩容道具 + ---@field public MATERIAL integer @制作材料 + ['item.EMajorType'] = { CURRENCY=1, CLOTH=2, QUEST=3, CONSUMABLES=4, TREASURE_BOX=5, ACHIEVEMENT_AND_TITLE=6, HEAD_FRAME=7, VOICE=8, ACTION=9, EXPANSION=10, MATERIAL=11, }; + ---@class item.EMinorType + ---@field public DIAMOND integer @钻石 + ---@field public GOLD integer @金币 + ---@field public SILVER integer @银币 + ---@field public EXP integer @经验 + ---@field public POWER_POINT integer @能量点 + ---@field public HAIR_STYLE integer @发型 + ---@field public COAT integer @外套 + ---@field public UPPER_JACKET integer @上衣 + ---@field public TROUSERS integer @裤子 + ---@field public SKIRT integer @裙子 + ---@field public SOCKS integer @袜子 + ---@field public SHOES integer @鞋子 + ---@field public HAIR_ACCESSORY integer @发饰 + ---@field public HAT integer @帽子 + ---@field public EARRING integer @耳饰 + ---@field public NECKLACE integer @颈饰 + ---@field public BRACELET integer @腕饰 + ---@field public HAIR_CLASP integer @发箍 + ---@field public GLOVE integer @手套 + ---@field public HANDHELD_OBJECT integer @手持物 + ---@field public SPECIAL integer @特殊 + ---@field public BASE_COSMETIC integer @底妆 + ---@field public EYEBROW_COSMETIC integer @眉妆 + ---@field public EYELASH integer @睫毛 + ---@field public COSMETIC_CONTACT_LENSES integer @美瞳 + ---@field public LIP_COSMETIC integer @唇妆 + ---@field public SKIN_COLOR integer @肤色 + ---@field public ONE_PIECE_DRESS integer @连衣裙 + ---@field public SWITCH_CLOTHES_SCENE integer @换装场景 + ---@field public QUEST integer @任务道具 + ---@field public CAST integer @投掷物 + ---@field public SWORD integer @刀剑 + ---@field public BOW_ARROW integer @弓箭 + ---@field public WANDS integer @法杖 + ---@field public SPECIAL_TOOL integer @特殊工具 + ---@field public FOOD integer @食物 + ---@field public TREASURE_BOX integer @宝箱 + ---@field public KEY integer @钥匙 + ---@field public MULTI_CHOOSE_TREASURE_BOX integer @多选一宝箱 + ---@field public ACHIEVEMENT integer @成就相关 + ---@field public TITLE integer @称谓相关 + ---@field public AVATAR_FRAME integer @头像框 + ---@field public VOICE integer @语音 + ---@field public IDLE_POSE integer @特殊待机动作 + ---@field public PHOTO_POSE integer @拍照动作 + ---@field public BAG integer @背包 + ---@field public FRIEND_CAPACITY integer @好友数量 + ---@field public CONSTRUCTION_MATERIAL integer @制作材料 + ---@field public DESIGN_DRAWING integer @设计图纸 + ['item.EMinorType'] = { DIAMOND=101, GOLD=102, SILVER=103, EXP=104, POWER_POINT=105, HAIR_STYLE=210, COAT=220, UPPER_JACKET=230, TROUSERS=241, SKIRT=242, SOCKS=250, SHOES=260, HAIR_ACCESSORY=271, HAT=272, EARRING=273, NECKLACE=274, BRACELET=275, HAIR_CLASP=276, GLOVE=277, HANDHELD_OBJECT=278, SPECIAL=279, BASE_COSMETIC=281, EYEBROW_COSMETIC=282, EYELASH=283, COSMETIC_CONTACT_LENSES=284, LIP_COSMETIC=285, SKIN_COLOR=286, ONE_PIECE_DRESS=290, SWITCH_CLOTHES_SCENE=291, QUEST=301, CAST=401, SWORD=421, BOW_ARROW=422, WANDS=423, SPECIAL_TOOL=424, FOOD=403, TREASURE_BOX=501, KEY=502, MULTI_CHOOSE_TREASURE_BOX=503, ACHIEVEMENT=601, TITLE=602, AVATAR_FRAME=701, VOICE=801, IDLE_POSE=901, PHOTO_POSE=902, BAG=1001, FRIEND_CAPACITY=1002, CONSTRUCTION_MATERIAL=1101, DESIGN_DRAWING=1102, }; + ---@class item.EClothersStarQualityType + ---@field public ONE integer @一星 + ---@field public TWO integer @二星 + ---@field public THREE integer @三星 + ---@field public FOUR integer @四星 + ---@field public FIVE integer @五星 + ---@field public SIX integer @六星 + ---@field public SEVEN integer @七星 + ---@field public EIGHT integer @八星 + ---@field public NINE integer @九星 + ---@field public TEN integer @十星 + ['item.EClothersStarQualityType'] = { ONE=1, TWO=2, THREE=3, FOUR=4, FIVE=5, SIX=6, SEVEN=7, EIGHT=8, NINE=9, TEN=10, }; + ---@class item.EClothersTag + ---@field public FANG_SHAI integer @防晒 + ---@field public WU_ZHE integer @舞者 + ['item.EClothersTag'] = { FANG_SHAI=1, WU_ZHE=2, }; + ---@class item.EUseType + ---@field public MANUAL integer @手动 + ---@field public AUTO integer @自动 + ['item.EUseType'] = { MANUAL=0, AUTO=1, }; + ---@class item.EClothesHidePartType + ---@field public CHEST integer @胸部 + ---@field public HEAD integer @手 + ---@field public SPINE_UPPER integer @脊柱上 + ---@field public SPINE_LOWER integer @脊柱下 + ---@field public HIP integer @臀部 + ---@field public LEG_UPPER integer @腿上 + ---@field public LEG_MIDDLE integer @腿中 + ---@field public LEG_LOWER integer @腿下 + ['item.EClothesHidePartType'] = { CHEST=0, HEAD=1, SPINE_UPPER=2, SPINE_LOWER=3, HIP=4, LEG_UPPER=5, LEG_MIDDLE=6, LEG_LOWER=7, }; + ---@class item.EClothesPropertyType + ---@field public JIAN_YUE integer @简约 + ---@field public HUA_LI integer @华丽 + ---@field public KE_AI integer @可爱 + ---@field public CHENG_SHU integer @成熟 + ---@field public HUO_PO integer @活泼 + ---@field public YOU_YA integer @优雅 + ---@field public QING_CHUN integer @清纯 + ---@field public XING_GAN integer @性感 + ---@field public QING_LIANG integer @清凉 + ---@field public BAO_NUAN integer @保暖 + ['item.EClothesPropertyType'] = { JIAN_YUE=1, HUA_LI=2, KE_AI=3, CHENG_SHU=4, HUO_PO=5, YOU_YA=6, QING_CHUN=7, XING_GAN=8, QING_LIANG=9, BAO_NUAN=10, }; + ---@class test.DemoEnum + ---@field public NONE integer + ---@field public A integer @aa + ---@field public B integer @bb + ---@field public C integer @cc + ---@field public D integer @dd + ['test.DemoEnum'] = { NONE=0, A=1, B=2, C=4, D=5, }; + ---@class test.DemoFlag + ---@field public A integer + ---@field public B integer + ---@field public C integer + ---@field public D integer + ['test.DemoFlag'] = { A=1, B=2, C=4, D=8, }; + ---@class test.ETestUeType + ---@field public WHITE integer @白 + ---@field public BLACK integer + ['test.ETestUeType'] = { WHITE=0, BLACK=1, }; + ---@class test.ETestEmptyEnum + ['test.ETestEmptyEnum'] = { }; + ---@class test.ETestEmptyEnum2 + ---@field public SMALL_THAN_256 integer + ---@field public X_256 integer + ---@field public X_257 integer + ['test.ETestEmptyEnum2'] = { SMALL_THAN_256=255, X_256=256, X_257=257, }; + ---@class test.ETestQuality + ---@field public A integer @最高品质 + ---@field public B integer @黑色的 + ---@field public C integer @蓝色的 + ---@field public D integer @最差品质 + ['test.ETestQuality'] = { A=1, B=2, C=3, D=4, }; + ---@class test.AccessFlag + ---@field public WRITE integer + ---@field public READ integer + ---@field public TRUNCATE integer + ---@field public NEW integer + ---@field public READ_WRITE integer + ['test.AccessFlag'] = { WRITE=1, READ=2, TRUNCATE=4, NEW=8, READ_WRITE=3, }; +} + +local tables = +{ + { name='TbBlackboard', file='ai_tbblackboard', mode='map', index='name', value_type='ai.Blackboard' }, + { name='TbBehaviorTree', file='ai_tbbehaviortree', mode='map', index='id', value_type='ai.BehaviorTree' }, + { name='TbGlobalConfig', file='common_tbglobalconfig', mode='one', value_type='common.GlobalConfig'}, + { name='TbItem', file='item_tbitem', mode='map', index='id', value_type='item.Item' }, + { name='TbL10NDemo', file='l10n_tbl10ndemo', mode='map', index='id', value_type='l10n.L10NDemo' }, + { name='TbPatchDemo', file='l10n_tbpatchdemo', mode='map', index='id', value_type='l10n.PatchDemo' }, + { name='TbTestTag', file='tag_tbtesttag', mode='map', index='id', value_type='tag.TestTag' }, + { name='TbFullTypes', file='test_tbfulltypes', mode='map', index='x4', value_type='test.DemoType2' }, + { name='TbSingleton', file='test_tbsingleton', mode='one', value_type='test.DemoSingletonType'}, + { name='TbNotIndexList', file='test_tbnotindexlist', mode='list', index='', value_type='test.NotIndexList' }, + { name='TbMultiUnionIndexList', file='test_tbmultiunionindexlist', mode='list', index='id1+id2+id3', value_type='test.MultiUnionIndexList' }, + { name='TbMultiIndexList', file='test_tbmultiindexlist', mode='list', index='id1,id2,id3', value_type='test.MultiIndexList' }, + { name='TbDataFromMisc', file='test_tbdatafrommisc', mode='map', index='x4', value_type='test.DemoType2' }, + { name='TbMultiRowRecord', file='test_tbmultirowrecord', mode='map', index='id', value_type='test.MultiRowRecord' }, + { name='TbTestMultiColumn', file='test_tbtestmulticolumn', mode='map', index='id', value_type='test.TestMultiColumn' }, + { name='TbMultiRowTitle', file='test_tbmultirowtitle', mode='map', index='id', value_type='test.MultiRowTitle' }, + { name='TbTestNull', file='test_tbtestnull', mode='map', index='id', value_type='test.TestNull' }, + { name='TbDemoPrimitive', file='test_tbdemoprimitive', mode='map', index='x4', value_type='test.DemoPrimitiveTypesTable' }, + { name='TbTestString', file='test_tbteststring', mode='map', index='id', value_type='test.TestString' }, + { name='TbDemoGroup', file='test_tbdemogroup', mode='map', index='id', value_type='test.DemoGroup' }, + { name='TbTestGlobal', file='test_tbtestglobal', mode='one', value_type='test.TestGlobal'}, + { name='TbTestBeRef', file='test_tbtestberef', mode='map', index='id', value_type='test.TestBeRef' }, + { name='TbTestBeRef2', file='test_tbtestberef2', mode='map', index='id', value_type='test.TestBeRef' }, + { name='TbTestRef', file='test_tbtestref', mode='map', index='id', value_type='test.TestRef' }, + { name='TbTestSize', file='test_tbtestsize', mode='map', index='id', value_type='test.TestSize' }, + { name='TbTestSet', file='test_tbtestset', mode='map', index='id', value_type='test.TestSet' }, + { name='TbDetectCsvEncoding', file='test_tbdetectcsvencoding', mode='map', index='id', value_type='test.DetectEncoding' }, + { name='TbItem2', file='test_tbitem2', mode='map', index='id', value_type='test.ItemBase' }, + { name='TbTestIndex', file='test_tbtestindex', mode='map', index='id', value_type='test.TestIndex' }, + { name='TbTestMap', file='test_tbtestmap', mode='map', index='id', value_type='test.TestMap' }, + { name='TbExcelFromJson', file='test_tbexcelfromjson', mode='map', index='x4', value_type='test.ExcelFromJson' }, + { name='TbCompositeJsonTable1', file='test_tbcompositejsontable1', mode='map', index='id', value_type='test.CompositeJsonTable1' }, + { name='TbCompositeJsonTable2', file='test_tbcompositejsontable2', mode='map', index='id', value_type='test.CompositeJsonTable2' }, + { name='TbCompositeJsonTable3', file='test_tbcompositejsontable3', mode='one', value_type='test.CompositeJsonTable3'}, + { name='TbExcelFromJsonMultiRow', file='test_tbexcelfromjsonmultirow', mode='map', index='id', value_type='test.ExcelFromJsonMultiRow' }, + { name='TbTestScriptableObject', file='test_tbtestscriptableobject', mode='map', index='id', value_type='test.TestScriptableObject' }, + { name='TbTestMapper', file='test_tbtestmapper', mode='map', index='id', value_type='test.TestMapper' }, + { name='TbDefineFromExcel2', file='test_tbdefinefromexcel2', mode='map', index='id', value_type='DefineFromExcel2' }, +} + +local function InitTypes(methods) + local readBool = methods.readBool + local readByte = methods.readByte + local readShort = methods.readShort + local readFshort = methods.readFshort + local readInt = methods.readInt + local readFint = methods.readFint + local readLong = methods.readLong + local readFlong = methods.readFlong + local readFloat = methods.readFloat + local readDouble = methods.readDouble + local readSize = methods.readSize + + local readString = methods.readString + + local function readList(bs, keyFun) + local list = {} + local v + for i = 1, readSize(bs) do + tinsert(list, keyFun(bs)) + end + return list + end + + local readArray = readList + + local function readSet(bs, keyFun) + local set = {} + local v + for i = 1, readSize(bs) do + tinsert(set, keyFun(bs)) + end + return set + end + + local function readMap(bs, keyFun, valueFun) + local map = {} + for i = 1, readSize(bs) do + local k = keyFun(bs) + local v = valueFun(bs) + map[k] = v + end + return map + end + + local function readNullableBool(bs) + if readBool(bs) then + return readBool(bs) + end + end + + local beans = {} + do + ---@class ai.Blackboard + ---@field public name string + ---@field public desc string + ---@field public parent_name string + ---@field public keys ai.BlackboardKey[] + local class = { + { name='name', type='string'}, + { name='desc', type='string'}, + { name='parent_name', type='string'}, + { name='keys', type='ai.BlackboardKey[]'}, + } + beans['ai.Blackboard'] = class + end + do + ---@class ai.BlackboardKey + ---@field public name string + ---@field public desc string + ---@field public is_static boolean + ---@field public type integer + ---@field public type_class_name string + local class = { + { name='name', type='string'}, + { name='desc', type='string'}, + { name='is_static', type='boolean'}, + { name='type', type='integer'}, + { name='type_class_name', type='string'}, + } + beans['ai.BlackboardKey'] = class + end + do + ---@class ai.BehaviorTree + ---@field public id integer + ---@field public name string + ---@field public desc string + ---@field public blackboard_id string + ---@field public root ai.ComposeNode + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='desc', type='string'}, + { name='blackboard_id', type='string'}, + { name='root', type='ai.ComposeNode'}, + } + beans['ai.BehaviorTree'] = class + end + do + ---@class ai.Node + ---@field public id integer + ---@field public node_name string + local class = { + { name='id', type='integer'}, + { name='node_name', type='string'}, + } + beans['ai.Node'] = class + end + do + ---@class ai.Service :ai.Node + local class = { + } + beans['ai.Service'] = class + end + do + ---@class ai.UeSetDefaultFocus :ai.Service + ---@field public keyboard_key string + local class = { + { name='keyboard_key', type='string'}, + } + beans['ai.UeSetDefaultFocus'] = class + end + do + ---@class ai.ExecuteTimeStatistic :ai.Service + local class = { + } + beans['ai.ExecuteTimeStatistic'] = class + end + do + ---@class ai.ChooseTarget :ai.Service + ---@field public result_target_key string + local class = { + { name='result_target_key', type='string'}, + } + beans['ai.ChooseTarget'] = class + end + do + ---@class ai.KeepFaceTarget :ai.Service + ---@field public target_actor_key string + local class = { + { name='target_actor_key', type='string'}, + } + beans['ai.KeepFaceTarget'] = class + end + do + ---@class ai.GetOwnerPlayer :ai.Service + ---@field public player_actor_key string + local class = { + { name='player_actor_key', type='string'}, + } + beans['ai.GetOwnerPlayer'] = class + end + do + ---@class ai.UpdateDailyBehaviorProps :ai.Service + ---@field public satiety_key string + ---@field public energy_key string + ---@field public mood_key string + ---@field public satiety_lower_threshold_key string + ---@field public satiety_upper_threshold_key string + ---@field public energy_lower_threshold_key string + ---@field public energy_upper_threshold_key string + ---@field public mood_lower_threshold_key string + ---@field public mood_upper_threshold_key string + local class = { + { name='satiety_key', type='string'}, + { name='energy_key', type='string'}, + { name='mood_key', type='string'}, + { name='satiety_lower_threshold_key', type='string'}, + { name='satiety_upper_threshold_key', type='string'}, + { name='energy_lower_threshold_key', type='string'}, + { name='energy_upper_threshold_key', type='string'}, + { name='mood_lower_threshold_key', type='string'}, + { name='mood_upper_threshold_key', type='string'}, + } + beans['ai.UpdateDailyBehaviorProps'] = class + end + do + ---@class ai.Decorator :ai.Node + ---@field public flow_abort_mode integer + local class = { + { name='flow_abort_mode', type='integer'}, + } + beans['ai.Decorator'] = class + end + do + ---@class ai.UeLoop :ai.Decorator + ---@field public num_loops integer + ---@field public infinite_loop boolean + ---@field public infinite_loop_timeout_time number + local class = { + { name='num_loops', type='integer'}, + { name='infinite_loop', type='boolean'}, + { name='infinite_loop_timeout_time', type='number'}, + } + beans['ai.UeLoop'] = class + end + do + ---@class ai.UeCooldown :ai.Decorator + ---@field public cooldown_time number + local class = { + { name='cooldown_time', type='number'}, + } + beans['ai.UeCooldown'] = class + end + do + ---@class ai.UeTimeLimit :ai.Decorator + ---@field public limit_time number + local class = { + { name='limit_time', type='number'}, + } + beans['ai.UeTimeLimit'] = class + end + do + ---@class ai.UeBlackboard :ai.Decorator + ---@field public notify_observer integer + ---@field public blackboard_key string + ---@field public key_query ai.KeyQueryOperator + local class = { + { name='notify_observer', type='integer'}, + { name='blackboard_key', type='string'}, + { name='key_query', type='ai.KeyQueryOperator'}, + } + beans['ai.UeBlackboard'] = class + end + do + ---@class ai.KeyQueryOperator + local class = { + } + beans['ai.KeyQueryOperator'] = class + end + do + ---@class ai.IsSet :ai.KeyQueryOperator + local class = { + } + beans['ai.IsSet'] = class + end + do + ---@class ai.IsNotSet :ai.KeyQueryOperator + local class = { + } + beans['ai.IsNotSet'] = class + end + do + ---@class ai.BinaryOperator :ai.KeyQueryOperator + ---@field public oper integer + ---@field public data ai.KeyData + local class = { + { name='oper', type='integer'}, + { name='data', type='ai.KeyData'}, + } + beans['ai.BinaryOperator'] = class + end + do + ---@class ai.KeyData + local class = { + } + beans['ai.KeyData'] = class + end + do + ---@class ai.FloatKeyData :ai.KeyData + ---@field public value number + local class = { + { name='value', type='number'}, + } + beans['ai.FloatKeyData'] = class + end + do + ---@class ai.IntKeyData :ai.KeyData + ---@field public value integer + local class = { + { name='value', type='integer'}, + } + beans['ai.IntKeyData'] = class + end + do + ---@class ai.StringKeyData :ai.KeyData + ---@field public value string + local class = { + { name='value', type='string'}, + } + beans['ai.StringKeyData'] = class + end + do + ---@class ai.BlackboardKeyData :ai.KeyData + ---@field public value string + local class = { + { name='value', type='string'}, + } + beans['ai.BlackboardKeyData'] = class + end + do + ---@class ai.UeForceSuccess :ai.Decorator + local class = { + } + beans['ai.UeForceSuccess'] = class + end + do + ---@class ai.IsAtLocation :ai.Decorator + ---@field public acceptable_radius number + ---@field public keyboard_key string + ---@field public inverse_condition boolean + local class = { + { name='acceptable_radius', type='number'}, + { name='keyboard_key', type='string'}, + { name='inverse_condition', type='boolean'}, + } + beans['ai.IsAtLocation'] = class + end + do + ---@class ai.DistanceLessThan :ai.Decorator + ---@field public actor1_key string + ---@field public actor2_key string + ---@field public distance number + ---@field public reverse_result boolean + local class = { + { name='actor1_key', type='string'}, + { name='actor2_key', type='string'}, + { name='distance', type='number'}, + { name='reverse_result', type='boolean'}, + } + beans['ai.DistanceLessThan'] = class + end + do + ---@class ai.FlowNode :ai.Node + ---@field public decorators ai.Decorator[] + ---@field public services ai.Service[] + local class = { + { name='decorators', type='ai.Decorator[]'}, + { name='services', type='ai.Service[]'}, + } + beans['ai.FlowNode'] = class + end + do + ---@class ai.ComposeNode :ai.FlowNode + local class = { + } + beans['ai.ComposeNode'] = class + end + do + ---@class ai.Sequence :ai.ComposeNode + ---@field public children ai.FlowNode[] + local class = { + { name='children', type='ai.FlowNode[]'}, + } + beans['ai.Sequence'] = class + end + do + ---@class ai.Selector :ai.ComposeNode + ---@field public children ai.FlowNode[] + local class = { + { name='children', type='ai.FlowNode[]'}, + } + beans['ai.Selector'] = class + end + do + ---@class ai.SimpleParallel :ai.ComposeNode + ---@field public finish_mode integer + ---@field public main_task ai.Task + ---@field public background_node ai.FlowNode + local class = { + { name='finish_mode', type='integer'}, + { name='main_task', type='ai.Task'}, + { name='background_node', type='ai.FlowNode'}, + } + beans['ai.SimpleParallel'] = class + end + do + ---@class ai.Task :ai.FlowNode + ---@field public ignore_restart_self boolean + local class = { + { name='ignore_restart_self', type='boolean'}, + } + beans['ai.Task'] = class + end + do + ---@class ai.UeWait :ai.Task + ---@field public wait_time number + ---@field public random_deviation number + local class = { + { name='wait_time', type='number'}, + { name='random_deviation', type='number'}, + } + beans['ai.UeWait'] = class + end + do + ---@class ai.UeWaitBlackboardTime :ai.Task + ---@field public blackboard_key string + local class = { + { name='blackboard_key', type='string'}, + } + beans['ai.UeWaitBlackboardTime'] = class + end + do + ---@class ai.MoveToTarget :ai.Task + ---@field public target_actor_key string + ---@field public acceptable_radius number + local class = { + { name='target_actor_key', type='string'}, + { name='acceptable_radius', type='number'}, + } + beans['ai.MoveToTarget'] = class + end + do + ---@class ai.ChooseSkill :ai.Task + ---@field public target_actor_key string + ---@field public result_skill_id_key string + local class = { + { name='target_actor_key', type='string'}, + { name='result_skill_id_key', type='string'}, + } + beans['ai.ChooseSkill'] = class + end + do + ---@class ai.MoveToRandomLocation :ai.Task + ---@field public origin_position_key string + ---@field public radius number + local class = { + { name='origin_position_key', type='string'}, + { name='radius', type='number'}, + } + beans['ai.MoveToRandomLocation'] = class + end + do + ---@class ai.MoveToLocation :ai.Task + ---@field public acceptable_radius number + local class = { + { name='acceptable_radius', type='number'}, + } + beans['ai.MoveToLocation'] = class + end + do + ---@class ai.DebugPrint :ai.Task + ---@field public text string + local class = { + { name='text', type='string'}, + } + beans['ai.DebugPrint'] = class + end + do + ---@class common.GlobalConfig + ---@field public x1 integer @背包容量 + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public x5 integer + ---@field public x6 integer + ---@field public x7 integer[] + local class = { + { name='x1', type='integer'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x4', type='integer'}, + { name='x5', type='integer'}, + { name='x6', type='integer'}, + { name='x7', type='integer[]'}, + } + beans['common.GlobalConfig'] = class + end + do + ---@class item.Item @道具 + ---@field public id integer @道具id + ---@field public name string + ---@field public minor_type integer + ---@field public quality integer + ---@field public icon_backgroud string + ---@field public icon_mask string + ---@field public desc string + ---@field public show_order integer + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='minor_type', type='integer'}, + { name='quality', type='integer'}, + { name='icon_backgroud', type='string'}, + { name='icon_mask', type='string'}, + { name='desc', type='string'}, + { name='show_order', type='integer'}, + } + beans['item.Item'] = class + end + do + ---@class l10n.L10NDemo + ---@field public id integer + ---@field public text string + local class = { + { name='id', type='integer'}, + { name='text', type='string'}, + } + beans['l10n.L10NDemo'] = class + end + do + ---@class l10n.PatchDemo + ---@field public id integer + ---@field public value integer + local class = { + { name='id', type='integer'}, + { name='value', type='integer'}, + } + beans['l10n.PatchDemo'] = class + end + do + ---@class tag.TestTag + ---@field public id integer + ---@field public value string + local class = { + { name='id', type='integer'}, + { name='value', type='string'}, + } + beans['tag.TestTag'] = class + end + do + ---@class test.DemoType2 + ---@field public x4 integer + ---@field public x1 boolean + ---@field public x2 integer + ---@field public x3 integer + ---@field public x5 integer + ---@field public x6 number + ---@field public x7 number + ---@field public x8_0 integer + ---@field public x8 integer + ---@field public x9 integer + ---@field public x10 string + ---@field public x12 test.DemoType1 + ---@field public x13 integer + ---@field public x14 test.DemoDynamic + ---@field public s1 string + ---@field public t1 integer + ---@field public k1 integer[] + ---@field public k2 integer[] + ---@field public k5 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k15 test.DemoDynamic[] + local class = { + { name='x4', type='integer'}, + { name='x1', type='boolean'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='x7', type='number'}, + { name='x8_0', type='integer'}, + { name='x8', type='integer'}, + { name='x9', type='integer'}, + { name='x10', type='string'}, + { name='x12', type='test.DemoType1'}, + { name='x13', type='integer'}, + { name='x14', type='test.DemoDynamic'}, + { name='s1', type='string'}, + { name='t1', type='integer'}, + { name='k1', type='integer[]'}, + { name='k2', type='integer[]'}, + { name='k5', type='integer[]'}, + { name='k8', type='table'}, + { name='k9', type='test.DemoE2[]'}, + { name='k15', type='test.DemoDynamic[]'}, + } + beans['test.DemoType2'] = class + end + do + ---@class test.DemoType1 + ---@field public x1 integer + local class = { + { name='x1', type='integer'}, + } + beans['test.DemoType1'] = class + end + do + ---@class test.DemoDynamic + ---@field public x1 integer + local class = { + { name='x1', type='integer'}, + } + beans['test.DemoDynamic'] = class + end + do + ---@class test.DemoD2 :test.DemoDynamic + ---@field public x2 integer + local class = { + { name='x2', type='integer'}, + } + beans['test.DemoD2'] = class + end + do + ---@class test.DemoD3 :test.DemoDynamic + ---@field public x3 integer + local class = { + { name='x3', type='integer'}, + } + beans['test.DemoD3'] = class + end + do + ---@class test.DemoE1 :test.DemoD3 + ---@field public x4 integer + local class = { + { name='x4', type='integer'}, + } + beans['test.DemoE1'] = class + end + do + ---@class test.login.RoleInfo :test.DemoD3 + ---@field public role_id integer + local class = { + { name='role_id', type='integer'}, + } + beans['test.login.RoleInfo'] = class + end + do + ---@class test.DemoD5 :test.DemoDynamic + ---@field public time test.DateTimeRange + local class = { + { name='time', type='test.DateTimeRange'}, + } + beans['test.DemoD5'] = class + end + do + ---@class test.DateTimeRange + ---@field public start_time integer + ---@field public end_time integer + local class = { + { name='start_time', type='integer'}, + { name='end_time', type='integer'}, + } + beans['test.DateTimeRange'] = class + end + do + ---@class test.DemoE2 + ---@field public y1 integer + ---@field public y2 boolean + local class = { + { name='y1', type='integer'}, + { name='y2', type='boolean'}, + } + beans['test.DemoE2'] = class + end + do + ---@class test.DemoSingletonType + ---@field public id integer + ---@field public name string + ---@field public date test.DemoDynamic + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='date', type='test.DemoDynamic'}, + } + beans['test.DemoSingletonType'] = class + end + do + ---@class test.NotIndexList + ---@field public x integer + ---@field public y integer + local class = { + { name='x', type='integer'}, + { name='y', type='integer'}, + } + beans['test.NotIndexList'] = class + end + do + ---@class test.MultiUnionIndexList + ---@field public id1 integer + ---@field public id2 integer + ---@field public id3 string + ---@field public num integer + ---@field public desc string + local class = { + { name='id1', type='integer'}, + { name='id2', type='integer'}, + { name='id3', type='string'}, + { name='num', type='integer'}, + { name='desc', type='string'}, + } + beans['test.MultiUnionIndexList'] = class + end + do + ---@class test.MultiIndexList + ---@field public id1 integer + ---@field public id2 integer + ---@field public id3 string + ---@field public num integer + ---@field public desc string + local class = { + { name='id1', type='integer'}, + { name='id2', type='integer'}, + { name='id3', type='string'}, + { name='num', type='integer'}, + { name='desc', type='string'}, + } + beans['test.MultiIndexList'] = class + end + do + ---@class test.MultiRowRecord + ---@field public id integer + ---@field public name string + ---@field public one_rows test.MultiRowType1[] + ---@field public multi_rows1 test.MultiRowType1[] + ---@field public multi_rows2 test.MultiRowType1[] + ---@field public multi_rows4 table + ---@field public multi_rows5 test.MultiRowType3[] + ---@field public multi_rows6 table + ---@field public multi_rows7 table + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='one_rows', type='test.MultiRowType1[]'}, + { name='multi_rows1', type='test.MultiRowType1[]'}, + { name='multi_rows2', type='test.MultiRowType1[]'}, + { name='multi_rows4', type='table'}, + { name='multi_rows5', type='test.MultiRowType3[]'}, + { name='multi_rows6', type='table'}, + { name='multi_rows7', type='table'}, + } + beans['test.MultiRowRecord'] = class + end + do + ---@class test.MultiRowType1 + ---@field public id integer + ---@field public x integer + local class = { + { name='id', type='integer'}, + { name='x', type='integer'}, + } + beans['test.MultiRowType1'] = class + end + do + ---@class test.MultiRowType2 + ---@field public id integer + ---@field public x integer + ---@field public y number + local class = { + { name='id', type='integer'}, + { name='x', type='integer'}, + { name='y', type='number'}, + } + beans['test.MultiRowType2'] = class + end + do + ---@class test.MultiRowType3 + ---@field public id integer + ---@field public items test.MultiRowType1[] + local class = { + { name='id', type='integer'}, + { name='items', type='test.MultiRowType1[]'}, + } + beans['test.MultiRowType3'] = class + end + do + ---@class test.TestMultiColumn + ---@field public id integer + ---@field public a test.Foo + ---@field public b test.Foo + ---@field public c test.Foo + local class = { + { name='id', type='integer'}, + { name='a', type='test.Foo'}, + { name='b', type='test.Foo'}, + { name='c', type='test.Foo'}, + } + beans['test.TestMultiColumn'] = class + end + do + ---@class test.Foo + ---@field public y1 integer + ---@field public y2 integer + ---@field public y3 integer + local class = { + { name='y1', type='integer'}, + { name='y2', type='integer'}, + { name='y3', type='integer'}, + } + beans['test.Foo'] = class + end + do + ---@class test.MultiRowTitle + ---@field public id integer + ---@field public name string + ---@field public x1 test.H1 + ---@field public x2_0 test.H2 + ---@field public x2 test.H2[] + ---@field public x3 test.H2[] + ---@field public x4 test.H2[] + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='x1', type='test.H1'}, + { name='x2_0', type='test.H2'}, + { name='x2', type='test.H2[]'}, + { name='x3', type='test.H2[]'}, + { name='x4', type='test.H2[]'}, + } + beans['test.MultiRowTitle'] = class + end + do + ---@class test.H1 + ---@field public y2 test.H2 + ---@field public y3 integer + local class = { + { name='y2', type='test.H2'}, + { name='y3', type='integer'}, + } + beans['test.H1'] = class + end + do + ---@class test.H2 + ---@field public z2 integer + ---@field public z3 integer + local class = { + { name='z2', type='integer'}, + { name='z3', type='integer'}, + } + beans['test.H2'] = class + end + do + ---@class test.TestNull + ---@field public id integer + ---@field public x1 integer + ---@field public x2 integer + ---@field public x3 test.DemoType1 + ---@field public x4 test.DemoDynamic + ---@field public s1 string + ---@field public s2 string + local class = { + { name='id', type='integer'}, + { name='x1', type='integer'}, + { name='x2', type='integer'}, + { name='x3', type='test.DemoType1'}, + { name='x4', type='test.DemoDynamic'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + } + beans['test.TestNull'] = class + end + do + ---@class test.DemoPrimitiveTypesTable + ---@field public x1 boolean + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public x5 integer + ---@field public x6 number + ---@field public x7 number + ---@field public s1 string + ---@field public s2 string + ---@field public v2 vec2 + ---@field public v3 vec3 + ---@field public v4 vec4 + ---@field public t1 integer + local class = { + { name='x1', type='boolean'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x4', type='integer'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='x7', type='number'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + { name='v2', type='vec2'}, + { name='v3', type='vec3'}, + { name='v4', type='vec4'}, + { name='t1', type='integer'}, + } + beans['test.DemoPrimitiveTypesTable'] = class + end + do + ---@class vec2 + ---@field public x number + ---@field public y number + local class = { + { name='x', type='number'}, + { name='y', type='number'}, + } + beans['vec2'] = class + end + do + ---@class vec3 + ---@field public x number + ---@field public y number + ---@field public z number + local class = { + { name='x', type='number'}, + { name='y', type='number'}, + { name='z', type='number'}, + } + beans['vec3'] = class + end + do + ---@class vec4 + ---@field public x number + ---@field public y number + ---@field public z number + ---@field public w number + local class = { + { name='x', type='number'}, + { name='y', type='number'}, + { name='z', type='number'}, + { name='w', type='number'}, + } + beans['vec4'] = class + end + do + ---@class test.TestString + ---@field public id string + ---@field public s1 string + ---@field public s2 string + ---@field public cs1 test.CompactString + ---@field public cs2 test.CompactString + local class = { + { name='id', type='string'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + { name='cs1', type='test.CompactString'}, + { name='cs2', type='test.CompactString'}, + } + beans['test.TestString'] = class + end + do + ---@class test.CompactString + ---@field public id integer + ---@field public s2 string + ---@field public s3 string + local class = { + { name='id', type='integer'}, + { name='s2', type='string'}, + { name='s3', type='string'}, + } + beans['test.CompactString'] = class + end + do + ---@class test.DemoGroup + ---@field public id integer + ---@field public x5 test.InnerGroup + local class = { + { name='id', type='integer'}, + { name='x5', type='test.InnerGroup'}, + } + beans['test.DemoGroup'] = class + end + do + ---@class test.InnerGroup + ---@field public y1 integer + local class = { + { name='y1', type='integer'}, + } + beans['test.InnerGroup'] = class + end + do + ---@class test.TestGlobal + ---@field public unlock_equip integer + ---@field public unlock_hero integer + local class = { + { name='unlock_equip', type='integer'}, + { name='unlock_hero', type='integer'}, + } + beans['test.TestGlobal'] = class + end + do + ---@class test.TestBeRef + ---@field public id integer + ---@field public count integer + local class = { + { name='id', type='integer'}, + { name='count', type='integer'}, + } + beans['test.TestBeRef'] = class + end + do + ---@class test.TestRef + ---@field public id integer + ---@field public x1 integer + ---@field public x1_2 integer + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public a1 integer[] + ---@field public a2 integer[] + ---@field public b1 integer[] + ---@field public b2 integer[] + ---@field public c1 integer[] + ---@field public c2 integer[] + ---@field public d1 table + ---@field public d2 table + ---@field public e1 integer + ---@field public e2 integer + ---@field public e3 string + ---@field public f1 integer + ---@field public f2 integer + ---@field public f3 string + ---@field public s1 test.RefDynamicBase + local class = { + { name='id', type='integer'}, + { name='x1', type='integer'}, + { name='x1_2', type='integer'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x4', type='integer'}, + { name='a1', type='integer[]'}, + { name='a2', type='integer[]'}, + { name='b1', type='integer[]'}, + { name='b2', type='integer[]'}, + { name='c1', type='integer[]'}, + { name='c2', type='integer[]'}, + { name='d1', type='table'}, + { name='d2', type='table'}, + { name='e1', type='integer'}, + { name='e2', type='integer'}, + { name='e3', type='string'}, + { name='f1', type='integer'}, + { name='f2', type='integer'}, + { name='f3', type='string'}, + { name='s1', type='test.RefDynamicBase'}, + } + beans['test.TestRef'] = class + end + do + ---@class test.RefDynamicBase + ---@field public x integer + local class = { + { name='x', type='integer'}, + } + beans['test.RefDynamicBase'] = class + end + do + ---@class test.RefBean :test.RefDynamicBase + ---@field public arr integer[] + local class = { + { name='arr', type='integer[]'}, + } + beans['test.RefBean'] = class + end + do + ---@class test.TestSize + ---@field public id integer + ---@field public x1 integer[] + ---@field public x2 integer[] + ---@field public x3 integer[] + ---@field public x4 table + local class = { + { name='id', type='integer'}, + { name='x1', type='integer[]'}, + { name='x2', type='integer[]'}, + { name='x3', type='integer[]'}, + { name='x4', type='table'}, + } + beans['test.TestSize'] = class + end + do + ---@class test.TestSet + ---@field public id integer + ---@field public x0 string + ---@field public x1 integer[] + ---@field public x2 integer[] + ---@field public x3 string[] + ---@field public x4 integer[] + local class = { + { name='id', type='integer'}, + { name='x0', type='string'}, + { name='x1', type='integer[]'}, + { name='x2', type='integer[]'}, + { name='x3', type='string[]'}, + { name='x4', type='integer[]'}, + } + beans['test.TestSet'] = class + end + do + ---@class test.DetectEncoding + ---@field public id integer + ---@field public name string + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + } + beans['test.DetectEncoding'] = class + end + do + ---@class test.ItemBase + ---@field public id integer + ---@field public name string + ---@field public desc string + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='desc', type='string'}, + } + beans['test.ItemBase'] = class + end + do + ---@class test.Item :test.ItemBase + ---@field public num integer + ---@field public price integer + local class = { + { name='num', type='integer'}, + { name='price', type='integer'}, + } + beans['test.Item'] = class + end + do + ---@class test.Equipment :test.ItemBase + ---@field public attr integer + ---@field public value integer + local class = { + { name='attr', type='integer'}, + { name='value', type='integer'}, + } + beans['test.Equipment'] = class + end + do + ---@class test.Decorator :test.ItemBase + ---@field public duration integer + local class = { + { name='duration', type='integer'}, + } + beans['test.Decorator'] = class + end + do + ---@class test.TestIndex + ---@field public id integer + ---@field public eles test.DemoType1[] + local class = { + { name='id', type='integer'}, + { name='eles', type='test.DemoType1[]'}, + } + beans['test.TestIndex'] = class + end + do + ---@class test.TestMap + ---@field public id integer + ---@field public x1 table + ---@field public x2 table + ---@field public x3 table + ---@field public x4 table + local class = { + { name='id', type='integer'}, + { name='x1', type='table'}, + { name='x2', type='table'}, + { name='x3', type='table'}, + { name='x4', type='table'}, + } + beans['test.TestMap'] = class + end + do + ---@class test.ExcelFromJson + ---@field public x4 integer + ---@field public x1 boolean + ---@field public x5 integer + ---@field public x6 number + ---@field public s1 string + ---@field public s2 string + ---@field public t1 integer + ---@field public x12 test.DemoType1 + ---@field public x13 integer + ---@field public x14 test.DemoDynamic + ---@field public k1 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k15 test.DemoDynamic[] + local class = { + { name='x4', type='integer'}, + { name='x1', type='boolean'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + { name='t1', type='integer'}, + { name='x12', type='test.DemoType1'}, + { name='x13', type='integer'}, + { name='x14', type='test.DemoDynamic'}, + { name='k1', type='integer[]'}, + { name='k8', type='table'}, + { name='k9', type='test.DemoE2[]'}, + { name='k15', type='test.DemoDynamic[]'}, + } + beans['test.ExcelFromJson'] = class + end + do + ---@class test.CompositeJsonTable1 + ---@field public id integer + ---@field public x string + local class = { + { name='id', type='integer'}, + { name='x', type='string'}, + } + beans['test.CompositeJsonTable1'] = class + end + do + ---@class test.CompositeJsonTable2 + ---@field public id integer + ---@field public y integer + local class = { + { name='id', type='integer'}, + { name='y', type='integer'}, + } + beans['test.CompositeJsonTable2'] = class + end + do + ---@class test.CompositeJsonTable3 + ---@field public a integer + ---@field public b integer + local class = { + { name='a', type='integer'}, + { name='b', type='integer'}, + } + beans['test.CompositeJsonTable3'] = class + end + do + ---@class test.ExcelFromJsonMultiRow + ---@field public id integer + ---@field public x integer + ---@field public items test.TestRow[] + local class = { + { name='id', type='integer'}, + { name='x', type='integer'}, + { name='items', type='test.TestRow[]'}, + } + beans['test.ExcelFromJsonMultiRow'] = class + end + do + ---@class test.TestRow + ---@field public x integer + ---@field public y boolean + ---@field public z string + ---@field public a test.Test3 + ---@field public b integer[] + local class = { + { name='x', type='integer'}, + { name='y', type='boolean'}, + { name='z', type='string'}, + { name='a', type='test.Test3'}, + { name='b', type='integer[]'}, + } + beans['test.TestRow'] = class + end + do + ---@class test.Test3 + ---@field public x integer + ---@field public y integer + local class = { + { name='x', type='integer'}, + { name='y', type='integer'}, + } + beans['test.Test3'] = class + end + do + ---@class test.TestScriptableObject + ---@field public id integer + ---@field public desc string + ---@field public rate number + ---@field public num integer + ---@field public v2 vec2 + ---@field public v3 vec3 + ---@field public v4 vec4 + local class = { + { name='id', type='integer'}, + { name='desc', type='string'}, + { name='rate', type='number'}, + { name='num', type='integer'}, + { name='v2', type='vec2'}, + { name='v3', type='vec3'}, + { name='v4', type='vec4'}, + } + beans['test.TestScriptableObject'] = class + end + do + ---@class test.TestMapper + ---@field public id integer + ---@field public audio_type integer + ---@field public v2 vec2 + local class = { + { name='id', type='integer'}, + { name='audio_type', type='integer'}, + { name='v2', type='vec2'}, + } + beans['test.TestMapper'] = class + end + do + ---@class DefineFromExcel2 + ---@field public id integer @这是id + ---@field public x1 boolean @字段x1 + ---@field public x5 integer + ---@field public x6 number + ---@field public x8 integer + ---@field public x10 string + ---@field public x13 integer + ---@field public x13_2 integer + ---@field public x14 test.DemoDynamic + ---@field public x15 test.Shape + ---@field public v2 vec2 + ---@field public t1 integer + ---@field public k1 integer[] + ---@field public k2 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k10 vec3[] + ---@field public k11 vec4[] + local class = { + { name='id', type='integer'}, + { name='x1', type='boolean'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='x8', type='integer'}, + { name='x10', type='string'}, + { name='x13', type='integer'}, + { name='x13_2', type='integer'}, + { name='x14', type='test.DemoDynamic'}, + { name='x15', type='test.Shape'}, + { name='v2', type='vec2'}, + { name='t1', type='integer'}, + { name='k1', type='integer[]'}, + { name='k2', type='integer[]'}, + { name='k8', type='table'}, + { name='k9', type='test.DemoE2[]'}, + { name='k10', type='vec3[]'}, + { name='k11', type='vec4[]'}, + } + beans['DefineFromExcel2'] = class + end + do + ---@class test.Shape + local class = { + } + beans['test.Shape'] = class + end + do + ---@class test.Circle :Shape @圆 + ---@field public radius number @半径 + local class = { + { name='radius', type='number'}, + } + beans['test.Circle'] = class + end + do + ---@class test2.Rectangle :test.Shape @矩形 + ---@field public width number @宽度 + ---@field public height number @高度 + local class = { + { name='width', type='number'}, + { name='height', type='number'}, + } + beans['test2.Rectangle'] = class + end + + local beans = {} + do + ---@class ai.Blackboard + ---@field public name string + ---@field public desc string + ---@field public parent_name string + ---@field public keys ai.BlackboardKey[] + local class = SimpleClass() + class._id = 1576193005 + class._type_ = 'ai.Blackboard' + local id2name = { } + class._deserialize = function(bs) + local o = { + name = readString(bs), + desc = readString(bs), + parent_name = readString(bs), + keys = readList(bs, beans['ai.BlackboardKey']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.BlackboardKey + ---@field public name string + ---@field public desc string + ---@field public is_static boolean + ---@field public type integer + ---@field public type_class_name string + local class = SimpleClass() + class._id = -511559886 + class._type_ = 'ai.BlackboardKey' + local id2name = { } + class._deserialize = function(bs) + local o = { + name = readString(bs), + desc = readString(bs), + is_static = readBool(bs), + type = readInt(bs), + type_class_name = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.BehaviorTree + ---@field public id integer + ---@field public name string + ---@field public desc string + ---@field public blackboard_id string + ---@field public root ai.ComposeNode + local class = SimpleClass() + class._id = 159552822 + class._type_ = 'ai.BehaviorTree' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + desc = readString(bs), + blackboard_id = readString(bs), + root = beans['ai.ComposeNode']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.Node + ---@field public id integer + ---@field public node_name string + local class = SimpleClass() + class._id = -1055479768 + class._type_ = 'ai.Node' + local id2name = { [1812449155] = 'ai.UeSetDefaultFocus', [990693812] = 'ai.ExecuteTimeStatistic', [1601247918] = 'ai.ChooseTarget', [1195270745] = 'ai.KeepFaceTarget', [-999247644] = 'ai.GetOwnerPlayer', [-61887372] = 'ai.UpdateDailyBehaviorProps', [-513308166] = 'ai.UeLoop', [-951439423] = 'ai.UeCooldown', [338469720] = 'ai.UeTimeLimit', [-315297507] = 'ai.UeBlackboard', [195054574] = 'ai.UeForceSuccess', [1255972344] = 'ai.IsAtLocation', [-1207170283] = 'ai.DistanceLessThan', [-1789006105] = 'ai.Sequence', [-1946981627] = 'ai.Selector', [-1952582529] = 'ai.SimpleParallel', [-512994101] = 'ai.UeWait', [1215378271] = 'ai.UeWaitBlackboardTime', [514987779] = 'ai.MoveToTarget', [-918812268] = 'ai.ChooseSkill', [-2140042998] = 'ai.MoveToRandomLocation', [-969953113] = 'ai.MoveToLocation', [1357409728] = 'ai.DebugPrint', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.Service :ai.Node + local class = SimpleClass() + class._id = -472395057 + class._type_ = 'ai.Service' + local id2name = { [1812449155] = 'ai.UeSetDefaultFocus', [990693812] = 'ai.ExecuteTimeStatistic', [1601247918] = 'ai.ChooseTarget', [1195270745] = 'ai.KeepFaceTarget', [-999247644] = 'ai.GetOwnerPlayer', [-61887372] = 'ai.UpdateDailyBehaviorProps', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.UeSetDefaultFocus :ai.Service + ---@field public keyboard_key string + local class = SimpleClass() + class._id = 1812449155 + class._type_ = 'ai.UeSetDefaultFocus' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + keyboard_key = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.ExecuteTimeStatistic :ai.Service + local class = SimpleClass() + class._id = 990693812 + class._type_ = 'ai.ExecuteTimeStatistic' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.ChooseTarget :ai.Service + ---@field public result_target_key string + local class = SimpleClass() + class._id = 1601247918 + class._type_ = 'ai.ChooseTarget' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + result_target_key = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.KeepFaceTarget :ai.Service + ---@field public target_actor_key string + local class = SimpleClass() + class._id = 1195270745 + class._type_ = 'ai.KeepFaceTarget' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + target_actor_key = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.GetOwnerPlayer :ai.Service + ---@field public player_actor_key string + local class = SimpleClass() + class._id = -999247644 + class._type_ = 'ai.GetOwnerPlayer' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + player_actor_key = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.UpdateDailyBehaviorProps :ai.Service + ---@field public satiety_key string + ---@field public energy_key string + ---@field public mood_key string + ---@field public satiety_lower_threshold_key string + ---@field public satiety_upper_threshold_key string + ---@field public energy_lower_threshold_key string + ---@field public energy_upper_threshold_key string + ---@field public mood_lower_threshold_key string + ---@field public mood_upper_threshold_key string + local class = SimpleClass() + class._id = -61887372 + class._type_ = 'ai.UpdateDailyBehaviorProps' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + satiety_key = readString(bs), + energy_key = readString(bs), + mood_key = readString(bs), + satiety_lower_threshold_key = readString(bs), + satiety_upper_threshold_key = readString(bs), + energy_lower_threshold_key = readString(bs), + energy_upper_threshold_key = readString(bs), + mood_lower_threshold_key = readString(bs), + mood_upper_threshold_key = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.Decorator :ai.Node + ---@field public flow_abort_mode integer + local class = SimpleClass() + class._id = 2017109461 + class._type_ = 'ai.Decorator' + local id2name = { [-513308166] = 'ai.UeLoop', [-951439423] = 'ai.UeCooldown', [338469720] = 'ai.UeTimeLimit', [-315297507] = 'ai.UeBlackboard', [195054574] = 'ai.UeForceSuccess', [1255972344] = 'ai.IsAtLocation', [-1207170283] = 'ai.DistanceLessThan', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.UeLoop :ai.Decorator + ---@field public num_loops integer + ---@field public infinite_loop boolean + ---@field public infinite_loop_timeout_time number + local class = SimpleClass() + class._id = -513308166 + class._type_ = 'ai.UeLoop' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + flow_abort_mode = readInt(bs), + num_loops = readInt(bs), + infinite_loop = readBool(bs), + infinite_loop_timeout_time = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.UeCooldown :ai.Decorator + ---@field public cooldown_time number + local class = SimpleClass() + class._id = -951439423 + class._type_ = 'ai.UeCooldown' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + flow_abort_mode = readInt(bs), + cooldown_time = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.UeTimeLimit :ai.Decorator + ---@field public limit_time number + local class = SimpleClass() + class._id = 338469720 + class._type_ = 'ai.UeTimeLimit' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + flow_abort_mode = readInt(bs), + limit_time = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.UeBlackboard :ai.Decorator + ---@field public notify_observer integer + ---@field public blackboard_key string + ---@field public key_query ai.KeyQueryOperator + local class = SimpleClass() + class._id = -315297507 + class._type_ = 'ai.UeBlackboard' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + flow_abort_mode = readInt(bs), + notify_observer = readInt(bs), + blackboard_key = readString(bs), + key_query = beans['ai.KeyQueryOperator']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.KeyQueryOperator + local class = SimpleClass() + class._id = -738364781 + class._type_ = 'ai.KeyQueryOperator' + local id2name = { [1635350898] = 'ai.IsSet', [790736255] = 'ai.IsNotSet', [-979891605] = 'ai.BinaryOperator', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.IsSet :ai.KeyQueryOperator + local class = SimpleClass() + class._id = 1635350898 + class._type_ = 'ai.IsSet' + local id2name = { } + class._deserialize = function(bs) + local o = { + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.IsNotSet :ai.KeyQueryOperator + local class = SimpleClass() + class._id = 790736255 + class._type_ = 'ai.IsNotSet' + local id2name = { } + class._deserialize = function(bs) + local o = { + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.BinaryOperator :ai.KeyQueryOperator + ---@field public oper integer + ---@field public data ai.KeyData + local class = SimpleClass() + class._id = -979891605 + class._type_ = 'ai.BinaryOperator' + local id2name = { } + class._deserialize = function(bs) + local o = { + oper = readInt(bs), + data = beans['ai.KeyData']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.KeyData + local class = SimpleClass() + class._id = 1022478019 + class._type_ = 'ai.KeyData' + local id2name = { [-719747885] = 'ai.FloatKeyData', [-342751904] = 'ai.IntKeyData', [-307888654] = 'ai.StringKeyData', [1517269500] = 'ai.BlackboardKeyData', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.FloatKeyData :ai.KeyData + ---@field public value number + local class = SimpleClass() + class._id = -719747885 + class._type_ = 'ai.FloatKeyData' + local id2name = { } + class._deserialize = function(bs) + local o = { + value = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.IntKeyData :ai.KeyData + ---@field public value integer + local class = SimpleClass() + class._id = -342751904 + class._type_ = 'ai.IntKeyData' + local id2name = { } + class._deserialize = function(bs) + local o = { + value = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.StringKeyData :ai.KeyData + ---@field public value string + local class = SimpleClass() + class._id = -307888654 + class._type_ = 'ai.StringKeyData' + local id2name = { } + class._deserialize = function(bs) + local o = { + value = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.BlackboardKeyData :ai.KeyData + ---@field public value string + local class = SimpleClass() + class._id = 1517269500 + class._type_ = 'ai.BlackboardKeyData' + local id2name = { } + class._deserialize = function(bs) + local o = { + value = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.UeForceSuccess :ai.Decorator + local class = SimpleClass() + class._id = 195054574 + class._type_ = 'ai.UeForceSuccess' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + flow_abort_mode = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.IsAtLocation :ai.Decorator + ---@field public acceptable_radius number + ---@field public keyboard_key string + ---@field public inverse_condition boolean + local class = SimpleClass() + class._id = 1255972344 + class._type_ = 'ai.IsAtLocation' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + flow_abort_mode = readInt(bs), + acceptable_radius = readFloat(bs), + keyboard_key = readString(bs), + inverse_condition = readBool(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.DistanceLessThan :ai.Decorator + ---@field public actor1_key string + ---@field public actor2_key string + ---@field public distance number + ---@field public reverse_result boolean + local class = SimpleClass() + class._id = -1207170283 + class._type_ = 'ai.DistanceLessThan' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + flow_abort_mode = readInt(bs), + actor1_key = readString(bs), + actor2_key = readString(bs), + distance = readFloat(bs), + reverse_result = readBool(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.FlowNode :ai.Node + ---@field public decorators ai.Decorator[] + ---@field public services ai.Service[] + local class = SimpleClass() + class._id = -1109240970 + class._type_ = 'ai.FlowNode' + local id2name = { [-1789006105] = 'ai.Sequence', [-1946981627] = 'ai.Selector', [-1952582529] = 'ai.SimpleParallel', [-512994101] = 'ai.UeWait', [1215378271] = 'ai.UeWaitBlackboardTime', [514987779] = 'ai.MoveToTarget', [-918812268] = 'ai.ChooseSkill', [-2140042998] = 'ai.MoveToRandomLocation', [-969953113] = 'ai.MoveToLocation', [1357409728] = 'ai.DebugPrint', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.ComposeNode :ai.FlowNode + local class = SimpleClass() + class._id = -70129202 + class._type_ = 'ai.ComposeNode' + local id2name = { [-1789006105] = 'ai.Sequence', [-1946981627] = 'ai.Selector', [-1952582529] = 'ai.SimpleParallel', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.Sequence :ai.ComposeNode + ---@field public children ai.FlowNode[] + local class = SimpleClass() + class._id = -1789006105 + class._type_ = 'ai.Sequence' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + children = readList(bs, beans['ai.FlowNode']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.Selector :ai.ComposeNode + ---@field public children ai.FlowNode[] + local class = SimpleClass() + class._id = -1946981627 + class._type_ = 'ai.Selector' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + children = readList(bs, beans['ai.FlowNode']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.SimpleParallel :ai.ComposeNode + ---@field public finish_mode integer + ---@field public main_task ai.Task + ---@field public background_node ai.FlowNode + local class = SimpleClass() + class._id = -1952582529 + class._type_ = 'ai.SimpleParallel' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + finish_mode = readInt(bs), + main_task = beans['ai.Task']._deserialize(bs), + background_node = beans['ai.FlowNode']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.Task :ai.FlowNode + ---@field public ignore_restart_self boolean + local class = SimpleClass() + class._id = -1055314005 + class._type_ = 'ai.Task' + local id2name = { [-512994101] = 'ai.UeWait', [1215378271] = 'ai.UeWaitBlackboardTime', [514987779] = 'ai.MoveToTarget', [-918812268] = 'ai.ChooseSkill', [-2140042998] = 'ai.MoveToRandomLocation', [-969953113] = 'ai.MoveToLocation', [1357409728] = 'ai.DebugPrint', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class ai.UeWait :ai.Task + ---@field public wait_time number + ---@field public random_deviation number + local class = SimpleClass() + class._id = -512994101 + class._type_ = 'ai.UeWait' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + ignore_restart_self = readBool(bs), + wait_time = readFloat(bs), + random_deviation = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.UeWaitBlackboardTime :ai.Task + ---@field public blackboard_key string + local class = SimpleClass() + class._id = 1215378271 + class._type_ = 'ai.UeWaitBlackboardTime' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + ignore_restart_self = readBool(bs), + blackboard_key = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.MoveToTarget :ai.Task + ---@field public target_actor_key string + ---@field public acceptable_radius number + local class = SimpleClass() + class._id = 514987779 + class._type_ = 'ai.MoveToTarget' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + ignore_restart_self = readBool(bs), + target_actor_key = readString(bs), + acceptable_radius = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.ChooseSkill :ai.Task + ---@field public target_actor_key string + ---@field public result_skill_id_key string + local class = SimpleClass() + class._id = -918812268 + class._type_ = 'ai.ChooseSkill' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + ignore_restart_self = readBool(bs), + target_actor_key = readString(bs), + result_skill_id_key = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.MoveToRandomLocation :ai.Task + ---@field public origin_position_key string + ---@field public radius number + local class = SimpleClass() + class._id = -2140042998 + class._type_ = 'ai.MoveToRandomLocation' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + ignore_restart_self = readBool(bs), + origin_position_key = readString(bs), + radius = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.MoveToLocation :ai.Task + ---@field public acceptable_radius number + local class = SimpleClass() + class._id = -969953113 + class._type_ = 'ai.MoveToLocation' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + ignore_restart_self = readBool(bs), + acceptable_radius = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class ai.DebugPrint :ai.Task + ---@field public text string + local class = SimpleClass() + class._id = 1357409728 + class._type_ = 'ai.DebugPrint' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + node_name = readString(bs), + decorators = readList(bs, beans['ai.Decorator']._deserialize), + services = readList(bs, beans['ai.Service']._deserialize), + ignore_restart_self = readBool(bs), + text = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class common.GlobalConfig + ---@field public x1 integer + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public x5 integer + ---@field public x6 integer + ---@field public x7 integer[] + local class = SimpleClass() + class._id = -848234488 + class._type_ = 'common.GlobalConfig' + local id2name = { } + class._deserialize = function(bs) + local o = { + x1 = readInt(bs), + x2 = readInt(bs), + x3 = readInt(bs), + x4 = readInt(bs), + x5 = readInt(bs), + x6 = readInt(bs), + x7 = readList(bs, readInt), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class item.Item + ---@field public id integer + ---@field public name string + ---@field public minor_type integer + ---@field public quality integer + ---@field public icon_backgroud string + ---@field public icon_mask string + ---@field public desc string + ---@field public show_order integer + local class = SimpleClass() + class._id = 2107285806 + class._type_ = 'item.Item' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + minor_type = readInt(bs), + quality = readInt(bs), + icon_backgroud = readString(bs), + icon_mask = readString(bs), + desc = readString(bs), + show_order = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class l10n.L10NDemo + ---@field public id integer + ---@field public text string + local class = SimpleClass() + class._id = -331195887 + class._type_ = 'l10n.L10NDemo' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + text = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class l10n.PatchDemo + ---@field public id integer + ---@field public value integer + local class = SimpleClass() + class._id = -1707294656 + class._type_ = 'l10n.PatchDemo' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + value = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class tag.TestTag + ---@field public id integer + ---@field public value string + local class = SimpleClass() + class._id = 1742933812 + class._type_ = 'tag.TestTag' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + value = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoType2 + ---@field public x4 integer + ---@field public x1 boolean + ---@field public x2 integer + ---@field public x3 integer + ---@field public x5 integer + ---@field public x6 number + ---@field public x7 number + ---@field public x8_0 integer + ---@field public x8 integer + ---@field public x9 integer + ---@field public x10 string + ---@field public x12 test.DemoType1 + ---@field public x13 integer + ---@field public x14 test.DemoDynamic + ---@field public s1 string + ---@field public t1 integer + ---@field public k1 integer[] + ---@field public k2 integer[] + ---@field public k5 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k15 test.DemoDynamic[] + local class = SimpleClass() + class._id = -367048295 + class._type_ = 'test.DemoType2' + local id2name = { } + class._deserialize = function(bs) + local o = { + x4 = readInt(bs), + x1 = readBool(bs), + x2 = readByte(bs), + x3 = readShort(bs), + x5 = readLong(bs), + x6 = readFloat(bs), + x7 = readDouble(bs), + x8_0 = readShort(bs), + x8 = readInt(bs), + x9 = readLong(bs), + x10 = readString(bs), + x12 = beans['test.DemoType1']._deserialize(bs), + x13 = readInt(bs), + x14 = beans['test.DemoDynamic']._deserialize(bs), + s1 = readString(bs), + t1 = readLong(bs), + k1 = readArray(bs, readInt), + k2 = readList(bs, readInt), + k5 = readSet(bs, readInt), + k8 = readMap(bs, readInt, readInt), + k9 = readList(bs, beans['test.DemoE2']._deserialize), + k15 = readArray(bs, beans['test.DemoDynamic']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoType1 + ---@field public x1 integer + local class = SimpleClass() + class._id = -367048296 + class._type_ = 'test.DemoType1' + local id2name = { } + class._deserialize = function(bs) + local o = { + x1 = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoDynamic + ---@field public x1 integer + local class = SimpleClass() + class._id = -1863156384 + class._type_ = 'test.DemoDynamic' + local id2name = { [-2138341747] = 'test.DemoD2', [-2138341717] = 'test.DemoE1', [-989153243] = 'test.login.RoleInfo', [-2138341744] = 'test.DemoD5', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class test.DemoD2 :test.DemoDynamic + ---@field public x2 integer + local class = SimpleClass() + class._id = -2138341747 + class._type_ = 'test.DemoD2' + local id2name = { } + class._deserialize = function(bs) + local o = { + x1 = readInt(bs), + x2 = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoD3 :test.DemoDynamic + ---@field public x3 integer + local class = SimpleClass() + class._id = -2138341746 + class._type_ = 'test.DemoD3' + local id2name = { [-2138341717] = 'test.DemoE1', [-989153243] = 'test.login.RoleInfo', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class test.DemoE1 :test.DemoD3 + ---@field public x4 integer + local class = SimpleClass() + class._id = -2138341717 + class._type_ = 'test.DemoE1' + local id2name = { } + class._deserialize = function(bs) + local o = { + x1 = readInt(bs), + x3 = readInt(bs), + x4 = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.login.RoleInfo :test.DemoD3 + ---@field public role_id integer + local class = SimpleClass() + class._id = -989153243 + class._type_ = 'test.login.RoleInfo' + local id2name = { } + class._deserialize = function(bs) + local o = { + x1 = readInt(bs), + x3 = readInt(bs), + role_id = readLong(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoD5 :test.DemoDynamic + ---@field public time test.DateTimeRange + local class = SimpleClass() + class._id = -2138341744 + class._type_ = 'test.DemoD5' + local id2name = { } + class._deserialize = function(bs) + local o = { + x1 = readInt(bs), + time = beans['test.DateTimeRange']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DateTimeRange + ---@field public start_time integer + ---@field public end_time integer + local class = SimpleClass() + class._id = 495315430 + class._type_ = 'test.DateTimeRange' + local id2name = { } + class._deserialize = function(bs) + local o = { + start_time = readLong(bs), + end_time = readLong(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoE2 + ---@field public y1 integer + ---@field public y2 boolean + local class = SimpleClass() + class._id = -2138341716 + class._type_ = 'test.DemoE2' + local id2name = { } + class._deserialize = function(bs) + local o = { + y1 = readBool(bs) and readInt(bs) or nil, + y2 = readBool(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoSingletonType + ---@field public id integer + ---@field public name string + ---@field public date test.DemoDynamic + local class = SimpleClass() + class._id = 539196998 + class._type_ = 'test.DemoSingletonType' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + date = beans['test.DemoDynamic']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.NotIndexList + ---@field public x integer + ---@field public y integer + local class = SimpleClass() + class._id = -50446599 + class._type_ = 'test.NotIndexList' + local id2name = { } + class._deserialize = function(bs) + local o = { + x = readInt(bs), + y = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.MultiUnionIndexList + ---@field public id1 integer + ---@field public id2 integer + ---@field public id3 string + ---@field public num integer + ---@field public desc string + local class = SimpleClass() + class._id = 1966847134 + class._type_ = 'test.MultiUnionIndexList' + local id2name = { } + class._deserialize = function(bs) + local o = { + id1 = readInt(bs), + id2 = readLong(bs), + id3 = readString(bs), + num = readInt(bs), + desc = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.MultiIndexList + ---@field public id1 integer + ---@field public id2 integer + ---@field public id3 string + ---@field public num integer + ---@field public desc string + local class = SimpleClass() + class._id = 2016237651 + class._type_ = 'test.MultiIndexList' + local id2name = { } + class._deserialize = function(bs) + local o = { + id1 = readInt(bs), + id2 = readLong(bs), + id3 = readString(bs), + num = readInt(bs), + desc = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.MultiRowRecord + ---@field public id integer + ---@field public name string + ---@field public one_rows test.MultiRowType1[] + ---@field public multi_rows1 test.MultiRowType1[] + ---@field public multi_rows2 test.MultiRowType1[] + ---@field public multi_rows4 table + ---@field public multi_rows5 test.MultiRowType3[] + ---@field public multi_rows6 table + ---@field public multi_rows7 table + local class = SimpleClass() + class._id = -501249394 + class._type_ = 'test.MultiRowRecord' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + one_rows = readList(bs, beans['test.MultiRowType1']._deserialize), + multi_rows1 = readList(bs, beans['test.MultiRowType1']._deserialize), + multi_rows2 = readArray(bs, beans['test.MultiRowType1']._deserialize), + multi_rows4 = readMap(bs, readInt, beans['test.MultiRowType2']._deserialize), + multi_rows5 = readList(bs, beans['test.MultiRowType3']._deserialize), + multi_rows6 = readMap(bs, readInt, beans['test.MultiRowType2']._deserialize), + multi_rows7 = readMap(bs, readInt, readInt), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.MultiRowType1 + ---@field public id integer + ---@field public x integer + local class = SimpleClass() + class._id = 540474970 + class._type_ = 'test.MultiRowType1' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.MultiRowType2 + ---@field public id integer + ---@field public x integer + ---@field public y number + local class = SimpleClass() + class._id = 540474971 + class._type_ = 'test.MultiRowType2' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x = readInt(bs), + y = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.MultiRowType3 + ---@field public id integer + ---@field public items test.MultiRowType1[] + local class = SimpleClass() + class._id = 540474972 + class._type_ = 'test.MultiRowType3' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + items = readList(bs, beans['test.MultiRowType1']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestMultiColumn + ---@field public id integer + ---@field public a test.Foo + ---@field public b test.Foo + ---@field public c test.Foo + local class = SimpleClass() + class._id = -294473599 + class._type_ = 'test.TestMultiColumn' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + a = beans['test.Foo']._deserialize(bs), + b = beans['test.Foo']._deserialize(bs), + c = beans['test.Foo']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.Foo + ---@field public y1 integer + ---@field public y2 integer + ---@field public y3 integer + local class = SimpleClass() + class._id = -1147950774 + class._type_ = 'test.Foo' + local id2name = { } + class._deserialize = function(bs) + local o = { + y1 = readInt(bs), + y2 = readInt(bs), + y3 = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.MultiRowTitle + ---@field public id integer + ---@field public name string + ---@field public x1 test.H1 + ---@field public x2_0 test.H2 + ---@field public x2 test.H2[] + ---@field public x3 test.H2[] + ---@field public x4 test.H2[] + local class = SimpleClass() + class._id = 540002427 + class._type_ = 'test.MultiRowTitle' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + x1 = beans['test.H1']._deserialize(bs), + x2_0 = readBool(bs) and beans['test.H2']._deserialize(bs) or nil, + x2 = readList(bs, beans['test.H2']._deserialize), + x3 = readArray(bs, beans['test.H2']._deserialize), + x4 = readArray(bs, beans['test.H2']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.H1 + ---@field public y2 test.H2 + ---@field public y3 integer + local class = SimpleClass() + class._id = -1422503995 + class._type_ = 'test.H1' + local id2name = { } + class._deserialize = function(bs) + local o = { + y2 = beans['test.H2']._deserialize(bs), + y3 = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.H2 + ---@field public z2 integer + ---@field public z3 integer + local class = SimpleClass() + class._id = -1422503994 + class._type_ = 'test.H2' + local id2name = { } + class._deserialize = function(bs) + local o = { + z2 = readInt(bs), + z3 = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestNull + ---@field public id integer + ---@field public x1 integer + ---@field public x2 integer + ---@field public x3 test.DemoType1 + ---@field public x4 test.DemoDynamic + ---@field public s1 string + ---@field public s2 string + local class = SimpleClass() + class._id = 339868469 + class._type_ = 'test.TestNull' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x1 = readBool(bs) and readInt(bs) or nil, + x2 = readBool(bs) and readInt(bs) or nil, + x3 = readBool(bs) and beans['test.DemoType1']._deserialize(bs) or nil, + x4 = readBool(bs) and beans['test.DemoDynamic']._deserialize(bs) or nil, + s1 = readBool(bs) and readString(bs) or nil, + s2 = readBool(bs) and readString(bs) or nil, + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoPrimitiveTypesTable + ---@field public x1 boolean + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public x5 integer + ---@field public x6 number + ---@field public x7 number + ---@field public s1 string + ---@field public s2 string + ---@field public v2 vec2 + ---@field public v3 vec3 + ---@field public v4 vec4 + ---@field public t1 integer + local class = SimpleClass() + class._id = -370934083 + class._type_ = 'test.DemoPrimitiveTypesTable' + local id2name = { } + class._deserialize = function(bs) + local o = { + x1 = readBool(bs), + x2 = readByte(bs), + x3 = readShort(bs), + x4 = readInt(bs), + x5 = readLong(bs), + x6 = readFloat(bs), + x7 = readDouble(bs), + s1 = readString(bs), + s2 = readString(bs), + v2 = beans['vec2']._deserialize(bs), + v3 = beans['vec3']._deserialize(bs), + v4 = beans['vec4']._deserialize(bs), + t1 = readLong(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class vec2 + ---@field public x number + ---@field public y number + local class = SimpleClass() + class._id = 3615518 + class._type_ = 'vec2' + local id2name = { } + class._deserialize = function(bs) + local o = { + x = readFloat(bs), + y = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class vec3 + ---@field public x number + ---@field public y number + ---@field public z number + local class = SimpleClass() + class._id = 3615519 + class._type_ = 'vec3' + local id2name = { } + class._deserialize = function(bs) + local o = { + x = readFloat(bs), + y = readFloat(bs), + z = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class vec4 + ---@field public x number + ---@field public y number + ---@field public z number + ---@field public w number + local class = SimpleClass() + class._id = 3615520 + class._type_ = 'vec4' + local id2name = { } + class._deserialize = function(bs) + local o = { + x = readFloat(bs), + y = readFloat(bs), + z = readFloat(bs), + w = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestString + ---@field public id string + ---@field public s1 string + ---@field public s2 string + ---@field public cs1 test.CompactString + ---@field public cs2 test.CompactString + local class = SimpleClass() + class._id = 338485823 + class._type_ = 'test.TestString' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readString(bs), + s1 = readString(bs), + s2 = readString(bs), + cs1 = beans['test.CompactString']._deserialize(bs), + cs2 = beans['test.CompactString']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.CompactString + ---@field public id integer + ---@field public s2 string + ---@field public s3 string + local class = SimpleClass() + class._id = 1968089240 + class._type_ = 'test.CompactString' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + s2 = readString(bs), + s3 = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DemoGroup + ---@field public id integer + ---@field public x5 test.InnerGroup + local class = SimpleClass() + class._id = -379263008 + class._type_ = 'test.DemoGroup' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x5 = beans['test.InnerGroup']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.InnerGroup + ---@field public y1 integer + local class = SimpleClass() + class._id = -587873083 + class._type_ = 'test.InnerGroup' + local id2name = { } + class._deserialize = function(bs) + local o = { + y1 = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestGlobal + ---@field public unlock_equip integer + ---@field public unlock_hero integer + local class = SimpleClass() + class._id = -12548655 + class._type_ = 'test.TestGlobal' + local id2name = { } + class._deserialize = function(bs) + local o = { + unlock_equip = readInt(bs), + unlock_hero = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestBeRef + ---@field public id integer + ---@field public count integer + local class = SimpleClass() + class._id = 1934403938 + class._type_ = 'test.TestBeRef' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + count = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestRef + ---@field public id integer + ---@field public x1 integer + ---@field public x1_2 integer + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public a1 integer[] + ---@field public a2 integer[] + ---@field public b1 integer[] + ---@field public b2 integer[] + ---@field public c1 integer[] + ---@field public c2 integer[] + ---@field public d1 table + ---@field public d2 table + ---@field public e1 integer + ---@field public e2 integer + ---@field public e3 string + ---@field public f1 integer + ---@field public f2 integer + ---@field public f3 string + ---@field public s1 test.RefDynamicBase + local class = SimpleClass() + class._id = -543222491 + class._type_ = 'test.TestRef' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x1 = readInt(bs), + x1_2 = readInt(bs), + x2 = readInt(bs), + x3 = readInt(bs), + x4 = readInt(bs), + a1 = readArray(bs, readInt), + a2 = readArray(bs, readInt), + b1 = readList(bs, readInt), + b2 = readList(bs, readInt), + c1 = readSet(bs, readInt), + c2 = readSet(bs, readInt), + d1 = readMap(bs, readInt, readInt), + d2 = readMap(bs, readInt, readInt), + e1 = readInt(bs), + e2 = readLong(bs), + e3 = readString(bs), + f1 = readInt(bs), + f2 = readLong(bs), + f3 = readString(bs), + s1 = beans['test.RefDynamicBase']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.RefDynamicBase + ---@field public x integer + local class = SimpleClass() + class._id = 772878873 + class._type_ = 'test.RefDynamicBase' + local id2name = { [1963260263] = 'test.RefBean', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class test.RefBean :test.RefDynamicBase + ---@field public arr integer[] + local class = SimpleClass() + class._id = 1963260263 + class._type_ = 'test.RefBean' + local id2name = { } + class._deserialize = function(bs) + local o = { + x = readInt(bs), + arr = readList(bs, readInt), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestSize + ---@field public id integer + ---@field public x1 integer[] + ---@field public x2 integer[] + ---@field public x3 integer[] + ---@field public x4 table + local class = SimpleClass() + class._id = 340006319 + class._type_ = 'test.TestSize' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x1 = readArray(bs, readInt), + x2 = readList(bs, readInt), + x3 = readSet(bs, readInt), + x4 = readMap(bs, readInt, readInt), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestSet + ---@field public id integer + ---@field public x0 string + ---@field public x1 integer[] + ---@field public x2 integer[] + ---@field public x3 string[] + ---@field public x4 integer[] + local class = SimpleClass() + class._id = -543221516 + class._type_ = 'test.TestSet' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x0 = readString(bs), + x1 = readList(bs, readInt), + x2 = readList(bs, readLong), + x3 = readList(bs, readString), + x4 = readList(bs, readInt), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.DetectEncoding + ---@field public id integer + ---@field public name string + local class = SimpleClass() + class._id = -1154609646 + class._type_ = 'test.DetectEncoding' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.ItemBase + ---@field public id integer + ---@field public name string + ---@field public desc string + local class = SimpleClass() + class._id = -1631171968 + class._type_ = 'test.ItemBase' + local id2name = { [-1226641649] = 'test.Item', [-76837102] = 'test.Equipment', [-625155649] = 'test.Decorator', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class test.Item :test.ItemBase + ---@field public num integer + ---@field public price integer + local class = SimpleClass() + class._id = -1226641649 + class._type_ = 'test.Item' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + desc = readString(bs), + num = readInt(bs), + price = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.Equipment :test.ItemBase + ---@field public attr integer + ---@field public value integer + local class = SimpleClass() + class._id = -76837102 + class._type_ = 'test.Equipment' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + desc = readString(bs), + attr = readInt(bs), + value = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.Decorator :test.ItemBase + ---@field public duration integer + local class = SimpleClass() + class._id = -625155649 + class._type_ = 'test.Decorator' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + name = readString(bs), + desc = readString(bs), + duration = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestIndex + ---@field public id integer + ---@field public eles test.DemoType1[] + local class = SimpleClass() + class._id = 1941154020 + class._type_ = 'test.TestIndex' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + eles = readList(bs, beans['test.DemoType1']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestMap + ---@field public id integer + ---@field public x1 table + ---@field public x2 table + ---@field public x3 table + ---@field public x4 table + local class = SimpleClass() + class._id = -543227410 + class._type_ = 'test.TestMap' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x1 = readMap(bs, readInt, readInt), + x2 = readMap(bs, readLong, readInt), + x3 = readMap(bs, readString, readInt), + x4 = readMap(bs, readInt, readInt), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.ExcelFromJson + ---@field public x4 integer + ---@field public x1 boolean + ---@field public x5 integer + ---@field public x6 number + ---@field public s1 string + ---@field public s2 string + ---@field public t1 integer + ---@field public x12 test.DemoType1 + ---@field public x13 integer + ---@field public x14 test.DemoDynamic + ---@field public k1 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k15 test.DemoDynamic[] + local class = SimpleClass() + class._id = -1485706483 + class._type_ = 'test.ExcelFromJson' + local id2name = { } + class._deserialize = function(bs) + local o = { + x4 = readInt(bs), + x1 = readBool(bs), + x5 = readLong(bs), + x6 = readFloat(bs), + s1 = readString(bs), + s2 = readString(bs), + t1 = readLong(bs), + x12 = beans['test.DemoType1']._deserialize(bs), + x13 = readInt(bs), + x14 = beans['test.DemoDynamic']._deserialize(bs), + k1 = readArray(bs, readInt), + k8 = readMap(bs, readInt, readInt), + k9 = readList(bs, beans['test.DemoE2']._deserialize), + k15 = readArray(bs, beans['test.DemoDynamic']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.CompositeJsonTable1 + ---@field public id integer + ---@field public x string + local class = SimpleClass() + class._id = 1566207894 + class._type_ = 'test.CompositeJsonTable1' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x = readString(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.CompositeJsonTable2 + ---@field public id integer + ---@field public y integer + local class = SimpleClass() + class._id = 1566207895 + class._type_ = 'test.CompositeJsonTable2' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + y = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.CompositeJsonTable3 + ---@field public a integer + ---@field public b integer + local class = SimpleClass() + class._id = 1566207896 + class._type_ = 'test.CompositeJsonTable3' + local id2name = { } + class._deserialize = function(bs) + local o = { + a = readInt(bs), + b = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.ExcelFromJsonMultiRow + ---@field public id integer + ---@field public x integer + ---@field public items test.TestRow[] + local class = SimpleClass() + class._id = 715335694 + class._type_ = 'test.ExcelFromJsonMultiRow' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x = readInt(bs), + items = readList(bs, beans['test.TestRow']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestRow + ---@field public x integer + ---@field public y boolean + ---@field public z string + ---@field public a test.Test3 + ---@field public b integer[] + local class = SimpleClass() + class._id = -543222164 + class._type_ = 'test.TestRow' + local id2name = { } + class._deserialize = function(bs) + local o = { + x = readInt(bs), + y = readBool(bs), + z = readString(bs), + a = beans['test.Test3']._deserialize(bs), + b = readList(bs, readInt), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.Test3 + ---@field public x integer + ---@field public y integer + local class = SimpleClass() + class._id = 638540133 + class._type_ = 'test.Test3' + local id2name = { } + class._deserialize = function(bs) + local o = { + x = readInt(bs), + y = readInt(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestScriptableObject + ---@field public id integer + ---@field public desc string + ---@field public rate number + ---@field public num integer + ---@field public v2 vec2 + ---@field public v3 vec3 + ---@field public v4 vec4 + local class = SimpleClass() + class._id = -1896814350 + class._type_ = 'test.TestScriptableObject' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + desc = readString(bs), + rate = readFloat(bs), + num = readInt(bs), + v2 = beans['vec2']._deserialize(bs), + v3 = beans['vec3']._deserialize(bs), + v4 = beans['vec4']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.TestMapper + ---@field public id integer + ---@field public audio_type integer + ---@field public v2 vec2 + local class = SimpleClass() + class._id = 149110895 + class._type_ = 'test.TestMapper' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + audio_type = readInt(bs), + v2 = beans['vec2']._deserialize(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class DefineFromExcel2 + ---@field public id integer + ---@field public x1 boolean + ---@field public x5 integer + ---@field public x6 number + ---@field public x8 integer + ---@field public x10 string + ---@field public x13 integer + ---@field public x13_2 integer + ---@field public x14 test.DemoDynamic + ---@field public x15 test.Shape + ---@field public v2 vec2 + ---@field public t1 integer + ---@field public k1 integer[] + ---@field public k2 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k10 vec3[] + ---@field public k11 vec4[] + local class = SimpleClass() + class._id = 482045152 + class._type_ = 'DefineFromExcel2' + local id2name = { } + class._deserialize = function(bs) + local o = { + id = readInt(bs), + x1 = readBool(bs), + x5 = readLong(bs), + x6 = readFloat(bs), + x8 = readInt(bs), + x10 = readString(bs), + x13 = readInt(bs), + x13_2 = readInt(bs), + x14 = beans['test.DemoDynamic']._deserialize(bs), + x15 = beans['test.Shape']._deserialize(bs), + v2 = beans['vec2']._deserialize(bs), + t1 = readLong(bs), + k1 = readArray(bs, readInt), + k2 = readArray(bs, readInt), + k8 = readMap(bs, readInt, readInt), + k9 = readList(bs, beans['test.DemoE2']._deserialize), + k10 = readList(bs, beans['vec3']._deserialize), + k11 = readList(bs, beans['vec4']._deserialize), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test.Shape + local class = SimpleClass() + class._id = 637688613 + class._type_ = 'test.Shape' + local id2name = { [2131829196] = 'test.Circle', [694982337] = 'test2.Rectangle', } + class._deserialize = function(bs) + local id = readInt(bs) + return beans[id2name[id]]._deserialize(bs) + end + beans[class._type_] = class + end + do + ---@class test.Circle :Shape + ---@field public radius number + local class = SimpleClass() + class._id = 2131829196 + class._type_ = 'test.Circle' + local id2name = { } + class._deserialize = function(bs) + local o = { + radius = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + do + ---@class test2.Rectangle :test.Shape + ---@field public width number + ---@field public height number + local class = SimpleClass() + class._id = 694982337 + class._type_ = 'test2.Rectangle' + local id2name = { } + class._deserialize = function(bs) + local o = { + width = readFloat(bs), + height = readFloat(bs), + } + setmetatable(o, class) + return o + end + beans[class._type_] = class + end + + + return { enums = enums, beans = beans, tables = tables } + end + +return { InitTypes = InitTypes } + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen/schema.lua.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen/schema.lua.meta new file mode 100644 index 00000000..686c085d --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Gen/schema.lua.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4f95d32285b9d1a40910bb4cc1166b31 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Main.lua b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Main.lua new file mode 100644 index 00000000..69a54f93 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Main.lua @@ -0,0 +1,159 @@ +local require = require +local print = print + +local C = {} + +local require = require +local assert = assert +local pairs = pairs +local print = print +local tinsert = table.insert +local tconcat = table.concat + +local function ttostring2(x, result) + local t = type(x) + if t == "table" then + tinsert(result, "{") + for k, v in pairs(x) do + tinsert(result, tostring(k)) + tinsert(result, "=") + ttostring2(v, result) + tinsert(result, ",") + end + + tinsert(result, "}") + elseif t == "string" then + tinsert(result, x) + else + tinsert(result, tostring(x)) + end +end + +function ttostring(t) + local out = {} + ttostring2(t, out) + return tconcat(out) +end + + +ByteBuf = CS.Bright.Serialization.ByteBuf + +local byteBufIns = ByteBuf() + +local byteBufFuns = { + readBool = byteBufIns.ReadBool, + writeBool = byteBufIns.WriteBool, + readByte = byteBufIns.ReadByte, + writeByte = byteBufIns.WriteByte, + readShort = byteBufIns.ReadShort, + writeShort = byteBufIns.WriteShort, + readFshort = byteBufIns.ReadFshort, + writeInt = byteBufIns.WriteInt, + readInt = byteBufIns.ReadInt, + writeFint = byteBufIns.WriteFint, + readFint = byteBufIns.ReadFint, + readLong = byteBufIns.ReadLong, + writeLong = byteBufIns.WriteLong, + readFlong = byteBufIns.ReadFlong, + writeFlong = byteBufIns.WriteFlong, + readFloat = byteBufIns.ReadFloat, + writeFloat = byteBufIns.WriteFloat, + readDouble = byteBufIns.ReadDouble, + writeDouble = byteBufIns.WriteDouble, + readSize = byteBufIns.ReadSize, + writeSize = byteBufIns.WriteSize, + readString = byteBufIns.ReadString, + writeString = byteBufIns.WriteString, + readBytes = byteBufIns.ReadBytes, + writeBytes = byteBufIns.WriteBytes +} + +function read_file_all_bytes(fileName) + local file = io.open(fileName, "rb") + local bytes = file:read("*a") + file:close() + return bytes +end + + +local enumDefs = {} +local constDefs = {} + +local tables = {} + +---@param configPath string +---@param configFileloader function +function Load(typeDefs, configFileloader) + + local configPath = CS.UnityEngine.Application.dataPath .. "/../../GenerateDatas/bytes/" + + enumDefs = typeDefs.enums + constDefs = typeDefs.consts + + local buf = ByteBuf() + local tableDefs = typeDefs.tables + local beanDefs = typeDefs.beans + for _, t in pairs(tableDefs) do + --print("load table:", ttostring(t)) + buf:Clear() + buf:WriteBytesWithoutSize(read_file_all_bytes(configPath .. "/" .. t.file .. ".bytes")) + + local valueType = beanDefs[t.value_type] + local mode = t.mode + + local tableDatas + if mode == "map" then + tableDatas = {} + local index = t.index + for i = 1, buf:ReadSize() do + local v = valueType._deserialize(buf) + tableDatas[v[index]] = v + end + elseif mode == "list" then + tableDatas = {} + for i = 1, buf:ReadSize() do + local v = valueType._deserialize(buf) + tinsert(tableDatas, v) + end + else + assert(buf:ReadSize() == 1) + tableDatas = valueType._deserialize(buf) + end + print(ttostring(tableDatas)) + tables[t.name] = tableDatas + end +end + +---@param typeName string +---@param key string +function GetEnum(typeName, key) + local def = enumDefs[typeName] + return key and def[key] or def +end + +---@param typeName string +---@param field string +function GetConst(typeName, field) + local def = constDefs[typeName] + return field and def[field] or constDefs +end + +function GetData(tableName, key1, key2) + local tableDatas = tables[tableName] + if not key1 then + return tableDatas + end + local value1 = tableDatas[key1] + return key2 and value1[key2] or value1 +end + + + +function C.Start() + local cfgTypeDefs = require("Gen.schema").InitTypes(byteBufFuns) + Load(cfgTypeDefs) +end + + + +return C diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Main.lua.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Main.lua.meta new file mode 100644 index 00000000..e6943fd7 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Lua/Main.lua.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 915f9500a82da6b43b71fa5a64864ee0 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/LubanLib.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/LubanLib.meta new file mode 100644 index 00000000..ee74981d --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/LubanLib.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4f07c3f9ed91f3a459ca13dd539041bf +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Main.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Main.cs new file mode 100644 index 00000000..7b388b66 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Main.cs @@ -0,0 +1,30 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using XLua; + +public class Main : MonoBehaviour +{ + // Start is called before the first frame update + private LuaEnv _lua; + + public void Start() + { + _lua = new LuaEnv(); + + _lua.AddLoader(this.Loader); + + _lua.DoString("(require 'Main').Start()"); + + } + + public void Stop() + { + _lua.Dispose(); + } + + private byte[] Loader(ref string luaModule) + { + return System.IO.File.ReadAllBytes(Application.dataPath + "/Lua/" + luaModule.Replace('.', '/') + ".lua"); + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Main.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Main.cs.meta new file mode 100644 index 00000000..a4bb60a6 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Main.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 77738bf2a0ca2654fa12b70763161bde +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins.meta new file mode 100644 index 00000000..f7db2097 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b1a66f79cb34d674caa0c0b0aa2c2c1b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64.meta new file mode 100644 index 00000000..623b0864 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4fb2cdac65a3be741a7cd71916dea60d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/libxlua.so b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/libxlua.so new file mode 100644 index 00000000..dec3ab0d Binary files /dev/null and b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/libxlua.so differ diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/libxlua.so.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/libxlua.so.meta new file mode 100644 index 00000000..2da40513 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/libxlua.so.meta @@ -0,0 +1,52 @@ +fileFormatVersion: 2 +guid: 419a5f5be2476ee43afad369ced8a5a7 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + CPU: x86_64 + DefaultValueInitialized: true + - first: + Standalone: Linux64 + second: + enabled: 1 + settings: + CPU: x86_64 + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: x86_64 + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/xlua.dll b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/xlua.dll new file mode 100644 index 00000000..1b2e9a18 Binary files /dev/null and b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/xlua.dll differ diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/xlua.dll.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/xlua.dll.meta new file mode 100644 index 00000000..d0960b69 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Plugins/x86_64/xlua.dll.meta @@ -0,0 +1,52 @@ +fileFormatVersion: 2 +guid: 977d8e48859dc19479dc2b5af538915c +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + CPU: x86_64 + DefaultValueInitialized: true + - first: + Standalone: Linux64 + second: + enabled: 1 + settings: + CPU: x86_64 + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: x86_64 + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes.meta new file mode 100644 index 00000000..a89cb3fd --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 757bd977170654145961e692d39e36ce +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleScene.unity b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleScene.unity new file mode 100644 index 00000000..6cbcfa57 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleScene.unity @@ -0,0 +1,314 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 705507994} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 4890085278179872738, guid: 12ee1d3a89573b84e82c16596315f50a, + type: 2} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &705507993 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 705507995} + - component: {fileID: 705507994} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &705507994 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 705507993} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 1 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &705507995 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 705507993} + m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!1 &963194225 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 963194228} + - component: {fileID: 963194227} + - component: {fileID: 963194226} + - component: {fileID: 963194229} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &963194226 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 963194225} + m_Enabled: 1 +--- !u!20 &963194227 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 963194225} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &963194228 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 963194225} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &963194229 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 963194225} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 77738bf2a0ca2654fa12b70763161bde, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleScene.unity.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleScene.unity.meta new file mode 100644 index 00000000..36cdf26b --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: cf981549dcf6a8a48880a5daa16a65c6 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleSceneSettings.lighting b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleSceneSettings.lighting new file mode 100644 index 00000000..d9e85916 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleSceneSettings.lighting @@ -0,0 +1,63 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!850595691 &4890085278179872738 +LightingSettings: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SampleSceneSettings + serializedVersion: 2 + m_GIWorkflowMode: 1 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_RealtimeEnvironmentLighting: 1 + m_BounceScale: 1 + m_AlbedoBoost: 1 + m_IndirectOutputScale: 1 + m_UsingShadowmask: 1 + m_BakeBackend: 1 + m_LightmapMaxSize: 1024 + m_BakeResolution: 40 + m_Padding: 2 + m_TextureCompression: 1 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAO: 0 + m_MixedBakeMode: 2 + m_LightmapsBakeMode: 1 + m_FilterMode: 1 + m_LightmapParameters: {fileID: 0} + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_RealtimeResolution: 2 + m_ForceWhiteAlbedo: 0 + m_ForceUpdates: 0 + m_FinalGather: 0 + m_FinalGatherRayCount: 256 + m_FinalGatherFiltering: 1 + m_PVRCulling: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_LightProbeSampleCountMultiplier: 4 + m_PVRBounces: 2 + m_PVRRussianRouletteStartBounce: 2 + m_PVREnvironmentMIS: 0 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleSceneSettings.lighting.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleSceneSettings.lighting.meta new file mode 100644 index 00000000..1e219574 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/Scenes/SampleSceneSettings.lighting.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 116b1a8a8ec55f34e8ef718f5a2a30e4 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua.meta new file mode 100644 index 00000000..91fa1697 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e26ef49f16c28ae4c88b32a323da048e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/CHANGELOG.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/CHANGELOG.txt new file mode 100644 index 00000000..5956f879 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/CHANGELOG.txt @@ -0,0 +1,487 @@ +v2.1.15 2020年6月24日 +新增特性 +1、生成代码过滤器 +2、优化反射查找delegate匹配bridge的性能 +3、unity 2019.2以上版本手机版本注入不了的问题 + +变更 + +bug修复 +1、反射查找同名delegate桥接在不生成代码的时候表现不一致 +2、嵌套struct标注为PackAsTable时生成代码报错 +3、反射wrap代码加入栈空间检查 +4、如果枚举定义了很多个值(几千个),会触发unity在android下的一个bug:函数体很大而且有很多分支,执行该函数会crash +5、chunkname和脚本文件名不一致的问题 +6、最小生成模式枚举生成代码报错 +7、当采用反射方式注册枚举值时,如果一个枚举有多个相同的值,比如A,B都是1,那么在lua里头访问B将会为空 +8、sbyte[]在.net 4下push到lua变成字符串的问题 +9、泛型导致生成代码失败的问题 +10、非Assembly-CSharp程序集注入时,out参数处理有误 +11、内嵌类通过xlua.private_accessible设置私有访问可能失败的问题 +12、cecil插入指令后,并未自动更新offset,某种情况下会导致计算偏移量错误 + + +v2.1.14 2019年2月27日 +新增特性 +1、新增nintento switch的支持 +2、unity 2018兼容 +3、android arm64支持 +4、原生库的visual studio 2017编译支持 +5、增加“XLua/Generate Minimize Code”菜单 +6、防止有的工程有非法的dll导致生成代码中断 +7、更高效的lua_pushstring(需要通过NATIVE_LUA_PUSHSTRING开启) + +变更 +1、window库默认编译器改为visual studio 2017 + +bug修复 +1、修正枚举类型如果只加GCOptimize不加LuaCallCSharp会crash的问题 +2、示例配置加入对Edtitor类的过滤 +3、UWP兼容修复 +4、接口继承引入的同签名方法实现 +5、未生成代码,extension方法行为不一致 +6、修复Nullable类型参数,如果最后一个参数是nil,会导致其他参数全是nil的问题 + + +v2.1.13 2018年12月5日 +新增特性 +1、新增AdaptByDelegate注入模式; +2、新增xlua.get_generic_method,用于调用泛型函数; +3、支持类似CS.System.Collections.Generic.List(CS.System.Int32)的泛型写法; +4、注入新选项:忽略编译器自动生成代码,以及不生成base代理; +5、针对lua编程以及热补丁,均添加直接可用的自动化配置样例; +6、新增luajit的gc64支持; +7、加入兼容字节码(一份字节码支持32位和64位系统)的支持; +8、内置新lua内存泄漏检测工具; +9、delegate桥接动态实例化:delegate是4个参数以内,参数均引用类型,无返回值或者返回引用类型,不用配置CSharpCallLua也能调用lua函数; +10、提供util.print_func_ref_by_csharp函数,用于查看当前被C#引用的lua函数; +11、支持无CS全局变量的工作方式; + + +变更 +1、虚拟机升级:lua5.3.4 -> lua5.3.5,luajit2.1b2 -> luajit2.1b3; +2、delegate bridge代码段占用优化; +3、改为PostProcessBuild事件检查是否生成代码; +4、适配xcode 10:osx平台不再支持32bit版本构建; +5、名字空间、类名拼写错误时,对静态成员的设置会报错; +6、防止CS全局table被删除导致xlua工作异常; +7、Windows下构建lib,若使用vs 2015参数执行cmake失败,则继续尝试使用vs 2017; +8、编辑器下不生成代码时,也检查Blacklist,维持和运行时一致; + +bug修复 +1、泛型的数组生成代码报错; +2、防止对TypeExtensions配置了LuaCallCSharp后,lua里头IsValueType之类的判断永真; +3、生成代码过滤掉含指针的函数和字段; +4、适应索引器属性名不是Item的情况; +5、解决attribute初始化异常会导致生成代码,注入终止的问题; +6、精简模式下空Enum生成代码错误; +7、通过把初始化函数分割成小函数,规避unity在android下执行大函数crash的bug; +8、Assignable处理obj为null情况; +9、内嵌类不Obsolete,但外层类Obsolete的生成代码报错 +10、解决inline注入方式下,如果lua逻辑跑异常,看不到异常信息的问题; +11、修复xlua.private_accessible访问后,同名public的方法无法访问的Bug; +12、[Out]修饰的参数不应该生成out关键字; +13、通过反射查找合适的适配器时,有可能访问到非适配器函数; +14、精简模式导出代码无get_Item、set_Item; +15、IntKey方式下不自动xlua.private_accessible的问题; + + +v2.1.12 2018年7月9日 +新增特性 +1、Nullable的支持 +2、支持Assembly-CSharp之外的dll注入(beta) +3、执行xlua.hotfix,会自动让该类private能访问 +4、xlua.private_accessible优化:1、会把基类的也设置能私有访问;2、延迟到第一次访问类才私有化 +5、新增xlua.util.state,可为一个c#对象新增状态 +6、this[string field]或者this[object field]操作符重载新增get_Item和set_Item调用 +7、正在编译时注入打印error信息 +8、interface配置到CSharpCallLua时的事件跟索引映射的自动实现 +9、unity5.5以上去掉WARNING: The runtime version supported by this application is unavailable打印 + +变更 +1、去除Stateful方式(因为xlua.util.state已经可以达成类似的效果) +2、废弃掉内嵌模式模式 + +bug修复 +1、生成代码局部变量加下划线,防止符号冲突 +2、如果类没放到Hotfix列表,不生成base调用代理 +3、代码重构,可读性优化 +4、解决带params byte[]可能会导致生成代码编译错误的问题 +5、解决类含有private event的时候,无法xlua.private_accessible的问题 +6、构造函数注入,如果branch外紧跟Ret指令,注入逻辑应该在branch以及Ret之间 +7、构造函数注入,如果注入指令后导致跳转范围大于一个字节,应修改为长跳转 +8、解决一个delegate如果不是某个类的内嵌类型时,CS.namespace.classname为空的问题 +9、防止Editor下的Util类名字冲突 +10、泛型override有异常,先过滤掉 +11、解决空enum导致生成代码编译错误 +12、解决uwp平台下il2cpp方式打包无法访问任何类的问题 +13、hotfix一个私有类型的params参数的函数,导致生成代码编译错误、注入失败的问题 +14、如果两个LuaBase指向的是同一个Lua对象,GetHashCode应该返回的是同一个值 +15、[Out]标记参数生成代码编译失败 +16、交错数组+多维数组的复合,生成代码报错的问题 + +v2.1.11 2018年3月20日 +新增特性 +1、xlua.private_accessible支持私有内嵌类型 +2、添加xlua.release,用于主动解除lua对c#某对象的引用 +3、支持内嵌委托的显示构造 +4、需要传class的地方(比如xlua.private_accessible),支持传C#的Type对象 +5、支持用pairs遍历IEnumerable对象 +6、热补丁场景下,支持override函数调用被override函数(对应c# base关键字) + +变更 +1、简化property的反射访问,简化后有更好的兼容性; + +bug修复 +1、ios 11兼容(去除system调用) +2、实现了interface的struct不走gc优化代码的问题 +3、emit特性的.net兼容性 +4、emit对于ulong的const值处理不当 +5、interface桥接代码,interface继承时,父interface和子interface有同名不同类型属性时的生成代码报错 +6、多虚拟机下,不断创建和销毁协程时,可能出现协程指针重复 +7、当参数为泛型类型时,如ICollectio时,不应该生成代码 + +v2.1.10 2017年9月18日 +新增特性 +1、新增DoNotGen配置,支持一个类型部分函数用反射,部分用生成; +2、新增wrapper的emit; +3、webgl支持; +4、lua实现interface支持interface继承; +5、window下支持android编译(由xdestiny110提供); +6、打包时,如果没执行过“Generate Code”将报错; + +变更 +1、 async_to_sync的改为resume错误时报错; +2、il2cpp下,暂时去掉泛型的反射调用; +3、升级到lua5.3.4并合入2017-9-1为止所有官方patch; + +bug修复 +1、C#仅声明delegate和MulticastDelegate,通过反射创建lua function映射时crash; +2、解决一些古老版本window(比如xp)的dll兼容问题; + +v2.1.9 2017年8月10日 +新增特性 +1、新增最小生成模式(通过GEN_CODE_MINIMIZE切换),可以节省50%的text段空间; +2、新增xlua.util.createdelegate,支持在lua直接用C#函数创建delegate而不需要通过lua适配; +3、xlua.private_accessible支持public int Prop { get; private set; } +4、新增 xlua.getmetatable、xlua.setmetatable、xlua.setclass、xlua.genaccessor,用以支持lua使用C#类型直接在lua侧完成; +5、反射下扩展方法的支持; +6、lua53版本支持位操作符重载:C#侧的位操作符重载对应到lua的位操作符重载;enum全部加上&和|位操作符; + +工程优化 +1、加入travis持续集成; + +变更 +1、LuaCallCSharp自动去除匿名类型; +2、THREAD_SAFT改为THREAD_SAFE; +3、GenFlag.GCOptimize标记为过时; +4、删除过时的GenConfig配置方式; + +bug修复 +1、window phone下一些系统api是禁用的,源码中去掉; +2、泛型约束是struct的时候,生成代码失败; +3、unity2017 .net 4.6,枚举生成代码报错; + +v2.1.8 2017年6月27日 +新增特性 +1、Hotfix标签添加几个订制参数:ValueTypeBoxing、IgnoreProperty、IgnoreNotPublic、Inline、IntKey +2、Hotfix代码注入优化,减少text段占用; +3、Hotfix配置支持放Editor目录,可以减少text段占用; +4、支持以指定类型传递object参数; +5、反射调用Obsolete方法在Editor下打印warning; + +变更 + +bug修复 +1、pinvoke独立设置的In,Out属性可能导致生成代码失败; +2、如果业务在全局名字空间有和xLua名字空间的同名类,生成代码编译失败; + +v2.1.7 2017年5月17日 +新增特性 +1、支持发布UWP(含HoloLens,Xbox one,Win10 Mobile、Win10 PC)应用; +2、支持对lua源代码ras+sha1签名; +3、如果没安装Tools提示“please install the Tools”; +4、linxu版本的支持; +5、支持bitcode打包; +6、对所有struct新增无参数构造函数; +7、delegate的参数名改为p0到pn,防止hotfix时业务代码变量和生成代码冲突; +8、支持对成员名为C#关键字的情况; +9、新增util.loadpackage,和require类似,通过searcher加载文件,不同的是,它不执行,而且也不会cache到package.loaded; +10、优化模版引擎大文件的生成性能; +11、新增不需要生成代码的注入方式; +12、支持构造函数参数带ref和out修饰符; +13、构造函数也支持黑名单排除; + +变更 +1、this[object field]操作符重载; +2、反射的数据转换规则改成和生成代码一致; +3、忽略掉匿名类及匿名函数的注入; + +bug修复 +1、规避Unity的bug:List,CustomType是当前执行程序集的类型,这在.Net是不需要指明程序集就可以通过Type.GetType得到,但Unity下不行。 +2、解决反射下,可变参数不提供时,传null的问题; +3、继承了另外一个程序集的类型,使用了protected类型会导致注入失败; +4、luajit去掉dlopen和dlsym的调用; +5、解决通用版本的生成代码工具找不到模版的问题; +6、修复通用版本反射导入泛化类型的问题; +7、反射调用含delegate参数的的api,会因为缓存而导致调用LuaEnv.Dispose失败; +8、兼容老版本的C编译器,声明要放开头; +9、生成代码对hotfix的检测算法和注入工具不一致导致的注入失败; +10、注入的nested类型是public,但其的外层类型非public,生成代码报错; +11、析构函数只判断名字可能出现误判; +12、构造函数是非public的,可能会导致找不到适配delegate而注入失败; +13、修正Extension method会在所有子类都生成代码的bug(2.1.6泛化特性引入); +14、构造函数重载,只有一个能hotfix成功; +15、规避一个可能是il2cpp的bug(unity5.4):字符串参数默认值是"",ios下在反射的default value也是Reflection.Missing; +16、将一个table传到List<>,取了最后一个参数,而不是那个table的长度; +17、ldarg指令在这种场景下il2cpp转换时会出现异常:1、采用模版注入;2、从4到255间有一个输出参数;改为兼容性更好的ldarg.s; +18、解决配置了System.Delegate到CSCallLua,执行生成代码会编辑器会crash的问题; +19、扩展函数可能和原来的函数同名,反射实现并未考虑到这种情况; +20、通用版本的可变参数delegate调用异常; +21、unity4规避lua53冲突的方式改为返回null更合适,异常方式会导致IsNull无法正常工作; +22、lua_tostring解码失败改为UTF8解码; + +v2.1.6 2017年3月1日 +新增特性 +1、带约束的泛型支持(by forsakenyang); +2、非Unity的.net环境支持; +3、代码注入支持小工具方式,该方式不用拷贝cecil库,可以解决拷错cecil库版本或者和Unity,VS插件冲突的问题; +4、Hotfix配置支持字段和属性 +5、更方便的Unity协程hotfix +6、在hotfix触发事件; +7、LuaTable添加ForEach方法以及Length属性; +8、cmake生成项目优化:保留源文件目录结构; +9、对已经Dispose的LuaEnv的访问做保护;Dispose时检查callback是否已经都释放,没释放的话报错; +10、支持释放Hotfix回调; + +变更 +1、构造函数改为执行原有逻辑后调用lua; +2、this[string field]操作符重载会影响到继承调用,去掉该特性的支持; +3、编辑器下的代码注入改为手动方式; + +bug修复 +1、防止定义了同时定义get_xx方法以及xx属性的生成代码的重名。 +2、struct注入代码无效; +3、Utils加名字空间,防止和业务冲突; +4、返回定长多维数组的delegate,生成代码可能会冲突; +5、interface,以及编辑器下不生成代码情况下,对可变参数的展开; +6、il2cpp下,如果不生成代码,会报ManifestModule不支持; +7、规避Unity4的bug:访问一个已经被Distroy的UnityEngine.Object,编辑器下会崩溃,这个问题在Unity5,或者luajit版本都不会出现; +8、修改上个版本引入的问题:xlua_setglobal会漏一个值在栈上,这会导致一些32位应用不稳定; +9、当delegate参数只有ref和out的区别的话,报重载冲突; + +v2.1.5 2017年1月13日 + +新增特性 +1、全平台热补丁; +2、新增线程安全模式,可通过THREAD_SAFT宏打开; +3、新增更简便的配置方式,具体参见XLua\Doc下《XLua的配置.doc》; +4、多虚拟机实例时的自动Dispose; +5、内存优化:减少匿名闭包到delegate映射的内存占用;减少LuaFunction以及LuaTable内存占用;减少lua table映射C#interface的gc; +6、生成代码速度优化; +7、支持直接在lua侧clone C#结构体; +8、LuaFunction新增无gc调用api; + +变更 +1、delegate必须都加[CSharpCallLua]才支持C#到lua的回调(以前参数和返回值都相同的delegate只要其中一个加了就可以); +2、加回string/number到枚举的自动转换; + +bug修复 +1、枚举不生成代码时,第一次使用会产生两个不同的userdata; +2、数组和System.Type的相互引用导致System.Type生成代码无法加载; +3、更安全的异常处理,封装lua_setglobal,lua_getglobal的异常,C#回调保证所有C#异常都catch并转换到成lua error。 + + +v2.1.4 2016年11月29日 +新增特性 +1、加了ReflectionUse会自动生成到link.xml,可以防止il2cpp下因stripping导致的反射不可用; +2、开放生成引擎,可二次开发自己生成插件,生成所需的代码或配置; +3、GetInPath和SetInPath无C# gc优化; +4、一个lua table自动转换为带GCOptimize标签的复杂类型以及该复杂类型的一维数组不使用反射,如果这复杂类型是纯值类型,无c# gc; + +变更 +1、基于一致性以及性能的考虑,不支持数字和字符串到枚举的静默转换,须主动调用起类下的__CastFrom; +2、名字空间从LuaInterface改为XLua; +3、LuaTable的几个可能导致gc的api标注为Obsolete; +4、在不指明返回类型的情况下,如果一个number是整数会优先转换成整数; + +bug修复 +1、含能隐式转换int,long,decimal的类型传到lua变成decimal; +2、反射的重载判断,如果可变参数的位置上是一个不匹配的参数,也会判断为匹配成功; +3、可变参数+重载的话,可变部分不传会报无效参数; +4、加了LuaCallCSharp的Extension method,在Editor下不生成代码不可用; + +v2.1.3 2016年11月09日 +新增特性 +1、LuaTable新增Get和Set接口,table操作支持值类型无gc; +2、支持decimal,不丢失精度而且传递到lua无gc; +3、增加LuaEnv.LoadString接口,用于指定返回的delegate类型; +4、例子刷新:新增Helloworld,无GC调用,Lua面向对象,协程例子; +5、enum优化:传递到lua无gc,从int或者string到枚举转换无gc; +6、event的+/-优化:性能提升一倍,而且无gc; +7、生成代码简化; + +变更 +1、uint在lua53映射到lua_Integer; +2、StreamingAssets加载改为优先级最低; + +bug修复 +1、生成代码下,如果LuaTable或者LuaFunction参数为null会抛异常; +2、lua5.3下,浮点到枚举的静默转换失败; +3、反射下struct类型参数带默认值抛异常; +4、lua53下Length返回浮点; + +v2.1.2 2016年10月08日 +新增特性 +1、支持lua5.3,进而支持苹果bitcode,原生64位整数,位运算,utf8等特性; +2、CMake编译,更方便加入第三方插件 +3、数组性能优化,包括访问性能以及gc +4、C#调用lua函数减少一次lua gc; +5、优化启动时间; +6、减少类型加载的gc; +7、优化ObjectPool的内存占用; +8、优化小字符串传入lua的gc; +9、LuaTable添加Cast接口,用于LuaTable到其它类型的转换,比如interface; +10、LuaFunction添加Cast接口,用于LuaFunction到delegate的转换; + +变更 +1、lua内部只有带符号的64整数类型,并增加无符号数库 +2、如果不想对Extension Method生成代码,又希望在反射下用,需要添加ReflectionUse; + +bug修复 +1、对ObjectPool已经Destroy的UnityEngine.Object的引用自动解除功能的内存泄漏问题; +2、规避某些版本(已知是5.3.3)的Unity的bug导致的内存泄漏问题; +3、LuaTable或者LuaFunction做返回值的delegate生成代码可能报错; + +v2.1.1 2016年08月29日 +新增特性 +1、支持编辑器下不用生成代码能运行; +2、新增IntPtr的支持 +3、增加对ObjectPool已经Destroy的UnityEngine.Object的引用自动解除; +4、在LuaEnv添加对lua_gc一些封装; + +bug修复 +1、生成代码传送一个LuaFunction、LuaTable到lua和反射版本不一致,生成代码传送过去是一个C#对象,而反射是Lua函数、table对象,反射的处理更合适; +2、修复同名的静态以及成员方法冲突的问题; +3、修复对interface生成CSharpCallLua代码时,interface含indexer时的报错; +4、修复Editor在运行后会new一个xlua实例的bug; +5、修复通过生成代码调用同时含可变参数和默认值的函数,如果不传参数,将会出错的bug; +6、修复调试时,找不到socket库的bug; + + +变更 +1、反射不做重载方法顺序调整,顺序改为固定且生成代码保持一致; +2、i64加上fade_id,参数传递时更安全; +3、重新加入tdr的from_file的支持; + +v2.1.0 2016年08月08日 +新增特性 +1、满足条件struct传递到lua无gc,struct需要满足什么条件才能被优化呢? +a. struct允许嵌套其它struct,但它以及它嵌套的struct只能包含这几种基本类型:byte、sbyte、short、ushort、int、uint、long、ulong、float、double; +b. struct本身以及使用到该struct的地方需要加LuaCallCSharp,并且加了GCOptimize设置; +2、全新实现的反射机制,更容易和生成代码配合使用 +a. 支持extension methods,Enum.__CastFrom; +b. ios下支持反射使用event; +c. 对类型映射、可变参数调用调整为和生成代码一致; +d. 性能更好,gc更少; +3、生成代码菜单简化,并增加“Generate Minimum”选项; +4、支持生成代码配置文件放Editor目录; + +变更 +1、luajit统一升级成2.1.0b2; +2、luasocket库改为按需加载; +3、重载的string,byte[]参数检查允许为nil; +4、子类访问不触发父类加载; +5、struct的ref参数的修改会修改lua测该参数的值; +6、生成代码加载改为静态(原来是反射); +7、菜单改为更简洁; +8、tdr改为默认不加载; +9、StreamingAssets加载lua改为废弃特性; + +bug修复 +1、参数或者返回值是泛型类的数组,或者是二维数组,生成代码报编译错误; +2、抽象类生成代码报编译错误; +3、消除Clear生成代码的warning; +4、profiler、i64库不支持多实例; + +v2.0.5 2016年05月18日 +新增特性 +1、util.async_to_sync,可以更好的利用lua的协程实现同步编程、异步执行;或者异步等待www等; +2、生成代码的规范度调整,消除一些工具的告警; +bug修复 +1、解决在lua gc移除weak table和调用__gc的时间窗内push同一对象,会生成指向同一C#对象的不同userdata的问题; +2、上版本的的lua内存工具并未打包; +3、修正嵌套类型不能生成代码的问题; + +v2.0.4 2016年05月04日 +新增特性 +1、新增函数调用时长报告功能; +2、新增lua内存泄漏定位工具; +3、lua测加入对64位无符号数的支持; +变更 +1、支持多种delegate绑定到一个clousre。调整之前一个clousre只能对应一种delegate; +bug修复 +1、tdr处理长度为1的数组的错误(本来解包应该是{[1] = {a = 1}}的,却是{{a=1}}); +2、tdr数值处理错误(int的-1会解成一个很大的正数) + +v2.0.3 2016年04月13日 +新功能 +1、添加“Advanced Gen”功能,用户可以自定义生成代码的范围; +2、支持对库生成Static pusher; +变更 +1、LuaTable以及InterfaceBirdage改为触发metatable; +2、Extension Methods不自动加到被扩展类,需要加入生成列表; +3、移除特殊ValueType优化; +bug修复 +1、Extension Methods为私有时,生成代码语法错误; +2、重载函数含ulong时,生成代码语法错误; +3、反射调用时的默认值处理错误; +4、C#向lua传中文字符的长度处理错误; + +v2.0.2 2016年04月06日 +变更 +1、库的生成代码配置支持多份,方便项目的模块化; +2、enum的生成代码合并到一个文件里头; +3、优化异常处理; +4、发布包把库和教程、例子分离,更干净; +5、小bug修改; + +升级指引 +由于文件有点变动,直接覆盖原有lib会报错,需要: +1、删除原来的XLua目录; +2、解压xlua_v2.0.2.zip到Assets下; +3、重新执行代码生成; + +v2.0.1 2016年03月24日 +1、支持C# 的extension methods; +2、lua调试方面的支持; +3、android下require一个不存在的lua文件可能成功的bug; +4、TDR 4 Lua库的更新; +5、多机型的兼容性测试; + +v2.0.0 2016年03月08日 +1、性能优化,性能对比报告请看主页; +2、加入官方lua版本的tdr; +3、支持64位整数; +4、修正lua中对C#异常pcall引发的不稳定; +5、易用性的优化; +6、其它一些bug的修改。 + +1.0.2 2015年12月09日 +1、解决新版本(已知5.2版本)下,streamAssetsPath不允许在构造函数访问导致的bug; +2、新增windows x64版本的支持; +3、对web版本才用到的代码加入条件编译,减少对手机版发布包的影响; +4、生成代码文件名去掉“+”号; +5、删除4.6的生成代码,以免在新版本报引用过时api的错; + +v1.0.1 2015年11月30日 +1、支持pcall捕捉C#异常; +2、新增cast方法,支持这种场景:实现类是internal声明,只提供interface; +3、解决interface下如果有event,生成代码编译报错的bug; +4、解决interface下有Obsolete的方法,字段,生成代码编译报错的bug; +5、解决含private的默认geter/setter生成代码编译报错的bug; +6、修正类在全局空间下生成代码不可用的bug; +7、修正bridge代码返回值处理错误。 + +v1.0.0 2015年03月30日 +第一个版本 \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/CHANGELOG.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/CHANGELOG.txt.meta new file mode 100644 index 00000000..14028423 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/CHANGELOG.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: fb30792e31e15fc45b797304aebbd657 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor.meta new file mode 100644 index 00000000..125d02cf --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3e1fddbe23619b24a8573f801b9b9ad9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor/ExampleConfig.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor/ExampleConfig.cs new file mode 100644 index 00000000..a423952a --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor/ExampleConfig.cs @@ -0,0 +1,307 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +using System.Collections.Generic; +using System; +using XLua; +using System.Reflection; +using System.Linq; + +//配置的详细介绍请看Doc下《XLua的配置.doc》 +public static class ExampleConfig +{ + /***************如果你全lua编程,可以参考这份自动化配置***************/ + //--------------begin 纯lua编程配置参考---------------------------- + //static List exclude = new List { + // "HideInInspector", "ExecuteInEditMode", + // "AddComponentMenu", "ContextMenu", + // "RequireComponent", "DisallowMultipleComponent", + // "SerializeField", "AssemblyIsEditorAssembly", + // "Attribute", "Types", + // "UnitySurrogateSelector", "TrackedReference", + // "TypeInferenceRules", "FFTWindow", + // "RPC", "Network", "MasterServer", + // "BitStream", "HostData", + // "ConnectionTesterStatus", "GUI", "EventType", + // "EventModifiers", "FontStyle", "TextAlignment", + // "TextEditor", "TextEditorDblClickSnapping", + // "TextGenerator", "TextClipping", "Gizmos", + // "ADBannerView", "ADInterstitialAd", + // "Android", "Tizen", "jvalue", + // "iPhone", "iOS", "Windows", "CalendarIdentifier", + // "CalendarUnit", "CalendarUnit", + // "ClusterInput", "FullScreenMovieControlMode", + // "FullScreenMovieScalingMode", "Handheld", + // "LocalNotification", "NotificationServices", + // "RemoteNotificationType", "RemoteNotification", + // "SamsungTV", "TextureCompressionQuality", + // "TouchScreenKeyboardType", "TouchScreenKeyboard", + // "MovieTexture", "UnityEngineInternal", + // "Terrain", "Tree", "SplatPrototype", + // "DetailPrototype", "DetailRenderMode", + // "MeshSubsetCombineUtility", "AOT", "Social", "Enumerator", + // "SendMouseEvents", "Cursor", "Flash", "ActionScript", + // "OnRequestRebuild", "Ping", + // "ShaderVariantCollection", "SimpleJson.Reflection", + // "CoroutineTween", "GraphicRebuildTracker", + // "Advertisements", "UnityEditor", "WSA", + // "EventProvider", "Apple", + // "ClusterInput", "Motion", + // "UnityEngine.UI.ReflectionMethodsCache", "NativeLeakDetection", + // "NativeLeakDetectionMode", "WWWAudioExtensions", "UnityEngine.Experimental", + //}; + + //static bool isExcluded(Type type) + //{ + // var fullName = type.FullName; + // for (int i = 0; i < exclude.Count; i++) + // { + // if (fullName.Contains(exclude[i])) + // { + // return true; + // } + // } + // return false; + //} + + //[LuaCallCSharp] + //public static IEnumerable LuaCallCSharp + //{ + // get + // { + // List namespaces = new List() // 在这里添加名字空间 + // { + // "UnityEngine", + // "UnityEngine.UI" + // }; + // var unityTypes = (from assembly in AppDomain.CurrentDomain.GetAssemblies() + // where !(assembly.ManifestModule is System.Reflection.Emit.ModuleBuilder) + // from type in assembly.GetExportedTypes() + // where type.Namespace != null && namespaces.Contains(type.Namespace) && !isExcluded(type) + // && type.BaseType != typeof(MulticastDelegate) && !type.IsInterface && !type.IsEnum + // select type); + + // string[] customAssemblys = new string[] { + // "Assembly-CSharp", + // }; + // var customTypes = (from assembly in customAssemblys.Select(s => Assembly.Load(s)) + // from type in assembly.GetExportedTypes() + // where type.Namespace == null || !type.Namespace.StartsWith("XLua") + // && type.BaseType != typeof(MulticastDelegate) && !type.IsInterface && !type.IsEnum + // select type); + // return unityTypes.Concat(customTypes); + // } + //} + + ////自动把LuaCallCSharp涉及到的delegate加到CSharpCallLua列表,后续可以直接用lua函数做callback + //[CSharpCallLua] + //public static List CSharpCallLua + //{ + // get + // { + // var lua_call_csharp = LuaCallCSharp; + // var delegate_types = new List(); + // var flag = BindingFlags.Public | BindingFlags.Instance + // | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly; + // foreach (var field in (from type in lua_call_csharp select type).SelectMany(type => type.GetFields(flag))) + // { + // if (typeof(Delegate).IsAssignableFrom(field.FieldType)) + // { + // delegate_types.Add(field.FieldType); + // } + // } + + // foreach (var method in (from type in lua_call_csharp select type).SelectMany(type => type.GetMethods(flag))) + // { + // if (typeof(Delegate).IsAssignableFrom(method.ReturnType)) + // { + // delegate_types.Add(method.ReturnType); + // } + // foreach (var param in method.GetParameters()) + // { + // var paramType = param.ParameterType.IsByRef ? param.ParameterType.GetElementType() : param.ParameterType; + // if (typeof(Delegate).IsAssignableFrom(paramType)) + // { + // delegate_types.Add(paramType); + // } + // } + // } + // return delegate_types.Where(t => t.BaseType == typeof(MulticastDelegate) && !hasGenericParameter(t) && !delegateHasEditorRef(t)).Distinct().ToList(); + // } + //} + //--------------end 纯lua编程配置参考---------------------------- + + /***************热补丁可以参考这份自动化配置***************/ + //[Hotfix] + //static IEnumerable HotfixInject + //{ + // get + // { + // return (from type in Assembly.Load("Assembly-CSharp").GetTypes() + // where type.Namespace == null || !type.Namespace.StartsWith("XLua") + // select type); + // } + //} + //--------------begin 热补丁自动化配置------------------------- + //static bool hasGenericParameter(Type type) + //{ + // if (type.IsGenericTypeDefinition) return true; + // if (type.IsGenericParameter) return true; + // if (type.IsByRef || type.IsArray) + // { + // return hasGenericParameter(type.GetElementType()); + // } + // if (type.IsGenericType) + // { + // foreach (var typeArg in type.GetGenericArguments()) + // { + // if (hasGenericParameter(typeArg)) + // { + // return true; + // } + // } + // } + // return false; + //} + + //static bool typeHasEditorRef(Type type) + //{ + // if (type.Namespace != null && (type.Namespace == "UnityEditor" || type.Namespace.StartsWith("UnityEditor."))) + // { + // return true; + // } + // if (type.IsNested) + // { + // return typeHasEditorRef(type.DeclaringType); + // } + // if (type.IsByRef || type.IsArray) + // { + // return typeHasEditorRef(type.GetElementType()); + // } + // if (type.IsGenericType) + // { + // foreach (var typeArg in type.GetGenericArguments()) + // { + // if (typeHasEditorRef(typeArg)) + // { + // return true; + // } + // } + // } + // return false; + //} + + //static bool delegateHasEditorRef(Type delegateType) + //{ + // if (typeHasEditorRef(delegateType)) return true; + // var method = delegateType.GetMethod("Invoke"); + // if (method == null) + // { + // return false; + // } + // if (typeHasEditorRef(method.ReturnType)) return true; + // return method.GetParameters().Any(pinfo => typeHasEditorRef(pinfo.ParameterType)); + //} + + // 配置某Assembly下所有涉及到的delegate到CSharpCallLua下,Hotfix下拿不准那些delegate需要适配到lua function可以这么配置 + //[CSharpCallLua] + //static IEnumerable AllDelegate + //{ + // get + // { + // BindingFlags flag = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public; + // List allTypes = new List(); + // var allAssemblys = new Assembly[] + // { + // Assembly.Load("Assembly-CSharp") + // }; + // foreach (var t in (from assembly in allAssemblys from type in assembly.GetTypes() select type)) + // { + // var p = t; + // while (p != null) + // { + // allTypes.Add(p); + // p = p.BaseType; + // } + // } + // allTypes = allTypes.Distinct().ToList(); + // var allMethods = from type in allTypes + // from method in type.GetMethods(flag) + // select method; + // var returnTypes = from method in allMethods + // select method.ReturnType; + // var paramTypes = allMethods.SelectMany(m => m.GetParameters()).Select(pinfo => pinfo.ParameterType.IsByRef ? pinfo.ParameterType.GetElementType() : pinfo.ParameterType); + // var fieldTypes = from type in allTypes + // from field in type.GetFields(flag) + // select field.FieldType; + // return (returnTypes.Concat(paramTypes).Concat(fieldTypes)).Where(t => t.BaseType == typeof(MulticastDelegate) && !hasGenericParameter(t) && !delegateHasEditorRef(t)).Distinct(); + // } + //} + //--------------end 热补丁自动化配置------------------------- + + //黑名单 + [BlackList] + public static List> BlackList = new List>() { + new List(){"System.Xml.XmlNodeList", "ItemOf"}, + new List(){"UnityEngine.WWW", "movie"}, + #if UNITY_WEBGL + new List(){"UnityEngine.WWW", "threadPriority"}, + #endif + new List(){"UnityEngine.Texture2D", "alphaIsTransparency"}, + new List(){"UnityEngine.Security", "GetChainOfTrustValue"}, + new List(){"UnityEngine.CanvasRenderer", "onRequestRebuild"}, + new List(){"UnityEngine.Light", "areaSize"}, + new List(){"UnityEngine.Light", "lightmapBakeType"}, + new List(){"UnityEngine.WWW", "MovieTexture"}, + new List(){"UnityEngine.WWW", "GetMovieTexture"}, + new List(){"UnityEngine.AnimatorOverrideController", "PerformOverrideClipListCleanup"}, + #if !UNITY_WEBPLAYER + new List(){"UnityEngine.Application", "ExternalEval"}, + #endif + new List(){"UnityEngine.GameObject", "networkView"}, //4.6.2 not support + new List(){"UnityEngine.Component", "networkView"}, //4.6.2 not support + new List(){"System.IO.FileInfo", "GetAccessControl", "System.Security.AccessControl.AccessControlSections"}, + new List(){"System.IO.FileInfo", "SetAccessControl", "System.Security.AccessControl.FileSecurity"}, + new List(){"System.IO.DirectoryInfo", "GetAccessControl", "System.Security.AccessControl.AccessControlSections"}, + new List(){"System.IO.DirectoryInfo", "SetAccessControl", "System.Security.AccessControl.DirectorySecurity"}, + new List(){"System.IO.DirectoryInfo", "CreateSubdirectory", "System.String", "System.Security.AccessControl.DirectorySecurity"}, + new List(){"System.IO.DirectoryInfo", "Create", "System.Security.AccessControl.DirectorySecurity"}, + new List(){"UnityEngine.MonoBehaviour", "runInEditMode"}, + }; + +#if UNITY_2018_1_OR_NEWER + [BlackList] + public static Func MethodFilter = (memberInfo) => + { + if (memberInfo.DeclaringType.IsGenericType && memberInfo.DeclaringType.GetGenericTypeDefinition() == typeof(Dictionary<,>)) + { + if (memberInfo.MemberType == MemberTypes.Constructor) + { + ConstructorInfo constructorInfo = memberInfo as ConstructorInfo; + var parameterInfos = constructorInfo.GetParameters(); + if (parameterInfos.Length > 0) + { + if (typeof(System.Collections.IEnumerable).IsAssignableFrom(parameterInfos[0].ParameterType)) + { + return true; + } + } + } + else if (memberInfo.MemberType == MemberTypes.Method) + { + var methodInfo = memberInfo as MethodInfo; + if (methodInfo.Name == "TryAdd" || methodInfo.Name == "Remove" && methodInfo.GetParameters().Length == 2) + { + return true; + } + } + } + return false; + }; +#endif +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor/ExampleConfig.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor/ExampleConfig.cs.meta new file mode 100644 index 00000000..45a0034c --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Editor/ExampleConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c81bc5b042a100c43b1eceb1159c9a64 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources.meta new file mode 100644 index 00000000..d9ff3d90 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8473344d97b5b7640aaee952f3cd21f1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf.meta new file mode 100644 index 00000000..a852d565 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a4e9564838e9c8f46ae878c38ac4263a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/memory.lua.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/memory.lua.txt new file mode 100644 index 00000000..2a2584a5 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/memory.lua.txt @@ -0,0 +1,20 @@ +-- Tencent is pleased to support the open source community by making xLua available. +-- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. +-- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +-- http://opensource.org/licenses/MIT +-- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + +local function snapshot() + error('use memory leak checker instead!') +end + +--returns the total memory in use by Lua (in Kbytes). +local function total() + error('use memory leak checker instead!') +end + + +return { + snapshot = snapshot, + total = total +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/memory.lua.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/memory.lua.txt.meta new file mode 100644 index 00000000..26254161 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/memory.lua.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0870308a2d502364d8a98c397c66f572 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/profiler.lua.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/profiler.lua.txt new file mode 100644 index 00000000..b1089f56 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/profiler.lua.txt @@ -0,0 +1,125 @@ +-- Tencent is pleased to support the open source community by making xLua available. +-- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. +-- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +-- http://opensource.org/licenses/MIT +-- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + +local get_time = os.clock +local sethook = xlua.sethook or debug.sethook +local func_info_map = nil + +local start_time + +local function create_func_info(db_info) + return { + db_info = db_info, + count = 0, + total_time = 0 + } +end + +local function on_hook(event, func_info_id, source) + local func_info = func_info_map[func_info_id] + if not func_info then + func_info = create_func_info(debug.getinfo( 2, 'nS' )) + func_info_map[func_info_id] = func_info + end + if event == "call" then + func_info.call_time = get_time() + func_info.count = func_info.count + 1 + func_info.return_time = nil + elseif event == "return" or event == 'tail return' then + local now = get_time() + if func_info.call_time then + func_info.total_time = func_info.total_time + (now - func_info.call_time) + func_info.call_time = nil + else + func_info.total_time = func_info.total_time + (now - (func_info.return_time or now)) + func_info.count = func_info.count + 1 + end + func_info.return_time = now + if source and func_info.count == 1 then + func_info.db_info.short_src = source + end + end +end + +local function start() + func_info_map = {} + start_time = get_time() + sethook(on_hook, 'cr') +end + +local function pause() + sethook() +end + +local function resume() + sethook(on_hook, 'cr') +end + +local function stop() + sethook() + func_info_map = nil + start_time = nil +end + +local function report_output_line(rp, stat_interval) + local source = rp.db_info.short_src or '[NA]' + local linedefined = (rp.db_info.linedefined and rp.db_info.linedefined >= 0) and string.format(":%i", rp.db_info.linedefined) or '' + source = source .. linedefined + local name = rp.db_info.name or '[anonymous]' + local total_time = string.format("%04.3f", rp.total_time * 1000) + local average_time = string.format("%04.3f", rp.total_time / rp.count * 1000) + local relative_time = string.format("%03.2f%%", (rp.total_time / stat_interval) * 100 ) + local count = string.format("%7i", rp.count) + + return string.format("|%-40.40s: %-50.50s: %-12s: %-12s: %-12s: %-12s|\n", name, source, total_time, average_time, relative_time, count) +end + +local sort_funcs = { + TOTAL = function(a, b) return a.total_time > b.total_time end, + AVERAGE = function(a, b) return a.average > b.average end, + CALLED = function(a, b) return a.count > b.count end +} + +local function report(sort_by) + sethook() + local sort_func = type(sort_by) == 'function' and sort_by or sort_funcs[sort_by] + + local FORMAT_HEADER_LINE = "|%-40s: %-50s: %-12s: %-12s: %-12s: %-12s|\n" + local header = string.format( FORMAT_HEADER_LINE, "FUNCTION", "SOURCE", "TOTAL(MS)", "AVERAGE(MS)", "RELATIVE", "CALLED" ) + local stat_interval = get_time() - (start_time or get_time()) + + local report_list = {} + for _, rp in pairs(func_info_map) do + table.insert(report_list, { + total_time = rp.total_time, + count = rp.count, + average = rp.total_time / rp.count, + output = report_output_line(rp, stat_interval) + }) + end + + table.sort(report_list, sort_func or sort_funcs.TOTAL) + + local output = header + + for i, rp in ipairs(report_list) do + output = output .. rp.output + end + + sethook(on_hook, 'cr') + + return output +end + +return { + --开始统计 + start = start, + --获取报告,start和stop之间可以多次调用,参数sort_by类型是string,可以是'TOTAL','AVERAGE', 'CALLED' + report = report, + --停止统计 + stop = stop +} + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/profiler.lua.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/profiler.lua.txt.meta new file mode 100644 index 00000000..d862756b --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/perf/profiler.lua.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: abbd563ad5c00f24c9f2c208ded07aee +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr.meta new file mode 100644 index 00000000..e0a760e4 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c9605de48179dab488d1e430e66883c7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr/tdr.lua.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr/tdr.lua.txt new file mode 100644 index 00000000..67ff3696 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr/tdr.lua.txt @@ -0,0 +1,80 @@ +-- Tencent is pleased to support the open source community by making xLua available. +-- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. +-- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +-- http://opensource.org/licenses/MIT +-- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + +require "libtdrlua" +local m = {} +for k, v in pairs(libtdrlua) do m[k] = v end +local load_metalib, load_metalib_buf, free_metalib, get_meta, table2buf, buf2table, str2table, metamaxbufsize, bufalloc, buffree, buf2str +load_metalib, m.load_metalib = m.load_metalib, nil +load_metalib_buf, m.load_metalib_buf = m.load_metalib_buf, nil +free_metalib, m.free_metalib = m.free_metalib, nil +get_meta, m.get_meta = m.get_meta, nil +table2buf, m.table2buf = m.table2buf, nil +buf2table, m.buf2table = m.buf2table, nil +str2table, m.str2table = m.str2table, nil +buf2str, m.buf2str = m.buf2str, nil + +metamaxbufsize, m.metamaxbufsize = m.metamaxbufsize, nil +bufalloc, m.bufalloc = m.bufalloc, nil +buffree, m.buffree = m.buffree, nil + +local function create_msg_pk(meta, buf, buf_size) + return { + buff = buf, + pack = function(obj) + local ret_code, used_size = table2buf(meta, obj, buf, buf_size, 0) + if ret_code ~= 0 then + return ret_code, used_size + end + return buf2str(buf, used_size) + end, + unpack = function(str) + return libtdrlua.str2table(meta, str, 0) + end + } +end + +local function create_lib(metalib) + return setmetatable({}, { + __index = function(obj, k) + local ret_code, meta = libtdrlua.get_meta(metalib, k) + if ret_code ~= 0 then + error("libtdrlua.get_meta() failed: errno=".. ret_code .. ",msg=" .. meta) + end + local ret_code, buf_size = libtdrlua.metamaxbufsize(metalib, k) + if ret_code ~= 0 then + error("libtdrlua.metamaxbufsize() failed: errno=".. ret_code .. ",msg=" .. buf_size) + end + + local ret_code, buf = libtdrlua.bufalloc(buf_size) + if ret_code ~= 0 then + error("libtdrlua.bufalloc() failed: errno=".. ret_code .. ",msg=" .. buf) + end + + local pk = create_msg_pk(meta, buf, buf_size) + rawset(obj, k, pk) + return pk + end + }) +end + +function m.from_file(file) + local ret_code, metalib = libtdrlua.load_metalib(file) + if ret_code ~= 0 then + error("libtdrlua.load_metalib() failed: " .. metalib) + end + return create_lib(metalib) +end + +function m.from_memory(str) + local ret_code, metalib = libtdrlua.load_metalib_buf(str) + if ret_code ~= 0 then + error("libtdrlua.load_metalib_buf() failed: errno=".. ret_code .. ",msg=" .. metalib) + end + return create_lib(metalib) +end + +return m \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr/tdr.lua.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr/tdr.lua.txt.meta new file mode 100644 index 00000000..c38c1061 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/tdr/tdr.lua.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a5db3aa3dd58b4e439a84c99eda599c7 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua.meta new file mode 100644 index 00000000..c7d72c29 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fd8e8ebe436974d47b164c99f683adf4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua/util.lua.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua/util.lua.txt new file mode 100644 index 00000000..cc6bc153 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua/util.lua.txt @@ -0,0 +1,178 @@ +-- Tencent is pleased to support the open source community by making xLua available. +-- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. +-- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +-- http://opensource.org/licenses/MIT +-- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + +local unpack = unpack or table.unpack + +local function async_to_sync(async_func, callback_pos) + return function(...) + local _co = coroutine.running() or error ('this function must be run in coroutine') + local rets + local waiting = false + local function cb_func(...) + if waiting then + assert(coroutine.resume(_co, ...)) + else + rets = {...} + end + end + local params = {...} + table.insert(params, callback_pos or (#params + 1), cb_func) + async_func(unpack(params)) + if rets == nil then + waiting = true + rets = {coroutine.yield()} + end + + return unpack(rets) + end +end + +local function coroutine_call(func) + return function(...) + local co = coroutine.create(func) + assert(coroutine.resume(co, ...)) + end +end + +local move_end = {} + +local generator_mt = { + __index = { + MoveNext = function(self) + self.Current = self.co() + if self.Current == move_end then + self.Current = nil + return false + else + return true + end + end; + Reset = function(self) + self.co = coroutine.wrap(self.w_func) + end + } +} + +local function cs_generator(func, ...) + local params = {...} + local generator = setmetatable({ + w_func = function() + func(unpack(params)) + return move_end + end + }, generator_mt) + generator:Reset() + return generator +end + +local function loadpackage(...) + for _, loader in ipairs(package.searchers) do + local func = loader(...) + if type(func) == 'function' then + return func + end + end +end + +local function auto_id_map() + local hotfix_id_map = require 'hotfix_id_map' + local org_hotfix = xlua.hotfix + xlua.hotfix = function(cs, field, func) + local map_info_of_type = hotfix_id_map[typeof(cs):ToString()] + if map_info_of_type then + if func == nil then func = false end + local tbl = (type(field) == 'table') and field or {[field] = func} + for k, v in pairs(tbl) do + local map_info_of_methods = map_info_of_type[k] + local f = type(v) == 'function' and v or nil + for _, id in ipairs(map_info_of_methods or {}) do + CS.XLua.HotfixDelegateBridge.Set(id, f) + end + --CS.XLua.HotfixDelegateBridge.Set( + end + xlua.private_accessible(cs) + else + return org_hotfix(cs, field, func) + end + end +end + +--和xlua.hotfix的区别是:这个可以调用原来的函数 +local function hotfix_ex(cs, field, func) + assert(type(field) == 'string' and type(func) == 'function', 'invalid argument: #2 string needed, #3 function needed!') + local function func_after(...) + xlua.hotfix(cs, field, nil) + local ret = {func(...)} + xlua.hotfix(cs, field, func_after) + return unpack(ret) + end + xlua.hotfix(cs, field, func_after) +end + +local function bind(func, obj) + return function(...) + return func(obj, ...) + end +end + +--为了兼容luajit,lua53版本直接用|操作符即可 +local enum_or_op = debug.getmetatable(CS.System.Reflection.BindingFlags.Public).__bor +local enum_or_op_ex = function(first, ...) + for _, e in ipairs({...}) do + first = enum_or_op(first, e) + end + return first +end + +-- description: 直接用C#函数创建delegate +local function createdelegate(delegate_cls, obj, impl_cls, method_name, parameter_type_list) + local flag = enum_or_op_ex(CS.System.Reflection.BindingFlags.Public, CS.System.Reflection.BindingFlags.NonPublic, + CS.System.Reflection.BindingFlags.Instance, CS.System.Reflection.BindingFlags.Static) + local m = parameter_type_list and typeof(impl_cls):GetMethod(method_name, flag, nil, parameter_type_list, nil) + or typeof(impl_cls):GetMethod(method_name, flag) + return CS.System.Delegate.CreateDelegate(typeof(delegate_cls), obj, m) +end + +local function state(csobj, state) + local csobj_mt = getmetatable(csobj) + for k, v in pairs(csobj_mt) do rawset(state, k, v) end + local csobj_index, csobj_newindex = state.__index, state.__newindex + state.__index = function(obj, k) + return rawget(state, k) or csobj_index(obj, k) + end + state.__newindex = function(obj, k, v) + if rawget(state, k) ~= nil then + rawset(state, k, v) + else + csobj_newindex(obj, k, v) + end + end + debug.setmetatable(csobj, state) + return state +end + +local function print_func_ref_by_csharp() + local registry = debug.getregistry() + for k, v in pairs(registry) do + if type(k) == 'number' and type(v) == 'function' and registry[v] == k then + local info = debug.getinfo(v) + print(string.format('%s:%d', info.short_src, info.linedefined)) + end + end +end + +return { + async_to_sync = async_to_sync, + coroutine_call = coroutine_call, + cs_generator = cs_generator, + loadpackage = loadpackage, + auto_id_map = auto_id_map, + hotfix_ex = hotfix_ex, + bind = bind, + createdelegate = createdelegate, + state = state, + print_func_ref_by_csharp = print_func_ref_by_csharp, +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua/util.lua.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua/util.lua.txt.meta new file mode 100644 index 00000000..93d8dffa --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Resources/xlua/util.lua.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 499c766e70ccab949b08d91264dc8152 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src.meta new file mode 100644 index 00000000..8fc5d3c2 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c17ef3c1b03607b47937ecc16b41e483 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CodeEmit.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CodeEmit.cs new file mode 100644 index 00000000..fd56abfd --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CodeEmit.cs @@ -0,0 +1,1918 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 +using System.Collections.Generic; +using System.Reflection.Emit; +using System.Reflection; +using System; +using System.Linq; + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +namespace XLua +{ + public class CodeEmit + { + private ModuleBuilder codeEmitModule = null; + private ulong genID = 0; + + private MethodInfo LuaEnv_ThrowExceptionFromError = typeof(LuaEnv).GetMethod("ThrowExceptionFromError"); + private FieldInfo LuaBase_luaEnv = typeof(LuaBase).GetField("luaEnv", BindingFlags.NonPublic | BindingFlags.Instance); + private MethodInfo DelegateBridgeBase_errorFuncRef_getter = typeof(LuaBase).GetProperty("_errorFuncRef", BindingFlags.NonPublic | BindingFlags.Instance).GetGetMethod(true); + private MethodInfo LuaAPI_load_error_func = typeof(LuaAPI).GetMethod("load_error_func"); + private MethodInfo LuaBase_translator_getter = typeof(LuaBase).GetProperty("_translator", BindingFlags.NonPublic | BindingFlags.Instance).GetGetMethod(true); + private FieldInfo LuaBase_luaReference = typeof(LuaBase).GetField("luaReference", BindingFlags.NonPublic | BindingFlags.Instance); + private MethodInfo LuaAPI_lua_getref = typeof(LuaAPI).GetMethod("lua_getref"); + private MethodInfo Type_GetTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle", new Type[] { typeof(RuntimeTypeHandle) }); + private MethodInfo ObjectTranslator_PushAny = typeof(ObjectTranslator).GetMethod("PushAny"); + private MethodInfo ObjectTranslator_PushParams = typeof(ObjectTranslator).GetMethod("PushParams"); + private MethodInfo LuaBase_L_getter = typeof(LuaBase).GetProperty("_L", BindingFlags.NonPublic | BindingFlags.Instance).GetGetMethod(true); + private MethodInfo LuaAPI_lua_pcall = typeof(LuaAPI).GetMethod("lua_pcall"); + private MethodInfo LuaAPI_lua_type = typeof(LuaAPI).GetMethod("lua_type"); + private MethodInfo ObjectTranslator_GetObject = typeof(ObjectTranslator).GetMethod("GetObject", new Type[] { typeof(RealStatePtr), + typeof(int), typeof(Type)}); + private MethodInfo ObjectTranslator_GetParams = typeof(ObjectTranslator).GetMethod("GetParams", new Type[] { typeof(RealStatePtr), typeof(int) }); + private MethodInfo ObjectTranslator_Update = typeof(ObjectTranslator).GetMethod("Update"); + private MethodInfo LuaAPI_lua_pushvalue = typeof(LuaAPI).GetMethod("lua_pushvalue"); + private MethodInfo LuaAPI_lua_remove = typeof(LuaAPI).GetMethod("lua_remove"); + private MethodInfo LuaAPI_lua_pushstring = typeof(LuaAPI).GetMethod("lua_pushstring", new Type[] { typeof(RealStatePtr), typeof(string)}); + private MethodInfo LuaAPI_lua_gettop = typeof(LuaAPI).GetMethod("lua_gettop"); + private MethodInfo LuaAPI_xlua_pgettable = typeof(LuaAPI).GetMethod("xlua_pgettable"); + private MethodInfo LuaAPI_xlua_psettable = typeof(LuaAPI).GetMethod("xlua_psettable"); + private MethodInfo LuaAPI_lua_pop = typeof(LuaAPI).GetMethod("lua_pop"); + private MethodInfo LuaAPI_lua_settop = typeof(LuaAPI).GetMethod("lua_settop"); + private MethodInfo LuaAPI_luaL_error = typeof(LuaAPI).GetMethod("luaL_error"); + private MethodInfo LuaAPI_xlua_is_eq_str = typeof(LuaAPI).GetMethod("xlua_is_eq_str", new Type[] { + typeof(RealStatePtr), typeof(int), typeof(string)}); + + private MethodInfo LuaAPI_xlua_pushinteger = typeof(LuaAPI).GetMethod("xlua_pushinteger"); + private MethodInfo LuaAPI_lua_pushint64 = typeof(LuaAPI).GetMethod("lua_pushint64"); + private MethodInfo LuaAPI_lua_pushnumber = typeof(LuaAPI).GetMethod("lua_pushnumber"); + private MethodInfo LuaAPI_xlua_pushuint = typeof(LuaAPI).GetMethod("xlua_pushuint"); + private MethodInfo LuaAPI_lua_pushuint64 = typeof(LuaAPI).GetMethod("lua_pushuint64"); + private MethodInfo LuaAPI_lua_pushboolean = typeof(LuaAPI).GetMethod("lua_pushboolean"); + private MethodInfo LuaAPI_lua_pushbytes = typeof(LuaAPI).GetMethod("lua_pushstring", new Type[] { typeof(RealStatePtr), typeof(byte[]) }); + private MethodInfo LuaAPI_lua_pushlightuserdata = typeof(LuaAPI).GetMethod("lua_pushlightuserdata"); + private MethodInfo ObjectTranslator_PushDecimal = typeof(ObjectTranslator).GetMethod("PushDecimal"); + private MethodInfo ObjectTranslator_GetDecimal = typeof(ObjectTranslator).GetMethod("GetDecimal"); + + private Dictionary fixPush; + + private MethodInfo LuaAPI_xlua_tointeger = typeof(LuaAPI).GetMethod("xlua_tointeger"); + private MethodInfo LuaAPI_lua_tonumber = typeof(LuaAPI).GetMethod("lua_tonumber"); + private MethodInfo LuaAPI_lua_tostring = typeof(LuaAPI).GetMethod("lua_tostring"); + private MethodInfo LuaAPI_lua_toboolean = typeof(LuaAPI).GetMethod("lua_toboolean"); + private MethodInfo LuaAPI_lua_tobytes = typeof(LuaAPI).GetMethod("lua_tobytes"); + private MethodInfo LuaAPI_lua_touserdata = typeof(LuaAPI).GetMethod("lua_touserdata"); + private MethodInfo LuaAPI_xlua_touint = typeof(LuaAPI).GetMethod("xlua_touint"); + private MethodInfo LuaAPI_lua_touint64 = typeof(LuaAPI).GetMethod("lua_touint64"); + private MethodInfo LuaAPI_lua_toint64 = typeof(LuaAPI).GetMethod("lua_toint64"); + + private Dictionary typedCaster; + private Dictionary fixCaster; + + public CodeEmit() + { + fixPush = new Dictionary() + { + {typeof(byte), LuaAPI_xlua_pushinteger}, + {typeof(char), LuaAPI_xlua_pushinteger}, + {typeof(short), LuaAPI_xlua_pushinteger}, + {typeof(int), LuaAPI_xlua_pushinteger}, + {typeof(long), LuaAPI_lua_pushint64}, + {typeof(sbyte), LuaAPI_xlua_pushinteger}, + {typeof(float), LuaAPI_lua_pushnumber}, + {typeof(ushort), LuaAPI_xlua_pushinteger}, + {typeof(uint), LuaAPI_xlua_pushuint}, + {typeof(ulong), LuaAPI_lua_pushuint64}, + {typeof(double), LuaAPI_lua_pushnumber}, + {typeof(string), LuaAPI_lua_pushstring}, + {typeof(byte[]), LuaAPI_lua_pushbytes}, + {typeof(bool), LuaAPI_lua_pushboolean}, + {typeof(IntPtr), LuaAPI_lua_pushlightuserdata}, + }; + + fixCaster = new Dictionary() + { + {typeof(double), LuaAPI_lua_tonumber}, + {typeof(string), LuaAPI_lua_tostring}, + {typeof(bool), LuaAPI_lua_toboolean}, + {typeof(byte[]), LuaAPI_lua_tobytes}, + {typeof(IntPtr), LuaAPI_lua_touserdata}, + {typeof(uint), LuaAPI_xlua_touint}, + {typeof(ulong), LuaAPI_lua_touint64}, + {typeof(int), LuaAPI_xlua_tointeger}, + {typeof(long), LuaAPI_lua_toint64}, + }; + + typedCaster = new Dictionary() + { + {typeof(byte), LuaAPI_xlua_tointeger}, + {typeof(char), LuaAPI_xlua_tointeger}, + {typeof(short), LuaAPI_xlua_tointeger}, + {typeof(sbyte), LuaAPI_xlua_tointeger}, + {typeof(float), LuaAPI_lua_tonumber}, + {typeof(ushort), LuaAPI_xlua_tointeger}, + }; + + initBlackList(); + } + + private void emitPush(ILGenerator il, Type type, short dataPos, bool isParam, LocalBuilder L, LocalBuilder translator, bool isArg) + { + var paramElemType = type.IsByRef ? type.GetElementType() : type; + var ldd = isArg ? OpCodes.Ldarg : OpCodes.Ldloc; + MethodInfo pusher; + if (fixPush.TryGetValue(paramElemType, out pusher)) + { + il.Emit(OpCodes.Ldloc, L); + il.Emit(ldd, dataPos); + + if (type.IsByRef) + { + if (paramElemType.IsValueType) + { + il.Emit(OpCodes.Ldobj, paramElemType); + } + else + { + il.Emit(OpCodes.Ldind_Ref); + } + } + + il.Emit(OpCodes.Call, pusher); + } + else if (paramElemType == typeof(decimal)) + { + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Ldloc, L); + il.Emit(ldd, dataPos); + if (type.IsByRef) + { + il.Emit(OpCodes.Ldobj, paramElemType); + } + il.Emit(OpCodes.Callvirt, ObjectTranslator_PushDecimal); + } + else + { + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Ldloc, L); + il.Emit(ldd, dataPos); + if (type.IsByRef) + { + if (paramElemType.IsValueType) + { + il.Emit(OpCodes.Ldobj, paramElemType); + il.Emit(OpCodes.Box, paramElemType); + } + else + { + il.Emit(OpCodes.Ldind_Ref); + } + } + else if (type.IsValueType) + { + il.Emit(OpCodes.Box, type); + } + if (isParam) + { + il.Emit(OpCodes.Callvirt, ObjectTranslator_PushParams); + } + else + { + il.Emit(OpCodes.Callvirt, ObjectTranslator_PushAny); + } + } + } + + private ModuleBuilder CodeEmitModule + { + get + { + if (codeEmitModule == null) + { + var assemblyName = new AssemblyName(); + assemblyName.Name = "XLuaCodeEmit"; + codeEmitModule = AppDomain.CurrentDomain.DefineDynamicAssembly(assemblyName, AssemblyBuilderAccess.Run) + .DefineDynamicModule("XLuaCodeEmit"); + } + return codeEmitModule; + } + } + + public Type EmitDelegateImpl(IEnumerable> groups) + { + TypeBuilder impl_type_builder = CodeEmitModule.DefineType("XLuaGenDelegateImpl" + (genID++), TypeAttributes.Public, typeof(DelegateBridge)); + + MethodBuilder get_deleate_by_type = impl_type_builder.DefineMethod("GetDelegateByType", MethodAttributes.Public + | MethodAttributes.HideBySig + | MethodAttributes.NewSlot + | MethodAttributes.Virtual + | MethodAttributes.Final, + typeof(System.Delegate), new Type[] { typeof(System.Type) }); + + ILGenerator get_deleate_by_type_il = get_deleate_by_type.GetILGenerator(); + + foreach (var group in groups) + { + var to_be_impl = group.Key; + + var method_builder = defineImplementMethod(impl_type_builder, to_be_impl, to_be_impl.Attributes, "__Gen_Delegate_Imp" + (genID++)); + + emitMethodImpl(to_be_impl, method_builder.GetILGenerator(), false); + + foreach(var dt in group) + { + Label end_of_if = get_deleate_by_type_il.DefineLabel(); + get_deleate_by_type_il.Emit(OpCodes.Ldarg_1); + get_deleate_by_type_il.Emit(OpCodes.Ldtoken, dt); + get_deleate_by_type_il.Emit(OpCodes.Call, Type_GetTypeFromHandle); // typeof(type) + get_deleate_by_type_il.Emit(OpCodes.Bne_Un, end_of_if); + + get_deleate_by_type_il.Emit(OpCodes.Ldarg_0); + get_deleate_by_type_il.Emit(OpCodes.Ldftn, method_builder); + get_deleate_by_type_il.Emit(OpCodes.Newobj, dt.GetConstructor(new Type[] { typeof(object), typeof(IntPtr) })); + get_deleate_by_type_il.Emit(OpCodes.Ret); + get_deleate_by_type_il.MarkLabel(end_of_if); + } + } + + // Constructor + var ctor_param_types = new Type[] { typeof(int), typeof(LuaEnv) }; + ConstructorInfo parent_ctor = typeof(DelegateBridge).GetConstructor(ctor_param_types); + var ctor_builder = impl_type_builder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, ctor_param_types); + var ctor_il = ctor_builder.GetILGenerator(); + ctor_il.Emit(OpCodes.Ldarg_0); + ctor_il.Emit(OpCodes.Ldarg_1); + ctor_il.Emit(OpCodes.Ldarg_2); + ctor_il.Emit(OpCodes.Call, parent_ctor); + ctor_il.Emit(OpCodes.Ret); + + // end of GetDelegateByType + get_deleate_by_type_il.Emit(OpCodes.Ldnull); + get_deleate_by_type_il.Emit(OpCodes.Ret); + + impl_type_builder.DefineMethodOverride(get_deleate_by_type, typeof(DelegateBridgeBase).GetMethod("GetDelegateByType")); + + + return impl_type_builder.CreateType(); + } + + private void EmitGetObject(ILGenerator il, int offset, Type type, LocalBuilder L, LocalBuilder translator, LocalBuilder offsetBase, bool isParam = false) + { + if (!fixCaster.ContainsKey(type) && !typedCaster.ContainsKey(type)) + { + il.Emit(OpCodes.Ldloc, translator); // translator + } + il.Emit(OpCodes.Ldloc, L); // L + if (offsetBase != null) + { + il.Emit(OpCodes.Ldloc, offsetBase); // err_func + il.Emit(OpCodes.Ldc_I4, offset); + il.Emit(OpCodes.Add); + } + else + { + il.Emit(OpCodes.Ldc_I4, offset); + } + + MethodInfo caster; + + if (fixCaster.TryGetValue(type, out caster)) + { + il.Emit(OpCodes.Call, caster); + } + else if (typedCaster.TryGetValue(type, out caster)) + { + il.Emit(OpCodes.Call, caster); + if (type == typeof(byte)) + { + il.Emit(OpCodes.Conv_U1); + } + else if(type == typeof(char)) + { + il.Emit(OpCodes.Conv_U2); + } + else if (type == typeof(short)) + { + il.Emit(OpCodes.Conv_I2); + } + else if (type == typeof(sbyte)) + { + il.Emit(OpCodes.Conv_I1); + } + else if (type == typeof(ushort)) + { + il.Emit(OpCodes.Conv_U2); + } + else if (type == typeof(float)) + { + il.Emit(OpCodes.Conv_R4); + } + else + { + throw new InvalidProgramException(type + " is not a type need cast"); + } + } + else if (type == typeof(decimal)) + { + il.Emit(OpCodes.Callvirt, ObjectTranslator_GetDecimal); + } + else + { + if (isParam) + { + il.Emit(OpCodes.Callvirt, ObjectTranslator_GetParams.MakeGenericMethod(new Type[] { type.GetElementType() })); + } + else + { + il.Emit(OpCodes.Ldtoken, type); + il.Emit(OpCodes.Call, Type_GetTypeFromHandle); // typeof(type) + il.Emit(OpCodes.Callvirt, ObjectTranslator_GetObject); + } + if (type.IsValueType) + { + Label not_null = il.DefineLabel(); + Label null_done = il.DefineLabel(); + LocalBuilder local_new = il.DeclareLocal(type); + + il.Emit(OpCodes.Dup); + il.Emit(OpCodes.Brtrue_S, not_null); + + il.Emit(OpCodes.Pop); + il.Emit(OpCodes.Ldloca, local_new); + il.Emit(OpCodes.Initobj, type); + il.Emit(OpCodes.Ldloc, local_new); + il.Emit(OpCodes.Br_S, null_done); + + il.MarkLabel(not_null); + il.Emit(OpCodes.Unbox_Any, type); + il.MarkLabel(null_done); + } + else if (type != typeof(object)) + { + il.Emit(OpCodes.Castclass, type); + } + } + } + + HashSet gen_interfaces = new HashSet(); + + public void SetGenInterfaces(List gen_interfaces) + { + gen_interfaces.ForEach((item) => + { + if (!this.gen_interfaces.Contains(item)) + { + this.gen_interfaces.Add(item); + } + }); + } + + public Type EmitInterfaceImpl(Type to_be_impl) + { + if (!to_be_impl.IsInterface) + { + throw new InvalidOperationException("interface expected, but got " + to_be_impl); + } + + if (!gen_interfaces.Contains(to_be_impl)) + { + throw new InvalidCastException("This type must add to CSharpCallLua: " + to_be_impl.GetFriendlyName()); + } + + TypeBuilder impl_type_builder = CodeEmitModule.DefineType("XLuaGenInterfaceImpl" + (genID++), TypeAttributes.Public | TypeAttributes.Class, typeof(LuaBase), new Type[] { to_be_impl}); + + foreach(var member in (new Type[] { to_be_impl }.Concat(to_be_impl.GetInterfaces()).SelectMany(i=> i.GetMembers()))) + { + if (member.MemberType == MemberTypes.Method) + { + MethodInfo method = member as MethodInfo; + if (method.Name.StartsWith("get_") || method.Name.StartsWith("set_") || + method.Name.StartsWith("add_") || method.Name.StartsWith("remove_")) + { + continue; + } + + var method_builder = defineImplementMethod(impl_type_builder, method, + MethodAttributes.Public | MethodAttributes.Final | MethodAttributes.Virtual); + + emitMethodImpl(method, method_builder.GetILGenerator(), true); + } + else if (member.MemberType == MemberTypes.Property) + { + PropertyInfo property = member as PropertyInfo; + PropertyBuilder prop_builder = impl_type_builder.DefineProperty(property.Name, property.Attributes, property.PropertyType, Type.EmptyTypes); + if (property.Name == "Item") + { + if (property.CanRead) + { + var getter_buildler = defineImplementMethod(impl_type_builder, property.GetGetMethod(), + MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig); + emitMethodImpl(property.GetGetMethod(), getter_buildler.GetILGenerator(), true); + prop_builder.SetGetMethod(getter_buildler); + } + if (property.CanWrite) + { + var setter_buildler = defineImplementMethod(impl_type_builder, property.GetSetMethod(), + MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig); + emitMethodImpl(property.GetSetMethod(), setter_buildler.GetILGenerator(), true); + prop_builder.SetSetMethod(setter_buildler); + } + continue; + } + if (property.CanRead) + { + MethodBuilder getter_buildler = impl_type_builder.DefineMethod("get_" + property.Name, + MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig, + property.PropertyType, Type.EmptyTypes); + + ILGenerator il = getter_buildler.GetILGenerator(); + + LocalBuilder L = il.DeclareLocal(typeof(RealStatePtr)); + LocalBuilder oldTop = il.DeclareLocal(typeof(int)); + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator)); + LocalBuilder ret = il.DeclareLocal(property.PropertyType); + + // L = LuaBase.L; + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Callvirt, LuaBase_L_getter); + il.Emit(OpCodes.Stloc, L); + + //oldTop = LuaAPI.lua_gettop(L); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Call, LuaAPI_lua_gettop); + il.Emit(OpCodes.Stloc, oldTop); + + //translator = LuaBase.translator; + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Callvirt, LuaBase_translator_getter); + il.Emit(OpCodes.Stloc, translator); + + //LuaAPI.lua_getref(L, luaReference); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldfld, LuaBase_luaReference); + il.Emit(OpCodes.Call, LuaAPI_lua_getref); + + //LuaAPI.lua_pushstring(L, "xxx"); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldstr, property.Name); + il.Emit(OpCodes.Call, LuaAPI_lua_pushstring); + + //LuaAPI.xlua_pgettable(L, -2) + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4_S, (sbyte)-2); + il.Emit(OpCodes.Call, LuaAPI_xlua_pgettable); + Label gettable_no_exception = il.DefineLabel(); + il.Emit(OpCodes.Brfalse, gettable_no_exception); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldfld, LuaBase_luaEnv); + il.Emit(OpCodes.Ldloc, oldTop); + il.Emit(OpCodes.Callvirt, LuaEnv_ThrowExceptionFromError); + il.MarkLabel(gettable_no_exception); + + EmitGetObject(il, -1, property.PropertyType, L, translator, null); + il.Emit(OpCodes.Stloc, ret); + + //LuaAPI.lua_pop(L, 2); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4_S, (sbyte)2); + il.Emit(OpCodes.Call, LuaAPI_lua_pop); + + il.Emit(OpCodes.Ldloc, ret); + il.Emit(OpCodes.Ret); + + prop_builder.SetGetMethod(getter_buildler); + } + if (property.CanWrite) + { + MethodBuilder setter_builder = impl_type_builder.DefineMethod("set_" + property.Name, + MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig, + null, new Type[] { property.PropertyType }); + + ILGenerator il = setter_builder.GetILGenerator(); + + LocalBuilder L = il.DeclareLocal(typeof(RealStatePtr)); + LocalBuilder oldTop = il.DeclareLocal(typeof(int)); + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator)); + + // L = LuaBase.L; + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Callvirt, LuaBase_L_getter); + il.Emit(OpCodes.Stloc, L); + + //oldTop = LuaAPI.lua_gettop(L); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Call, LuaAPI_lua_gettop); + il.Emit(OpCodes.Stloc, oldTop); + + //translator = LuaBase.translator; + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Callvirt, LuaBase_translator_getter); + il.Emit(OpCodes.Stloc, translator); + + //LuaAPI.lua_getref(L, luaReference); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldfld, LuaBase_luaReference); + il.Emit(OpCodes.Call, LuaAPI_lua_getref); + + //LuaAPI.lua_pushstring(L, "xxx"); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldstr, property.Name); + il.Emit(OpCodes.Call, LuaAPI_lua_pushstring); + + //translator.Push(L, value); + emitPush(il, property.PropertyType, 1, false, L, translator, true); + + //LuaAPI.xlua_psettable(L, -2) + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4_S, (sbyte)-3); + il.Emit(OpCodes.Call, LuaAPI_xlua_psettable); + Label settable_no_exception = il.DefineLabel(); + il.Emit(OpCodes.Brfalse, settable_no_exception); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldfld, LuaBase_luaEnv); + il.Emit(OpCodes.Ldloc, oldTop); + il.Emit(OpCodes.Callvirt, LuaEnv_ThrowExceptionFromError); + il.MarkLabel(settable_no_exception); + + //LuaAPI.lua_pop(L, 1); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4_S, (sbyte)1); + il.Emit(OpCodes.Call, LuaAPI_lua_pop); + + il.Emit(OpCodes.Ret); + + prop_builder.SetSetMethod(setter_builder); + + } + } + else if(member.MemberType == MemberTypes.Event) + { + + EventInfo event_info = member as EventInfo; + EventBuilder event_builder = impl_type_builder.DefineEvent(event_info.Name, event_info.Attributes, event_info.EventHandlerType); + if (event_info.GetAddMethod() != null) + { + var add_buildler = defineImplementMethod(impl_type_builder, event_info.GetAddMethod(), + MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig); + emitMethodImpl(event_info.GetAddMethod(), add_buildler.GetILGenerator(), true); + event_builder.SetAddOnMethod(add_buildler); + } + if (event_info.GetRemoveMethod() != null) + { + var remove_buildler = defineImplementMethod(impl_type_builder, event_info.GetRemoveMethod(), + MethodAttributes.Virtual | MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.HideBySig); + emitMethodImpl(event_info.GetRemoveMethod(), remove_buildler.GetILGenerator(), true); + event_builder.SetRemoveOnMethod(remove_buildler); + } + } + } + + + // Constructor + var ctor_param_types = new Type[] { typeof(int), typeof(LuaEnv) }; + ConstructorInfo parent_ctor = typeof(LuaBase).GetConstructor(ctor_param_types); + var ctor_builder = impl_type_builder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, ctor_param_types); + var ctor_il = ctor_builder.GetILGenerator(); + ctor_il.Emit(OpCodes.Ldarg_0); + ctor_il.Emit(OpCodes.Ldarg_1); + ctor_il.Emit(OpCodes.Ldarg_2); + ctor_il.Emit(OpCodes.Call, parent_ctor); + ctor_il.Emit(OpCodes.Ret); + + return impl_type_builder.CreateType(); + } + + private void emitEmptyMethod(ILGenerator il, Type returnType) + { + if(returnType != typeof(void)) + { + if (returnType.IsValueType) + { + LocalBuilder local_new = il.DeclareLocal(returnType); + il.Emit(OpCodes.Ldloca, local_new); + il.Emit(OpCodes.Initobj, returnType); + il.Emit(OpCodes.Ldloc, local_new); + } + else + { + il.Emit(OpCodes.Ldnull); + } + } + il.Emit(OpCodes.Ret); + } + + private MethodBuilder defineImplementMethod(TypeBuilder type_builder, MethodInfo to_be_impl, MethodAttributes attributes, string methodName = null) + { + var parameters = to_be_impl.GetParameters(); + + Type[] param_types = new Type[parameters.Length]; + for (int i = 0; i < parameters.Length; ++i) + { + param_types[i] = parameters[i].ParameterType; + } + + var method_builder = type_builder.DefineMethod(methodName == null ? to_be_impl.Name : methodName, attributes, to_be_impl.ReturnType, param_types); + for (int i = 0; i < parameters.Length; ++i) + { + method_builder.DefineParameter(i + 1, parameters[i].Attributes, parameters[i].Name); + } + return method_builder; + } + + ConstructorInfo decimalConstructor = typeof(decimal).GetConstructor(new Type[] { + typeof(int), typeof(int), typeof(int), typeof(bool), typeof(byte) + }); + + private void emitLiteralLoad(ILGenerator il, Type type, object obj, int localIndex) + { + if (!type.IsValueType && ReferenceEquals(obj, null)) + { + il.Emit(OpCodes.Ldnull); + } + else if(type.IsPrimitive || type.IsEnum()) + { + if (type.IsEnum()) + { + type = Enum.GetUnderlyingType(type); + } + if (typeof(bool) == type) + { + if ((bool)obj == true) + { + il.Emit(OpCodes.Ldc_I4_1); + } + else + { + il.Emit(OpCodes.Ldc_I4_0); + } + } + else if (typeof(uint) == type) + { + il.Emit(OpCodes.Ldc_I4, (int)Convert.ToUInt32(obj)); + } + else if(typeof(byte) == type || typeof(sbyte) == type || typeof(short) == type || + typeof(ushort) == type || typeof(int) == type || typeof(char) == type) + { + il.Emit(OpCodes.Ldc_I4, Convert.ToInt32(obj)); + } + else if (typeof(long) == type) + { + il.Emit(OpCodes.Ldc_I8, Convert.ToInt64(obj)); + } + else if (typeof(ulong) == type) + { + il.Emit(OpCodes.Ldc_I8, (long)Convert.ToUInt64(obj)); + } + else if (typeof(IntPtr) == type || typeof(UIntPtr) == type) + { + il.Emit(OpCodes.Ldloca, localIndex); + il.Emit(OpCodes.Initobj, type); + il.Emit(OpCodes.Ldloc, localIndex); + } + else if (typeof(float) == type) + { + il.Emit(OpCodes.Ldc_R4, Convert.ToSingle(obj)); + } + else if (typeof(double) == type) + { + il.Emit(OpCodes.Ldc_R8, Convert.ToDouble(obj)); + } + else + { + throw new Exception(type + " is not primitive or enum!"); + } + } + else if (type == typeof(string)) + { + il.Emit(OpCodes.Ldstr, obj as string); + } + else if (type == typeof(decimal)) + { + var buffer = decimal.GetBits(Convert.ToDecimal(obj)); + il.Emit(OpCodes.Ldc_I4, buffer[0]); + il.Emit(OpCodes.Ldc_I4, buffer[1]); + il.Emit(OpCodes.Ldc_I4, buffer[2]); + //UnityEngine.Debug.Log(string.Format("{0}.{1}.{2}.{3}--{4}", buffer[0], buffer[1], buffer[2], buffer[3], obj)); + il.Emit(OpCodes.Ldc_I4, (buffer[3] & 0x80000000) == 0 ? 0 : 1); + il.Emit(OpCodes.Ldc_I4, (buffer[3] >> 16) & 0xFF); + il.Emit(OpCodes.Newobj, decimalConstructor); + } + else if (type.IsValueType) + { + il.Emit(OpCodes.Ldloca, localIndex); + il.Emit(OpCodes.Initobj, type); + il.Emit(OpCodes.Ldloc, localIndex); + } + else + { + il.Emit(OpCodes.Ldnull); + } + } + + private void emitMethodImpl(MethodInfo to_be_impl, ILGenerator il, bool isObj) + { + var parameters = to_be_impl.GetParameters(); + + LocalBuilder L = il.DeclareLocal(typeof(RealStatePtr));//RealStatePtr L; 0 + LocalBuilder err_func = il.DeclareLocal(typeof(int));//int err_func; 1 + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator));//ObjectTranslator translator; 2 + LocalBuilder ret = null; + bool has_return = to_be_impl.ReturnType != typeof(void); + if (has_return) + { + ret = il.DeclareLocal(to_be_impl.ReturnType); //ReturnType ret; 3 + } + + // L = LuaBase.L; + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Callvirt, LuaBase_L_getter); + il.Emit(OpCodes.Stloc, L); + + //err_func =LuaAPI.load_error_func(L, errorFuncRef); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Callvirt, DelegateBridgeBase_errorFuncRef_getter); + il.Emit(OpCodes.Call, LuaAPI_load_error_func); + il.Emit(OpCodes.Stloc, err_func); + + //translator = LuaBase.translator; + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Callvirt, LuaBase_translator_getter); + il.Emit(OpCodes.Stloc, translator); + + //LuaAPI.lua_getref(L, luaReference); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldfld, LuaBase_luaReference); + il.Emit(OpCodes.Call, LuaAPI_lua_getref); + + if (isObj) + { + //LuaAPI.lua_pushstring(L, "xxx"); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldstr, to_be_impl.Name); + il.Emit(OpCodes.Call, LuaAPI_lua_pushstring); + + //LuaAPI.xlua_pgettable(L, -2) + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4_S, (sbyte)-2); + il.Emit(OpCodes.Call, LuaAPI_xlua_pgettable); + Label gettable_no_exception = il.DefineLabel(); + il.Emit(OpCodes.Brfalse, gettable_no_exception); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldfld, LuaBase_luaEnv); + il.Emit(OpCodes.Ldloc, err_func); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Sub); + il.Emit(OpCodes.Callvirt, LuaEnv_ThrowExceptionFromError); + il.MarkLabel(gettable_no_exception); + + //LuaAPI.lua_pushvalue(L, -2); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4_S, (sbyte)-2); + il.Emit(OpCodes.Call, LuaAPI_lua_pushvalue); + + //LuaAPI.lua_remove(L, -3); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4_S, (sbyte)-3); + il.Emit(OpCodes.Call, LuaAPI_lua_remove); + } + + int in_param_count = 0; + int out_param_count = 0; + bool has_params = false; + //translator.PushAny(L, param_in) + for (int i = 0; i < parameters.Length; ++i) + { + var pinfo = parameters[i]; + if (!pinfo.IsOut) + { + var ptype = pinfo.ParameterType; + bool isParam = pinfo.IsDefined(typeof(ParamArrayAttribute), false); + emitPush(il, ptype, (short)(i + 1), isParam, L, translator, true); + if (isParam) + { + has_params = true; + } + else + { + ++in_param_count; + } + } + + if (pinfo.ParameterType.IsByRef) + { + ++out_param_count; + } + } + + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4, in_param_count + (isObj ? 1 : 0)); + if (has_params) + { + Label l1 = il.DefineLabel(); + + il.Emit(OpCodes.Ldarg, (short)parameters.Length); + il.Emit(OpCodes.Brfalse, l1); + + il.Emit(OpCodes.Ldarg, (short)parameters.Length); + il.Emit(OpCodes.Ldlen); + il.Emit(OpCodes.Add); + il.MarkLabel(l1); + } + il.Emit(OpCodes.Ldc_I4, out_param_count + (has_return ? 1 : 0)); + il.Emit(OpCodes.Ldloc, err_func); + il.Emit(OpCodes.Call, LuaAPI_lua_pcall); + Label no_exception = il.DefineLabel(); + il.Emit(OpCodes.Brfalse, no_exception); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldfld, LuaBase_luaEnv); + il.Emit(OpCodes.Ldloc, err_func); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Sub); + il.Emit(OpCodes.Callvirt, LuaEnv_ThrowExceptionFromError); + il.MarkLabel(no_exception); + + int offset = 1; + if (has_return) + { + EmitGetObject(il, offset++, to_be_impl.ReturnType, L, translator, err_func); + il.Emit(OpCodes.Stloc, ret); + } + + for (int i = 0; i < parameters.Length; ++i) + { + var pinfo = parameters[i]; + var ptype = pinfo.ParameterType; + if (ptype.IsByRef) + { + il.Emit(OpCodes.Ldarg, (short)(i + 1)); + var pelemtype = ptype.GetElementType(); + EmitGetObject(il, offset++, pelemtype, L, translator, err_func); + if (pelemtype.IsValueType) + { + il.Emit(OpCodes.Stobj, pelemtype); + } + else + { + il.Emit(OpCodes.Stind_Ref); + } + + } + } + + if (has_return) + { + il.Emit(OpCodes.Ldloc, ret); + } + + //LuaAPI.lua_settop(L, err_func - 1); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldloc, err_func); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Sub); + il.Emit(OpCodes.Call, LuaAPI_lua_settop); + + il.Emit(OpCodes.Ret); + } + + private MethodInfo ObjectTranslatorPool_FindTranslator = typeof(ObjectTranslatorPool).GetMethod("FindTranslator"); + private Type[] parameterTypeOfWrap = new Type[] { typeof(RealStatePtr) }; + private MethodInfo ObjectTranslator_Assignable = typeof(ObjectTranslator).GetMethod("Assignable", new Type[] { typeof(RealStatePtr), + typeof(int), typeof(Type)}); + + private MethodInfo Utils_BeginObjectRegister = typeof(Utils).GetMethod("BeginObjectRegister"); + private MethodInfo Utils_EndObjectRegister = typeof(Utils).GetMethod("EndObjectRegister"); + private MethodInfo Utils_BeginClassRegister = typeof(Utils).GetMethod("BeginClassRegister"); + private MethodInfo Utils_EndClassRegister = typeof(Utils).GetMethod("EndClassRegister"); + private MethodInfo Utils_RegisterFunc = typeof(Utils).GetMethod("RegisterFunc"); + private MethodInfo Utils_RegisterObject = typeof(Utils).GetMethod("RegisterObject"); + + private ConstructorInfo LuaCSFunction_Constructor = typeof(LuaCSFunction).GetConstructor(new Type[] { typeof(object), typeof(IntPtr) }); + + private MethodInfo String_Concat = typeof(string).GetMethod("Concat", new Type[] { typeof(object), typeof(object) }); + + void checkType(ILGenerator il, Type type, LocalBuilder translator, int argPos, Label endOfBlock, bool isVParam, bool isDefault) + { + Label endOfCheckType = il.DefineLabel(); + + if (isVParam || isDefault) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldc_I4, argPos); + il.Emit(OpCodes.Call, LuaAPI_lua_type); + il.Emit(OpCodes.Ldc_I4_M1); + il.Emit(OpCodes.Beq, endOfCheckType); + } + + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldc_I4, argPos); + il.Emit(OpCodes.Ldtoken, isVParam ? type.GetElementType() : type); + il.Emit(OpCodes.Call, Type_GetTypeFromHandle); // typeof(DeclaringType) + il.Emit(OpCodes.Callvirt, ObjectTranslator_Assignable); + il.Emit(OpCodes.Brfalse, endOfBlock); + + il.MarkLabel(endOfCheckType); + } + + void emitRegisterFunc(ILGenerator il, MethodBuilder method, int index, string name) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldc_I4, index); + il.Emit(OpCodes.Ldstr, name); + il.Emit(OpCodes.Ldnull); + il.Emit(OpCodes.Ldftn, method); + il.Emit(OpCodes.Newobj, LuaCSFunction_Constructor); + il.Emit(OpCodes.Call, Utils_RegisterFunc); + } + + void emitCatchBlock(ILGenerator il, LocalBuilder ex, LocalBuilder wrapRet, Label retPoint, Label exceptionBlock) + { + il.BeginCatchBlock(typeof(Exception)); + il.Emit(OpCodes.Stloc, ex); + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldstr, "c# exception:"); + il.Emit(OpCodes.Ldloc, ex); + il.Emit(OpCodes.Call, String_Concat); + il.Emit(OpCodes.Call, LuaAPI_luaL_error); + il.Emit(OpCodes.Stloc, wrapRet); + il.Emit(OpCodes.Leave, retPoint); + il.Emit(OpCodes.Leave, exceptionBlock); + + il.EndExceptionBlock(); + } + + public MethodBuilder emitFieldWrap(TypeBuilder typeBuilder, FieldInfo field, bool genGetter) + { + MethodBuilder methodBuilder = typeBuilder.DefineMethod(field.Name + (genID++), MethodAttributes.Static, typeof(int), parameterTypeOfWrap); + methodBuilder.DefineParameter(1, ParameterAttributes.None, "L"); + + ILGenerator il = methodBuilder.GetILGenerator(); + + LocalBuilder L = il.DeclareLocal(typeof(RealStatePtr)); + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator)); + LocalBuilder fieldStore = il.DeclareLocal(field.FieldType); + LocalBuilder wrapRet = il.DeclareLocal(typeof(int)); + LocalBuilder ex = il.DeclareLocal(typeof(Exception)); + + Label exceptionBlock = il.BeginExceptionBlock(); + Label retPoint = il.DefineLabel(); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Stloc, L); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Call, ObjectTranslatorPool_FindTranslator); + il.Emit(OpCodes.Stloc, translator); + + if (genGetter) + { + if (!field.IsStatic) + { + EmitGetObject(il, 1, field.DeclaringType, L, translator, null); + il.Emit(OpCodes.Ldfld, field); + } + else + { + il.Emit(OpCodes.Ldsfld, field); + } + il.Emit(OpCodes.Stloc, fieldStore); + emitPush(il, field.FieldType, 2, false, L, translator, false); + } + else + { + if (!field.IsStatic) + { + EmitGetObject(il, 1, field.DeclaringType, L, translator, null); + LocalBuilder self = null; + if (field.DeclaringType.IsValueType) + { + self = il.DeclareLocal(field.DeclaringType); + il.Emit(OpCodes.Stloc, self); + il.Emit(OpCodes.Ldloca, self); + } + EmitGetObject(il, 2, field.FieldType, L, translator, null); + il.Emit(OpCodes.Stfld, field); + if (self != null) + { + emitUpdateIfNeeded(il, L, translator, field.DeclaringType, 1, self.LocalIndex); + } + } + else + { + EmitGetObject(il, 1, field.FieldType, L, translator, null); + il.Emit(OpCodes.Stsfld, field); + } + } + + il.Emit(OpCodes.Leave, exceptionBlock); + + emitCatchBlock(il, ex, wrapRet, retPoint, exceptionBlock); + + il.Emit(genGetter ? OpCodes.Ldc_I4_1 : OpCodes.Ldc_I4_0); + il.Emit(OpCodes.Ret); + + il.MarkLabel(retPoint); + il.Emit(OpCodes.Ldloc, wrapRet); + il.Emit(OpCodes.Ret); + + return methodBuilder; + } + + public MethodBuilder emitPropertyWrap(TypeBuilder typeBuilder, PropertyInfo prop, MethodInfo op, bool genGetter) + { + MethodBuilder methodBuilder = typeBuilder.DefineMethod(prop.Name + (genID++), MethodAttributes.Static, typeof(int), parameterTypeOfWrap); + methodBuilder.DefineParameter(1, ParameterAttributes.None, "L"); + + ILGenerator il = methodBuilder.GetILGenerator(); + + LocalBuilder L = il.DeclareLocal(typeof(RealStatePtr)); + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator)); + LocalBuilder propStore = il.DeclareLocal(prop.PropertyType); + LocalBuilder wrapRet = il.DeclareLocal(typeof(int)); + LocalBuilder ex = il.DeclareLocal(typeof(Exception)); + + Label exceptionBlock = il.BeginExceptionBlock(); + Label retPoint = il.DefineLabel(); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Stloc, L); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Call, ObjectTranslatorPool_FindTranslator); + il.Emit(OpCodes.Stloc, translator); + + if (genGetter) + { + if (!op.IsStatic) + { + EmitGetObject(il, 1, prop.DeclaringType, L, translator, null); + if (prop.DeclaringType.IsValueType) + { + var self = il.DeclareLocal(prop.DeclaringType); + il.Emit(OpCodes.Stloc, self); + il.Emit(OpCodes.Ldloca, self); + il.Emit(OpCodes.Call, op); + emitUpdateIfNeeded(il, L, translator, prop.DeclaringType, 1, self.LocalIndex); + } + else + { + il.Emit(OpCodes.Callvirt, op); + } + } + else + { + il.Emit(OpCodes.Call, op); + } + il.Emit(OpCodes.Stloc, propStore); + emitPush(il, prop.PropertyType, (short)propStore.LocalIndex, false, L, translator, false); + } + else + { + if (!op.IsStatic) + { + EmitGetObject(il, 1, prop.DeclaringType, L, translator, null); + LocalBuilder self = null; + if (prop.DeclaringType.IsValueType) + { + self = il.DeclareLocal(prop.DeclaringType); + il.Emit(OpCodes.Stloc, self); + il.Emit(OpCodes.Ldloca, self); + } + EmitGetObject(il, 2, prop.PropertyType, L, translator, null); + il.Emit(prop.DeclaringType.IsValueType ? OpCodes.Call : OpCodes.Callvirt, op); + if (self != null) + { + emitUpdateIfNeeded(il, L, translator, prop.DeclaringType, 1, self.LocalIndex); + } + } + else + { + EmitGetObject(il, 1, prop.PropertyType, L, translator, null); + il.Emit(OpCodes.Call, op); + } + } + + il.Emit(OpCodes.Leave, exceptionBlock); + + emitCatchBlock(il, ex, wrapRet, retPoint, exceptionBlock); + + il.Emit(genGetter ? OpCodes.Ldc_I4_1 : OpCodes.Ldc_I4_0); + il.Emit(OpCodes.Ret); + + il.MarkLabel(retPoint); + il.Emit(OpCodes.Ldloc, wrapRet); + il.Emit(OpCodes.Ret); + + return methodBuilder; + } + + static HashSet BlackList = new HashSet(); + + static void addToBlackList(List info) + { + try + { + var type = Type.GetType(info[0], true); + var members = type.GetMember(info[1], BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance | BindingFlags.DeclaredOnly); + foreach(var member in members) + { + if (member.MemberType == MemberTypes.Method) + { + var mb = member as MethodBase; + var parameters = mb.GetParameters(); + if (parameters.Length != info.Count - 2) + { + continue; + } + + bool paramsMatch = true; + + for (int i = 0; i < parameters.Length; i++) + { + if (parameters[i].ParameterType.FullName != info[i + 2]) + { + paramsMatch = false; + break; + } + } + if (paramsMatch) + { + BlackList.Add(member); + } + } + else if (info.Count == 2) + { + BlackList.Add(member); + } + } + } catch { } + } + + static void initBlackList() + { + foreach (var t in Utils.GetAllTypes(true)) + { + if (!t.IsAbstract || !t.IsSealed) continue; + + var fields = t.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < fields.Length; i++) + { + var field = fields[i]; + if (field.IsDefined(typeof(BlackListAttribute), false) + && (typeof(List>)).IsAssignableFrom(field.FieldType)) + { + foreach (var info in (field.GetValue(null) as List>)) + { + addToBlackList(info); + } + } + } + + var props = t.GetProperties(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < props.Length; i++) + { + var prop = props[i]; + if (prop.IsDefined(typeof(BlackListAttribute), false) + && (typeof(List>)).IsAssignableFrom(prop.PropertyType)) + { + foreach (var info in (prop.GetValue(null, null) as List>)) + { + addToBlackList(info); + } + } + } + } + } + + static bool isMemberInBlackList(MemberInfo mb) + { + if (mb is FieldInfo && (mb as FieldInfo).FieldType.IsPointer) return true; + if (mb is PropertyInfo && (mb as PropertyInfo).PropertyType.IsPointer) return true; + + if (mb.IsDefined(typeof(BlackListAttribute), false) || mb.IsDefined(typeof(ObsoleteAttribute), false)) return true; + + return BlackList.Contains(mb); + } + + static bool isMethodInBlackList(MethodBase mb) + { + if (mb.GetParameters().Any(pInfo => pInfo.ParameterType.IsPointer)) return true; + if (mb is MethodInfo && (mb as MethodInfo).ReturnType.IsPointer) return false; + + if (mb.IsDefined(typeof(BlackListAttribute), false) || mb.IsDefined(typeof(ObsoleteAttribute), false)) return true; + + return BlackList.Contains(mb); + } + + public Type EmitTypeWrap(Type toBeWrap) + { + TypeBuilder wrapTypeBuilder = CodeEmitModule.DefineType(toBeWrap.Name + "Wrap" + (genID++), TypeAttributes.Public | TypeAttributes.Class | TypeAttributes.Abstract | TypeAttributes.Sealed); + + var methodBuilder = wrapTypeBuilder.DefineMethod("__Register", MethodAttributes.Static | MethodAttributes.Public, null, parameterTypeOfWrap); + methodBuilder.DefineParameter(1, ParameterAttributes.None, "L"); + + ILGenerator il = methodBuilder.GetILGenerator(); + + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator)); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Call, ObjectTranslatorPool_FindTranslator); + il.Emit(OpCodes.Stloc, translator); + + var instanceFlag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly; + var staticFlag = BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly; + + var instanceFields = toBeWrap.GetFields(instanceFlag).Where(m => !isMemberInBlackList(m)); + var instanceProperties = toBeWrap.GetProperties(instanceFlag).Where(m => !isMemberInBlackList(m)); + var extensionMethods = Utils.GetExtensionMethodsOf(toBeWrap); + extensionMethods = (extensionMethods == null) ? Enumerable.Empty() : extensionMethods.Where(m => !isMemberInBlackList(m)); + var instanceMethods = toBeWrap.GetMethods(instanceFlag) + .Where(m => !isMethodInBlackList(m)) + .Concat(extensionMethods) + .Where(m => Utils.IsSupportedMethod(m)) + .Where(m => !m.IsSpecialName + || ( + ((m.Name == "get_Item" && m.GetParameters().Length == 1) || (m.Name == "set_Item" && m.GetParameters().Length == 2)) + && m.GetParameters()[0].ParameterType.IsAssignableFrom(typeof(string)) + ) + ).GroupBy(m => m.Name).ToList(); + var supportOperators = toBeWrap.GetMethods(staticFlag) + .Where(m => !isMethodInBlackList(m)) + .Where(m => m.IsSpecialName && InternalGlobals.supportOp.ContainsKey(m.Name)) + .GroupBy(m => m.Name); + + //begin obj + il.Emit(OpCodes.Ldtoken, toBeWrap); + il.Emit(OpCodes.Call, Type_GetTypeFromHandle); // typeof(type) + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Ldc_I4_M1); + il.Emit(OpCodes.Call, Utils_BeginObjectRegister); + + foreach(var field in instanceFields) + { + emitRegisterFunc(il, emitFieldWrap(wrapTypeBuilder, field, true), Utils.GETTER_IDX, field.Name); + emitRegisterFunc(il, emitFieldWrap(wrapTypeBuilder, field, false), Utils.SETTER_IDX, field.Name); + } + + List itemGetter = new List(); + List itemSetter = new List(); + + foreach(var prop in instanceProperties) + { + var getter = prop.GetGetMethod(); + if (getter != null && getter.IsPublic) + { + if (prop.GetIndexParameters().Length > 0) + { + if (!prop.GetIndexParameters()[0].ParameterType.IsAssignableFrom(typeof(string))) + { + itemGetter.Add(getter); + } + } + else + { + emitRegisterFunc(il, emitPropertyWrap(wrapTypeBuilder, prop, getter, true), Utils.GETTER_IDX, prop.Name); + } + } + + var setter = prop.GetSetMethod(); + if (setter != null && setter.IsPublic) + { + if (prop.GetIndexParameters().Length > 0) + { + if (!prop.GetIndexParameters()[0].ParameterType.IsAssignableFrom(typeof(string))) + { + itemSetter.Add(setter); + } + } + else + { + emitRegisterFunc(il, emitPropertyWrap(wrapTypeBuilder, prop, setter, false), Utils.SETTER_IDX, prop.Name); + } + } + } + + foreach (var group in instanceMethods) + { + emitRegisterFunc(il, emitMethodWrap(wrapTypeBuilder, group.Cast().ToList(), false, toBeWrap), Utils.METHOD_IDX, group.Key); + } + + foreach (var group in supportOperators) + { + emitRegisterFunc(il, emitMethodWrap(wrapTypeBuilder, group.Cast().ToList(), false, toBeWrap), Utils.OBJ_META_IDX, InternalGlobals.supportOp[group.Key]); + } + + foreach (var ev in toBeWrap.GetEvents(instanceFlag).Where(m => !isMemberInBlackList(m))) + { + emitRegisterFunc(il, emitEventWrap(wrapTypeBuilder, ev), Utils.METHOD_IDX, ev.Name); + } + + //end obj + il.Emit(OpCodes.Ldtoken, toBeWrap); + il.Emit(OpCodes.Call, Type_GetTypeFromHandle); // typeof(type) + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Ldnull); + if (itemGetter.Count > 0) + { + il.Emit(OpCodes.Ldftn, emitMethodWrap(wrapTypeBuilder, itemGetter, true, toBeWrap)); + il.Emit(OpCodes.Newobj, LuaCSFunction_Constructor); + } + il.Emit(OpCodes.Ldnull); + if (itemSetter.Count > 0) + { + il.Emit(OpCodes.Ldftn, emitMethodWrap(wrapTypeBuilder, itemSetter, true, toBeWrap)); + il.Emit(OpCodes.Newobj, LuaCSFunction_Constructor); + } + il.Emit(OpCodes.Ldnull); + il.Emit(OpCodes.Ldnull); + il.Emit(OpCodes.Ldnull); + il.Emit(OpCodes.Call, Utils_EndObjectRegister); + + // begin class + il.Emit(OpCodes.Ldtoken, toBeWrap); + il.Emit(OpCodes.Call, Type_GetTypeFromHandle); // typeof(type) + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldnull); + il.Emit(OpCodes.Ldftn, emitMethodWrap(wrapTypeBuilder, + toBeWrap.GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase) + .Where(m => !isMethodInBlackList(m)) + .Cast().ToList(), false, toBeWrap, toBeWrap.ToString() + " constructor")); + il.Emit(OpCodes.Newobj, LuaCSFunction_Constructor); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Call, Utils_BeginClassRegister); + + var staticMethods = toBeWrap.GetMethods(staticFlag) + .Where(m => !isMethodInBlackList(m)) + .Where(m => Utils.IsSupportedMethod(m)) + .Where(m => !m.IsSpecialName).GroupBy(m => m.Name); + + var staticFields = toBeWrap.GetFields(staticFlag).Where(m => !isMemberInBlackList(m)); + + var staticProperties = toBeWrap.GetProperties(staticFlag).Where(m => !isMemberInBlackList(m)); + + foreach (var group in staticMethods) + { + emitRegisterFunc(il, emitMethodWrap(wrapTypeBuilder, group.Cast().ToList(), false, toBeWrap), Utils.CLS_IDX, group.Key); + } + + foreach (var ev in toBeWrap.GetEvents(staticFlag).Where(m => !isMemberInBlackList(m))) + { + emitRegisterFunc(il, emitEventWrap(wrapTypeBuilder, ev), Utils.CLS_IDX, ev.Name); + } + + foreach (var prop in staticProperties) + { + var getter = prop.GetGetMethod(); + if (getter != null && getter.IsPublic) + { + emitRegisterFunc(il, emitPropertyWrap(wrapTypeBuilder, prop, getter, true), Utils.GETTER_IDX, prop.Name); + } + + var setter = prop.GetSetMethod(); + if (setter != null && setter.IsPublic) + { + emitRegisterFunc(il, emitPropertyWrap(wrapTypeBuilder, prop, setter, false), Utils.SETTER_IDX, prop.Name); + } + } + + foreach (var field in staticFields) + { + if (field.IsInitOnly || field.IsLiteral) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Ldc_I4, Utils.CLS_IDX); + il.Emit(OpCodes.Ldstr, field.Name); + if (field.IsLiteral) + { + LocalBuilder literalStore = il.DeclareLocal(field.FieldType); + emitLiteralLoad(il, field.FieldType, field.GetValue(null), literalStore.LocalIndex); + il.Emit(OpCodes.Stloc, literalStore); + il.Emit(OpCodes.Ldloc, literalStore); + } + else + { + il.Emit(OpCodes.Ldsfld, field); + } + if (field.FieldType.IsValueType) + { + il.Emit(OpCodes.Box, field.FieldType); + } + il.Emit(OpCodes.Call, Utils_RegisterObject); + } + else + { + emitRegisterFunc(il, emitFieldWrap(wrapTypeBuilder, field, true), Utils.CLS_GETTER_IDX, field.Name); + emitRegisterFunc(il, emitFieldWrap(wrapTypeBuilder, field, false), Utils.CLS_SETTER_IDX, field.Name); + } + } + + //end class + il.Emit(OpCodes.Ldtoken, toBeWrap); + il.Emit(OpCodes.Call, Type_GetTypeFromHandle); // typeof(type) + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Call, Utils_EndClassRegister); + + il.Emit(OpCodes.Ret); + + return wrapTypeBuilder.CreateType(); + } + + MethodBuilder emitEventWrap(TypeBuilder typeBuilder, EventInfo ev) + { + var addEvent = ev.GetAddMethod(); + var removeEvent = ev.GetRemoveMethod(); + + if (addEvent == null && removeEvent == null) + { + return null; + } + + bool isStatic = addEvent != null ? addEvent.IsStatic : removeEvent.IsStatic; + + var methodBuilder = typeBuilder.DefineMethod(ev.Name + (genID++), MethodAttributes.Static, typeof(int), parameterTypeOfWrap); + methodBuilder.DefineParameter(1, ParameterAttributes.None, "L"); + + ILGenerator il = methodBuilder.GetILGenerator(); + + LocalBuilder wrapRet = il.DeclareLocal(typeof(int)); + LocalBuilder ex = il.DeclareLocal(typeof(Exception)); + LocalBuilder L = il.DeclareLocal(typeof(RealStatePtr)); + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator)); + LocalBuilder callback = il.DeclareLocal(ev.EventHandlerType); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Stloc, L); + + Label exceptionBlock = il.BeginExceptionBlock(); + Label retPoint = il.DefineLabel(); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Call, ObjectTranslatorPool_FindTranslator); + il.Emit(OpCodes.Stloc, translator); + + EmitGetObject(il, isStatic ? 2 : 3, ev.EventHandlerType, L, translator, null); + il.Emit(OpCodes.Stloc, callback); + il.Emit(OpCodes.Ldloc, callback); + Label ifBlock = il.DefineLabel(); + il.Emit(OpCodes.Brtrue, ifBlock); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldstr, string.Format("#{0}, need {1}", isStatic ? 2 : 3, ev.EventHandlerType)); + il.Emit(OpCodes.Call, LuaAPI_luaL_error); + il.Emit(OpCodes.Stloc, wrapRet); + il.Emit(OpCodes.Leave, retPoint); + il.MarkLabel(ifBlock); + + if (addEvent != null) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(isStatic ? OpCodes.Ldc_I4_1 : OpCodes.Ldc_I4_2); + il.Emit(OpCodes.Ldstr, "+"); + il.Emit(OpCodes.Call, LuaAPI_xlua_is_eq_str); + ifBlock = il.DefineLabel(); + il.Emit(OpCodes.Brfalse, ifBlock); + + if (!isStatic) + { + EmitGetObject(il, 1, ev.DeclaringType, L, translator, null); + if (ev.DeclaringType.IsValueType) + { + var self = il.DeclareLocal(ev.DeclaringType); + il.Emit(OpCodes.Stloc, self); + il.Emit(OpCodes.Ldloca, self); + } + } + il.Emit(OpCodes.Ldloc, callback); + il.Emit(OpCodes.Call, addEvent); + il.Emit(OpCodes.Ldc_I4_0); + il.Emit(OpCodes.Leave, retPoint); + il.MarkLabel(ifBlock); + } + + if (removeEvent != null) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(isStatic ? OpCodes.Ldc_I4_1 : OpCodes.Ldc_I4_2); + il.Emit(OpCodes.Ldstr, "-"); + il.Emit(OpCodes.Call, LuaAPI_xlua_is_eq_str); + ifBlock = il.DefineLabel(); + il.Emit(OpCodes.Brfalse, ifBlock); + + if (!isStatic) + { + EmitGetObject(il, 1, ev.DeclaringType, L, translator, null); + if (ev.DeclaringType.IsValueType) + { + var self = il.DeclareLocal(ev.DeclaringType); + il.Emit(OpCodes.Stloc, self); + il.Emit(OpCodes.Ldloca, self); + } + } + il.Emit(OpCodes.Ldloc, callback); + il.Emit(OpCodes.Call, removeEvent); + il.Emit(OpCodes.Ldc_I4_0); + il.Emit(OpCodes.Leave, retPoint); + il.MarkLabel(ifBlock); + } + + il.Emit(OpCodes.Leave, exceptionBlock); + + emitCatchBlock(il, ex, wrapRet, retPoint, exceptionBlock); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldstr, "invalid arguments to " + ev.DeclaringType + "." + ev.Name + "!"); + il.Emit(OpCodes.Call, LuaAPI_luaL_error); + il.Emit(OpCodes.Ret); + + il.MarkLabel(retPoint); + il.Emit(OpCodes.Ldloc, wrapRet); + il.Emit(OpCodes.Ret); + + return methodBuilder; + } + + void emitUpdateIfNeeded(ILGenerator il, LocalBuilder L, LocalBuilder translator, Type type, int luaIndex, int localIndex) + { + if (type.IsValueType && !type.IsPrimitive && !type.IsEnum() && type != typeof(decimal)) + { + //UnityEngine.Debug.LogWarning("-----------------emit update:" + type); + il.Emit(OpCodes.Ldloc, translator); + il.Emit(OpCodes.Ldloc, L); + il.Emit(OpCodes.Ldc_I4, luaIndex); + il.Emit(OpCodes.Ldloc, localIndex); + il.Emit(OpCodes.Box, type); + il.Emit(OpCodes.Callvirt, ObjectTranslator_Update); + } + } + + //private MethodInfo UnityEngine_Debug_Log = typeof(UnityEngine.Debug).GetMethod("Log", new Type[] { typeof(object)}); + int firstDefaultValue(MethodBase method) + { + var parameters = method.GetParameters(); + for(int i = 0; i < parameters.Length; i++) + { + if (parameters[i].IsOptional) return i; + } + return -1; + } + + MethodBuilder emitMethodWrap(TypeBuilder typeBuilder, List methodsToCall, bool isIndexer, Type declaringType, string methodDesciption = null) + { + string wrapName = (methodsToCall.Count > 0 ? methodsToCall[0].Name : "Constructor"); + var methodBuilder = typeBuilder.DefineMethod(wrapName + (genID++), MethodAttributes.Static, typeof(int), parameterTypeOfWrap); + methodBuilder.DefineParameter(1, ParameterAttributes.None, "L"); + + bool needCheckParameterType = (methodsToCall.Count > 1) || isIndexer; + + if (methodsToCall.Count == 0 || methodsToCall[0].IsConstructor) + { + needCheckParameterType = true; + } + + if (methodsToCall.Count == 1 && firstDefaultValue(methodsToCall[0]) != -1) + { + needCheckParameterType = true; + } + + ILGenerator il = methodBuilder.GetILGenerator(); + + LocalBuilder wrapRet = il.DeclareLocal(typeof(int)); + LocalBuilder ex = il.DeclareLocal(typeof(Exception)); + LocalBuilder L = il.DeclareLocal(typeof(RealStatePtr)); + LocalBuilder translator = il.DeclareLocal(typeof(ObjectTranslator)); + LocalBuilder top = il.DeclareLocal(typeof(int)); + + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Stloc, L); + + Label exceptionBlock = il.BeginExceptionBlock(); + Label retPoint = il.DefineLabel(); + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Call, ObjectTranslatorPool_FindTranslator); + il.Emit(OpCodes.Stloc, translator); + + if (needCheckParameterType) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Call, LuaAPI_lua_gettop); + il.Emit(OpCodes.Stloc, top); + } + + for (int i = 0; i < methodsToCall.Count; i++) + { + var method = methodsToCall[i]; + if ((method is MethodInfo) && method.ContainsGenericParameters) + { + method = Utils.MakeGenericMethodWithConstraints(method as MethodInfo); + } + bool isStatic = method.IsStatic; + var paramInfos = method.GetParameters(); + int minInParamCount = 0; + int maxInParamCount = 0; + int outParamCount = 0; + bool hasParams = paramInfos.Length > 0 && paramInfos[paramInfos.Length - 1].IsDefined(typeof(ParamArrayAttribute), false); + bool hasOptional = false; + + LocalBuilder methodReturn = null; + + for (int j = 0; j < paramInfos.Length; j++) + { + if (!paramInfos[j].IsOut) + { + if (!paramInfos[j].IsOptional && (!hasParams || j != paramInfos.Length - 1)) + { + minInParamCount++; + } + maxInParamCount++; + } + if (paramInfos[j].IsOptional) + { + hasOptional = true; + } + if (paramInfos[j].ParameterType.IsByRef) + { + outParamCount++; + } + } + + Label endOfBlock = il.DefineLabel(); + + if (needCheckParameterType) + { + il.Emit(OpCodes.Ldloc, top); + il.Emit(OpCodes.Ldc_I4, minInParamCount + (isStatic ? 0 : 1)); + il.Emit((hasParams || hasOptional) ? OpCodes.Blt : OpCodes.Bne_Un, endOfBlock); + + if (hasOptional && !hasParams) + { + il.Emit(OpCodes.Ldloc, top); + il.Emit(OpCodes.Ldc_I4, maxInParamCount + (isStatic ? 0 : 1)); + il.Emit(OpCodes.Bgt, endOfBlock); + } + + if (!isStatic && !method.IsConstructor) + { + checkType(il, method.DeclaringType, translator, 1, endOfBlock, false, false); + } + + int argPos = isStatic ? 1 : 2; + + for (int j = 0; j < paramInfos.Length; j++) + { + var paramInfo = paramInfos[j]; + if (!paramInfo.IsOut) + { + var rawParamType = paramInfo.ParameterType; + if (rawParamType.IsByRef) + { + rawParamType = rawParamType.GetElementType(); + } + checkType(il, rawParamType, translator, argPos++, endOfBlock, + hasParams && (j == paramInfos.Length - 1), paramInfo.IsOptional); + } + } + } + + int luaPos = isStatic ? 1 : 2; + + int argStoreStart = -1; + + for (int j = 0; j < paramInfos.Length; j++) + { + var paramInfo = paramInfos[j]; + var paramRawType = paramInfo.ParameterType.IsByRef ? paramInfo.ParameterType.GetElementType() : + paramInfo.ParameterType; + var argStore = il.DeclareLocal(paramRawType); + if (paramInfo.IsOptional) + { + //UnityEngine.Debug.Log(paramInfo.Name + "," + paramRawType + "," + paramInfo.DefaultValue); + emitLiteralLoad(il, paramRawType, paramInfo.DefaultValue, argStore.LocalIndex); + il.Emit(OpCodes.Stloc, argStore); + } + //UnityEngine.Debug.LogWarning(declaringType.Name + "." + method.Name + "." + paramInfos[j].Name + " pos(d):" + argStore.LocalIndex + ", pt:" + paramRawType + ", j:" + j); + if (argStoreStart == -1) + { + argStoreStart = argStore.LocalIndex; + } + + } + for (int j = 0; j < paramInfos.Length; j++) + { + var paramInfo = paramInfos[j]; + var paramRawType = paramInfo.ParameterType.IsByRef ? paramInfo.ParameterType.GetElementType() : + paramInfo.ParameterType; + if (!paramInfo.IsOut) + { + Label endOfGetValue = il.DefineLabel(); + if (paramInfo.IsOptional) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldc_I4, luaPos); + il.Emit(OpCodes.Call, LuaAPI_lua_type); + il.Emit(OpCodes.Ldc_I4_M1); + il.Emit(OpCodes.Beq, endOfGetValue); + } + EmitGetObject(il, luaPos++, paramRawType, L, translator, null, hasParams && (j == paramInfos.Length - 1)); + il.Emit(OpCodes.Stloc, argStoreStart + j); + il.MarkLabel(endOfGetValue); + } + } + + LocalBuilder valueTypeTmp = null; + + if (!isStatic && (!method.IsConstructor || method.DeclaringType.IsValueType)) + { + if (!method.IsConstructor) + { + EmitGetObject(il, 1, method.DeclaringType, L, translator, null); + } + if (method.DeclaringType.IsValueType) + { + if (method.IsConstructor) + { + methodReturn = il.DeclareLocal(method.DeclaringType); + il.Emit(OpCodes.Ldloca, methodReturn); + } + else + { + valueTypeTmp = il.DeclareLocal(method.DeclaringType); + il.Emit(OpCodes.Stloc, valueTypeTmp); + il.Emit(OpCodes.Ldloca, valueTypeTmp); + } + } + } + + for (int j = 0; j < paramInfos.Length; j++) + { + //UnityEngine.Debug.LogWarning(declaringType.Name + "." + method.Name + "." + paramInfos[j].Name +" pos:" + (argStoreStart + j) + ", op:" + (paramInfos[j].ParameterType.IsByRef ? OpCodes.Ldloca : OpCodes.Ldloc) + ", j:" + j ); + il.Emit(paramInfos[j].ParameterType.IsByRef ? OpCodes.Ldloca : OpCodes.Ldloc, argStoreStart + j); + } + + if (method.IsConstructor) + { + if (method.DeclaringType.IsValueType) + { + il.Emit(OpCodes.Call, method as ConstructorInfo); + } + else + { + il.Emit(OpCodes.Newobj, method as ConstructorInfo); + } + } + else + { + il.Emit(isStatic ? OpCodes.Call : OpCodes.Callvirt, method as MethodInfo); + } + + if (valueTypeTmp != null) + { + emitUpdateIfNeeded(il, L, translator, method.DeclaringType, 1, valueTypeTmp.LocalIndex); + } + + if (isIndexer) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Call, LuaAPI_lua_pushboolean); + } + + bool hasReturn = false; + + MethodInfo methodInfo = method as MethodInfo; + if (methodInfo == null || methodInfo.ReturnType != typeof(void)) + { + hasReturn = true; + Type returnType = methodInfo == null ? method.DeclaringType : methodInfo.ReturnType; + if (methodReturn == null) + { + methodReturn = il.DeclareLocal(returnType); + il.Emit(OpCodes.Stloc, methodReturn); + } + emitPush(il, returnType, (short)methodReturn.LocalIndex, false, L, translator, false); + } + + int luaIndex = isStatic ? 1 : 2; + for (int j = 0; j < paramInfos.Length; j++) + { + if (paramInfos[j].ParameterType.IsByRef) + { + var rawParamType = paramInfos[j].ParameterType.GetElementType(); + emitPush(il, rawParamType, + (short)(argStoreStart + j), false, L, translator, false); + if (!paramInfos[j].IsOut) + { + emitUpdateIfNeeded(il, L, translator, rawParamType, luaIndex, argStoreStart + j); + } + } + if (!paramInfos[j].IsOut) + { + luaIndex++; + } + } + + il.Emit(OpCodes.Ldc_I4, outParamCount + (hasReturn ? 1 : 0) + (isIndexer ? 1 : 0)); + il.Emit(OpCodes.Stloc, wrapRet); + il.Emit(OpCodes.Leave, retPoint); + //il.Emit(OpCodes.Ret); + + if (needCheckParameterType) + { + il.MarkLabel(endOfBlock); + } + } + + if (declaringType.IsValueType && (methodsToCall.Count == 0 || methodsToCall[0].IsConstructor)) + { + Label endOfBlock = il.DefineLabel(); + il.Emit(OpCodes.Ldloc, top); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Bne_Un, endOfBlock); + + var methodReturn = il.DeclareLocal(declaringType); + + il.Emit(OpCodes.Ldloca, methodReturn); + il.Emit(OpCodes.Initobj, declaringType); + emitPush(il, declaringType, (short)methodReturn.LocalIndex, false, L, translator, false); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Stloc, wrapRet); + il.Emit(OpCodes.Leave_S, retPoint); + il.MarkLabel(endOfBlock); + } + + il.Emit(OpCodes.Leave, exceptionBlock); + emitCatchBlock(il, ex, wrapRet, retPoint, exceptionBlock); + + if (needCheckParameterType) + { + if (isIndexer) + { + il.Emit(OpCodes.Ldarg_0); + il.Emit(OpCodes.Ldc_I4_0); + il.Emit(OpCodes.Call, LuaAPI_lua_pushboolean); + il.Emit(OpCodes.Ldc_I4_1); + il.Emit(OpCodes.Ret); + } + else + { + il.Emit(OpCodes.Ldarg_0); + if (methodDesciption == null) + { + if (methodsToCall.Count > 0) + { + methodDesciption = declaringType + "." + methodsToCall[0].Name; + } + else + { + methodDesciption = "unknow method in " + declaringType; + } + } + il.Emit(OpCodes.Ldstr, "invalid arguments to " + methodDesciption + "!"); + il.Emit(OpCodes.Call, LuaAPI_luaL_error); + il.Emit(OpCodes.Ret); + } + } + + il.MarkLabel(retPoint); + il.Emit(OpCodes.Ldloc, wrapRet); + il.Emit(OpCodes.Ret); + + return methodBuilder; + } + } +} + +#endif diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CodeEmit.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CodeEmit.cs.meta new file mode 100644 index 00000000..795d5bb5 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CodeEmit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 95b951a9c3443844085a894d735e6f5a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CopyByValue.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CopyByValue.cs new file mode 100644 index 00000000..d82e1bf8 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CopyByValue.cs @@ -0,0 +1,150 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; + +namespace XLua +{ + public static partial class CopyByValue + { + // for int 8 + public static bool Pack(IntPtr buff, int offset, byte field) + { + return LuaAPI.xlua_pack_int8_t(buff, offset, field); + } + public static bool UnPack(IntPtr buff, int offset, out byte field) + { + return LuaAPI.xlua_unpack_int8_t(buff, offset, out field); + } + public static bool Pack(IntPtr buff, int offset, sbyte field) + { + return LuaAPI.xlua_pack_int8_t(buff, offset, (byte)field); + } + public static bool UnPack(IntPtr buff, int offset, out sbyte field) + { + byte tfield; + bool ret = LuaAPI.xlua_unpack_int8_t(buff, offset, out tfield); + field = (sbyte)tfield; + return ret; + } + // for int16 + public static bool Pack(IntPtr buff, int offset, short field) + { + return LuaAPI.xlua_pack_int16_t(buff, offset, field); + } + public static bool UnPack(IntPtr buff, int offset, out short field) + { + return LuaAPI.xlua_unpack_int16_t(buff, offset, out field); + } + public static bool Pack(IntPtr buff, int offset, ushort field) + { + return LuaAPI.xlua_pack_int16_t(buff, offset, (short)field); + } + public static bool UnPack(IntPtr buff, int offset, out ushort field) + { + short tfield; + bool ret = LuaAPI.xlua_unpack_int16_t(buff, offset, out tfield); + field = (ushort)tfield; + return ret; + } + // for int32 + public static bool Pack(IntPtr buff, int offset, int field) + { + return LuaAPI.xlua_pack_int32_t(buff, offset, field); + } + public static bool UnPack(IntPtr buff, int offset, out int field) + { + return LuaAPI.xlua_unpack_int32_t(buff, offset, out field); + } + public static bool Pack(IntPtr buff, int offset, uint field) + { + return LuaAPI.xlua_pack_int32_t(buff, offset, (int)field); + } + public static bool UnPack(IntPtr buff, int offset, out uint field) + { + int tfield; + bool ret = LuaAPI.xlua_unpack_int32_t(buff, offset, out tfield); + field = (uint)tfield; + return ret; + } + // for int64 + public static bool Pack(IntPtr buff, int offset, long field) + { + return LuaAPI.xlua_pack_int64_t(buff, offset, field); + } + public static bool UnPack(IntPtr buff, int offset, out long field) + { + return LuaAPI.xlua_unpack_int64_t(buff, offset, out field); + } + public static bool Pack(IntPtr buff, int offset, ulong field) + { + return LuaAPI.xlua_pack_int64_t(buff, offset, (long)field); + } + public static bool UnPack(IntPtr buff, int offset, out ulong field) + { + long tfield; + bool ret = LuaAPI.xlua_unpack_int64_t(buff, offset, out tfield); + field = (ulong)tfield; + return ret; + } + // for float + public static bool Pack(IntPtr buff, int offset, float field) + { + return LuaAPI.xlua_pack_float(buff, offset, field); + } + public static bool UnPack(IntPtr buff, int offset, out float field) + { + return LuaAPI.xlua_unpack_float(buff, offset, out field); + } + // for double + public static bool Pack(IntPtr buff, int offset, double field) + { + return LuaAPI.xlua_pack_double(buff, offset, field); + } + public static bool UnPack(IntPtr buff, int offset, out double field) + { + return LuaAPI.xlua_unpack_double(buff, offset, out field); + } + // for decimal + public static bool Pack(IntPtr buff, int offset, decimal field) + { + return LuaAPI.xlua_pack_decimal(buff, offset, ref field); + } + public static bool UnPack(IntPtr buff, int offset, out decimal field) + { + byte scale; + byte sign; + int hi32; + ulong lo64; + if (!LuaAPI.xlua_unpack_decimal(buff, offset, out scale, out sign, out hi32, out lo64)) + { + field = default(decimal); + return false; + } + + field = new Decimal((int)(lo64 & 0xFFFFFFFF), (int)(lo64 >> 32), hi32, (sign & 0x80) != 0, scale); + return true; + } + + public static bool IsStruct(Type type) + { + return type.IsValueType() && !type.IsEnum() && !type.IsPrimitive(); + } + + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CopyByValue.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CopyByValue.cs.meta new file mode 100644 index 00000000..5b8d2072 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/CopyByValue.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4efe0ed849f28a64b9a5423f228009cf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/DelegateBridge.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/DelegateBridge.cs new file mode 100644 index 00000000..1bf5d0af --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/DelegateBridge.cs @@ -0,0 +1,246 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; + +namespace XLua +{ + public abstract class DelegateBridgeBase : LuaBase + { + private Type firstKey = null; + + private Delegate firstValue = null; + + private Dictionary bindTo = null; + + protected int errorFuncRef; + + public DelegateBridgeBase(int reference, LuaEnv luaenv) : base(reference, luaenv) + { + errorFuncRef = luaenv.errorFuncRef; + } + + public bool TryGetDelegate(Type key, out Delegate value) + { + if(key == firstKey) + { + value = firstValue; + return true; + } + if (bindTo != null) + { + return bindTo.TryGetValue(key, out value); + } + value = null; + return false; + } + + public void AddDelegate(Type key, Delegate value) + { + if (key == firstKey) + { + throw new ArgumentException("An element with the same key already exists in the dictionary."); + } + + if (firstKey == null && bindTo == null) // nothing + { + firstKey = key; + firstValue = value; + } + else if (firstKey != null && bindTo == null) // one key existed + { + bindTo = new Dictionary(); + bindTo.Add(firstKey, firstValue); + firstKey = null; + firstValue = null; + bindTo.Add(key, value); + } + else + { + bindTo.Add(key, value); + } + } + + public virtual Delegate GetDelegateByType(Type type) + { + return null; + } + } + + public static class HotfixDelegateBridge + { +#if (UNITY_IPHONE || UNITY_TVOS) && !UNITY_EDITOR + [DllImport("__Internal", CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_get_hotfix_flag(int idx); + + + [DllImport("__Internal", CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_set_hotfix_flag(int idx, bool flag); +#else + public static bool xlua_get_hotfix_flag(int idx) + { + return (idx < DelegateBridge.DelegateBridgeList.Length) && (DelegateBridge.DelegateBridgeList[idx] != null); + } +#endif + + public static DelegateBridge Get(int idx) + { + return DelegateBridge.DelegateBridgeList[idx]; + } + + public static void Set(int idx, DelegateBridge val) + { + if (idx >= DelegateBridge.DelegateBridgeList.Length) + { + DelegateBridge[] newList = new DelegateBridge[idx + 1]; + for (int i = 0; i < DelegateBridge.DelegateBridgeList.Length; i++) + { + newList[i] = DelegateBridge.DelegateBridgeList[i]; + } + DelegateBridge.DelegateBridgeList = newList; + } + DelegateBridge.DelegateBridgeList[idx] = val; +#if (UNITY_IPHONE || UNITY_TVOS) && !UNITY_EDITOR + xlua_set_hotfix_flag(idx, val != null); +#endif + } + } + + public partial class DelegateBridge : DelegateBridgeBase + { + internal static DelegateBridge[] DelegateBridgeList = new DelegateBridge[0]; + + public static bool Gen_Flag = false; + + public DelegateBridge(int reference, LuaEnv luaenv) : base(reference, luaenv) + { + } + + public void PCall(IntPtr L, int nArgs, int nResults, int errFunc) + { + if (LuaAPI.lua_pcall(L, nArgs, nResults, errFunc) != 0) + luaEnv.ThrowExceptionFromError(errFunc - 1); + } + +#if HOTFIX_ENABLE + + private int _oldTop = 0; + private Stack _stack = new Stack(); + + public void InvokeSessionStart() + { + System.Threading.Monitor.Enter(luaEnv.luaEnvLock); + var L = luaEnv.L; + _stack.Push(_oldTop); + _oldTop = LuaAPI.lua_gettop(L); + LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + } + + public void Invoke(int nRet) + { + int error = LuaAPI.lua_pcall(luaEnv.L, LuaAPI.lua_gettop(luaEnv.L) - _oldTop - 2, nRet, _oldTop + 1); + if (error != 0) + { + var lastOldTop = _oldTop; + _oldTop = _stack.Pop(); + System.Threading.Monitor.Exit(luaEnv.luaEnvLock); + luaEnv.ThrowExceptionFromError(lastOldTop); + } + } + + public void InvokeSessionEnd() + { + LuaAPI.lua_settop(luaEnv.L, _oldTop); + _oldTop = _stack.Pop(); + System.Threading.Monitor.Exit(luaEnv.luaEnvLock); + } + + public TResult InvokeSessionEndWithResult() + { + if (LuaAPI.lua_gettop(luaEnv.L) < _oldTop + 2) + { + InvokeSessionEnd(); + throw new InvalidOperationException("no result!"); + } + + try + { + TResult ret; + luaEnv.translator.Get(luaEnv.L, _oldTop + 2, out ret); + return ret; + } + finally + { + InvokeSessionEnd(); + } + } + + public void InParam(T p) + { + try + { + luaEnv.translator.PushByType(luaEnv.L, p); + } + catch (Exception e) + { + InvokeSessionEnd(); + throw e; + } + } + + public void InParams(T[] ps) + { + try + { + for (int i = 0; i < ps.Length; i++) + { + luaEnv.translator.PushByType(luaEnv.L, ps[i]); + } + } + catch (Exception e) + { + InvokeSessionEnd(); + throw e; + } + } + + //pos start from 0 + public void OutParam(int pos, out TResult ret) + { + if (LuaAPI.lua_gettop(luaEnv.L) < _oldTop + 2 + pos) + { + InvokeSessionEnd(); + throw new InvalidOperationException("no result in " + pos); + } + + try + { + luaEnv.translator.Get(luaEnv.L, _oldTop + 2 + pos, out ret); + } + catch (Exception e) + { + InvokeSessionEnd(); + throw e; + } + } +#endif + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/DelegateBridge.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/DelegateBridge.cs.meta new file mode 100644 index 00000000..c00513fc --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/DelegateBridge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9bd47cb21c6363741a20a12b82003ebc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor.meta new file mode 100644 index 00000000..c1669520 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b604b9556abedc84db4f97700190407e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Generator.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Generator.cs new file mode 100644 index 00000000..632757ca --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Generator.cs @@ -0,0 +1,1832 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if !XLUA_GENERAL +using UnityEngine; +using UnityEditor; +#endif +using System.Collections.Generic; +using System.IO; +using XLua; +using System; +using System.Reflection; +using System.Text; +using System.Linq; +using System.Runtime.CompilerServices; + +namespace CSObjectWrapEditor +{ + public static class GeneratorConfig + { +#if XLUA_GENERAL + public static string common_path = "./Gen/"; +#else + public static string common_path = Application.dataPath + "/XLua/Gen/"; +#endif + + static GeneratorConfig() + { + foreach(var type in (from type in XLua.Utils.GetAllTypes() + where type.IsAbstract && type.IsSealed + select type)) + { + foreach (var field in type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly)) + { + if (field.FieldType == typeof(string) && field.IsDefined(typeof(GenPathAttribute), false)) + { + common_path = field.GetValue(null) as string; + if (!common_path.EndsWith("/")) + { + common_path = common_path + "/"; + } + } + } + + foreach (var prop in type.GetProperties(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly)) + { + if (prop.PropertyType == typeof(string) && prop.IsDefined(typeof(GenPathAttribute), false)) + { + common_path = prop.GetValue(null, null) as string; + if (!common_path.EndsWith("/")) + { + common_path = common_path + "/"; + } + } + } + } + } + } + + public struct CustomGenTask + { + public LuaTable Data; + public TextWriter Output; + } + + public struct UserConfig + { + public IEnumerable LuaCallCSharp; + public IEnumerable CSharpCallLua; + public IEnumerable ReflectionUse; + } + + public class GenCodeMenuAttribute : Attribute + { + + } + + public class GenPathAttribute : Attribute + { + + } + + public struct XLuaTemplate + { + public string name; + public string text; + } + + public struct XLuaTemplates + { + public XLuaTemplate LuaClassWrap; + public XLuaTemplate LuaDelegateBridge; + public XLuaTemplate LuaDelegateWrap; + public XLuaTemplate LuaEnumWrap; + public XLuaTemplate LuaInterfaceBridge; + public XLuaTemplate LuaRegister; + public XLuaTemplate LuaWrapPusher; + public XLuaTemplate PackUnpack; + public XLuaTemplate TemplateCommon; + } + + public static class Generator + { + static LuaEnv luaenv = new LuaEnv(); + static List OpMethodNames = new List() { "op_Addition", "op_Subtraction", "op_Multiply", "op_Division", "op_Equality", "op_UnaryNegation", "op_LessThan", "op_LessThanOrEqual", "op_Modulus", + "op_BitwiseAnd", "op_BitwiseOr", "op_ExclusiveOr", "op_OnesComplement", "op_LeftShift", "op_RightShift"}; + private static XLuaTemplates templateRef; + + static Generator() + { +#if !XLUA_GENERAL + TemplateRef template_ref = ScriptableObject.CreateInstance(); + + templateRef = new XLuaTemplates() + { +#if GEN_CODE_MINIMIZE + LuaClassWrap = { name = template_ref.LuaClassWrapGCM.name, text = template_ref.LuaClassWrapGCM.text }, +#else + LuaClassWrap = { name = template_ref.LuaClassWrap.name, text = template_ref.LuaClassWrap.text }, +#endif + LuaDelegateBridge = { name = template_ref.LuaDelegateBridge.name, text = template_ref.LuaDelegateBridge.text }, + LuaDelegateWrap = { name = template_ref.LuaDelegateWrap.name, text = template_ref.LuaDelegateWrap.text }, +#if GEN_CODE_MINIMIZE + LuaEnumWrap = { name = template_ref.LuaEnumWrapGCM.name, text = template_ref.LuaEnumWrapGCM.text }, +#else + LuaEnumWrap = { name = template_ref.LuaEnumWrap.name, text = template_ref.LuaEnumWrap.text }, +#endif + LuaInterfaceBridge = { name = template_ref.LuaInterfaceBridge.name, text = template_ref.LuaInterfaceBridge.text }, +#if GEN_CODE_MINIMIZE + LuaRegister = { name = template_ref.LuaRegisterGCM.name, text = template_ref.LuaRegisterGCM.text }, +#else + LuaRegister = { name = template_ref.LuaRegister.name, text = template_ref.LuaRegister.text }, +#endif + LuaWrapPusher = { name = template_ref.LuaWrapPusher.name, text = template_ref.LuaWrapPusher.text }, + PackUnpack = { name = template_ref.PackUnpack.name, text = template_ref.PackUnpack.text }, + TemplateCommon = { name = template_ref.TemplateCommon.name, text = template_ref.TemplateCommon.text }, + }; +#endif + luaenv.AddLoader((ref string filepath) => + { + if (filepath == "TemplateCommon") + { + return Encoding.UTF8.GetBytes(templateRef.TemplateCommon.text); + } + else + { + return null; + } + }); + } + + static bool IsOverride(MethodBase method) + { + var m = method as MethodInfo; + return m != null && !m.IsConstructor && m.IsVirtual && (m.GetBaseDefinition().DeclaringType != m.DeclaringType); + } + + static int OverloadCosting(MethodBase mi) + { + int costing = 0; + + if (!mi.IsStatic) + { + costing++; + } + + foreach (var paraminfo in mi.GetParameters()) + { + if ((!paraminfo.ParameterType.IsPrimitive ) && (paraminfo.IsIn || !paraminfo.IsOut)) + { + costing++; + } + } + costing = costing * 10000 + (mi.GetParameters().Length + (mi.IsStatic ? 0 : 1)); + return costing; + } + + static IEnumerable type_has_extension_methods = null; + + static IEnumerable GetExtensionMethods(Type extendedType) + { + if (type_has_extension_methods == null) + { + var gen_types = LuaCallCSharp; + + type_has_extension_methods = from type in gen_types + where type.GetMethods(BindingFlags.Static | BindingFlags.Public) + .Any(method => isDefined(method, typeof(ExtensionAttribute))) + select type; + } + return from type in type_has_extension_methods + where type.IsSealed && !type.IsGenericType && !type.IsNested + from method in type.GetMethods(BindingFlags.Static | BindingFlags.Public) + where isSupportedExtensionMethod(method, extendedType) + select method; + } + + static bool isSupportedExtensionMethod(MethodBase method, Type extendedType) + { + if (!isDefined(method, typeof(ExtensionAttribute))) + return false; + var methodParameters = method.GetParameters(); + if (methodParameters.Length < 1) + return false; + + var hasValidGenericParameter = false; + for (var i = 0; i < methodParameters.Length; i++) + { + var parameterType = methodParameters[i].ParameterType; + if (i == 0) + { + if (parameterType.IsGenericParameter) + { + var parameterConstraints = parameterType.GetGenericParameterConstraints(); + if (parameterConstraints.Length == 0) return false; + bool firstParamMatch = false; + foreach (var parameterConstraint in parameterConstraints) + { + if (parameterConstraint != typeof(ValueType) && parameterConstraint.IsAssignableFrom(extendedType)) + { + firstParamMatch = true; + } + } + if (!firstParamMatch) return false; + + hasValidGenericParameter = true; + } + else if (parameterType != extendedType) + return false; + } + else if (parameterType.IsGenericParameter) + { + var parameterConstraints = parameterType.GetGenericParameterConstraints(); + if (parameterConstraints.Length == 0) return false; + foreach (var parameterConstraint in parameterConstraints) + { + if (!parameterConstraint.IsClass || (parameterConstraint == typeof(ValueType)) || Generator.hasGenericParameter(parameterConstraint)) + return false; + } + hasValidGenericParameter = true; + } + } + return hasValidGenericParameter || !method.ContainsGenericParameters; + } + + static bool IsDoNotGen(Type type, string name) + { + return DoNotGen.ContainsKey(type) && DoNotGen[type].Contains(name); + } + + static void getClassInfo(Type type, LuaTable parameters) + { + parameters.Set("type", type); + + var constructors = new List(); + var constructor_def_vals = new List(); + if (!type.IsAbstract) + { + foreach (var con in type.GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase).Cast() + .Where(constructor => !isMethodInBlackList(constructor) && !isObsolete(constructor))) + { + int def_count = 0; + constructors.Add(con); + constructor_def_vals.Add(def_count); + + var ps = con.GetParameters(); + for (int i = ps.Length - 1; i >= 0; i--) + { + if (ps[i].IsOptional || + (ps[i].IsDefined(typeof(ParamArrayAttribute), false) && i > 0 && ps[i - 1].IsOptional)) + { + def_count++; + constructors.Add(con); + constructor_def_vals.Add(def_count); + } + else + { + break; + } + } + } + } + parameters.Set("constructors", constructors); + parameters.Set("constructor_def_vals", constructor_def_vals); + + List extension_methods_namespace = new List(); + var extension_methods = type.IsInterface ? new MethodInfo[0]:GetExtensionMethods(type).ToArray(); + foreach(var extension_method in extension_methods) + { + if (extension_method.DeclaringType.Namespace != null + && extension_method.DeclaringType.Namespace != "System.Collections.Generic" + && extension_method.DeclaringType.Namespace != "XLua") + { + extension_methods_namespace.Add(extension_method.DeclaringType.Namespace); + } + } + parameters.Set("namespaces", extension_methods_namespace.Distinct().ToList()); + + List lazyMemberInfos = new List(); + + //warnning: filter all method start with "op_" "add_" "remove_" may filter some ordinary method + parameters.Set("methods", type.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly) + .Where(method => !isDefined(method, typeof (ExtensionAttribute)) || method.GetParameters()[0].ParameterType.IsInterface || method.DeclaringType != type) + .Where(method => !method.IsSpecialName + || ( + ((method.Name == "get_Item" && method.GetParameters().Length == 1) || (method.Name == "set_Item" && method.GetParameters().Length == 2)) + && method.GetParameters()[0].ParameterType.IsAssignableFrom(typeof(string)) + ) + ) + .Concat(extension_methods) + .Where(method => !IsDoNotGen(type, method.Name)) + .Where(method => !isMethodInBlackList(method) && (!method.IsGenericMethod || extension_methods.Contains(method) || isSupportedGenericMethod(method)) && !isObsolete(method)) + .GroupBy(method => (method.Name + ((method.IsStatic && (!isDefined(method, typeof (ExtensionAttribute)) || method.GetParameters()[0].ParameterType.IsInterface)) ? "_xlua_st_" : "")), (k, v) => + { + var overloads = new List(); + List def_vals = new List(); + bool isOverride = false; + foreach (var overload in v.Cast().OrderBy(mb => OverloadCosting(mb))) + { + int def_count = 0; + overloads.Add(overload); + def_vals.Add(def_count); + + if (!isOverride) + { + isOverride = IsOverride(overload); + } + + var ps = overload.GetParameters(); + for (int i = ps.Length - 1; i >=0; i--) + { + if(ps[i].IsOptional || + (ps[i].IsDefined(typeof(ParamArrayAttribute), false) && i > 0 && ps[i - 1].IsOptional)) + { + def_count++; + overloads.Add(overload); + def_vals.Add(def_count); + } + else + { + break; + } + } + } + + return new { + Name = k, + IsStatic = overloads[0].IsStatic && (!isDefined(overloads[0], typeof(ExtensionAttribute)) || overloads[0].GetParameters()[0].ParameterType.IsInterface), + Overloads = overloads, + DefaultValues = def_vals + }; + }).ToList()); + + parameters.Set("getters", type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly) + + .Where(prop => prop.GetIndexParameters().Length == 0 && prop.CanRead && (prop.GetGetMethod() != null) && prop.Name != "Item" && !isObsolete(prop) && !isObsolete(prop.GetGetMethod()) && !isMemberInBlackList(prop) && !isMemberInBlackList(prop.GetGetMethod())).Select(prop => new { prop.Name, IsStatic = prop.GetGetMethod().IsStatic, ReadOnly = false, Type = prop.PropertyType }) + .Concat( + type.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly) + .Where(field => !isObsolete(field) && !isMemberInBlackList(field)) + .Select(field => new { field.Name, field.IsStatic, ReadOnly = field.IsInitOnly || field.IsLiteral, Type = field.FieldType }) + ).Where(info => !IsDoNotGen(type, info.Name))/*.Where(getter => !typeof(Delegate).IsAssignableFrom(getter.Type))*/.ToList()); + + parameters.Set("setters", type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly) + .Where(prop => prop.GetIndexParameters().Length == 0 && prop.CanWrite && (prop.GetSetMethod() != null) && prop.Name != "Item" && !isObsolete(prop) && !isObsolete(prop.GetSetMethod()) && !isMemberInBlackList(prop) && !isMemberInBlackList(prop.GetSetMethod())).Select(prop => new { prop.Name, IsStatic = prop.GetSetMethod().IsStatic, Type = prop.PropertyType, IsProperty = true }) + .Concat( + type.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly) + .Where(field => !isObsolete(field) && !isMemberInBlackList(field) && !field.IsInitOnly && !field.IsLiteral) + .Select(field => new { field.Name, field.IsStatic, Type = field.FieldType, IsProperty = false }) + ).Where(info => !IsDoNotGen(type, info.Name))/*.Where(setter => !typeof(Delegate).IsAssignableFrom(setter.Type))*/.ToList()); + + parameters.Set("operators", type.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly) + .Where(method => OpMethodNames.Contains(method.Name)) + .GroupBy(method => method.Name, (k, v) => new { Name = k, Overloads = v.Cast().OrderBy(mb => mb.GetParameters().Length).ToList() }).ToList()); + + var indexers = type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly).Where(prop => prop.GetIndexParameters().Length > 0); + + parameters.Set("indexers", indexers.Where(prop => prop.CanRead && (prop.GetGetMethod() != null)).Select(prop => prop.GetGetMethod()) + .Where(method => method.GetParameters().Length == 1 && !method.GetParameters()[0].ParameterType.IsAssignableFrom(typeof(string))) + .ToList()); + + parameters.Set("newindexers", indexers.Where(prop => prop.CanWrite && (prop.GetSetMethod() != null)).Select(prop => prop.GetSetMethod()) + .Where(method => method.GetParameters().Length == 2 && !method.GetParameters()[0].ParameterType.IsAssignableFrom(typeof(string))) + .ToList()); + + parameters.Set("events", type.GetEvents(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly).Where(e => !isObsolete(e) && !isMemberInBlackList(e)) + .Where(ev=> ev.GetAddMethod() != null || ev.GetRemoveMethod() != null) + .Where(ev => !IsDoNotGen(type, ev.Name)) + .Select(ev => new { IsStatic = ev.GetAddMethod() != null? ev.GetAddMethod().IsStatic: ev.GetRemoveMethod().IsStatic, ev.Name, + CanSet = false, CanAdd = ev.GetRemoveMethod() != null, CanRemove = ev.GetRemoveMethod() != null, Type = ev.EventHandlerType}) + .ToList()); + + parameters.Set("lazymembers", lazyMemberInfos); + foreach (var member in type.GetMembers(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.IgnoreCase | BindingFlags.DeclaredOnly) + .Where(m => IsDoNotGen(type, m.Name)) + .GroupBy(m=>m.Name).Select(g => g.First()) + ) + { + switch(member.MemberType) + { + case MemberTypes.Method: + MethodBase mb = member as MethodBase; + lazyMemberInfos.Add(new LazyMemberInfo + { + Index = mb.IsStatic ? "CLS_IDX" : "METHOD_IDX", + Name = member.Name, + MemberType = "LazyMemberTypes.Method", + IsStatic = mb.IsStatic ? "true" : "false" + }); + break; + case MemberTypes.Event: + EventInfo ev = member as EventInfo; + if (ev.GetAddMethod() == null && ev.GetRemoveMethod() == null) break; + bool eventIsStatic = ev.GetAddMethod() != null ? ev.GetAddMethod().IsStatic : ev.GetRemoveMethod().IsStatic; + lazyMemberInfos.Add(new LazyMemberInfo { + Index = eventIsStatic ? "CLS_IDX" : "METHOD_IDX", + Name = member.Name, + MemberType = "LazyMemberTypes.Event", + IsStatic = eventIsStatic ? "true" : "false" + }); + break; + case MemberTypes.Field: + FieldInfo field = member as FieldInfo; + lazyMemberInfos.Add(new LazyMemberInfo + { + Index = field.IsStatic ? "CLS_GETTER_IDX" : "GETTER_IDX", + Name = member.Name, + MemberType = "LazyMemberTypes.FieldGet", + IsStatic = field.IsStatic ? "true" : "false" + }); + lazyMemberInfos.Add(new LazyMemberInfo + { + Index = field.IsStatic ? "CLS_SETTER_IDX" : "SETTER_IDX", + Name = member.Name, + MemberType = "LazyMemberTypes.FieldSet", + IsStatic = field.IsStatic ? "true" : "false" + }); + break; + case MemberTypes.Property: + PropertyInfo prop = member as PropertyInfo; + if (prop.Name != "Item" || prop.GetIndexParameters().Length == 0) + { + if (prop.CanRead && prop.GetGetMethod() != null) + { + var isStatic = prop.GetGetMethod().IsStatic; + lazyMemberInfos.Add(new LazyMemberInfo + { + Index = isStatic ? "CLS_GETTER_IDX" : "GETTER_IDX", + Name = member.Name, + MemberType = "LazyMemberTypes.PropertyGet", + IsStatic = isStatic ? "true" : "false" + }); + } + if (prop.CanWrite && prop.GetSetMethod() != null) + { + var isStatic = prop.GetSetMethod().IsStatic; + lazyMemberInfos.Add(new LazyMemberInfo + { + Index = isStatic ? "CLS_SETTER_IDX" : "SETTER_IDX", + Name = member.Name, + MemberType = "LazyMemberTypes.PropertySet", + IsStatic = isStatic ? "true" : "false" + }); + } + } + break; + } + } + } + + class LazyMemberInfo + { + public string Index; + public string Name; + public string MemberType; + public string IsStatic; + } + + static void getInterfaceInfo(Type type, LuaTable parameters) + { + parameters.Set("type", type); + + var itfs = new Type[] { type }.Concat(type.GetInterfaces()); + parameters.Set("methods", itfs.SelectMany(i => i.GetMethods()) + .Where(method => !method.IsSpecialName && !method.IsGenericMethod && !method.Name.StartsWith("op_") && !method.Name.StartsWith("add_") && !method.Name.StartsWith("remove_")) //GenericMethod can not be invoke becuase not static info available! + .ToList()); + + parameters.Set("propertys", itfs.SelectMany(i => i.GetProperties()) + .Where(prop => (prop.CanRead || prop.CanWrite) && prop.Name != "Item") + .ToList()); + + parameters.Set("events", itfs.SelectMany(i => i.GetEvents()).ToList()); + + parameters.Set("indexers", itfs.SelectMany(i => i.GetProperties()) + .Where(prop => (prop.CanRead || prop.CanWrite) && prop.Name == "Item") + .ToList()); + } + + static bool isObsolete(MemberInfo mb) + { + if (mb == null) return false; + ObsoleteAttribute oa = GetCustomAttribute(mb, typeof(ObsoleteAttribute)) as ObsoleteAttribute; +#if XLUA_GENERAL && !XLUA_ALL_OBSOLETE || XLUA_JUST_EXCLUDE_ERROR + return oa != null && oa.IsError; +#else + return oa != null; +#endif + } + + static bool isObsolete(Type type) + { + if (type == null) return false; + if (isObsolete(type as MemberInfo)) + { + return true; + } + return (type.DeclaringType != null) ? isObsolete(type.DeclaringType) : false; + } + + static bool isMemberInBlackList(MemberInfo mb) + { + if (isDefined(mb, typeof(BlackListAttribute))) return true; + if (mb is FieldInfo && (mb as FieldInfo).FieldType.IsPointer) return true; + if (mb is PropertyInfo && (mb as PropertyInfo).PropertyType.IsPointer) return true; + + foreach(var filter in memberFilters) + { + if (filter(mb)) + { + return true; + } + } + + foreach (var exclude in BlackList) + { + if (mb.DeclaringType.ToString() == exclude[0] && mb.Name == exclude[1]) + { + return true; + } + } + + return false; + } + + static bool isMethodInBlackList(MethodBase mb) + { + if (isDefined(mb, typeof(BlackListAttribute))) return true; + + //指针目前不支持,先过滤 + if (mb.GetParameters().Any(pInfo => pInfo.ParameterType.IsPointer)) return true; + if (mb is MethodInfo && (mb as MethodInfo).ReturnType.IsPointer) return true; + + foreach (var filter in memberFilters) + { + if (filter(mb)) + { + return true; + } + } + + foreach (var exclude in BlackList) + { + if (mb.DeclaringType.ToString() == exclude[0] && mb.Name == exclude[1]) + { + var parameters = mb.GetParameters(); + if (parameters.Length != exclude.Count - 2) + { + continue; + } + bool paramsMatch = true; + + for (int i = 0; i < parameters.Length; i++) + { + if (parameters[i].ParameterType.ToString() != exclude[i + 2]) + { + paramsMatch = false; + break; + } + } + if (paramsMatch) return true; + } + } + return false; + } + + static Dictionary templateCache = new Dictionary(); + static void GenOne(Type type, Action type_info_getter, XLuaTemplate templateAsset, StreamWriter textWriter) + { + if (isObsolete(type)) return; + LuaFunction template; + if (!templateCache.TryGetValue(templateAsset.name, out template)) + { + template = XLua.TemplateEngine.LuaTemplate.Compile(luaenv, templateAsset.text); + templateCache[templateAsset.name] = template; + } + + LuaTable type_info = luaenv.NewTable(); + LuaTable meta = luaenv.NewTable(); + meta.Set("__index", luaenv.Global); + type_info.SetMetaTable(meta); + meta.Dispose(); + + type_info_getter(type, type_info); + + try + { + string genCode = XLua.TemplateEngine.LuaTemplate.Execute(template, type_info); + //string filePath = save_path + type.ToString().Replace("+", "").Replace(".", "").Replace("`", "").Replace("&", "").Replace("[", "").Replace("]", "").Replace(",", "") + file_suffix + ".cs"; + textWriter.Write(genCode); + textWriter.Flush(); + } + catch (Exception e) + { +#if XLUA_GENERAL + System.Console.WriteLine("Error: gen wrap file fail! err=" + e.Message + ", stack=" + e.StackTrace); +#else + Debug.LogError("gen wrap file fail! err=" + e.Message + ", stack=" + e.StackTrace); +#endif + } + finally + { + type_info.Dispose(); + } + } + + static void GenEnumWrap(IEnumerable types, string save_path) + { + string filePath = save_path + "EnumWrap.cs"; + StreamWriter textWriter = new StreamWriter(filePath, false, Encoding.UTF8); + + GenOne(null, (type, type_info) => + { + var type2fields = luaenv.NewTable(); + foreach(var _type in types) + type2fields.Set(_type, _type.GetFields(BindingFlags.Public | BindingFlags.Static).Where(x => !isMemberInBlackList(x)).ToArray()); + type_info.Set("type2fields", type2fields); + type_info.Set("types", types.ToList()); + }, templateRef.LuaEnumWrap, textWriter); + + textWriter.Close(); + } + + static string NonmalizeName(string name) + { + return name.Replace("+", "_").Replace(".", "_").Replace("`", "_").Replace("&", "_").Replace("[", "_").Replace("]", "_").Replace(",", "_"); + } + + static void GenInterfaceBridge(IEnumerable types, string save_path) + { + foreach (var wrap_type in types) + { + if (!wrap_type.IsInterface) continue; + + string filePath = save_path + NonmalizeName(wrap_type.ToString()) + "Bridge.cs"; + StreamWriter textWriter = new StreamWriter(filePath, false, Encoding.UTF8); + GenOne(wrap_type, (type, type_info) => + { + getInterfaceInfo(type, type_info); + }, templateRef.LuaInterfaceBridge, textWriter); + textWriter.Close(); + } + } + + class ParameterInfoSimulation + { + public string Name; + public bool IsOut; + public bool IsIn; + public Type ParameterType; + public bool IsParamArray; + } + + class MethodInfoSimulation + { + public Type ReturnType; + public ParameterInfoSimulation[] ParameterInfos; + + public int HashCode; + + public ParameterInfoSimulation[] GetParameters() + { + return ParameterInfos; + } + + public Type DeclaringType = null; + public string DeclaringTypeName = null; + } + + static MethodInfoSimulation makeMethodInfoSimulation(MethodInfo method) + { + int hashCode = method.ReturnType.GetHashCode(); + + List paramsExpect = new List(); + + foreach (var param in method.GetParameters()) + { + if (param.IsOut) + { + hashCode++; + } + hashCode += param.ParameterType.GetHashCode(); + paramsExpect.Add(new ParameterInfoSimulation() + { + Name = param.Name, + IsOut = param.IsOut, + IsIn = param.IsIn, + ParameterType = param.ParameterType, + IsParamArray = param.IsDefined(typeof(System.ParamArrayAttribute), false) + }); + } + + return new MethodInfoSimulation() + { + ReturnType = method.ReturnType, + HashCode = hashCode, + ParameterInfos = paramsExpect.ToArray(), + DeclaringType = method.DeclaringType + }; + } + + static bool isNotPublic(Type type) + { + if (type.IsByRef || type.IsArray) + { + return isNotPublic(type.GetElementType()); + } + else + { + if ((!type.IsNested && !type.IsPublic) || (type.IsNested && !type.IsNestedPublic)) + { + return true; + } + if (type.IsGenericType) + { + foreach (var ga in type.GetGenericArguments()) + { + if (isNotPublic(ga)) + { + return true; + } + } + } + if (type.IsNested) + { + var parent = type.DeclaringType; + while (parent != null) + { + if ((!parent.IsNested && !parent.IsPublic) || (parent.IsNested && !parent.IsNestedPublic)) + { + return true; + } + if (parent.IsNested) + { + parent = parent.DeclaringType; + } + else + { + break; + } + } + } + return false; + } + } + + static bool hasGenericParameter(Type type) + { + if (type.IsByRef || type.IsArray) + { + return hasGenericParameter(type.GetElementType()); + } + if (type.IsGenericType) + { + foreach (var typeArg in type.GetGenericArguments()) + { + if (hasGenericParameter(typeArg)) + { + return true; + } + } + return false; + } + return type.IsGenericParameter; + } + + static MethodInfoSimulation makeHotfixMethodInfoSimulation(MethodBase hotfixMethod, HotfixFlag hotfixType) + { + bool ignoreValueType = hotfixType.HasFlag(HotfixFlag.ValueTypeBoxing); + //ignoreValueType = true; + + Type retTypeExpect = (hotfixMethod.IsConstructor ? typeof(void) : (hotfixMethod as MethodInfo).ReturnType); + int hashCode = retTypeExpect.GetHashCode(); + List paramsExpect = new List(); + if (!hotfixMethod.IsStatic) // add self + { + paramsExpect.Add(new ParameterInfoSimulation() + { + Name = "self", + IsOut = false, + IsIn = true, + ParameterType = (hotfixMethod.DeclaringType.IsValueType && !ignoreValueType) ? hotfixMethod.DeclaringType : typeof(object), + IsParamArray = false + }); + hashCode += paramsExpect[0].ParameterType.GetHashCode(); + } + + foreach (var param in hotfixMethod.GetParameters()) + { + var paramExpect = new ParameterInfoSimulation() + { + Name = param.Name, + IsOut = param.IsOut, + IsIn = param.IsIn, + ParameterType = (param.ParameterType.IsByRef || (param.ParameterType.IsValueType && !ignoreValueType) + || param.IsDefined(typeof(System.ParamArrayAttribute), false)) ? param.ParameterType : typeof(object), + IsParamArray = param.IsDefined(typeof(System.ParamArrayAttribute), false) + }; + if (param.IsOut) + { + hashCode++; + } + hashCode += paramExpect.ParameterType.GetHashCode(); + paramsExpect.Add(paramExpect); + } + + return new MethodInfoSimulation() + { + HashCode = hashCode, + ReturnType = retTypeExpect, + ParameterInfos = paramsExpect.ToArray() + }; + } + + class MethodInfoSimulationComparer : IEqualityComparer + { + public bool Equals(MethodInfoSimulation x, MethodInfoSimulation y) + { + if (object.ReferenceEquals(x, y)) return true; + if (x == null || y == null) + { + return false; + } + if (x.ReturnType != y.ReturnType) + { + return false; + } + var xParams = x.GetParameters(); + var yParams = y.GetParameters(); + if (xParams.Length != yParams.Length) + { + return false; + } + + for (int i = 0; i < xParams.Length; i++) + { + if (xParams[i].ParameterType != yParams[i].ParameterType || xParams[i].IsOut != yParams[i].IsOut) + { + return false; + } + } + + var lastPos = xParams.Length - 1; + return lastPos < 0 || xParams[lastPos].IsParamArray == yParams[lastPos].IsParamArray; + } + public int GetHashCode(MethodInfoSimulation obj) + { + return obj.HashCode; + } + } + + static bool injectByGeneric(MethodBase method, HotfixFlag hotfixType) + { + bool ignoreValueType = hotfixType.HasFlag(HotfixFlag.ValueTypeBoxing); + //ignoreValueType = true; + + if (!method.IsConstructor && (isNotPublic((method as MethodInfo).ReturnType) || hasGenericParameter((method as MethodInfo).ReturnType))) return true; + + if (!method.IsStatic + &&(((method.DeclaringType.IsValueType && !ignoreValueType) && isNotPublic(method.DeclaringType)) || hasGenericParameter(method.DeclaringType))) + { + return true; + } + + foreach (var param in method.GetParameters()) + { + if ((((param.ParameterType.IsValueType && !ignoreValueType) + || param.ParameterType.IsByRef || param.IsDefined(typeof(System.ParamArrayAttribute), false)) && isNotPublic(param.ParameterType)) + || hasGenericParameter(param.ParameterType)) + return true; + } + return false; + } + + static bool HasFlag(this HotfixFlag toCheck, HotfixFlag flag) + { + return (toCheck != HotfixFlag.Stateless) && ((toCheck & flag) == flag); + } + + static void GenDelegateBridge(IEnumerable types, string save_path, IEnumerable hotfix_check_types) + { + string filePath = save_path + "DelegatesGensBridge.cs"; + StreamWriter textWriter = new StreamWriter(filePath, false, Encoding.UTF8); + types = types.Where(type => !type.GetMethod("Invoke").GetParameters().Any(paramInfo => paramInfo.ParameterType.IsGenericParameter)); + var hotfxDelegates = new List(); + var comparer = new MethodInfoSimulationComparer(); + + var bindingAttrOfMethod = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly | BindingFlags.NonPublic; + var bindingAttrOfConstructor = BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.NonPublic; + foreach (var type in (from type in hotfix_check_types where isDefined(type, typeof(HotfixAttribute)) select type)) + { + var ca = GetCustomAttribute(type, typeof(HotfixAttribute)); +#if XLUA_GENERAL + var hotfixType = (HotfixFlag)Convert.ToInt32(ca.GetType().GetProperty("Flag").GetValue(ca, null)); +#else + var hotfixType = (ca as HotfixAttribute).Flag; +#endif + HotfixCfg[type] = hotfixType; + } + foreach (var kv in HotfixCfg) + { + if (kv.Key.Name.Contains("<") || kv.Value.HasFlag(HotfixFlag.Inline)) + { + continue; + } + bool ignoreProperty = kv.Value.HasFlag(HotfixFlag.IgnoreProperty); + bool ignoreNotPublic = kv.Value.HasFlag(HotfixFlag.IgnoreNotPublic); + bool ignoreCompilerGenerated = kv.Value.HasFlag(HotfixFlag.IgnoreCompilerGenerated); + if (ignoreCompilerGenerated && isDefined(kv.Key, typeof(CompilerGeneratedAttribute))) + { + continue; + } + //ignoreProperty = true; + hotfxDelegates.AddRange(kv.Key.GetMethods(bindingAttrOfMethod) + .Where(method => method.GetMethodBody() != null) + .Where(method => !method.Name.Contains("<")) + .Where(method => !ignoreCompilerGenerated || !isDefined(method, typeof(CompilerGeneratedAttribute))) + .Where(method => !ignoreNotPublic || method.IsPublic) + .Where(method => !ignoreProperty || !method.IsSpecialName || (!method.Name.StartsWith("get_") && !method.Name.StartsWith("set_"))) + .Cast() + .Concat(kv.Key.GetConstructors(bindingAttrOfConstructor).Cast()) + .Where(method => !injectByGeneric(method, kv.Value)) + .Select(method => makeHotfixMethodInfoSimulation(method, kv.Value))); + } + hotfxDelegates = hotfxDelegates.Distinct(comparer).ToList(); + for(int i = 0; i < hotfxDelegates.Count; i++) + { + hotfxDelegates[i].DeclaringTypeName = "__Gen_Hotfix_Delegate" + i; + } + + var delegates_groups = types.Select(delegate_type => makeMethodInfoSimulation(delegate_type.GetMethod("Invoke"))) + .Where(d => d.DeclaringType.FullName != null) + .Concat(hotfxDelegates) + .GroupBy(d => d, comparer).Select((group) => new { Key = group.Key, Value = group.ToList()}); + GenOne(typeof(DelegateBridge), (type, type_info) => + { + type_info.Set("delegates_groups", delegates_groups.ToList()); + }, templateRef.LuaDelegateBridge, textWriter); + textWriter.Close(); + } + + static void GenWrapPusher(IEnumerable types, string save_path) + { + string filePath = save_path + "WrapPusher.cs"; + StreamWriter textWriter = new StreamWriter(filePath, false, Encoding.UTF8); + var emptyMap = new Dictionary(); + GenOne(typeof(ObjectTranslator), (type, type_info) => + { + type_info.Set("purevaluetypes", types + .Where(t => t.IsEnum || (!t.IsPrimitive && SizeOf(t) != -1)) + .Select(t => new { + Type = t, + Size = SizeOf(t), + Flag = t.IsEnum ? OptimizeFlag.Default : OptimizeCfg[t], + FieldInfos = (t.IsEnum || OptimizeCfg[t] == OptimizeFlag.Default) ? null : getXluaTypeInfo(t, emptyMap).FieldInfos + }).ToList()); + type_info.Set("tableoptimzetypes", types.Where(t => !t.IsEnum && SizeOf(t) == -1) + .Select(t => new { Type = t, Fields = t.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly) }) + .ToList()); + }, templateRef.LuaWrapPusher, textWriter); + textWriter.Close(); + } + + static void GenWrap(IEnumerable types, string save_path) + { + types = types.Where(type=>!type.IsEnum); + +#if GENERIC_SHARING + types = types.GroupBy(t => t.IsGenericType ? t.GetGenericTypeDefinition() : t).Select(g => g.Key); +#endif + + var typeMap = types.ToDictionary(type => { + //Debug.Log("type:" + type); + return type.ToString(); + }); + + foreach (var wrap_type in types) + { + string filePath = save_path + NonmalizeName(wrap_type.ToString()) + "Wrap.cs"; + StreamWriter textWriter = new StreamWriter(filePath, false, Encoding.UTF8); + if (wrap_type.IsEnum) + { + GenOne(wrap_type, (type, type_info) => + { + type_info.Set("type", type); + type_info.Set("fields", type.GetFields(BindingFlags.GetField | BindingFlags.Public | BindingFlags.Static) + .Where(field => !isObsolete(field)) + .ToList()); + }, templateRef.LuaEnumWrap, textWriter); + } + else if (typeof(Delegate).IsAssignableFrom(wrap_type)) + { + + + GenOne(wrap_type, (type, type_info) => + { + type_info.Set("type", type); + type_info.Set("delegate", type.GetMethod("Invoke")); + }, templateRef.LuaDelegateWrap, textWriter); + + } + else + { + GenOne(wrap_type, (type, type_info) => + { + if (type.BaseType != null && typeMap.ContainsKey(type.BaseType.ToString())) + { + type_info.Set("base", type.BaseType); + } + getClassInfo(type, type_info); + }, templateRef.LuaClassWrap, textWriter); + } + textWriter.Close(); + } + } + +#if !XLUA_GENERAL + static void clear(string path) + { + if (Directory.Exists(path)) + { + Directory.Delete(path, true); + AssetDatabase.DeleteAsset(path.Substring(path.IndexOf("Assets") + "Assets".Length)); + + AssetDatabase.Refresh(); + } + } +#endif + + class DelegateByMethodDecComparer : IEqualityComparer + { + public bool Equals(Type x, Type y) + { + return XLua.Utils.IsParamsMatch(x.GetMethod("Invoke"), y.GetMethod("Invoke")); + } + public int GetHashCode(Type obj) + { + int hc = 0; + var method = obj.GetMethod("Invoke"); + hc += method.ReturnType.GetHashCode(); + foreach (var pi in method.GetParameters()) + { + hc += pi.ParameterType.GetHashCode(); + } + return hc; + } + } + + public static void GenDelegateBridges(IEnumerable hotfix_check_types) + { + var delegate_types = CSharpCallLua.Where(type => typeof(Delegate).IsAssignableFrom(type)); + + GenDelegateBridge(delegate_types, GeneratorConfig.common_path, hotfix_check_types); + } + + public static void GenEnumWraps() + { + var enum_types = LuaCallCSharp.Where(type => type.IsEnum).Distinct(); + + GenEnumWrap(enum_types, GeneratorConfig.common_path); + } + + static MethodInfo makeGenericMethodIfNeeded(MethodInfo method) + { + if (!method.ContainsGenericParameters) return method; + + var genericArguments = method.GetGenericArguments(); + var constraintedArgumentTypes = new Type[genericArguments.Length]; + for (var i = 0; i < genericArguments.Length; i++) + { + var argumentType = genericArguments[i]; + var parameterConstraints = argumentType.GetGenericParameterConstraints(); + Type parameterConstraint = parameterConstraints[0]; + foreach(var type in argumentType.GetGenericParameterConstraints()) + { + if (parameterConstraint.IsAssignableFrom(type)) + { + parameterConstraint = type; + } + } + + constraintedArgumentTypes[i] = parameterConstraint; + } + return method.MakeGenericMethod(constraintedArgumentTypes); + } + + public static void GenLuaRegister(bool minimum = false) + { + var wraps = minimum ? new List() : LuaCallCSharp; + + var itf_bridges = CSharpCallLua.Where(t => t.IsInterface); + + string filePath = GeneratorConfig.common_path + "XLuaGenAutoRegister.cs"; + StreamWriter textWriter = new StreamWriter(filePath, false, Encoding.UTF8); + + var lookup = LuaCallCSharp.Distinct().ToDictionary(t => t); + + var extension_methods_from_lcs = (from t in LuaCallCSharp + where isDefined(t, typeof(ExtensionAttribute)) + from method in t.GetMethods(BindingFlags.Static | BindingFlags.Public) + where isDefined(method, typeof(ExtensionAttribute)) && !isObsolete(method) + where !method.ContainsGenericParameters || isSupportedGenericMethod(method) + select makeGenericMethodIfNeeded(method)) + .Where(method => !lookup.ContainsKey(method.GetParameters()[0].ParameterType)); + + var extension_methods = (from t in ReflectionUse + where isDefined(t, typeof(ExtensionAttribute)) + from method in t.GetMethods(BindingFlags.Static | BindingFlags.Public) + where isDefined(method, typeof(ExtensionAttribute)) && !isObsolete(method) + where !method.ContainsGenericParameters || isSupportedGenericMethod(method) + select makeGenericMethodIfNeeded(method)).Concat(extension_methods_from_lcs); + GenOne(typeof(DelegateBridgeBase), (type, type_info) => + { +#if GENERIC_SHARING + type_info.Set("wraps", wraps.Where(t=>!t.IsGenericType).ToList()); + var genericTypeGroups = wraps.Where(t => t.IsGenericType).GroupBy(t => t.GetGenericTypeDefinition()); + + var typeToArgsList = luaenv.NewTable(); + foreach (var genericTypeGroup in genericTypeGroups) + { + var argsList = luaenv.NewTable(); + int i = 1; + foreach(var genericType in genericTypeGroup) + { + argsList.Set(i++, genericType.GetGenericArguments()); + } + typeToArgsList.Set(genericTypeGroup.Key, argsList); + argsList.Dispose(); + } + + type_info.Set("generic_wraps", typeToArgsList); + typeToArgsList.Dispose(); +#else + type_info.Set("wraps", wraps.ToList()); +#endif + + type_info.Set("itf_bridges", itf_bridges.ToList()); + type_info.Set("extension_methods", extension_methods.ToList()); + }, templateRef.LuaRegister, textWriter); + textWriter.Close(); + } + + public static void AllSubStruct(Type type, Action cb) + { + if (!type.IsPrimitive && type != typeof(decimal)) + { + cb(type); + foreach(var fieldInfo in type.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)) + { + AllSubStruct(fieldInfo.FieldType, cb); + } + + foreach(var propInfo in type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)) + { + if ((AdditionalProperties.ContainsKey(type) && AdditionalProperties[type].Contains(propInfo.Name)) + || isDefined(propInfo, typeof(AdditionalPropertiesAttribute))) + { + AllSubStruct(propInfo.PropertyType, cb); + } + } + } + } + + class XluaFieldInfo + { + public string Name; + public Type Type; + public bool IsField; + public int Size; + } + + class XluaTypeInfo + { + public Type Type; + public List FieldInfos; + public List> FieldGroup; + public bool IsRoot; + } + + static XluaTypeInfo getXluaTypeInfo(Type t, Dictionary set) + { + var fs = t.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly) + .Select(fi => new XluaFieldInfo { Name = fi.Name, Type = fi.FieldType, IsField = true, Size = SizeOf(fi.FieldType) }) + .Concat(t.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly) + .Where(prop => { + return (AdditionalProperties.ContainsKey(t) && AdditionalProperties[t].Contains(prop.Name)) + || isDefined(prop, typeof(AdditionalPropertiesAttribute)); + }) + .Select(prop => new XluaFieldInfo { Name = prop.Name, Type = prop.PropertyType, IsField = false, Size = SizeOf(prop.PropertyType) })); + int float_field_count = 0; + bool only_float = true; + foreach (var f in fs) + { + if (f.Type == typeof(float)) + { + float_field_count++; + } + else + { + only_float = false; + break; + } + } + List> grouped_field = null; + if (only_float && float_field_count > 1) + { + grouped_field = new List>(); + List group = null; + foreach (var f in fs) + { + if (group == null) group = new List(); + group.Add(f); + if (group.Count >= 6) + { + grouped_field.Add(group); + group = null; + } + } + if (group != null) grouped_field.Add(group); + } + return new XluaTypeInfo { Type = t, FieldInfos = fs.ToList(), FieldGroup = grouped_field, IsRoot = set.ContainsKey(t) }; + } + + public static void GenPackUnpack(IEnumerable types, string save_path) + { + var set = types.ToDictionary(type => type); + List all_types = new List(); + + foreach(var type in types) + { + AllSubStruct(type, (t) => + { + all_types.Add(t); + }); + } + + string filePath = save_path + "PackUnpack.cs"; + StreamWriter textWriter = new StreamWriter(filePath, false, Encoding.UTF8); + GenOne(typeof(CopyByValue), (type, type_info) => + { + type_info.Set("type_infos", all_types.Distinct().Select(t => getXluaTypeInfo(t, set)).ToList()); + }, templateRef.PackUnpack, textWriter); + textWriter.Close(); + } + + //lua中要使用到C#库的配置,比如C#标准库,或者Unity API,第三方库等。 + public static List LuaCallCSharp = null; + + //C#静态调用Lua的配置(包括事件的原型),仅可以配delegate,interface + public static List CSharpCallLua = null; + + //黑名单 + public static List> BlackList = null; + + public static List GCOptimizeList = null; + + public static Dictionary> AdditionalProperties = null; + + public static List ReflectionUse = null; + + public static Dictionary HotfixCfg = null; + + public static Dictionary OptimizeCfg = null; + + public static Dictionary> DoNotGen = null; + + public static List assemblyList = null; + + public static List> memberFilters = null; + + static void AddToList(List list, Func get, object attr) + { + object obj = get(); + if (obj is Type) + { + list.Add(obj as Type); + } + else if (obj is IEnumerable) + { + list.AddRange(obj as IEnumerable); + } + else + { + throw new InvalidOperationException("Only field/property with the type IEnumerable can be marked " + attr.GetType().Name); + } +#if XLUA_GENERAL + if (attr != null && attr.GetType().ToString() == typeof(GCOptimizeAttribute).ToString()) + { + var flag = (OptimizeFlag)Convert.ToInt32(attr.GetType().GetProperty("Flag").GetValue(attr, null)); +#else + if (attr is GCOptimizeAttribute) + { + var flag = (attr as GCOptimizeAttribute).Flag; +#endif + if (obj is Type) + { + OptimizeCfg.Add(obj as Type, flag); + } + else if (obj is IEnumerable) + { + foreach(var type in (obj as IEnumerable)) + { + OptimizeCfg.Add(type, flag); + } + } + } + } + + static bool isDefined(MemberInfo test, Type type) + { +#if XLUA_GENERAL + return test.GetCustomAttributes(false).Any(ca => ca.GetType().ToString() == type.ToString()); +#else + return test.IsDefined(type, false); +#endif + } + + static object GetCustomAttribute(MemberInfo test, Type type) + { +#if XLUA_GENERAL + return test.GetCustomAttributes(false).FirstOrDefault(ca => ca.GetType().ToString() == type.ToString()); +#else + return test.GetCustomAttributes(type, false).FirstOrDefault(); +#endif + } + + static void MergeCfg(MemberInfo test, Type cfg_type, Func get_cfg) + { + if (isDefined(test, typeof(LuaCallCSharpAttribute))) + { + object ccla = GetCustomAttribute(test, typeof(LuaCallCSharpAttribute)); + AddToList(LuaCallCSharp, get_cfg, ccla); +#if !XLUA_GENERAL +#pragma warning disable 618 + if (ccla != null && (((ccla as LuaCallCSharpAttribute).Flag & GenFlag.GCOptimize) != 0)) +#pragma warning restore 618 + { + AddToList(GCOptimizeList, get_cfg, ccla); + } +#endif + } + if (isDefined(test, typeof(CSharpCallLuaAttribute))) + { + AddToList(CSharpCallLua, get_cfg, GetCustomAttribute(test, typeof(CSharpCallLuaAttribute))); + } + if (isDefined(test, typeof(GCOptimizeAttribute))) + { + AddToList(GCOptimizeList, get_cfg, GetCustomAttribute(test, typeof(GCOptimizeAttribute))); + } + if (isDefined(test, typeof(ReflectionUseAttribute))) + { + AddToList(ReflectionUse, get_cfg, GetCustomAttribute(test, typeof(ReflectionUseAttribute))); + } + if (isDefined(test, typeof(HotfixAttribute))) + { + object cfg = get_cfg(); + if (cfg is IEnumerable) + { + var ca = GetCustomAttribute(test, typeof(HotfixAttribute)); +#if XLUA_GENERAL + var hotfixType = (HotfixFlag)Convert.ToInt32(ca.GetType().GetProperty("Flag").GetValue(ca, null)); +#else + var hotfixType = (ca as HotfixAttribute).Flag; +#endif + foreach (var type in cfg as IEnumerable) + { + if (!HotfixCfg.ContainsKey(type) && !isObsolete(type) + && !type.IsEnum && !typeof(Delegate).IsAssignableFrom(type) + && (!type.IsGenericType || type.IsGenericTypeDefinition) + && (type.Namespace == null || (type.Namespace != "XLua" && !type.Namespace.StartsWith("XLua."))) + && (assemblyList.Contains(type.Module.Assembly.GetName().Name))) + { + HotfixCfg.Add(type, hotfixType); + } + } + } + } + if (isDefined(test, typeof(BlackListAttribute)) + && (typeof(List>)).IsAssignableFrom(cfg_type)) + { + BlackList.AddRange(get_cfg() as List>); + } + if (isDefined(test, typeof(BlackListAttribute)) && typeof(Func).IsAssignableFrom(cfg_type)) + { + memberFilters.Add(get_cfg() as Func); + } + + if (isDefined(test, typeof(AdditionalPropertiesAttribute)) + && (typeof(Dictionary>)).IsAssignableFrom(cfg_type)) + { + var cfg = get_cfg() as Dictionary>; + foreach (var kv in cfg) + { + if (!AdditionalProperties.ContainsKey(kv.Key)) + { + AdditionalProperties.Add(kv.Key, kv.Value); + } + } + } + + if (isDefined(test, typeof(DoNotGenAttribute)) + && (typeof(Dictionary>)).IsAssignableFrom(cfg_type)) + { + var cfg = get_cfg() as Dictionary>; + foreach (var kv in cfg) + { + HashSet set; + if (!DoNotGen.TryGetValue(kv.Key, out set)) + { + set = new HashSet(); + DoNotGen.Add(kv.Key, set); + } + set.UnionWith(kv.Value); + } + } + } + + static bool IsPublic(Type type) + { + if (type.IsPublic || type.IsNestedPublic) + { + if (type.DeclaringType != null) + { + return IsPublic(type.DeclaringType); + } + else + { + return true; + } + } + return false; + } + + public static void GetGenConfig(IEnumerable check_types) + { + LuaCallCSharp = new List(); + + CSharpCallLua = new List(); + + GCOptimizeList = new List(); + + AdditionalProperties = new Dictionary>(); + + ReflectionUse = new List(); + + BlackList = new List>() + { + }; + + HotfixCfg = new Dictionary(); + + OptimizeCfg = new Dictionary(); + + DoNotGen = new Dictionary>(); + +#if UNITY_EDITOR && HOTFIX_ENABLE + assemblyList = HotfixConfig.GetHotfixAssembly().Select(a => a.GetName().Name).ToList(); +#else + assemblyList = new List(); +#endif + memberFilters = new List>(); + + foreach (var t in check_types) + { + MergeCfg(t, null, () => t); + + if (!t.IsAbstract || !t.IsSealed) continue; + + var fields = t.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < fields.Length; i++) + { + var field = fields[i]; + MergeCfg(field, field.FieldType, () => field.GetValue(null)); + } + + var props = t.GetProperties(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < props.Length; i++) + { + var prop = props[i]; + MergeCfg(prop, prop.PropertyType, () => prop.GetValue(null, null)); + } + } + LuaCallCSharp = LuaCallCSharp.Distinct() + .Where(type=> IsPublic(type) && !isObsolete(type) && !type.IsGenericTypeDefinition) + .Where(type => !typeof(Delegate).IsAssignableFrom(type)) + .Where(type => !type.Name.Contains("<")) + .ToList(); + CSharpCallLua = CSharpCallLua.Distinct() + .Where(type => IsPublic(type) && !isObsolete(type) && !type.IsGenericTypeDefinition) + .Where(type => type != typeof(Delegate) && type != typeof(MulticastDelegate)) + .ToList(); + GCOptimizeList = GCOptimizeList.Distinct() + .Where(type => IsPublic(type) && !isObsolete(type) && !type.IsGenericTypeDefinition) + .ToList(); + ReflectionUse = ReflectionUse.Distinct() + .Where(type => !isObsolete(type) && !type.IsGenericTypeDefinition) + .ToList(); + } + + static Dictionary type_size = new Dictionary() + { + { typeof(byte), 1 }, + { typeof(sbyte), 1 }, + { typeof(short), 2 }, + { typeof(ushort), 2 }, + { typeof(int), 4 }, + { typeof(uint), 4 }, + { typeof(long), 8 }, + { typeof(ulong), 8 }, + { typeof(float), 4 }, + { typeof(double), 8 }, + { typeof(decimal), 16 } + }; + + static int SizeOf(Type type) + { + if (type_size.ContainsKey(type)) + { + return type_size[type]; + } + + if (!CopyByValue.IsStruct(type)) + { + return -1; + } + + int size = 0; + foreach(var fieldInfo in type.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)) + { + int t_size = SizeOf(fieldInfo.FieldType); + if (t_size == -1) + { + size = -1; + break; + } + size += t_size; + } + if (size != -1) + { + foreach (var propInfo in type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)) + { + if ((AdditionalProperties.ContainsKey(type) && AdditionalProperties[type].Contains(propInfo.Name)) || isDefined(propInfo, typeof(AdditionalPropertiesAttribute))) + { + int t_size = SizeOf(propInfo.PropertyType); + if (t_size == -1) + { + size = -1; + break; + } + size += t_size; + } + } + } + + if (!type_size.ContainsKey(type)) + { + type_size.Add(type, size); + } + + return size; + } + + public static void Gen(IEnumerable wraps, IEnumerable gc_optimze_list, IEnumerable itf_bridges, string save_path) + { + templateCache.Clear(); + Directory.CreateDirectory(save_path); + GenWrap(wraps, save_path); + GenWrapPusher(gc_optimze_list.Concat(wraps.Where(type=>type.IsEnum)).Distinct(), save_path); + GenPackUnpack(gc_optimze_list.Where(type => !type.IsPrimitive && SizeOf(type) != -1), save_path); + GenInterfaceBridge(itf_bridges, save_path); + } + + public static void GenCodeForClass(bool minimum = false) + { + var warp_types = minimum ? new List() : LuaCallCSharp; + var itf_bridges_types = CSharpCallLua.Where(type => type.IsInterface).Distinct(); + + Gen(warp_types, GCOptimizeList, itf_bridges_types, GeneratorConfig.common_path); + } + +#if XLUA_GENERAL + static bool IsExtensionMethod(MethodInfo method) + { + return isDefined(method, typeof(ExtensionAttribute)); + } + + static bool IsDelegate(Type type) + { + return type.BaseType != null && type.BaseType.ToString() == "System.MulticastDelegate"; + } + + public static void GenAll(XLuaTemplates templates, IEnumerable all_types) + { + var start = DateTime.Now; + Directory.CreateDirectory(GeneratorConfig.common_path); + templateRef = templates; + GetGenConfig(all_types.Where(type => !type.IsGenericTypeDefinition)); + luaenv.DoString("require 'TemplateCommon'"); + luaenv.Global.Set("IsExtensionMethod", new Func(IsExtensionMethod)); + luaenv.Global.Set("IsDelegate", new Func(IsDelegate)); + var gen_push_types_setter = luaenv.Global.Get("SetGenPushAndUpdateTypes"); + gen_push_types_setter.Call(GCOptimizeList.Where(t => !t.IsPrimitive && SizeOf(t) != -1).Concat(LuaCallCSharp.Where(t => t.IsEnum)).Distinct().ToList()); + var xlua_classes_setter = luaenv.Global.Get("SetXLuaClasses"); + xlua_classes_setter.Call(XLua.Utils.GetAllTypes().Where(t => t.Namespace == "XLua").ToList()); + GenDelegateBridges(all_types); + GenEnumWraps(); + GenCodeForClass(); + GenLuaRegister(); + Console.WriteLine("finished! use " + (DateTime.Now - start).TotalMilliseconds + " ms"); + luaenv.Dispose(); + } +#endif + +#if !XLUA_GENERAL + static void callCustomGen() + { + foreach (var method in (from type in XLua.Utils.GetAllTypes() + from method in type.GetMethods(BindingFlags.Static | BindingFlags.Public) + where method.IsDefined(typeof(GenCodeMenuAttribute), false) select method)) + { + method.Invoke(null, new object[] { }); + } + } + + [MenuItem("XLua/Generate Code", false, 1)] + public static void GenAll() + { +#if UNITY_2018 && (UNITY_EDITOR_WIN || UNITY_EDITOR_OSX) + if (File.Exists("./Tools/MonoBleedingEdge/bin/mono.exe")) + { + GenUsingCLI(); + return; + } +#endif + var start = DateTime.Now; + Directory.CreateDirectory(GeneratorConfig.common_path); + GetGenConfig(XLua.Utils.GetAllTypes()); + luaenv.DoString("require 'TemplateCommon'"); + var gen_push_types_setter = luaenv.Global.Get("SetGenPushAndUpdateTypes"); + gen_push_types_setter.Call(GCOptimizeList.Where(t => !t.IsPrimitive && SizeOf(t) != -1).Concat(LuaCallCSharp.Where(t => t.IsEnum)).Distinct().ToList()); + var xlua_classes_setter = luaenv.Global.Get("SetXLuaClasses"); + xlua_classes_setter.Call(XLua.Utils.GetAllTypes().Where(t => t.Namespace == "XLua").ToList()); + GenDelegateBridges(XLua.Utils.GetAllTypes(false)); + GenEnumWraps(); + GenCodeForClass(); + GenLuaRegister(); + callCustomGen(); + Debug.Log("finished! use " + (DateTime.Now - start).TotalMilliseconds + " ms"); + AssetDatabase.Refresh(); + } + +#if UNITY_EDITOR_OSX || UNITY_EDITOR_WIN + public static void GenUsingCLI() + { +#if UNITY_EDITOR_OSX + var monoPath = "./Tools/MonoBleedingEdge/bin/mono"; +#else + var monoPath = "./Tools/MonoBleedingEdge/bin/mono.exe"; +#endif + + var args = new List() + { + "./Tools/XLuaGenerate.exe", + "./Library/ScriptAssemblies/Assembly-CSharp.dll", + "./Library/ScriptAssemblies/Assembly-CSharp-Editor.dll", + GeneratorConfig.common_path + }; + + var searchPaths = new List(); + foreach (var path in + (from asm in AppDomain.CurrentDomain.GetAssemblies() select asm.ManifestModule.FullyQualifiedName) + .Distinct()) + { + try + { + searchPaths.Add(Path.GetDirectoryName(path)); + } + catch { } + } + args.AddRange(searchPaths.Distinct()); + + System.Diagnostics.Process process = new System.Diagnostics.Process(); + process.StartInfo.FileName = monoPath; + process.StartInfo.Arguments = "\"" + string.Join("\" \"", args.ToArray()) + "\""; + process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; + process.StartInfo.RedirectStandardOutput = true; + process.StartInfo.RedirectStandardError = true; + process.StartInfo.UseShellExecute = false; + process.StartInfo.CreateNoWindow = true; + process.Start(); + + while (!process.StandardError.EndOfStream) + { + Debug.LogError(process.StandardError.ReadLine()); + } + + while (!process.StandardOutput.EndOfStream) + { + Debug.Log(process.StandardOutput.ReadLine()); + } + + process.WaitForExit(); + GetGenConfig(XLua.Utils.GetAllTypes()); + callCustomGen(); + AssetDatabase.Refresh(); + } +#endif + + [MenuItem("XLua/Clear Generated Code", false, 2)] + public static void ClearAll() + { + clear(GeneratorConfig.common_path); + } + + public delegate IEnumerable GetTasks(LuaEnv lua_env, UserConfig user_cfg); + + public static void CustomGen(string template_src, GetTasks get_tasks) + { + GetGenConfig(XLua.Utils.GetAllTypes()); + + LuaFunction template = XLua.TemplateEngine.LuaTemplate.Compile(luaenv, + template_src); + foreach (var gen_task in get_tasks(luaenv, new UserConfig() { + LuaCallCSharp = LuaCallCSharp, + CSharpCallLua = CSharpCallLua, + ReflectionUse = ReflectionUse + })) + { + LuaTable meta = luaenv.NewTable(); + meta.Set("__index", luaenv.Global); + gen_task.Data.SetMetaTable(meta); + meta.Dispose(); + + try + { + string genCode = XLua.TemplateEngine.LuaTemplate.Execute(template, gen_task.Data); + gen_task.Output.Write(genCode); + gen_task.Output.Flush(); + } + catch (Exception e) + { + Debug.LogError("gen file fail! template=" + template_src + ", err=" + e.Message + ", stack=" + e.StackTrace); + } + finally + { + gen_task.Output.Close(); + } + } + } + +#endif + + private static bool isSupportedGenericMethod(MethodInfo method) + { + + if (!method.ContainsGenericParameters) + return true; + var methodParameters = method.GetParameters(); + var _hasGenericParameter = false; + for (var i = 0; i < methodParameters.Length; i++) + { + var parameterType = methodParameters[i].ParameterType; + if (!isSupportGenericParameter(parameterType, true, ref _hasGenericParameter)) + return false; + } + return _hasGenericParameter; + } + private static bool isSupportGenericParameter(Type parameterType,bool checkConstraint, ref bool _hasGenericParameter) + { + + if (parameterType.IsGenericParameter) + { + if (!checkConstraint) + return false; + var parameterConstraints = parameterType.GetGenericParameterConstraints(); + if (parameterConstraints.Length == 0) return false; + foreach (var parameterConstraint in parameterConstraints) + { + if (!parameterConstraint.IsClass || (parameterConstraint == typeof(ValueType)) || Generator.hasGenericParameter(parameterConstraint)) + return false; + } + _hasGenericParameter = true; + } + else if(parameterType.IsGenericType) + { + foreach (var argument in parameterType.GetGenericArguments()) + { + if (!isSupportGenericParameter(argument,false, ref _hasGenericParameter)) + return false; + } + } + return true; + } +#if !XLUA_GENERAL + [UnityEditor.Callbacks.PostProcessBuild(1)] + public static void CheckGenrate(BuildTarget target, string pathToBuiltProject) + { + if (EditorApplication.isCompiling || Application.isPlaying) + { + return; + } + if (!DelegateBridge.Gen_Flag) + { + throw new InvalidOperationException("Code has not been genrated, may be not work in phone!"); + } + } +#endif + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Generator.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Generator.cs.meta new file mode 100644 index 00000000..7cc3be06 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Generator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3129589b138e7c24e91049eefae8d255 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Hotfix.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Hotfix.cs new file mode 100644 index 00000000..bfcc74d6 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Hotfix.cs @@ -0,0 +1,1739 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if HOTFIX_ENABLE +using System.Collections.Generic; +using System; +using System.Reflection; +using System.Linq; +using System.IO; +using System.Text.RegularExpressions; + +#if XLUA_GENERAL +using Mono.Cecil; +using Mono.Cecil.Cil; +#endif + +#if !XLUA_GENERAL +using UnityEngine; +using UnityEditor; +using UnityEditor.Callbacks; +using System.Diagnostics; +#if UNITY_2019 +using UnityEditor.Build; +using UnityEditor.Build.Reporting; +#endif +#endif + +namespace XLua +{ + public static class HotfixConfig + { + //返回-1表示没有标签 + static int getHotfixType(MemberInfo memberInfo) + { + try + { + foreach (var ca in memberInfo.GetCustomAttributes(false)) + { + var ca_type = ca.GetType(); + if (ca_type.ToString() == "XLua.HotfixAttribute") + { + return (int)(ca_type.GetProperty("Flag").GetValue(ca, null)); + } + } + } + catch { } + return -1; + } + + static void mergeConfig(MemberInfo test, Type cfg_type, Func> get_cfg, Action on_cfg) + { + int hotfixType = getHotfixType(test); + if (-1 == hotfixType || !typeof(IEnumerable).IsAssignableFrom(cfg_type)) + { + return; + } + + foreach (var type in get_cfg()) + { + if (!type.IsDefined(typeof(ObsoleteAttribute), false) + && !type.IsEnum && !typeof(Delegate).IsAssignableFrom(type) + && (!type.IsGenericType || type.IsGenericTypeDefinition)) + { + if ((type.Namespace == null || (type.Namespace != "XLua" && !type.Namespace.StartsWith("XLua.")))) + { + on_cfg(type, hotfixType); + } + } + } + } + + public static void GetConfig(Dictionary hotfixCfg, IEnumerable cfg_check_types) + { + if (cfg_check_types != null) + { + Action on_cfg = (type, hotfixType) => + { + string key = type.FullName.Replace('+', '/'); + if (!hotfixCfg.ContainsKey(key)) + { + hotfixCfg.Add(key, hotfixType); + } + }; + foreach (var type in cfg_check_types.Where(t => !t.IsGenericTypeDefinition && t.IsAbstract && t.IsSealed)) + { + var flags = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly; + foreach (var field in type.GetFields(flags)) + { + mergeConfig(field, field.FieldType, () => field.GetValue(null) as IEnumerable, on_cfg); + } + foreach (var prop in type.GetProperties(flags)) + { + mergeConfig(prop, prop.PropertyType, () => prop.GetValue(null, null) as IEnumerable, on_cfg); + } + } + } + } + + public static List GetHotfixAssembly() + { + var projectPath = Assembly.Load("Assembly-CSharp").ManifestModule.FullyQualifiedName; + Regex rgx = new Regex(@"^(.*)[\\/]Library[\\/]ScriptAssemblies[\\/]Assembly-CSharp.dll$"); + MatchCollection matches = rgx.Matches(projectPath); + projectPath = matches[0].Groups[1].Value; + + List types = new List(); + Action on_cfg = (type, hotfixType) => + { + types.Add(type); + }; + + foreach (var assmbly in AppDomain.CurrentDomain.GetAssemblies()) + { + try + { + foreach (var type in (from type in assmbly.GetTypes() + where !type.IsGenericTypeDefinition + select type)) + { + if (getHotfixType(type) != -1) + { + types.Add(type); + } + else + { + var flags = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly; + foreach (var field in type.GetFields(flags)) + { + mergeConfig(field, field.FieldType, () => field.GetValue(null) as IEnumerable, on_cfg); + } + foreach (var prop in type.GetProperties(flags)) + { + mergeConfig(prop, prop.PropertyType, () => prop.GetValue(null, null) as IEnumerable, on_cfg); + } + } + } + } + catch { } // 防止有的工程有非法的dll导致中断 + } + return types.Select(t => t.Assembly).Distinct() + .Where(a => a.ManifestModule.FullyQualifiedName.IndexOf(projectPath) == 0) + .ToList(); + } + + public static List GetHotfixAssemblyPaths() + { + return GetHotfixAssembly().Select(a => a.ManifestModule.FullyQualifiedName).Distinct().ToList(); + } + } +} +#if XLUA_GENERAL + +namespace XLua +{ + [Flags] + enum HotfixFlagInTool + { + Stateless = 0, + Stateful = 1, + ValueTypeBoxing = 2, + IgnoreProperty = 4, + IgnoreNotPublic = 8, + Inline = 16, + IntKey = 32, + AdaptByDelegate = 64, + IgnoreCompilerGenerated = 128, + NoBaseProxy = 256, + } + + static class ExtentionMethods + { + public static bool HasFlag(this HotfixFlagInTool toCheck, HotfixFlagInTool flag) + { + return (toCheck != HotfixFlagInTool.Stateless) && ((toCheck & flag) == flag); + } + + public static MethodReference MakeGenericMethod(this MethodReference self, params TypeReference[] arguments) + { + if (self.GenericParameters.Count != arguments.Length) + throw new ArgumentException(); + + var instance = new GenericInstanceMethod(self); + foreach (var argument in arguments) + instance.GenericArguments.Add(argument); + + return instance; + } + + public static FieldReference GetGeneric(this FieldDefinition definition) + { + if (definition.DeclaringType.HasGenericParameters) + { + var declaringType = new GenericInstanceType(definition.DeclaringType); + foreach (var parameter in definition.DeclaringType.GenericParameters) + { + declaringType.GenericArguments.Add(parameter); + } + return new FieldReference(definition.Name, definition.FieldType, declaringType); + } + + return definition; + } + + public static TypeReference GetGeneric(this TypeDefinition definition) + { + if (definition.HasGenericParameters) + { + var genericInstanceType = new GenericInstanceType(definition); + foreach (var parameter in definition.GenericParameters) + { + genericInstanceType.GenericArguments.Add(parameter); + } + return genericInstanceType; + } + + return definition; + } + + public static TypeReference TryImport(this ModuleDefinition module, TypeReference type) + { + if (module.Assembly.FullName == type.Module.Assembly.FullName + && module.FullyQualifiedName == type.Module.FullyQualifiedName) + { + return type; + } + else + { +#if XLUA_GENERAL + return module.ImportReference(type); +#else + return module.Import(type); +#endif + } + } + + public static MethodReference TryImport(this ModuleDefinition module, MethodReference method) + { + if (module.Assembly.FullName == method.Module.Assembly.FullName + && module.FullyQualifiedName == method.Module.FullyQualifiedName) + { + return method; + } + else + { +#if XLUA_GENERAL + return module.ImportReference(method); +#else + return module.Import(method); +#endif + } + } + } + + public class Hotfix + { + private TypeReference objType = null; + private TypeReference delegateBridgeType = null; + private AssemblyDefinition injectAssembly = null; + + private MethodReference delegateBridgeGetter = null; + private MethodReference hotfixFlagGetter = null; + private MethodReference invokeSessionStart = null; + private MethodReference functionInvoke = null; + private MethodReference invokeSessionEnd = null; + private MethodReference invokeSessionEndWithResult = null; + private MethodReference inParam = null; + private MethodReference inParams = null; + private MethodReference outParam = null; + + private Dictionary hotfixCfg = null; + private List hotfixBridgesDef = null; + private Dictionary hotfixBridgeToDelegate = null; + + private List bridgeIndexByKey = null; + + private bool isTheSameAssembly = false; + + private int delegateId = 0; + + public void Init(AssemblyDefinition injectAssembly, AssemblyDefinition xluaAssembly, IEnumerable searchDirectorys, Dictionary hotfixCfg) + { + isTheSameAssembly = injectAssembly == xluaAssembly; + this.injectAssembly = injectAssembly; + this.hotfixCfg = hotfixCfg; + var injectModule = injectAssembly.MainModule; + objType = injectModule.TypeSystem.Object; + + var delegateBridgeTypeDef = xluaAssembly.MainModule.Types.Single(t => t.FullName == "XLua.DelegateBridge"); + delegateBridgeType = injectModule.TryImport(delegateBridgeTypeDef); + delegateBridgeGetter = injectModule.TryImport(xluaAssembly.MainModule.Types.Single(t => t.FullName == "XLua.HotfixDelegateBridge") + .Methods.Single(m => m.Name == "Get")); + hotfixFlagGetter = injectModule.TryImport(xluaAssembly.MainModule.Types.Single(t => t.FullName == "XLua.HotfixDelegateBridge") + .Methods.Single(m => m.Name == "xlua_get_hotfix_flag")); + + //luaFunctionType = assembly.MainModule.Types.Single(t => t.FullName == "XLua.LuaFunction"); + invokeSessionStart = injectModule.TryImport(delegateBridgeTypeDef.Methods.Single(m => m.Name == "InvokeSessionStart")); + functionInvoke = injectModule.TryImport(delegateBridgeTypeDef.Methods.Single(m => m.Name == "Invoke")); + invokeSessionEnd = injectModule.TryImport(delegateBridgeTypeDef.Methods.Single(m => m.Name == "InvokeSessionEnd")); + invokeSessionEndWithResult = injectModule.TryImport(delegateBridgeTypeDef.Methods.Single(m => m.Name == "InvokeSessionEndWithResult")); + inParam = injectModule.TryImport(delegateBridgeTypeDef.Methods.Single(m => m.Name == "InParam")); + inParams = injectModule.TryImport(delegateBridgeTypeDef.Methods.Single(m => m.Name == "InParams")); + outParam = injectModule.TryImport(delegateBridgeTypeDef.Methods.Single(m => m.Name == "OutParam")); + + hotfixBridgesDef = (from method in delegateBridgeTypeDef.Methods + where method.Name.StartsWith("__Gen_Delegate_Imp") + select method).ToList(); + hotfixBridgeToDelegate = new Dictionary(); + delegateId = 0; + + //hotfixBridges = hotfixBridgesDef.Select(m => injectModule.TryImport(m)).ToList(); + + bridgeIndexByKey = new List(); + + var resolverOfInjectAssembly = injectAssembly.MainModule.AssemblyResolver as BaseAssemblyResolver; + var resolverOfXluaAssembly = xluaAssembly.MainModule.AssemblyResolver as BaseAssemblyResolver; + if (!isTheSameAssembly) + { + resolverOfXluaAssembly.AddSearchDirectory(Path.GetDirectoryName(injectAssembly.MainModule.FullyQualifiedName)); + } + Action addSearchDirectory = (string dir) => + { + resolverOfInjectAssembly.AddSearchDirectory(dir); + if (!isTheSameAssembly) + { + resolverOfXluaAssembly.AddSearchDirectory(dir); + } + }; + addSearchDirectory("./Library/ScriptAssemblies/"); + foreach (var path in + (from asm in AppDomain.CurrentDomain.GetAssemblies() select asm.ManifestModule.FullyQualifiedName) + .Distinct()) + { + try + { + addSearchDirectory(Path.GetDirectoryName(path)); + } + catch(Exception) + { + + } + } + + if (searchDirectorys != null) + { + foreach(var directory in searchDirectorys.Distinct()) + { + addSearchDirectory(directory); + } + } + + var nameToOpcodes = typeof(OpCodes).GetFields(BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly) + .ToDictionary(f => f.Name, f => ((OpCode)f.GetValue(null))); + foreach(var kv in nameToOpcodes) + { + if (kv.Key.EndsWith("_S")) + { + shortToLong[kv.Value] = nameToOpcodes[kv.Key.Substring(0, kv.Key.Length - 2)]; + } + } + } + + static string getAssemblyFullName(IMetadataScope scope) + { + if (scope == null) return null; + switch(scope.MetadataScopeType) + { + case MetadataScopeType.ModuleDefinition: + { + ModuleDefinition md = scope as ModuleDefinition; + return md.Assembly.FullName; + } + case MetadataScopeType.AssemblyNameReference: + { + AssemblyNameReference anr = scope as AssemblyNameReference; + return anr.FullName; + } + } + return null; + } + + static bool isSameType(TypeReference left, TypeReference right) + { + if (left.FullName != right.FullName) + { + return false; + } + + //TypeReference.Module.FullyQualifiedName不验证 + if (left.Module.Assembly.FullName == right.Module.Assembly.FullName) + { + return true; + } + else + { + var lafn = getAssemblyFullName(left.Scope); + var rafn = getAssemblyFullName(right.Scope); + if (lafn != null && lafn == rafn) + { + return true; + } + var lr = left.Resolve(); + var rr = right.Resolve(); + if (lr == null || rr == null) return false; + return lr.Module.Assembly.FullName == rr.Module.Assembly.FullName; + } + } + + MethodDefinition createDelegateFor(MethodDefinition method, AssemblyDefinition assembly, string delegateName, bool ignoreValueType) + { + var voidType = assembly.MainModule.TypeSystem.Void; + var objectType = assembly.MainModule.TypeSystem.Object; + var nativeIntType = assembly.MainModule.TypeSystem.IntPtr; + var asyncResultType = assembly.MainModule.Import(typeof(IAsyncResult)); + var asyncCallbackType = assembly.MainModule.Import(typeof(AsyncCallback)); + + Mono.Cecil.MethodAttributes delegateMethodAttributes = Mono.Cecil.MethodAttributes.Public | Mono.Cecil.MethodAttributes.HideBySig | Mono.Cecil.MethodAttributes.Virtual | Mono.Cecil.MethodAttributes.VtableLayoutMask; + + var delegateDef = new TypeDefinition("XLua", delegateName, Mono.Cecil.TypeAttributes.Sealed | Mono.Cecil.TypeAttributes.Public, + assembly.MainModule.Import(typeof(MulticastDelegate))); + List argTypes = new List(); + TypeReference self = null; + if (!method.IsStatic) + { + self = (!ignoreValueType && method.DeclaringType.IsValueType) ? method.DeclaringType : objType; + } + foreach(var parameter in method.Parameters) + { + bool isparam = parameter.CustomAttributes.FirstOrDefault(ca => ca.AttributeType.Name == "ParamArrayAttribute") != null; + argTypes.Add((isparam || parameter.ParameterType.IsByReference || (!ignoreValueType && parameter.ParameterType.IsValueType)) ? parameter.ParameterType : objType); + } + + var constructor = new MethodDefinition(".ctor", Mono.Cecil.MethodAttributes.Public | Mono.Cecil.MethodAttributes.HideBySig | Mono.Cecil.MethodAttributes.SpecialName | Mono.Cecil.MethodAttributes.RTSpecialName, voidType); + constructor.Parameters.Add(new ParameterDefinition("objectInstance", Mono.Cecil.ParameterAttributes.None, objectType)); + constructor.Parameters.Add(new ParameterDefinition("functionPtr", Mono.Cecil.ParameterAttributes.None, nativeIntType)); + constructor.ImplAttributes = Mono.Cecil.MethodImplAttributes.Runtime; + delegateDef.Methods.Add(constructor); + + var beginInvoke = new MethodDefinition("BeginInvoke", delegateMethodAttributes, asyncResultType); + if (self != null) + { + beginInvoke.Parameters.Add(new ParameterDefinition(self)); + } + for (int i = 0; i < argTypes.Count; i++) + { + beginInvoke.Parameters.Add(new ParameterDefinition(method.Parameters[i].Name, (method.Parameters[i].IsOut ? Mono.Cecil.ParameterAttributes.Out : Mono.Cecil.ParameterAttributes.None), argTypes[i])); + } + beginInvoke.Parameters.Add(new ParameterDefinition("callback", Mono.Cecil.ParameterAttributes.None, asyncCallbackType)); + beginInvoke.Parameters.Add(new ParameterDefinition("object", Mono.Cecil.ParameterAttributes.None, objectType)); + beginInvoke.ImplAttributes = Mono.Cecil.MethodImplAttributes.Runtime; + delegateDef.Methods.Add(beginInvoke); + + var endInvoke = new MethodDefinition("EndInvoke", delegateMethodAttributes, method.ReturnType); + for (int i = 0; i < argTypes.Count; i++) + { + if (argTypes[i].IsByReference) + { + endInvoke.Parameters.Add(new ParameterDefinition(method.Parameters[i].Name, (method.Parameters[i].IsOut ? Mono.Cecil.ParameterAttributes.Out : Mono.Cecil.ParameterAttributes.None), argTypes[i])); + } + } + endInvoke.Parameters.Add(new ParameterDefinition("result", Mono.Cecil.ParameterAttributes.None, asyncResultType)); + endInvoke.ImplAttributes = Mono.Cecil.MethodImplAttributes.Runtime; + delegateDef.Methods.Add(endInvoke); + + var invoke = new MethodDefinition("Invoke", delegateMethodAttributes, method.ReturnType); + if (self != null) + { + invoke.Parameters.Add(new ParameterDefinition(self)); + } + for(int i = 0; i < argTypes.Count; i++) + { + invoke.Parameters.Add(new ParameterDefinition(method.Parameters[i].Name, (method.Parameters[i].IsOut ? Mono.Cecil.ParameterAttributes.Out : Mono.Cecil.ParameterAttributes.None), argTypes[i])); + } + invoke.ImplAttributes = Mono.Cecil.MethodImplAttributes.Runtime; + delegateDef.Methods.Add(invoke); + + assembly.MainModule.Types.Add(delegateDef); + + return invoke; + } + + MethodDefinition getDelegateInvokeFor(MethodDefinition method, MethodDefinition bridgeDef, bool ignoreValueType) + { + MethodDefinition ret; + if (!hotfixBridgeToDelegate.TryGetValue(bridgeDef, out ret)) + { + ret = createDelegateFor(method, injectAssembly, ("__XLua_Gen_Delegate" + (delegateId++)), ignoreValueType); + hotfixBridgeToDelegate.Add(bridgeDef, ret); + } + + return ret; + } + + bool findHotfixDelegate(MethodDefinition method, out MethodReference invoke, HotfixFlagInTool hotfixType) + { + bool ignoreValueType = hotfixType.HasFlag(HotfixFlagInTool.ValueTypeBoxing); + + bool isIntKey = hotfixType.HasFlag(HotfixFlagInTool.IntKey) && !method.DeclaringType.HasGenericParameters && isTheSameAssembly; + + bool isAdaptByDelegate = !isIntKey && hotfixType.HasFlag(HotfixFlagInTool.AdaptByDelegate); + + for (int i = 0; i < hotfixBridgesDef.Count; i++) + { + MethodDefinition hotfixBridgeDef = hotfixBridgesDef[i]; + var returnType = method.ReturnType; + if (isSameType(returnType, hotfixBridgeDef.ReturnType)) + { + var parametersOfDelegate = hotfixBridgeDef.Parameters; + int compareOffset = 0; + if (!method.IsStatic) + { + var typeOfSelf = (!ignoreValueType && method.DeclaringType.IsValueType) ? method.DeclaringType : objType; + if ((parametersOfDelegate.Count == 0) || parametersOfDelegate[0].ParameterType.IsByReference || !isSameType(typeOfSelf, parametersOfDelegate[0].ParameterType)) + { + continue; + } + compareOffset++; + } + if (method.Parameters.Count != (parametersOfDelegate.Count - compareOffset)) + { + continue; + } + bool paramMatch = true; + for (int j = 0; j < method.Parameters.Count; j++) + { + var param_left = method.Parameters[j]; + var param_right = parametersOfDelegate[compareOffset++]; + if (param_left.IsOut != param_right.IsOut + || param_left.ParameterType.IsByReference != param_right.ParameterType.IsByReference) + { + paramMatch = false; + break; + } + if (!ignoreValueType && param_left.ParameterType.IsValueType != param_right.ParameterType.IsValueType) + { + paramMatch = false; + break; + } + bool isparam = param_left.CustomAttributes.FirstOrDefault(ca => ca.AttributeType.Name == "ParamArrayAttribute") != null; + var type_left = (isparam || param_left.ParameterType.IsByReference || (!ignoreValueType && param_left.ParameterType.IsValueType)) ? param_left.ParameterType : objType; + if (!isSameType(type_left, param_right.ParameterType)) + { + paramMatch = false; + break; + } + } + + if (!paramMatch) + { + continue; + } + invoke = (isTheSameAssembly && !isAdaptByDelegate) ? hotfixBridgeDef : getDelegateInvokeFor(method, hotfixBridgeDef, ignoreValueType); + return true; + } + } + invoke = null; + return false; + } + + static bool hasGenericParameter(TypeReference type) + { + if (type.HasGenericParameters) + { + return true; + } + if (type.IsByReference) + { + return hasGenericParameter(((ByReferenceType)type).ElementType); + } + if (type.IsArray) + { + return hasGenericParameter(((ArrayType)type).ElementType); + } + if (type.IsGenericInstance) + { + foreach (var typeArg in ((GenericInstanceType)type).GenericArguments) + { + if (hasGenericParameter(typeArg)) + { + return true; + } + } + return false; + } + return type.IsGenericParameter; + } + + static bool hasGenericParameter(MethodDefinition method) + { + if (method.HasGenericParameters) return true; + if (!method.IsStatic && hasGenericParameter(method.DeclaringType)) return true; + if (hasGenericParameter(method.ReturnType)) return true; + foreach(var paramInfo in method.Parameters) + { + if (hasGenericParameter(paramInfo.ParameterType)) return true; + } + return false; + } + + static bool isNoPublic(TypeReference type) + { + if (type.IsByReference) + { + return isNoPublic(((ByReferenceType)type).ElementType); + } + if (type.IsArray) + { + return isNoPublic(((ArrayType)type).ElementType); + } + else + { + if (type.IsGenericInstance) + { + foreach (var typeArg in ((GenericInstanceType)type).GenericArguments) + { + if (isNoPublic(typeArg)) + { + return true; + } + } + } + + var resolveType = type.Resolve(); + if ((!type.IsNested && !resolveType.IsPublic) || (type.IsNested && !resolveType.IsNestedPublic)) + { + return true; + } + if (type.IsNested) + { + var parent = type.DeclaringType; + while (parent != null) + { + var resolveParent = parent.Resolve(); + if ((!parent.IsNested && !resolveParent.IsPublic) || (parent.IsNested && !resolveParent.IsNestedPublic)) + { + return true; + } + if (parent.IsNested) + { + parent = parent.DeclaringType; + } + else + { + break; + } + } + } + return false; + } + + } + + static bool genericInOut(MethodDefinition method, HotfixFlagInTool hotfixType) + { + bool ignoreValueType = hotfixType.HasFlag(HotfixFlagInTool.ValueTypeBoxing); + + if (hasGenericParameter(method.ReturnType) || isNoPublic(method.ReturnType)) + { + return true; + } + var parameters = method.Parameters; + + if (!method.IsStatic + && (hasGenericParameter(method.DeclaringType) || ((!ignoreValueType && method.DeclaringType.IsValueType) && isNoPublic(method.DeclaringType)))) + { + return true; + } + for (int i = 0; i < parameters.Count; i++) + { + if ( hasGenericParameter(parameters[i].ParameterType) || (((!ignoreValueType && parameters[i].ParameterType.IsValueType) || parameters[i].ParameterType.IsByReference || parameters[i].CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.ParamArrayAttribute")) && isNoPublic(parameters[i].ParameterType))) + { + return true; + } + } + return false; + } + + public bool InjectType(TypeReference hotfixAttributeType, TypeDefinition type) + { + foreach(var nestedTypes in type.NestedTypes) + { + if (!InjectType(hotfixAttributeType, nestedTypes)) + { + return false; + } + } + if (type.Name.Contains("<") || type.IsInterface || type.Methods.Count == 0) // skip anonymous type and interface + { + return true; + } + CustomAttribute hotfixAttr = type.CustomAttributes.FirstOrDefault(ca => ca.AttributeType == hotfixAttributeType); + HotfixFlagInTool hotfixType; + if (hotfixAttr != null) + { + hotfixType = (HotfixFlagInTool)(int)hotfixAttr.ConstructorArguments[0].Value; + } + else + { + if (!hotfixCfg.ContainsKey(type.FullName)) + { + return true; + } + hotfixType = (HotfixFlagInTool)hotfixCfg[type.FullName]; + } + + bool ignoreProperty = hotfixType.HasFlag(HotfixFlagInTool.IgnoreProperty); + bool ignoreCompilerGenerated = hotfixType.HasFlag(HotfixFlagInTool.IgnoreCompilerGenerated); + bool ignoreNotPublic = hotfixType.HasFlag(HotfixFlagInTool.IgnoreNotPublic); + bool isInline = hotfixType.HasFlag(HotfixFlagInTool.Inline); + bool isIntKey = hotfixType.HasFlag(HotfixFlagInTool.IntKey); + bool noBaseProxy = hotfixType.HasFlag(HotfixFlagInTool.NoBaseProxy); + if (ignoreCompilerGenerated && type.CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.Runtime.CompilerServices.CompilerGeneratedAttribute")) + { + return true; + } + if (isIntKey && type.HasGenericParameters) + { + throw new InvalidOperationException(type.FullName + " is generic definition, can not be mark as IntKey!"); + } + //isIntKey = !type.HasGenericParameters; + + foreach (var method in type.Methods) + { + if (ignoreNotPublic && !method.IsPublic) + { + continue; + } + if (ignoreProperty && method.IsSpecialName && (method.Name.StartsWith("get_") || method.Name.StartsWith("set_"))) + { + continue; + } + if (ignoreCompilerGenerated && method.CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.Runtime.CompilerServices.CompilerGeneratedAttribute")) + { + continue; + } + if (method.Name != ".cctor" && !method.IsAbstract && !method.IsPInvokeImpl && method.Body != null && !method.Name.Contains("<")) + { + //Debug.Log(method); + if ((isInline || method.HasGenericParameters || genericInOut(method, hotfixType)) + ? !injectGenericMethod(method, hotfixType) : + !injectMethod(method, hotfixType)) + { + return false; + } + } + } + + if (!noBaseProxy) + { + List toAdd = new List(); + foreach (var method in type.Methods) + { + if (ignoreNotPublic && !method.IsPublic) + { + continue; + } + if (ignoreProperty && method.IsSpecialName && (method.Name.StartsWith("get_") || method.Name.StartsWith("set_"))) + { + continue; + } + if (ignoreCompilerGenerated && method.CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.Runtime.CompilerServices.CompilerGeneratedAttribute")) + { + continue; + } + if (method.Name != ".cctor" && !method.IsAbstract && !method.IsPInvokeImpl && method.Body != null && !method.Name.Contains("<")) + { + var proxyMethod = tryAddBaseProxy(type, method); + if (proxyMethod != null) toAdd.Add(proxyMethod); + } + } + + foreach (var md in toAdd) + { + type.Methods.Add(md); + } + } + + return true; + } + +#if !XLUA_GENERAL + [PostProcessScene] + [MenuItem("XLua/Hotfix Inject In Editor", false, 3)] + public static void HotfixInject() + { + if (EditorApplication.isCompiling || Application.isPlaying) + { + return; + } + var hotfixCfg = new Dictionary(); + HotfixConfig.GetConfig(hotfixCfg, Utils.GetAllTypes()); + var xluaAssemblyPath = typeof(LuaEnv).Module.FullyQualifiedName; + var idMapFileName = CSObjectWrapEditor.GeneratorConfig.common_path + "Resources/hotfix_id_map.lua.txt"; + var injectAssemblyPaths = HotfixConfig.GetHotfixAssemblyPaths(); + + foreach (var injectAssemblyPath in injectAssemblyPaths) + { + Info("injecting " + injectAssemblyPath); + if (injectAssemblyPaths.Count > 1) + { + var injectAssemblyFileName = Path.GetFileName(injectAssemblyPath); + idMapFileName = CSObjectWrapEditor.GeneratorConfig.common_path + "Resources/hotfix_id_map_" + injectAssemblyFileName.Substring(0, injectAssemblyFileName.Length - 4) + ".lua.txt"; + } + HotfixInject(injectAssemblyPath, xluaAssemblyPath, null, idMapFileName, hotfixCfg); + } + AssetDatabase.Refresh(); + } +#endif + + static AssemblyDefinition readAssembly(string assemblyPath) + { +#if HOTFIX_SYMBOLS_DISABLE + return AssemblyDefinition.ReadAssembly(assemblyPath); +#else + if (File.Exists(assemblyPath + ".mdb")) + { + var readerParameters = new ReaderParameters { ReadSymbols = true }; + return AssemblyDefinition.ReadAssembly(assemblyPath, readerParameters); + } + else + { + return AssemblyDefinition.ReadAssembly(assemblyPath); + } +#endif + } + + static void writeAssembly(AssemblyDefinition assembly, string assemblyPath) + { +#if HOTFIX_SYMBOLS_DISABLE + assembly.Write(assemblyPath); +#else + if (File.Exists(assemblyPath + ".mdb")) + { + var writerParameters = new WriterParameters { WriteSymbols = true }; + assembly.Write(assemblyPath, writerParameters); + } + else + { + assembly.Write(assemblyPath); + } +#endif + } + + public static void HotfixInject(string injectAssemblyPath, string xluaAssemblyPath, IEnumerable searchDirectorys, string idMapFilePath, Dictionary hotfixConfig) + { + AssemblyDefinition injectAssembly = null; + AssemblyDefinition xluaAssembly = null; + try + { + injectAssembly = readAssembly(injectAssemblyPath); + + // injected flag check + if (injectAssembly.MainModule.Types.Any(t => t.Name == "__XLUA_GEN_FLAG")) + { + Info(injectAssemblyPath + " had injected!"); + return; + } + injectAssembly.MainModule.Types.Add(new TypeDefinition("__XLUA_GEN", "__XLUA_GEN_FLAG", Mono.Cecil.TypeAttributes.Class, + injectAssembly.MainModule.TypeSystem.Object)); + + xluaAssembly = (injectAssemblyPath == xluaAssemblyPath || injectAssembly.MainModule.FullyQualifiedName == xluaAssemblyPath) ? + injectAssembly : readAssembly(xluaAssemblyPath); + + Hotfix hotfix = new Hotfix(); + hotfix.Init(injectAssembly, xluaAssembly, searchDirectorys, hotfixConfig); + + //var hotfixDelegateAttributeType = assembly.MainModule.Types.Single(t => t.FullName == "XLua.HotfixDelegateAttribute"); + var hotfixAttributeType = xluaAssembly.MainModule.Types.Single(t => t.FullName == "XLua.HotfixAttribute"); + var toInject = (from module in injectAssembly.Modules from type in module.Types select type).ToList(); + foreach (var type in toInject) + { + if (!hotfix.InjectType(hotfixAttributeType, type)) + { + return; + } + } + Directory.CreateDirectory(Path.GetDirectoryName(idMapFilePath)); + hotfix.OutputIntKeyMapper(new FileStream(idMapFilePath, FileMode.Create, FileAccess.Write)); + File.Copy(idMapFilePath, idMapFilePath + "." + DateTime.Now.ToString("yyyyMMddHHmmssfff")); + + writeAssembly(injectAssembly, injectAssemblyPath); + Info(injectAssemblyPath + " inject finish!"); + } + catch(Exception e) + { + Error(injectAssemblyPath + " inject Exception! " + e); + } + finally + { + if (injectAssembly != null) + { + Clean(injectAssembly); + } + if (xluaAssembly != null) + { + Clean(xluaAssembly); + } + } + } + + static void Info(string info) + { +#if XLUA_GENERAL + System.Console.WriteLine(info); +#else + UnityEngine.Debug.Log(info); +#endif + } + + static void Error(string info) + { +#if XLUA_GENERAL + System.Console.WriteLine("Error:" + info); +#else + UnityEngine.Debug.LogError(info); +#endif + } + + static void Clean(AssemblyDefinition assembly) + { + if (assembly.MainModule.SymbolReader != null) + { + assembly.MainModule.SymbolReader.Dispose(); + } + } + + static OpCode[] ldargs = new OpCode[] { OpCodes.Ldarg_0, OpCodes.Ldarg_1, OpCodes.Ldarg_2, OpCodes.Ldarg_3 }; + + static readonly int MAX_OVERLOAD = 100; + + static string getDelegateName(MethodDefinition method) + { + string fieldName = method.Name; + if (fieldName.StartsWith(".")) + { + fieldName = fieldName.Substring(1); + } + string ccFlag = method.IsConstructor ? "_c" : ""; + string luaDelegateName = null; + var type = method.DeclaringType; + for (int i = 0; i < MAX_OVERLOAD; i++) + { + string tmp = ccFlag + "__Hotfix" + i + "_" + fieldName; + if (!type.Fields.Any(f => f.Name == tmp)) // injected + { + luaDelegateName = tmp; + break; + } + } + return luaDelegateName; + } + + static Instruction findNextRet(Mono.Collections.Generic.Collection instructions, Instruction pos) + { + bool posFound = false; + for(int i = 0; i < instructions.Count; i++) + { + if (posFound && instructions[i].OpCode == OpCodes.Ret) + { + return instructions[i]; + } + else if (instructions[i] == pos) + { + posFound = true; + } + } + return null; + } + + Dictionary shortToLong = new Dictionary(); + + void fixBranch(ILProcessor processor, Mono.Collections.Generic.Collection instructions, Dictionary originToNewTarget, HashSet noCheck) + { + foreach(var instruction in instructions) + { + Instruction target = instruction.Operand as Instruction; + if (target != null && !noCheck.Contains(instruction)) + { + if (originToNewTarget.ContainsKey(target)) + { + instruction.Operand = originToNewTarget[target]; + } + } + } + + int offset = 0; + for (int i = 0; i < instructions.Count; i++) + { + var instruction = instructions[i]; + instruction.Offset = offset; + offset += instruction.GetSize(); + } + + for (int i = 0; i < instructions.Count; i++) + { + var instruction = instructions[i]; + Instruction target = instruction.Operand as Instruction; + + if (target != null) + { + int diff = target.Offset - instruction.Offset; + if ((diff > sbyte.MaxValue || diff < sbyte.MinValue) && shortToLong.ContainsKey(instruction.OpCode)) + { + instructions[i] = processor.Create(shortToLong[instruction.OpCode], target); + } + } + } + } + + static MethodDefinition findOverride(TypeDefinition type, MethodReference vmethod) + { + foreach (var method in type.Methods) + { + if (method.Name == vmethod.Name && method.IsVirtual && !method.IsAbstract && (method.ReturnType.FullName == vmethod.ReturnType.FullName) && method.Parameters.Count == vmethod.Parameters.Count) + { + bool isParamsMatch = true; + for (int i = 0; i < method.Parameters.Count; i++) + { + if (method.Parameters[i].Attributes != vmethod.Parameters[i].Attributes + || (method.Parameters[i].ParameterType.FullName != vmethod.Parameters[i].ParameterType.FullName)) + { + isParamsMatch = false; + break; + } + } + if (isParamsMatch) return method; + } + } + return null; + } + + static MethodReference _findBase(TypeReference type, MethodDefinition method) + { + TypeDefinition td = type.Resolve(); + if (td == null) + { + return null; + } + //if (type.IsGenericInstance && + // (method.Module.Assembly.FullName != type.Module.Assembly.FullName || method.Module.Assembly.FullName != td.Module.Assembly.FullName + // || method.Module.FullyQualifiedName != type.Module.FullyQualifiedName || method.Module.FullyQualifiedName != td.Module.FullyQualifiedName)) + //{ + // return _findBase(td.BaseType, method); + //} + var m = findOverride(td, method); + if (m != null) + { + if (type.IsGenericInstance) + { + var reference = new MethodReference(m.Name, tryImport(method.DeclaringType, m.ReturnType), tryImport(method.DeclaringType, type)) + { + HasThis = m.HasThis, + ExplicitThis = m.ExplicitThis, + CallingConvention = m.CallingConvention + }; + foreach (var parameter in m.Parameters) + reference.Parameters.Add(new ParameterDefinition(tryImport(method.DeclaringType, parameter.ParameterType))); + foreach (var generic_parameter in m.GenericParameters) + reference.GenericParameters.Add(new GenericParameter(generic_parameter.Name, reference)); + return reference; + } + else + { + return m; + } + } + return _findBase(td.BaseType, method); + } + + static MethodReference findBase(TypeDefinition type, MethodDefinition method) + { + if (method.IsVirtual && !method.IsNewSlot) //表明override + { + try + { + if (hasGenericParameter(method)) return null; + var b = _findBase(type.BaseType, method); + try + { + if (hasGenericParameter(b.Resolve())) return null; + }catch { } + return b; + } + catch { } + } + return null; + } + + const string BASE_RPOXY_PERFIX = "<>xLuaBaseProxy_"; + + static TypeReference tryImport(TypeReference type, TypeReference toImport) + { + if (type.Module.Assembly.FullName == toImport.Module.Assembly.FullName + && type.Module.FullyQualifiedName == toImport.Module.FullyQualifiedName) + { + return toImport; + } + else + { +#if XLUA_GENERAL + return type.Module.ImportReference(toImport); +#else + return type.Module.Import(toImport); +#endif + } + } + + static MethodReference tryImport(TypeReference type, MethodReference toImport) + { + if (type.Module.Assembly.FullName == toImport.Module.Assembly.FullName + && type.Module.FullyQualifiedName == toImport.Module.FullyQualifiedName) + { + return toImport; + } + else + { +#if XLUA_GENERAL + return type.Module.ImportReference(toImport); +#else + return type.Module.Import(toImport); +#endif + } + } + + static MethodDefinition tryAddBaseProxy(TypeDefinition type, MethodDefinition method) + { + var mbase = findBase(type, method); + if (mbase != null) + { + var proxyMethod = new MethodDefinition(BASE_RPOXY_PERFIX + method.Name, Mono.Cecil.MethodAttributes.Private, tryImport(type, method.ReturnType)); + for (int i = 0; i < method.Parameters.Count; i++) + { + proxyMethod.Parameters.Add(new ParameterDefinition("P" + i, method.Parameters[i].IsOut ? Mono.Cecil.ParameterAttributes.Out : Mono.Cecil.ParameterAttributes.None, tryImport(type, method.Parameters[i].ParameterType))); + } + var instructions = proxyMethod.Body.Instructions; + var processor = proxyMethod.Body.GetILProcessor(); + int paramCount = method.Parameters.Count + 1; + for (int i = 0; i < paramCount; i++) + { + if (i < ldargs.Length) + { + instructions.Add(processor.Create(ldargs[i])); + } + else if (i < 256) + { + instructions.Add(processor.Create(OpCodes.Ldarg_S, (byte)i)); + } + else + { + instructions.Add(processor.Create(OpCodes.Ldarg, (short)i)); + } + if (i == 0 && type.IsValueType) + { + instructions.Add(Instruction.Create(OpCodes.Ldobj, type)); + instructions.Add(Instruction.Create(OpCodes.Box, type)); + } + } + instructions.Add(Instruction.Create(OpCodes.Call, tryImport(type, mbase))); + instructions.Add(Instruction.Create(OpCodes.Ret)); + return proxyMethod; + } + return null; + } + + bool injectMethod(MethodDefinition method, HotfixFlagInTool hotfixType) + { + var type = method.DeclaringType; + + bool isFinalize = (method.Name == "Finalize" && method.IsSpecialName); + + MethodReference invoke = null; + + int param_count = method.Parameters.Count + (method.IsStatic ? 0 : 1); + + if (!findHotfixDelegate(method, out invoke, hotfixType)) + { + Error("can not find delegate for " + method.DeclaringType + "." + method.Name + "! try re-genertate code."); + return false; + } + + if (invoke == null) + { + throw new Exception("unknow exception!"); + } + +#if XLUA_GENERAL + invoke = injectAssembly.MainModule.ImportReference(invoke); +#else + invoke = injectAssembly.MainModule.Import(invoke); +#endif + + FieldReference fieldReference = null; + VariableDefinition injection = null; + bool isIntKey = hotfixType.HasFlag(HotfixFlagInTool.IntKey) && !type.HasGenericParameters && isTheSameAssembly; + //isIntKey = !type.HasGenericParameters; + + if (!isIntKey) + { + injection = new VariableDefinition(invoke.DeclaringType); + method.Body.Variables.Add(injection); + + var luaDelegateName = getDelegateName(method); + if (luaDelegateName == null) + { + Error("too many overload!"); + return false; + } + + FieldDefinition fieldDefinition = new FieldDefinition(luaDelegateName, Mono.Cecil.FieldAttributes.Static | Mono.Cecil.FieldAttributes.Private, + invoke.DeclaringType); + type.Fields.Add(fieldDefinition); + fieldReference = fieldDefinition.GetGeneric(); + } + + bool ignoreValueType = hotfixType.HasFlag(HotfixFlagInTool.ValueTypeBoxing); + + var insertPoint = method.Body.Instructions[0]; + var processor = method.Body.GetILProcessor(); + + if (method.IsConstructor) + { + insertPoint = findNextRet(method.Body.Instructions, insertPoint); + } + + Dictionary originToNewTarget = new Dictionary(); + HashSet noCheck = new HashSet(); + + while (insertPoint != null) + { + Instruction firstInstruction; + if (isIntKey) + { + firstInstruction = processor.Create(OpCodes.Ldc_I4, bridgeIndexByKey.Count); + processor.InsertBefore(insertPoint, firstInstruction); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Call, hotfixFlagGetter)); + } + else + { + firstInstruction = processor.Create(OpCodes.Ldsfld, fieldReference); + processor.InsertBefore(insertPoint, firstInstruction); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Stloc, injection)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + } + + var jmpInstruction = processor.Create(OpCodes.Brfalse, insertPoint); + processor.InsertBefore(insertPoint, jmpInstruction); + + if (isIntKey) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldc_I4, bridgeIndexByKey.Count)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Call, delegateBridgeGetter)); + } + else + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + } + + for (int i = 0; i < param_count; i++) + { + if (i < ldargs.Length) + { + processor.InsertBefore(insertPoint, processor.Create(ldargs[i])); + } + else if (i < 256) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldarg_S, (byte)i)); + } + else + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldarg, (short)i)); + } + if (i == 0 && !method.IsStatic && type.IsValueType) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldobj, type)); + + } + if (ignoreValueType) + { + TypeReference paramType; + if (method.IsStatic) + { + paramType = method.Parameters[i].ParameterType; + } + else + { + paramType = (i == 0) ? type : method.Parameters[i - 1].ParameterType; + } + if (paramType.IsValueType) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Box, paramType)); + } + } + } + + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Call, invoke)); + + if (!method.IsConstructor && !isFinalize) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ret)); + } + + if (!method.IsConstructor) + { + break; + } + else + { + originToNewTarget[insertPoint] = firstInstruction; + noCheck.Add(jmpInstruction); + } + insertPoint = findNextRet(method.Body.Instructions, insertPoint); + } + + if (method.IsConstructor) + { + fixBranch(processor, method.Body.Instructions, originToNewTarget, noCheck); + } + + if (isFinalize) + { + if (method.Body.ExceptionHandlers.Count == 0) + { + throw new InvalidProgramException("Finalize has not try-catch? Type :" + method.DeclaringType); + } + method.Body.ExceptionHandlers[0].TryStart = method.Body.Instructions[0]; + } + if (isIntKey) + { + bridgeIndexByKey.Add(method); + } + return true; + } + + bool injectGenericMethod(MethodDefinition method, HotfixFlagInTool hotfixType) + { + //如果注入的是xlua所在之外的Assembly的话,不支持该方式 + if (!isTheSameAssembly) + { + return true; + } + var type = method.DeclaringType; + + bool isFinalize = (method.Name == "Finalize" && method.IsSpecialName); + bool isIntKey = hotfixType.HasFlag(HotfixFlagInTool.IntKey) && !type.HasGenericParameters; + //isIntKey = !type.HasGenericParameters; + + FieldReference fieldReference = null; + VariableDefinition injection = null; + if (!isIntKey) + { + var luaDelegateName = getDelegateName(method); + if (luaDelegateName == null) + { + Error("too many overload!"); + return false; + } + + FieldDefinition fieldDefinition = new FieldDefinition(luaDelegateName, Mono.Cecil.FieldAttributes.Static | Mono.Cecil.FieldAttributes.Private, + delegateBridgeType); + type.Fields.Add(fieldDefinition); + + fieldReference = fieldDefinition.GetGeneric(); + } + + injection = new VariableDefinition(delegateBridgeType); + method.Body.Variables.Add(injection); + + int param_start = method.IsStatic ? 0 : 1; + int param_count = method.Parameters.Count + param_start; + var insertPoint = method.Body.Instructions[0]; + var processor = method.Body.GetILProcessor(); + + if (method.IsConstructor) + { + insertPoint = findNextRet(method.Body.Instructions, insertPoint); + } + + Dictionary originToNewTarget = new Dictionary(); + HashSet noCheck = new HashSet(); + + while (insertPoint != null) + { + Instruction firstInstruction; + Instruction jmpInstruction; + if (isIntKey) + { + firstInstruction = processor.Create(OpCodes.Ldc_I4, bridgeIndexByKey.Count); + processor.InsertBefore(insertPoint, firstInstruction); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Call, hotfixFlagGetter)); + jmpInstruction = processor.Create(OpCodes.Brfalse, insertPoint); + processor.InsertBefore(insertPoint, jmpInstruction); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldc_I4, bridgeIndexByKey.Count)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Call, delegateBridgeGetter)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Stloc, injection)); + } + else + { + firstInstruction = processor.Create(OpCodes.Ldsfld, fieldReference); + processor.InsertBefore(insertPoint, firstInstruction); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Stloc, injection)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + jmpInstruction = processor.Create(OpCodes.Brfalse, insertPoint); + processor.InsertBefore(insertPoint, jmpInstruction); + } + + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, invokeSessionStart)); + + TypeReference returnType = method.ReturnType; + + bool isVoid = returnType.FullName == "System.Void"; + + int outCout = 0; + + for (int i = 0; i < param_count; i++) + { + if (i == 0 && !method.IsStatic) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldarg_0)); + if (type.IsValueType) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldobj, method.DeclaringType.GetGeneric())); + } + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, inParam.MakeGenericMethod(method.DeclaringType.GetGeneric()))); + } + else + { + var param = method.Parameters[i - param_start]; + if (param.ParameterType.IsByReference) + { + outCout++; + } + if (!param.IsOut) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + + if (i < ldargs.Length) + { + processor.InsertBefore(insertPoint, processor.Create(ldargs[i])); + } + else if (i < 256) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldarg_S, (byte)i)); + } + else + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldarg, (short)i)); + } + + var paramType = param.ParameterType; + + if (param.ParameterType.IsByReference) + { + paramType = ((ByReferenceType)paramType).ElementType; + if (paramType.IsValueType || paramType.IsGenericParameter) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldobj, paramType)); + } + else + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldind_Ref)); + } + } + if (i == param_count - 1 && param.CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.ParamArrayAttribute")) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, inParams.MakeGenericMethod(((ArrayType)paramType).ElementType))); + } + else + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, inParam.MakeGenericMethod(paramType))); + } + } + } + } + + int outStart = (isVoid ? 0 : 1); + + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldc_I4, outCout + outStart)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, functionInvoke)); + + int outPos = outStart; + for (int i = 0; i < method.Parameters.Count; i++) + { + if (method.Parameters[i].ParameterType.IsByReference) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldc_I4, outPos)); + int arg_pos = param_start + i; + if (arg_pos < ldargs.Length) + { + processor.InsertBefore(insertPoint, processor.Create(ldargs[arg_pos])); + } + else if (arg_pos < 256) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldarg_S, (byte)arg_pos)); + } + else + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldarg, (short)arg_pos)); + } + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, outParam.MakeGenericMethod( + ((ByReferenceType)method.Parameters[i].ParameterType).ElementType))); + outPos++; + } + } + + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ldloc, injection)); + if (isVoid) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, invokeSessionEnd)); + } + else + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Callvirt, invokeSessionEndWithResult.MakeGenericMethod(returnType))); + } + + if (!method.IsConstructor && !isFinalize) + { + processor.InsertBefore(insertPoint, processor.Create(OpCodes.Ret)); + } + + if (!method.IsConstructor) + { + break; + } + else + { + originToNewTarget[insertPoint] = firstInstruction; + noCheck.Add(jmpInstruction); + } + + insertPoint = findNextRet(method.Body.Instructions, insertPoint); + } + + if (method.IsConstructor) + { + fixBranch(processor, method.Body.Instructions, originToNewTarget, noCheck); + } + + if (isFinalize) + { + method.Body.ExceptionHandlers[0].TryStart = method.Body.Instructions[0]; + } + + if (isIntKey) + { + bridgeIndexByKey.Add(method); + } + + return true; + } + + public void OutputIntKeyMapper(Stream output) + { + using (StreamWriter writer = new StreamWriter(output)) + { + writer.WriteLine("return {"); + var data = bridgeIndexByKey + .Select((md, idx) => new { Method = md, Index = idx}) + .GroupBy(info => info.Method.DeclaringType) + .ToDictionary(group => group.Key, group => + { + return group.GroupBy(info => info.Method.Name).ToDictionary(group_by_name => group_by_name.Key, group_by_name => group_by_name.Select(info => info.Index.ToString()).ToArray()); + }); + foreach(var kv in data) + { + writer.WriteLine(" [\"" + kv.Key.FullName.Replace('/', '+') + "\"] = {"); + foreach(var kv2 in kv.Value) + { + writer.WriteLine(" [\"" + kv2.Key + "\"] = {"); + writer.WriteLine(" " + string.Join(",", kv2.Value)); + writer.WriteLine(" },"); + } + writer.WriteLine(" },"); + } + writer.WriteLine("}"); + } + } + } +} +#else + +namespace XLua +{ +#if UNITY_2019 + class MyCustomBuildProcessor : IPostBuildPlayerScriptDLLs + { + public int callbackOrder { get { return 0; } } + public void OnPostBuildPlayerScriptDLLs(BuildReport report) + { + var dir = Path.GetDirectoryName(report.files.Single(file => file.path.EndsWith("Assembly-CSharp.dll")).path); + Hotfix.HotfixInject(dir); + } + } +#endif + + public static class Hotfix + { + static bool ContainNotAsciiChar(string s) + { + for (int i = 0; i < s.Length; ++i) + { + if (s[i] > 127) + { + return true; + } + } + return false; + } + +#if !UNITY_2019 + [PostProcessScene] +#endif + [MenuItem("XLua/Hotfix Inject In Editor", false, 3)] + public static void HotfixInject() + { + HotfixInject("./Library/ScriptAssemblies"); + } + + public static void HotfixInject(string assemblyDir) + { + if (Application.isPlaying) + { + return; + } + + if (EditorApplication.isCompiling) + { + UnityEngine.Debug.LogError("You can't inject before the compilation is done"); + return; + } + +#if UNITY_EDITOR_OSX + var mono_path = Path.Combine(Path.GetDirectoryName(typeof(UnityEngine.Debug).Module.FullyQualifiedName), + "../MonoBleedingEdge/bin/mono"); + if(!File.Exists(mono_path)) + { + mono_path = Path.Combine(Path.GetDirectoryName(typeof(UnityEngine.Debug).Module.FullyQualifiedName), + "../../MonoBleedingEdge/bin/mono"); + } + if(!File.Exists(mono_path)) + { + UnityEngine.Debug.LogError("can not find mono!"); + } +#elif UNITY_EDITOR_WIN + var mono_path = Path.Combine(Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName), + "Data/MonoBleedingEdge/bin/mono.exe"); +#endif + var inject_tool_path = "./Tools/XLuaHotfixInject.exe"; + if (!File.Exists(inject_tool_path)) + { + UnityEngine.Debug.LogError("please install the Tools"); + return; + } + + var assembly_csharp_path = Path.Combine(assemblyDir, "Assembly-CSharp.dll"); + var id_map_file_path = CSObjectWrapEditor.GeneratorConfig.common_path + "Resources/hotfix_id_map.lua.txt"; + var hotfix_cfg_in_editor = CSObjectWrapEditor.GeneratorConfig.common_path + "hotfix_cfg_in_editor.data"; + + Dictionary editor_cfg = new Dictionary(); + Assembly editor_assembly = typeof(Hotfix).Assembly; + HotfixConfig.GetConfig(editor_cfg, Utils.GetAllTypes().Where(t => t.Assembly == editor_assembly)); + + if (!Directory.Exists(CSObjectWrapEditor.GeneratorConfig.common_path)) + { + Directory.CreateDirectory(CSObjectWrapEditor.GeneratorConfig.common_path); + } + + using (BinaryWriter writer = new BinaryWriter(new FileStream(hotfix_cfg_in_editor, FileMode.Create, FileAccess.Write))) + { + writer.Write(editor_cfg.Count); + foreach (var kv in editor_cfg) + { + writer.Write(kv.Key); + writer.Write(kv.Value); + } + } + + List args = new List() { assembly_csharp_path, typeof(LuaEnv).Module.FullyQualifiedName, id_map_file_path, hotfix_cfg_in_editor }; + + foreach (var path in + (from asm in AppDomain.CurrentDomain.GetAssemblies() select asm.ManifestModule.FullyQualifiedName) + .Distinct()) + { + try + { + args.Add(System.IO.Path.GetDirectoryName(path)); + } + catch (Exception) + { + + } + } + var injectAssemblyPaths = HotfixConfig.GetHotfixAssemblyPaths(); + var idMapFileNames = new List(); + foreach (var injectAssemblyPath in injectAssemblyPaths) + { + args[0] = Path.Combine(assemblyDir, Path.GetFileName(injectAssemblyPath)); + if (ContainNotAsciiChar(args[0])) + { + throw new Exception("project path must contain only ascii characters"); + } + + if (injectAssemblyPaths.Count > 1) + { + var injectAssemblyFileName = Path.GetFileName(injectAssemblyPath); + args[2] = CSObjectWrapEditor.GeneratorConfig.common_path + "Resources/hotfix_id_map_" + injectAssemblyFileName.Substring(0, injectAssemblyFileName.Length - 4) + ".lua.txt"; + idMapFileNames.Add(args[2]); + } + Process hotfix_injection = new Process(); + hotfix_injection.StartInfo.FileName = mono_path; +#if UNITY_5_6_OR_NEWER + hotfix_injection.StartInfo.Arguments = "--runtime=v4.0.30319 " + inject_tool_path + " \"" + String.Join("\" \"", args.ToArray()) + "\""; +#else + hotfix_injection.StartInfo.Arguments = inject_tool_path + " \"" + String.Join("\" \"", args.ToArray()) + "\""; +#endif + hotfix_injection.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; + hotfix_injection.StartInfo.RedirectStandardOutput = true; + hotfix_injection.StartInfo.UseShellExecute = false; + hotfix_injection.StartInfo.CreateNoWindow = true; + hotfix_injection.Start(); + UnityEngine.Debug.Log(hotfix_injection.StandardOutput.ReadToEnd()); + hotfix_injection.WaitForExit(); + } + + File.Delete(hotfix_cfg_in_editor); + AssetDatabase.Refresh(); + } + } +} +#endif +#endif diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Hotfix.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Hotfix.cs.meta new file mode 100644 index 00000000..0337acd5 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Hotfix.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2df52722b237505409bd5c3bf0a56e3f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen.meta new file mode 100644 index 00000000..d9bd96c4 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d816cdfd73372c343865d7743b69d8b7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.cs new file mode 100644 index 00000000..519f2118 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.cs @@ -0,0 +1,34 @@ +using UnityEngine; +using System.Collections.Generic; +using XLua; +using System.IO; +using System.Text; +using System.Linq; +using CSObjectWrapEditor; + +public class LinkXmlGen : ScriptableObject +{ + public TextAsset Template; + + public static IEnumerable GetTasks(LuaEnv lua_env, UserConfig user_cfg) + { + LuaTable data = lua_env.NewTable(); + var assembly_infos = (from type in (user_cfg.ReflectionUse.Concat(user_cfg.LuaCallCSharp)) + group type by type.Assembly.GetName().Name into assembly_info + select new { FullName = assembly_info.Key, Types = assembly_info.ToList()}).ToList(); + data.Set("assembly_infos", assembly_infos); + + yield return new CustomGenTask + { + Data = data, + Output = new StreamWriter(GeneratorConfig.common_path + "/link.xml", + false, Encoding.UTF8) + }; + } + + [GenCodeMenu]//加到Generate Code菜单里头 + public static void GenLinkXml() + { + Generator.CustomGen(ScriptableObject.CreateInstance().Template.text, GetTasks); + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.cs.meta new file mode 100644 index 00000000..01146fe3 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c0ec9fb595129eb498b8c0f2f2e2b194 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt new file mode 100644 index 00000000..5adb08aa --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt @@ -0,0 +1,13 @@ +<% +require "TemplateCommon" +%> + + +<%ForEachCsList(assembly_infos, function(assembly_info)%> + + <%ForEachCsList(assembly_info.Types, function(type) + %> + <%end)%> + +<%end)%> + \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt.meta new file mode 100644 index 00000000..05957edc --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 172f735757c40a04381b136c3690967b +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template.meta new file mode 100644 index 00000000..f05f056d --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c45243c22eb0fba4a975fa81bfd91033 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrap.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrap.tpl.txt new file mode 100644 index 00000000..2064c7c8 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrap.tpl.txt @@ -0,0 +1,589 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using XLua; +using System.Collections.Generic; +<%ForEachCsList(namespaces, function(namespace)%>using <%=namespace%>;<%end)%> +<% +require "TemplateCommon" + +local OpNameMap = { + op_Addition = "__AddMeta", + op_Subtraction = "__SubMeta", + op_Multiply = "__MulMeta", + op_Division = "__DivMeta", + op_Equality = "__EqMeta", + op_UnaryNegation = "__UnmMeta", + op_LessThan = "__LTMeta", + op_LessThanOrEqual = "__LEMeta", + op_Modulus = "__ModMeta", + op_BitwiseAnd = "__BandMeta", + op_BitwiseOr = "__BorMeta", + op_ExclusiveOr = "__BxorMeta", + op_OnesComplement = "__BnotMeta", + op_LeftShift = "__ShlMeta", + op_RightShift = "__ShrMeta", +} + +local OpCallNameMap = { + op_Addition = "+", + op_Subtraction = "-", + op_Multiply = "*", + op_Division = "/", + op_Equality = "==", + op_UnaryNegation = "-", + op_LessThan = "<", + op_LessThanOrEqual = "<=", + op_Modulus = "%", + op_BitwiseAnd = "&", + op_BitwiseOr = "|", + op_ExclusiveOr = "^", + op_OnesComplement = "~", + op_LeftShift = "<<", + op_RightShift = ">>", +} + +local obj_method_count = 0 +local obj_getter_count = 0 +local obj_setter_count = 0 +local meta_func_count = operators.Count +local cls_field_count = 1 +local cls_getter_count = 0 +local cls_setter_count = 0 + +ForEachCsList(methods, function(method) + if method.IsStatic then + cls_field_count = cls_field_count + 1 + else + obj_method_count = obj_method_count + 1 + end +end) + +ForEachCsList(events, function(event) + if event.IsStatic then + cls_field_count = cls_field_count + 1 + else + obj_method_count = obj_method_count + 1 + end +end) + +ForEachCsList(getters, function(getter) + if getter.IsStatic then + if getter.ReadOnly then + cls_field_count = cls_field_count + 1 + else + cls_getter_count = cls_getter_count + 1 + end + else + obj_getter_count = obj_getter_count + 1 + end +end) + +ForEachCsList(setters, function(setter) + if setter.IsStatic then + cls_setter_count = cls_setter_count + 1 + else + obj_setter_count = obj_setter_count + 1 + end +end) + +ForEachCsList(lazymembers, function(lazymember) + if lazymember.IsStatic == 'true' then + if 'CLS_IDX' == lazymember.Index then + cls_field_count = cls_field_count + 1 + elseif 'CLS_GETTER_IDX' == lazymember.Index then + cls_getter_count = cls_getter_count + 1 + elseif 'CLS_SETTER_IDX' == lazymember.Index then + cls_setter_count = cls_setter_count + 1 + end + else + if 'METHOD_IDX' == lazymember.Index then + obj_method_count = obj_method_count + 1 + elseif 'GETTER_IDX' == lazymember.Index then + obj_getter_count = obj_getter_count + 1 + elseif 'SETTER_IDX' == lazymember.Index then + obj_setter_count = obj_setter_count + 1 + end + end +end) + +local generic_arg_list, type_constraints = GenericArgumentList(type) + +%> +namespace XLua.CSObjectWrap +{ + using Utils = XLua.Utils; + public class <%=CSVariableName(type)%>Wrap<%=generic_arg_list%> <%=type_constraints%> + { + public static void __Register(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + System.Type type = typeof(<%=CsFullTypeName(type)%>); + Utils.BeginObjectRegister(type, L, translator, <%=meta_func_count%>, <%=obj_method_count%>, <%=obj_getter_count%>, <%=obj_setter_count%>); + <%ForEachCsList(operators, function(operator)%>Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "<%=(OpNameMap[operator.Name]):gsub('Meta', ''):lower()%>", <%=OpNameMap[operator.Name]%>); + <%end)%> + <%ForEachCsList(methods, function(method) if not method.IsStatic then %>Utils.RegisterFunc(L, Utils.METHOD_IDX, "<%=method.Name%>", _m_<%=method.Name%>); + <% end end)%> + <%ForEachCsList(events, function(event) if not event.IsStatic then %>Utils.RegisterFunc(L, Utils.METHOD_IDX, "<%=event.Name%>", _e_<%=event.Name%>); + <% end end)%> + <%ForEachCsList(getters, function(getter) if not getter.IsStatic then %>Utils.RegisterFunc(L, Utils.GETTER_IDX, "<%=getter.Name%>", _g_get_<%=getter.Name%>); + <%end end)%> + <%ForEachCsList(setters, function(setter) if not setter.IsStatic then %>Utils.RegisterFunc(L, Utils.SETTER_IDX, "<%=setter.Name%>", _s_set_<%=setter.Name%>); + <%end end)%> + <%ForEachCsList(lazymembers, function(lazymember) if lazymember.IsStatic == 'false' then %>Utils.RegisterLazyFunc(L, Utils.<%=lazymember.Index%>, "<%=lazymember.Name%>", type, <%=lazymember.MemberType%>, <%=lazymember.IsStatic%>); + <%end end)%> + Utils.EndObjectRegister(type, L, translator, <% if type.IsArray or ((indexers.Count or 0) > 0) then %>__CSIndexer<%else%>null<%end%>, <%if type.IsArray or ((newindexers.Count or 0) > 0) then%>__NewIndexer<%else%>null<%end%>, + null, null, null); + + Utils.BeginClassRegister(type, L, __CreateInstance, <%=cls_field_count%>, <%=cls_getter_count%>, <%=cls_setter_count%>); + <%ForEachCsList(methods, function(method) if method.IsStatic then %>Utils.RegisterFunc(L, Utils.CLS_IDX, "<%=method.Overloads[0].Name%>", _m_<%=method.Name%>); + <% end end)%> + <%ForEachCsList(events, function(event) if event.IsStatic then %>Utils.RegisterFunc(L, Utils.CLS_IDX, "<%=event.Name%>", _e_<%=event.Name%>); + <% end end)%> + <%ForEachCsList(getters, function(getter) if getter.IsStatic and getter.ReadOnly then %>Utils.RegisterObject(L, translator, Utils.CLS_IDX, "<%=getter.Name%>", <%=CsFullTypeName(type).."."..getter.Name%>); + <%end end)%> + <%ForEachCsList(getters, function(getter) if getter.IsStatic and (not getter.ReadOnly) then %>Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "<%=getter.Name%>", _g_get_<%=getter.Name%>); + <%end end)%> + <%ForEachCsList(setters, function(setter) if setter.IsStatic then %>Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "<%=setter.Name%>", _s_set_<%=setter.Name%>); + <%end end)%> + <%ForEachCsList(lazymembers, function(lazymember) if lazymember.IsStatic == 'true' then %>Utils.RegisterLazyFunc(L, Utils.<%=lazymember.Index%>, "<%=lazymember.Name%>", type, <%=lazymember.MemberType%>, <%=lazymember.IsStatic%>); + <%end end)%> + Utils.EndClassRegister(type, L, translator); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __CreateInstance(RealStatePtr L) + { + <% + if constructors.Count == 0 and (not type.IsValueType) then + %>return LuaAPI.luaL_error(L, "<%=CsFullTypeName(type)%> does not have a constructor!");<% + else %> + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + <% + local hasZeroParamsCtor = false + ForEachCsList(constructors, function(constructor, ci) + local parameters = constructor:GetParameters() + if parameters.Length == 0 then + hasZeroParamsCtor = true + end + local def_count = constructor_def_vals[ci] + local param_count = parameters.Length + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local real_param_count = param_count - def_count + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + local in_pos = 0 + %>if(LuaAPI.lua_gettop(L) <%=has_v_params and ">=" or "=="%> <%=in_num + 1 - def_count - (has_v_params and 1 or 0)%><%ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + local parameterType = parameter.ParameterType + if has_v_params and pi == param_count - 1 then parameterType = parameterType:GetElementType() end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then in_pos = in_pos + 1 + %> && <%=GetCheckStatement(parameterType, in_pos+1, has_v_params and pi == param_count - 1)%><% + end + end)%>) + { + <%ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + %><%=GetCasterStatement(parameter.ParameterType, pi+2, LocalName(parameter.Name), true, has_v_params and pi == param_count - 1)%>; + <%end)%> + <%=CsFullTypeName(type)%> gen_ret = new <%=CsFullTypeName(type)%>(<%ForEachCsList(parameters, function(parameter, pi) if pi >= real_param_count then return end; if pi ~=0 then %><%=', '%><% end ;if parameter.IsOut and parameter.ParameterType.IsByRef then %>out <% elseif parameter.ParameterType.IsByRef then %>ref <% end %><%=LocalName(parameter.Name)%><% end)%>); + <%=GetPushStatement(type, "gen_ret")%>; + <%local in_pos = 0 + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + end + if parameter.ParameterType.IsByRef then + %><%=GetPushStatement(parameter.ParameterType:GetElementType(), LocalName(parameter.Name))%>; + <%if not parameter.IsOut and parameter.ParameterType.IsByRef and NeedUpdate(parameter.ParameterType) then + %><%=GetUpdateStatement(parameter.ParameterType:GetElementType(), in_pos+1, LocalName(parameter.Name))%>; + <%end%> + <% + end + end) + %> + return <%=out_num + 1%>; + } + <%end) + if (not hasZeroParamsCtor) and type.IsValueType then + %> + if (LuaAPI.lua_gettop(L) == 1) + { + <%=GetPushStatement(type, "default(" .. CsFullTypeName(type).. ")")%>; + return 1; + } + <%end%> + } + catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%> constructor!"); + <% end %> + } + + <% if type.IsArray or ((indexers.Count or 0) > 0) then %> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + public static int __CSIndexer(RealStatePtr L) + { + <%if type.IsArray then %> + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + if (<%=GetCheckStatement(type, 1)%> && LuaAPI.lua_isnumber(L, 2)) + { + int index = (int)LuaAPI.lua_tonumber(L, 2); + <%=GetSelfStatement(type)%>; + LuaAPI.lua_pushboolean(L, true); + <%=GetPushStatement(type:GetElementType(), "gen_to_be_invoked[index]")%>; + return 2; + } + } + catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + <%elseif indexers.Count > 0 then + %>try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + <% + ForEachCsList(indexers, function(indexer) + local paramter = indexer:GetParameters()[0] + %> + if (<%=GetCheckStatement(type, 1)%> && <%=GetCheckStatement(paramter.ParameterType, 2)%>) + { + + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(paramter.ParameterType, 2, "index", true)%>; + LuaAPI.lua_pushboolean(L, true); + <%=GetPushStatement(indexer.ReturnType, "gen_to_be_invoked[index]")%>; + return 2; + } + <%end)%> + } + catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + <%end%> + LuaAPI.lua_pushboolean(L, false); + return 1; + } + <% end %> + + <%if type.IsArray or ((newindexers.Count or 0) > 0) then%> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + public static int __NewIndexer(RealStatePtr L) + { + <%if type.IsArray or newindexers.Count > 0 then %>ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);<%end%> + <%if type.IsArray then + local elementType = type:GetElementType() + %> + try { + if (<%=GetCheckStatement(type, 1)%> && LuaAPI.lua_isnumber(L, 2) && <%=GetCheckStatement(elementType, 3)%>) + { + int index = (int)LuaAPI.lua_tonumber(L, 2); + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(elementType, 3, "gen_to_be_invoked[index]")%>; + LuaAPI.lua_pushboolean(L, true); + return 1; + } + } + catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + <%elseif newindexers.Count > 0 then%> + try { + <%ForEachCsList(newindexers, function(newindexer) + local keyType = newindexer:GetParameters()[0].ParameterType + local valueType = newindexer:GetParameters()[1].ParameterType + %> + if (<%=GetCheckStatement(type, 1)%> && <%=GetCheckStatement(keyType, 2)%> && <%=GetCheckStatement(valueType, 3)%>) + { + + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(keyType, 2, "key", true)%>; + <%if IsStruct(valueType) then%><%=GetCasterStatement(valueType, 3, "gen_value", true)%>; + gen_to_be_invoked[key] = gen_value;<%else + %><%=GetCasterStatement(valueType, 3, "gen_to_be_invoked[key]")%>;<%end%> + LuaAPI.lua_pushboolean(L, true); + return 1; + } + <%end)%> + } + catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + <%end%> + LuaAPI.lua_pushboolean(L, false); + return 1; + } + <% end %> + + <%ForEachCsList(operators, function(operator) %> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int <%=OpNameMap[operator.Name]%>(RealStatePtr L) + { + <% if operator.Name ~= "op_UnaryNegation" and operator.Name ~= "op_OnesComplement" then %> + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + <%ForEachCsList(operator.Overloads, function(overload) + local left_param = overload:GetParameters()[0] + local right_param = overload:GetParameters()[1] + %> + + if (<%=GetCheckStatement(left_param.ParameterType, 1)%> && <%=GetCheckStatement(right_param.ParameterType, 2)%>) + { + <%=GetCasterStatement(left_param.ParameterType, 1, "leftside", true)%>; + <%=GetCasterStatement(right_param.ParameterType, 2, "rightside", true)%>; + + <%=GetPushStatement(overload.ReturnType, "leftside " .. OpCallNameMap[operator.Name] .. " rightside")%>; + + return 1; + } + <%end)%> + } + catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return LuaAPI.luaL_error(L, "invalid arguments to right hand of <%=OpCallNameMap[operator.Name]%> operator, need <%=CsFullTypeName(type)%>!"); + <%else%> + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + try { + <%=GetCasterStatement(type, 1, "rightside", true)%>; + <%=GetPushStatement(operator.Overloads[0].ReturnType, OpCallNameMap[operator.Name] .. " rightside")%>; + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + <%end%> + } + <%end)%> + + <%ForEachCsList(methods, function(method)%> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_<%=method.Name%>(RealStatePtr L) + { + try { + <% + local need_obj = not method.IsStatic + if MethodCallNeedTranslator(method) then + %> + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + <%end%> + <%if need_obj then%> + <%=GetSelfStatement(type)%>; + <%end%> + <%if method.Overloads.Count > 1 then%> + int gen_param_count = LuaAPI.lua_gettop(L); + <%end%> + <%ForEachCsList(method.Overloads, function(overload, oi) + local parameters = MethodParameters(overload) + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local param_offset = method.IsStatic and 0 or 1 + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local in_pos = 0 + local has_return = (overload.ReturnType.FullName ~= "System.Void") + local def_count = method.DefaultValues[oi] + local param_count = parameters.Length + local real_param_count = param_count - def_count + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + if method.Overloads.Count > 1 then + %>if(gen_param_count <%=has_v_params and ">=" or "=="%> <%=in_num+param_offset-def_count - (has_v_params and 1 or 0)%><% + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + local parameterType = parameter.ParameterType + if has_v_params and pi == param_count - 1 then parameterType = parameterType:GetElementType() end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then in_pos = in_pos + 1; + %>&& <%=GetCheckStatement(parameterType , in_pos+param_offset, has_v_params and pi == param_count - 1)%><% + end + end)%>) <%end%> + { + <%if overload.Name == "get_Item" and overload.IsSpecialName then + local keyType = overload:GetParameters()[0].ParameterType%> + <%=GetCasterStatement(keyType, 2, "key", true)%>; + <%=GetPushStatement(overload.ReturnType, "gen_to_be_invoked[key]")%>; + <%elseif overload.Name == "set_Item" and overload.IsSpecialName then + local keyType = overload:GetParameters()[0].ParameterType + local valueType = overload:GetParameters()[1].ParameterType%> + <%=GetCasterStatement(keyType, 2, "key", true)%>; + <%=GetCasterStatement(valueType, 3, "gen_value", true)%>; + gen_to_be_invoked[key] = gen_value; + <% else + in_pos = 0; + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + %><%if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + %><%=GetCasterStatement(parameter.ParameterType, in_pos+param_offset, LocalName(parameter.Name), true, has_v_params and pi == param_count - 1)%><% + else%><%=CsFullTypeName(parameter.ParameterType)%> <%=LocalName(parameter.Name)%><%end%>; + <%end)%> + <% + if has_return then + %> <%=CsFullTypeName(overload.ReturnType)%> gen_ret = <% + end + %><%if method.IsStatic then + %><%=CsFullTypeName(type).."."..UnK(overload.Name)%><% + else + %>gen_to_be_invoked.<%=UnK(overload.Name)%><% + end%>( <%ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + if pi ~= 0 then %>, <% end; if parameter.IsOut and parameter.ParameterType.IsByRef then %>out <% elseif parameter.ParameterType.IsByRef then %>ref <% end %><%=LocalName(parameter.Name)%><% end) %> ); + <% + if has_return then + %> <%=GetPushStatement(overload.ReturnType, "gen_ret")%>; + <% + end + local in_pos = 0 + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + end + if parameter.ParameterType.IsByRef then + %><%=GetPushStatement(parameter.ParameterType:GetElementType(), LocalName(parameter.Name))%>; + <%if not parameter.IsOut and parameter.ParameterType.IsByRef and NeedUpdate(parameter.ParameterType) then + %><%=GetUpdateStatement(parameter.ParameterType:GetElementType(), in_pos+param_offset, LocalName(parameter.Name))%>; + <%end%> + <% + end + end) + end + %> + <%if NeedUpdate(type) and not method.IsStatic then%> + <%=GetUpdateStatement(type, 1, "gen_to_be_invoked")%>; + <%end%> + + return <%=out_num+(has_return and 1 or 0)%>; + } + <% end)%> + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + <%if method.Overloads.Count > 1 then%> + return LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%>.<%=method.Overloads[0].Name%>!"); + <%end%> + } + <% end)%> + + + <%ForEachCsList(getters, function(getter) + if getter.IsStatic and getter.ReadOnly then return end --readonly static + %> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_<%=getter.Name%>(RealStatePtr L) + { + try { + <%if AccessorNeedTranslator(getter) then %> ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);<%end%> + <%if not getter.IsStatic then%> + <%=GetSelfStatement(type)%>; + <%=GetPushStatement(getter.Type, "gen_to_be_invoked."..UnK(getter.Name))%>;<% else %> <%=GetPushStatement(getter.Type, CsFullTypeName(type).."."..UnK(getter.Name))%>;<% end%> + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + <%end)%> + + <%ForEachCsList(setters, function(setter) + local is_struct = IsStruct(setter.Type) + %> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _s_set_<%=setter.Name%>(RealStatePtr L) + { + try { + <%if AccessorNeedTranslator(setter) then %>ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);<%end%> + <%if not setter.IsStatic then %> + <%=GetSelfStatement(type)%>; + <%if is_struct then %><%=GetCasterStatement(setter.Type, 2, "gen_value", true)%>; + gen_to_be_invoked.<%=UnK(setter.Name)%> = gen_value;<% else + %><%=GetCasterStatement(setter.Type, 2, "gen_to_be_invoked." .. UnK(setter.Name))%>;<%end + else + if is_struct then %><%=GetCasterStatement(setter.Type, 1, "gen_value", true)%>; + <%=CsFullTypeName(type)%>.<%=UnK(setter.Name)%> = gen_value;<%else + %> <%=GetCasterStatement(setter.Type, 1, CsFullTypeName(type) .."." .. UnK(setter.Name))%>;<%end + end%> + <%if NeedUpdate(type) and not setter.IsStatic then%> + <%=GetUpdateStatement(type, 1, "gen_to_be_invoked")%>; + <%end%> + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 0; + } + <%end)%> + + <%ForEachCsList(events, function(event) if not event.IsStatic then %> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _e_<%=event.Name%>(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + int gen_param_count = LuaAPI.lua_gettop(L); + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(event.Type, 3, "gen_delegate", true)%>; + if (gen_delegate == null) { + return LuaAPI.luaL_error(L, "#3 need <%=CsFullTypeName(event.Type)%>!"); + } + + if (gen_param_count == 3) + { + <%if event.CanAdd then%> + if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { + gen_to_be_invoked.<%=UnK(event.Name)%> += gen_delegate; + return 0; + } + <%end%> + <%if event.CanRemove then%> + if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { + gen_to_be_invoked.<%=UnK(event.Name)%> -= gen_delegate; + return 0; + } + <%end%> + } + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%>.<%=event.Name%>!"); + return 0; + } + <%end end)%> + + <%ForEachCsList(events, function(event) if event.IsStatic then %> + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _e_<%=event.Name%>(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + int gen_param_count = LuaAPI.lua_gettop(L); + <%=GetCasterStatement(event.Type, 2, "gen_delegate", true)%>; + if (gen_delegate == null) { + return LuaAPI.luaL_error(L, "#2 need <%=CsFullTypeName(event.Type)%>!"); + } + + <%if event.CanAdd then%> + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { + <%=CsFullTypeName(type)%>.<%=UnK(event.Name)%> += gen_delegate; + return 0; + } + <%end%> + <%if event.CanRemove then%> + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { + <%=CsFullTypeName(type)%>.<%=UnK(event.Name)%> -= gen_delegate; + return 0; + } + <%end%> + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%>.<%=event.Name%>!"); + } + <%end end)%> + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrap.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrap.tpl.txt.meta new file mode 100644 index 00000000..328c2a4c --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrap.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 460ba7dce84f3a54f879d9a3c5d02630 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrapGCM.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrapGCM.tpl.txt new file mode 100644 index 00000000..82603790 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrapGCM.tpl.txt @@ -0,0 +1,517 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using XLua; +using System.Collections.Generic; +<%ForEachCsList(namespaces, function(namespace)%>using <%=namespace%>;<%end)%> +<% +require "TemplateCommon" + +local OpNameMap = { + op_Addition = "__AddMeta", + op_Subtraction = "__SubMeta", + op_Multiply = "__MulMeta", + op_Division = "__DivMeta", + op_Equality = "__EqMeta", + op_UnaryNegation = "__UnmMeta", + op_LessThan = "__LTMeta", + op_LessThanOrEqual = "__LEMeta", + op_Modulus = "__ModMeta", + op_BitwiseAnd = "__BandMeta", + op_BitwiseOr = "__BorMeta", + op_ExclusiveOr = "__BxorMeta", + op_OnesComplement = "__BnotMeta", + op_LeftShift = "__ShlMeta", + op_RightShift = "__ShrMeta", +} + +local OpCallNameMap = { + op_Addition = "+", + op_Subtraction = "-", + op_Multiply = "*", + op_Division = "/", + op_Equality = "==", + op_UnaryNegation = "-", + op_LessThan = "<", + op_LessThanOrEqual = "<=", + op_Modulus = "%", + op_BitwiseAnd = "&", + op_BitwiseOr = "|", + op_ExclusiveOr = "^", + op_OnesComplement = "~", + op_LeftShift = "<<", + op_RightShift = ">>", +} + +local obj_method_count = 0 +local obj_getter_count = 0 +local obj_setter_count = 0 +local meta_func_count = operators.Count +local cls_field_count = 1 +local cls_getter_count = 0 +local cls_setter_count = 0 + +ForEachCsList(methods, function(method) + if method.IsStatic then + cls_field_count = cls_field_count + 1 + else + obj_method_count = obj_method_count + 1 + end +end) + +ForEachCsList(events, function(event) + if event.IsStatic then + cls_field_count = cls_field_count + 1 + else + obj_method_count = obj_method_count + 1 + end +end) + +ForEachCsList(getters, function(getter) + if getter.IsStatic then + if getter.ReadOnly then + cls_field_count = cls_field_count + 1 + else + cls_getter_count = cls_getter_count + 1 + end + else + obj_getter_count = obj_getter_count + 1 + end +end) + +ForEachCsList(setters, function(setter) + if setter.IsStatic then + cls_setter_count = cls_setter_count + 1 + else + obj_setter_count = obj_setter_count + 1 + end +end) + +ForEachCsList(lazymembers, function(lazymember) + if lazymember.IsStatic == 'true' then + if 'CLS_IDX' == lazymember.Index then + cls_field_count = cls_field_count + 1 + elseif 'CLS_GETTER_IDX' == lazymember.Index then + cls_getter_count = cls_getter_count + 1 + elseif 'CLS_SETTER_IDX' == lazymember.Index then + cls_setter_count = cls_setter_count + 1 + end + else + if 'METHOD_IDX' == lazymember.Index then + obj_method_count = obj_method_count + 1 + elseif 'GETTER_IDX' == lazymember.Index then + obj_getter_count = obj_getter_count + 1 + elseif 'SETTER_IDX' == lazymember.Index then + obj_setter_count = obj_setter_count + 1 + end + end +end) + +local v_type_name = CSVariableName(type) +local generic_arg_list, type_constraints = GenericArgumentList(type) + +%> +namespace XLua +{ + public partial class ObjectTranslator + { + public void __Register<%=v_type_name%><%=generic_arg_list%>(RealStatePtr L) <%=type_constraints%> + { + System.Type type = typeof(<%=CsFullTypeName(type)%>); + Utils.BeginObjectRegister(type, L, this, <%=meta_func_count%>, <%=obj_method_count%>, <%=obj_getter_count%>, <%=obj_setter_count%>); + <%ForEachCsList(operators, function(operator)%>Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "<%=(OpNameMap[operator.Name]):gsub('Meta', ''):lower()%>", <%=v_type_name%><%=OpNameMap[operator.Name]%><%=generic_arg_list%>); + <%end)%> + <%ForEachCsList(methods, function(method) if not method.IsStatic then %>Utils.RegisterFunc(L, Utils.METHOD_IDX, "<%=method.Name%>", <%=v_type_name%>_m_<%=method.Name%><%=generic_arg_list%>); + <% end end)%> + <%ForEachCsList(events, function(event) if not event.IsStatic then %>Utils.RegisterFunc(L, Utils.METHOD_IDX, "<%=event.Name%>", <%=v_type_name%>_e_<%=event.Name%><%=generic_arg_list%>); + <% end end)%> + <%ForEachCsList(getters, function(getter) if not getter.IsStatic then %>Utils.RegisterFunc(L, Utils.GETTER_IDX, "<%=getter.Name%>", <%=v_type_name%>_g_get_<%=getter.Name%><%=generic_arg_list%>); + <%end end)%> + <%ForEachCsList(setters, function(setter) if not setter.IsStatic then %>Utils.RegisterFunc(L, Utils.SETTER_IDX, "<%=setter.Name%>", <%=v_type_name%>_s_set_<%=setter.Name%><%=generic_arg_list%>); + <%end end)%> + <%ForEachCsList(lazymembers, function(lazymember) if lazymember.IsStatic == 'false' then %>Utils.RegisterLazyFunc(L, Utils.<%=lazymember.Index%>, "<%=lazymember.Name%>", type, <%=lazymember.MemberType%>, <%=lazymember.IsStatic%>); + <%end end)%> + Utils.EndObjectRegister(type, L, this, <% if type.IsArray or ((indexers.Count or 0) > 0) then %>__CSIndexer<%=v_type_name%><%=generic_arg_list%><%else%>null<%end%>, <%if type.IsArray or ((newindexers.Count or 0) > 0) then%>__NewIndexer<%=v_type_name%><%=generic_arg_list%><%else%>null<%end%>, + null, null, null); + + Utils.BeginClassRegister(type, L, __CreateInstance<%=v_type_name%><%=generic_arg_list%>, <%=cls_field_count%>, <%=cls_getter_count%>, <%=cls_setter_count%>); + <%ForEachCsList(methods, function(method) if method.IsStatic then %>Utils.RegisterFunc(L, Utils.CLS_IDX, "<%=method.Overloads[0].Name%>", <%=v_type_name%>_m_<%=method.Name%><%=generic_arg_list%>); + <% end end)%> + <%ForEachCsList(events, function(event) if event.IsStatic then %>Utils.RegisterFunc(L, Utils.CLS_IDX, "<%=event.Name%>", <%=v_type_name%>_e_<%=event.Name%><%=generic_arg_list%>); + <% end end)%> + <%ForEachCsList(getters, function(getter) if getter.IsStatic and getter.ReadOnly then %>Utils.RegisterObject(L, this, Utils.CLS_IDX, "<%=getter.Name%>", <%=CsFullTypeName(type).."."..getter.Name%>); + <%end end)%> + <%ForEachCsList(getters, function(getter) if getter.IsStatic and (not getter.ReadOnly) then %>Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "<%=getter.Name%>", <%=v_type_name%>_g_get_<%=getter.Name%><%=generic_arg_list%>); + <%end end)%> + <%ForEachCsList(setters, function(setter) if setter.IsStatic then %>Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "<%=setter.Name%>", <%=v_type_name%>_s_set_<%=setter.Name%><%=generic_arg_list%>); + <%end end)%> + <%ForEachCsList(lazymembers, function(lazymember) if lazymember.IsStatic == 'true' then %>Utils.RegisterLazyFunc(L, Utils.<%=lazymember.Index%>, "<%=lazymember.Name%>", type, <%=lazymember.MemberType%>, <%=lazymember.IsStatic%>); + <%end end)%> + Utils.EndClassRegister(type, L, this); + } + + int __CreateInstance<%=v_type_name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + <% + if constructors.Count == 0 and (not type.IsValueType) then + %>return LuaAPI.luaL_error(L, "<%=CsFullTypeName(type)%> does not have a constructor!");<% + else %> + ObjectTranslator translator = this; + <% + local hasZeroParamsCtor = false + ForEachCsList(constructors, function(constructor, ci) + local parameters = constructor:GetParameters() + if parameters.Length == 0 then + hasZeroParamsCtor = true + end + local def_count = constructor_def_vals[ci] + local param_count = parameters.Length + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local real_param_count = param_count - def_count + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + local in_pos = 0 + %>if(gen_param_count <%=has_v_params and ">=" or "=="%> <%=in_num + 1 - def_count - (has_v_params and 1 or 0)%><%ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + local parameterType = parameter.ParameterType + if has_v_params and pi == param_count - 1 then parameterType = parameterType:GetElementType() end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then in_pos = in_pos + 1 + %> && <%=GetCheckStatement(parameterType, in_pos+1, has_v_params and pi == param_count - 1)%><% + end + end)%>) + { + <%ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + %><%=GetCasterStatement(parameter.ParameterType, pi+2, LocalName(parameter.Name), true, has_v_params and pi == param_count - 1)%>; + <%end)%> + <%=CsFullTypeName(type)%> gen_ret = new <%=CsFullTypeName(type)%>(<%ForEachCsList(parameters, function(parameter, pi) if pi >= real_param_count then return end; if pi ~=0 then %><%=', '%><% end ;if parameter.IsOut and parameter.ParameterType.IsByRef then %>out <% elseif parameter.ParameterType.IsByRef then %>ref <% end %><%=LocalName(parameter.Name)%><% end)%>); + <%=GetPushStatement(type, "gen_ret")%>; + <%local in_pos = 0 + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + end + if parameter.ParameterType.IsByRef then + %><%=GetPushStatement(parameter.ParameterType:GetElementType(), LocalName(parameter.Name))%>; + <%if not parameter.IsOut and parameter.ParameterType.IsByRef and NeedUpdate(parameter.ParameterType) then + %><%=GetUpdateStatement(parameter.ParameterType:GetElementType(), in_pos+1, LocalName(parameter.Name))%>; + <%end%> + <% + end + end) + %> + return <%=out_num + 1%>; + } + <%end) + if (not hasZeroParamsCtor) and type.IsValueType then + %> + if (gen_param_count == 1) + { + <%=GetPushStatement(type, "default(" .. CsFullTypeName(type).. ")")%>; + return 1; + } + <%end%> + + return LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%> constructor!"); + <% end %> + } + + <% if type.IsArray or ((indexers.Count or 0) > 0) then %> + int __CSIndexer<%=v_type_name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + <%if type.IsArray then %> + ObjectTranslator translator = this; + if (<%=GetCheckStatement(type, 1)%> && LuaAPI.lua_isnumber(L, 2)) + { + int index = (int)LuaAPI.lua_tonumber(L, 2); + <%=GetSelfStatement(type)%>; + LuaAPI.lua_pushboolean(L, true); + <%=GetPushStatement(type:GetElementType(), "gen_to_be_invoked[index]")%>; + return 2; + } + <%elseif indexers.Count > 0 then + %>ObjectTranslator translator = this; + <% + ForEachCsList(indexers, function(indexer) + local paramter = indexer:GetParameters()[0] + %> + if (<%=GetCheckStatement(type, 1)%> && <%=GetCheckStatement(paramter.ParameterType, 2)%>) + { + + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(paramter.ParameterType, 2, "index", true)%>; + LuaAPI.lua_pushboolean(L, true); + <%=GetPushStatement(indexer.ReturnType, "gen_to_be_invoked[index]")%>; + return 2; + } + <%end) + end%> + LuaAPI.lua_pushboolean(L, false); + return 1; + } + <% end %> + + <%if type.IsArray or ((newindexers.Count or 0) > 0) then%> + int __NewIndexer<%=v_type_name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + <%if type.IsArray or newindexers.Count > 0 then %>ObjectTranslator translator = this;<%end%> + <%if type.IsArray then + local elementType = type:GetElementType() + %> + if (<%=GetCheckStatement(type, 1)%> && LuaAPI.lua_isnumber(L, 2) && <%=GetCheckStatement(elementType, 3)%>) + { + int index = (int)LuaAPI.lua_tonumber(L, 2); + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(elementType, 3, "gen_to_be_invoked[index]")%>; + LuaAPI.lua_pushboolean(L, true); + return 1; + } + <%elseif newindexers.Count > 0 then%> + <%ForEachCsList(newindexers, function(newindexer) + local keyType = newindexer:GetParameters()[0].ParameterType + local valueType = newindexer:GetParameters()[1].ParameterType + %> + if (<%=GetCheckStatement(type, 1)%> && <%=GetCheckStatement(keyType, 2)%> && <%=GetCheckStatement(valueType, 3)%>) + { + + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(keyType, 2, "key", true)%>; + <%if IsStruct(valueType) then%><%=GetCasterStatement(valueType, 3, "gen_value", true)%>; + gen_to_be_invoked[key] = gen_value;<%else + %><%=GetCasterStatement(valueType, 3, "gen_to_be_invoked[key]")%>;<%end%> + LuaAPI.lua_pushboolean(L, true); + return 1; + } + <%end) + end%> + LuaAPI.lua_pushboolean(L, false); + return 1; + } + <% end %> + + <%ForEachCsList(operators, function(operator) %> + int <%=v_type_name%><%=OpNameMap[operator.Name]%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + ObjectTranslator translator = this; + <% if operator.Name ~= "op_UnaryNegation" and operator.Name ~= "op_OnesComplement" then + ForEachCsList(operator.Overloads, function(overload) + local left_param = overload:GetParameters()[0] + local right_param = overload:GetParameters()[1] + %> + if (<%=GetCheckStatement(left_param.ParameterType, 1)%> && <%=GetCheckStatement(right_param.ParameterType, 2)%>) + { + <%=GetCasterStatement(left_param.ParameterType, 1, "leftside", true)%>; + <%=GetCasterStatement(right_param.ParameterType, 2, "rightside", true)%>; + + <%=GetPushStatement(overload.ReturnType, "leftside " .. OpCallNameMap[operator.Name] .. " rightside")%>; + + return 1; + } + <%end)%> + return LuaAPI.luaL_error(L, "invalid arguments to right hand of <%=OpCallNameMap[operator.Name]%> operator, need <%=CsFullTypeName(type)%>!"); + <%else%> + <%=GetCasterStatement(type, 1, "rightside", true)%>; + <%=GetPushStatement(operator.Overloads[0].ReturnType, OpCallNameMap[operator.Name] .. " rightside")%>; + return 1; + <%end%> + } + <%end)%> + + <%ForEachCsList(methods, function(method)%> + int <%=v_type_name%>_m_<%=method.Name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + <% + local need_obj = not method.IsStatic + if MethodCallNeedTranslator(method) then + %> + ObjectTranslator translator = this; + <%end%> + <%if need_obj then%> + <%=GetSelfStatement(type)%>; + <%end%> + <%ForEachCsList(method.Overloads, function(overload, oi) + local parameters = MethodParameters(overload) + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local param_offset = method.IsStatic and 0 or 1 + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local in_pos = 0 + local has_return = (overload.ReturnType.FullName ~= "System.Void") + local def_count = method.DefaultValues[oi] + local param_count = parameters.Length + local real_param_count = param_count - def_count + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + if method.Overloads.Count > 1 then + %>if(gen_param_count <%=has_v_params and ">=" or "=="%> <%=in_num+param_offset-def_count - (has_v_params and 1 or 0)%><% + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + local parameterType = parameter.ParameterType + if has_v_params and pi == param_count - 1 then parameterType = parameterType:GetElementType() end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then in_pos = in_pos + 1; + %>&& <%=GetCheckStatement(parameterType , in_pos+param_offset, has_v_params and pi == param_count - 1)%><% + end + end)%>) <%end%> + { + <%if overload.Name == "get_Item" and overload.IsSpecialName then + local keyType = overload:GetParameters()[0].ParameterType%> + <%=GetCasterStatement(keyType, 2, "key", true)%>; + <%=GetPushStatement(overload.ReturnType, "gen_to_be_invoked[key]")%>; + <%elseif overload.Name == "set_Item" and overload.IsSpecialName then + local keyType = overload:GetParameters()[0].ParameterType + local valueType = overload:GetParameters()[1].ParameterType%> + <%=GetCasterStatement(keyType, 2, "key", true)%>; + <%=GetCasterStatement(valueType, 3, "gen_to_be_invoked[key]")%>; + <% else + in_pos = 0; + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + %><%if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + %><%=GetCasterStatement(parameter.ParameterType, in_pos+param_offset, LocalName(parameter.Name), true, has_v_params and pi == param_count - 1)%><% + else%><%=CsFullTypeName(parameter.ParameterType)%> <%=LocalName(parameter.Name)%><%end%>; + <%end)%> + <% + if has_return then + %><%=CsFullTypeName(overload.ReturnType)%> gen_ret = <% + end + %><%if method.IsStatic then + %><%=CsFullTypeName(type).."."..UnK(overload.Name)%><% + else + %>gen_to_be_invoked.<%=UnK(overload.Name)%><% + end%>( <%ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + if pi ~= 0 then %>, <% end; if parameter.IsOut and parameter.ParameterType.IsByRef then %>out <% elseif parameter.ParameterType.IsByRef then %>ref <% end %><%=LocalName(parameter.Name)%><% end) %> ); + <% + if has_return then + %><%=GetPushStatement(overload.ReturnType, "gen_ret")%>; + <% + end + local in_pos = 0 + ForEachCsList(parameters, function(parameter, pi) + if pi >= real_param_count then return end + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + end + if parameter.ParameterType.IsByRef then + %><%=GetPushStatement(parameter.ParameterType:GetElementType(), LocalName(parameter.Name))%>; + <%if not parameter.IsOut and parameter.ParameterType.IsByRef and NeedUpdate(parameter.ParameterType) then + %><%=GetUpdateStatement(parameter.ParameterType:GetElementType(), in_pos+param_offset, LocalName(parameter.Name))%>; + <%end%> + <% + end + end) + end + %> + <%if NeedUpdate(type) and not method.IsStatic then%> + <%=GetUpdateStatement(type, 1, "gen_to_be_invoked")%>; + <%end%> + + return <%=out_num+(has_return and 1 or 0)%>; + } + <% end)%> + <%if method.Overloads.Count > 1 then%> + return LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%>.<%=method.Overloads[0].Name%>!"); + <%end%> + } + <% end)%> + + + <%ForEachCsList(getters, function(getter) + if getter.IsStatic and getter.ReadOnly then return end --readonly static + %> + int <%=v_type_name%>_g_get_<%=getter.Name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + <%if AccessorNeedTranslator(getter) then %>ObjectTranslator translator = this;<%end%> + <%if not getter.IsStatic then%> + <%=GetSelfStatement(type)%>; + <%=GetPushStatement(getter.Type, "gen_to_be_invoked."..UnK(getter.Name))%>;<% else %> <%=GetPushStatement(getter.Type, CsFullTypeName(type).."."..UnK(getter.Name))%>;<% end%> + return 1; + } + <%end)%> + + <%ForEachCsList(setters, function(setter) + local is_struct = IsStruct(setter.Type) + %> + int <%=v_type_name%>_s_set_<%=setter.Name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + <%if AccessorNeedTranslator(setter) then %>ObjectTranslator translator = this;<%end%> + <%if not setter.IsStatic then %> + <%=GetSelfStatement(type)%>; + <%if is_struct then %><%=GetCasterStatement(setter.Type, 2, "gen_value", true)%>; + gen_to_be_invoked.<%=UnK(setter.Name)%> = gen_value;<% else + %><%=GetCasterStatement(setter.Type, 2, "gen_to_be_invoked." .. UnK(setter.Name))%>;<%end + else + if is_struct then %><%=GetCasterStatement(setter.Type, 1, "gen_value", true)%>; + <%=CsFullTypeName(type)%>.<%=UnK(setter.Name)%> = gen_value;<%else + %><%=GetCasterStatement(setter.Type, 1, CsFullTypeName(type) .."." .. UnK(setter.Name))%>;<%end + end%> + <%if NeedUpdate(type) and not setter.IsStatic then%> + <%=GetUpdateStatement(type, 1, "gen_to_be_invoked")%>; + <%end%> + return 0; + } + <%end)%> + + <%ForEachCsList(events, function(event) if not event.IsStatic then %> + int <%=v_type_name%>_e_<%=event.Name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + ObjectTranslator translator = this; + <%=GetSelfStatement(type)%>; + <%=GetCasterStatement(event.Type, 3, "gen_delegate", true)%>; + if (gen_delegate == null) { + return LuaAPI.luaL_error(L, "#3 need <%=CsFullTypeName(event.Type)%>!"); + } + + if (gen_param_count == 3) + { + <%if event.CanAdd then%> + if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { + gen_to_be_invoked.<%=UnK(event.Name)%> += gen_delegate; + return 0; + } + <%end%> + <%if event.CanRemove then%> + if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { + gen_to_be_invoked.<%=UnK(event.Name)%> -= gen_delegate; + return 0; + } + <%end%> + } + LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%>.<%=event.Name%>!"); + return 0; + } + <%end end)%> + + <%ForEachCsList(events, function(event) if event.IsStatic then %> + int <%=v_type_name%>_e_<%=event.Name%><%=generic_arg_list%>(RealStatePtr L, int gen_param_count) <%=type_constraints%> + { + ObjectTranslator translator = this; + <%=GetCasterStatement(event.Type, 2, "gen_delegate", true)%>; + if (gen_delegate == null) { + return LuaAPI.luaL_error(L, "#2 need <%=CsFullTypeName(event.Type)%>!"); + } + + <%if event.CanAdd then%> + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { + <%=CsFullTypeName(type)%>.<%=UnK(event.Name)%> += gen_delegate; + return 0; + } + <%end%> + <%if event.CanRemove then%> + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { + <%=CsFullTypeName(type)%>.<%=UnK(event.Name)%> -= gen_delegate; + return 0; + } + <%end%> + return LuaAPI.luaL_error(L, "invalid arguments to <%=CsFullTypeName(type)%>.<%=event.Name%>!"); + } + <%end end)%> + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrapGCM.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrapGCM.tpl.txt.meta new file mode 100644 index 00000000..b19868d9 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaClassWrapGCM.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e2fe729e6ea01d54abce94149e4545bc +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateBridge.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateBridge.tpl.txt new file mode 100644 index 00000000..bb65a5e9 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateBridge.tpl.txt @@ -0,0 +1,104 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +<% +require "TemplateCommon" +%> + +namespace XLua +{ + public partial class DelegateBridge : DelegateBridgeBase + { + <% + ForEachCsList(delegates_groups, function(delegates_group, group_idx) + local delegate = delegates_group.Key + local parameters = delegate:GetParameters() + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local in_pos = 0 + local has_return = (delegate.ReturnType.FullName ~= "System.Void") + local return_type_name = has_return and CsFullTypeName(delegate.ReturnType) or "void" + local out_idx = has_return and 2 or 1 + if has_return then out_num = out_num + 1 end + %> + public <%=return_type_name%> __Gen_Delegate_Imp<%=group_idx%>(<%ForEachCsList(parameters, function(parameter, pi) + if pi ~= 0 then + %>, <% + end + if parameter.IsOut and parameter.ParameterType.IsByRef then + %>out <% + elseif parameter.ParameterType.IsByRef then + %>ref <% + end + %><%=CsFullTypeName(parameter.ParameterType)%> p<%=pi%><% + end) %>) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.rawL; + int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); + <%if CallNeedTranslator(delegate, "") then %>ObjectTranslator translator = luaEnv.translator;<%end%> + <% + local param_count = parameters.Length + local has_v_params = param_count > 0 and parameters[param_count - 1].IsParamArray + ForEachCsList(parameters, function(parameter, pi) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + %><%=GetPushStatement(parameter.ParameterType, 'p' .. pi, has_v_params and pi == param_count - 1)%>; + <% + end + end) %> + PCall(L, <%=has_v_params and ((in_num - 1) .. " + (p".. (param_count - 1) .. " == null ? 0 : p" .. (param_count - 1) .. ".Length)" ) or in_num%>, <%=out_num%>, errFunc); + + <%ForEachCsList(parameters, function(parameter, pi) + if parameter.IsOut or parameter.ParameterType.IsByRef then + %><%=GetCasterStatement(parameter.ParameterType, "errFunc" .. (" + "..out_idx), 'p' .. pi)%>; + <% + out_idx = out_idx + 1 + end + end) %> + <%if has_return then %><%=GetCasterStatement(delegate.ReturnType, "errFunc + 1", "__gen_ret", true)%>;<% end%> + LuaAPI.lua_settop(L, errFunc - 1); + <%if has_return then %>return __gen_ret;<% end%> +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + <%end)%> + + static DelegateBridge() + { + Gen_Flag = true; + } + + public override Delegate GetDelegateByType(Type type) + { + <% + ForEachCsList(delegates_groups, function(delegates_group, group_idx) + ForEachCsList(delegates_group.Value, function(delegate) + if delegate.DeclaringType then + local delegate_type_name = CsFullTypeName(delegate.DeclaringType) + %> + if (type == typeof(<%=delegate_type_name%>)) + { + return new <%=delegate_type_name%>(__Gen_Delegate_Imp<%=group_idx%>); + } + <% + end + end) + end) + %> + return null; + } + } + +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateBridge.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateBridge.tpl.txt.meta new file mode 100644 index 00000000..ab152bdb --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateBridge.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: db09506e3ebf97b4f89bba86e5b0e1d2 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateWrap.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateWrap.tpl.txt new file mode 100644 index 00000000..da825645 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateWrap.tpl.txt @@ -0,0 +1,128 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using XLua; +using System.Collections.Generic; +<% +require "TemplateCommon" + +local parameters = delegate:GetParameters() +local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) +local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) +local in_pos = 0 +local has_return = (delegate.ReturnType.Name ~= "Void") +%> + +namespace XLua.CSObjectWrap +{ + using Utils = XLua.Utils; + public class <%=CSVariableName(type)%>Wrap + { + public static void __Register(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Utils.BeginObjectRegister(typeof(<%=CsFullTypeName(type)%>), L, translator, 0, 0, 0, 0); + Utils.EndObjectRegister(typeof(<%=CsFullTypeName(type)%>), L, translator, null, null, null, null, null); + + Utils.BeginClassRegister(typeof(<%=CsFullTypeName(type)%>), L, null, 1, 0, 0); + Utils.EndClassRegister(typeof(<%=CsFullTypeName(type)%>), L, translator); + } + + static Dictionary __MetaFucntions_Dic = new Dictionary(){ + {"__call", __CallMeta}, + {"__add", __AddMeta}, + {"__sub", __SubMeta}, + }; + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __CallMeta(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + try { + if(LuaAPI.lua_gettop(L) == <%=in_num+1%> && <%=GetCheckStatement(type, 1)%><% + ForEachCsList(parameters, function(parameter) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then in_pos = in_pos + 1; + %>&& <%=GetCheckStatement(parameter.ParameterType, in_pos+1)%><% + end + end)%>) + { + <% + in_pos = 0; + ForEachCsList(parameters, function(parameter) + %><% + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + %><%=GetCasterStatement(parameter.ParameterType, in_pos+1, parameter.Name, true)%><% + else%><%=CsFullTypeName(parameter.ParameterType)%> <%=parameter.Name%><%end%>; + <%end)%> + <%=GetSelfStatement(type)%>; + + <% + if has_return then + %> <%=CsFullTypeName(delegate.ReturnType)%> __cl_gen_ret = <% + end + %> __cl_gen_to_be_invoked( <%ForEachCsList(parameters, function(parameter, pi) if pi ~= 0 then %>, <% end; if parameter.IsOut then %>out <% elseif parameter.ParameterType.IsByRef then %>ref <% end %><%=parameter.Name%><% end) %> ); + <% + if has_return then + %> <%=GetPushStatement(delegate.ReturnType, "__cl_gen_ret")%>; + <% + end + local in_pos = 0 + ForEachCsList(parameters, function(parameter) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + in_pos = in_pos + 1 + end + if parameter.IsOut or parameter.ParameterType.IsByRef then + %><%=GetPushStatement(parameter.ParameterType:GetElementType(), parameter.Name)%>; + <%if not parameter.IsOut and parameter.ParameterType.IsByRef and NeedUpdate(parameter.ParameterType) then + %><%=GetUpdateStatement(parameter.ParameterType:GetElementType(), in_pos+param_offset, parameter.Name)%>; + <%end%> + <% + end + end) + %> + + return <%=out_num+(has_return and 1 or 0)%>; + } + } catch(System.Exception __gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + __gen_e); + } + return LuaAPI.luaL_error(L, "invalid arguments to Delegate <%=CsFullTypeName(type)%>!"); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __AddMeta(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + try { + <%=GetCasterStatement(type, 1, "leftside", true)%>; + <%=GetCasterStatement(type, 2, "rightside", true)%>; + <%=GetPushStatement(type, "leftside + rightside")%>; + return 1; + } catch(System.Exception __gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + __gen_e); + } + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __SubMeta(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + try { + <%=GetCasterStatement(type, 1, "leftside", true)%>; + <%=GetCasterStatement(type, 2, "rightside", true)%>; + <%=GetPushStatement(type, "leftside - rightside")%>; + return 1; + } catch(System.Exception __gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + __gen_e); + } + } + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateWrap.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateWrap.tpl.txt.meta new file mode 100644 index 00000000..f80a1389 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaDelegateWrap.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2414baa411b1d0b43b25ef26effb18e4 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrap.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrap.tpl.txt new file mode 100644 index 00000000..af37659a --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrap.tpl.txt @@ -0,0 +1,102 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using XLua; +using System.Collections.Generic; +<% +require "TemplateCommon" +local enum_or_op = debug.getmetatable(CS.System.Reflection.BindingFlags.Public).__bor +%> + +namespace XLua.CSObjectWrap +{ + using Utils = XLua.Utils; + <%ForEachCsList(types, function(type) + local fields = type2fields and type2fields[type] or type:GetFields(enum_or_op(CS.System.Reflection.BindingFlags.Public, CS.System.Reflection.BindingFlags.Static)) + local fields_to_gen = {} + ForEachCsList(fields, function(field) + if field.Name ~= "value__" and not IsObsolute(field) then + table.insert(fields_to_gen, field) + end + end) + %> + public class <%=CSVariableName(type)%>Wrap + { + public static void __Register(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Utils.BeginObjectRegister(typeof(<%=CsFullTypeName(type)%>), L, translator, 0, 0, 0, 0); + Utils.EndObjectRegister(typeof(<%=CsFullTypeName(type)%>), L, translator, null, null, null, null, null); + + Utils.BeginClassRegister(typeof(<%=CsFullTypeName(type)%>), L, null, <%=fields.Length + 1%>, 0, 0); +<%if #fields_to_gen <= 20 then%> + <% ForEachCsList(fields, function(field) + if field.Name == "value__" or IsObsolute(field) then return end + %> + Utils.RegisterObject(L, translator, Utils.CLS_IDX, "<%=field.Name%>", <%=CsFullTypeName(type)%>.<%=UnK(field.Name)%>); + <%end)%> +<%else%> + Utils.RegisterEnumType(L, typeof(<%=CsFullTypeName(type)%>)); +<%end%> + Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); + + Utils.EndClassRegister(typeof(<%=CsFullTypeName(type)%>), L, translator); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __CastFrom(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + LuaTypes lua_type = LuaAPI.lua_type(L, 1); + if (lua_type == LuaTypes.LUA_TNUMBER) + { + translator.Push<%=CSVariableName(type)%>(L, (<%=CsFullTypeName(type)%>)LuaAPI.xlua_tointeger(L, 1)); + } + <%if #fields_to_gen > 0 then%> + else if(lua_type == LuaTypes.LUA_TSTRING) + { +<%if #fields_to_gen <= 20 then%> + <% + local is_first = true + ForEachCsList(fields, function(field, i) + if field.Name == "value__" or IsObsolute(field) then return end + %><%=(is_first and "" or "else ")%>if (LuaAPI.xlua_is_eq_str(L, 1, "<%=field.Name%>")) + { + translator.Push<%=CSVariableName(type)%>(L, <%=CsFullTypeName(type)%>.<%=UnK(field.Name)%>); + } + <% + is_first = false + end) + %>else + { + return LuaAPI.luaL_error(L, "invalid string for <%=CsFullTypeName(type)%>!"); + } +<%else%> + try + { + translator.TranslateToEnumToTop(L, typeof(<%=CsFullTypeName(type)%>), 1); + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "cast to " + typeof(<%=CsFullTypeName(type)%>) + " exception:" + e); + } +<%end%> + } + <%end%> + else + { + return LuaAPI.luaL_error(L, "invalid lua type for <%=CsFullTypeName(type)%>! Expect number or string, got + " + lua_type); + } + + return 1; + } + } + <%end)%> +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrap.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrap.tpl.txt.meta new file mode 100644 index 00000000..7abb05a9 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrap.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ea0bcef8245ac014192198851b00e35f +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt new file mode 100644 index 00000000..9fe85661 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt @@ -0,0 +1,99 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using XLua; +using System.Collections.Generic; +<% +require "TemplateCommon" +local enum_or_op = debug.getmetatable(CS.System.Reflection.BindingFlags.Public).__bor +%> + +namespace XLua +{ + public partial class ObjectTranslator + { + <%ForEachCsList(types, function(type) + local fields = type2fields and type2fields[type] or type:GetFields(enum_or_op(CS.System.Reflection.BindingFlags.Public, CS.System.Reflection.BindingFlags.Static)) + local fields_to_gen = {} + ForEachCsList(fields, function(field) + if field.Name ~= "value__" and not IsObsolute(field) then + table.insert(fields_to_gen, field) + end + end) + local v_type_name = CSVariableName(type) + %> + public void __Register<%=v_type_name%>(RealStatePtr L) + { + Utils.BeginObjectRegister(typeof(<%=CsFullTypeName(type)%>), L, this, 0, 0, 0, 0); + Utils.EndObjectRegister(typeof(<%=CsFullTypeName(type)%>), L, this, null, null, null, null, null); + + Utils.BeginClassRegister(typeof(<%=CsFullTypeName(type)%>), L, null, <%=fields.Length + 1%>, 0, 0); +<%if #fields_to_gen <= 20 then%> + <% ForEachCsList(fields, function(field) + if field.Name == "value__" or IsObsolute(field) then return end + %> + Utils.RegisterObject(L, this, Utils.CLS_IDX, "<%=field.Name%>", <%=CsFullTypeName(type)%>.<%=UnK(field.Name)%>); + <%end)%> +<%else%> + Utils.RegisterEnumType(L, typeof(<%=CsFullTypeName(type)%>)); +<%end%> + Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom<%=v_type_name%>); + + Utils.EndClassRegister(typeof(<%=CsFullTypeName(type)%>), L, this); + } + + int __CastFrom<%=v_type_name%>(RealStatePtr L, int __gen_top) + { + LuaTypes lua_type = LuaAPI.lua_type(L, 1); + if (lua_type == LuaTypes.LUA_TNUMBER) + { + Push<%=v_type_name%>(L, (<%=CsFullTypeName(type)%>)LuaAPI.xlua_tointeger(L, 1)); + } + <%if #fields_to_gen > 0 then%> + else if(lua_type == LuaTypes.LUA_TSTRING) + { +<%if #fields_to_gen <= 20 then%> + <% + local is_first = true + ForEachCsList(fields, function(field, i) + if field.Name == "value__" or IsObsolute(field) then return end + %><%=(is_first and "" or "else ")%>if (LuaAPI.xlua_is_eq_str(L, 1, "<%=field.Name%>")) + { + Push<%=v_type_name%>(L, <%=CsFullTypeName(type)%>.<%=UnK(field.Name)%>); + } + <% + is_first = false + end) + %>else + { + return LuaAPI.luaL_error(L, "invalid string for <%=CsFullTypeName(type)%>!"); + } +<%else%> + try + { + TranslateToEnumToTop(L, typeof(<%=CsFullTypeName(type)%>), 1); + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "cast to " + typeof(<%=CsFullTypeName(type)%>) + " exception:" + e); + } +<%end%> + } + <%end%> + else + { + return LuaAPI.luaL_error(L, "invalid lua type for <%=CsFullTypeName(type)%>! Expect number or string, got + " + lua_type); + } + + return 1; + } + <%end)%> + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt.meta new file mode 100644 index 00000000..1980e421 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a04f4c510c2c4a84aab06f3dacb7e325 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt new file mode 100644 index 00000000..042e0d8e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt @@ -0,0 +1,385 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using XLua; +using System; +<% +require "TemplateCommon" + +%> + +namespace XLua.CSObjectWrap +{ + public class <%=CSVariableName(type)%>Bridge : LuaBase, <%=CsFullTypeName(type)%> + { + public static LuaBase __Create(int reference, LuaEnv luaenv) + { + return new <%=CSVariableName(type)%>Bridge(reference, luaenv); + } + + public <%=CSVariableName(type)%>Bridge(int reference, LuaEnv luaenv) : base(reference, luaenv) + { + } + + <% + ForEachCsList(methods, function(method) + local parameters = method:GetParameters() + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local in_pos = 0 + local has_return = (method.ReturnType.FullName ~= "System.Void") + local return_type_name = has_return and CsFullTypeName(method.ReturnType) or "void" + local out_idx = has_return and 2 or 1 + if has_return then out_num = out_num + 1 end + %> + <%=return_type_name%> <%=CsFullTypeName(method.DeclaringType)%>.<%=method.Name%>(<%ForEachCsList(parameters, function(parameter, pi) + if pi ~= 0 then + %>, <% + end + if parameter.IsOut and parameter.ParameterType.IsByRef then + %>out <% + elseif parameter.ParameterType.IsByRef then + %>ref <% + end + %><%=CsFullTypeName(parameter.ParameterType)%> <%=parameter.Name%><% + end) %>) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.L; + int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + <%if CallNeedTranslator(method, "") then %>ObjectTranslator translator = luaEnv.translator;<%end%> + + LuaAPI.lua_getref(L, luaReference); + LuaAPI.xlua_pushasciistring(L, "<%=method.Name%>"); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + luaEnv.ThrowExceptionFromError(err_func - 1); + } + if(!LuaAPI.lua_isfunction(L, -1)) + { + LuaAPI.xlua_pushasciistring(L, "no such function <%=method.Name%>"); + luaEnv.ThrowExceptionFromError(err_func - 1); + } + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.lua_remove(L, -3); + <% + local param_count = parameters.Length + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + + ForEachCsList(parameters, function(parameter, pi) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + %><%=GetPushStatement(parameter.ParameterType, parameter.Name, has_v_params and pi == param_count - 1)%>; + <% + end + end) %> + int __gen_error = LuaAPI.lua_pcall(L, <%=has_v_params and ((in_num) .. " + (".. parameters[param_count - 1].Name .. " == null ? 0 : " .. parameters[param_count - 1].Name .. ".Length)" ) or (in_num + 1)%>, <%=out_num%>, err_func); + if (__gen_error != 0) + luaEnv.ThrowExceptionFromError(err_func - 1); + + <%ForEachCsList(parameters, function(parameter) + if parameter.IsOut or parameter.ParameterType.IsByRef then + %><%=GetCasterStatement(parameter.ParameterType, "err_func" .. (" + "..out_idx), parameter.Name)%>; + <% + out_idx = out_idx + 1 + end + end) %> + <%if has_return then %><%=GetCasterStatement(method.ReturnType, "err_func + 1", "__gen_ret", true)%>;<% end%> + LuaAPI.lua_settop(L, err_func - 1); + <%if has_return then %>return __gen_ret;<% end%> +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + <%end)%> + + <% + ForEachCsList(propertys, function(property) + %> + <%=CsFullTypeName(property.PropertyType)%> <%=CsFullTypeName(property.DeclaringType)%>.<%=property.Name%> + { + <%if property.CanRead then%> + get + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.L; + int oldTop = LuaAPI.lua_gettop(L); + <%if not JustLuaType(property.PropertyType) then %>ObjectTranslator translator = luaEnv.translator;<%end%> + LuaAPI.lua_getref(L, luaReference); + LuaAPI.xlua_pushasciistring(L, "<%=property.Name%>"); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + luaEnv.ThrowExceptionFromError(oldTop); + } + <%=GetCasterStatement(property.PropertyType, "-1", "__gen_ret", true)%>; + LuaAPI.lua_pop(L, 2); + return __gen_ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + <%end%> + <%if property.CanWrite then%> + set + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.L; + int oldTop = LuaAPI.lua_gettop(L); + <%if not JustLuaType(property.PropertyType) then %>ObjectTranslator translator = luaEnv.translator;<%end%> + LuaAPI.lua_getref(L, luaReference); + LuaAPI.xlua_pushasciistring(L, "<%=property.Name%>"); + <%=GetPushStatement(property.PropertyType, "value")%>; + if (0 != LuaAPI.xlua_psettable(L, -3)) + { + luaEnv.ThrowExceptionFromError(oldTop); + } + LuaAPI.lua_pop(L, 1); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + <%end%> + } + <%end)%> + + <%ForEachCsList(events, function(event) %> + event <%=CsFullTypeName(event.EventHandlerType)%> <%=CsFullTypeName(event.DeclaringType)%>.<%=event.Name%> + {<%local parameters = event:GetAddMethod():GetParameters()%> + add + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.L; + int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + <%if CallNeedTranslator(event:GetAddMethod(), "") then %>ObjectTranslator translator = luaEnv.translator;<%end%> + + LuaAPI.lua_getref(L, luaReference); + LuaAPI.xlua_pushasciistring(L, "add_<%=event.Name%>"); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + luaEnv.ThrowExceptionFromError(err_func - 1); + } + if(!LuaAPI.lua_isfunction(L, -1)) + { + LuaAPI.xlua_pushasciistring(L, "no such function add_<%=event.Name%>"); + luaEnv.ThrowExceptionFromError(err_func - 1); + } + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.lua_remove(L, -3); + <% + local param_count = parameters.Length + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + + ForEachCsList(parameters, function(parameter, pi) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + %><%=GetPushStatement(parameter.ParameterType, parameter.Name, has_v_params and pi == param_count - 1)%>; + <% + end + end) %> + int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); + if (__gen_error != 0) + luaEnv.ThrowExceptionFromError(err_func - 1); + + LuaAPI.lua_settop(L, err_func - 1); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + remove + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.L; + int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + <%if CallNeedTranslator(event:GetRemoveMethod(), "") then %>ObjectTranslator translator = luaEnv.translator;<%end%> + + LuaAPI.lua_getref(L, luaReference); + LuaAPI.xlua_pushasciistring(L, "remove_<%=event.Name%>"); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + luaEnv.ThrowExceptionFromError(err_func - 1); + } + if(!LuaAPI.lua_isfunction(L, -1)) + { + LuaAPI.xlua_pushasciistring(L, "no such function remove_<%=event.Name%>"); + luaEnv.ThrowExceptionFromError(err_func - 1); + } + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.lua_remove(L, -3); + <% + local param_count = parameters.Length + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + + ForEachCsList(parameters, function(parameter, pi) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + %><%=GetPushStatement(parameter.ParameterType, parameter.Name, has_v_params and pi == param_count - 1)%>; + <% + end + end) %> + int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); + if (__gen_error != 0) + luaEnv.ThrowExceptionFromError(err_func - 1); + + LuaAPI.lua_settop(L, err_func - 1); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + } + <%end)%> + + <%ForEachCsList(indexers, function(indexer) + local ptype = (indexer:GetGetMethod() or indexer:GetSetMethod()):GetParameters()[0].ParameterType + local pname = (indexer:GetGetMethod() or indexer:GetSetMethod()):GetParameters()[0].Name + %> + <%=CsFullTypeName(indexer.PropertyType)%> <%=CsFullTypeName(indexer.DeclaringType)%>.this[<%=CsFullTypeName(ptype)%> <%=pname%>] + {<%if indexer:GetGetMethod() then + local method = indexer:GetGetMethod() + local parameters = method:GetParameters() + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local in_pos = 0 + local has_return = (method.ReturnType.FullName ~= "System.Void") + local return_type_name = has_return and CsFullTypeName(method.ReturnType) or "void" + local out_idx = has_return and 2 or 1 + if has_return then out_num = out_num + 1 end + %> + get + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.L; + int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + <%if CallNeedTranslator(method, "") then %>ObjectTranslator translator = luaEnv.translator;<%end%> + + LuaAPI.lua_getref(L, luaReference); + LuaAPI.xlua_pushasciistring(L, "<%=method.Name%>"); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + luaEnv.ThrowExceptionFromError(err_func - 1); + } + if(!LuaAPI.lua_isfunction(L, -1)) + { + LuaAPI.xlua_pushasciistring(L, "no such function <%=method.Name%>"); + luaEnv.ThrowExceptionFromError(err_func - 1); + } + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.lua_remove(L, -3); + <% + local param_count = parameters.Length + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + + ForEachCsList(parameters, function(parameter, pi) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + %><%=GetPushStatement(parameter.ParameterType, parameter.Name, has_v_params and pi == param_count - 1)%>; + <% + end + end) %> + int __gen_error = LuaAPI.lua_pcall(L, <%=has_v_params and ((in_num) .. " + " .. parameters[param_count - 1].Name .. ".Length" ) or (in_num + 1)%>, <%=out_num%>, err_func); + if (__gen_error != 0) + luaEnv.ThrowExceptionFromError(err_func - 1); + + <%ForEachCsList(parameters, function(parameter) + if parameter.IsOut or parameter.ParameterType.IsByRef then + %><%=GetCasterStatement(parameter.ParameterType, "err_func" .. (" + "..out_idx), parameter.Name)%>; + <% + out_idx = out_idx + 1 + end + end) %> + <%if has_return then %><%=GetCasterStatement(method.ReturnType, "err_func + 1", "__gen_ret", true)%>;<% end%> + LuaAPI.lua_settop(L, err_func - 1); + <%if has_return then %>return __gen_ret;<% end%> +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + <%end%> + <%if indexer:GetSetMethod() then + local method = indexer:GetSetMethod() + local parameters = method:GetParameters() + local in_num = CalcCsList(parameters, function(p) return not (p.IsOut and p.ParameterType.IsByRef) end) + local out_num = CalcCsList(parameters, function(p) return p.IsOut or p.ParameterType.IsByRef end) + local in_pos = 0 + local has_return = (method.ReturnType.FullName ~= "System.Void") + local return_type_name = has_return and CsFullTypeName(method.ReturnType) or "void" + local out_idx = has_return and 2 or 1 + if has_return then out_num = out_num + 1 end + %> + set + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.L; + int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + <%if CallNeedTranslator(method, "") then %>ObjectTranslator translator = luaEnv.translator;<%end%> + + LuaAPI.lua_getref(L, luaReference); + LuaAPI.xlua_pushasciistring(L, "<%=method.Name%>"); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + luaEnv.ThrowExceptionFromError(err_func - 1); + } + if(!LuaAPI.lua_isfunction(L, -1)) + { + LuaAPI.xlua_pushasciistring(L, "no such function <%=method.Name%>"); + luaEnv.ThrowExceptionFromError(err_func - 1); + } + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.lua_remove(L, -3); + <% + local param_count = parameters.Length + local has_v_params = param_count > 0 and IsParams(parameters[param_count - 1]) + + ForEachCsList(parameters, function(parameter, pi) + if not (parameter.IsOut and parameter.ParameterType.IsByRef) then + %><%=GetPushStatement(parameter.ParameterType, parameter.Name, has_v_params and pi == param_count - 1)%>; + <% + end + end) %> + int __gen_error = LuaAPI.lua_pcall(L, <%=has_v_params and ((in_num) .. " + " .. parameters[param_count - 1].Name .. ".Length" ) or (in_num + 1)%>, <%=out_num%>, err_func); + if (__gen_error != 0) + luaEnv.ThrowExceptionFromError(err_func - 1); + + <%ForEachCsList(parameters, function(parameter) + if parameter.IsOut or parameter.ParameterType.IsByRef then + %><%=GetCasterStatement(parameter.ParameterType, "err_func" .. (" + "..out_idx), parameter.Name)%>; + <% + out_idx = out_idx + 1 + end + end) %> + <%if has_return then %><%=GetCasterStatement(method.ReturnType, "err_func + 1", "__gen_ret", true)%>;<% end%> + LuaAPI.lua_settop(L, err_func - 1); + <%if has_return then %>return __gen_ret;<% end%> +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + <%end%> + } + <%end)%> + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt.meta new file mode 100644 index 00000000..a7ff4c04 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ab2e037c6ce86fe4397f6902cb8daeae +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt new file mode 100644 index 00000000..68976cde --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt @@ -0,0 +1,140 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +using System.Collections.Generic; +using System.Reflection; +<% +require "TemplateCommon" +%> + +namespace XLua.CSObjectWrap +{ + public class XLua_Gen_Initer_Register__ + { + <% + local split_method_perfix = 'wrapInit' + local split_method_count = 0 + local wrap_in_split_method = 0 + local max_wrap_in_split_method = 50 + %> + <%ForEachCsList(wraps, function(wrap)%> + <%if wrap_in_split_method == 0 then%>static void <%=split_method_perfix%><%=split_method_count%>(LuaEnv luaenv, ObjectTranslator translator) + { + <%end%> + translator.DelayWrapLoader(typeof(<%=CsFullTypeName(wrap)%>), <%=CSVariableName(wrap)%>Wrap.__Register); + <%if wrap_in_split_method == max_wrap_in_split_method then + wrap_in_split_method = 0 + split_method_count = split_method_count + 1 + %> + } + <%else + wrap_in_split_method = wrap_in_split_method + 1 + end + end)%> + <% if generic_wraps then + for generic_def, instances in pairs(generic_wraps) do + for _, args in ipairs(instances) do + local generic_arg_list = "<" + ForEachCsList(args, function(generic_arg, gai) + if gai ~= 0 then generic_arg_list = generic_arg_list .. ", " end + generic_arg_list = generic_arg_list .. CsFullTypeName(generic_arg) + end) + generic_arg_list = generic_arg_list .. ">" + + %> + <%if wrap_in_split_method == 0 then%>static void <%=split_method_perfix%><%=split_method_count%>(LuaEnv luaenv, ObjectTranslator translator) + { + <%end%> + translator.DelayWrapLoader(typeof(<%=generic_def.Name:gsub("`%d+", "") .. generic_arg_list%>), <%=CSVariableName(generic_def)%>Wrap<%=generic_arg_list%>.__Register); + <%if wrap_in_split_method == max_wrap_in_split_method then + wrap_in_split_method = 0 + split_method_count = split_method_count + 1 + %> + } + <%else + wrap_in_split_method = wrap_in_split_method + 1 + end + end + end + end%> + + <%if wrap_in_split_method ~= 0 then + split_method_count = split_method_count + 1 + %>}<%end%> + + static void Init(LuaEnv luaenv, ObjectTranslator translator) + { + <%for i = 1, split_method_count do%> + <%=split_method_perfix%><%=(i - 1)%>(luaenv, translator); + <%end%> + <%ForEachCsList(itf_bridges, function(itf_bridge)%> + translator.AddInterfaceBridgeCreator(typeof(<%=CsFullTypeName(itf_bridge)%>), <%=CSVariableName(itf_bridge)%>Bridge.__Create); + <%end)%> + } + + static XLua_Gen_Initer_Register__() + { + XLua.LuaEnv.AddIniter(Init); + } + + + } + +} +namespace XLua +{ + public partial class ObjectTranslator + { + static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ s_gen_reg_dumb_obj = new XLua.CSObjectWrap.XLua_Gen_Initer_Register__(); + static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ gen_reg_dumb_obj {get{return s_gen_reg_dumb_obj;}} + } + + internal partial class InternalGlobals + { + <% + local type_to_methods = {} + local seq_tbl = {} + ForEachCsList(extension_methods, function(extension_method, idx) + local parameters = extension_method:GetParameters() + local type = parameters[0].ParameterType + if not type_to_methods[type] then + type_to_methods[type] = {type = type} + table.insert(seq_tbl, type_to_methods[type]) + end + table.insert(type_to_methods[type], {method = extension_method, index = idx}) + %> + delegate <%=CsFullTypeName(extension_method.ReturnType)%> __GEN_DELEGATE<%=idx%>(<%ForEachCsList(parameters, function(parameter, pi) + %><%if pi ~= 0 then%>, <%end%><%if parameter.IsOut then %>out <% elseif parameter.ParameterType.IsByRef then %>ref <% end %> <%=CsFullTypeName(parameter.ParameterType)%> <%=parameter.Name%><% + end)%>); + <%end)%> + static InternalGlobals() + { + extensionMethodMap = new Dictionary>() + { + <%for _, methods_info in ipairs(seq_tbl) do%> + {typeof(<%=CsFullTypeName(methods_info.type)%>), new List(){ + <% for _, method_info in ipairs(methods_info) do%> + new __GEN_DELEGATE<%=method_info.index%>(<%=CsFullTypeName(method_info.method.DeclaringType)%>.<%=method_info.method.Name%>) +#if UNITY_WSA && !UNITY_EDITOR + .GetMethodInfo(), +#else + .Method, +#endif + <% end%> + }}, + <%end%> + }; + + genTryArrayGetPtr = StaticLuaCallbacks.__tryArrayGet; + genTryArraySetPtr = StaticLuaCallbacks.__tryArraySet; + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt.meta new file mode 100644 index 00000000..17871986 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1f8b98d26884ed744bb7795397079327 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegisterGCM.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegisterGCM.tpl.txt new file mode 100644 index 00000000..bb5b6c0c --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegisterGCM.tpl.txt @@ -0,0 +1,140 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +using System.Collections.Generic; +using System.Reflection; +<% +require "TemplateCommon" +%> + +namespace XLua.CSObjectWrap +{ + public class XLua_Gen_Initer_Register__ + { + <% + local split_method_perfix = 'wrapInit' + local split_method_count = 0 + local wrap_in_split_method = 0 + local max_wrap_in_split_method = 50 + %> + <%ForEachCsList(wraps, function(wrap)%> + <%if wrap_in_split_method == 0 then%>static void <%=split_method_perfix%><%=split_method_count%>(LuaEnv luaenv, ObjectTranslator translator) + { + <%end%> + translator.DelayWrapLoader(typeof(<%=CsFullTypeName(wrap)%>), translator.__Register<%=CSVariableName(wrap)%>); + <%if wrap_in_split_method == max_wrap_in_split_method then + wrap_in_split_method = 0 + split_method_count = split_method_count + 1 + %> + } + <%else + wrap_in_split_method = wrap_in_split_method + 1 + end + end)%> + <% if generic_wraps then + for generic_def, instances in pairs(generic_wraps) do + for _, args in ipairs(instances) do + local generic_arg_list = "<" + ForEachCsList(args, function(generic_arg, gai) + if gai ~= 0 then generic_arg_list = generic_arg_list .. ", " end + generic_arg_list = generic_arg_list .. CsFullTypeName(generic_arg) + end) + generic_arg_list = generic_arg_list .. ">" + + %> + <%if wrap_in_split_method == 0 then%>static void <%=split_method_perfix%><%=split_method_count%>(LuaEnv luaenv, ObjectTranslator translator) + { + <%end%> + translator.DelayWrapLoader(typeof(<%=generic_def.Name:gsub("`%d+", "") .. generic_arg_list%>), translator.__Register<%=CSVariableName(generic_def)%><%=generic_arg_list%>); + <%if wrap_in_split_method == max_wrap_in_split_method then + wrap_in_split_method = 0 + split_method_count = split_method_count + 1 + %> + } + <%else + wrap_in_split_method = wrap_in_split_method + 1 + end + end + end + end%> + + <%if wrap_in_split_method ~= 0 then + split_method_count = split_method_count + 1 + %>}<%end%> + + static void Init(LuaEnv luaenv, ObjectTranslator translator) + { + <%for i = 1, split_method_count do%> + <%=split_method_perfix%><%=(i - 1)%>(luaenv, translator); + <%end%> + <%ForEachCsList(itf_bridges, function(itf_bridge)%> + translator.AddInterfaceBridgeCreator(typeof(<%=CsFullTypeName(itf_bridge)%>), <%=CSVariableName(itf_bridge)%>Bridge.__Create); + <%end)%> + } + + static XLua_Gen_Initer_Register__() + { + XLua.LuaEnv.AddIniter(Init); + } + + + } + +} +namespace XLua +{ + public partial class ObjectTranslator + { + static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ s_gen_reg_dumb_obj = new XLua.CSObjectWrap.XLua_Gen_Initer_Register__(); + static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ gen_reg_dumb_obj {get{return s_gen_reg_dumb_obj;}} + } + + internal partial class InternalGlobals + { + <% + local type_to_methods = {} + local seq_tbl = {} + ForEachCsList(extension_methods, function(extension_method, idx) + local parameters = extension_method:GetParameters() + local type = parameters[0].ParameterType + if not type_to_methods[type] then + type_to_methods[type] = {type = type} + table.insert(seq_tbl, type_to_methods[type]) + end + table.insert(type_to_methods[type], {method = extension_method, index = idx}) + %> + delegate <%=CsFullTypeName(extension_method.ReturnType)%> __GEN_DELEGATE<%=idx%>(<%ForEachCsList(parameters, function(parameter, pi) + %><%if pi ~= 0 then%>, <%end%><%if parameter.IsOut then %>out <% elseif parameter.ParameterType.IsByRef then %>ref <% end %> <%=CsFullTypeName(parameter.ParameterType)%> <%=parameter.Name%><% + end)%>); + <%end)%> + static InternalGlobals() + { + extensionMethodMap = new Dictionary>() + { + <%for _, methods_info in ipairs(seq_tbl) do%> + {typeof(<%=CsFullTypeName(methods_info.type)%>), new List(){ + <% for _, method_info in ipairs(methods_info) do%> + new __GEN_DELEGATE<%=method_info.index%>(<%=CsFullTypeName(method_info.method.DeclaringType)%>.<%=method_info.method.Name%>) +#if UNITY_WSA && !UNITY_EDITOR + .GetMethodInfo(), +#else + .Method, +#endif + <% end%> + }}, + <%end%> + }; + + genTryArrayGetPtr = StaticLuaCallbacks.__tryArrayGet; + genTryArraySetPtr = StaticLuaCallbacks.__tryArraySet; + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegisterGCM.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegisterGCM.tpl.txt.meta new file mode 100644 index 00000000..0dd955a5 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaRegisterGCM.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 576f223a4bde7f94a98af12c317365ee +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt new file mode 100644 index 00000000..d272fa19 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt @@ -0,0 +1,233 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +<% +require "TemplateCommon" +%> + +namespace XLua +{ + public partial class ObjectTranslator + { + <%if purevaluetypes.Count > 0 then + local init_class_name = "IniterAdder" .. CSVariableName(purevaluetypes[0].Type) + %> + class <%=init_class_name%> + { + static <%=init_class_name%>() + { + LuaEnv.AddIniter(Init); + } + + static void Init(LuaEnv luaenv, ObjectTranslator translator) + { + <%ForEachCsList(purevaluetypes, function(type_info) + if not type_info.Type.IsValueType then return end + local full_type_name = CsFullTypeName(type_info.Type)%> + translator.RegisterPushAndGetAndUpdate<<%=full_type_name%>>(translator.Push<%=CSVariableName(type_info.Type)%>, translator.Get, translator.Update<%=CSVariableName(type_info.Type)%>);<% + end)%> + <%ForEachCsList(tableoptimzetypes, function(type_info) + local full_type_name = CsFullTypeName(type_info.Type)%> + translator.RegisterCaster<<%=full_type_name%>>(translator.Get);<% + end)%> + } + } + + static <%=init_class_name%> s_<%=init_class_name%>_dumb_obj = new <%=init_class_name%>(); + static <%=init_class_name%> <%=init_class_name%>_dumb_obj {get{return s_<%=init_class_name%>_dumb_obj;}} + <%end%> + + <%ForEachCsList(purevaluetypes, function(type_info) + local type_id_var_name = CSVariableName(type_info.Type) .. '_TypeID' + local enum_ref_var_name = CSVariableName(type_info.Type)..'_EnumRef' + local full_type_name = CsFullTypeName(type_info.Type) + local is_enum = type_info.Type.IsEnum + %>int <%=type_id_var_name%> = -1;<%if is_enum then%> + int <%=enum_ref_var_name%> = -1; + <%end%> + public void Push<%=CSVariableName(type_info.Type)%>(RealStatePtr L, <%=full_type_name%> val) + { + if (<%=type_id_var_name%> == -1) + { + bool is_first; + <%=type_id_var_name%> = getTypeId(L, typeof(<%=full_type_name%>), out is_first); + <%if is_enum then%> + if (<%=enum_ref_var_name%> == -1) + { + Utils.LoadCSTable(L, typeof(<%=full_type_name%>)); + <%=enum_ref_var_name%> = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + } + <%end%> + } + <%if is_enum then%> + if (LuaAPI.xlua_tryget_cachedud(L, (int)val, <%=enum_ref_var_name%>) == 1) + { + return; + } + <% + end + if type_info.Flag == CS.XLua.OptimizeFlag.PackAsTable then + %> + <%if PushObjectNeedTranslator(type_info) then %> ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);<%end%> + LuaAPI.xlua_pushcstable(L, <%=type_info.FieldInfos.Count%>, <%=type_id_var_name%>); + <%ForEachCsList(type_info.FieldInfos, function(fieldInfo)%> + LuaAPI.xlua_pushasciistring(L, "<%=fieldInfo.Name%>"); + <%=GetPushStatement(fieldInfo.Type, "val."..fieldInfo.Name)%>; + LuaAPI.lua_rawset(L, -3); + <%end)%> + <%else%> + IntPtr buff = LuaAPI.xlua_pushstruct(L, <%=is_enum and 4 or type_info.Size%>, <%=type_id_var_name%>); + if (!CopyByValue.Pack(buff, 0, <%=is_enum and "(int)" or ""%>val)) + { + throw new Exception("pack fail fail for <%=full_type_name%> ,value="+val); + } + <% + end + if is_enum then + %> + LuaAPI.lua_getref(L, <%=enum_ref_var_name%>); + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.xlua_rawseti(L, -2, (int)val); + LuaAPI.lua_pop(L, 1); + <%end%> + } + + public void Get(RealStatePtr L, int index, out <%=full_type_name%> val) + { + LuaTypes type = LuaAPI.lua_type(L, index); + if (type == LuaTypes.LUA_TUSERDATA ) + { + if (LuaAPI.xlua_gettypeid(L, index) != <%=type_id_var_name%>) + { + throw new Exception("invalid userdata for <%=full_type_name%>"); + } + + IntPtr buff = LuaAPI.lua_touserdata(L, index);<%if is_enum then%> + int e; + <%end%>if (!CopyByValue.UnPack(buff, 0, out <%=is_enum and "e" or "val"%>)) + { + throw new Exception("unpack fail for <%=full_type_name%>"); + }<%if is_enum then%> + val = (<%=full_type_name%>)e; + <%end%> + }<%if not is_enum then%> + else if (type ==LuaTypes.LUA_TTABLE) + { + CopyByValue.UnPack(this, L, index, out val); + }<%end%> + else + { + val = (<%=full_type_name%>)objectCasters.GetCaster(typeof(<%=full_type_name%>))(L, index, null); + } + } + + public void Update<%=CSVariableName(type_info.Type)%>(RealStatePtr L, int index, <%=full_type_name%> val) + { + <%if type_info.Flag == CS.XLua.OptimizeFlag.PackAsTable then%> + if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TTABLE) + { + return; + } + <%else%> + if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) + { + if (LuaAPI.xlua_gettypeid(L, index) != <%=type_id_var_name%>) + { + throw new Exception("invalid userdata for <%=full_type_name%>"); + } + + IntPtr buff = LuaAPI.lua_touserdata(L, index); + if (!CopyByValue.Pack(buff, 0, <%=is_enum and "(int)" or ""%>val)) + { + throw new Exception("pack fail for <%=full_type_name%> ,value="+val); + } + } + <%end%> + else + { + throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); + } + } + + <%end)%> + // table cast optimze + <%ForEachCsList(tableoptimzetypes, function(type_info) + local full_type_name = CsFullTypeName(type_info.Type) + %> + public void Get(RealStatePtr L, int index, out <%=full_type_name%> val) + { + LuaTypes type = LuaAPI.lua_type(L, index); + if (type == LuaTypes.LUA_TUSERDATA ) + { + val = (<%=full_type_name%>)FastGetCSObj(L, index); + } + else if (type == LuaTypes.LUA_TTABLE) + { + val = new <%=full_type_name%>(); + int top = LuaAPI.lua_gettop(L); + <%ForEachCsList(type_info.Fields, function(fieldInfo)%> + if (Utils.LoadField(L, index, "<%=fieldInfo.Name%>")) + { + Get(L, top + 1, out val.<%=fieldInfo.Name%>); + } + LuaAPI.lua_pop(L, 1); + <%end)%> + }<%if not type_info.Type.IsValueType then%> + else if (type == LuaTypes.LUA_TNIL || type == LuaTypes.LUA_TNONE) + { + val = null; + }<%end%> + else + { + throw new Exception("can not cast " + LuaAPI.lua_type(L, index) + " to " + typeof(<%=full_type_name%>)); + } + } + <%end)%> + + } + + public partial class StaticLuaCallbacks + { + internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index) + { + <%ForEachCsList(purevaluetypes, function(type_info, idx) + if not type_info.Type.IsValueType then return end + local full_type_name = CsFullTypeName(type_info.Type) + %> + <%=(idx == 0 and '' or 'else ')%>if (type == typeof(<%=full_type_name%>[])) + { + <%=full_type_name%>[] array = obj as <%=full_type_name%>[]; + translator.Push<%=CSVariableName(type_info.Type)%>(L, array[index]); + return true; + }<% + end)%> + return false; + } + + internal static bool __tryArraySet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int array_idx, int obj_idx) + { + <% + local is_first = true + ForEachCsList(purevaluetypes, tableoptimzetypes, function(type_info) + local full_type_name = CsFullTypeName(type_info.Type) + %> + <%=(is_first and '' or 'else ')%>if (type == typeof(<%=full_type_name%>[])) + { + <%=full_type_name%>[] array = obj as <%=full_type_name%>[]; + translator.Get(L, obj_idx, out array[array_idx]); + return true; + }<% + is_first = false + end)%> + return false; + } + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt.meta new file mode 100644 index 00000000..a35327b0 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 17e78feb6da0911498d02df8dc493dae +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/PackUnpack.tpl.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/PackUnpack.tpl.txt new file mode 100644 index 00000000..3c4ec59d --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/PackUnpack.tpl.txt @@ -0,0 +1,123 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +<% +require "TemplateCommon" +%> + +namespace XLua +{ + public static partial class CopyByValue + { + <%ForEachCsList(type_infos, function(type_info) + local full_type_name = CsFullTypeName(type_info.Type) + %> + <%if type_info.IsRoot then + ForEachCsList(type_info.FieldInfos, function(fieldInfo) fieldInfo.Name = UnK(fieldInfo.Name) end) + %> + public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out <%=full_type_name%> val) + { + val = new <%=full_type_name%>(); + int top = LuaAPI.lua_gettop(L); + <%ForEachCsList(type_info.FieldInfos, function(fieldInfo)%> + if (Utils.LoadField(L, idx, "<%=fieldInfo.Name%>")) + { + <%if fieldInfo.IsField then%> + translator.Get(L, top + 1, out val.<%=fieldInfo.Name%>); + <%else%> + var <%=fieldInfo.Name%> = val.<%=fieldInfo.Name%>; + translator.Get(L, top + 1, out <%=fieldInfo.Name%>); + val.<%=fieldInfo.Name%> = <%=fieldInfo.Name%>; + <%end%> + } + LuaAPI.lua_pop(L, 1); + <%end)%> + } + <%end%> + public static bool Pack(IntPtr buff, int offset, <%=full_type_name%> field) + { + <% + local offset_inner = 0 + if not type_info.FieldGroup then + ForEachCsList(type_info.FieldInfos, function(fieldInfo) + %> + if(!Pack(buff, offset<%=(offset_inner == 0 and "" or (" + " .. offset_inner))%>, field.<%=fieldInfo.Name%>)) + { + return false; + } + <% + offset_inner = offset_inner + fieldInfo.Size + end) + else + ForEachCsList(type_info.FieldGroup, function(group) + %> + if(!LuaAPI.xlua_pack_float<%=(group.Count == 1 and "" or group.Count)%>(buff, offset<%=(offset_inner == 0 and "" or (" + " .. offset_inner))%><% + ForEachCsList(group, function(fieldInfo, i) + %>, field.<%=fieldInfo.Name%><% + end) + %>)) + { + return false; + } + <% + offset_inner = offset_inner + group.Count * 4 + end) + end%> + return true; + } + public static bool UnPack(IntPtr buff, int offset, out <%=full_type_name%> field) + { + field = default(<%=full_type_name%>); + <% + local offset_inner = 0 + if not type_info.FieldGroup then + ForEachCsList(type_info.FieldInfos, function(fieldInfo) + if fieldInfo.IsField then + %> + if(!UnPack(buff, offset<%=(offset_inner == 0 and "" or (" + " .. offset_inner))%>, out field.<%=fieldInfo.Name%>)) + { + return false; + } + <%else%> + var <%=fieldInfo.Name%> = field.<%=fieldInfo.Name%>; + if(!UnPack(buff, offset<%=(offset_inner == 0 and "" or (" + " .. offset_inner))%>, out <%=fieldInfo.Name%>)) + { + return false; + } + field.<%=fieldInfo.Name%> = <%=fieldInfo.Name%>; + <% + end + offset_inner = offset_inner + fieldInfo.Size + end) + else + ForEachCsList(type_info.FieldGroup, function(group) + %> + <%ForEachCsList(group, function(fieldInfo)%>float <%=fieldInfo.Name%> = default(float); + <%end)%> + if(!LuaAPI.xlua_unpack_float<%=(group.Count == 1 and "" or group.Count)%>(buff, offset<%=(offset_inner == 0 and "" or (" + " .. offset_inner))%><% + ForEachCsList(group, function(fieldInfo) + %>, out <%=fieldInfo.Name%><% + end) + %>)) + { + return false; + } + <%ForEachCsList(group, function(fieldInfo)%>field.<%=fieldInfo.Name%> = <%=fieldInfo.Name%>; + <%end)%> + <% + offset_inner = offset_inner + group.Count * 4 + end) + end%> + return true; + } + <%end)%> + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/PackUnpack.tpl.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/PackUnpack.tpl.txt.meta new file mode 100644 index 00000000..c6acdd74 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/PackUnpack.tpl.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 434afb93855cf6544a243bdeccb0c7e4 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/TemplateCommon.lua.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/TemplateCommon.lua.txt new file mode 100644 index 00000000..ca1bf07e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/TemplateCommon.lua.txt @@ -0,0 +1,472 @@ +-- Tencent is pleased to support the open source community by making xLua available. +-- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. +-- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at +-- http://opensource.org/licenses/MIT +-- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + +local friendlyNameMap = { + ["System.Object"] = "object", + ["System.String"] = "string", + ["System.Boolean"] = "bool", + ["System.Byte"] = "byte", + ["System.Char"] = "char", + ["System.Decimal"] = "decimal", + ["System.Double"] = "double", + ["System.Int16"] = "short", + ["System.Int32"] = "int", + ["System.Int64"] = "long", + ["System.SByte"] = "sbyte", + ["System.Single"] = "float", + ["System.UInt16"] = "ushort", + ["System.UInt32"] = "uint", + ["System.UInt64"] = "ulong", + ["System.Void"] = "void", +} + +local csKeywords = { +"abstract", "as", "base", "bool", +"break", "byte", "case", "catch", +"char", "checked", "class", "const", +"continue", "decimal", "default", "delegate", +"do", "double", "else", "enum", +"event", "explicit", "extern", "false", +"finally", "fixed", "float", "for", +"foreach", "goto", "if", "implicit", +"in", "int", "interface", +"internal", "is", "lock", "long", +"namespace", "new", "null", "object", +"operator", "out", "override", +"params", "private", "protected", "public", +"readonly", "ref", "return", "sbyte", +"sealed", "short", "sizeof", "stackalloc", +"static", "string", "struct", "switch", +"this", "throw", "true", "try", +"typeof", "uint", "ulong", "unchecked", +"unsafe", "ushort", "using", "virtual", +"void", "volatile", "while" +} + +for _, kw in ipairs(csKeywords) do + csKeywords[kw] = '@'..kw +end +for i = 1, #csKeywords do + csKeywords[i] = nil +end + +function UnK(symbol) + return csKeywords[symbol] or symbol +end + +local fixChecker = { + --["System.String"] = "LuaAPI.lua_isstring", + ["System.Boolean"] = "LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type", + ["System.Byte"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.Char"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + --["System.Decimal"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.Double"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.Int16"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.Int32"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + --["System.Int64"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.SByte"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.Single"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.UInt16"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.UInt32"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + --["System.UInt64"] = "LuaTypes.LUA_TNUMBER == LuaAPI.lua_type", + ["System.IntPtr"] = "LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type", +} + +local typedCaster = { + ["System.Byte"] = "LuaAPI.xlua_tointeger", + ["System.Char"] = "LuaAPI.xlua_tointeger", + ["System.Int16"] = "LuaAPI.xlua_tointeger", + ["System.SByte"] = "LuaAPI.xlua_tointeger", + ["System.Single"] = "LuaAPI.lua_tonumber", + ["System.UInt16"] = "LuaAPI.xlua_tointeger", +} + +local fixCaster = { + ["System.Double"] = "LuaAPI.lua_tonumber", + ["System.String"] = "LuaAPI.lua_tostring", + ["System.Boolean"] = "LuaAPI.lua_toboolean", + ["System.Byte[]"] = "LuaAPI.lua_tobytes", + ["System.IntPtr"] = "LuaAPI.lua_touserdata", + ["System.UInt32"] = "LuaAPI.xlua_touint", + ["System.UInt64"] = "LuaAPI.lua_touint64", + ["System.Int32"] = "LuaAPI.xlua_tointeger", + ["System.Int64"] = "LuaAPI.lua_toint64", +} + +local fixPush = { + ["System.Byte"] = "LuaAPI.xlua_pushinteger", + ["System.Char"] = "LuaAPI.xlua_pushinteger", + ["System.Int16"] = "LuaAPI.xlua_pushinteger", + ["System.Int32"] = "LuaAPI.xlua_pushinteger", + ["System.Int64"] = "LuaAPI.lua_pushint64", + ["System.SByte"] = "LuaAPI.xlua_pushinteger", + ["System.Single"] = "LuaAPI.lua_pushnumber", + ["System.UInt16"] = "LuaAPI.xlua_pushinteger", + ["System.UInt32"] = "LuaAPI.xlua_pushuint", + ["System.UInt64"] = "LuaAPI.lua_pushuint64", + ["System.Single"] = "LuaAPI.lua_pushnumber", + ["System.Double"] = "LuaAPI.lua_pushnumber", + ["System.String"] = "LuaAPI.lua_pushstring", + ["System.Byte[]"] = "LuaAPI.lua_pushstring", + ["System.Boolean"] = "LuaAPI.lua_pushboolean", + ["System.IntPtr"] = "LuaAPI.lua_pushlightuserdata", + ["System.Decimal"] = "translator.PushDecimal", + ["System.Object"] = "translator.PushAny", +} + +local notranslator = { + ["System.Byte"] = true, + ["System.Char"] = true, + ["System.Int16"] = true, + ["System.Int32"] = true, + ["System.Int64"] = true, + ["System.SByte"] = true, + ["System.Single"] = true, + ["System.UInt16"] = true, + ["System.UInt32"] = true, + ["System.UInt64"] = true, + ["System.Double"] = true, + ["System.String"] = true, + ["System.Boolean"] = true, + ["System.Void"] = true, + ["System.IntPtr"] = true, + ["System.Byte[]"] = true, +} + +function ForEachCsList(...) + local list_count = select('#', ...) - 1 + local callback = select(list_count + 1, ...) + for i = 1, list_count do + local list = select(i, ...) + for i = 0, (list.Count or list.Length) - 1 do + callback(list[i], i) + end + end +end + +function CalcCsList(list, predicate) + local count = 0 + for i = 0, (list.Count or list.Length) - 1 do + if predicate(list[i], i) then count = count + 1 end + end + return count +end + +function IfAny(list, predicate) + for i = 0, (list.Count or list.Length) - 1 do + if predicate(list[i], i) then return true end + end + return false +end + +local genPushAndUpdateTypes + +function SetGenPushAndUpdateTypes(list) + genPushAndUpdateTypes = {} + ForEachCsList(list, function(t) + genPushAndUpdateTypes[t] = true + end) +end + +local xLuaClasses +function SetXLuaClasses(list) + xLuaClasses = {} + ForEachCsList(list, function(t) + xLuaClasses[t.Name] = true + end) +end + +local objType = typeof(CS.System.Object) +local valueType = typeof(CS.System.ValueType) + +local function _CsFullTypeName(t) + if t.IsArray then + local element_name, element_is_array = _CsFullTypeName(t:GetElementType()) + if element_is_array then + local bracket_pos = element_name:find('%[') + return element_name:sub(1, bracket_pos - 1) .. '[' .. string.rep(',', t:GetArrayRank() - 1) .. ']' .. element_name:sub(bracket_pos, -1), true + else + return element_name .. '[' .. string.rep(',', t:GetArrayRank() - 1) .. ']', true + end + elseif t.IsByRef then + return _CsFullTypeName(t:GetElementType()) + elseif t.IsGenericParameter then + return (t.BaseType == objType or t.BaseType == valueType) and t.Name or _CsFullTypeName(t.BaseType) --TODO:应该判断是否类型约束 + end + + local name = t.FullName:gsub("&", ""):gsub("%+", ".") + if not t.IsGenericType then + return friendlyNameMap[name] or name + end + local genericParameter = "" + ForEachCsList(t:GetGenericArguments(), function(at, ati) + if ati ~= 0 then genericParameter = genericParameter .. ', ' end + genericParameter = genericParameter .. _CsFullTypeName(at) + end) + return name:gsub("`%d+", '<' .. genericParameter .. '>'):gsub("%[[^,%]].*", ""), false +end + +function CsFullTypeName(t) + if t.DeclaringType then + local name = _CsFullTypeName(t) + local declaringTypeName = _CsFullTypeName(t.DeclaringType); + return xLuaClasses[declaringTypeName] and ("global::" .. name) or name + else + local name = _CsFullTypeName(t) + return xLuaClasses[name] and ("global::" .. name) or name + end +end + +function CSVariableName(t) + if t.IsArray then + return CSVariableName(t:GetElementType()) .. '_'.. t:GetArrayRank() ..'_' + end + return t:ToString():gsub("&", ""):gsub("%+", ""):gsub("`", "_"):gsub("%.", ""):gsub("%[", "_"):gsub("%]", "_"):gsub(",", "") +end + +local function getSafeFullName(t) + if t == nil then + return "" + end + + if t.IsGenericParameter then + return t.BaseType == objType and t.Name or getSafeFullName(t.BaseType) + end + + if not t.FullName then return "" end + + return t.FullName:gsub("&", "") +end + +function GetCheckStatement(t, idx, is_v_params) + local cond_start = is_v_params and "(LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, ".. idx ..") || " or "" + local cond_end = is_v_params and ")" or "" + local testname = getSafeFullName(t) + if testname == "System.String" or testname == "System.Byte[]" then + return cond_start .. "(LuaAPI.lua_isnil(L, " .. idx .. ") || LuaAPI.lua_type(L, ".. idx ..") == LuaTypes.LUA_TSTRING)" .. cond_end + elseif testname == "System.Int64" then + return cond_start .. "(LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, ".. idx ..") || LuaAPI.lua_isint64(L, ".. idx .."))" .. cond_end + elseif testname == "System.UInt64" then + return cond_start .. "(LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, ".. idx ..") || LuaAPI.lua_isuint64(L, ".. idx .."))" .. cond_end + elseif testname == "System.Decimal" then + return cond_start .. "(LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, ".. idx ..") || translator.IsDecimal(L, ".. idx .."))" .. cond_end + elseif testname == "XLua.LuaTable" then + return cond_start .. "(LuaAPI.lua_isnil(L, " .. idx .. ") || LuaAPI.lua_type(L, ".. idx ..") == LuaTypes.LUA_TTABLE)" .. cond_end + elseif testname == "XLua.LuaFunction" then + return cond_start .. "(LuaAPI.lua_isnil(L, " .. idx .. ") || LuaAPI.lua_type(L, ".. idx ..") == LuaTypes.LUA_TFUNCTION)" .. cond_end + end + return cond_start .. (fixChecker[testname] or ("translator.Assignable<" .. CsFullTypeName(t).. ">")) .. "(L, ".. idx ..")" .. cond_end +end + +local delegateType = typeof(CS.System.Delegate) +local ExtensionAttribute = typeof(CS.System.Runtime.CompilerServices.ExtensionAttribute) + +function IsExtensionMethod(method) + return method:IsDefined(ExtensionAttribute, false) +end + +function IsDelegate(t) + return delegateType:IsAssignableFrom(t) +end + +function MethodParameters(method) + if not IsExtensionMethod(method) then + return method:GetParameters() + else + local parameters = method:GetParameters() + if parameters[0].ParameterType.IsInterface then + return parameters + end + local ret = {} + for i = 1, parameters.Length - 1 do + ret[i - 1] = parameters[i] + end + ret.Length = parameters.Length - 1 + return ret + end +end + +function IsStruct(t) + if t.IsByRef then t = t:GetElementType() end + return t.IsValueType and not t.IsPrimitive +end + +function NeedUpdate(t) + if t.IsByRef then t = t:GetElementType() end + return t.IsValueType and not t.IsPrimitive and not t.IsEnum and t ~= typeof(CS.System.Decimal) +end + +function GetCasterStatement(t, idx, var_name, need_declare, is_v_params) + local testname = getSafeFullName(t) + local statement = "" + local is_struct = IsStruct(t) + + if need_declare then + statement = CsFullTypeName(t) .. " " .. var_name + if is_struct and not typedCaster[testname] and not fixCaster[testname] then + statement = statement .. ";" + else + statement = statement .. " = " + end + elseif not is_struct then + statement = var_name .. " = " + end + + if is_v_params then + return statement .. "translator.GetParams<" .. CsFullTypeName(t:GetElementType()).. ">" .. "(L, ".. idx ..")" + elseif typedCaster[testname] then + return statement .. "(" .. CsFullTypeName(t) .. ")" ..typedCaster[testname] .. "(L, ".. idx ..")" + elseif IsDelegate(t) then + return statement .. "translator.GetDelegate<" .. CsFullTypeName(t).. ">" .. "(L, ".. idx ..")" + elseif fixCaster[testname] then + return statement .. fixCaster[testname] .. "(L, ".. idx ..")" + elseif testname == "System.Object" then + return statement .. "translator.GetObject(L, ".. idx ..", typeof(" .. CsFullTypeName(t) .."))" + elseif is_struct then + return statement .. "translator.Get(L, ".. idx ..", out " .. var_name .. ")" + elseif t.IsGenericParameter and not t.DeclaringMethod then + return statement .. "translator.GetByType<"..t.Name..">(L, ".. idx ..")" + else + return statement .. "("..CsFullTypeName(t)..")translator.GetObject(L, ".. idx ..", typeof(" .. CsFullTypeName(t) .."))" + end +end + +local paramsAttriType = typeof(CS.System.ParamArrayAttribute) +function IsParams(pi) + if (not pi.IsDefined) then + return pi.IsParamArray + end + return pi:IsDefined(paramsAttriType, false) +end + +local obsoluteAttriType = typeof(CS.System.ObsoleteAttribute) +function IsObsolute(f) + return f:IsDefined(obsoluteAttriType, false) +end + +local objectType = typeof(CS.System.Object) +function GetSelfStatement(t) + local fulltypename = CsFullTypeName(t) + local is_struct = IsStruct(t) + if is_struct then + return fulltypename .. " gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked)" + else + if t == objectType then + return "object gen_to_be_invoked = translator.FastGetCSObj(L, 1)" + else + return fulltypename .. " gen_to_be_invoked = (" .. fulltypename .. ")translator.FastGetCSObj(L, 1)" + end + end + +end + +local GetNullableUnderlyingType = CS.System.Nullable.GetUnderlyingType + +function GetPushStatement(t, variable, is_v_params) + if is_v_params then + local item_push = GetPushStatement(t:GetElementType(), variable..'[__gen_i]') + return 'if ('.. variable ..' != null) { for (int __gen_i = 0; __gen_i < ' .. variable .. '.Length; ++__gen_i) ' .. item_push .. '; }' + end + if t.IsByRef then t = t:GetElementType() end + local testname = getSafeFullName(t) + if fixPush[testname] then + return fixPush[testname] .. "(L, ".. variable ..")" + elseif genPushAndUpdateTypes[t] then + return "translator.Push".. CSVariableName(t) .."(L, "..variable..")" + elseif t.IsGenericParameter and not t.DeclaringMethod then + return "translator.PushByType(L, "..variable..")" + elseif t.IsInterface or GetNullableUnderlyingType(t) then + return "translator.PushAny(L, "..variable..")" + else + return "translator.Push(L, "..variable..")" + end +end + +function GetUpdateStatement(t, idx, variable) + if t.IsByRef then t = t:GetElementType() end + if typeof(CS.System.Decimal) == t then error('Decimal not update!') end + if genPushAndUpdateTypes[t] then + return "translator.Update".. CSVariableName(t) .."(L, ".. idx ..", "..variable..")" + else + return "translator.Update(L, ".. idx ..", "..variable..")" + end +end + +function JustLuaType(t) + return notranslator[getSafeFullName(t)] +end + +function CallNeedTranslator(overload, isdelegate) + if not overload.IsStatic and not isdelegate then return true end + local ret_type_name = getSafeFullName(overload.ReturnType) + if not notranslator[ret_type_name] then return true end + local parameters = overload:GetParameters() + return IfAny(overload:GetParameters(), function(parameter) + return IsParams(parameter) or (not notranslator[getSafeFullName(parameter.ParameterType)]) + end) +end + +function MethodCallNeedTranslator(method) + return IfAny(method.Overloads, function(overload) return CallNeedTranslator(overload) end) +end + +function AccessorNeedTranslator(accessor) + return not accessor.IsStatic or not JustLuaType(accessor.Type) +end + +function PushObjectNeedTranslator(type_info) + return IfAny(type_info.FieldInfos, function(field_info) return not JustLuaType(field_info.Type) end) +end + +local GenericParameterAttributes = CS.System.Reflection.GenericParameterAttributes +local enum_and_op = debug.getmetatable(CS.System.Reflection.BindingFlags.Public).__band +local has_generic_flag = function(f1, f2) + return (f1 ~= GenericParameterAttributes.None) and (enum_and_op(f1, f2) == f2) +end + +function GenericArgumentList(type) + local generic_arg_list = "" + local type_constraints = "" + if type.IsGenericTypeDefinition then + generic_arg_list = "<" + + local constraints = {} + + ForEachCsList(type:GetGenericArguments(), function(generic_arg, gai) + local constraint = {} + if gai ~= 0 then generic_arg_list = generic_arg_list .. ", " end + + generic_arg_list = generic_arg_list .. generic_arg.Name + + if has_generic_flag(generic_arg.GenericParameterAttributes, GenericParameterAttributes.ReferenceTypeConstraint) then + table.insert(constraint, 'class') + end + if has_generic_flag(generic_arg.GenericParameterAttributes, GenericParameterAttributes.NotNullableValueTypeConstraint) then + table.insert(constraint, 'struct') + end + ForEachCsList(generic_arg:GetGenericParameterConstraints(), function(gpc) + if gpc ~= typeof(CS.System.ValueType) or not has_generic_flag(generic_arg.GenericParameterAttributes, GenericParameterAttributes.NotNullableValueTypeConstraint) then + table.insert(constraint, CsFullTypeName(gpc)) + end + end) + if not has_generic_flag(generic_arg.GenericParameterAttributes, GenericParameterAttributes.NotNullableValueTypeConstraint) and has_generic_flag(generic_arg.GenericParameterAttributes, GenericParameterAttributes.DefaultConstructorConstraint) then + table.insert(constraint, 'new()') + end + if #constraint > 0 then + table.insert(constraints, 'where ' .. generic_arg.Name .. ' : ' .. table.concat(constraint, ',')) + end + end) + generic_arg_list = generic_arg_list .. ">" + if #constraints > 0 then + type_constraints = table.concat(constraints, ',') + end + end + return generic_arg_list, type_constraints +end + +function LocalName(name) + return "_" .. name +end diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/TemplateCommon.lua.txt.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/TemplateCommon.lua.txt.meta new file mode 100644 index 00000000..83918081 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/Template/TemplateCommon.lua.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e72a731aeb3c35b48b0094b70172dfb2 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/TemplateRef.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/TemplateRef.cs new file mode 100644 index 00000000..7e439b5f --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/TemplateRef.cs @@ -0,0 +1,20 @@ +using UnityEngine; +using System.Collections; +namespace XLua +{ + public class TemplateRef : ScriptableObject + { + public TextAsset LuaClassWrap; + public TextAsset LuaClassWrapGCM; + public TextAsset LuaDelegateBridge; + public TextAsset LuaDelegateWrap; + public TextAsset LuaEnumWrap; + public TextAsset LuaEnumWrapGCM; + public TextAsset LuaInterfaceBridge; + public TextAsset LuaRegister; + public TextAsset LuaRegisterGCM; + public TextAsset LuaWrapPusher; + public TextAsset PackUnpack; + public TextAsset TemplateCommon; + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/TemplateRef.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/TemplateRef.cs.meta new file mode 100644 index 00000000..c9cbf958 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Editor/TemplateRef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4b058fae1b1c0da4ab60dba22a7301d2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenAttributes.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenAttributes.cs new file mode 100644 index 00000000..09c7c3bc --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenAttributes.cs @@ -0,0 +1,168 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +using System; +using System.Collections.Generic; + +namespace XLua +{ + public enum GenFlag + { + No = 0, + [Obsolete("use GCOptimizeAttribute instead")] + GCOptimize = 1 + } + + //如果你要生成Lua调用CSharp的代码,加这个标签 + public class LuaCallCSharpAttribute : Attribute + { + GenFlag flag; + public GenFlag Flag { + get + { + return flag; + } + } + + public LuaCallCSharpAttribute(GenFlag flag = GenFlag.No) + { + this.flag = flag; + } + } + + //生成CSharp调用Lua,加这标签 + //[AttributeUsage(AttributeTargets.Delegate | AttributeTargets.Interface)] + public class CSharpCallLuaAttribute : Attribute + { + } + + //如果某属性、方法不需要生成,加这个标签 + public class BlackListAttribute : Attribute + { + + } + + [Flags] + public enum OptimizeFlag + { + Default = 0, + PackAsTable = 1 + } + + //如果想对struct生成免GC代码,加这个标签 + public class GCOptimizeAttribute : Attribute + { + OptimizeFlag flag; + public OptimizeFlag Flag + { + get + { + return flag; + } + } + + public GCOptimizeAttribute(OptimizeFlag flag = OptimizeFlag.Default) + { + this.flag = flag; + } + } + + //如果想在反射下使用,加这个标签 + public class ReflectionUseAttribute : Attribute + { + + } + + //只能标注Dictionary>的field或者property + public class DoNotGenAttribute : Attribute + { + + } + + public class AdditionalPropertiesAttribute : Attribute + { + + } + + [Flags] + public enum HotfixFlag + { + Stateless = 0, + [Obsolete("use xlua.util.state instead!", true)] + Stateful = 1, + ValueTypeBoxing = 2, + IgnoreProperty = 4, + IgnoreNotPublic = 8, + Inline = 16, + IntKey = 32, + AdaptByDelegate = 64, + IgnoreCompilerGenerated = 128, + NoBaseProxy = 256, + } + + public class HotfixAttribute : Attribute + { + HotfixFlag flag; + public HotfixFlag Flag + { + get + { + return flag; + } + } + + public HotfixAttribute(HotfixFlag e = HotfixFlag.Stateless) + { + flag = e; + } + } + + [AttributeUsage(AttributeTargets.Delegate)] + internal class HotfixDelegateAttribute : Attribute + { + } + +#if !XLUA_GENERAL + public static class SysGenConfig + { + [GCOptimize] + static List GCOptimize + { + get + { + return new List() { + typeof(UnityEngine.Vector2), + typeof(UnityEngine.Vector3), + typeof(UnityEngine.Vector4), + typeof(UnityEngine.Color), + typeof(UnityEngine.Quaternion), + typeof(UnityEngine.Ray), + typeof(UnityEngine.Bounds), + typeof(UnityEngine.Ray2D), + }; + } + } + + [AdditionalProperties] + static Dictionary> AdditionalProperties + { + get + { + return new Dictionary>() + { + { typeof(UnityEngine.Ray), new List() { "origin", "direction" } }, + { typeof(UnityEngine.Ray2D), new List() { "origin", "direction" } }, + { typeof(UnityEngine.Bounds), new List() { "center", "extents" } }, + }; + } + } + } +#endif +} + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenAttributes.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenAttributes.cs.meta new file mode 100644 index 00000000..f11c6914 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenAttributes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33f8b68bc7d958140805501a27f3d50b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenericDelegateBridge.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenericDelegateBridge.cs new file mode 100644 index 00000000..5ab08c8a --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenericDelegateBridge.cs @@ -0,0 +1,255 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +using System; +using LuaAPI = XLua.LuaDLL.Lua; + +namespace XLua { + public partial class DelegateBridge : DelegateBridgeBase { + public void Action() { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + int error = LuaAPI.lua_pcall(L, 0, 0, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void Action(T1 p1) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + int error = LuaAPI.lua_pcall(L, 1, 0, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void Action(T1 p1, T2 p2) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + translator.PushByType(L, p2); + int error = LuaAPI.lua_pcall(L, 2, 0, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void Action(T1 p1, T2 p2, T3 p3) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + translator.PushByType(L, p2); + translator.PushByType(L, p3); + int error = LuaAPI.lua_pcall(L, 3, 0, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void Action(T1 p1, T2 p2, T3 p3, T4 p4) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + translator.PushByType(L, p2); + translator.PushByType(L, p3); + translator.PushByType(L, p4); + int error = LuaAPI.lua_pcall(L, 4, 0, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + + public TResult Func() { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + int error = LuaAPI.lua_pcall(L, 0, 1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + TResult ret; + try { + translator.Get(L, -1, out ret); + } catch (Exception e) { + throw e; + } finally { + LuaAPI.lua_settop(L, oldTop); + } + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public TResult Func(T1 p1) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + int error = LuaAPI.lua_pcall(L, 1, 1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + TResult ret; + try { + translator.Get(L, -1, out ret); + } catch (Exception e) { + throw e; + } finally { + LuaAPI.lua_settop(L, oldTop); + } + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public TResult Func(T1 p1, T2 p2) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + translator.PushByType(L, p2); + int error = LuaAPI.lua_pcall(L, 2, 1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + TResult ret; + try { + translator.Get(L, -1, out ret); + } catch (Exception e) { + throw e; + } finally { + LuaAPI.lua_settop(L, oldTop); + } + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public TResult Func(T1 p1, T2 p2, T3 p3) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + translator.PushByType(L, p2); + translator.PushByType(L, p3); + int error = LuaAPI.lua_pcall(L, 3, 1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + TResult ret; + try { + translator.Get(L, -1, out ret); + } catch (Exception e) { + throw e; + } finally { + LuaAPI.lua_settop(L, oldTop); + } + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public TResult Func(T1 p1, T2 p2, T3 p3, T4 p4) { +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnv.luaEnvLock) { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, p1); + translator.PushByType(L, p2); + translator.PushByType(L, p3); + translator.PushByType(L, p4); + int error = LuaAPI.lua_pcall(L, 4, 1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + TResult ret; + try { + translator.Get(L, -1, out ret); + } catch (Exception e) { + throw e; + } finally { + LuaAPI.lua_settop(L, oldTop); + } + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + } +} + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenericDelegateBridge.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenericDelegateBridge.cs.meta new file mode 100644 index 00000000..6cd5565c --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/GenericDelegateBridge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f7c0cbf9beeba44eac9b973c5a4f134 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/InternalGlobals.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/InternalGlobals.cs new file mode 100644 index 00000000..74fc3e7f --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/InternalGlobals.cs @@ -0,0 +1,69 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +using System.Collections.Generic; +using System.Reflection; + +namespace XLua +{ + internal partial class InternalGlobals + { +#if !THREAD_SAFE && !HOTFIX_ENABLE + internal static byte[] strBuff = new byte[256]; +#endif + + internal delegate bool TryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index); + internal delegate bool TryArraySet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int array_idx, int obj_idx); + internal static volatile TryArrayGet genTryArrayGetPtr = null; + internal static volatile TryArraySet genTryArraySetPtr = null; + + internal static volatile ObjectTranslatorPool objectTranslatorPool = new ObjectTranslatorPool(); + + internal static volatile int LUA_REGISTRYINDEX = -10000; + + internal static volatile Dictionary supportOp = new Dictionary() + { + { "op_Addition", "__add" }, + { "op_Subtraction", "__sub" }, + { "op_Multiply", "__mul" }, + { "op_Division", "__div" }, + { "op_Equality", "__eq" }, + { "op_UnaryNegation", "__unm" }, + { "op_LessThan", "__lt" }, + { "op_LessThanOrEqual", "__le" }, + { "op_Modulus", "__mod" }, + { "op_BitwiseAnd", "__band" }, + { "op_BitwiseOr", "__bor" }, + { "op_ExclusiveOr", "__bxor" }, + { "op_OnesComplement", "__bnot" }, + { "op_LeftShift", "__shl" }, + { "op_RightShift", "__shr" }, + }; + + internal static volatile Dictionary> extensionMethodMap = null; + +#if GEN_CODE_MINIMIZE + internal static volatile LuaDLL.CSharpWrapperCaller CSharpWrapperCallerPtr = new LuaDLL.CSharpWrapperCaller(StaticLuaCallbacks.CSharpWrapperCallerImpl); +#endif + + internal static volatile LuaCSFunction LazyReflectionWrap = new LuaCSFunction(Utils.LazyReflectionCall); + } + +} + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/InternalGlobals.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/InternalGlobals.cs.meta new file mode 100644 index 00000000..0423d851 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/InternalGlobals.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: be0ea014ee0821e478652661da20ab2d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaBase.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaBase.cs new file mode 100644 index 00000000..0c44382b --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaBase.cs @@ -0,0 +1,117 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; + +namespace XLua +{ + public abstract class LuaBase : IDisposable + { + protected bool disposed; + protected readonly int luaReference; + protected readonly LuaEnv luaEnv; + +#if UNITY_EDITOR || XLUA_GENERAL + protected int _errorFuncRef { get { return luaEnv.errorFuncRef; } } + protected RealStatePtr _L { get { return luaEnv.L; } } + protected ObjectTranslator _translator { get { return luaEnv.translator; } } +#endif + + public LuaBase(int reference, LuaEnv luaenv) + { + luaReference = reference; + luaEnv = luaenv; + } + + ~LuaBase() + { + Dispose(false); + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + public virtual void Dispose(bool disposeManagedResources) + { + if (!disposed) + { + if (luaReference != 0) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + bool is_delegate = this is DelegateBridgeBase; + if (disposeManagedResources) + { + luaEnv.translator.ReleaseLuaBase(luaEnv.L, luaReference, is_delegate); + } + else //will dispse by LuaEnv.GC + { + luaEnv.equeueGCAction(new LuaEnv.GCAction { Reference = luaReference, IsDelegate = is_delegate }); + } +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + disposed = true; + } + } + + public override bool Equals(object o) + { + if (o != null && this.GetType() == o.GetType()) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + LuaBase rhs = (LuaBase)o; + var L = luaEnv.L; + if (L != rhs.luaEnv.L) + return false; + int top = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, rhs.luaReference); + LuaAPI.lua_getref(L, luaReference); + int equal = LuaAPI.lua_rawequal(L, -1, -2); + LuaAPI.lua_settop(L, top); + return (equal != 0); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + else return false; + } + + public override int GetHashCode() + { + LuaAPI.lua_getref(luaEnv.L, luaReference); + var pointer = LuaAPI.lua_topointer(luaEnv.L, -1); + LuaAPI.lua_pop(luaEnv.L, 1); + return pointer.ToInt32(); + } + + internal virtual void push(RealStatePtr L) + { + LuaAPI.lua_getref(L, luaReference); + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaBase.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaBase.cs.meta new file mode 100644 index 00000000..8dbad20f --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 28af4970710c43f469e5d37933e651c7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaDLL.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaDLL.cs new file mode 100644 index 00000000..73c8fdf9 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaDLL.cs @@ -0,0 +1,599 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +namespace XLua.LuaDLL +{ + + using System; + using System.Runtime.InteropServices; + using System.Text; + using XLua; + +#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || XLUA_GENERAL || (UNITY_WSA && !UNITY_EDITOR) + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public delegate int lua_CSFunction(IntPtr L); + +#if GEN_CODE_MINIMIZE + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public delegate int CSharpWrapperCaller(IntPtr L, int funcidx, int top); +#endif +#else + public delegate int lua_CSFunction(IntPtr L); + +#if GEN_CODE_MINIMIZE + public delegate int CSharpWrapperCaller(IntPtr L, int funcidx, int top); +#endif +#endif + + + public partial class Lua + { +#if (UNITY_IPHONE || UNITY_TVOS || UNITY_WEBGL || UNITY_SWITCH) && !UNITY_EDITOR + const string LUADLL = "__Internal"; +#else + const string LUADLL = "xlua"; +#endif + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr lua_tothread(IntPtr L, int index); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_get_lib_version(); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int lua_gc(IntPtr L, LuaGCOptions what, int data); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr lua_getupvalue(IntPtr L, int funcindex, int n); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr lua_setupvalue(IntPtr L, int funcindex, int n); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int lua_pushthread(IntPtr L); + + public static bool lua_isfunction(IntPtr L, int stackPos) + { + return lua_type(L, stackPos) == LuaTypes.LUA_TFUNCTION; + } + + public static bool lua_islightuserdata(IntPtr L, int stackPos) + { + return lua_type(L, stackPos) == LuaTypes.LUA_TLIGHTUSERDATA; + } + + public static bool lua_istable(IntPtr L, int stackPos) + { + return lua_type(L, stackPos) == LuaTypes.LUA_TTABLE; + } + + public static bool lua_isthread(IntPtr L, int stackPos) + { + return lua_type(L, stackPos) == LuaTypes.LUA_TTHREAD; + } + + public static int luaL_error(IntPtr L, string message) //[-0, +1, m] + { + xlua_csharp_str_error(L, message); + return 0; + } + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int lua_setfenv(IntPtr L, int stackPos); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr luaL_newstate(); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void lua_close(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] //[-0, +0, m] + public static extern void luaopen_xlua(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] //[-0, +0, m] + public static extern void luaL_openlibs(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern uint xlua_objlen(IntPtr L, int stackPos); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void lua_createtable(IntPtr L, int narr, int nrec);//[-0, +0, m] + + public static void lua_newtable(IntPtr L)//[-0, +0, m] + { + lua_createtable(L, 0, 0); + } + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_getglobal(IntPtr L, string name);//[-1, +0, m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_setglobal(IntPtr L, string name);//[-1, +0, m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_getloaders(IntPtr L); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_settop(IntPtr L, int newTop); + + public static void lua_pop(IntPtr L, int amount) + { + lua_settop(L, -(amount) - 1); + } + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void lua_insert(IntPtr L, int newTop); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_remove(IntPtr L, int index); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int lua_rawget(IntPtr L, int index); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_rawset(IntPtr L, int index);//[-2, +0, m] + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int lua_setmetatable(IntPtr L, int objIndex); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int lua_rawequal(IntPtr L, int index1, int index2); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_pushvalue(IntPtr L, int index); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void lua_pushcclosure(IntPtr L, IntPtr fn, int n);//[-n, +1, m] + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_replace(IntPtr L, int index); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int lua_gettop(IntPtr L); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern LuaTypes lua_type(IntPtr L, int index); + + public static bool lua_isnil(IntPtr L, int index) + { + return (lua_type(L,index)==LuaTypes.LUA_TNIL); + } + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern bool lua_isnumber(IntPtr L, int index); + + public static bool lua_isboolean(IntPtr L, int index) + { + return lua_type(L,index)==LuaTypes.LUA_TBOOLEAN; + } + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int luaL_ref(IntPtr L, int registryIndex); + + public static int luaL_ref(IntPtr L)//[-1, +0, m] + { + return luaL_ref(L,LuaIndexes.LUA_REGISTRYINDEX); + } + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void xlua_rawgeti(IntPtr L, int tableIndex, long index); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void xlua_rawseti(IntPtr L, int tableIndex, long index);//[-1, +0, m] + + public static void lua_getref(IntPtr L, int reference) + { + xlua_rawgeti(L,LuaIndexes.LUA_REGISTRYINDEX,reference); + } + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int pcall_prepare(IntPtr L, int error_func_ref, int func_ref); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void luaL_unref(IntPtr L, int registryIndex, int reference); + + public static void lua_unref(IntPtr L, int reference) + { + luaL_unref(L,LuaIndexes.LUA_REGISTRYINDEX,reference); + } + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern bool lua_isstring(IntPtr L, int index); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool lua_isinteger(IntPtr L, int index); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_pushnil(IntPtr L); + + public static void lua_pushstdcallcfunction(IntPtr L, lua_CSFunction function, int n = 0)//[-0, +1, m] + { +#if XLUA_GENERAL || (UNITY_WSA && !UNITY_EDITOR) + GCHandle.Alloc(function); +#endif + IntPtr fn = Marshal.GetFunctionPointerForDelegate(function); + xlua_push_csharp_function(L, fn, n); + } + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_upvalueindex(int n); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int lua_pcall(IntPtr L, int nArgs, int nResults, int errfunc); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern double lua_tonumber(IntPtr L, int index); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_tointeger(IntPtr L, int index); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern uint xlua_touint(IntPtr L, int index); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern bool lua_toboolean(IntPtr L, int index); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr lua_topointer(IntPtr L, int index); + + [DllImport(LUADLL,CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr lua_tolstring(IntPtr L, int index, out IntPtr strLen);//[-0, +0, m] + + public static string lua_tostring(IntPtr L, int index) + { + IntPtr strlen; + + IntPtr str = lua_tolstring(L, index, out strlen); + if (str != IntPtr.Zero) + { +#if XLUA_GENERAL || (UNITY_WSA && !UNITY_EDITOR) + int len = strlen.ToInt32(); + byte[] buffer = new byte[len]; + Marshal.Copy(str, buffer, 0, len); + return Encoding.UTF8.GetString(buffer); +#else + string ret = Marshal.PtrToStringAnsi(str, strlen.ToInt32()); + if (ret == null) + { + int len = strlen.ToInt32(); + byte[] buffer = new byte[len]; + Marshal.Copy(str, buffer, 0, len); + return Encoding.UTF8.GetString(buffer); + } + return ret; +#endif + } + else + { + return null; + } + } + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr lua_atpanic(IntPtr L, lua_CSFunction panicf); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_pushnumber(IntPtr L, double number); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_pushboolean(IntPtr L, bool value); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_pushinteger(IntPtr L, int value); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_pushuint(IntPtr L, uint value); + +#if NATIVE_LUA_PUSHSTRING + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void lua_pushstring(IntPtr L, string str); +#else + public static void lua_pushstring(IntPtr L, string str) //业务使用 + { + if (str == null) + { + lua_pushnil(L); + } + else + { +#if !THREAD_SAFE && !HOTFIX_ENABLE + if (Encoding.UTF8.GetByteCount(str) > InternalGlobals.strBuff.Length) + { + byte[] bytes = Encoding.UTF8.GetBytes(str); + xlua_pushlstring(L, bytes, bytes.Length); + } + else + { + int bytes_len = Encoding.UTF8.GetBytes(str, 0, str.Length, InternalGlobals.strBuff, 0); + xlua_pushlstring(L, InternalGlobals.strBuff, bytes_len); + } +#else + var bytes = Encoding.UTF8.GetBytes(str); + xlua_pushlstring(L, bytes, bytes.Length); +#endif + } + } +#endif + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_pushlstring(IntPtr L, byte[] str, int size); + + public static void xlua_pushasciistring(IntPtr L, string str) // for inner use only + { + if (str == null) + { + lua_pushnil(L); + } + else + { +#if NATIVE_LUA_PUSHSTRING + lua_pushstring(L, str); +#else +#if !THREAD_SAFE && !HOTFIX_ENABLE + int str_len = str.Length; + if (InternalGlobals.strBuff.Length < str_len) + { + InternalGlobals.strBuff = new byte[str_len]; + } + + int bytes_len = Encoding.UTF8.GetBytes(str, 0, str_len, InternalGlobals.strBuff, 0); + xlua_pushlstring(L, InternalGlobals.strBuff, bytes_len); +#else + var bytes = Encoding.UTF8.GetBytes(str); + xlua_pushlstring(L, bytes, bytes.Length); +#endif +#endif + } + } + + public static void lua_pushstring(IntPtr L, byte[] str) + { + if (str == null) + { + lua_pushnil(L); + } + else + { + xlua_pushlstring(L, str, str.Length); + } + } + + public static byte[] lua_tobytes(IntPtr L, int index)//[-0, +0, m] + { + if (lua_type(L, index) == LuaTypes.LUA_TSTRING) + { + IntPtr strlen; + IntPtr str = lua_tolstring(L, index, out strlen); + if (str != IntPtr.Zero) + { + int buff_len = strlen.ToInt32(); + byte[] buffer = new byte[buff_len]; + Marshal.Copy(str, buffer, 0, buff_len); + return buffer; + } + } + return null; + } + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int luaL_newmetatable(IntPtr L, string meta);//[-0, +1, m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_pgettable(IntPtr L, int idx); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_psettable(IntPtr L, int idx); + + public static void luaL_getmetatable(IntPtr L, string meta) + { + xlua_pushasciistring(L, meta); + lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + } + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xluaL_loadbuffer(IntPtr L, byte[] buff, int size, string name); + + public static int luaL_loadbuffer(IntPtr L, string buff, string name)//[-0, +1, m] + { + byte[] bytes = Encoding.UTF8.GetBytes(buff); + return xluaL_loadbuffer(L, bytes, bytes.Length, name); + } + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int xlua_tocsobj_safe(IntPtr L,int obj);//[-0, +0, m] + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int xlua_tocsobj_fast(IntPtr L,int obj); + + public static int lua_error(IntPtr L) + { + xlua_csharp_error(L); + return 0; + } + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool lua_checkstack(IntPtr L,int extra);//[-0, +0, m] + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern int lua_next(IntPtr L,int index);//[-1, +(2|0), e] + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void lua_pushlightuserdata(IntPtr L, IntPtr udata); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern IntPtr xlua_tag(); + + [DllImport(LUADLL,CallingConvention=CallingConvention.Cdecl)] + public static extern void luaL_where (IntPtr L, int level);//[-0, +1, m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_tryget_cachedud(IntPtr L, int key, int cache_ref); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_pushcsobj(IntPtr L, int key, int meta_ref, bool need_cache, int cache_ref);//[-0, +1, m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]//[,,m] + public static extern int gen_obj_indexer(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]//[,,m] + public static extern int gen_obj_newindexer(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]//[,,m] + public static extern int gen_cls_indexer(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]//[,,m] + public static extern int gen_cls_newindexer(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]//[,,m] + public static extern int get_error_func_ref(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]//[,,m] + public static extern int load_error_func(IntPtr L, int Ref); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int luaopen_i64lib(IntPtr L);//[,,m] + +#if (!UNITY_SWITCH && !UNITY_WEBGL) || UNITY_EDITOR + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int luaopen_socket_core(IntPtr L);//[,,m] +#endif + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void lua_pushint64(IntPtr L, long n);//[,,m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void lua_pushuint64(IntPtr L, ulong n);//[,,m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool lua_isint64(IntPtr L, int idx); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool lua_isuint64(IntPtr L, int idx); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern long lua_toint64(IntPtr L, int idx); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern ulong lua_touint64(IntPtr L, int idx); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_push_csharp_function(IntPtr L, IntPtr fn, int n);//[-0,+1,m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_csharp_str_error(IntPtr L, string message);//[-0,+1,m] + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]//[-0,+0,m] + public static extern int xlua_csharp_error(IntPtr L); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_int8_t(IntPtr buff, int offset, byte field); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_int8_t(IntPtr buff, int offset, out byte field); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_int16_t(IntPtr buff, int offset, short field); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_int16_t(IntPtr buff, int offset, out short field); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_int32_t(IntPtr buff, int offset, int field); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_int32_t(IntPtr buff, int offset, out int field); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_int64_t(IntPtr buff, int offset, long field); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_int64_t(IntPtr buff, int offset, out long field); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_float(IntPtr buff, int offset, float field); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_float(IntPtr buff, int offset, out float field); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_double(IntPtr buff, int offset, double field); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_double(IntPtr buff, int offset, out double field); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr xlua_pushstruct(IntPtr L, uint size, int meta_ref); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_pushcstable(IntPtr L, uint field_count, int meta_ref); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr lua_touserdata(IntPtr L, int idx); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_gettypeid(IntPtr L, int idx); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_get_registry_index(); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_pgettable_bypath(IntPtr L, int idx, string path); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern int xlua_psettable_bypath(IntPtr L, int idx, string path); + + //[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + //public static extern void xlua_pushbuffer(IntPtr L, byte[] buff); + + //对于Unity,仅浮点组成的struct较多,这几个api用于优化这类struct + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_float2(IntPtr buff, int offset, float f1, float f2); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_float2(IntPtr buff, int offset, out float f1, out float f2); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_float3(IntPtr buff, int offset, float f1, float f2, float f3); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_float3(IntPtr buff, int offset, out float f1, out float f2, out float f3); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_float4(IntPtr buff, int offset, float f1, float f2, float f3, float f4); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_float4(IntPtr buff, int offset, out float f1, out float f2, out float f3, out float f4); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_float5(IntPtr buff, int offset, float f1, float f2, float f3, float f4, float f5); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_float5(IntPtr buff, int offset, out float f1, out float f2, out float f3, out float f4, out float f5); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_float6(IntPtr buff, int offset, float f1, float f2, float f3, float f4, float f5, float f6); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_float6(IntPtr buff, int offset, out float f1, out float f2, out float f3, out float f4, out float f5, out float f6); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_pack_decimal(IntPtr buff, int offset, ref decimal dec); + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_unpack_decimal(IntPtr buff, int offset, out byte scale, out byte sign, out int hi32, out ulong lo64); + + public static bool xlua_is_eq_str(IntPtr L, int index, string str) + { + return xlua_is_eq_str(L, index, str, str.Length); + } + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern bool xlua_is_eq_str(IntPtr L, int index, string str, int str_len); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr xlua_gl(IntPtr L); + +#if GEN_CODE_MINIMIZE + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_set_csharp_wrapper_caller(IntPtr wrapper); + + [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] + public static extern void xlua_push_csharp_wrapper(IntPtr L, int wrapperID); + + public static void xlua_set_csharp_wrapper_caller(CSharpWrapperCaller wrapper_caller) + { +#if XLUA_GENERAL || (UNITY_WSA && !UNITY_EDITOR) + GCHandle.Alloc(wrapper); +#endif + xlua_set_csharp_wrapper_caller(Marshal.GetFunctionPointerForDelegate(wrapper_caller)); + } +#endif + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaDLL.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaDLL.cs.meta new file mode 100644 index 00000000..24adccc7 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaDLL.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 50d6351d52161cc4e94390dde9383215 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaEnv.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaEnv.cs new file mode 100644 index 00000000..627145da --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaEnv.cs @@ -0,0 +1,747 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + + +namespace XLua +{ + using System; + using System.Collections.Generic; + + public class LuaEnv : IDisposable + { + public const string CSHARP_NAMESPACE = "xlua_csharp_namespace"; + public const string MAIN_SHREAD = "xlua_main_thread"; + + internal RealStatePtr rawL; + + internal RealStatePtr L + { + get + { + if (rawL == RealStatePtr.Zero) + { + throw new InvalidOperationException("this lua env had disposed!"); + } + return rawL; + } + } + + private LuaTable _G; + + internal ObjectTranslator translator; + + internal int errorFuncRef = -1; + +#if THREAD_SAFE || HOTFIX_ENABLE + internal /*static*/ object luaLock = new object(); + + internal object luaEnvLock + { + get + { + return luaLock; + } + } +#endif + + const int LIB_VERSION_EXPECT = 105; + + public LuaEnv() + { + if (LuaAPI.xlua_get_lib_version() != LIB_VERSION_EXPECT) + { + throw new InvalidProgramException("wrong lib version expect:" + + LIB_VERSION_EXPECT + " but got:" + LuaAPI.xlua_get_lib_version()); + } + +#if THREAD_SAFE || HOTFIX_ENABLE + lock(luaEnvLock) +#endif + { + LuaIndexes.LUA_REGISTRYINDEX = LuaAPI.xlua_get_registry_index(); +#if GEN_CODE_MINIMIZE + LuaAPI.xlua_set_csharp_wrapper_caller(InternalGlobals.CSharpWrapperCallerPtr); +#endif + // Create State + rawL = LuaAPI.luaL_newstate(); + + //Init Base Libs + LuaAPI.luaopen_xlua(rawL); + LuaAPI.luaopen_i64lib(rawL); + + translator = new ObjectTranslator(this, rawL); + translator.createFunctionMetatable(rawL); + translator.OpenLib(rawL); + ObjectTranslatorPool.Instance.Add(rawL, translator); + + LuaAPI.lua_atpanic(rawL, StaticLuaCallbacks.Panic); + +#if !XLUA_GENERAL + LuaAPI.lua_pushstdcallcfunction(rawL, StaticLuaCallbacks.Print); + if (0 != LuaAPI.xlua_setglobal(rawL, "print")) + { + throw new Exception("call xlua_setglobal fail!"); + } +#endif + + //template engine lib register + TemplateEngine.LuaTemplate.OpenLib(rawL); + + AddSearcher(StaticLuaCallbacks.LoadBuiltinLib, 2); // just after the preload searcher + AddSearcher(StaticLuaCallbacks.LoadFromCustomLoaders, 3); +#if !XLUA_GENERAL + AddSearcher(StaticLuaCallbacks.LoadFromResource, 4); + AddSearcher(StaticLuaCallbacks.LoadFromStreamingAssetsPath, -1); +#endif + DoString(init_xlua, "Init"); + init_xlua = null; + +#if !UNITY_SWITCH || UNITY_EDITOR + AddBuildin("socket.core", StaticLuaCallbacks.LoadSocketCore); + AddBuildin("socket", StaticLuaCallbacks.LoadSocketCore); +#endif + + AddBuildin("CS", StaticLuaCallbacks.LoadCS); + + LuaAPI.lua_newtable(rawL); //metatable of indexs and newindexs functions + LuaAPI.xlua_pushasciistring(rawL, "__index"); + LuaAPI.lua_pushstdcallcfunction(rawL, StaticLuaCallbacks.MetaFuncIndex); + LuaAPI.lua_rawset(rawL, -3); + + LuaAPI.xlua_pushasciistring(rawL, Utils.LuaIndexsFieldName); + LuaAPI.lua_newtable(rawL); + LuaAPI.lua_pushvalue(rawL, -3); + LuaAPI.lua_setmetatable(rawL, -2); + LuaAPI.lua_rawset(rawL, LuaIndexes.LUA_REGISTRYINDEX); + + LuaAPI.xlua_pushasciistring(rawL, Utils.LuaNewIndexsFieldName); + LuaAPI.lua_newtable(rawL); + LuaAPI.lua_pushvalue(rawL, -3); + LuaAPI.lua_setmetatable(rawL, -2); + LuaAPI.lua_rawset(rawL, LuaIndexes.LUA_REGISTRYINDEX); + + LuaAPI.xlua_pushasciistring(rawL, Utils.LuaClassIndexsFieldName); + LuaAPI.lua_newtable(rawL); + LuaAPI.lua_pushvalue(rawL, -3); + LuaAPI.lua_setmetatable(rawL, -2); + LuaAPI.lua_rawset(rawL, LuaIndexes.LUA_REGISTRYINDEX); + + LuaAPI.xlua_pushasciistring(rawL, Utils.LuaClassNewIndexsFieldName); + LuaAPI.lua_newtable(rawL); + LuaAPI.lua_pushvalue(rawL, -3); + LuaAPI.lua_setmetatable(rawL, -2); + LuaAPI.lua_rawset(rawL, LuaIndexes.LUA_REGISTRYINDEX); + + LuaAPI.lua_pop(rawL, 1); // pop metatable of indexs and newindexs functions + + LuaAPI.xlua_pushasciistring(rawL, MAIN_SHREAD); + LuaAPI.lua_pushthread(rawL); + LuaAPI.lua_rawset(rawL, LuaIndexes.LUA_REGISTRYINDEX); + + LuaAPI.xlua_pushasciistring(rawL, CSHARP_NAMESPACE); + if (0 != LuaAPI.xlua_getglobal(rawL, "CS")) + { + throw new Exception("get CS fail!"); + } + LuaAPI.lua_rawset(rawL, LuaIndexes.LUA_REGISTRYINDEX); + +#if !XLUA_GENERAL && (!UNITY_WSA || UNITY_EDITOR) + translator.Alias(typeof(Type), "System.MonoType"); +#endif + + if (0 != LuaAPI.xlua_getglobal(rawL, "_G")) + { + throw new Exception("get _G fail!"); + } + translator.Get(rawL, -1, out _G); + LuaAPI.lua_pop(rawL, 1); + + errorFuncRef = LuaAPI.get_error_func_ref(rawL); + + if (initers != null) + { + for (int i = 0; i < initers.Count; i++) + { + initers[i](this, translator); + } + } + + translator.CreateArrayMetatable(rawL); + translator.CreateDelegateMetatable(rawL); + translator.CreateEnumerablePairs(rawL); + } + } + + private static List> initers = null; + + public static void AddIniter(Action initer) + { + if (initers == null) + { + initers = new List>(); + } + initers.Add(initer); + } + + public LuaTable Global + { + get + { + return _G; + } + } + + public T LoadString(byte[] chunk, string chunkName = "chunk", LuaTable env = null) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + if (typeof(T) != typeof(LuaFunction) && !typeof(T).IsSubclassOf(typeof(Delegate))) + { + throw new InvalidOperationException(typeof(T).Name + " is not a delegate type nor LuaFunction"); + } + var _L = L; + int oldTop = LuaAPI.lua_gettop(_L); + + if (LuaAPI.xluaL_loadbuffer(_L, chunk, chunk.Length, chunkName) != 0) + ThrowExceptionFromError(oldTop); + + if (env != null) + { + env.push(_L); + LuaAPI.lua_setfenv(_L, -2); + } + + T result = (T)translator.GetObject(_L, -1, typeof(T)); + LuaAPI.lua_settop(_L, oldTop); + + return result; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public T LoadString(string chunk, string chunkName = "chunk", LuaTable env = null) + { + byte[] bytes = System.Text.Encoding.UTF8.GetBytes(chunk); + return LoadString(bytes, chunkName, env); + } + + public LuaFunction LoadString(string chunk, string chunkName = "chunk", LuaTable env = null) + { + return LoadString(chunk, chunkName, env); + } + + public object[] DoString(byte[] chunk, string chunkName = "chunk", LuaTable env = null) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + var _L = L; + int oldTop = LuaAPI.lua_gettop(_L); + int errFunc = LuaAPI.load_error_func(_L, errorFuncRef); + if (LuaAPI.xluaL_loadbuffer(_L, chunk, chunk.Length, chunkName) == 0) + { + if (env != null) + { + env.push(_L); + LuaAPI.lua_setfenv(_L, -2); + } + + if (LuaAPI.lua_pcall(_L, 0, -1, errFunc) == 0) + { + LuaAPI.lua_remove(_L, errFunc); + return translator.popValues(_L, oldTop); + } + else + ThrowExceptionFromError(oldTop); + } + else + ThrowExceptionFromError(oldTop); + + return null; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public object[] DoString(string chunk, string chunkName = "chunk", LuaTable env = null) + { + byte[] bytes = System.Text.Encoding.UTF8.GetBytes(chunk); + return DoString(bytes, chunkName, env); + } + + private void AddSearcher(LuaCSFunction searcher, int index) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + var _L = L; + //insert the loader + LuaAPI.xlua_getloaders(_L); + if (!LuaAPI.lua_istable(_L, -1)) + { + throw new Exception("Can not set searcher!"); + } + uint len = LuaAPI.xlua_objlen(_L, -1); + index = index < 0 ? (int)(len + index + 2) : index; + for (int e = (int)len + 1; e > index; e--) + { + LuaAPI.xlua_rawgeti(_L, -1, e - 1); + LuaAPI.xlua_rawseti(_L, -2, e); + } + LuaAPI.lua_pushstdcallcfunction(_L, searcher); + LuaAPI.xlua_rawseti(_L, -2, index); + LuaAPI.lua_pop(_L, 1); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void Alias(Type type, string alias) + { + translator.Alias(type, alias); + } + +#if !XLUA_GENERAL + int last_check_point = 0; + + int max_check_per_tick = 20; + + static bool ObjectValidCheck(object obj) + { + return (!(obj is UnityEngine.Object)) || ((obj as UnityEngine.Object) != null); + } + + Func object_valid_checker = new Func(ObjectValidCheck); +#endif + + public void Tick() + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + var _L = L; + lock (refQueue) + { + while (refQueue.Count > 0) + { + GCAction gca = refQueue.Dequeue(); + translator.ReleaseLuaBase(_L, gca.Reference, gca.IsDelegate); + } + } +#if !XLUA_GENERAL + last_check_point = translator.objects.Check(last_check_point, max_check_per_tick, object_valid_checker, translator.reverseMap); +#endif +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + //API + public void GC() + { + Tick(); + } + + public LuaTable NewTable() + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + var _L = L; + int oldTop = LuaAPI.lua_gettop(_L); + + LuaAPI.lua_newtable(_L); + LuaTable returnVal = (LuaTable)translator.GetObject(_L, -1, typeof(LuaTable)); + + LuaAPI.lua_settop(_L, oldTop); + return returnVal; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + private bool disposed = false; + + public void Dispose() + { + FullGc(); + System.GC.Collect(); + System.GC.WaitForPendingFinalizers(); + + Dispose(true); + + System.GC.Collect(); + System.GC.WaitForPendingFinalizers(); + } + + public virtual void Dispose(bool dispose) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + if (disposed) return; + Tick(); + + if (!translator.AllDelegateBridgeReleased()) + { + throw new InvalidOperationException("try to dispose a LuaEnv with C# callback!"); + } + + ObjectTranslatorPool.Instance.Remove(L); + + LuaAPI.lua_close(L); + translator = null; + + rawL = IntPtr.Zero; + + disposed = true; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void ThrowExceptionFromError(int oldTop) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + object err = translator.GetObject(L, -1); + LuaAPI.lua_settop(L, oldTop); + + // A pre-wrapped exception - just rethrow it (stack trace of InnerException will be preserved) + Exception ex = err as Exception; + if (ex != null) throw ex; + + // A non-wrapped Lua error (best interpreted as a string) - wrap it and throw it + if (err == null) err = "Unknown Lua Error"; + throw new LuaException(err.ToString()); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + internal struct GCAction + { + public int Reference; + public bool IsDelegate; + } + + Queue refQueue = new Queue(); + + internal void equeueGCAction(GCAction action) + { + lock (refQueue) + { + refQueue.Enqueue(action); + } + } + + private string init_xlua = @" + local metatable = {} + local rawget = rawget + local setmetatable = setmetatable + local import_type = xlua.import_type + local import_generic_type = xlua.import_generic_type + local load_assembly = xlua.load_assembly + + function metatable:__index(key) + local fqn = rawget(self,'.fqn') + fqn = ((fqn and fqn .. '.') or '') .. key + + local obj = import_type(fqn) + + if obj == nil then + -- It might be an assembly, so we load it too. + obj = { ['.fqn'] = fqn } + setmetatable(obj, metatable) + elseif obj == true then + return rawget(self, key) + end + + -- Cache this lookup + rawset(self, key, obj) + return obj + end + + function metatable:__newindex() + error('No such type: ' .. rawget(self,'.fqn'), 2) + end + + -- A non-type has been called; e.g. foo = System.Foo() + function metatable:__call(...) + local n = select('#', ...) + local fqn = rawget(self,'.fqn') + if n > 0 then + local gt = import_generic_type(fqn, ...) + if gt then + return rawget(CS, gt) + end + end + error('No such type: ' .. fqn, 2) + end + + CS = CS or {} + setmetatable(CS, metatable) + + typeof = function(t) return t.UnderlyingSystemType end + cast = xlua.cast + if not setfenv or not getfenv then + local function getfunction(level) + local info = debug.getinfo(level + 1, 'f') + return info and info.func + end + + function setfenv(fn, env) + if type(fn) == 'number' then fn = getfunction(fn + 1) end + local i = 1 + while true do + local name = debug.getupvalue(fn, i) + if name == '_ENV' then + debug.upvaluejoin(fn, i, (function() + return env + end), 1) + break + elseif not name then + break + end + + i = i + 1 + end + + return fn + end + + function getfenv(fn) + if type(fn) == 'number' then fn = getfunction(fn + 1) end + local i = 1 + while true do + local name, val = debug.getupvalue(fn, i) + if name == '_ENV' then + return val + elseif not name then + break + end + i = i + 1 + end + end + end + + xlua.hotfix = function(cs, field, func) + if func == nil then func = false end + local tbl = (type(field) == 'table') and field or {[field] = func} + for k, v in pairs(tbl) do + local cflag = '' + if k == '.ctor' then + cflag = '_c' + k = 'ctor' + end + local f = type(v) == 'function' and v or nil + xlua.access(cs, cflag .. '__Hotfix0_'..k, f) -- at least one + pcall(function() + for i = 1, 99 do + xlua.access(cs, cflag .. '__Hotfix'..i..'_'..k, f) + end + end) + end + xlua.private_accessible(cs) + end + xlua.getmetatable = function(cs) + return xlua.metatable_operation(cs) + end + xlua.setmetatable = function(cs, mt) + return xlua.metatable_operation(cs, mt) + end + xlua.setclass = function(parent, name, impl) + impl.UnderlyingSystemType = parent[name].UnderlyingSystemType + rawset(parent, name, impl) + end + + local base_mt = { + __index = function(t, k) + local csobj = t['__csobj'] + local func = csobj['<>xLuaBaseProxy_'..k] + return function(_, ...) + return func(csobj, ...) + end + end + } + base = function(csobj) + return setmetatable({__csobj = csobj}, base_mt) + end + "; + + public delegate byte[] CustomLoader(ref string filepath); + + internal List customLoaders = new List(); + + //loader : CustomLoader filepathrefͣrequireIJҪֵ֧ԣҪʵ· + // ֵnullظԴ޺ʵļ򷵻UTF8byte[] + public void AddLoader(CustomLoader loader) + { + customLoaders.Add(loader); + } + + internal Dictionary buildin_initer = new Dictionary(); + + public void AddBuildin(string name, LuaCSFunction initer) + { + if (!Utils.IsStaticPInvokeCSFunction(initer)) + { + throw new Exception("initer must be static and has MonoPInvokeCallback Attribute!"); + } + buildin_initer.Add(name, initer); + } + + //The garbage-collector pause controls how long the collector waits before starting a new cycle. + //Larger values make the collector less aggressive. Values smaller than 100 mean the collector + //will not wait to start a new cycle. A value of 200 means that the collector waits for the total + //memory in use to double before starting a new cycle. + public int GcPause + { + get + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + int val = LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSETPAUSE, 200); + LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSETPAUSE, val); + return val; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + set + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSETPAUSE, value); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + } + + //The step multiplier controls the relative speed of the collector relative to memory allocation. + //Larger values make the collector more aggressive but also increase the size of each incremental + //step. Values smaller than 100 make the collector too slow and can result in the collector never + //finishing a cycle. The default, 200, means that the collector runs at "twice" the speed of memory + //allocation. + public int GcStepmul + { + get + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + int val = LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSETSTEPMUL, 200); + LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSETSTEPMUL, val); + return val; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + set + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSETSTEPMUL, value); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + } + + public void FullGc() + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCCOLLECT, 0); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void StopGc() + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSTOP, 0); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void RestartGc() + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCRESTART, 0); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public bool GcStep(int data) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + return LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSTEP, data) != 0; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public int Memroy + { + get + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnvLock) + { +#endif + return LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCCOUNT, 0); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaEnv.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaEnv.cs.meta new file mode 100644 index 00000000..7ac8350b --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaEnv.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 931a70d2906f4804ca48c602919411d2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaException.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaException.cs new file mode 100644 index 00000000..819a6bb8 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaException.cs @@ -0,0 +1,19 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +using System; + +namespace XLua +{ + [Serializable] + public class LuaException : Exception + { + public LuaException(string message) : base(message) + {} + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaException.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaException.cs.meta new file mode 100644 index 00000000..be2f94d8 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaException.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ed0557bcaaf455d458a8388755b597f5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaFunction.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaFunction.cs new file mode 100644 index 00000000..a89190c7 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaFunction.cs @@ -0,0 +1,235 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +using System.Collections.Generic; + +namespace XLua +{ + public partial class LuaFunction : LuaBase + { + public LuaFunction(int reference, LuaEnv luaenv) : base(reference, luaenv) + { + } + + //Action和Func是方便使用的无gc api,如果需要用到out,ref参数,建议使用delegate + //如果需要其它个数的Action和Func, 这个类声明为partial,可以自己加 + public void Action(T a) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, a); + int error = LuaAPI.lua_pcall(L, 1, 0, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public TResult Func(T a) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, a); + int error = LuaAPI.lua_pcall(L, 1, 1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + TResult ret; + try + { + translator.Get(L, -1, out ret); + } + catch (Exception e) + { + throw e; + } + finally + { + LuaAPI.lua_settop(L, oldTop); + } + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void Action(T1 a1, T2 a2) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, a1); + translator.PushByType(L, a2); + int error = LuaAPI.lua_pcall(L, 2, 0, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public TResult Func(T1 a1, T2 a2) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, a1); + translator.PushByType(L, a2); + int error = LuaAPI.lua_pcall(L, 2, 1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + TResult ret; + try + { + translator.Get(L, -1, out ret); + } + catch (Exception e) + { + throw e; + } + finally + { + LuaAPI.lua_settop(L, oldTop); + } + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + //deprecated + public object[] Call(object[] args, Type[] returnTypes) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + int nArgs = 0; + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + + int errFunc = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); + LuaAPI.lua_getref(L, luaReference); + if (args != null) + { + nArgs = args.Length; + for (int i = 0; i < args.Length; i++) + { + translator.PushAny(L, args[i]); + } + } + int error = LuaAPI.lua_pcall(L, nArgs, -1, errFunc); + if (error != 0) + luaEnv.ThrowExceptionFromError(oldTop); + + LuaAPI.lua_remove(L, errFunc); + if (returnTypes != null) + return translator.popValues(L, oldTop, returnTypes); + else + return translator.popValues(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + //deprecated + public object[] Call(params object[] args) + { + return Call(args, null); + } + + public T Cast() + { + if (!typeof(T).IsSubclassOf(typeof(Delegate))) + { + throw new InvalidOperationException(typeof(T).Name + " is not a delegate type"); + } +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + push(L); + T ret = (T)translator.GetObject(L, -1, typeof(T)); + LuaAPI.lua_pop(luaEnv.L, 1); + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void SetEnv(LuaTable env) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + int oldTop = LuaAPI.lua_gettop(L); + push(L); + env.push(L); + LuaAPI.lua_setfenv(L, -2); + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + internal override void push(RealStatePtr L) + { + LuaAPI.lua_getref(L, luaReference); + } + + public override string ToString() + { + return "function :" + luaReference; + } + } + +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaFunction.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaFunction.cs.meta new file mode 100644 index 00000000..25b16b78 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaFunction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e890e03d1282cfd4fb1ce7ba5fae4d58 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaTable.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaTable.cs new file mode 100644 index 00000000..6e17c970 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaTable.cs @@ -0,0 +1,378 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; + +namespace XLua +{ + public partial class LuaTable : LuaBase + { + public LuaTable(int reference, LuaEnv luaenv) : base(reference, luaenv) + { + } + + // no boxing version get + public void Get(TKey key, out TValue value) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, key); + + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + string err = LuaAPI.lua_tostring(L, -1); + LuaAPI.lua_settop(L, oldTop); + throw new Exception("get field [" + key + "] error:" + err); + } + + LuaTypes lua_type = LuaAPI.lua_type(L, -1); + Type type_of_value = typeof(TValue); + if (lua_type == LuaTypes.LUA_TNIL && type_of_value.IsValueType()) + { + throw new InvalidCastException("can not assign nil to " + type_of_value.GetFriendlyName()); + } + + try + { + translator.Get(L, -1, out value); + } + catch (Exception e) + { + throw e; + } + finally + { + LuaAPI.lua_settop(L, oldTop); + } +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + // no boxing version get + public bool ContainsKey(TKey key) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, key); + + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + string err = LuaAPI.lua_tostring(L, -1); + LuaAPI.lua_settop(L, oldTop); + throw new Exception("get field [" + key + "] error:" + err); + } + + bool ret = LuaAPI.lua_type(L, -1) != LuaTypes.LUA_TNIL; + + LuaAPI.lua_settop(L, oldTop); + + return ret; + +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + //no boxing version set + public void Set(TKey key, TValue value) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + int oldTop = LuaAPI.lua_gettop(L); + var translator = luaEnv.translator; + + LuaAPI.lua_getref(L, luaReference); + translator.PushByType(L, key); + translator.PushByType(L, value); + + if (0 != LuaAPI.xlua_psettable(L, -3)) + { + luaEnv.ThrowExceptionFromError(oldTop); + } + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + + public T GetInPath(string path) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, luaReference); + if (0 != LuaAPI.xlua_pgettable_bypath(L, -1, path)) + { + luaEnv.ThrowExceptionFromError(oldTop); + } + LuaTypes lua_type = LuaAPI.lua_type(L, -1); + if (lua_type == LuaTypes.LUA_TNIL && typeof(T).IsValueType()) + { + throw new InvalidCastException("can not assign nil to " + typeof(T).GetFriendlyName()); + } + + T value; + try + { + translator.Get(L, -1, out value); + } + catch (Exception e) + { + throw e; + } + finally + { + LuaAPI.lua_settop(L, oldTop); + } + return value; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void SetInPath(string path, T val) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, luaReference); + luaEnv.translator.PushByType(L, val); + if (0 != LuaAPI.xlua_psettable_bypath(L, -2, path)) + { + luaEnv.ThrowExceptionFromError(oldTop); + } + + LuaAPI.lua_settop(L, oldTop); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + [Obsolete("use no boxing version: GetInPath/SetInPath Get/Set instead!")] + public object this[string field] + { + get + { + return GetInPath(field); + } + set + { + SetInPath(field, value); + } + } + + [Obsolete("use no boxing version: GetInPath/SetInPath Get/Set instead!")] + public object this[object field] + { + get + { + return Get(field); + } + set + { + Set(field, value); + } + } + + public void ForEach(Action action) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + try + { + LuaAPI.lua_getref(L, luaReference); + LuaAPI.lua_pushnil(L); + while (LuaAPI.lua_next(L, -2) != 0) + { + if (translator.Assignable(L, -2)) + { + TKey key; + TValue val; + translator.Get(L, -2, out key); + translator.Get(L, -1, out val); + action(key, val); + } + LuaAPI.lua_pop(L, 1); + } + } + finally + { + LuaAPI.lua_settop(L, oldTop); + } +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public int Length + { + get + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + var L = luaEnv.L; + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, luaReference); + var len = (int)LuaAPI.xlua_objlen(L, -1); + LuaAPI.lua_settop(L, oldTop); + return len; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + } + +#if THREAD_SAFE || HOTFIX_ENABLE + [Obsolete("not thread safe!", true)] +#endif + public IEnumerable GetKeys() + { + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, luaReference); + LuaAPI.lua_pushnil(L); + while (LuaAPI.lua_next(L, -2) != 0) + { + yield return translator.GetObject(L, -2); + LuaAPI.lua_pop(L, 1); + } + LuaAPI.lua_settop(L, oldTop); + } + +#if THREAD_SAFE || HOTFIX_ENABLE + [Obsolete("not thread safe!", true)] +#endif + public IEnumerable GetKeys() + { + var L = luaEnv.L; + var translator = luaEnv.translator; + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.lua_getref(L, luaReference); + LuaAPI.lua_pushnil(L); + while (LuaAPI.lua_next(L, -2) != 0) + { + if (translator.Assignable(L, -2)) + { + T v; + translator.Get(L, -2, out v); + yield return v; + } + LuaAPI.lua_pop(L, 1); + } + LuaAPI.lua_settop(L, oldTop); + } + + [Obsolete("use no boxing version: Get !")] + public T Get(object key) + { + T ret; + Get(key, out ret); + return ret; + } + + public TValue Get(TKey key) + { + TValue ret; + Get(key, out ret); + return ret; + } + + public TValue Get(string key) + { + TValue ret; + Get(key, out ret); + return ret; + } + + public void SetMetaTable(LuaTable metaTable) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + push(luaEnv.L); + metaTable.push(luaEnv.L); + LuaAPI.lua_setmetatable(luaEnv.L, -2); + LuaAPI.lua_pop(luaEnv.L, 1); +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public T Cast() + { + var L = luaEnv.L; + var translator = luaEnv.translator; +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + push(L); + T ret = (T)translator.GetObject(L, -1, typeof(T)); + LuaAPI.lua_pop(luaEnv.L, 1); + return ret; +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + internal override void push(RealStatePtr L) + { + LuaAPI.lua_getref(L, luaReference); + } + public override string ToString() + { + return "table :" + luaReference; + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaTable.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaTable.cs.meta new file mode 100644 index 00000000..34d9365d --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/LuaTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 14531852931e9a148b35490faba62e43 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/MethodWarpsCache.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/MethodWarpsCache.cs new file mode 100644 index 00000000..da0dd886 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/MethodWarpsCache.cs @@ -0,0 +1,583 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System.Collections.Generic; +using System; +using System.Reflection; + +namespace XLua +{ + public class OverloadMethodWrap + { + ObjectTranslator translator; + Type targetType; + MethodBase method; + + ObjectCheck[] checkArray; + ObjectCast[] castArray; + + int[] inPosArray; + int[] outPosArray; + + bool[] isOptionalArray; + + object[] defaultValueArray; + + bool isVoid = true; + + int luaStackPosStart = 1; + + bool targetNeeded = false; + + object[] args; + + int[] refPos; + + Type paramsType = null; + + public bool HasDefalutValue{ get; private set; } + + public OverloadMethodWrap(ObjectTranslator translator, Type targetType, MethodBase method) + { + this.translator = translator; + this.targetType = targetType; + this.method = method; + HasDefalutValue = false; + } + + public void Init(ObjectCheckers objCheckers, ObjectCasters objCasters) + { + if ((typeof(Delegate) != targetType && typeof(Delegate).IsAssignableFrom(targetType)) || + !method.IsStatic || method.IsConstructor) + { + luaStackPosStart = 2; + if (!method.IsConstructor) + { + targetNeeded = true; + } + } + + var paramInfos = method.GetParameters(); + refPos = new int[paramInfos.Length]; + + List inPosList = new List(); + List outPosList = new List(); + + List paramsChecks = new List(); + List paramsCasts = new List(); + List isOptionalList = new List(); + List defaultValueList = new List(); + + for(int i = 0; i < paramInfos.Length; i++) + { + refPos[i] = -1; + if (!paramInfos[i].IsIn && paramInfos[i].IsOut) // out parameter + { + outPosList.Add(i); + } + else + { + if(paramInfos[i].ParameterType.IsByRef) + { + var ttype = paramInfos[i].ParameterType.GetElementType(); + if(CopyByValue.IsStruct(ttype) && ttype != typeof(decimal)) + { + refPos[i] = inPosList.Count; + } + outPosList.Add(i); + } + + inPosList.Add(i); + var paramType = paramInfos[i].IsDefined(typeof(ParamArrayAttribute), false) || (!paramInfos[i].ParameterType.IsArray && paramInfos[i].ParameterType.IsByRef ) ? + paramInfos[i].ParameterType.GetElementType() : paramInfos[i].ParameterType; + paramsChecks.Add (objCheckers.GetChecker(paramType)); + paramsCasts.Add (objCasters.GetCaster(paramType)); + isOptionalList.Add(paramInfos[i].IsOptional); + var defalutValue = paramInfos[i].DefaultValue; + if (paramInfos[i].IsOptional) + { + if (defalutValue != null && defalutValue.GetType() != paramInfos[i].ParameterType) + { + defalutValue = defalutValue.GetType() == typeof(Missing) ? (paramInfos[i].ParameterType.IsValueType() ? Activator.CreateInstance(paramInfos[i].ParameterType) : Missing.Value) + : Convert.ChangeType(defalutValue, paramInfos[i].ParameterType); + } + HasDefalutValue = true; + } + defaultValueList.Add(paramInfos[i].IsOptional ? defalutValue : null); + } + } + checkArray = paramsChecks.ToArray(); + castArray = paramsCasts.ToArray(); + inPosArray = inPosList.ToArray(); + outPosArray = outPosList.ToArray(); + isOptionalArray = isOptionalList.ToArray(); + defaultValueArray = defaultValueList.ToArray(); + + if (paramInfos.Length > 0 && paramInfos[paramInfos.Length - 1].IsDefined(typeof(ParamArrayAttribute), false)) + { + paramsType = paramInfos[paramInfos.Length - 1].ParameterType.GetElementType(); + } + + args = new object[paramInfos.Length]; + + if (method is MethodInfo) //constructor is not MethodInfo? + { + isVoid = (method as MethodInfo).ReturnType == typeof(void); + } + else if(method is ConstructorInfo) + { + isVoid = false; + } + } + + public bool Check(RealStatePtr L) + { + int luaTop = LuaAPI.lua_gettop(L); + int luaStackPos = luaStackPosStart; + + for(int i = 0; i < checkArray.Length; i++) + { + if ((i == (checkArray.Length - 1)) && (paramsType != null)) + { + break; + } + if(luaStackPos > luaTop && !isOptionalArray[i]) + { + return false; + } + else if(luaStackPos <= luaTop && !checkArray[i](L, luaStackPos)) + { + return false; + } + + if (luaStackPos <= luaTop || !isOptionalArray[i]) + { + luaStackPos++; + } + } + + return paramsType != null ? (luaStackPos < luaTop + 1 ? + checkArray[checkArray.Length - 1](L, luaStackPos) : true) : luaStackPos == luaTop + 1; + } + + public int Call(RealStatePtr L) + { + try + { +#if UNITY_EDITOR && !DISABLE_OBSOLETE_WARNING + if (method.IsDefined(typeof(ObsoleteAttribute), true)) + { + ObsoleteAttribute info = Attribute.GetCustomAttribute(method, typeof(ObsoleteAttribute)) as ObsoleteAttribute; + UnityEngine.Debug.LogWarning("Obsolete Method [" + method.DeclaringType.ToString() + "." + method.Name + "]: " + info.Message); + } +#endif + object target = null; + MethodBase toInvoke = method; + + if (luaStackPosStart > 1) + { + target = translator.FastGetCSObj(L, 1); + if (target is Delegate) + { + Delegate delegateInvoke = (Delegate)target; +#if UNITY_WSA && !UNITY_EDITOR + toInvoke = delegateInvoke.GetMethodInfo(); +#else + toInvoke = delegateInvoke.Method; +#endif + } + } + + + int luaTop = LuaAPI.lua_gettop(L); + int luaStackPos = luaStackPosStart; + + for (int i = 0; i < castArray.Length; i++) + { + //UnityEngine.Debug.Log("inPos:" + inPosArray[i]); + if (luaStackPos > luaTop) //after check + { + if (paramsType != null && i == castArray.Length - 1) + { + args[inPosArray[i]] = Array.CreateInstance(paramsType, 0); + } + else + { + args[inPosArray[i]] = defaultValueArray[i]; + } + } + else + { + if (paramsType != null && i == castArray.Length - 1) + { + args[inPosArray[i]] = translator.GetParams(L, luaStackPos, paramsType); + } + else + { + args[inPosArray[i]] = castArray[i](L, luaStackPos, null); + } + luaStackPos++; + } + //UnityEngine.Debug.Log("value:" + args[inPosArray[i]]); + } + + object ret = null; + + + ret = toInvoke.IsConstructor ? ((ConstructorInfo)method).Invoke(args) : method.Invoke(targetNeeded ? target : null, args); + + if (targetNeeded && targetType.IsValueType()) + { + translator.Update(L, 1, target); + } + + int nRet = 0; + + if (!isVoid) + { + //UnityEngine.Debug.Log(toInvoke.ToString() + " ret:" + ret); + translator.PushAny(L, ret); + nRet++; + } + + for (int i = 0; i < outPosArray.Length; i++) + { + if (refPos[outPosArray[i]] != -1) + { + translator.Update(L, luaStackPosStart + refPos[outPosArray[i]], args[outPosArray[i]]); + } + translator.PushAny(L, args[outPosArray[i]]); + nRet++; + } + + return nRet; + } + finally + { + for(int i = 0; i < args.Length; i++) + { + args[i] = null; + } + } + } + } + + public class MethodWrap + { + private string methodName; + private List overloads = new List(); + private bool forceCheck; + + public MethodWrap(string methodName, List overloads, bool forceCheck) + { + this.methodName = methodName; + this.overloads = overloads; + this.forceCheck = forceCheck; + } + + public int Call(RealStatePtr L) + { + try + { + if (overloads.Count == 1 && !overloads[0].HasDefalutValue && !forceCheck) return overloads[0].Call(L); + + for (int i = 0; i < overloads.Count; ++i) + { + var overload = overloads[i]; + if (overload.Check(L)) + { + return overload.Call(L); + } + } + return LuaAPI.luaL_error(L, "invalid arguments to " + methodName); + } + catch (System.Reflection.TargetInvocationException e) + { + return LuaAPI.luaL_error(L, "c# exception:" + e.InnerException.Message + ",stack:" + e.InnerException.StackTrace); + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception:" + e.Message + ",stack:" + e.StackTrace); + } + } + } + + public class MethodWrapsCache + { + ObjectTranslator translator; + ObjectCheckers objCheckers; + ObjectCasters objCasters; + + Dictionary constructorCache = new Dictionary(); + Dictionary> methodsCache = new Dictionary>(); + Dictionary delegateCache = new Dictionary(); + + public MethodWrapsCache(ObjectTranslator translator, ObjectCheckers objCheckers, ObjectCasters objCasters) + { + this.translator = translator; + this.objCheckers = objCheckers; + this.objCasters = objCasters; + } + + public LuaCSFunction GetConstructorWrap(Type type) + { + //UnityEngine.Debug.LogWarning("GetConstructor:" + type); + if (!constructorCache.ContainsKey(type)) + { + var constructors = type.GetConstructors(); + if (type.IsAbstract() || constructors == null || constructors.Length == 0) + { + if (type.IsValueType()) + { + constructorCache[type] = (L) => + { + translator.PushAny(L, Activator.CreateInstance(type)); + return 1; + }; + } + else + { + return null; + } + } + else + { + LuaCSFunction ctor = _GenMethodWrap(type, ".ctor", constructors, true).Call; + + if (type.IsValueType()) + { + bool hasZeroParamsCtor = false; + for (int i = 0; i < constructors.Length; i++) + { + if (constructors[i].GetParameters().Length == 0) + { + hasZeroParamsCtor = true; + break; + } + } + if (hasZeroParamsCtor) + { + constructorCache[type] = ctor; + } + else + { + constructorCache[type] = (L) => + { + if (LuaAPI.lua_gettop(L) == 1) + { + translator.PushAny(L, Activator.CreateInstance(type)); + return 1; + } + else + { + return ctor(L); + } + }; + } + } + else + { + constructorCache[type] = ctor; + } + } + } + return constructorCache[type]; + } + + public LuaCSFunction GetMethodWrap(Type type, string methodName) + { + //UnityEngine.Debug.LogWarning("GetMethodWrap:" + type + " " + methodName); + if (!methodsCache.ContainsKey(type)) + { + methodsCache[type] = new Dictionary(); + } + var methodsOfType = methodsCache[type]; + if (!methodsOfType.ContainsKey(methodName)) + { + MemberInfo[] methods = type.GetMember(methodName, BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase); + if (methods == null || methods.Length == 0 || +#if UNITY_WSA && !UNITY_EDITOR + methods[0] is MethodBase +#else + methods[0].MemberType != MemberTypes.Method +#endif + ) + { + return null; + } + methodsOfType[methodName] = _GenMethodWrap(type, methodName, methods).Call; + } + return methodsOfType[methodName]; + } + + public LuaCSFunction GetMethodWrapInCache(Type type, string methodName) + { + //string retriKey = type.ToString() + "." + methodName; + //return methodsCache.ContainsKey(retriKey) ? methodsCache[retriKey] : null; + if (!methodsCache.ContainsKey(type)) + { + methodsCache[type] = new Dictionary(); + } + var methodsOfType = methodsCache[type]; + return methodsOfType.ContainsKey(methodName) ? methodsOfType[methodName] : null; + } + + public LuaCSFunction GetDelegateWrap(Type type) + { + //UnityEngine.Debug.LogWarning("GetDelegateWrap:" + type ); + if (!typeof(Delegate).IsAssignableFrom(type)) + { + return null; + } + if (!delegateCache.ContainsKey(type)) + { + delegateCache[type] = _GenMethodWrap(type, type.ToString(), new MethodBase[] { type.GetMethod("Invoke") }).Call; + } + return delegateCache[type]; + } + + public LuaCSFunction GetEventWrap(Type type, string eventName) + { + if (!methodsCache.ContainsKey(type)) + { + methodsCache[type] = new Dictionary(); + } + + var methodsOfType = methodsCache[type]; + if (!methodsOfType.ContainsKey(eventName)) + { + { + EventInfo eventInfo = type.GetEvent(eventName, BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.NonPublic); + if (eventInfo == null) + { + throw new Exception(type.Name + " has no event named: " + eventName); + } + int start_idx = 0; + + MethodInfo add = eventInfo.GetAddMethod(true); + MethodInfo remove = eventInfo.GetRemoveMethod(true); + + if (add == null && remove == null) + { + throw new Exception(type.Name + "'s " + eventName + " has either add nor remove"); + } + + bool is_static = add != null ? add.IsStatic : remove.IsStatic; + if (!is_static) start_idx = 1; + + methodsOfType[eventName] = (L) => + { + object obj = null; + + if (!is_static) + { + obj = translator.GetObject(L, 1, type); + if (obj == null) + { + return LuaAPI.luaL_error(L, "invalid #1, needed:" + type); + } + } + + try + { + object handlerDelegate = translator.CreateDelegateBridge(L, eventInfo.EventHandlerType, start_idx + 2); + if (handlerDelegate == null) + { + return LuaAPI.luaL_error(L, "invalid #" + (start_idx + 2) + ", needed:" + eventInfo.EventHandlerType); + } + switch (LuaAPI.lua_tostring(L, start_idx + 1)) + { + case "+": + if (add == null) + { + return LuaAPI.luaL_error(L, "no add for event " + eventName); + } + add.Invoke(obj, new object[] { handlerDelegate }); + break; + case "-": + if (remove == null) + { + return LuaAPI.luaL_error(L, "no remove for event " + eventName); + } + remove.Invoke(obj, new object[] { handlerDelegate }); + break; + default: + return LuaAPI.luaL_error(L, "invalid #" + (start_idx + 1) + ", needed: '+' or '-'" + eventInfo.EventHandlerType); + } + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception:" + e + ",stack:" + e.StackTrace); + } + + return 0; + }; + } + } + return methodsOfType[eventName]; + } + + public MethodWrap _GenMethodWrap(Type type, string methodName, IEnumerable methodBases, bool forceCheck = false) + { + List overloads = new List(); + foreach(var methodBase in methodBases) + { + var mb = methodBase as MethodBase; + if (mb == null) + continue; + + if (mb.IsGenericMethodDefinition +#if !ENABLE_IL2CPP + && !tryMakeGenericMethod(ref mb) +#endif + ) + continue; + + var overload = new OverloadMethodWrap(translator, type, mb); + overload.Init(objCheckers, objCasters); + overloads.Add(overload); + } + return new MethodWrap(methodName, overloads, forceCheck); + } + + private static bool tryMakeGenericMethod(ref MethodBase method) + { + try + { + if (!(method is MethodInfo) || !Utils.IsSupportedMethod(method as MethodInfo) ) + { + return false; + } + var genericArguments = method.GetGenericArguments(); + var constraintedArgumentTypes = new Type[genericArguments.Length]; + for (var i = 0; i < genericArguments.Length; i++) + { + var argumentType = genericArguments[i]; + var parameterConstraints = argumentType.GetGenericParameterConstraints(); + constraintedArgumentTypes[i] = parameterConstraints[0]; + } + method = ((MethodInfo)method).MakeGenericMethod(constraintedArgumentTypes); + return true; + } + catch (Exception) + { + return false; + } + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/MethodWarpsCache.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/MethodWarpsCache.cs.meta new file mode 100644 index 00000000..c9625a73 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/MethodWarpsCache.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9b10ec316a2eb2d4da79daffe3f0f08c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectCasters.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectCasters.cs new file mode 100644 index 00000000..563c8fb4 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectCasters.cs @@ -0,0 +1,733 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System.Collections; +using System.Collections.Generic; +using System; +using System.Reflection; + +namespace XLua +{ + public delegate bool ObjectCheck(RealStatePtr L, int idx); + + public delegate object ObjectCast(RealStatePtr L, int idx, object target); // if target is null, will new one + + public class ObjectCheckers + { + Dictionary checkersMap = new Dictionary(); + ObjectTranslator translator; + + public ObjectCheckers(ObjectTranslator translator) + { + this.translator = translator; + checkersMap[typeof(sbyte)] = numberCheck; + checkersMap[typeof(byte)] = numberCheck; + checkersMap[typeof(short)] = numberCheck; + checkersMap[typeof(ushort)] = numberCheck; + checkersMap[typeof(int)] = numberCheck; + checkersMap[typeof(uint)] = numberCheck; + checkersMap[typeof(long)] = int64Check; + checkersMap[typeof(ulong)] = uint64Check; + checkersMap[typeof(double)] = numberCheck; + checkersMap[typeof(char)] = numberCheck; + checkersMap[typeof(float)] = numberCheck; + checkersMap[typeof(decimal)] = decimalCheck; + checkersMap[typeof(bool)] = boolCheck; + checkersMap[typeof(string)] = strCheck; + checkersMap[typeof(object)] = objectCheck; + checkersMap[typeof(byte[])] = bytesCheck; + checkersMap[typeof(IntPtr)] = intptrCheck; + + checkersMap[typeof(LuaTable)] = luaTableCheck; + checkersMap[typeof(LuaFunction)] = luaFunctionCheck; + } + + private static bool objectCheck(RealStatePtr L, int idx) + { + return true; + } + + private bool luaTableCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_istable(L, idx) || (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA && translator.SafeGetCSObj(L, idx) is LuaTable); + } + + private bool numberCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TNUMBER; + } + + private bool decimalCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TNUMBER || translator.IsDecimal(L, idx); + } + + private bool strCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TSTRING || LuaAPI.lua_isnil(L, idx); + } + + private bool bytesCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TSTRING || LuaAPI.lua_isnil(L, idx) || (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA && translator.SafeGetCSObj(L, idx) is byte[]); + } + + private bool boolCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TBOOLEAN; + } + + private bool int64Check(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TNUMBER || LuaAPI.lua_isint64(L, idx); + } + + private bool uint64Check(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TNUMBER || LuaAPI.lua_isuint64(L, idx); + } + + private bool luaFunctionCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_isfunction(L, idx) || (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA && translator.SafeGetCSObj(L, idx) is LuaFunction); + } + + private bool intptrCheck(RealStatePtr L, int idx) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TLIGHTUSERDATA; + } + + private ObjectCheck genChecker(Type type) + { + ObjectCheck fixTypeCheck = (RealStatePtr L, int idx) => + { + if (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA) + { + object obj = translator.SafeGetCSObj(L, idx); + if (obj != null) + { + return type.IsAssignableFrom(obj.GetType()); + } + else + { + Type type_of_obj = translator.GetTypeOf(L, idx); + if (type_of_obj != null) return type.IsAssignableFrom(type_of_obj); + } + } + return false; + }; + + if (!type.IsAbstract() && typeof(Delegate).IsAssignableFrom(type)) + { + return (RealStatePtr L, int idx) => + { + return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_isfunction(L, idx) || fixTypeCheck(L, idx); + }; + } + else if (type.IsEnum()) + { + return fixTypeCheck; + } + else if (type.IsInterface()) + { + return (RealStatePtr L, int idx) => + { + return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_istable(L, idx) || fixTypeCheck(L, idx); + }; + } + else + { + if ((type.IsClass() && type.GetConstructor(System.Type.EmptyTypes) != null)) //class has default construtor + { + return (RealStatePtr L, int idx) => + { + return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_istable(L, idx) || fixTypeCheck(L, idx); + }; + } + else if (type.IsValueType()) + { + return (RealStatePtr L, int idx) => + { + return LuaAPI.lua_istable(L, idx) || fixTypeCheck(L, idx); + }; + } + else if (type.IsArray) + { + return (RealStatePtr L, int idx) => + { + return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_istable(L, idx) || fixTypeCheck(L, idx); + }; + } + else + { + return (RealStatePtr L, int idx) => + { + return LuaAPI.lua_isnil(L, idx) || fixTypeCheck(L, idx); + }; + } + } + } + + public ObjectCheck genNullableChecker(ObjectCheck oc) + { + return (RealStatePtr L, int idx) => + { + return LuaAPI.lua_isnil(L, idx) || oc(L, idx); + }; + } + + public ObjectCheck GetChecker(Type type) + { + if (type.IsByRef) type = type.GetElementType(); + + Type underlyingType = Nullable.GetUnderlyingType(type); + if (underlyingType != null) + { + return genNullableChecker(GetChecker(underlyingType)); + } + ObjectCheck oc; + if (!checkersMap.TryGetValue(type, out oc)) + { + oc = genChecker(type); + checkersMap.Add(type, oc); + } + return oc; + } + } + + public class ObjectCasters + { + Dictionary castersMap = new Dictionary(); + ObjectTranslator translator; + + public ObjectCasters(ObjectTranslator translator) + { + this.translator = translator; + castersMap[typeof(char)] = charCaster; + castersMap[typeof(sbyte)] = sbyteCaster; + castersMap[typeof(byte)] = byteCaster; + castersMap[typeof(short)] = shortCaster; + castersMap[typeof(ushort)] = ushortCaster; + castersMap[typeof(int)] = intCaster; + castersMap[typeof(uint)] = uintCaster; + castersMap[typeof(long)] = longCaster; + castersMap[typeof(ulong)] = ulongCaster; + castersMap[typeof(double)] = getDouble; + castersMap[typeof(float)] = floatCaster; + castersMap[typeof(decimal)] = decimalCaster; + castersMap[typeof(bool)] = getBoolean; + castersMap[typeof(string)] = getString; + castersMap[typeof(object)] = getObject; + castersMap[typeof(byte[])] = getBytes; + castersMap[typeof(IntPtr)] = getIntptr; + //special type + castersMap[typeof(LuaTable)] = getLuaTable; + castersMap[typeof(LuaFunction)] = getLuaFunction; + } + + private static object charCaster(RealStatePtr L, int idx, object target) + { + return (char)LuaAPI.xlua_tointeger(L, idx); + } + + private static object sbyteCaster(RealStatePtr L, int idx, object target) + { + return (sbyte)LuaAPI.xlua_tointeger(L, idx); + } + + private static object byteCaster(RealStatePtr L, int idx, object target) + { + return (byte)LuaAPI.xlua_tointeger(L, idx); + } + + private static object shortCaster(RealStatePtr L, int idx, object target) + { + return (short)LuaAPI.xlua_tointeger(L, idx); + } + + private static object ushortCaster(RealStatePtr L, int idx, object target) + { + return (ushort)LuaAPI.xlua_tointeger(L, idx); + } + + private static object intCaster(RealStatePtr L, int idx, object target) + { + return LuaAPI.xlua_tointeger(L, idx); + } + + private static object uintCaster(RealStatePtr L, int idx, object target) + { + return LuaAPI.xlua_touint(L, idx); + } + + private static object longCaster(RealStatePtr L, int idx, object target) + { + return LuaAPI.lua_toint64(L, idx); + } + + private static object ulongCaster(RealStatePtr L, int idx, object target) + { + return LuaAPI.lua_touint64(L, idx); + } + + private static object getDouble(RealStatePtr L, int idx, object target) + { + return LuaAPI.lua_tonumber(L, idx); + } + + private static object floatCaster(RealStatePtr L, int idx, object target) + { + return (float)LuaAPI.lua_tonumber(L, idx); + } + + private object decimalCaster(RealStatePtr L, int idx, object target) + { + decimal ret; + translator.Get(L, idx, out ret); + return ret; + } + + private static object getBoolean(RealStatePtr L, int idx, object target) + { + return LuaAPI.lua_toboolean(L, idx); + } + + private static object getString(RealStatePtr L, int idx, object target) + { + return LuaAPI.lua_tostring(L, idx); + } + + private object getBytes(RealStatePtr L, int idx, object target) + { + return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TSTRING ? LuaAPI.lua_tobytes(L, idx) : translator.SafeGetCSObj(L, idx) as byte[]; + } + + private object getIntptr(RealStatePtr L, int idx, object target) + { + return LuaAPI.lua_touserdata(L, idx); + } + + private object getObject(RealStatePtr L, int idx, object target) + { + //return translator.getObject(L, idx); //TODO: translator.getObject move to here?? + LuaTypes type = (LuaTypes)LuaAPI.lua_type(L, idx); + switch (type) + { + case LuaTypes.LUA_TNUMBER: + { + if (LuaAPI.lua_isint64(L, idx)) + { + return LuaAPI.lua_toint64(L, idx); + } + else if(LuaAPI.lua_isinteger(L, idx)) + { + return LuaAPI.xlua_tointeger(L, idx); + } + else + { + return LuaAPI.lua_tonumber(L, idx); + } + } + case LuaTypes.LUA_TSTRING: + { + return LuaAPI.lua_tostring(L, idx); + } + case LuaTypes.LUA_TBOOLEAN: + { + return LuaAPI.lua_toboolean(L, idx); + } + case LuaTypes.LUA_TTABLE: + { + return getLuaTable(L, idx, null); + } + case LuaTypes.LUA_TFUNCTION: + { + return getLuaFunction(L, idx, null); + } + case LuaTypes.LUA_TUSERDATA: + { + if (LuaAPI.lua_isint64(L, idx)) + { + return LuaAPI.lua_toint64(L, idx); + } + else if(LuaAPI.lua_isuint64(L, idx)) + { + return LuaAPI.lua_touint64(L, idx); + } + else + { + object obj = translator.SafeGetCSObj(L, idx); + return (obj is RawObject) ? (obj as RawObject).Target : obj; + } + } + default: + return null; + } + } + + private object getLuaTable(RealStatePtr L, int idx, object target) + { + if (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA) + { + object obj = translator.SafeGetCSObj(L, idx); + return (obj != null && obj is LuaTable) ? obj : null; + } + if (!LuaAPI.lua_istable(L, idx)) + { + return null; + } + LuaAPI.lua_pushvalue(L, idx); + return new LuaTable(LuaAPI.luaL_ref(L), translator.luaEnv); + } + + private object getLuaFunction(RealStatePtr L, int idx, object target) + { + if (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA) + { + object obj = translator.SafeGetCSObj(L, idx); + return (obj != null && obj is LuaFunction) ? obj : null; + } + if (!LuaAPI.lua_isfunction(L, idx)) + { + return null; + } + LuaAPI.lua_pushvalue(L, idx); + return new LuaFunction(LuaAPI.luaL_ref(L), translator.luaEnv); + } + + public void AddCaster(Type type, ObjectCast oc) + { + castersMap[type] = oc; + } + + private ObjectCast genCaster(Type type) + { + ObjectCast fixTypeGetter = (RealStatePtr L, int idx, object target) => + { + if (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA) + { + object obj = translator.SafeGetCSObj(L, idx); + return (obj != null && type.IsAssignableFrom(obj.GetType())) ? obj : null; + } + return null; + }; + + if (typeof(Delegate).IsAssignableFrom(type)) + { + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + if (!LuaAPI.lua_isfunction(L, idx)) + { + return null; + } + + return translator.CreateDelegateBridge(L, type, idx); + }; + } + else if (typeof(DelegateBridgeBase).IsAssignableFrom(type)) + { + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + if (!LuaAPI.lua_isfunction(L, idx)) + { + return null; + } + + return translator.CreateDelegateBridge(L, null, idx); + }; + } + else if (type.IsInterface()) + { + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + if (!LuaAPI.lua_istable(L, idx)) + { + return null; + } + return translator.CreateInterfaceBridge(L, type, idx); + }; + } + else if (type.IsEnum()) + { + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + LuaTypes lua_type = LuaAPI.lua_type(L, idx); + if (lua_type == LuaTypes.LUA_TSTRING) + { + return Enum.Parse(type, LuaAPI.lua_tostring(L, idx)); + } + else if (lua_type == LuaTypes.LUA_TNUMBER) + { + return Enum.ToObject(type, LuaAPI.xlua_tointeger(L, idx)); + } + throw new InvalidCastException("invalid value for enum " + type); + }; + } + else if (type.IsArray) + { + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + if (!LuaAPI.lua_istable(L, idx)) + { + return null; + } + + uint len = LuaAPI.xlua_objlen(L, idx); + int n = LuaAPI.lua_gettop(L); + idx = idx > 0 ? idx : LuaAPI.lua_gettop(L) + idx + 1;// abs of index + Type et = type.GetElementType(); + ObjectCast elementCaster = GetCaster(et); + Array ary = target == null ? Array.CreateInstance(et, (int)len) : target as Array; + if (!LuaAPI.lua_checkstack(L, 1)) + { + throw new Exception("stack overflow while cast to Array"); + } + for (int i = 0; i < len; ++i) + { + LuaAPI.lua_pushnumber(L, i + 1); + LuaAPI.lua_rawget(L, idx); + if (et.IsPrimitive()) + { + if (!StaticLuaCallbacks.TryPrimitiveArraySet(type, L, ary, i, n + 1)) + { + ary.SetValue(elementCaster(L, n + 1, null), i); + } + } + else + { + if (InternalGlobals.genTryArraySetPtr == null + || !InternalGlobals.genTryArraySetPtr(type, L, translator, ary, i, n + 1)) + { + ary.SetValue(elementCaster(L, n + 1, null), i); + } + } + LuaAPI.lua_pop(L, 1); + } + return ary; + }; + } + else if (typeof(IList).IsAssignableFrom(type) && type.IsGenericType()) + { + Type elementType = type.GetGenericArguments()[0]; + ObjectCast elementCaster = GetCaster(elementType); + + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + if (!LuaAPI.lua_istable(L, idx)) + { + return null; + } + + obj = target == null ? Activator.CreateInstance(type) : target; + int n = LuaAPI.lua_gettop(L); + idx = idx > 0 ? idx : LuaAPI.lua_gettop(L) + idx + 1;// abs of index + IList list = obj as IList; + + + uint len = LuaAPI.xlua_objlen(L, idx); + if (!LuaAPI.lua_checkstack(L, 1)) + { + throw new Exception("stack overflow while cast to IList"); + } + for (int i = 0; i < len; ++i) + { + LuaAPI.lua_pushnumber(L, i + 1); + LuaAPI.lua_rawget(L, idx); + if (i < list.Count && target != null) + { + if (translator.Assignable(L, n + 1, elementType)) + { + list[i] = elementCaster(L, n + 1, list[i]); ; + } + } + else + { + if (translator.Assignable(L, n + 1, elementType)) + { + list.Add(elementCaster(L, n + 1, null)); + } + } + LuaAPI.lua_pop(L, 1); + } + return obj; + }; + } + else if (typeof(IDictionary).IsAssignableFrom(type) && type.IsGenericType()) + { + Type keyType = type.GetGenericArguments()[0]; + ObjectCast keyCaster = GetCaster(keyType); + Type valueType = type.GetGenericArguments()[1]; + ObjectCast valueCaster = GetCaster(valueType); + + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + if (!LuaAPI.lua_istable(L, idx)) + { + return null; + } + + IDictionary dic = (target == null ? Activator.CreateInstance(type) : target) as IDictionary; + int n = LuaAPI.lua_gettop(L); + idx = idx > 0 ? idx : LuaAPI.lua_gettop(L) + idx + 1;// abs of index + + LuaAPI.lua_pushnil(L); + if (!LuaAPI.lua_checkstack(L, 1)) + { + throw new Exception("stack overflow while cast to IDictionary"); + } + while (LuaAPI.lua_next(L, idx) != 0) + { + if (translator.Assignable(L, n + 1, keyType) && translator.Assignable(L, n + 2, valueType)) + { + object k = keyCaster(L, n + 1, null); + dic[k] = valueCaster(L, n + 2, !dic.Contains(k) ? null : dic[k]); + } + LuaAPI.lua_pop(L, 1); // removes value, keeps key for next iteration + } + return dic; + }; + } + else if ((type.IsClass() && type.GetConstructor(System.Type.EmptyTypes) != null) || (type.IsValueType() && !type.IsEnum())) //class has default construtor + { + return (RealStatePtr L, int idx, object target) => + { + object obj = fixTypeGetter(L, idx, target); + if (obj != null) return obj; + + if (!LuaAPI.lua_istable(L, idx)) + { + return null; + } + + obj = target == null ? Activator.CreateInstance(type) : target; + + int n = LuaAPI.lua_gettop(L); + idx = idx > 0 ? idx : LuaAPI.lua_gettop(L) + idx + 1;// abs of index + if (!LuaAPI.lua_checkstack(L, 1)) + { + throw new Exception("stack overflow while cast to " + type); + } + /*foreach (PropertyInfo prop in type.GetProperties()) + { + var _setMethod = prop.GetSetMethod(); + + if (_setMethod == null || + _setMethod.IsPrivate) + { + continue; + } + + LuaAPI.xlua_pushasciistring(L, prop.Name); + LuaAPI.lua_rawget(L, idx); + if (!LuaAPI.lua_isnil(L, -1)) + { + try + { + prop.SetValue(obj, GetCaster(prop.PropertyType)(L, n + 1, + target == null || prop.PropertyType.IsPrimitive() || prop.PropertyType == typeof(string) ? null : prop.GetValue(obj, null)), null); + } + catch (Exception e) + { + throw new Exception("exception in tran " + prop.Name + ", msg=" + e.Message); + } + } + LuaAPI.lua_pop(L, 1); + }*/ + foreach (FieldInfo field in type.GetFields()) + { + LuaAPI.xlua_pushasciistring(L, field.Name); + LuaAPI.lua_rawget(L, idx); + if (!LuaAPI.lua_isnil(L, -1)) + { + try + { + field.SetValue(obj, GetCaster(field.FieldType)(L, n + 1, + target == null || field.FieldType.IsPrimitive() || field.FieldType == typeof(string) ? null : field.GetValue(obj))); + } + catch (Exception e) + { + throw new Exception("exception in tran " + field.Name + ", msg=" + e.Message); + } + } + LuaAPI.lua_pop(L, 1); + } + + return obj; + }; + } + else + { + return fixTypeGetter; + } + } + + ObjectCast genNullableCaster(ObjectCast oc) + { + return (RealStatePtr L, int idx, object target) => + { + if (LuaAPI.lua_isnil(L, idx)) + { + return null; + } + else + { + return oc(L, idx, target); + } + }; + } + + public ObjectCast GetCaster(Type type) + { + if (type.IsByRef) type = type.GetElementType(); + + Type underlyingType = Nullable.GetUnderlyingType(type); + if (underlyingType != null) + { + return genNullableCaster(GetCaster(underlyingType)); + } + ObjectCast oc; + if (!castersMap.TryGetValue(type, out oc)) + { + oc = genCaster(type); + castersMap.Add(type, oc); + } + return oc; + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectCasters.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectCasters.cs.meta new file mode 100644 index 00000000..da6c9d83 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectCasters.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea86a317b51a25949944dc168ebf4910 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectPool.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectPool.cs new file mode 100644 index 00000000..04f31cf6 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectPool.cs @@ -0,0 +1,164 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace XLua +{ + public class ObjectPool + { + const int LIST_END = -1; + const int ALLOCED = -2; + struct Slot + { + public int next; + public object obj; + + public Slot(int next, object obj) + { + this.next = next; + this.obj = obj; + } + } + + private Slot[] list = new Slot[512]; + private int freelist = LIST_END; + private int count = 0; + + public object this[int i] + { + get + { + if (i >= 0 && i < count) + { + return list[i].obj; + } + + return null; + } + } + + public void Clear() + { + freelist = LIST_END; + count = 0; + list = new Slot[512]; + } + + void extend_capacity() + { + Slot[] new_list = new Slot[list.Length * 2]; + for (int i = 0; i < list.Length; i++) + { + new_list[i] = list[i]; + } + list = new_list; + } + + public int Add(object obj) + { + int index = LIST_END; + + if (freelist != LIST_END) + { + index = freelist; + list[index].obj = obj; + freelist = list[index].next; + list[index].next = ALLOCED; + } + else + { + if (count == list.Length) + { + extend_capacity(); + } + index = count; + list[index] = new Slot(ALLOCED, obj); + count = index + 1; + } + + return index; + } + + public bool TryGetValue(int index, out object obj) + { + if (index >= 0 && index < count && list[index].next == ALLOCED) + { + obj = list[index].obj; + return true; + } + + obj = null; + return false; + } + + public object Get(int index) + { + if (index >= 0 && index < count) + { + return list[index].obj; + } + return null; + } + + public object Remove(int index) + { + if (index >= 0 && index < count && list[index].next == ALLOCED) + { + object o = list[index].obj; + list[index].obj = null; + list[index].next = freelist; + freelist = index; + return o; + } + + return null; + } + + public object Replace(int index, object o) + { + if (index >= 0 && index < count) + { + object obj = list[index].obj; + list[index].obj = o; + return obj; + } + + return null; + } + + public int Check(int check_pos, int max_check, Func checker, Dictionary reverse_map) + { + if (count == 0) + { + return 0; + } + for (int i = 0; i < Math.Min(max_check, count); ++i) + { + check_pos %= count; + if (list[check_pos].next == ALLOCED && !Object.ReferenceEquals(list[check_pos].obj, null)) + { + if (!checker(list[check_pos].obj)) + { + object obj = Replace(check_pos, null); + int obj_index; + if (reverse_map.TryGetValue(obj, out obj_index) && obj_index == check_pos) + { + reverse_map.Remove(obj); + } + } + } + ++check_pos; + } + + return check_pos %= count; + } + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectPool.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectPool.cs.meta new file mode 100644 index 00000000..6f8e6bdf --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectPool.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a3bff124b02b1074eb05589350624d79 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslator.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslator.cs new file mode 100644 index 00000000..0cc3cdcf --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslator.cs @@ -0,0 +1,1715 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + + +namespace XLua +{ + using System; + using System.Collections; + using System.Reflection; + using System.Collections.Generic; + using System.Diagnostics; + using System.Linq; + + class ReferenceEqualsComparer : IEqualityComparer + { + public new bool Equals(object o1, object o2) + { + return object.ReferenceEquals(o1, o2); + } + public int GetHashCode(object obj) + { + return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(obj); + } + } + +#pragma warning disable 414 + public class MonoPInvokeCallbackAttribute : System.Attribute + { + private Type type; + public MonoPInvokeCallbackAttribute(Type t) { type = t; } + } +#pragma warning restore 414 + + public enum LuaTypes + { + LUA_TNONE = -1, + LUA_TNIL = 0, + LUA_TNUMBER = 3, + LUA_TSTRING = 4, + LUA_TBOOLEAN = 1, + LUA_TTABLE = 5, + LUA_TFUNCTION = 6, + LUA_TUSERDATA = 7, + LUA_TTHREAD = 8, + LUA_TLIGHTUSERDATA = 2 + } + + public enum LuaGCOptions + { + LUA_GCSTOP = 0, + LUA_GCRESTART = 1, + LUA_GCCOLLECT = 2, + LUA_GCCOUNT = 3, + LUA_GCCOUNTB = 4, + LUA_GCSTEP = 5, + LUA_GCSETPAUSE = 6, + LUA_GCSETSTEPMUL = 7, + } + + public enum LuaThreadStatus + { + LUA_RESUME_ERROR = -1, + LUA_OK = 0, + LUA_YIELD = 1, + LUA_ERRRUN = 2, + LUA_ERRSYNTAX = 3, + LUA_ERRMEM = 4, + LUA_ERRERR = 5, + } + + sealed class LuaIndexes + { + public static int LUA_REGISTRYINDEX + { + get + { + return InternalGlobals.LUA_REGISTRYINDEX; + } + set + { + InternalGlobals.LUA_REGISTRYINDEX = value; + } + } + } + +#if GEN_CODE_MINIMIZE + public delegate int CSharpWrapper(IntPtr L, int top); +#endif + + public partial class ObjectTranslator + { + internal MethodWrapsCache methodWrapsCache; + internal ObjectCheckers objectCheckers; + internal ObjectCasters objectCasters; + + internal readonly ObjectPool objects = new ObjectPool(); + internal readonly Dictionary reverseMap = new Dictionary(new ReferenceEqualsComparer()); + internal LuaEnv luaEnv; + internal StaticLuaCallbacks metaFunctions; + internal List assemblies; + private LuaCSFunction importTypeFunction,loadAssemblyFunction, castFunction; + //延迟加载 + private readonly Dictionary> delayWrap = new Dictionary>(); + + private readonly Dictionary> interfaceBridgeCreators = new Dictionary>(); + + //无法访问的类,比如声明成internal,可以用其接口、基类的生成代码来访问 + private readonly Dictionary aliasCfg = new Dictionary(); + + public void DelayWrapLoader(Type type, Action loader) + { + delayWrap[type] = loader; + } + + public void AddInterfaceBridgeCreator(Type type, Func creator) + { + interfaceBridgeCreators.Add(type, creator); + } + + Dictionary loaded_types = new Dictionary(); + public bool TryDelayWrapLoader(RealStatePtr L, Type type) + { + if (loaded_types.ContainsKey(type)) return true; + loaded_types.Add(type, true); + + LuaAPI.luaL_newmetatable(L, type.FullName); //先建一个metatable,因为加载过程可能会需要用到 + LuaAPI.lua_pop(L, 1); + + Action loader; + int top = LuaAPI.lua_gettop(L); + if (delayWrap.TryGetValue(type, out loader)) + { + delayWrap.Remove(type); + loader(L); + } + else + { +#if !GEN_CODE_MINIMIZE && !ENABLE_IL2CPP && (UNITY_EDITOR || XLUA_GENERAL) && !FORCE_REFLECTION && !NET_STANDARD_2_0 + if (!DelegateBridge.Gen_Flag && !type.IsEnum() && !typeof(Delegate).IsAssignableFrom(type) && Utils.IsPublic(type)) + { + Type wrap = ce.EmitTypeWrap(type); + MethodInfo method = wrap.GetMethod("__Register", BindingFlags.Static | BindingFlags.Public); + method.Invoke(null, new object[] { L }); + } + else + { + Utils.ReflectionWrap(L, type, privateAccessibleFlags.Contains(type)); + } +#else + Utils.ReflectionWrap(L, type, privateAccessibleFlags.Contains(type)); +#endif +#if NOT_GEN_WARNING + if (!typeof(Delegate).IsAssignableFrom(type)) + { +#if !XLUA_GENERAL + UnityEngine.Debug.LogWarning(string.Format("{0} not gen, using reflection instead", type)); +#else + System.Console.WriteLine(string.Format("Warning: {0} not gen, using reflection instead", type)); +#endif + } +#endif + } + if (top != LuaAPI.lua_gettop(L)) + { + throw new Exception("top change, before:" + top + ", after:" + LuaAPI.lua_gettop(L)); + } + + foreach (var nested_type in type.GetNestedTypes(BindingFlags.Public)) + { + if (nested_type.IsGenericTypeDefinition()) + { + continue; + } + GetTypeId(L, nested_type); + } + + return true; + } + + public void Alias(Type type, string alias) + { + Type alias_type = FindType(alias); + if (alias_type == null) + { + throw new ArgumentException("Can not find " + alias); + } + aliasCfg[alias_type] = type; + } + + public int cacheRef; + + void addAssemblieByName(IEnumerable assemblies_usorted, string name) + { + foreach(var assemblie in assemblies_usorted) + { + if (assemblie.FullName.StartsWith(name) && !assemblies.Contains(assemblie)) + { + assemblies.Add(assemblie); + break; + } + } + } + + public ObjectTranslator(LuaEnv luaenv,RealStatePtr L) + { +#if XLUA_GENERAL || (UNITY_WSA && !UNITY_EDITOR) + var dumb_field = typeof(ObjectTranslator).GetField("s_gen_reg_dumb_obj", BindingFlags.Static| BindingFlags.DeclaredOnly | BindingFlags.NonPublic); + if (dumb_field != null) + { + dumb_field.GetValue(null); + } +#endif + assemblies = new List(); + +#if (UNITY_WSA && !ENABLE_IL2CPP) && !UNITY_EDITOR + var assemblies_usorted = Utils.GetAssemblies(); +#else + assemblies.Add(Assembly.GetExecutingAssembly()); + var assemblies_usorted = AppDomain.CurrentDomain.GetAssemblies(); +#endif + addAssemblieByName(assemblies_usorted, "mscorlib,"); + addAssemblieByName(assemblies_usorted, "System,"); + addAssemblieByName(assemblies_usorted, "System.Core,"); + foreach (Assembly assembly in assemblies_usorted) + { + if (!assemblies.Contains(assembly)) + { + assemblies.Add(assembly); + } + } + + this.luaEnv=luaenv; + objectCasters = new ObjectCasters(this); + objectCheckers = new ObjectCheckers(this); + methodWrapsCache = new MethodWrapsCache(this, objectCheckers, objectCasters); + metaFunctions=new StaticLuaCallbacks(); + + importTypeFunction = new LuaCSFunction(StaticLuaCallbacks.ImportType); + loadAssemblyFunction = new LuaCSFunction(StaticLuaCallbacks.LoadAssembly); + castFunction = new LuaCSFunction(StaticLuaCallbacks.Cast); + + LuaAPI.lua_newtable(L); + LuaAPI.lua_newtable(L); + LuaAPI.xlua_pushasciistring(L, "__mode"); + LuaAPI.xlua_pushasciistring(L, "v"); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_setmetatable(L, -2); + cacheRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + + initCSharpCallLua(); + } + + internal enum LOGLEVEL{ + NO, + INFO, + WARN, + ERROR + } + +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 + Type delegate_birdge_type; + + class CompareByArgRet : IEqualityComparer + { + public bool Equals(MethodInfo x, MethodInfo y) + { + return Utils.IsParamsMatch(x, y); + } + public int GetHashCode(MethodInfo method) + { + int hc = 0; + hc += method.ReturnType.GetHashCode(); + foreach (var pi in method.GetParameters()) + { + hc += pi.ParameterType.GetHashCode(); + } + return hc; + } + } +#endif + + void initCSharpCallLua() + { +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 + delegate_birdge_type = typeof(DelegateBridge); + if (!DelegateBridge.Gen_Flag) + { + List cs_call_lua = new List(); + foreach (var type in Utils.GetAllTypes()) + { + if(type.IsDefined(typeof(CSharpCallLuaAttribute), false)) + { + cs_call_lua.Add(type); + } + + if (!type.IsAbstract || !type.IsSealed) continue; + + var fields = type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < fields.Length; i++) + { + var field = fields[i]; + if (field.IsDefined(typeof(CSharpCallLuaAttribute), false) && (typeof(IEnumerable)).IsAssignableFrom(field.FieldType)) + { + cs_call_lua.AddRange(field.GetValue(null) as IEnumerable); + } + } + + var props = type.GetProperties(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < props.Length; i++) + { + var prop = props[i]; + if (prop.IsDefined(typeof(CSharpCallLuaAttribute), false) && (typeof(IEnumerable)).IsAssignableFrom(prop.PropertyType)) + { + cs_call_lua.AddRange(prop.GetValue(null, null) as IEnumerable); + } + } + } + IEnumerable> groups = (from type in cs_call_lua + where typeof(Delegate).IsAssignableFrom(type) && type != typeof(Delegate) && type != typeof(MulticastDelegate) + where !type.GetMethod("Invoke").GetParameters().Any(paramInfo => paramInfo.ParameterType.IsGenericParameter) + select type).GroupBy(t => t.GetMethod("Invoke"), new CompareByArgRet()); + + ce.SetGenInterfaces(cs_call_lua.Where(type=>type.IsInterface()).ToList()); + delegate_birdge_type = ce.EmitDelegateImpl(groups); + } +#endif + } + +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 + CodeEmit ce = new CodeEmit(); +#endif + MethodInfo[] genericAction = null; + MethodInfo[] genericFunc = null; + Dictionary> delegateCreatorCache + = new Dictionary>(); + + Func getCreatorUsingGeneric(DelegateBridgeBase bridge, Type delegateType, MethodInfo delegateMethod) + { + Func genericDelegateCreator = null; + + if (genericAction == null) + { + var methods = typeof(DelegateBridge).GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly); + genericAction = methods.Where(m => m.Name == "Action").OrderBy(m => m.GetParameters().Length).ToArray(); + genericFunc = methods.Where(m => m.Name == "Func").OrderBy(m => m.GetParameters().Length).ToArray(); + } + if (genericAction.Length != 5 || genericFunc.Length != 5) + { + return null; + } + var parameters = delegateMethod.GetParameters(); + if ((delegateMethod.ReturnType.IsValueType() && delegateMethod.ReturnType != typeof(void)) || parameters.Length > 4) + { + genericDelegateCreator = (x) => null; + } + else + { + foreach (var pinfo in parameters) + { + if (pinfo.ParameterType.IsValueType() || pinfo.IsOut || pinfo.ParameterType.IsByRef) + { + genericDelegateCreator = (x) => null; + break; + } + } + if (genericDelegateCreator == null) + { + var typeArgs = parameters.Select(pinfo => pinfo.ParameterType); + MethodInfo genericMethodInfo = null; + if (delegateMethod.ReturnType == typeof(void)) + { + genericMethodInfo = genericAction[parameters.Length]; + } + else + { + genericMethodInfo = genericFunc[parameters.Length]; + typeArgs = typeArgs.Concat(new Type[] { delegateMethod.ReturnType }); + } + if (genericMethodInfo.IsGenericMethodDefinition) + { + var methodInfo = genericMethodInfo.MakeGenericMethod(typeArgs.ToArray()); + genericDelegateCreator = (o) => +#if !UNITY_WSA || UNITY_EDITOR + Delegate.CreateDelegate(delegateType, o, methodInfo); +#else + methodInfo.CreateDelegate(delegateType, bridge); +#endif + } + else + { + genericDelegateCreator = (o) => +#if !UNITY_WSA || UNITY_EDITOR + Delegate.CreateDelegate(delegateType, o, genericMethodInfo); +#else + genericMethodInfo.CreateDelegate(delegateType, o); +#endif + } + } + } + + return genericDelegateCreator; + } + + Delegate getDelegate(DelegateBridgeBase bridge, Type delegateType) + { + Delegate ret = bridge.GetDelegateByType(delegateType); + + if (ret != null) + { + return ret; + } + + if (delegateType == typeof(Delegate) || delegateType == typeof(MulticastDelegate)) + { + return null; + } + + Func delegateCreator; + if (!delegateCreatorCache.TryGetValue(delegateType, out delegateCreator)) + { + // get by parameters + MethodInfo delegateMethod = delegateType.GetMethod("Invoke"); + var methods = bridge.GetType().GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly).Where(m => !m.IsGenericMethodDefinition && (m.Name.StartsWith("__Gen_Delegate_Imp") || m.Name == "Action")).ToArray(); + for (int i = 0; i < methods.Length; i++) + { + if (!methods[i].IsConstructor && Utils.IsParamsMatch(delegateMethod, methods[i])) + { + var foundMethod = methods[i]; + delegateCreator = (o) => +#if !UNITY_WSA || UNITY_EDITOR + Delegate.CreateDelegate(delegateType, o, foundMethod); +#else + foundMethod.CreateDelegate(delegateType, o); +#endif + break; + } + } + + if (delegateCreator == null) + { + delegateCreator = getCreatorUsingGeneric(bridge, delegateType, delegateMethod); + } + delegateCreatorCache.Add(delegateType, delegateCreator); + } + + ret = delegateCreator(bridge); + if (ret != null) + { + return ret; + } + + throw new InvalidCastException("This type must add to CSharpCallLua: " + delegateType.GetFriendlyName()); + } + Dictionary delegate_bridges = new Dictionary(); + public object CreateDelegateBridge(RealStatePtr L, Type delegateType, int idx) + { + LuaAPI.lua_pushvalue(L, idx); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + if (!LuaAPI.lua_isnil(L, -1)) + { + int referenced = LuaAPI.xlua_tointeger(L, -1); + LuaAPI.lua_pop(L, 1); + + if (delegate_bridges[referenced].IsAlive) + { + if (delegateType == null) + { + return delegate_bridges[referenced].Target; + } + DelegateBridgeBase exist_bridge = delegate_bridges[referenced].Target as DelegateBridgeBase; + Delegate exist_delegate; + if (exist_bridge.TryGetDelegate(delegateType, out exist_delegate)) + { + return exist_delegate; + } + else + { + exist_delegate = getDelegate(exist_bridge, delegateType); + exist_bridge.AddDelegate(delegateType, exist_delegate); + return exist_delegate; + } + } + } + else + { + LuaAPI.lua_pop(L, 1); + } + + LuaAPI.lua_pushvalue(L, idx); + int reference = LuaAPI.luaL_ref(L); + LuaAPI.lua_pushvalue(L, idx); + LuaAPI.lua_pushnumber(L, reference); + LuaAPI.lua_rawset(L, LuaIndexes.LUA_REGISTRYINDEX); + DelegateBridgeBase bridge; + try + { +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 + if (!DelegateBridge.Gen_Flag) + { + bridge = Activator.CreateInstance(delegate_birdge_type, new object[] { reference, luaEnv }) as DelegateBridgeBase; + } + else +#endif + { + bridge = new DelegateBridge(reference, luaEnv); + } + } + catch(Exception e) + { + LuaAPI.lua_pushvalue(L, idx); + LuaAPI.lua_pushnil(L); + LuaAPI.lua_rawset(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.lua_pushnil(L); + LuaAPI.xlua_rawseti(L, LuaIndexes.LUA_REGISTRYINDEX, reference); + throw e; + } + if (delegateType == null) + { + delegate_bridges[reference] = new WeakReference(bridge); + return bridge; + } + try { + var ret = getDelegate(bridge, delegateType); + bridge.AddDelegate(delegateType, ret); + delegate_bridges[reference] = new WeakReference(bridge); + return ret; + } + catch(Exception e) + { + bridge.Dispose(); + throw e; + } + } + + public bool AllDelegateBridgeReleased() + { + foreach (var kv in delegate_bridges) + { + if (kv.Value.IsAlive) + { + return false; + } + } + return true; + } + + public void ReleaseLuaBase(RealStatePtr L, int reference, bool is_delegate) + { + if(is_delegate) + { + LuaAPI.xlua_rawgeti(L, LuaIndexes.LUA_REGISTRYINDEX, reference); + if (LuaAPI.lua_isnil(L, -1)) + { + LuaAPI.lua_pop(L, 1); + } + else + { + LuaAPI.lua_pushvalue(L, -1); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + if (LuaAPI.lua_type(L, -1) == LuaTypes.LUA_TNUMBER && LuaAPI.xlua_tointeger(L, -1) == reference) // + { + //UnityEngine.Debug.LogWarning("release delegate ref = " + luaReference); + LuaAPI.lua_pop(L, 1);// pop LUA_REGISTRYINDEX[func] + LuaAPI.lua_pushnil(L); + LuaAPI.lua_rawset(L, LuaIndexes.LUA_REGISTRYINDEX); // LUA_REGISTRYINDEX[func] = nil + } + else //another Delegate ref the function before the GC tick + { + LuaAPI.lua_pop(L, 2); // pop LUA_REGISTRYINDEX[func] & func + } + } + + LuaAPI.lua_unref(L, reference); + delegate_bridges.Remove(reference); + } + else + { + LuaAPI.lua_unref(L, reference); + } + } + + public object CreateInterfaceBridge(RealStatePtr L, Type interfaceType, int idx) + { + Func creator; + + if (!interfaceBridgeCreators.TryGetValue(interfaceType, out creator)) + { +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 + var bridgeType = ce.EmitInterfaceImpl(interfaceType); + creator = (int reference, LuaEnv luaenv) => + { + return Activator.CreateInstance(bridgeType, new object[] { reference, luaEnv }) as LuaBase; + }; + interfaceBridgeCreators.Add(interfaceType, creator); +#else + throw new InvalidCastException("This type must add to CSharpCallLua: " + interfaceType); +#endif + } + LuaAPI.lua_pushvalue(L, idx); + return creator(LuaAPI.luaL_ref(L), luaEnv); + } + + int common_array_meta = -1; + public void CreateArrayMetatable(RealStatePtr L) + { + Utils.BeginObjectRegister(null, L, this, 0, 0, 1, 0, common_array_meta); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "Length", StaticLuaCallbacks.ArrayLength); + Utils.EndObjectRegister(null, L, this, null, null, + typeof(System.Array), StaticLuaCallbacks.ArrayIndexer, StaticLuaCallbacks.ArrayNewIndexer); + } + + int common_delegate_meta = -1; + public void CreateDelegateMetatable(RealStatePtr L) + { + Utils.BeginObjectRegister(null, L, this, 3, 0, 0, 0, common_delegate_meta); + Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__call", StaticLuaCallbacks.DelegateCall); + Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", StaticLuaCallbacks.DelegateCombine); + Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", StaticLuaCallbacks.DelegateRemove); + Utils.EndObjectRegister(null, L, this, null, null, + typeof(System.MulticastDelegate), null, null); + } + + int enumerable_pairs_func = -1; + + internal void CreateEnumerablePairs(RealStatePtr L) + { + LuaFunction func = luaEnv.DoString(@" + return function(obj) + local isKeyValuePair + local function lua_iter(cs_iter, k) + if cs_iter:MoveNext() then + local current = cs_iter.Current + if isKeyValuePair == nil then + if type(current) == 'userdata' then + local t = current:GetType() + isKeyValuePair = t.Name == 'KeyValuePair`2' and t.Namespace == 'System.Collections.Generic' + else + isKeyValuePair = false + end + --print(current, isKeyValuePair) + end + if isKeyValuePair then + return current.Key, current.Value + else + return k + 1, current + end + end + end + return lua_iter, obj:GetEnumerator(), -1 + end + ")[0] as LuaFunction; + func.push(L); + enumerable_pairs_func = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + func.Dispose(); + } + + public void OpenLib(RealStatePtr L) + { + if (0 != LuaAPI.xlua_getglobal(L, "xlua")) + { + throw new Exception("call xlua_getglobal fail!" + LuaAPI.lua_tostring(L, -1)); + } + LuaAPI.xlua_pushasciistring(L, "import_type"); + LuaAPI.lua_pushstdcallcfunction(L,importTypeFunction); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "import_generic_type"); + LuaAPI.lua_pushstdcallcfunction(L, StaticLuaCallbacks.ImportGenericType); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "cast"); + LuaAPI.lua_pushstdcallcfunction(L, castFunction); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "load_assembly"); + LuaAPI.lua_pushstdcallcfunction(L,loadAssemblyFunction); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "access"); + LuaAPI.lua_pushstdcallcfunction(L, StaticLuaCallbacks.XLuaAccess); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "private_accessible"); + LuaAPI.lua_pushstdcallcfunction(L, StaticLuaCallbacks.XLuaPrivateAccessible); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "metatable_operation"); + LuaAPI.lua_pushstdcallcfunction(L, StaticLuaCallbacks.XLuaMetatableOperation); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "tofunction"); + LuaAPI.lua_pushstdcallcfunction(L, StaticLuaCallbacks.ToFunction); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "get_generic_method"); + LuaAPI.lua_pushstdcallcfunction(L, StaticLuaCallbacks.GetGenericMethod); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "release"); + LuaAPI.lua_pushstdcallcfunction(L, StaticLuaCallbacks.ReleaseCsObject); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + + LuaAPI.lua_createtable(L, 1, 4); // 4 for __gc, __tostring, __index, __newindex + common_array_meta = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.lua_createtable(L, 1, 4); // 4 for __gc, __tostring, __index, __newindex + common_delegate_meta = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + } + + internal void createFunctionMetatable(RealStatePtr L) + { + LuaAPI.lua_newtable(L); + LuaAPI.xlua_pushasciistring(L,"__gc"); + LuaAPI.lua_pushstdcallcfunction(L,metaFunctions.GcMeta); + LuaAPI.lua_rawset(L,-3); + LuaAPI.lua_pushlightuserdata(L, LuaAPI.xlua_tag()); + LuaAPI.lua_pushnumber(L, 1); + LuaAPI.lua_rawset(L, -3); + + LuaAPI.lua_pushvalue(L, -1); + int type_id = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.lua_pushnumber(L, type_id); + LuaAPI.xlua_rawseti(L, -2, 1); + LuaAPI.lua_pop(L, 1); + + typeIdMap.Add(typeof(LuaCSFunction), type_id); + } + + internal Type FindType(string className, bool isQualifiedName = false) + { + foreach (Assembly assembly in assemblies) + { + Type klass = assembly.GetType(className); + + if (klass!=null) + { + return klass; + } + } + int p1 = className.IndexOf('['); + if (p1 > 0 && !isQualifiedName) + { + string qualified_name = className.Substring(0, p1 + 1); + string[] generic_params = className.Substring(p1 + 1, className.Length - qualified_name.Length - 1).Split(','); + for(int i = 0; i < generic_params.Length; i++) + { + Type generic_param = FindType(generic_params[i].Trim()); + if (generic_param == null) + { + return null; + } + if (i != 0 ) + { + qualified_name += ", "; + } + qualified_name = qualified_name + "[" + generic_param.AssemblyQualifiedName + "]"; + } + qualified_name += "]"; + return FindType(qualified_name, true); + } + return null; + } + + bool hasMethod(Type type, string methodName) + { + foreach (var method in type.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static)) + { + if (method.Name == methodName) + { + return true; + } + } + return false; + } + + internal void collectObject(int obj_index_to_collect) + { + object o; + + if (objects.TryGetValue(obj_index_to_collect, out o)) + { + objects.Remove(obj_index_to_collect); + + if (o != null) + { + int obj_index; + //lua gc是先把weak table移除后再调用__gc,这期间同一个对象可能再次push到lua,关联到新的index + bool is_enum = o.GetType().IsEnum(); + if ((is_enum ? enumMap.TryGetValue(o, out obj_index) : reverseMap.TryGetValue(o, out obj_index)) + && obj_index == obj_index_to_collect) + { + if (is_enum) + { + enumMap.Remove(o); + } + else + { + reverseMap.Remove(o); + } + } + } + } + } + + int addObject(object obj, bool is_valuetype, bool is_enum) + { + int index = objects.Add(obj); + if (is_enum) + { + enumMap[obj] = index; + } + else if (!is_valuetype) + { + reverseMap[obj] = index; + } + + return index; + } + + internal object GetObject(RealStatePtr L,int index) + { + return (objectCasters.GetCaster(typeof(object))(L, index, null)); + } + + public Type GetTypeOf(RealStatePtr L, int idx) + { + Type type = null; + int type_id = LuaAPI.xlua_gettypeid(L, idx); + if (type_id != -1) + { + typeMap.TryGetValue(type_id, out type); + } + return type; + } + + public bool Assignable(RealStatePtr L, int index) + { + return Assignable(L, index, typeof(T)); + } + + public bool Assignable(RealStatePtr L, int index, Type type) + { + if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) // 快路径 + { + int udata = LuaAPI.xlua_tocsobj_safe(L, index); + object obj; + if (udata != -1 && objects.TryGetValue(udata, out obj)) + { + RawObject rawObject = obj as RawObject; + if (rawObject != null) + { + obj = rawObject.Target; + } + if (obj == null) + { + return !type.IsValueType(); + } + return type.IsAssignableFrom(obj.GetType()); + } + + int type_id = LuaAPI.xlua_gettypeid(L, index); + Type type_of_struct; + if (type_id != -1 && typeMap.TryGetValue(type_id, out type_of_struct)) // is struct + { + return type.IsAssignableFrom(type_of_struct); + } + } + + return objectCheckers.GetChecker(type)(L, index); + } + + public object GetObject(RealStatePtr L, int index, Type type) + { + int udata = LuaAPI.xlua_tocsobj_safe(L, index); + + if (udata != -1) + { + object obj = objects.Get(udata); + RawObject rawObject = obj as RawObject; + return rawObject == null ? obj : rawObject.Target; + } + else + { + if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) + { + GetCSObject get; + int type_id = LuaAPI.xlua_gettypeid(L, index); + if (type_id != -1 && type_id == decimal_type_id) + { + decimal d; + Get(L, index, out d); + return d; + } + Type type_of_struct; + if (type_id != -1 && typeMap.TryGetValue(type_id, out type_of_struct) && type.IsAssignableFrom(type_of_struct) && custom_get_funcs.TryGetValue(type, out get)) + { + return get(L, index); + } + } + return (objectCasters.GetCaster(type)(L, index, null)); + } + } + + public void Get(RealStatePtr L, int index, out T v) + { + Func get_func; + if (tryGetGetFuncByType(typeof(T), out get_func)) + { + v = get_func(L, index); + } + else + { + v = (T)GetObject(L, index, typeof(T)); + } + } + + public void PushByType(RealStatePtr L, T v) + { + Action push_func; + if (tryGetPushFuncByType(typeof(T), out push_func)) + { + push_func(L, v); + } + else + { + PushAny(L, v); + } + } + +#if GENERIC_SHARING + public T GetByType(RealStatePtr L, int index) + { + Func get_func; + if (tryGetGetFuncByType(typeof(T), out get_func)) + { + return get_func(L, index); + } + else + { + return (T)GetObject(L, index, typeof(T)); + } + } +#endif + + public T[] GetParams(RealStatePtr L, int index) + { + T[] ret = new T[Math.Max(LuaAPI.lua_gettop(L) - index + 1, 0)]; + for(int i = 0; i < ret.Length; i++) + { + Get(L, index + i, out ret[i]); + } + return ret; + } + + public Array GetParams(RealStatePtr L, int index, Type type) //反射版本 + { + Array ret = Array.CreateInstance(type, Math.Max(LuaAPI.lua_gettop(L) - index + 1, 0)); //这个函数,长度为0的话,返回null + for (int i = 0; i < ret.Length; i++) + { + ret.SetValue(GetObject(L, index + i, type), i); + } + return ret; + } +#if UNITY_EDITOR || XLUA_GENERAL + public void PushParams(RealStatePtr L, Array ary) + { + if (ary != null) + { + for (int i = 0; i < ary.Length; i++) + { + PushAny(L, ary.GetValue(i)); + } + } + } +#endif + + public T GetDelegate(RealStatePtr L, int index) where T :class + { + + if (LuaAPI.lua_isfunction(L, index)) + { + return CreateDelegateBridge(L, typeof(T), index) as T; + } + else if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) + { + return (T)SafeGetCSObj(L, index); + } + else + { + return null; + } + } + + Dictionary typeIdMap = new Dictionary(); + + //only store the type id to type map for struct + Dictionary typeMap = new Dictionary(); + + public int GetTypeId(RealStatePtr L, Type type) + { + bool isFirst; + return getTypeId(L, type, out isFirst); + } + + HashSet privateAccessibleFlags = new HashSet(); + + public void PrivateAccessible(RealStatePtr L, Type type) + { + if (!privateAccessibleFlags.Contains(type)) //未处理 + { + privateAccessibleFlags.Add(type); + if (typeIdMap.ContainsKey(type)) //loaded + { + Utils.MakePrivateAccessible(L, type); + } + } + } + + internal int getTypeId(RealStatePtr L, Type type, out bool is_first, LOGLEVEL log_level = LOGLEVEL.WARN) + { + int type_id; + is_first = false; + if (!typeIdMap.TryGetValue(type, out type_id)) // no reference + { + if (type.IsArray) + { + if (common_array_meta == -1) throw new Exception("Fatal Exception! Array Metatable not inited!"); + return common_array_meta; + } + if (typeof(MulticastDelegate).IsAssignableFrom(type)) + { + if (common_delegate_meta == -1) throw new Exception("Fatal Exception! Delegate Metatable not inited!"); + TryDelayWrapLoader(L, type); + return common_delegate_meta; + } + + is_first = true; + Type alias_type = null; + aliasCfg.TryGetValue(type, out alias_type); + LuaAPI.luaL_getmetatable(L, alias_type == null ? type.FullName : alias_type.FullName); + + if (LuaAPI.lua_isnil(L, -1)) //no meta yet, try to use reflection meta + { + LuaAPI.lua_pop(L, 1); + + if (TryDelayWrapLoader(L, alias_type == null ? type : alias_type)) + { + LuaAPI.luaL_getmetatable(L, alias_type == null ? type.FullName : alias_type.FullName); + } + else + { + throw new Exception("Fatal: can not load metatable of type:" + type); + } + } + + //循环依赖,自身依赖自己的class,比如有个自身类型的静态readonly对象。 + if (typeIdMap.TryGetValue(type, out type_id)) + { + LuaAPI.lua_pop(L, 1); + } + else + { + if (type.IsEnum()) + { + LuaAPI.xlua_pushasciistring(L, "__band"); + LuaAPI.lua_pushstdcallcfunction(L, metaFunctions.EnumAndMeta); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "__bor"); + LuaAPI.lua_pushstdcallcfunction(L, metaFunctions.EnumOrMeta); + LuaAPI.lua_rawset(L, -3); + } + if (typeof(IEnumerable).IsAssignableFrom(type)) + { + LuaAPI.xlua_pushasciistring(L, "__pairs"); + LuaAPI.lua_getref(L, enumerable_pairs_func); + LuaAPI.lua_rawset(L, -3); + } + LuaAPI.lua_pushvalue(L, -1); + type_id = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.lua_pushnumber(L, type_id); + LuaAPI.xlua_rawseti(L, -2, 1); + LuaAPI.lua_pop(L, 1); + + if (type.IsValueType()) + { + typeMap.Add(type_id, type); + } + + typeIdMap.Add(type, type_id); + } + } + return type_id; + } + + void pushPrimitive(RealStatePtr L, object o) + { + if (o is sbyte || o is byte || o is short || o is ushort || + o is int) + { + int i = Convert.ToInt32(o); + LuaAPI.xlua_pushinteger(L, i); + } + else if (o is uint) + { + LuaAPI.xlua_pushuint(L, (uint)o); + } + else if (o is float || o is double) + { + double d = Convert.ToDouble(o); + LuaAPI.lua_pushnumber(L, d); + } + else if (o is IntPtr) + { + LuaAPI.lua_pushlightuserdata(L, (IntPtr)o); + } + else if (o is char) + { + LuaAPI.xlua_pushinteger(L, (char)o); + } + else if (o is long) + { + LuaAPI.lua_pushint64(L, Convert.ToInt64(o)); + } + else if (o is ulong) + { + LuaAPI.lua_pushuint64(L, Convert.ToUInt64(o)); + } + else if (o is bool) + { + bool b = (bool)o; + LuaAPI.lua_pushboolean(L, b); + } + else + { + throw new Exception("No support type " + o.GetType()); + } + } + + public void PushAny(RealStatePtr L, object o) + { + if (o == null) + { + LuaAPI.lua_pushnil(L); + return; + } + + Type type = o.GetType(); + if (type.IsPrimitive()) + { + pushPrimitive(L, o); + } + else if (o is string) + { + LuaAPI.lua_pushstring(L, o as string); + } + else if (type == typeof(byte[])) + { + LuaAPI.lua_pushstring(L, o as byte[]); + } + else if (o is decimal) + { + PushDecimal(L, (decimal)o); + } + else if (o is LuaBase) + { + ((LuaBase)o).push(L); + } + else if (o is LuaCSFunction) + { + Push(L, o as LuaCSFunction); + } + else if (o is ValueType) + { + PushCSObject push; + if (custom_push_funcs.TryGetValue(o.GetType(), out push)) + { + push(L, o); + } + else + { + Push(L, o); + } + } + else + { + Push(L, o); + } + } + + Dictionary enumMap = new Dictionary(); + + public int TranslateToEnumToTop(RealStatePtr L, Type type, int idx) + { + object res = null; + LuaTypes lt = (LuaTypes)LuaAPI.lua_type(L, idx); + if (lt == LuaTypes.LUA_TNUMBER) + { + int ival = (int)LuaAPI.lua_tonumber(L, idx); + res = Enum.ToObject(type, ival); + } + else if (lt == LuaTypes.LUA_TSTRING) + { + string sflags = LuaAPI.lua_tostring(L, idx); + res = Enum.Parse(type, sflags); + } + else + { + return LuaAPI.luaL_error(L, "#1 argument must be a integer or a string"); + } + PushAny(L, res); + return 1; + } + + public void Push(RealStatePtr L, LuaCSFunction o) + { + if (Utils.IsStaticPInvokeCSFunction(o)) + { + LuaAPI.lua_pushstdcallcfunction(L, o); + } + else + { + Push(L, (object)o); + LuaAPI.lua_pushstdcallcfunction(L, metaFunctions.StaticCSFunctionWraper, 1); + } + } + + public void Push(RealStatePtr L, LuaBase o) + { + if (o == null) + { + LuaAPI.lua_pushnil(L); + } + else + { + o.push(L); + } + } + + public void Push(RealStatePtr L, object o) + { + if (o == null) + { + LuaAPI.lua_pushnil(L); + return; + } + + int index = -1; + Type type = o.GetType(); +#if !UNITY_WSA || UNITY_EDITOR + bool is_enum = type.IsEnum; + bool is_valuetype = type.IsValueType; +#else + bool is_enum = type.GetTypeInfo().IsEnum; + bool is_valuetype = type.GetTypeInfo().IsValueType; +#endif + bool needcache = !is_valuetype || is_enum; + if (needcache && (is_enum ? enumMap.TryGetValue(o, out index) : reverseMap.TryGetValue(o, out index))) + { + if (LuaAPI.xlua_tryget_cachedud(L, index, cacheRef) == 1) + { + return; + } + //这里实在太经典了,weaktable先删除,然后GC会延迟调用,当index会循环利用的时候,不注释这行将会导致重复释放 + //collectObject(index); + } + + bool is_first; + int type_id = getTypeId(L, type, out is_first); + + //如果一个type的定义含本身静态readonly实例时,getTypeId会push一个实例,这时候应该用这个实例 + if (is_first && needcache && (is_enum ? enumMap.TryGetValue(o, out index) : reverseMap.TryGetValue(o, out index))) + { + if (LuaAPI.xlua_tryget_cachedud(L, index, cacheRef) == 1) + { + return; + } + } + + index = addObject(o, is_valuetype, is_enum); + LuaAPI.xlua_pushcsobj(L, index, type_id, needcache, cacheRef); + } + + public void PushObject(RealStatePtr L, object o, int type_id) + { + if (o == null) + { + LuaAPI.lua_pushnil(L); + return; + } + + int index = -1; + if (reverseMap.TryGetValue(o, out index)) + { + if (LuaAPI.xlua_tryget_cachedud(L, index, cacheRef) == 1) + { + return; + } + } + + index = addObject(o, false, false); + + LuaAPI.xlua_pushcsobj(L, index, type_id, true, cacheRef); + } + + public void Update(RealStatePtr L, int index, object obj) + { + int udata = LuaAPI.xlua_tocsobj_fast(L, index); + + if (udata != -1) + { + objects.Replace(udata, obj); + } + else + { + UpdateCSObject update; + if (custom_update_funcs.TryGetValue(obj.GetType(), out update)) + { + update(L, index, obj); + } + else + { + throw new Exception("can not update [" + obj + "]"); + } + } + } + + private object getCsObj(RealStatePtr L, int index, int udata) + { + object obj; + if (udata == -1) + { + if (LuaAPI.lua_type(L, index) != LuaTypes.LUA_TUSERDATA) return null; + + Type type = GetTypeOf(L, index); + if (type == typeof(decimal)) + { + decimal v; + Get(L, index, out v); + return v; + } + GetCSObject get; + if (type != null && custom_get_funcs.TryGetValue(type, out get)) + { + return get(L, index); + } + else + { + return null; + } + } + else if (objects.TryGetValue(udata, out obj)) + { +#if !UNITY_5 && !XLUA_GENERAL && !UNITY_2017 && !UNITY_2017_1_OR_NEWER && !UNITY_2018 + if (obj != null && obj is UnityEngine.Object && ((obj as UnityEngine.Object) == null)) + { + //throw new UnityEngine.MissingReferenceException("The object of type '"+ obj.GetType().Name +"' has been destroyed but you are still trying to access it."); + return null; + } +#endif + return obj; + } + return null; + } + + internal object SafeGetCSObj(RealStatePtr L, int index) + { + return getCsObj(L, index, LuaAPI.xlua_tocsobj_safe(L, index)); + } + + internal object FastGetCSObj(RealStatePtr L,int index) + { + return getCsObj(L, index, LuaAPI.xlua_tocsobj_fast(L,index)); + } + + internal void ReleaseCSObj(RealStatePtr L, int index) + { + int udata = LuaAPI.xlua_tocsobj_safe(L, index); + if (udata != -1) + { + object o = objects.Replace(udata, null); + if (o != null && reverseMap.ContainsKey(o)) + { + reverseMap.Remove(o); + } + } + } + + List fix_cs_functions = new List(); + + internal LuaCSFunction GetFixCSFunction(int index) + { + return fix_cs_functions[index]; + } + + internal void PushFixCSFunction(RealStatePtr L, LuaCSFunction func) + { + if (func == null) + { + LuaAPI.lua_pushnil(L); + } + else + { + LuaAPI.xlua_pushinteger(L, fix_cs_functions.Count); + fix_cs_functions.Add(func); + LuaAPI.lua_pushstdcallcfunction(L, metaFunctions.FixCSFunctionWraper, 1); + } + } + +#if GEN_CODE_MINIMIZE + CSharpWrapper[] csharpWrapper = new CSharpWrapper[0]; + int csharpWrapperSize = 0; + + internal int CallCSharpWrapper(RealStatePtr L, int funcidx, int top) + { + return csharpWrapper[funcidx](L, top); + } + + void ensureCSharpWrapperCapacity(int min) + { + if (csharpWrapper.Length < min) + { + int num = (csharpWrapper.Length == 0) ? 4 : (csharpWrapper.Length * 2); + if (num > 2146435071) + { + num = 2146435071; + } + if (num < min) + { + num = min; + } + + var array = new CSharpWrapper[num]; + Array.Copy(csharpWrapper, 0, array, 0, csharpWrapper.Length); + csharpWrapper = array; + } + } + + internal void PushCSharpWrapper(RealStatePtr L, CSharpWrapper func) + { + if (func == null) + { + LuaAPI.lua_pushnil(L); + } + else + { + LuaAPI.xlua_push_csharp_wrapper(L, csharpWrapperSize); + ensureCSharpWrapperCapacity(csharpWrapperSize + 1); + csharpWrapper[csharpWrapperSize++] = func; + } + } +#endif + + internal object[] popValues(RealStatePtr L,int oldTop) + { + int newTop=LuaAPI.lua_gettop(L); + if(oldTop==newTop) + { + return null; + } + else + { + ArrayList returnValues=new ArrayList(); + for(int i=oldTop+1;i<=newTop;i++) + { + returnValues.Add(GetObject(L,i)); + } + LuaAPI.lua_settop(L,oldTop); + return returnValues.ToArray(); + } + } + + internal object[] popValues(RealStatePtr L,int oldTop,Type[] popTypes) + { + int newTop=LuaAPI.lua_gettop(L); + if(oldTop==newTop) + { + return null; + } + else + { + int iTypes; + ArrayList returnValues=new ArrayList(); + if(popTypes[0] == typeof(void)) + iTypes=1; + else + iTypes=0; + for(int i=oldTop+1;i<=newTop;i++) + { + returnValues.Add(GetObject(L,i,popTypes[iTypes])); + iTypes++; + } + LuaAPI.lua_settop(L,oldTop); + return returnValues.ToArray(); + } + } + + public delegate void PushCSObject(RealStatePtr L, object obj); + public delegate object GetCSObject(RealStatePtr L, int idx); + public delegate void UpdateCSObject(RealStatePtr L, int idx, object obj); + + private Dictionary custom_push_funcs = new Dictionary(); + private Dictionary custom_get_funcs = new Dictionary(); + private Dictionary custom_update_funcs = new Dictionary(); + + void registerCustomOp(Type type, PushCSObject push, GetCSObject get, UpdateCSObject update) + { + if (push != null) custom_push_funcs.Add(type, push); + if (get != null) custom_get_funcs.Add(type, get); + if (update != null) custom_update_funcs.Add(type, update); + } + + public bool HasCustomOp(Type type) + { + return custom_push_funcs.ContainsKey(type); + } + + private Dictionary push_func_with_type = null; + + bool tryGetPushFuncByType(Type type, out T func) where T : class + { + if (push_func_with_type == null) + { + push_func_with_type = new Dictionary() + { + {typeof(int), new Action(LuaAPI.xlua_pushinteger) }, + {typeof(double), new Action(LuaAPI.lua_pushnumber) }, + {typeof(string), new Action(LuaAPI.lua_pushstring) }, + {typeof(byte[]), new Action(LuaAPI.lua_pushstring) }, + {typeof(bool), new Action(LuaAPI.lua_pushboolean) }, + {typeof(long), new Action(LuaAPI.lua_pushint64) }, + {typeof(ulong), new Action(LuaAPI.lua_pushuint64) }, + {typeof(IntPtr), new Action(LuaAPI.lua_pushlightuserdata) }, + {typeof(decimal), new Action(PushDecimal) }, + {typeof(byte), new Action((L, v) => LuaAPI.xlua_pushinteger(L, v)) }, + {typeof(sbyte), new Action((L, v) => LuaAPI.xlua_pushinteger(L, v)) }, + {typeof(char), new Action((L, v) => LuaAPI.xlua_pushinteger(L, v)) }, + {typeof(short), new Action((L, v) => LuaAPI.xlua_pushinteger(L, v)) }, + {typeof(ushort), new Action((L, v) => LuaAPI.xlua_pushinteger(L, v)) }, + {typeof(uint), new Action(LuaAPI.xlua_pushuint) }, + {typeof(float), new Action((L, v) => LuaAPI.lua_pushnumber(L, v)) }, + }; + } + + Delegate obj; + if (push_func_with_type.TryGetValue(type, out obj)) + { + func = obj as T; + return true; + } + else + { + func = null; + return false; + } + } + + private Dictionary get_func_with_type = null; + + bool tryGetGetFuncByType(Type type, out T func) where T : class + { + if (get_func_with_type == null) + { + get_func_with_type = new Dictionary() + { + {typeof(int), new Func(LuaAPI.xlua_tointeger) }, + {typeof(double), new Func(LuaAPI.lua_tonumber) }, + {typeof(string), new Func(LuaAPI.lua_tostring) }, + {typeof(byte[]), new Func(LuaAPI.lua_tobytes) }, + {typeof(bool), new Func(LuaAPI.lua_toboolean) }, + {typeof(long), new Func(LuaAPI.lua_toint64) }, + {typeof(ulong), new Func(LuaAPI.lua_touint64) }, + {typeof(IntPtr), new Func(LuaAPI.lua_touserdata) }, + {typeof(decimal), new Func((L, idx) => { + decimal ret; + Get(L, idx, out ret); + return ret; + }) }, + {typeof(byte), new Func((L, idx) => (byte)LuaAPI.xlua_tointeger(L, idx) ) }, + {typeof(sbyte), new Func((L, idx) => (sbyte)LuaAPI.xlua_tointeger(L, idx) ) }, + {typeof(char), new Func((L, idx) => (char)LuaAPI.xlua_tointeger(L, idx) ) }, + {typeof(short), new Func((L, idx) => (short)LuaAPI.xlua_tointeger(L, idx) ) }, + {typeof(ushort), new Func((L, idx) => (ushort)LuaAPI.xlua_tointeger(L, idx) ) }, + {typeof(uint), new Func(LuaAPI.xlua_touint) }, + {typeof(float), new Func((L, idx) => (float)LuaAPI.lua_tonumber(L, idx) ) }, + }; + } + + Delegate obj; + if (get_func_with_type.TryGetValue(type, out obj)) + { + func = obj as T; + return true; + } + else + { + func = null; + return false; + } + } + + + public delegate void GetFunc(RealStatePtr L, int idx, out T val); + + public void RegisterPushAndGetAndUpdate(Action push, GetFunc get, Action update) + { + Type type = typeof(T); + Action org_push; + Func org_get; + if (tryGetPushFuncByType(type, out org_push) || tryGetGetFuncByType(type, out org_get)) + { + throw new InvalidOperationException("push or get of " + type + " has register!"); + } + push_func_with_type.Add(type, push); + get_func_with_type.Add(type, new Func((L, idx) => { + T ret; + get(L, idx, out ret); + return ret; + })); + + registerCustomOp(type, + (RealStatePtr L, object obj) => { + push(L, (T)obj); + }, + (RealStatePtr L, int idx) => { + T val; + get(L, idx, out val); + return val; + }, + (RealStatePtr L, int idx, object obj) => { + update(L, idx, (T)obj); + } + ); + } + + public void RegisterCaster(GetFunc get) + { + objectCasters.AddCaster(typeof(T), (L, idx, o) => + { + T obj; + get(L, idx, out obj); + return obj; + }); + } + + int decimal_type_id = -1; + + public void PushDecimal(RealStatePtr L, decimal val) + { + if (decimal_type_id == -1) + { + bool is_first; + decimal_type_id = getTypeId(L, typeof(decimal), out is_first); + } + IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, decimal_type_id); + if (!CopyByValue.Pack(buff, 0, val)) + { + throw new Exception("pack fail for decimal ,value=" + val); + } + + } + + public bool IsDecimal(RealStatePtr L, int index) + { + if (decimal_type_id == -1) return false; + return LuaAPI.xlua_gettypeid(L, index) == decimal_type_id; + } + + public decimal GetDecimal(RealStatePtr L, int index) + { + decimal ret; + Get(L, index, out ret); + return ret; + } + + public void Get(RealStatePtr L, int index, out decimal val) + { + LuaTypes lua_type = LuaAPI.lua_type(L, index); + if (lua_type == LuaTypes.LUA_TUSERDATA) + { + if (LuaAPI.xlua_gettypeid(L, index) != decimal_type_id) + { + throw new Exception("invalid userdata for decimal!"); + } + + IntPtr buff = LuaAPI.lua_touserdata(L, index); + + if (!CopyByValue.UnPack(buff, 0, out val)) + { + throw new Exception("unpack decimal fail!"); + } + } + else if(lua_type == LuaTypes.LUA_TNUMBER) + { + if (LuaAPI.lua_isint64(L, index)) + { + val = (decimal)LuaAPI.lua_toint64(L, index); + } + else + { + val = (decimal)LuaAPI.lua_tonumber(L, index); // has gc + } + } + else + { + throw new Exception("invalid lua value for decimal, LuaType=" + lua_type); + } + } + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslator.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslator.cs.meta new file mode 100644 index 00000000..d31fd456 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2739a08e43b1a0140a65ce5838df39c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslatorPool.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslatorPool.cs new file mode 100644 index 00000000..578726df --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslatorPool.cs @@ -0,0 +1,114 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System.Collections.Generic; +using System; + +namespace XLua +{ + public class ObjectTranslatorPool + { +#if !SINGLE_ENV + private Dictionary translators = new Dictionary(); + RealStatePtr lastPtr = default(RealStatePtr); +#endif + ObjectTranslator lastTranslator = default(ObjectTranslator); + + public static ObjectTranslatorPool Instance + { + get + { + return InternalGlobals.objectTranslatorPool; + } + } + +#if UNITY_EDITOR || XLUA_GENERAL + public static ObjectTranslator FindTranslator(RealStatePtr L) + { + return InternalGlobals.objectTranslatorPool.Find(L); + } +#endif + + public ObjectTranslatorPool () + { + } + + public void Add (RealStatePtr L, ObjectTranslator translator) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (this) +#endif + { + lastTranslator = translator; +#if !SINGLE_ENV + var ptr = LuaAPI.xlua_gl(L); + lastPtr = ptr; + translators.Add(ptr , new WeakReference(translator)); +#endif + } + } + + public ObjectTranslator Find (RealStatePtr L) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (this) +#endif + { +#if SINGLE_ENV + return lastTranslator; +#else + var ptr = LuaAPI.xlua_gl(L); + if (lastPtr == ptr) return lastTranslator; + if (translators.ContainsKey(ptr)) + { + lastPtr = ptr; + lastTranslator = translators[ptr].Target as ObjectTranslator; + return lastTranslator; + } + + return null; +#endif + } + } + + public void Remove (RealStatePtr L) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (this) +#endif + { +#if SINGLE_ENV + lastTranslator = default(ObjectTranslator); +#else + var ptr = LuaAPI.xlua_gl(L); + if (!translators.ContainsKey (ptr)) + return; + + if (lastPtr == ptr) + { + lastPtr = default(RealStatePtr); + lastTranslator = default(ObjectTranslator); + } + + translators.Remove(ptr); +#endif + } + } + } +} + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslatorPool.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslatorPool.cs.meta new file mode 100644 index 00000000..b7c81010 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/ObjectTranslatorPool.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 99e9d2ec09fbb6d4f845ada4862004a1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/RawObject.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/RawObject.cs new file mode 100644 index 00000000..6f99314e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/RawObject.cs @@ -0,0 +1,106 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +namespace XLua +{ + public interface RawObject + { + object Target { get; } + } +} + +namespace XLua.Cast +{ + public class Any : RawObject + { + T mTarget; + + public Any(T i) + { + mTarget = i; + } + + public object Target + { + get + { + return mTarget; + } + } + } + + public class Byte : Any + { + public Byte(byte i) : base(i) + { + } + } + + public class SByte : Any + { + public SByte(sbyte i) : base(i) + { + } + } + + public class Char : Any + { + public Char(char i) : base(i) + { + } + } + + public class Int16 : Any + { + public Int16(short i) : base(i) + { + } + } + + public class UInt16 : Any + { + public UInt16(ushort i) : base(i) + { + } + } + + public class Int32 : Any + { + public Int32(int i) : base(i) + { + } + } + + public class UInt32 : Any + { + public UInt32(uint i) : base(i) + { + } + } + + public class Int64 : Any + { + public Int64(long i) : base(i) + { + } + } + + public class UInt64 : Any + { + public UInt64(ulong i) : base(i) + { + } + } + + public class Float : Any + { + public Float(float i) : base(i) + { + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/RawObject.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/RawObject.cs.meta new file mode 100644 index 00000000..6827021e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/RawObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 870c91eac92d017418f515bd065d45d6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/SignatureLoader.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/SignatureLoader.cs new file mode 100644 index 00000000..f8ee7ec7 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/SignatureLoader.cs @@ -0,0 +1,73 @@ +#if !UNITY_WSA || UNITY_EDITOR +using System.Security.Cryptography; +#else +using Windows.Security.Cryptography; +using Windows.Security.Cryptography.Core; +#endif +using System; + +namespace XLua +{ + public class SignatureLoader + { + private LuaEnv.CustomLoader userLoader; +#if !UNITY_WSA || UNITY_EDITOR + RSACryptoServiceProvider rsa; + SHA1 sha; +#else + AsymmetricKeyAlgorithmProvider rsa; + CryptographicKey key; +#endif + + public SignatureLoader(string publicKey, LuaEnv.CustomLoader loader) + { +#if !UNITY_WSA || UNITY_EDITOR + rsa = new RSACryptoServiceProvider(); + rsa.ImportCspBlob(Convert.FromBase64String(publicKey)); + sha = new SHA1CryptoServiceProvider(); +#else + rsa = AsymmetricKeyAlgorithmProvider.OpenAlgorithm(AsymmetricAlgorithmNames.RsaSignPkcs1Sha1); + key = rsa.ImportPublicKey(CryptographicBuffer.DecodeFromBase64String(publicKey), CryptographicPublicKeyBlobType.Capi1PublicKey); +#endif + userLoader = loader; + } + + + byte[] load_and_verify(ref string filepath) + { + byte[] data = userLoader(ref filepath); + if (data == null) + { + return null; + } + if (data.Length < 128) + { + throw new InvalidProgramException(filepath + " length less than 128!"); + } + + byte[] sig = new byte[128]; + byte[] filecontent = new byte[data.Length - 128]; + Array.Copy(data, sig, 128); + Array.Copy(data, 128, filecontent, 0, filecontent.Length); + +#if !UNITY_WSA || UNITY_EDITOR + if (!rsa.VerifyData(filecontent, sha, sig)) + { + throw new InvalidProgramException(filepath + " has invalid signature!"); + } +#else + if (!CryptographicEngine.VerifySignature(key, CryptographicBuffer.CreateFromByteArray(filecontent), CryptographicBuffer.CreateFromByteArray(sig))) + { + throw new InvalidProgramException(filepath + " has invalid signature!"); + } +#endif + return filecontent; + } + + + public static implicit operator LuaEnv.CustomLoader(SignatureLoader signatureLoader) + { + return signatureLoader.load_and_verify; + } + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/SignatureLoader.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/SignatureLoader.cs.meta new file mode 100644 index 00000000..efe2df86 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/SignatureLoader.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fa18859a2e59a464d83f28284cd1f343 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/StaticLuaCallbacks.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/StaticLuaCallbacks.cs new file mode 100644 index 00000000..4e25a8c0 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/StaticLuaCallbacks.cs @@ -0,0 +1,1240 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +namespace XLua +{ + using System; + using System.IO; + using System.Reflection; + + public partial class StaticLuaCallbacks + { + internal LuaCSFunction GcMeta, ToStringMeta, EnumAndMeta, EnumOrMeta; + + internal LuaCSFunction StaticCSFunctionWraper, FixCSFunctionWraper; + + internal LuaCSFunction DelegateCtor; + + public StaticLuaCallbacks() + { + GcMeta = new LuaCSFunction(StaticLuaCallbacks.LuaGC); + ToStringMeta = new LuaCSFunction(StaticLuaCallbacks.ToString); + EnumAndMeta = new LuaCSFunction(EnumAnd); + EnumOrMeta = new LuaCSFunction(EnumOr); + StaticCSFunctionWraper = new LuaCSFunction(StaticLuaCallbacks.StaticCSFunction); + FixCSFunctionWraper = new LuaCSFunction(StaticLuaCallbacks.FixCSFunction); + DelegateCtor = new LuaCSFunction(DelegateConstructor); + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int EnumAnd(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object left = translator.FastGetCSObj(L, 1); + object right = translator.FastGetCSObj(L, 2); + Type typeOfLeft = left.GetType(); + if (!typeOfLeft.IsEnum() || typeOfLeft != right.GetType()) + { + return LuaAPI.luaL_error(L, "invalid argument for Enum BitwiseAnd"); + } + translator.PushAny(L, Enum.ToObject(typeOfLeft, Convert.ToInt64(left) & Convert.ToInt64(right))); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in Enum BitwiseAnd:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int EnumOr(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object left = translator.FastGetCSObj(L, 1); + object right = translator.FastGetCSObj(L, 2); + Type typeOfLeft = left.GetType(); + if (!typeOfLeft.IsEnum() || typeOfLeft != right.GetType()) + { + return LuaAPI.luaL_error(L, "invalid argument for Enum BitwiseOr"); + } + translator.PushAny(L, Enum.ToObject(typeOfLeft, Convert.ToInt64(left) | Convert.ToInt64(right))); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in Enum BitwiseOr:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + static int StaticCSFunction(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + LuaCSFunction func = (LuaCSFunction)translator.FastGetCSObj(L, LuaAPI.xlua_upvalueindex(1)); + return func(L); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in StaticCSFunction:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + static int FixCSFunction(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + int idx = LuaAPI.xlua_tointeger(L, LuaAPI.xlua_upvalueindex(1)); + LuaCSFunction func = (LuaCSFunction)translator.GetFixCSFunction(idx); + return func(L); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in FixCSFunction:" + e); + } + } + +#if GEN_CODE_MINIMIZE + [MonoPInvokeCallback(typeof(LuaDLL.CSharpWrapperCaller))] + internal static int CSharpWrapperCallerImpl(RealStatePtr L, int funcidx, int top) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + return translator.CallCSharpWrapper(L, funcidx, top); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception:" + e); + } + } +#endif + +#if GEN_CODE_MINIMIZE + public static int DelegateCall(RealStatePtr L, int top) +#else + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int DelegateCall(RealStatePtr L) +#endif + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object objDelegate = translator.FastGetCSObj(L, 1); + if (objDelegate == null || !(objDelegate is Delegate)) + { + return LuaAPI.luaL_error(L, "trying to invoke a value that is not delegate nor callable"); + } + return translator.methodWrapsCache.GetDelegateWrap(objDelegate.GetType())(L); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in DelegateCall:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int LuaGC(RealStatePtr L) + { + try + { + int udata = LuaAPI.xlua_tocsobj_safe(L, 1); + if (udata != -1) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + if ( translator != null ) + { + translator.collectObject(udata); + } + } + return 0; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in LuaGC:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ToString(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object obj = translator.FastGetCSObj(L, 1); + translator.PushAny(L, obj != null ? (obj.ToString() + ": " + obj.GetHashCode()) : ""); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in ToString:" + e); + } + } + +#if GEN_CODE_MINIMIZE + public static int DelegateCombine(RealStatePtr L, int top) +#else + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int DelegateCombine(RealStatePtr L) +#endif + { + try + { + var translator = ObjectTranslatorPool.Instance.Find(L); + Type type = translator.FastGetCSObj(L, LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TUSERDATA ? 1 : 2).GetType(); + Delegate d1 = translator.GetObject(L, 1, type) as Delegate; + Delegate d2 = translator.GetObject(L, 2, type) as Delegate; + if (d1 == null || d2 == null) + { + return LuaAPI.luaL_error(L, "one parameter must be a delegate, other one must be delegate or function"); + } + translator.PushAny(L, Delegate.Combine(d1, d2)); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in DelegateCombine:" + e); + } + } + +#if GEN_CODE_MINIMIZE + public static int DelegateRemove(RealStatePtr L, int top) +#else + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int DelegateRemove(RealStatePtr L) +#endif + { + try + { + var translator = ObjectTranslatorPool.Instance.Find(L); + Delegate d1 = translator.FastGetCSObj(L, 1) as Delegate; + if (d1 == null) + { + return LuaAPI.luaL_error(L, "#1 parameter must be a delegate"); + } + Delegate d2 = translator.GetObject(L, 2, d1.GetType()) as Delegate; + if (d2 == null) + { + return LuaAPI.luaL_error(L, "#2 parameter must be a delegate or a function "); + } + translator.PushAny(L, Delegate.Remove(d1, d2)); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in DelegateRemove:" + e); + } + } + + static bool tryPrimitiveArrayGet(Type type, RealStatePtr L, object obj, int index) + { + bool ok = true; + + if (type == typeof(int[])) + { + int[] array = obj as int[]; + LuaAPI.xlua_pushinteger(L, array[index]); + } + else if (type == typeof(float[])) + { + float[] array = obj as float[]; + LuaAPI.lua_pushnumber(L, array[index]); + } + else if (type == typeof(double[])) + { + double[] array = obj as double[]; + LuaAPI.lua_pushnumber(L, array[index]); + } + else if (type == typeof(bool[])) + { + bool[] array = obj as bool[]; + LuaAPI.lua_pushboolean(L, array[index]); + } + else if (type == typeof(long[])) + { + long[] array = obj as long[]; + LuaAPI.lua_pushint64(L, array[index]); + } + else if (type == typeof(ulong[])) + { + ulong[] array = obj as ulong[]; + LuaAPI.lua_pushuint64(L, array[index]); + } + else if (type == typeof(sbyte[])) + { + sbyte[] array = obj as sbyte[]; + LuaAPI.xlua_pushinteger(L, array[index]); + } + else if (type == typeof(short[])) + { + short[] array = obj as short[]; + LuaAPI.xlua_pushinteger(L, array[index]); + } + else if (type == typeof(ushort[])) + { + ushort[] array = obj as ushort[]; + LuaAPI.xlua_pushinteger(L, array[index]); + } + else if (type == typeof(char[])) + { + char[] array = obj as char[]; + LuaAPI.xlua_pushinteger(L, array[index]); + } + else if (type == typeof(uint[])) + { + uint[] array = obj as uint[]; + LuaAPI.xlua_pushuint(L, array[index]); + } + else if (type == typeof(IntPtr[])) + { + IntPtr[] array = obj as IntPtr[]; + LuaAPI.lua_pushlightuserdata(L, array[index]); + } + else if (type == typeof(decimal[])) + { + decimal[] array = obj as decimal[]; + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + translator.PushDecimal(L, array[index]); + } + else if (type == typeof(string[])) + { + string[] array = obj as string[]; + LuaAPI.lua_pushstring(L, array[index]); + } + else + { + ok = false; + } + return ok; + } + +#if GEN_CODE_MINIMIZE + public static int ArrayIndexer(RealStatePtr L, int top) +#else + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ArrayIndexer(RealStatePtr L) +#endif + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + System.Array array = (System.Array)translator.FastGetCSObj(L, 1); + + if (array == null) + { + return LuaAPI.luaL_error(L, "#1 parameter is not a array!"); + } + + int i = LuaAPI.xlua_tointeger(L, 2); + + if (i >= array.Length) + { + return LuaAPI.luaL_error(L, "index out of range! i =" + i + ", array.Length=" + array.Length); + } + + Type type = array.GetType(); + if (tryPrimitiveArrayGet(type, L, array, i)) + { + return 1; + } + + if (InternalGlobals.genTryArrayGetPtr != null) + { + try + { + if (InternalGlobals.genTryArrayGetPtr(type, L, translator, array, i)) + { + return 1; + } + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception:" + e.Message + ",stack:" + e.StackTrace); + } + } + + object ret = array.GetValue(i); + translator.PushAny(L, ret); + + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in ArrayIndexer:" + e); + } + } + + + public static bool TryPrimitiveArraySet(Type type, RealStatePtr L, object obj, int array_idx, int obj_idx) + { + bool ok = true; + + LuaTypes lua_type = LuaAPI.lua_type(L, obj_idx); + + if (type == typeof(int[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + int[] array = obj as int[]; + array[array_idx] = LuaAPI.xlua_tointeger(L, obj_idx); + } + else if (type == typeof(float[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + float[] array = obj as float[]; + array[array_idx] = (float)LuaAPI.lua_tonumber(L, obj_idx); + } + else if (type == typeof(double[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + double[] array = obj as double[]; + array[array_idx] = LuaAPI.lua_tonumber(L, obj_idx); ; + } + else if (type == typeof(bool[]) && lua_type == LuaTypes.LUA_TBOOLEAN) + { + bool[] array = obj as bool[]; + array[array_idx] = LuaAPI.lua_toboolean(L, obj_idx); + } + else if (type == typeof(long[]) && LuaAPI.lua_isint64(L, obj_idx)) + { + long[] array = obj as long[]; + array[array_idx] = LuaAPI.lua_toint64(L, obj_idx); + } + else if (type == typeof(ulong[]) && LuaAPI.lua_isuint64(L, obj_idx)) + { + ulong[] array = obj as ulong[]; + array[array_idx] = LuaAPI.lua_touint64(L, obj_idx); + } + else if (type == typeof(sbyte[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + sbyte[] array = obj as sbyte[]; + array[array_idx] = (sbyte)LuaAPI.xlua_tointeger(L, obj_idx); + } + else if (type == typeof(short[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + short[] array = obj as short[]; + array[array_idx] = (short)LuaAPI.xlua_tointeger(L, obj_idx); + } + else if (type == typeof(ushort[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + ushort[] array = obj as ushort[]; + array[array_idx] = (ushort)LuaAPI.xlua_tointeger(L, obj_idx); + } + else if (type == typeof(char[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + char[] array = obj as char[]; + array[array_idx] = (char)LuaAPI.xlua_tointeger(L, obj_idx); + } + else if (type == typeof(uint[]) && lua_type == LuaTypes.LUA_TNUMBER) + { + uint[] array = obj as uint[]; + array[array_idx] = LuaAPI.xlua_touint(L, obj_idx); + } + else if (type == typeof(IntPtr[]) && lua_type == LuaTypes.LUA_TLIGHTUSERDATA) + { + IntPtr[] array = obj as IntPtr[]; + array[array_idx] = LuaAPI.lua_touserdata(L, obj_idx); + } + else if (type == typeof(decimal[])) + { + decimal[] array = obj as decimal[]; + if (lua_type == LuaTypes.LUA_TNUMBER) + { + array[array_idx] = (decimal)LuaAPI.lua_tonumber(L, obj_idx); + } + + if (lua_type == LuaTypes.LUA_TUSERDATA) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + if (translator.IsDecimal(L, obj_idx)) + { + translator.Get(L, obj_idx, out array[array_idx]); + } + else + { + ok = false; + } + } + else + { + ok = false; + } + } + else if (type == typeof(string[]) && lua_type == LuaTypes.LUA_TSTRING) + { + string[] array = obj as string[]; + array[array_idx] = LuaAPI.lua_tostring(L, obj_idx); + } + else + { + ok = false; + } + return ok; + } + +#if GEN_CODE_MINIMIZE + public static int ArrayNewIndexer(RealStatePtr L, int top) +#else + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ArrayNewIndexer(RealStatePtr L) +#endif + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + System.Array array = (System.Array)translator.FastGetCSObj(L, 1); + + if (array == null) + { + return LuaAPI.luaL_error(L, "#1 parameter is not a array!"); + } + + int i = LuaAPI.xlua_tointeger(L, 2); + + if (i >= array.Length) + { + return LuaAPI.luaL_error(L, "index out of range! i =" + i + ", array.Length=" + array.Length); + } + + Type type = array.GetType(); + if (TryPrimitiveArraySet(type, L, array, i, 3)) + { + return 0; + } + + if (InternalGlobals.genTryArraySetPtr != null) + { + try + { + if (InternalGlobals.genTryArraySetPtr(type, L, translator, array, i, 3)) + { + return 0; + } + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception:" + e.Message + ",stack:" + e.StackTrace); + } + } + + object val = translator.GetObject(L, 3, type.GetElementType()); + array.SetValue(val, i); + + return 0; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in ArrayNewIndexer:" + e); + } + } + +#if GEN_CODE_MINIMIZE + public static int ArrayLength(RealStatePtr L, int top) +#else + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ArrayLength(RealStatePtr L) +#endif + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + System.Array array = (System.Array)translator.FastGetCSObj(L, 1); + LuaAPI.xlua_pushinteger(L, array.Length); + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in ArrayLength:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int MetaFuncIndex(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type = translator.FastGetCSObj(L, 2) as Type; + if (type == null) + { + return LuaAPI.luaL_error(L, "#2 param need a System.Type!"); + } + //UnityEngine.Debug.Log("============================load type by __index:" + type); + //translator.TryDelayWrapLoader(L, type); + translator.GetTypeId(L, type); + LuaAPI.lua_pushvalue(L, 2); + LuaAPI.lua_rawget(L, 1); + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in MetaFuncIndex:" + e); + } + } + + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int Panic(RealStatePtr L) + { + string reason = String.Format("unprotected error in call to Lua API ({0})", LuaAPI.lua_tostring(L, -1)); + throw new LuaException(reason); + } + +#if !XLUA_GENERAL + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int Print(RealStatePtr L) + { + try + { + int n = LuaAPI.lua_gettop(L); + string s = String.Empty; + + if (0 != LuaAPI.xlua_getglobal(L, "tostring")) + { + return LuaAPI.luaL_error(L, "can not get tostring in print:"); + } + + for (int i = 1; i <= n; i++) + { + LuaAPI.lua_pushvalue(L, -1); /* function to be called */ + LuaAPI.lua_pushvalue(L, i); /* value to print */ + if (0 != LuaAPI.lua_pcall(L, 1, 1, 0)) + { + return LuaAPI.lua_error(L); + } + s += LuaAPI.lua_tostring(L, -1); + + if (i != n) s += "\t"; + + LuaAPI.lua_pop(L, 1); /* pop result */ + } + UnityEngine.Debug.Log("LUA: " + s); + return 0; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in print:" + e); + } + } +#endif + +#if (!UNITY_SWITCH && !UNITY_WEBGL) || UNITY_EDITOR + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int LoadSocketCore(RealStatePtr L) + { + return LuaAPI.luaopen_socket_core(L); + } +#endif + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int LoadCS(RealStatePtr L) + { + LuaAPI.xlua_pushasciistring(L, LuaEnv.CSHARP_NAMESPACE); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + return 1; + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int LoadBuiltinLib(RealStatePtr L) + { + try + { + string builtin_lib = LuaAPI.lua_tostring(L, 1); + + LuaEnv self = ObjectTranslatorPool.Instance.Find(L).luaEnv; + + LuaCSFunction initer; + + if (self.buildin_initer.TryGetValue(builtin_lib, out initer)) + { + LuaAPI.lua_pushstdcallcfunction(L, initer); + } + else + { + LuaAPI.lua_pushstring(L, string.Format( + "\n\tno such builtin lib '{0}'", builtin_lib)); + } + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in LoadBuiltinLib:" + e); + } + } + +#if !XLUA_GENERAL + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int LoadFromResource(RealStatePtr L) + { + try + { + string filename = LuaAPI.lua_tostring(L, 1).Replace('.', '/') + ".lua"; + + // Load with Unity3D resources + UnityEngine.TextAsset file = (UnityEngine.TextAsset)UnityEngine.Resources.Load(filename); + if (file == null) + { + LuaAPI.lua_pushstring(L, string.Format( + "\n\tno such resource '{0}'", filename)); + } + else + { + if (LuaAPI.xluaL_loadbuffer(L, file.bytes, file.bytes.Length, "@" + filename) != 0) + { + return LuaAPI.luaL_error(L, String.Format("error loading module {0} from resource, {1}", + LuaAPI.lua_tostring(L, 1), LuaAPI.lua_tostring(L, -1))); + } + } + + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in LoadFromResource:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int LoadFromStreamingAssetsPath(RealStatePtr L) + { + try + { + string filename = LuaAPI.lua_tostring(L, 1).Replace('.', '/') + ".lua"; + var filepath = UnityEngine.Application.streamingAssetsPath + "/" + filename; +#if UNITY_ANDROID && !UNITY_EDITOR + UnityEngine.WWW www = new UnityEngine.WWW(filepath); + while (true) + { + if (www.isDone || !string.IsNullOrEmpty(www.error)) + { + System.Threading.Thread.Sleep(50); //�Ƚ�hacker������ + if (!string.IsNullOrEmpty(www.error)) + { + LuaAPI.lua_pushstring(L, string.Format( + "\n\tno such file '{0}' in streamingAssetsPath!", filename)); + } + else + { + UnityEngine.Debug.LogWarning("load lua file from StreamingAssets is obsolete, filename:" + filename); + if (LuaAPI.xluaL_loadbuffer(L, www.bytes, www.bytes.Length , "@" + filename) != 0) + { + return LuaAPI.luaL_error(L, String.Format("error loading module {0} from streamingAssetsPath, {1}", + LuaAPI.lua_tostring(L, 1), LuaAPI.lua_tostring(L, -1))); + } + } + break; + } + } +#else + if (File.Exists(filepath)) + { + // string text = File.ReadAllText(filepath); + var bytes = File.ReadAllBytes(filepath); + + UnityEngine.Debug.LogWarning("load lua file from StreamingAssets is obsolete, filename:" + filename); + if (LuaAPI.xluaL_loadbuffer(L, bytes, bytes.Length, "@" + filename) != 0) + { + return LuaAPI.luaL_error(L, String.Format("error loading module {0} from streamingAssetsPath, {1}", + LuaAPI.lua_tostring(L, 1), LuaAPI.lua_tostring(L, -1))); + } + } + else + { + LuaAPI.lua_pushstring(L, string.Format( + "\n\tno such file '{0}' in streamingAssetsPath!", filename)); + } +#endif + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in LoadFromStreamingAssetsPath:" + e); + } + } +#endif + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int LoadFromCustomLoaders(RealStatePtr L) + { + try + { + string filename = LuaAPI.lua_tostring(L, 1); + + LuaEnv self = ObjectTranslatorPool.Instance.Find(L).luaEnv; + + foreach (var loader in self.customLoaders) + { + string real_file_path = filename; + byte[] bytes = loader(ref real_file_path); + if (bytes != null) + { + if (LuaAPI.xluaL_loadbuffer(L, bytes, bytes.Length, "@" + real_file_path) != 0) + { + return LuaAPI.luaL_error(L, String.Format("error loading module {0} from CustomLoader, {1}", + LuaAPI.lua_tostring(L, 1), LuaAPI.lua_tostring(L, -1))); + } + return 1; + } + } + LuaAPI.lua_pushstring(L, string.Format( + "\n\tno such file '{0}' in CustomLoaders!", filename)); + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in LoadFromCustomLoaders:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int LoadAssembly(RealStatePtr L) + { +#if UNITY_WSA && !UNITY_EDITOR + return LuaAPI.luaL_error(L, "xlua.load_assembly no support in uwp!"); +#else + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + string assemblyName = LuaAPI.lua_tostring(L, 1); + + Assembly assembly = null; + + try + { + assembly = Assembly.Load(assemblyName); + } + catch (BadImageFormatException) + { + // The assemblyName was invalid. It is most likely a path. + } + + if (assembly == null) + { + assembly = Assembly.Load(AssemblyName.GetAssemblyName(assemblyName)); + } + + if (assembly != null && !translator.assemblies.Contains(assembly)) + { + translator.assemblies.Add(assembly); + } + return 0; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.load_assembly:" + e); + } +#endif + } + + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ImportType(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + string className = LuaAPI.lua_tostring(L, 1); + Type type = translator.FindType(className); + if (type != null) + { + if (translator.GetTypeId(L, type) >= 0) + { + LuaAPI.lua_pushboolean(L, true); + } + else + { + return LuaAPI.luaL_error(L, "can not load type " + type); + } + } + else + { + LuaAPI.lua_pushnil(L); + } + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.import_type:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ImportGenericType(RealStatePtr L) + { + try + { + int top = LuaAPI.lua_gettop(L); + if (top < 2) return LuaAPI.luaL_error(L, "import generic type need at lease 2 arguments"); + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + string className = LuaAPI.lua_tostring(L, 1); + if (className.EndsWith("<>")) className = className.Substring(0, className.Length - 2); + Type genericDef = translator.FindType(className + "`" + (top - 1)); + if (genericDef == null || !genericDef.IsGenericTypeDefinition()) + { + LuaAPI.lua_pushnil(L); + } + else + { + Type[] typeArguments = new Type[top - 1]; + for(int i = 2; i <= top; i++) + { + + typeArguments[i - 2] = getType(L, translator, i); + if (typeArguments[i - 2] == null) + { + return LuaAPI.luaL_error(L, "param need a type"); + } + } + Type genericInc = genericDef.MakeGenericType(typeArguments); + translator.GetTypeId(L, genericInc); + translator.PushAny(L, genericInc); + } + + return 1; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.import_type:" + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int Cast(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type; + translator.Get(L, 2, out type); + + if (type == null) + { + return LuaAPI.luaL_error(L, "#2 param[" + LuaAPI.lua_tostring(L, 2) + "]is not valid type indicator"); + } + LuaAPI.luaL_getmetatable(L, type.FullName); + if (LuaAPI.lua_isnil(L, -1)) + { + return LuaAPI.luaL_error(L, "no gen code for " + LuaAPI.lua_tostring(L, 2)); + } + LuaAPI.lua_setmetatable(L, 1); + return 0; + } + catch (System.Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.cast:" + e); + } + } + + static Type getType(RealStatePtr L, ObjectTranslator translator, int idx) + { + if (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TTABLE) + { + LuaTable tbl; + translator.Get(L, idx, out tbl); + return tbl.Get("UnderlyingSystemType"); + } + else if (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TSTRING) + { + string className = LuaAPI.lua_tostring(L, idx); + return translator.FindType(className); + } + else if (translator.GetObject(L, idx) is Type) + { + return translator.GetObject(L, idx) as Type; + } + else + { + return null; + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int XLuaAccess(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type = getType(L, translator, 1); + object obj = null; + if (type == null && LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TUSERDATA) + { + obj = translator.SafeGetCSObj(L, 1); + if (obj == null) + { + return LuaAPI.luaL_error(L, "xlua.access, #1 parameter must a type/c# object/string"); + } + type = obj.GetType(); + } + + if (type == null) + { + return LuaAPI.luaL_error(L, "xlua.access, can not find c# type"); + } + + string fieldName = LuaAPI.lua_tostring(L, 2); + + BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static; + + if (LuaAPI.lua_gettop(L) > 2) // set + { + var field = type.GetField(fieldName, bindingFlags); + if (field != null) + { + field.SetValue(obj, translator.GetObject(L, 3, field.FieldType)); + return 0; + } + var prop = type.GetProperty(fieldName, bindingFlags); + if (prop != null) + { + prop.SetValue(obj, translator.GetObject(L, 3, prop.PropertyType), null); + return 0; + } + } + else + { + var field = type.GetField(fieldName, bindingFlags); + if (field != null) + { + translator.PushAny(L, field.GetValue(obj)); + return 1; + } + var prop = type.GetProperty(fieldName, bindingFlags); + if (prop != null) + { + translator.PushAny(L, prop.GetValue(obj, null)); + return 1; + } + } + return LuaAPI.luaL_error(L, "xlua.access, no field " + fieldName); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.access: " + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int XLuaPrivateAccessible(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type = getType(L, translator, 1); ; + if (type == null) + { + return LuaAPI.luaL_error(L, "xlua.private_accessible, can not find c# type"); + } + + while(type != null) + { + translator.PrivateAccessible(L, type); + type = type.BaseType(); + } + return 0; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.private_accessible: " + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int XLuaMetatableOperation(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type = getType(L, translator, 1); + if (type == null) + { + return LuaAPI.luaL_error(L, "xlua.metatable_operation, can not find c# type"); + } + + bool is_first = false; + int type_id = translator.getTypeId(L, type, out is_first); + + var param_num = LuaAPI.lua_gettop(L); + + if (param_num == 1) //get + { + LuaAPI.xlua_rawgeti(L, LuaIndexes.LUA_REGISTRYINDEX, type_id); + return 1; + } + else if (param_num == 2) //set + { + if (LuaAPI.lua_type(L, 2) != LuaTypes.LUA_TTABLE) + { + return LuaAPI.luaL_error(L, "argument #2 must be a table"); + } + LuaAPI.lua_pushnumber(L, type_id); + LuaAPI.xlua_rawseti(L, 2, 1); + LuaAPI.xlua_rawseti(L, LuaIndexes.LUA_REGISTRYINDEX, type_id); + return 0; + } + else + { + return LuaAPI.luaL_error(L, "invalid argument num for xlua.metatable_operation: " + param_num); + } + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.metatable_operation: " + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int DelegateConstructor(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type = getType(L, translator, 1); + if (type == null || !typeof(Delegate).IsAssignableFrom(type)) + { + return LuaAPI.luaL_error(L, "delegate constructor: #1 argument must be a Delegate's type"); + } + translator.PushAny(L, translator.GetObject(L, 2, type)); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in delegate constructor: " + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ToFunction(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + MethodBase m; + translator.Get(L, 1, out m); + if (m == null) + { + return LuaAPI.luaL_error(L, "ToFunction: #1 argument must be a MethodBase"); + } + translator.PushFixCSFunction(L, + new LuaCSFunction(translator.methodWrapsCache._GenMethodWrap(m.DeclaringType, m.Name, new MethodBase[] { m }).Call)); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in ToFunction: " + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int GenericMethodWraper(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + MethodInfo genericMethod; + translator.Get(L, LuaAPI.xlua_upvalueindex(1), out genericMethod); + int n = LuaAPI.lua_gettop(L); + Type[] typeArguments = new Type[n]; + for(int i = 0; i < n; i++) + { + Type type = getType(L, translator, i + 1); + if (type == null) + { + return LuaAPI.luaL_error(L, "param #" + (i + 1) + " is not a type"); + } + typeArguments[i] = type; + } + var method = genericMethod.MakeGenericMethod(typeArguments); + translator.PushFixCSFunction(L, + new LuaCSFunction(translator.methodWrapsCache._GenMethodWrap(method.DeclaringType, method.Name, new MethodBase[] { method }).Call)); + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in GenericMethodWraper: " + e); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int GetGenericMethod(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type = getType(L, translator, 1); + if (type == null) + { + return LuaAPI.luaL_error(L, "xlua.get_generic_method, can not find c# type"); + } + string methodName = LuaAPI.lua_tostring(L, 2); + if (string.IsNullOrEmpty(methodName)) + { + return LuaAPI.luaL_error(L, "xlua.get_generic_method, #2 param need a string"); + } + System.Collections.Generic.List matchMethods = new System.Collections.Generic.List(); + var allMethods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance); + for(int i = 0; i < allMethods.Length; i++) + { + var method = allMethods[i]; + if (method.Name == methodName && method.IsGenericMethodDefinition) + { + matchMethods.Add(method); + } + } + + int methodIdx = 0; + + if (matchMethods.Count == 0) + { + LuaAPI.lua_pushnil(L); + } + else + { + if (LuaAPI.lua_isinteger(L, 3)) + { + methodIdx = LuaAPI.xlua_tointeger(L, 3); + } + translator.PushAny(L, matchMethods[methodIdx]); + LuaAPI.lua_pushstdcallcfunction(L, GenericMethodWraper, 1); + } + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in xlua.get_generic_method: " + e); + } + return 1; + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + public static int ReleaseCsObject(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + translator.ReleaseCSObj(L, 1); + return 0; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in ReleaseCsObject: " + e); + } + } + } +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/StaticLuaCallbacks.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/StaticLuaCallbacks.cs.meta new file mode 100644 index 00000000..bd60c747 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/StaticLuaCallbacks.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea6c0dbbe5e58684685610b4385f3d83 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine.meta new file mode 100644 index 00000000..bda8ab71 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ec89a2f7047d8d14a87abe2c0cc70135 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine/TemplateEngine.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine/TemplateEngine.cs new file mode 100644 index 00000000..783c8a6f --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine/TemplateEngine.cs @@ -0,0 +1,258 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using System; +using System.Linq; +using System.Text.RegularExpressions; +using System.Collections.Generic; +using System.Collections; +using System.Text; +using XLua; + +namespace XLua.TemplateEngine +{ + public enum TokenType + { + Code, Eval, Text + } + + public class Chunk + { + public TokenType Type {get; private set;} + public string Text { get; private set; } + public Chunk(TokenType type, string text) + { + Type = type; + Text = text; + } + } + + class TemplateFormatException : Exception + { + public TemplateFormatException(string message) + { + } + } + + public class Parser + { + public static string RegexString + { + get; + private set; + } + + static Parser() + { + RegexString = GetRegexString(); + } + + /// + /// Replaces special characters with their literal representation. + /// + /// Resulting string. + /// Input string. + static string EscapeString(string input) + { + var output = input + .Replace("\\", @"\\") + .Replace("\'", @"\'") + .Replace("\"", @"\""") + .Replace("\n", @"\n") + .Replace("\t", @"\t") + .Replace("\r", @"\r") + .Replace("\b", @"\b") + .Replace("\f", @"\f") + .Replace("\a", @"\a") + .Replace("\v", @"\v") + .Replace("\0", @"\0"); + /* var surrogateMin = (char)0xD800; + var surrogateMax = (char)0xDFFF; + for (char sur = surrogateMin; sur <= surrogateMax; sur++) + output.Replace(sur, '\uFFFD');*/ + return output; + } + + static string GetRegexString() + { + string regexBadUnopened = @"(?((?!<%).)*%>)"; + string regexText = @"(?((?!<%).)+)"; + string regexNoCode = @"(?<%=?%>)"; + string regexCode = @"<%(?[^=]((?!<%|%>).)*)%>"; + string regexEval = @"<%=(?((?!<%|%>).)*)%>"; + string regexBadUnclosed = @"(?<%.*)"; + string regexBadEmpty = @"(?^$)"; + + return '(' + regexBadUnopened + + '|' + regexText + + '|' + regexNoCode + + '|' + regexCode + + '|' + regexEval + + '|' + regexBadUnclosed + + '|' + regexBadEmpty + + ")*"; + } + + /// + /// Parses the string into regex groups, + /// stores group:value pairs in List of Chunk + /// List of group:value pairs.; + /// + public static List Parse(string snippet) + { + Regex templateRegex = new Regex( + RegexString, + RegexOptions.ExplicitCapture | RegexOptions.Singleline + ); + Match matches = templateRegex.Match(snippet); + + if (matches.Groups["error"].Length > 0) + { + throw new TemplateFormatException("Messed up brackets"); + } + + List Chunks = matches.Groups["code"].Captures + .Cast() + .Select(p => new { Type = TokenType.Code, p.Value, p.Index }) + .Concat(matches.Groups["text"].Captures + .Cast() + .Select(p => new { Type = TokenType.Text, Value = EscapeString(p.Value), p.Index })) + .Concat(matches.Groups["eval"].Captures + .Cast() + .Select(p => new { Type = TokenType.Eval, p.Value, p.Index })) + .OrderBy(p => p.Index) + .Select(m => new Chunk(m.Type, m.Value)) + .ToList(); + + if (Chunks.Count == 0) + { + throw new TemplateFormatException("Empty template"); + } + return Chunks; + } + } + + public class LuaTemplate + { + public static string ComposeCode(List chunks) + { + StringBuilder code = new StringBuilder(); + + code.Append("local __text_gen = {}\r\n"); + foreach (var chunk in chunks) + { + switch (chunk.Type) + { + case TokenType.Text: + code.Append("table.insert(__text_gen, \"" + chunk.Text + "\")\r\n"); + break; + case TokenType.Eval: + code.Append("table.insert(__text_gen, tostring(" + chunk.Text + "))\r\n"); + break; + case TokenType.Code: + code.Append(chunk.Text + "\r\n"); + break; + } + } + + code.Append("return table.concat(__text_gen)\r\n"); + //UnityEngine.Debug.Log("code compose:"+code.ToString()); + return code.ToString(); + } + + public static LuaFunction Compile(LuaEnv luaenv, string snippet) + { + return luaenv.LoadString(ComposeCode(Parser.Parse(snippet)), "luatemplate"); + } + + public static string Execute(LuaFunction compiledTemplate, LuaTable parameters) + { + compiledTemplate.SetEnv(parameters); + object[] result = compiledTemplate.Call(); + System.Diagnostics.Debug.Assert(result.Length == 1); + return result[0].ToString(); + } + + public static string Execute(LuaFunction compiledTemplate) + { + object[] result = compiledTemplate.Call(); + System.Diagnostics.Debug.Assert(result.Length == 1); + return result[0].ToString(); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + public static int Compile(RealStatePtr L) + { + string snippet = LuaAPI.lua_tostring(L, 1); + + string code; + try + { + code = ComposeCode(Parser.Parse(snippet)); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, String.Format("template compile error:{0}\r\n", e.Message)); + } + //UnityEngine.Debug.Log("code=" + code); + if (LuaAPI.luaL_loadbuffer(L, code, "luatemplate") != 0) + { + return LuaAPI.lua_error(L); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + public static int Execute(RealStatePtr L) + { + if (!LuaAPI.lua_isfunction(L, 1)) + { + return LuaAPI.luaL_error(L, "invalid compiled template, function needed!\r\n"); + } + if (LuaAPI.lua_istable(L, 2)) + { + LuaAPI.lua_setfenv(L, 1); + } + LuaAPI.lua_pcall(L, 0, 1, 0); + return 1; + } + + static LuaCSFunction templateCompileFunction = Compile; + static LuaCSFunction templateExecuteFunction = Execute; + + public static void OpenLib(RealStatePtr L) + { + LuaAPI.lua_newtable(L); + LuaAPI.xlua_pushasciistring(L, "compile"); + LuaAPI.lua_pushstdcallcfunction(L, templateCompileFunction); + LuaAPI.lua_rawset(L, -3); + LuaAPI.xlua_pushasciistring(L, "execute"); + LuaAPI.lua_pushstdcallcfunction(L, templateExecuteFunction); + LuaAPI.lua_rawset(L, -3); + if (0 != LuaAPI.xlua_setglobal(L, "template")) + { + throw new Exception("call xlua_setglobal fail!"); + } + } + } +} + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine/TemplateEngine.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine/TemplateEngine.cs.meta new file mode 100644 index 00000000..b9262cf2 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TemplateEngine/TemplateEngine.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 97a1a6480ac4af3409d19d3d801b7aa4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TypeExtensions.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TypeExtensions.cs new file mode 100644 index 00000000..823bf20f --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TypeExtensions.cs @@ -0,0 +1,162 @@ +using System; +using System.Linq; +using System.Reflection; + +namespace XLua +{ + + internal static class TypeExtensions + { + public static bool IsValueType(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsValueType; +#else + return type.GetTypeInfo().IsValueType; +#endif + } + + public static bool IsEnum(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsEnum; +#else + return type.GetTypeInfo().IsEnum; +#endif + } + + public static bool IsPrimitive(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsPrimitive; +#else + return type.GetTypeInfo().IsPrimitive; +#endif + } + + public static bool IsAbstract(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsAbstract; +#else + return type.GetTypeInfo().IsAbstract; +#endif + } + + public static bool IsSealed(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsSealed; +#else + return type.GetTypeInfo().IsSealed; +#endif + } + + public static bool IsInterface(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsInterface; +#else + return type.GetTypeInfo().IsInterface; +#endif + } + + public static bool IsClass(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsClass; +#else + return type.GetTypeInfo().IsClass; +#endif + } + + public static Type BaseType(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.BaseType; +#else + return type.GetTypeInfo().BaseType; +#endif + } + + public static bool IsGenericType(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsGenericType; +#else + return type.GetTypeInfo().IsGenericType; +#endif + } + + public static bool IsGenericTypeDefinition(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsGenericTypeDefinition; +#else + return type.GetTypeInfo().IsGenericTypeDefinition; +#endif + } + +#if UNITY_WSA && !UNITY_EDITOR + public static bool IsSubclassOf(this Type type, Type c) + { + return type.GetTypeInfo().IsSubclassOf(c); + } + + public static bool IsDefined(this Type type, Type attributeType, bool inherit) + { + return type.GetTypeInfo().IsDefined(attributeType, inherit); + } + + public static Type[] GetGenericParameterConstraints(this Type type) + { + return type.GetTypeInfo().GetGenericParameterConstraints(); + } +#endif + + public static bool IsNestedPublic(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsNestedPublic; +#else + return type.GetTypeInfo().IsNestedPublic; +#endif + } + + public static bool IsPublic(this Type type) + { +#if !UNITY_WSA || UNITY_EDITOR + return type.IsPublic; +#else + return type.GetTypeInfo().IsPublic; +#endif + } + + public static string GetFriendlyName(this Type type) + { + if (type == typeof(int)) + return "int"; + else if (type == typeof(short)) + return "short"; + else if (type == typeof(byte)) + return "byte"; + else if (type == typeof(bool)) + return "bool"; + else if (type == typeof(long)) + return "long"; + else if (type == typeof(float)) + return "float"; + else if (type == typeof(double)) + return "double"; + else if (type == typeof(decimal)) + return "decimal"; + else if (type == typeof(string)) + return "string"; + else if (type.IsGenericType()) + return type.FullName.Split('`')[0] + "<" + string.Join(", ", type.GetGenericArguments() + .Select(x => GetFriendlyName(x)).ToArray()) + ">"; + else + return type.FullName; + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TypeExtensions.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TypeExtensions.cs.meta new file mode 100644 index 00000000..3ae22f11 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/TypeExtensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e0429f1e767156543b7b9466fd10a5d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Utils.cs b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Utils.cs new file mode 100644 index 00000000..7de99fd9 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Utils.cs @@ -0,0 +1,1539 @@ +/* + * Tencent is pleased to support the open source community by making xLua available. + * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +*/ + +using System.Collections.Generic; +using System; +using System.Reflection; +using System.Linq; +using System.Runtime.CompilerServices; + +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +namespace XLua +{ + public enum LazyMemberTypes + { + Method, + FieldGet, + FieldSet, + PropertyGet, + PropertySet, + Event, + } + + public static partial class Utils + { + public static bool LoadField(RealStatePtr L, int idx, string field_name) + { + idx = idx > 0 ? idx : LuaAPI.lua_gettop(L) + idx + 1;// abs of index + LuaAPI.xlua_pushasciistring(L, field_name); + LuaAPI.lua_rawget(L, idx); + return !LuaAPI.lua_isnil(L, -1); + } + + public static RealStatePtr GetMainState(RealStatePtr L) + { + RealStatePtr ret = default(RealStatePtr); + LuaAPI.xlua_pushasciistring(L, LuaEnv.MAIN_SHREAD); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + if (LuaAPI.lua_isthread(L, -1)) + { + ret = LuaAPI.lua_tothread(L, -1); + } + LuaAPI.lua_pop(L, 1); + return ret; + } + +#if (UNITY_WSA && !ENABLE_IL2CPP) && !UNITY_EDITOR + public static List _assemblies; + public static List GetAssemblies() + { + if (_assemblies == null) + { + System.Threading.Tasks.Task t = new System.Threading.Tasks.Task(() => + { + _assemblies = GetAssemblyList().Result; + }); + t.Start(); + t.Wait(); + } + return _assemblies; + + } + public static async System.Threading.Tasks.Task> GetAssemblyList() + { + List assemblies = new List(); + //return assemblies; + var files = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFilesAsync(); + if (files == null) + return assemblies; + + foreach (var file in files.Where(file => file.FileType == ".dll" || file.FileType == ".exe")) + { + try + { + assemblies.Add(Assembly.Load(new AssemblyName(file.DisplayName))); + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(ex.Message); + } + + } + return assemblies; + } + public static IEnumerable GetAllTypes(bool exclude_generic_definition = true) + { + var assemblies = GetAssemblies(); + return from assembly in assemblies + where !(assembly.IsDynamic) + from type in assembly.GetTypes() + where exclude_generic_definition ? !type.GetTypeInfo().IsGenericTypeDefinition : true + select type; + } +#else + public static List GetAllTypes(bool exclude_generic_definition = true) + { + List allTypes = new List(); + var assemblies = AppDomain.CurrentDomain.GetAssemblies(); + for (int i = 0; i < assemblies.Length; i++) + { + try + { +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 + if (!(assemblies[i].ManifestModule is System.Reflection.Emit.ModuleBuilder)) + { +#endif + allTypes.AddRange(assemblies[i].GetTypes() + .Where(type => exclude_generic_definition ? !type.IsGenericTypeDefinition() : true) + ); +#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0 + } +#endif + } + catch (Exception) + { + } + } + + return allTypes; + } +#endif + + static LuaCSFunction genFieldGetter(Type type, FieldInfo field) + { + if (field.IsStatic) + { + return (RealStatePtr L) => + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + translator.PushAny(L, field.GetValue(null)); + return 1; + }; + } + else + { + return (RealStatePtr L) => + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object obj = translator.FastGetCSObj(L, 1); + if (obj == null || !type.IsInstanceOfType(obj)) + { + return LuaAPI.luaL_error(L, "Expected type " + type + ", but got " + (obj == null ? "null" : obj.GetType().ToString()) + ", while get field " + field); + } + + translator.PushAny(L, field.GetValue(obj)); + return 1; + }; + } + } + + static LuaCSFunction genFieldSetter(Type type, FieldInfo field) + { + if (field.IsStatic) + { + return (RealStatePtr L) => + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object val = translator.GetObject(L, 1, field.FieldType); + if (field.FieldType.IsValueType() && Nullable.GetUnderlyingType(field.FieldType) == null && val == null) + { + return LuaAPI.luaL_error(L, type.Name + "." + field.Name + " Expected type " + field.FieldType); + } + field.SetValue(null, val); + return 0; + }; + } + else + { + return (RealStatePtr L) => + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + object obj = translator.FastGetCSObj(L, 1); + if (obj == null || !type.IsInstanceOfType(obj)) + { + return LuaAPI.luaL_error(L, "Expected type " + type + ", but got " + (obj == null ? "null" : obj.GetType().ToString()) + ", while set field " + field); + } + + object val = translator.GetObject(L, 2, field.FieldType); + if (field.FieldType.IsValueType() && Nullable.GetUnderlyingType(field.FieldType) == null && val == null) + { + return LuaAPI.luaL_error(L, type.Name + "." + field.Name + " Expected type " + field.FieldType); + } + field.SetValue(obj, val); + if (type.IsValueType()) + { + translator.Update(L, 1, obj); + } + return 0; + }; + } + } + + static LuaCSFunction genItemGetter(Type type, PropertyInfo[] props) + { + props = props.Where(prop => !prop.GetIndexParameters()[0].ParameterType.IsAssignableFrom(typeof(string))).ToArray(); + if (props.Length == 0) + { + return null; + } + Type[] params_type = new Type[props.Length]; + for (int i = 0; i < props.Length; i++) + { + params_type[i] = props[i].GetIndexParameters()[0].ParameterType; + } + object[] arg = new object[1] { null }; + return (RealStatePtr L) => + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object obj = translator.FastGetCSObj(L, 1); + if (obj == null || !type.IsInstanceOfType(obj)) + { + return LuaAPI.luaL_error(L, "Expected type " + type + ", but got " + (obj == null ? "null" : obj.GetType().ToString()) + ", while get prop " + props[0].Name); + } + + for (int i = 0; i < props.Length; i++) + { + if (!translator.Assignable(L, 2, params_type[i])) + { + continue; + } + else + { + PropertyInfo prop = props[i]; + try + { + object index = translator.GetObject(L, 2, params_type[i]); + arg[0] = index; + object ret = prop.GetValue(obj, arg); + LuaAPI.lua_pushboolean(L, true); + translator.PushAny(L, ret); + return 2; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "try to get " + type + "." + prop.Name + " throw a exception:" + e + ",stack:" + e.StackTrace); + } + } + } + + LuaAPI.lua_pushboolean(L, false); + return 1; + }; + } + + static LuaCSFunction genItemSetter(Type type, PropertyInfo[] props) + { + props = props.Where(prop => !prop.GetIndexParameters()[0].ParameterType.IsAssignableFrom(typeof(string))).ToArray(); + if (props.Length == 0) + { + return null; + } + Type[] params_type = new Type[props.Length]; + for (int i = 0; i < props.Length; i++) + { + params_type[i] = props[i].GetIndexParameters()[0].ParameterType; + } + object[] arg = new object[1] { null }; + return (RealStatePtr L) => + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + object obj = translator.FastGetCSObj(L, 1); + if (obj == null || !type.IsInstanceOfType(obj)) + { + return LuaAPI.luaL_error(L, "Expected type " + type + ", but got " + (obj == null ? "null" : obj.GetType().ToString()) + ", while set prop " + props[0].Name); + } + + for (int i = 0; i < props.Length; i++) + { + if (!translator.Assignable(L, 2, params_type[i])) + { + continue; + } + else + { + PropertyInfo prop = props[i]; + try + { + arg[0] = translator.GetObject(L, 2, params_type[i]); + object val = translator.GetObject(L, 3, prop.PropertyType); + if (val == null) + { + return LuaAPI.luaL_error(L, type.Name + "." + prop.Name + " Expected type " + prop.PropertyType); + } + prop.SetValue(obj, val, arg); + LuaAPI.lua_pushboolean(L, true); + + return 1; + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "try to set " + type + "." + prop.Name + " throw a exception:" + e + ",stack:" + e.StackTrace); + } + } + } + + LuaAPI.lua_pushboolean(L, false); + return 1; + }; + } + + static LuaCSFunction genEnumCastFrom(Type type) + { + return (RealStatePtr L) => + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + return translator.TranslateToEnumToTop(L, type, 1); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "cast to " + type + " exception:" + e); + } + }; + } + + internal static IEnumerable GetExtensionMethodsOf(Type type_to_be_extend) + { + if (InternalGlobals.extensionMethodMap == null) + { + List type_def_extention_method = new List(); + + IEnumerator enumerator = GetAllTypes().GetEnumerator(); + + while (enumerator.MoveNext()) + { + Type type = enumerator.Current; + if (type.IsDefined(typeof(ExtensionAttribute), false) && ( + type.IsDefined(typeof(ReflectionUseAttribute), false) +#if UNITY_EDITOR || XLUA_GENERAL + || type.IsDefined(typeof(LuaCallCSharpAttribute), false) +#endif + )) + { + type_def_extention_method.Add(type); + } + + if (!type.IsAbstract() || !type.IsSealed()) continue; + + var fields = type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < fields.Length; i++) + { + var field = fields[i]; + if ((field.IsDefined(typeof(ReflectionUseAttribute), false) +#if UNITY_EDITOR || XLUA_GENERAL + || field.IsDefined(typeof(LuaCallCSharpAttribute), false) +#endif + ) && (typeof(IEnumerable)).IsAssignableFrom(field.FieldType)) + { + type_def_extention_method.AddRange((field.GetValue(null) as IEnumerable) + .Where(t => t.IsDefined(typeof(ExtensionAttribute), false))); + } + } + + var props = type.GetProperties(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly); + for (int i = 0; i < props.Length; i++) + { + var prop = props[i]; + if ((prop.IsDefined(typeof(ReflectionUseAttribute), false) +#if UNITY_EDITOR || XLUA_GENERAL + || prop.IsDefined(typeof(LuaCallCSharpAttribute), false) +#endif + ) && (typeof(IEnumerable)).IsAssignableFrom(prop.PropertyType)) + { + type_def_extention_method.AddRange((prop.GetValue(null, null) as IEnumerable) + .Where(t => t.IsDefined(typeof(ExtensionAttribute), false))); + } + } + } + enumerator.Dispose(); + + InternalGlobals.extensionMethodMap = (from type in type_def_extention_method + from method in type.GetMethods(BindingFlags.Static | BindingFlags.Public) + where method.IsDefined(typeof(ExtensionAttribute), false) && IsSupportedMethod(method) + group method by getExtendedType(method)).ToDictionary(g => g.Key, g => g as IEnumerable); + } + IEnumerable ret = null; + InternalGlobals.extensionMethodMap.TryGetValue(type_to_be_extend, out ret); + return ret; + } + + struct MethodKey + { + public string Name; + public bool IsStatic; + } + + static void makeReflectionWrap(RealStatePtr L, Type type, int cls_field, int cls_getter, int cls_setter, + int obj_field, int obj_getter, int obj_setter, int obj_meta, out LuaCSFunction item_getter, out LuaCSFunction item_setter, BindingFlags access) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + BindingFlags flag = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | access; + FieldInfo[] fields = type.GetFields(flag); + EventInfo[] all_events = type.GetEvents(flag | BindingFlags.Public | BindingFlags.NonPublic); + + LuaAPI.lua_checkstack(L, 2); + + for (int i = 0; i < fields.Length; ++i) + { + FieldInfo field = fields[i]; + string fieldName = field.Name; + // skip hotfix inject field + if (field.IsStatic && (field.Name.StartsWith("__Hotfix") || field.Name.StartsWith("_c__Hotfix")) && typeof(Delegate).IsAssignableFrom(field.FieldType)) + { + continue; + } + if (all_events.Any(e => e.Name == fieldName)) + { + fieldName = "&" + fieldName; + } + + if (field.IsStatic && (field.IsInitOnly || field.IsLiteral)) + { + LuaAPI.xlua_pushasciistring(L, fieldName); + translator.PushAny(L, field.GetValue(null)); + LuaAPI.lua_rawset(L, cls_field); + } + else + { + LuaAPI.xlua_pushasciistring(L, fieldName); + translator.PushFixCSFunction(L, genFieldGetter(type, field)); + LuaAPI.lua_rawset(L, field.IsStatic ? cls_getter : obj_getter); + + LuaAPI.xlua_pushasciistring(L, fieldName); + translator.PushFixCSFunction(L, genFieldSetter(type, field)); + LuaAPI.lua_rawset(L, field.IsStatic ? cls_setter : obj_setter); + } + } + + EventInfo[] events = type.GetEvents(flag); + for (int i = 0; i < events.Length; ++i) + { + EventInfo eventInfo = events[i]; + LuaAPI.xlua_pushasciistring(L, eventInfo.Name); + translator.PushFixCSFunction(L, translator.methodWrapsCache.GetEventWrap(type, eventInfo.Name)); + bool is_static = (eventInfo.GetAddMethod(true) != null) ? eventInfo.GetAddMethod(true).IsStatic : eventInfo.GetRemoveMethod(true).IsStatic; + LuaAPI.lua_rawset(L, is_static ? cls_field : obj_field); + } + + List items = new List(); + PropertyInfo[] props = type.GetProperties(flag); + for (int i = 0; i < props.Length; ++i) + { + PropertyInfo prop = props[i]; + if (prop.GetIndexParameters().Length > 0) + { + items.Add(prop); + } + } + + var item_array = items.ToArray(); + item_getter = item_array.Length > 0 ? genItemGetter(type, item_array) : null; + item_setter = item_array.Length > 0 ? genItemSetter(type, item_array) : null; + MethodInfo[] methods = type.GetMethods(flag); + if (access == BindingFlags.NonPublic) + { + methods = type.GetMethods(flag | BindingFlags.Public).Join(methods, p => p.Name, q => q.Name, (p, q) => p).ToArray(); + } + Dictionary> pending_methods = new Dictionary>(); + for (int i = 0; i < methods.Length; ++i) + { + MethodInfo method = methods[i]; + string method_name = method.Name; + + MethodKey method_key = new MethodKey { Name = method_name, IsStatic = method.IsStatic }; + List overloads; + if (pending_methods.TryGetValue(method_key, out overloads)) + { + overloads.Add(method); + continue; + } + + //indexer + if (method.IsSpecialName && ((method.Name == "get_Item" && method.GetParameters().Length == 1) || (method.Name == "set_Item" && method.GetParameters().Length == 2))) + { + if (!method.GetParameters()[0].ParameterType.IsAssignableFrom(typeof(string))) + { + continue; + } + } + + if ((method_name.StartsWith("add_") || method_name.StartsWith("remove_")) && method.IsSpecialName) + { + continue; + } + + if (method_name.StartsWith("op_") && method.IsSpecialName) // 操作符 + { + if (InternalGlobals.supportOp.ContainsKey(method_name)) + { + if (overloads == null) + { + overloads = new List(); + pending_methods.Add(method_key, overloads); + } + overloads.Add(method); + } + continue; + } + else if (method_name.StartsWith("get_") && method.IsSpecialName && method.GetParameters().Length != 1) // getter of property + { + string prop_name = method.Name.Substring(4); + LuaAPI.xlua_pushasciistring(L, prop_name); + translator.PushFixCSFunction(L, translator.methodWrapsCache._GenMethodWrap(method.DeclaringType, prop_name, new MethodBase[] { method }).Call); + LuaAPI.lua_rawset(L, method.IsStatic ? cls_getter : obj_getter); + } + else if (method_name.StartsWith("set_") && method.IsSpecialName && method.GetParameters().Length != 2) // setter of property + { + string prop_name = method.Name.Substring(4); + LuaAPI.xlua_pushasciistring(L, prop_name); + translator.PushFixCSFunction(L, translator.methodWrapsCache._GenMethodWrap(method.DeclaringType, prop_name, new MethodBase[] { method }).Call); + LuaAPI.lua_rawset(L, method.IsStatic ? cls_setter : obj_setter); + } + else if (method_name == ".ctor" && method.IsConstructor) + { + continue; + } + else + { + if (overloads == null) + { + overloads = new List(); + pending_methods.Add(method_key, overloads); + } + overloads.Add(method); + } + } + + + IEnumerable extend_methods = GetExtensionMethodsOf(type); + if (extend_methods != null) + { + foreach (var extend_method in extend_methods) + { + MethodKey method_key = new MethodKey { Name = extend_method.Name, IsStatic = false }; + List overloads; + if (pending_methods.TryGetValue(method_key, out overloads)) + { + overloads.Add(extend_method); + continue; + } + else + { + overloads = new List() { extend_method }; + pending_methods.Add(method_key, overloads); + } + } + } + + foreach (var kv in pending_methods) + { + if (kv.Key.Name.StartsWith("op_")) // 操作符 + { + LuaAPI.xlua_pushasciistring(L, InternalGlobals.supportOp[kv.Key.Name]); + translator.PushFixCSFunction(L, + new LuaCSFunction(translator.methodWrapsCache._GenMethodWrap(type, kv.Key.Name, kv.Value.ToArray()).Call)); + LuaAPI.lua_rawset(L, obj_meta); + } + else + { + LuaAPI.xlua_pushasciistring(L, kv.Key.Name); + translator.PushFixCSFunction(L, + new LuaCSFunction(translator.methodWrapsCache._GenMethodWrap(type, kv.Key.Name, kv.Value.ToArray()).Call)); + LuaAPI.lua_rawset(L, kv.Key.IsStatic ? cls_field : obj_field); + } + } + } + + public static void loadUpvalue(RealStatePtr L, Type type, string metafunc, int index) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + LuaAPI.xlua_pushasciistring(L, metafunc); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + translator.Push(L, type); + LuaAPI.lua_rawget(L, -2); + LuaAPI.lua_remove(L, -2); + for (int i = 1; i <= index; i++) + { + LuaAPI.lua_getupvalue(L, -i, i); + if (LuaAPI.lua_isnil(L, -1)) + { + LuaAPI.lua_pop(L, 1); + LuaAPI.lua_newtable(L); + LuaAPI.lua_pushvalue(L, -1); + LuaAPI.lua_setupvalue(L, -i - 2, i); + } + } + for (int i = 0; i < index; i++) + { + LuaAPI.lua_remove(L, -2); + } + } + + public static void RegisterEnumType(RealStatePtr L, Type type) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + foreach (var name in Enum.GetNames(type)) + { + RegisterObject(L, translator, Utils.CLS_IDX, name, Enum.Parse(type, name)); + } + } + + + public static void MakePrivateAccessible(RealStatePtr L, Type type) + { + LuaAPI.lua_checkstack(L, 20); + + int oldTop = LuaAPI.lua_gettop(L); + + LuaAPI.luaL_getmetatable(L, type.FullName); + if (LuaAPI.lua_isnil(L, -1)) + { + LuaAPI.lua_settop(L, oldTop); + throw new Exception("can not find the metatable for " + type); + } + int obj_meta = LuaAPI.lua_gettop(L); + + LoadCSTable(L, type); + if (LuaAPI.lua_isnil(L, -1)) + { + LuaAPI.lua_settop(L, oldTop); + throw new Exception("can not find the class for " + type); + } + int cls_field = LuaAPI.lua_gettop(L); + + loadUpvalue(L, type, LuaIndexsFieldName, 2); + int obj_getter = LuaAPI.lua_gettop(L); + loadUpvalue(L, type, LuaIndexsFieldName, 1); + int obj_field = LuaAPI.lua_gettop(L); + + loadUpvalue(L, type, LuaNewIndexsFieldName, 1); + int obj_setter = LuaAPI.lua_gettop(L); + + loadUpvalue(L, type, LuaClassIndexsFieldName, 1); + int cls_getter = LuaAPI.lua_gettop(L); + + loadUpvalue(L, type, LuaClassNewIndexsFieldName, 1); + int cls_setter = LuaAPI.lua_gettop(L); + + LuaCSFunction item_getter; + LuaCSFunction item_setter; + makeReflectionWrap(L, type, cls_field, cls_getter, cls_setter, obj_field, obj_getter, obj_setter, obj_meta, + out item_getter, out item_setter, BindingFlags.NonPublic); + LuaAPI.lua_settop(L, oldTop); + + foreach (var nested_type in type.GetNestedTypes(BindingFlags.NonPublic)) + { + if ((!nested_type.IsAbstract() && typeof(Delegate).IsAssignableFrom(nested_type)) + || nested_type.IsGenericTypeDefinition()) + { + continue; + } + ObjectTranslatorPool.Instance.Find(L).TryDelayWrapLoader(L, nested_type); + MakePrivateAccessible(L, nested_type); + } + } + + [MonoPInvokeCallback(typeof(LuaCSFunction))] + internal static int LazyReflectionCall(RealStatePtr L) + { + try + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Type type; + translator.Get(L, LuaAPI.xlua_upvalueindex(1), out type); + LazyMemberTypes memberType = (LazyMemberTypes)LuaAPI.xlua_tointeger(L, LuaAPI.xlua_upvalueindex(2)); + string memberName = LuaAPI.lua_tostring(L, LuaAPI.xlua_upvalueindex(3)); + bool isStatic = LuaAPI.lua_toboolean(L, LuaAPI.xlua_upvalueindex(4)); + LuaCSFunction wrap = null; + //UnityEngine.Debug.Log(">>>>> " + type + " " + memberName); + + switch (memberType) + { + case LazyMemberTypes.Method: + var members = type.GetMember(memberName); + if (members == null || members.Length == 0) + { + return LuaAPI.luaL_error(L, "can not find " + memberName + " for " + type); + } + IEnumerable methods = members; + if (!isStatic) + { + var extensionMethods = GetExtensionMethodsOf(type); + if (extensionMethods != null) + { + methods = methods.Concat(extensionMethods.Where(m => m.Name == memberName).Cast()); + } + } + wrap = new LuaCSFunction(translator.methodWrapsCache._GenMethodWrap(type, memberName, methods.ToArray()).Call); + if (isStatic) + { + LoadCSTable(L, type); + } + else + { + loadUpvalue(L, type, LuaIndexsFieldName, 1); + } + if (LuaAPI.lua_isnil(L, -1)) + { + return LuaAPI.luaL_error(L, "can not find the meta info for " + type); + } + break; + case LazyMemberTypes.FieldGet: + case LazyMemberTypes.FieldSet: + var field = type.GetField(memberName); + if (field == null) + { + return LuaAPI.luaL_error(L, "can not find " + memberName + " for " + type); + } + if (isStatic) + { + if (memberType == LazyMemberTypes.FieldGet) + { + loadUpvalue(L, type, LuaClassIndexsFieldName, 1); + } + else + { + loadUpvalue(L, type, LuaClassNewIndexsFieldName, 1); + } + } + else + { + if (memberType == LazyMemberTypes.FieldGet) + { + loadUpvalue(L, type, LuaIndexsFieldName, 2); + } + else + { + loadUpvalue(L, type, LuaNewIndexsFieldName, 1); + } + } + + wrap = (memberType == LazyMemberTypes.FieldGet) ? genFieldGetter(type, field) : genFieldSetter(type, field); + + break; + case LazyMemberTypes.PropertyGet: + case LazyMemberTypes.PropertySet: + var prop = type.GetProperty(memberName); + if (prop == null) + { + return LuaAPI.luaL_error(L, "can not find " + memberName + " for " + type); + } + if (isStatic) + { + if (memberType == LazyMemberTypes.PropertyGet) + { + loadUpvalue(L, type, LuaClassIndexsFieldName, 1); + } + else + { + loadUpvalue(L, type, LuaClassNewIndexsFieldName, 1); + } + } + else + { + if (memberType == LazyMemberTypes.PropertyGet) + { + loadUpvalue(L, type, LuaIndexsFieldName, 2); + } + else + { + loadUpvalue(L, type, LuaNewIndexsFieldName, 1); + } + } + + if (LuaAPI.lua_isnil(L, -1)) + { + return LuaAPI.luaL_error(L, "can not find the meta info for " + type); + } + + wrap = translator.methodWrapsCache._GenMethodWrap(prop.DeclaringType, prop.Name, new MethodBase[] { (memberType == LazyMemberTypes.PropertyGet) ? prop.GetGetMethod() : prop.GetSetMethod() }).Call; + break; + case LazyMemberTypes.Event: + var eventInfo = type.GetEvent(memberName); + if (eventInfo == null) + { + return LuaAPI.luaL_error(L, "can not find " + memberName + " for " + type); + } + if (isStatic) + { + LoadCSTable(L, type); + } + else + { + loadUpvalue(L, type, LuaIndexsFieldName, 1); + } + if (LuaAPI.lua_isnil(L, -1)) + { + return LuaAPI.luaL_error(L, "can not find the meta info for " + type); + } + wrap = translator.methodWrapsCache.GetEventWrap(type, eventInfo.Name); + break; + default: + return LuaAPI.luaL_error(L, "unsupport member type" + memberType); + } + + LuaAPI.xlua_pushasciistring(L, memberName); + translator.PushFixCSFunction(L, wrap); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + return wrap(L); + } + catch (Exception e) + { + return LuaAPI.luaL_error(L, "c# exception in LazyReflectionCall:" + e); + } + } + + public static void ReflectionWrap(RealStatePtr L, Type type, bool privateAccessible) + { + LuaAPI.lua_checkstack(L, 20); + + int top_enter = LuaAPI.lua_gettop(L); + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + //create obj meta table + LuaAPI.luaL_getmetatable(L, type.FullName); + if (LuaAPI.lua_isnil(L, -1)) + { + LuaAPI.lua_pop(L, 1); + LuaAPI.luaL_newmetatable(L, type.FullName); + } + LuaAPI.lua_pushlightuserdata(L, LuaAPI.xlua_tag()); + LuaAPI.lua_pushnumber(L, 1); + LuaAPI.lua_rawset(L, -3); + int obj_meta = LuaAPI.lua_gettop(L); + + LuaAPI.lua_newtable(L); + int cls_meta = LuaAPI.lua_gettop(L); + + LuaAPI.lua_newtable(L); + int obj_field = LuaAPI.lua_gettop(L); + LuaAPI.lua_newtable(L); + int obj_getter = LuaAPI.lua_gettop(L); + LuaAPI.lua_newtable(L); + int obj_setter = LuaAPI.lua_gettop(L); + LuaAPI.lua_newtable(L); + int cls_field = LuaAPI.lua_gettop(L); + //set cls_field to namespace + SetCSTable(L, type, cls_field); + //finish set cls_field to namespace + LuaAPI.lua_newtable(L); + int cls_getter = LuaAPI.lua_gettop(L); + LuaAPI.lua_newtable(L); + int cls_setter = LuaAPI.lua_gettop(L); + + LuaCSFunction item_getter; + LuaCSFunction item_setter; + makeReflectionWrap(L, type, cls_field, cls_getter, cls_setter, obj_field, obj_getter, obj_setter, obj_meta, + out item_getter, out item_setter, privateAccessible ? (BindingFlags.Public | BindingFlags.NonPublic) : BindingFlags.Public); + + // init obj metatable + LuaAPI.xlua_pushasciistring(L, "__gc"); + LuaAPI.lua_pushstdcallcfunction(L, translator.metaFunctions.GcMeta); + LuaAPI.lua_rawset(L, obj_meta); + + LuaAPI.xlua_pushasciistring(L, "__tostring"); + LuaAPI.lua_pushstdcallcfunction(L, translator.metaFunctions.ToStringMeta); + LuaAPI.lua_rawset(L, obj_meta); + + LuaAPI.xlua_pushasciistring(L, "__index"); + LuaAPI.lua_pushvalue(L, obj_field); + LuaAPI.lua_pushvalue(L, obj_getter); + translator.PushFixCSFunction(L, item_getter); + translator.PushAny(L, type.BaseType()); + LuaAPI.xlua_pushasciistring(L, LuaIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.lua_pushnil(L); + LuaAPI.gen_obj_indexer(L); + //store in lua indexs function tables + LuaAPI.xlua_pushasciistring(L, LuaIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + LuaAPI.lua_rawset(L, obj_meta); // set __index + + LuaAPI.xlua_pushasciistring(L, "__newindex"); + LuaAPI.lua_pushvalue(L, obj_setter); + translator.PushFixCSFunction(L, item_setter); + translator.Push(L, type.BaseType()); + LuaAPI.xlua_pushasciistring(L, LuaNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.lua_pushnil(L); + LuaAPI.gen_obj_newindexer(L); + //store in lua newindexs function tables + LuaAPI.xlua_pushasciistring(L, LuaNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + LuaAPI.lua_rawset(L, obj_meta); // set __newindex + //finish init obj metatable + + LuaAPI.xlua_pushasciistring(L, "UnderlyingSystemType"); + translator.PushAny(L, type); + LuaAPI.lua_rawset(L, cls_field); + + if (type != null && type.IsEnum()) + { + LuaAPI.xlua_pushasciistring(L, "__CastFrom"); + translator.PushFixCSFunction(L, genEnumCastFrom(type)); + LuaAPI.lua_rawset(L, cls_field); + } + + //init class meta + LuaAPI.xlua_pushasciistring(L, "__index"); + LuaAPI.lua_pushvalue(L, cls_getter); + LuaAPI.lua_pushvalue(L, cls_field); + translator.Push(L, type.BaseType()); + LuaAPI.xlua_pushasciistring(L, LuaClassIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.gen_cls_indexer(L); + //store in lua indexs function tables + LuaAPI.xlua_pushasciistring(L, LuaClassIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + LuaAPI.lua_rawset(L, cls_meta); // set __index + + LuaAPI.xlua_pushasciistring(L, "__newindex"); + LuaAPI.lua_pushvalue(L, cls_setter); + translator.Push(L, type.BaseType()); + LuaAPI.xlua_pushasciistring(L, LuaClassNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.gen_cls_newindexer(L); + //store in lua newindexs function tables + LuaAPI.xlua_pushasciistring(L, LuaClassNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + LuaAPI.lua_rawset(L, cls_meta); // set __newindex + + LuaCSFunction constructor = typeof(Delegate).IsAssignableFrom(type) ? translator.metaFunctions.DelegateCtor : translator.methodWrapsCache.GetConstructorWrap(type); + if (constructor == null) + { + constructor = (RealStatePtr LL) => + { + return LuaAPI.luaL_error(LL, "No constructor for " + type); + }; + } + + LuaAPI.xlua_pushasciistring(L, "__call"); + translator.PushFixCSFunction(L, constructor); + LuaAPI.lua_rawset(L, cls_meta); + + LuaAPI.lua_pushvalue(L, cls_meta); + LuaAPI.lua_setmetatable(L, cls_field); + + LuaAPI.lua_pop(L, 8); + + System.Diagnostics.Debug.Assert(top_enter == LuaAPI.lua_gettop(L)); + } + + //meta: -4, method:-3, getter: -2, setter: -1 + public static void BeginObjectRegister(Type type, RealStatePtr L, ObjectTranslator translator, int meta_count, int method_count, int getter_count, + int setter_count, int type_id = -1) + { + if (type == null) + { + if (type_id == -1) throw new Exception("Fatal: must provide a type of type_id"); + LuaAPI.xlua_rawgeti(L, LuaIndexes.LUA_REGISTRYINDEX, type_id); + } + else + { + LuaAPI.luaL_getmetatable(L, type.FullName); + if (LuaAPI.lua_isnil(L, -1)) + { + LuaAPI.lua_pop(L, 1); + LuaAPI.luaL_newmetatable(L, type.FullName); + } + } + LuaAPI.lua_pushlightuserdata(L, LuaAPI.xlua_tag()); + LuaAPI.lua_pushnumber(L, 1); + LuaAPI.lua_rawset(L, -3); + + if ((type == null || !translator.HasCustomOp(type)) && type != typeof(decimal)) + { + LuaAPI.xlua_pushasciistring(L, "__gc"); + LuaAPI.lua_pushstdcallcfunction(L, translator.metaFunctions.GcMeta); + LuaAPI.lua_rawset(L, -3); + } + + LuaAPI.xlua_pushasciistring(L, "__tostring"); + LuaAPI.lua_pushstdcallcfunction(L, translator.metaFunctions.ToStringMeta); + LuaAPI.lua_rawset(L, -3); + + if (method_count == 0) + { + LuaAPI.lua_pushnil(L); + } + else + { + LuaAPI.lua_createtable(L, 0, method_count); + } + + if (getter_count == 0) + { + LuaAPI.lua_pushnil(L); + } + else + { + LuaAPI.lua_createtable(L, 0, getter_count); + } + + if (setter_count == 0) + { + LuaAPI.lua_pushnil(L); + } + else + { + LuaAPI.lua_createtable(L, 0, setter_count); + } + } + + static int abs_idx(int top, int idx) + { + return idx > 0 ? idx : top + idx + 1; + } + + public const int OBJ_META_IDX = -4; + public const int METHOD_IDX = -3; + public const int GETTER_IDX = -2; + public const int SETTER_IDX = -1; + +#if GEN_CODE_MINIMIZE + public static void EndObjectRegister(Type type, RealStatePtr L, ObjectTranslator translator, CSharpWrapper csIndexer, + CSharpWrapper csNewIndexer, Type base_type, CSharpWrapper arrayIndexer, CSharpWrapper arrayNewIndexer) +#else + public static void EndObjectRegister(Type type, RealStatePtr L, ObjectTranslator translator, LuaCSFunction csIndexer, + LuaCSFunction csNewIndexer, Type base_type, LuaCSFunction arrayIndexer, LuaCSFunction arrayNewIndexer) +#endif + { + int top = LuaAPI.lua_gettop(L); + int meta_idx = abs_idx(top, OBJ_META_IDX); + int method_idx = abs_idx(top, METHOD_IDX); + int getter_idx = abs_idx(top, GETTER_IDX); + int setter_idx = abs_idx(top, SETTER_IDX); + + //begin index gen + LuaAPI.xlua_pushasciistring(L, "__index"); + LuaAPI.lua_pushvalue(L, method_idx); + LuaAPI.lua_pushvalue(L, getter_idx); + + if (csIndexer == null) + { + LuaAPI.lua_pushnil(L); + } + else + { +#if GEN_CODE_MINIMIZE + translator.PushCSharpWrapper(L, csIndexer); +#else + LuaAPI.lua_pushstdcallcfunction(L, csIndexer); +#endif + } + + translator.Push(L, type == null ? base_type : type.BaseType()); + + LuaAPI.xlua_pushasciistring(L, LuaIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + if (arrayIndexer == null) + { + LuaAPI.lua_pushnil(L); + } + else + { +#if GEN_CODE_MINIMIZE + translator.PushCSharpWrapper(L, arrayIndexer); +#else + LuaAPI.lua_pushstdcallcfunction(L, arrayIndexer); +#endif + } + + LuaAPI.gen_obj_indexer(L); + + if (type != null) + { + LuaAPI.xlua_pushasciistring(L, LuaIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX);//store in lua indexs function tables + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + } + + LuaAPI.lua_rawset(L, meta_idx); + //end index gen + + //begin newindex gen + LuaAPI.xlua_pushasciistring(L, "__newindex"); + LuaAPI.lua_pushvalue(L, setter_idx); + + if (csNewIndexer == null) + { + LuaAPI.lua_pushnil(L); + } + else + { +#if GEN_CODE_MINIMIZE + translator.PushCSharpWrapper(L, csNewIndexer); +#else + LuaAPI.lua_pushstdcallcfunction(L, csNewIndexer); +#endif + } + + translator.Push(L, type == null ? base_type : type.BaseType()); + + LuaAPI.xlua_pushasciistring(L, LuaNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + + if (arrayNewIndexer == null) + { + LuaAPI.lua_pushnil(L); + } + else + { +#if GEN_CODE_MINIMIZE + translator.PushCSharpWrapper(L, arrayNewIndexer); +#else + LuaAPI.lua_pushstdcallcfunction(L, arrayNewIndexer); +#endif + } + + LuaAPI.gen_obj_newindexer(L); + + if (type != null) + { + LuaAPI.xlua_pushasciistring(L, LuaNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX);//store in lua newindexs function tables + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + } + + LuaAPI.lua_rawset(L, meta_idx); + //end new index gen + LuaAPI.lua_pop(L, 4); + } + +#if GEN_CODE_MINIMIZE + public static void RegisterFunc(RealStatePtr L, int idx, string name, CSharpWrapper func) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + idx = abs_idx(LuaAPI.lua_gettop(L), idx); + LuaAPI.xlua_pushasciistring(L, name); + translator.PushCSharpWrapper(L, func); + LuaAPI.lua_rawset(L, idx); + } +#else + public static void RegisterFunc(RealStatePtr L, int idx, string name, LuaCSFunction func) + { + idx = abs_idx(LuaAPI.lua_gettop(L), idx); + LuaAPI.xlua_pushasciistring(L, name); + LuaAPI.lua_pushstdcallcfunction(L, func); + LuaAPI.lua_rawset(L, idx); + } +#endif + + public static void RegisterLazyFunc(RealStatePtr L, int idx, string name, Type type, LazyMemberTypes memberType, bool isStatic) + { + idx = abs_idx(LuaAPI.lua_gettop(L), idx); + LuaAPI.xlua_pushasciistring(L, name); + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + translator.PushAny(L, type); + LuaAPI.xlua_pushinteger(L, (int)memberType); + LuaAPI.lua_pushstring(L, name); + LuaAPI.lua_pushboolean(L, isStatic); + LuaAPI.lua_pushstdcallcfunction(L, InternalGlobals.LazyReflectionWrap, 4); + LuaAPI.lua_rawset(L, idx); + } + + public static void RegisterObject(RealStatePtr L, ObjectTranslator translator, int idx, string name, object obj) + { + idx = abs_idx(LuaAPI.lua_gettop(L), idx); + LuaAPI.xlua_pushasciistring(L, name); + translator.PushAny(L, obj); + LuaAPI.lua_rawset(L, idx); + } + +#if GEN_CODE_MINIMIZE + public static void BeginClassRegister(Type type, RealStatePtr L, CSharpWrapper creator, int class_field_count, + int static_getter_count, int static_setter_count) +#else + public static void BeginClassRegister(Type type, RealStatePtr L, LuaCSFunction creator, int class_field_count, + int static_getter_count, int static_setter_count) +#endif + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + LuaAPI.lua_createtable(L, 0, class_field_count); + + LuaAPI.xlua_pushasciistring(L, "UnderlyingSystemType"); + translator.PushAny(L, type); + LuaAPI.lua_rawset(L, -3); + + int cls_table = LuaAPI.lua_gettop(L); + + SetCSTable(L, type, cls_table); + + LuaAPI.lua_createtable(L, 0, 3); + int meta_table = LuaAPI.lua_gettop(L); + if (creator != null) + { + LuaAPI.xlua_pushasciistring(L, "__call"); +#if GEN_CODE_MINIMIZE + translator.PushCSharpWrapper(L, creator); +#else + LuaAPI.lua_pushstdcallcfunction(L, creator); +#endif + LuaAPI.lua_rawset(L, -3); + } + + if (static_getter_count == 0) + { + LuaAPI.lua_pushnil(L); + } + else + { + LuaAPI.lua_createtable(L, 0, static_getter_count); + } + + if (static_setter_count == 0) + { + LuaAPI.lua_pushnil(L); + } + else + { + LuaAPI.lua_createtable(L, 0, static_setter_count); + } + LuaAPI.lua_pushvalue(L, meta_table); + LuaAPI.lua_setmetatable(L, cls_table); + } + + public const int CLS_IDX = -4; + public const int CLS_META_IDX = -3; + public const int CLS_GETTER_IDX = -2; + public const int CLS_SETTER_IDX = -1; + + public static void EndClassRegister(Type type, RealStatePtr L, ObjectTranslator translator) + { + int top = LuaAPI.lua_gettop(L); + int cls_idx = abs_idx(top, CLS_IDX); + int cls_getter_idx = abs_idx(top, CLS_GETTER_IDX); + int cls_setter_idx = abs_idx(top, CLS_SETTER_IDX); + int cls_meta_idx = abs_idx(top, CLS_META_IDX); + + //begin cls index + LuaAPI.xlua_pushasciistring(L, "__index"); + LuaAPI.lua_pushvalue(L, cls_getter_idx); + LuaAPI.lua_pushvalue(L, cls_idx); + translator.Push(L, type.BaseType()); + LuaAPI.xlua_pushasciistring(L, LuaClassIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.gen_cls_indexer(L); + + LuaAPI.xlua_pushasciistring(L, LuaClassIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX);//store in lua indexs function tables + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + + LuaAPI.lua_rawset(L, cls_meta_idx); + //end cls index + + //begin cls newindex + LuaAPI.xlua_pushasciistring(L, "__newindex"); + LuaAPI.lua_pushvalue(L, cls_setter_idx); + translator.Push(L, type.BaseType()); + LuaAPI.xlua_pushasciistring(L, LuaClassNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + LuaAPI.gen_cls_newindexer(L); + + LuaAPI.xlua_pushasciistring(L, LuaClassNewIndexsFieldName); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX);//store in lua newindexs function tables + translator.Push(L, type); + LuaAPI.lua_pushvalue(L, -3); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + + LuaAPI.lua_rawset(L, cls_meta_idx); + //end cls newindex + + LuaAPI.lua_pop(L, 4); + } + + static List getPathOfType(Type type) + { + List path = new List(); + + if (type.Namespace != null) + { + path.AddRange(type.Namespace.Split(new char[] { '.' })); + } + + string class_name = type.ToString().Substring(type.Namespace == null ? 0 : type.Namespace.Length + 1); + + if (type.IsNested) + { + path.AddRange(class_name.Split(new char[] { '+' })); + } + else + { + path.Add(class_name); + } + return path; + } + + public static void LoadCSTable(RealStatePtr L, Type type) + { + int oldTop = LuaAPI.lua_gettop(L); + LuaAPI.xlua_pushasciistring(L, LuaEnv.CSHARP_NAMESPACE); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + + List path = getPathOfType(type); + + for (int i = 0; i < path.Count; ++i) + { + LuaAPI.xlua_pushasciistring(L, path[i]); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + LuaAPI.lua_settop(L, oldTop); + LuaAPI.lua_pushnil(L); + return; + } + if (!LuaAPI.lua_istable(L, -1) && i < path.Count - 1) + { + LuaAPI.lua_settop(L, oldTop); + LuaAPI.lua_pushnil(L); + return; + } + LuaAPI.lua_remove(L, -2); + } + } + + public static void SetCSTable(RealStatePtr L, Type type, int cls_table) + { + int oldTop = LuaAPI.lua_gettop(L); + cls_table = abs_idx(oldTop, cls_table); + LuaAPI.xlua_pushasciistring(L, LuaEnv.CSHARP_NAMESPACE); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + + List path = getPathOfType(type); + + for (int i = 0; i < path.Count - 1; ++i) + { + LuaAPI.xlua_pushasciistring(L, path[i]); + if (0 != LuaAPI.xlua_pgettable(L, -2)) + { + var err = LuaAPI.lua_tostring(L, -1); + LuaAPI.lua_settop(L, oldTop); + throw new Exception("SetCSTable for [" + type + "] error: " + err); + } + if (LuaAPI.lua_isnil(L, -1)) + { + LuaAPI.lua_pop(L, 1); + LuaAPI.lua_createtable(L, 0, 0); + LuaAPI.xlua_pushasciistring(L, path[i]); + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.lua_rawset(L, -4); + } + else if (!LuaAPI.lua_istable(L, -1)) + { + LuaAPI.lua_settop(L, oldTop); + throw new Exception("SetCSTable for [" + type + "] error: ancestors is not a table!"); + } + LuaAPI.lua_remove(L, -2); + } + + LuaAPI.xlua_pushasciistring(L, path[path.Count - 1]); + LuaAPI.lua_pushvalue(L, cls_table); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + + LuaAPI.xlua_pushasciistring(L, LuaEnv.CSHARP_NAMESPACE); + LuaAPI.lua_rawget(L, LuaIndexes.LUA_REGISTRYINDEX); + ObjectTranslatorPool.Instance.Find(L).PushAny(L, type); + LuaAPI.lua_pushvalue(L, cls_table); + LuaAPI.lua_rawset(L, -3); + LuaAPI.lua_pop(L, 1); + } + + public const string LuaIndexsFieldName = "LuaIndexs"; + + public const string LuaNewIndexsFieldName = "LuaNewIndexs"; + + public const string LuaClassIndexsFieldName = "LuaClassIndexs"; + + public const string LuaClassNewIndexsFieldName = "LuaClassNewIndexs"; + + public static bool IsParamsMatch(MethodInfo delegateMethod, MethodInfo bridgeMethod) + { + if (delegateMethod == null || bridgeMethod == null) + { + return false; + } + if (delegateMethod.ReturnType != bridgeMethod.ReturnType) + { + return false; + } + ParameterInfo[] delegateParams = delegateMethod.GetParameters(); + ParameterInfo[] bridgeParams = bridgeMethod.GetParameters(); + if (delegateParams.Length != bridgeParams.Length) + { + return false; + } + + for (int i = 0; i < delegateParams.Length; i++) + { + if (delegateParams[i].ParameterType != bridgeParams[i].ParameterType || delegateParams[i].IsOut != bridgeParams[i].IsOut) + { + return false; + } + } + + var lastPos = delegateParams.Length - 1; + return lastPos < 0 || delegateParams[lastPos].IsDefined(typeof(ParamArrayAttribute), false) == bridgeParams[lastPos].IsDefined(typeof(ParamArrayAttribute), false); + } + + public static bool IsSupportedMethod(MethodInfo method) + { + if (!method.ContainsGenericParameters) + return true; + var methodParameters = method.GetParameters(); + var returnType = method.ReturnType; + var hasValidGenericParameter = false; + var returnTypeValid = !returnType.IsGenericParameter; + for (var i = 0; i < methodParameters.Length; i++) + { + var parameterType = methodParameters[i].ParameterType; + if (parameterType.IsGenericParameter) + { + var parameterConstraints = parameterType.GetGenericParameterConstraints(); + if (parameterConstraints.Length == 0) return false; + foreach (var parameterConstraint in parameterConstraints) + { + if (!parameterConstraint.IsClass() || (parameterConstraint == typeof(ValueType))) + return false; + } + hasValidGenericParameter = true; + if (!returnTypeValid) + { + if (parameterType == returnType) + { + returnTypeValid = true; + } + } + } + } + return hasValidGenericParameter && returnTypeValid; + } + + public static MethodInfo MakeGenericMethodWithConstraints(MethodInfo method) + { + try + { + var genericArguments = method.GetGenericArguments(); + var constraintedArgumentTypes = new Type[genericArguments.Length]; + for (var i = 0; i < genericArguments.Length; i++) + { + var argumentType = genericArguments[i]; + var parameterConstraints = argumentType.GetGenericParameterConstraints(); + constraintedArgumentTypes[i] = parameterConstraints[0]; + } + return method.MakeGenericMethod(constraintedArgumentTypes); + } + catch (Exception) + { + return null; + } + } + + private static Type getExtendedType(MethodInfo method) + { + var type = method.GetParameters()[0].ParameterType; + if (!type.IsGenericParameter) + return type; + var parameterConstraints = type.GetGenericParameterConstraints(); + if (parameterConstraints.Length == 0) + throw new InvalidOperationException(); + + var firstParameterConstraint = parameterConstraints[0]; + if (!firstParameterConstraint.IsClass()) + throw new InvalidOperationException(); + return firstParameterConstraint; + } + + public static bool IsStaticPInvokeCSFunction(LuaCSFunction csFunction) + { +#if UNITY_WSA && !UNITY_EDITOR + return csFunction.GetMethodInfo().IsStatic && csFunction.GetMethodInfo().GetCustomAttribute() != null; +#else + return csFunction.Method.IsStatic && Attribute.IsDefined(csFunction.Method, typeof(MonoPInvokeCallbackAttribute)); +#endif + } + + public static bool IsPublic(Type type) + { + if (type.IsNested) + { + if (!type.IsNestedPublic()) return false; + return IsPublic(type.DeclaringType); + } + if (type.IsGenericType()) + { + var gas = type.GetGenericArguments(); + for (int i = 0; i < gas.Length; i++) + { + if (!IsPublic(gas[i])) + { + return false; + } + } + } + return type.IsPublic(); + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Utils.cs.meta b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Utils.cs.meta new file mode 100644 index 00000000..43e11425 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Assets/XLua/Src/Utils.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a2d5ec59771fe3b4c8d265c415befec7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Lua_Unity_xlua.sln b/luban_examples/Projects/Lua_Unity_xlua_bin/Lua_Unity_xlua.sln new file mode 100644 index 00000000..923dda1b --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Lua_Unity_xlua.sln @@ -0,0 +1,21 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{5013521b-d4aa-4936-3e42-85a78854377a}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{c51a015b-1b47-4a8d-3549-bb6b03b6af80}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5013521b-d4aa-4936-3e42-85a78854377a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5013521b-d4aa-4936-3e42-85a78854377a}.Debug|Any CPU.Build.0 = Debug|Any CPU + {c51a015b-1b47-4a8d-3549-bb6b03b6af80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {c51a015b-1b47-4a8d-3549-bb6b03b6af80}.Debug|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Lua_Unity_xlua_bin.sln b/luban_examples/Projects/Lua_Unity_xlua_bin/Lua_Unity_xlua_bin.sln new file mode 100644 index 00000000..4f859830 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Lua_Unity_xlua_bin.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{8B0DE455-4E78-8ABC-C0E3-BDB8A60B6046}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{02FAA1B7-CF92-067F-C864-2EC47825FD84}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8B0DE455-4E78-8ABC-C0E3-BDB8A60B6046}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8B0DE455-4E78-8ABC-C0E3-BDB8A60B6046}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8B0DE455-4E78-8ABC-C0E3-BDB8A60B6046}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8B0DE455-4E78-8ABC-C0E3-BDB8A60B6046}.Release|Any CPU.Build.0 = Release|Any CPU + {02FAA1B7-CF92-067F-C864-2EC47825FD84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {02FAA1B7-CF92-067F-C864-2EC47825FD84}.Debug|Any CPU.Build.0 = Debug|Any CPU + {02FAA1B7-CF92-067F-C864-2EC47825FD84}.Release|Any CPU.ActiveCfg = Release|Any CPU + {02FAA1B7-CF92-067F-C864-2EC47825FD84}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Luban.unitypackage b/luban_examples/Projects/Lua_Unity_xlua_bin/Luban.unitypackage new file mode 100644 index 00000000..fc93ece9 Binary files /dev/null and b/luban_examples/Projects/Lua_Unity_xlua_bin/Luban.unitypackage differ diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Packages/manifest.json b/luban_examples/Projects/Lua_Unity_xlua_bin/Packages/manifest.json new file mode 100644 index 00000000..be2f65e6 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Packages/manifest.json @@ -0,0 +1,45 @@ +{ + "dependencies": { + "com.code-philosophy.luban": "https://github.com/focus-creative-games/luban_unity.git", + "com.unity.collab-proxy": "1.15.15", + "com.unity.ide.rider": "3.0.13", + "com.unity.ide.visualstudio": "2.0.14", + "com.unity.ide.vscode": "1.2.5", + "com.unity.test-framework": "1.1.31", + "com.unity.textmeshpro": "3.0.6", + "com.unity.timeline": "1.6.4", + "com.unity.ugui": "1.0.0", + "com.unity.visualscripting": "1.7.6", + "com.unity.modules.ai": "1.0.0", + "com.unity.modules.androidjni": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.cloth": "1.0.0", + "com.unity.modules.director": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.physics2d": "1.0.0", + "com.unity.modules.screencapture": "1.0.0", + "com.unity.modules.terrain": "1.0.0", + "com.unity.modules.terrainphysics": "1.0.0", + "com.unity.modules.tilemap": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.uielements": "1.0.0", + "com.unity.modules.umbra": "1.0.0", + "com.unity.modules.unityanalytics": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.unitywebrequesttexture": "1.0.0", + "com.unity.modules.unitywebrequestwww": "1.0.0", + "com.unity.modules.vehicles": "1.0.0", + "com.unity.modules.video": "1.0.0", + "com.unity.modules.vr": "1.0.0", + "com.unity.modules.wind": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Packages/packages-lock.json b/luban_examples/Projects/Lua_Unity_xlua_bin/Packages/packages-lock.json new file mode 100644 index 00000000..c5f8a3c7 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Packages/packages-lock.json @@ -0,0 +1,366 @@ +{ + "dependencies": { + "com.code-philosophy.luban": { + "version": "https://github.com/focus-creative-games/luban_unity.git", + "depth": 0, + "source": "git", + "dependencies": {}, + "hash": "aa41b56501c9a7decf01dfd842a1e6ee894c85bb" + }, + "com.unity.collab-proxy": { + "version": "1.15.15", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.services.core": "1.0.1" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ext.nunit": { + "version": "1.0.6", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.ide.rider": { + "version": "3.0.13", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.visualstudio": { + "version": "2.0.14", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.test-framework": "1.1.9" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.vscode": { + "version": "1.2.5", + "depth": 0, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.services.core": { + "version": "1.0.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.test-framework": { + "version": "1.1.31", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.textmeshpro": { + "version": "3.0.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.timeline": { + "version": "1.6.4", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.modules.director": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ugui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0" + } + }, + "com.unity.visualscripting": { + "version": "1.7.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.modules.ai": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.androidjni": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.animation": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.assetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.audio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.cloth": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.director": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.animation": "1.0.0" + } + }, + "com.unity.modules.imageconversion": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.imgui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.jsonserialize": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.particlesystem": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics2d": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.screencapture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.subsystems": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.terrain": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.terrainphysics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.terrain": "1.0.0" + } + }, + "com.unity.modules.tilemap": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics2d": "1.0.0" + } + }, + "com.unity.modules.ui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.uielements": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.uielementsnative": "1.0.0" + } + }, + "com.unity.modules.uielementsnative": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.umbra": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unityanalytics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.unitywebrequest": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unitywebrequestassetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestaudio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.audio": "1.0.0" + } + }, + "com.unity.modules.unitywebrequesttexture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestwww": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.vehicles": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.video": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.vr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } + }, + "com.unity.modules.wind": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.xr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.subsystems": "1.0.0" + } + } + } +} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/AudioManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/AudioManager.asset new file mode 100644 index 00000000..07ebfb05 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/AudioManager.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 1024 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_SpatializerPlugin: + m_AmbisonicDecoderPlugin: + m_DisableAudio: 0 + m_VirtualizeEffects: 1 + m_RequestedDSPBufferSize: 1024 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ClusterInputManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 00000000..e7886b26 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/DynamicsManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/DynamicsManager.asset new file mode 100644 index 00000000..cdc1f3ea --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_Gravity: {x: 0, y: -9.81, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_SleepThreshold: 0.005 + m_DefaultContactOffset: 0.01 + m_DefaultSolverIterations: 6 + m_DefaultSolverVelocityIterations: 1 + m_QueriesHitBackfaces: 0 + m_QueriesHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_ClothInterCollisionDistance: 0 + m_ClothInterCollisionStiffness: 0 + m_ContactsGeneration: 1 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_AutoSimulation: 1 + m_AutoSyncTransforms: 0 + m_ReuseCollisionCallbacks: 1 + m_ClothInterCollisionSettingsToggle: 0 + m_ContactPairsMode: 0 + m_BroadphaseType: 0 + m_WorldBounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 250, y: 250, z: 250} + m_WorldSubdivisions: 8 + m_FrictionType: 0 + m_EnableEnhancedDeterminism: 0 + m_EnableUnifiedHeightmaps: 1 + m_DefaultMaxAngluarSpeed: 7 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/EditorBuildSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 00000000..0147887e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: [] + m_configObjects: {} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/EditorSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/EditorSettings.asset new file mode 100644 index 00000000..f9205447 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/EditorSettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_ExternalVersionControlSupport: Visible Meta Files + m_SerializationMode: 2 + m_LineEndingsForNewScripts: 0 + m_DefaultBehaviorMode: 0 + m_PrefabRegularEnvironment: {fileID: 0} + m_PrefabUIEnvironment: {fileID: 0} + m_SpritePackerMode: 0 + m_SpritePackerPaddingPower: 1 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 + m_EtcTextureNormalCompressor: 2 + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref + m_ProjectGenerationRootNamespace: + m_CollabEditorSettings: + inProgressEnabled: 1 + m_EnableTextureStreamingInEditMode: 1 + m_EnableTextureStreamingInPlayMode: 1 + m_AsyncShaderCompilation: 1 + m_EnterPlayModeOptionsEnabled: 0 + m_EnterPlayModeOptions: 3 + m_ShowLightmapResolutionOverlay: 1 + m_UseLegacyProbeSampleCount: 0 + m_AssetPipelineMode: 1 + m_CacheServerMode: 0 + m_CacheServerEndpoint: + m_CacheServerNamespacePrefix: default + m_CacheServerEnableDownload: 1 + m_CacheServerEnableUpload: 1 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/GraphicsSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 00000000..43369e3c --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,63 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 13 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_ScreenSpaceShadows: + m_Mode: 1 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_DepthNormals: + m_Mode: 1 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} + m_MotionVectors: + m_Mode: 1 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} + m_LightHalo: + m_Mode: 1 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} + m_LensFlare: + m_Mode: 1 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} + m_AlwaysIncludedShaders: + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, + type: 0} + m_CustomRenderPipeline: {fileID: 0} + m_TransparencySortMode: 0 + m_TransparencySortAxis: {x: 0, y: 0, z: 1} + m_DefaultRenderingPath: 1 + m_DefaultMobileRenderingPath: 1 + m_TierSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_InstancingStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepShadowMask: 1 + m_LightmapKeepSubtractive: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 + m_AlbedoSwatchInfos: [] + m_LightsUseLinearIntensity: 0 + m_LightsUseColorTemperature: 0 + m_LogWhenShaderIsCompiled: 0 + m_AllowEnlightenSupportForUpgradedProject: 0 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/InputManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/InputManager.asset new file mode 100644 index 00000000..17c8f538 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/InputManager.asset @@ -0,0 +1,295 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/MemorySettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/MemorySettings.asset new file mode 100644 index 00000000..5b5facec --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/MemorySettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!387306366 &1 +MemorySettings: + m_ObjectHideFlags: 0 + m_EditorMemorySettings: + m_MainAllocatorBlockSize: -1 + m_ThreadAllocatorBlockSize: -1 + m_MainGfxBlockSize: -1 + m_ThreadGfxBlockSize: -1 + m_CacheBlockSize: -1 + m_TypetreeBlockSize: -1 + m_ProfilerBlockSize: -1 + m_ProfilerEditorBlockSize: -1 + m_BucketAllocatorGranularity: -1 + m_BucketAllocatorBucketsCount: -1 + m_BucketAllocatorBlockSize: -1 + m_BucketAllocatorBlockCount: -1 + m_ProfilerBucketAllocatorGranularity: -1 + m_ProfilerBucketAllocatorBucketsCount: -1 + m_ProfilerBucketAllocatorBlockSize: -1 + m_ProfilerBucketAllocatorBlockCount: -1 + m_TempAllocatorSizeMain: -1 + m_JobTempAllocatorBlockSize: -1 + m_BackgroundJobTempAllocatorBlockSize: -1 + m_JobTempAllocatorReducedBlockSize: -1 + m_TempAllocatorSizeGIBakingWorker: -1 + m_TempAllocatorSizeNavMeshWorker: -1 + m_TempAllocatorSizeAudioWorker: -1 + m_TempAllocatorSizeCloudWorker: -1 + m_TempAllocatorSizeGfx: -1 + m_TempAllocatorSizeJobWorker: -1 + m_TempAllocatorSizeBackgroundWorker: -1 + m_TempAllocatorSizePreloadManager: -1 + m_PlatformMemorySettings: {} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/NavMeshAreas.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 00000000..3b0b7c3d --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,91 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshProjectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + m_LastAgentTypeID: -887442657 + m_Settings: + - serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.75 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_SettingNames: + - Humanoid diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/PackageManagerSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/PackageManagerSettings.asset new file mode 100644 index 00000000..b2a928b4 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/PackageManagerSettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_EnablePreReleasePackages: 0 + m_EnablePackageDependencies: 0 + m_AdvancedSettingsExpanded: 1 + m_ScopedRegistriesSettingsExpanded: 1 + m_SeeAllPackageVersions: 0 + oneTimeWarningShown: 0 + m_Registries: + - m_Id: main + m_Name: + m_Url: https://packages.unity.com + m_Scopes: [] + m_IsDefault: 1 + m_Capabilities: 7 + m_UserSelectedRegistryName: + m_UserAddingNewScopedRegistry: 0 + m_RegistryInfoDraft: + m_Modified: 0 + m_ErrorMessage: + m_UserModificationsInstanceId: -848 + m_OriginalInstanceId: -850 + m_LoadAssets: 0 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/Physics2DSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 00000000..47880b1c --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,56 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_Gravity: {x: 0, y: -9.81} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: 0.2 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_BaumgarteScale: 0.2 + m_BaumgarteTimeOfImpactScale: 0.75 + m_TimeToSleep: 0.5 + m_LinearSleepTolerance: 0.01 + m_AngularSleepTolerance: 2 + m_DefaultContactOffset: 0.01 + m_JobOptions: + serializedVersion: 2 + useMultithreading: 0 + useConsistencySorting: 0 + m_InterpolationPosesPerJob: 100 + m_NewContactsPerJob: 30 + m_CollideContactsPerJob: 100 + m_ClearFlagsPerJob: 200 + m_ClearBodyForcesPerJob: 200 + m_SyncDiscreteFixturesPerJob: 50 + m_SyncContinuousFixturesPerJob: 50 + m_FindNearestContactsPerJob: 100 + m_UpdateTriggerContactsPerJob: 100 + m_IslandSolverCostThreshold: 100 + m_IslandSolverBodyCostScale: 1 + m_IslandSolverContactCostScale: 10 + m_IslandSolverJointCostScale: 10 + m_IslandSolverBodiesPerJob: 50 + m_IslandSolverContactsPerJob: 50 + m_AutoSimulation: 1 + m_QueriesHitTriggers: 1 + m_QueriesStartInColliders: 1 + m_CallbacksOnDisable: 1 + m_ReuseCollisionCallbacks: 1 + m_AutoSyncTransforms: 0 + m_AlwaysShowColliders: 0 + m_ShowColliderSleep: 1 + m_ShowColliderContacts: 0 + m_ShowColliderAABB: 0 + m_ContactArrowScale: 0.2 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/PresetManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/PresetManager.asset new file mode 100644 index 00000000..67a94dae --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/PresetManager.asset @@ -0,0 +1,7 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1386491679 &1 +PresetManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_DefaultPresets: {} diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ProjectSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ProjectSettings.asset new file mode 100644 index 00000000..bec97d59 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,885 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 23 + productGUID: 79020594a22363045965b78210aa6ed4 + AndroidProfiler: 0 + AndroidFilterTouchesWhenObscured: 0 + AndroidEnableSustainedPerformanceMode: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: DefaultCompany + productName: Csharp_Unity + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} + m_ShowUnitySplashScreen: 1 + m_ShowUnitySplashLogo: 1 + m_SplashScreenOverlayOpacity: 1 + m_SplashScreenAnimation: 1 + m_SplashScreenLogoStyle: 1 + m_SplashScreenDrawMode: 0 + m_SplashScreenBackgroundAnimationZoom: 1 + m_SplashScreenLogoAnimationZoom: 1 + m_SplashScreenBackgroundLandscapeAspect: 1 + m_SplashScreenBackgroundPortraitAspect: 1 + m_SplashScreenBackgroundLandscapeUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenBackgroundPortraitUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenLogos: [] + m_VirtualRealitySplashScreen: {fileID: 0} + m_HolographicTrackingLossScreen: {fileID: 0} + defaultScreenWidth: 1024 + defaultScreenHeight: 768 + defaultScreenWidthWeb: 960 + defaultScreenHeightWeb: 600 + m_StereoRenderingPath: 0 + m_ActiveColorSpace: 0 + m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosUseCustomAppBackgroundBehavior: 0 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + preserveFramebufferAlpha: 0 + disableDepthAndStencilBuffers: 0 + androidStartInFullscreen: 1 + androidRenderOutsideSafeArea: 1 + androidUseSwappy: 0 + androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 + defaultIsNativeResolution: 1 + macRetinaSupport: 1 + runInBackground: 1 + captureSingleScreen: 0 + muteOtherAudioSources: 0 + Prepare IOS For Recording: 0 + Force IOS Speakers When Recording: 0 + deferSystemGesturesMode: 0 + hideHomeButton: 0 + submitAnalytics: 1 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + useFlipModelSwapchain: 1 + resizableWindow: 0 + useMacAppStoreValidation: 0 + macAppStoreCategory: public.app-category.games + gpuSkinning: 1 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 1 + allowFullscreenSwitch: 1 + fullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + xboxEnablePIXSampling: 0 + metalFramebufferOnly: 0 + xboxOneResolution: 0 + xboxOneSResolution: 0 + xboxOneXResolution: 3 + xboxOneMonoLoggingLevel: 0 + xboxOneLoggingLevel: 1 + xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 + xboxOnePresentImmediateThreshold: 0 + switchQueueCommandMemory: 0 + switchQueueControlMemory: 16384 + switchQueueComputeMemory: 262144 + switchNVNShaderPoolsGranularity: 33554432 + switchNVNDefaultPoolsGranularity: 16777216 + switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 + vulkanNumSwapchainBuffers: 3 + vulkanEnableSetSRGBWrite: 0 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 + vulkanEnableCommandBufferRecycling: 1 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleVersion: 0.1 + preloadedAssets: [] + metroInputSource: 0 + wsaTransparentSwapchain: 0 + m_HolographicPauseOnTrackingLoss: 1 + xboxOneDisableKinectGpuReservation: 1 + xboxOneEnable7thCore: 1 + vrSettings: + enable360StereoCapture: 0 + isWsaHolographicRemotingEnabled: 0 + enableFrameTimingStats: 0 + useHDRDisplay: 0 + D3DHDRBitDepth: 0 + m_ColorGamuts: 00000000 + targetPixelDensity: 30 + resolutionScalingMode: 0 + androidSupportedAspectRatio: 1 + androidMaxAspectRatio: 2.1 + applicationIdentifier: {} + buildNumber: + Standalone: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 0 + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 22 + AndroidTargetSdkVersion: 0 + AndroidPreferredInstallLocation: 1 + aotOptions: + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + keepLoadedShadersAlive: 0 + StripUnusedMeshComponents: 1 + VertexChannelCompressionMask: 4054 + iPhoneSdkVersion: 988 + iOSTargetOSVersionString: 11.0 + tvOSSdkVersion: 0 + tvOSRequireExtendedGameController: 0 + tvOSTargetOSVersionString: 11.0 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + appleTVSplashScreen: {fileID: 0} + appleTVSplashScreen2x: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSSmallIconLayers2x: [] + tvOSLargeIconLayers: [] + tvOSLargeIconLayers2x: [] + tvOSTopShelfImageLayers: [] + tvOSTopShelfImageLayers2x: [] + tvOSTopShelfImageWideLayers: [] + tvOSTopShelfImageWideLayers2x: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: + iOSDeviceRequirements: [] + iOSURLSchemes: [] + macOSURLSchemes: [] + iOSBackgroundModes: 0 + iOSMetalForceHardShadows: 0 + metalEditorSupport: 1 + metalAPIValidation: 1 + iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 + appleDeveloperTeamID: + iOSManualSigningProvisioningProfileID: + tvOSManualSigningProvisioningProfileID: + iOSManualSigningProvisioningProfileType: 0 + tvOSManualSigningProvisioningProfileType: 0 + appleEnableAutomaticSigning: 0 + iOSRequireARKit: 0 + iOSAutomaticallyDetectAndAddCapabilities: 1 + appleEnableProMotion: 0 + shaderPrecisionModel: 0 + clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea + templatePackageId: com.unity.template.3d@4.2.8 + templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomProguardFile: 0 + AndroidTargetArchitectures: 1 + AndroidTargetDevices: 0 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidBuildApkPerCpuArchitecture: 0 + AndroidTVCompatibility: 0 + AndroidIsGame: 1 + AndroidEnableTango: 0 + androidEnableBanner: 1 + androidUseLowAccuracyLocation: 0 + androidUseCustomKeystore: 0 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidMinifyWithR8: 0 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 + AndroidValidateAppBundleSize: 1 + AndroidAppBundleSizeToValidate: 150 + m_BuildTargetIcons: [] + m_BuildTargetPlatformIcons: + - m_BuildTarget: iPhone + m_Icons: + - m_Textures: [] + m_Width: 180 + m_Height: 180 + m_Kind: 0 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 120 + m_Height: 120 + m_Kind: 0 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 167 + m_Height: 167 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 152 + m_Height: 152 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 76 + m_Height: 76 + m_Kind: 0 + m_SubKind: iPad + - m_Textures: [] + m_Width: 120 + m_Height: 120 + m_Kind: 3 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 80 + m_Height: 80 + m_Kind: 3 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 80 + m_Height: 80 + m_Kind: 3 + m_SubKind: iPad + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 3 + m_SubKind: iPad + - m_Textures: [] + m_Width: 87 + m_Height: 87 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 58 + m_Height: 58 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 29 + m_Height: 29 + m_Kind: 1 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 58 + m_Height: 58 + m_Kind: 1 + m_SubKind: iPad + - m_Textures: [] + m_Width: 29 + m_Height: 29 + m_Kind: 1 + m_SubKind: iPad + - m_Textures: [] + m_Width: 60 + m_Height: 60 + m_Kind: 2 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 2 + m_SubKind: iPhone + - m_Textures: [] + m_Width: 40 + m_Height: 40 + m_Kind: 2 + m_SubKind: iPad + - m_Textures: [] + m_Width: 20 + m_Height: 20 + m_Kind: 2 + m_SubKind: iPad + - m_Textures: [] + m_Width: 1024 + m_Height: 1024 + m_Kind: 4 + m_SubKind: App Store + - m_BuildTarget: Android + m_Icons: + - m_Textures: [] + m_Width: 432 + m_Height: 432 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 324 + m_Height: 324 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 216 + m_Height: 216 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 162 + m_Height: 162 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 108 + m_Height: 108 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 81 + m_Height: 81 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 0 + m_SubKind: + m_BuildTargetBatching: + - m_BuildTarget: Standalone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: tvOS + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: Android + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: iPhone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: WebGL + m_StaticBatching: 0 + m_DynamicBatching: 0 + m_BuildTargetGraphicsJobs: + - m_BuildTarget: MacStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: Switch + m_GraphicsJobs: 1 + - m_BuildTarget: MetroSupport + m_GraphicsJobs: 1 + - m_BuildTarget: AppleTVSupport + m_GraphicsJobs: 0 + - m_BuildTarget: BJMSupport + m_GraphicsJobs: 1 + - m_BuildTarget: LinuxStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: PS4Player + m_GraphicsJobs: 1 + - m_BuildTarget: iOSSupport + m_GraphicsJobs: 0 + - m_BuildTarget: WindowsStandaloneSupport + m_GraphicsJobs: 1 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobs: 1 + - m_BuildTarget: LuminSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AndroidPlayer + m_GraphicsJobs: 0 + - m_BuildTarget: WebGLSupport + m_GraphicsJobs: 0 + m_BuildTargetGraphicsJobMode: + - m_BuildTarget: PS4Player + m_GraphicsJobMode: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobMode: 0 + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: AndroidPlayer + m_APIs: 150000000b000000 + m_Automatic: 1 + - m_BuildTarget: iOSSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: AppleTVSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: WebGLSupport + m_APIs: 0b000000 + m_Automatic: 1 + m_BuildTargetVRSettings: + - m_BuildTarget: Standalone + m_Enabled: 0 + m_Devices: + - Oculus + - OpenVR + openGLRequireES31: 0 + openGLRequireES31AEP: 0 + openGLRequireES32: 0 + m_TemplateCustomTags: {} + mobileMTRendering: + Android: 1 + iPhone: 1 + tvOS: 1 + m_BuildTargetGroupLightmapEncodingQuality: [] + m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetNormalMapEncoding: [] + m_BuildTargetDefaultTextureCompressionFormat: [] + playModeTestRunnerEnabled: 0 + runPlayModeTestAsEditModeTest: 0 + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: + bluetoothUsageDescription: + switchNMETAOverride: + switchNetLibKey: + switchSocketMemoryPoolSize: 6144 + switchSocketAllocatorPoolSize: 128 + switchSocketConcurrencyLimit: 14 + switchScreenResolutionBehavior: 2 + switchUseCPUProfiler: 0 + switchUseGOLDLinker: 0 + switchLTOSetting: 0 + switchApplicationID: 0x01004b9000490000 + switchNSODependencies: + switchTitleNames_0: + switchTitleNames_1: + switchTitleNames_2: + switchTitleNames_3: + switchTitleNames_4: + switchTitleNames_5: + switchTitleNames_6: + switchTitleNames_7: + switchTitleNames_8: + switchTitleNames_9: + switchTitleNames_10: + switchTitleNames_11: + switchTitleNames_12: + switchTitleNames_13: + switchTitleNames_14: + switchTitleNames_15: + switchPublisherNames_0: + switchPublisherNames_1: + switchPublisherNames_2: + switchPublisherNames_3: + switchPublisherNames_4: + switchPublisherNames_5: + switchPublisherNames_6: + switchPublisherNames_7: + switchPublisherNames_8: + switchPublisherNames_9: + switchPublisherNames_10: + switchPublisherNames_11: + switchPublisherNames_12: + switchPublisherNames_13: + switchPublisherNames_14: + switchPublisherNames_15: + switchIcons_0: {fileID: 0} + switchIcons_1: {fileID: 0} + switchIcons_2: {fileID: 0} + switchIcons_3: {fileID: 0} + switchIcons_4: {fileID: 0} + switchIcons_5: {fileID: 0} + switchIcons_6: {fileID: 0} + switchIcons_7: {fileID: 0} + switchIcons_8: {fileID: 0} + switchIcons_9: {fileID: 0} + switchIcons_10: {fileID: 0} + switchIcons_11: {fileID: 0} + switchIcons_12: {fileID: 0} + switchIcons_13: {fileID: 0} + switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} + switchSmallIcons_0: {fileID: 0} + switchSmallIcons_1: {fileID: 0} + switchSmallIcons_2: {fileID: 0} + switchSmallIcons_3: {fileID: 0} + switchSmallIcons_4: {fileID: 0} + switchSmallIcons_5: {fileID: 0} + switchSmallIcons_6: {fileID: 0} + switchSmallIcons_7: {fileID: 0} + switchSmallIcons_8: {fileID: 0} + switchSmallIcons_9: {fileID: 0} + switchSmallIcons_10: {fileID: 0} + switchSmallIcons_11: {fileID: 0} + switchSmallIcons_12: {fileID: 0} + switchSmallIcons_13: {fileID: 0} + switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} + switchManualHTML: + switchAccessibleURLs: + switchLegalInformation: + switchMainThreadStackSize: 1048576 + switchPresenceGroupId: + switchLogoHandling: 0 + switchReleaseVersion: 0 + switchDisplayVersion: 1.0.0 + switchStartupUserAccount: 0 + switchTouchScreenUsage: 0 + switchSupportedLanguagesMask: 0 + switchLogoType: 0 + switchApplicationErrorCodeCategory: + switchUserAccountSaveDataSize: 0 + switchUserAccountSaveDataJournalSize: 0 + switchApplicationAttribute: 0 + switchCardSpecSize: -1 + switchCardSpecClock: -1 + switchRatingsMask: 0 + switchRatingsInt_0: 0 + switchRatingsInt_1: 0 + switchRatingsInt_2: 0 + switchRatingsInt_3: 0 + switchRatingsInt_4: 0 + switchRatingsInt_5: 0 + switchRatingsInt_6: 0 + switchRatingsInt_7: 0 + switchRatingsInt_8: 0 + switchRatingsInt_9: 0 + switchRatingsInt_10: 0 + switchRatingsInt_11: 0 + switchRatingsInt_12: 0 + switchLocalCommunicationIds_0: + switchLocalCommunicationIds_1: + switchLocalCommunicationIds_2: + switchLocalCommunicationIds_3: + switchLocalCommunicationIds_4: + switchLocalCommunicationIds_5: + switchLocalCommunicationIds_6: + switchLocalCommunicationIds_7: + switchParentalControl: 0 + switchAllowsScreenshot: 1 + switchAllowsVideoCapturing: 1 + switchAllowsRuntimeAddOnContentInstall: 0 + switchDataLossConfirmation: 0 + switchUserAccountLockEnabled: 0 + switchSystemResourceMemory: 16777216 + switchSupportedNpadStyles: 22 + switchNativeFsCacheSize: 32 + switchIsHoldTypeHorizontal: 0 + switchSupportedNpadCount: 8 + switchSocketConfigEnabled: 0 + switchTcpInitialSendBufferSize: 32 + switchTcpInitialReceiveBufferSize: 64 + switchTcpAutoSendBufferSizeMax: 256 + switchTcpAutoReceiveBufferSizeMax: 256 + switchUdpSendBufferSize: 9 + switchUdpReceiveBufferSize: 42 + switchSocketBufferEfficiency: 4 + switchSocketInitializeEnabled: 1 + switchNetworkInterfaceManagerInitializeEnabled: 1 + switchPlayerConnectionEnabled: 1 + switchUseNewStyleFilepaths: 0 + switchUseMicroSleepForYield: 1 + switchEnableRamDiskSupport: 0 + switchMicroSleepForYieldTime: 25 + switchRamDiskSpaceSize: 12 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 11 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutInitialWidth: 1920 + ps4VideoOutBaseModeInitialWidth: 1920 + ps4VideoOutReprojectionRate: 60 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4StartupImagesFolder: + ps4IconImagesFolder: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4PlayTogetherPlayerCount: 0 + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4ProGarlicHeapSize: 2560 + playerPrefsMaxSize: 32768 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + enableApplicationExit: 0 + resetTempFolder: 1 + restrictedAudioUsageRights: 0 + ps4UseResolutionFallback: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4UseLowGarlicFragmentationMode: 1 + ps4SocialScreenEnabled: 0 + ps4ScriptOptimizationLevel: 0 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4PatchDayOne: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4attribExclusiveVR: 0 + ps4disableAutoHideSplash: 0 + ps4videoRecordingFeaturesUsed: 0 + ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4GPU800MHz: 1 + ps4attribEyeToEyeDistanceSettingVR: 0 + ps4IncludedModules: [] + ps4attribVROutputEnabled: 0 + monoEnv: + splashScreenBackgroundSourceLandscape: {fileID: 0} + splashScreenBackgroundSourcePortrait: {fileID: 0} + blurSplashScreenBackground: 1 + spritePackerPolicy: + webGLMemorySize: 16 + webGLExceptionSupport: 1 + webGLNameFilesAsHashes: 0 + webGLDataCaching: 1 + webGLDebugSymbols: 0 + webGLEmscriptenArgs: + webGLModulesDirectory: + webGLTemplate: APPLICATION:Default + webGLAnalyzeBuildSize: 0 + webGLUseEmbeddedResources: 0 + webGLCompressionFormat: 1 + webGLWasmArithmeticExceptions: 0 + webGLLinkerTarget: 1 + webGLThreadsSupport: 0 + webGLDecompressionFallback: 0 + scriptingDefineSymbols: {} + additionalCompilerArguments: {} + platformArchitecture: {} + scriptingBackend: {} + il2cppCompilerConfiguration: {} + managedStrippingLevel: {} + incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 + allowUnsafeCode: 1 + useDeterministicCompilation: 1 + enableRoslynAnalyzers: 1 + additionalIl2CppArgs: + scriptingRuntimeVersion: 1 + gcIncremental: 0 + assemblyVersionValidation: 1 + gcWBarrierValidation: 0 + apiCompatibilityLevelPerPlatform: + Standalone: 3 + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + metroPackageName: Template_3D + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: Template_3D + wsaImages: {} + metroTileShortName: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroSupportStreamingInstall: 0 + metroLastRequiredScene: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 2 + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, + a: 1} + metroSplashScreenUseBackgroundColor: 0 + platformCapabilities: {} + metroTargetDeviceFamilies: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + vcxProjDefaultLanguage: + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOneVersion: 1.0.0.0 + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneLanguage: + - enus + XboxOneCapability: [] + XboxOneGameRating: {} + XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 + XboxOneEnableGPUVariability: 1 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + XboxOneXTitleMemory: 8 + XboxOneOverrideIdentityName: + XboxOneOverrideIdentityPublisher: + vrEditorSettings: {} + cloudServicesEnabled: + UNet: 1 + luminIcon: + m_Name: + m_ModelFolderPath: + m_PortalFolderPath: + luminCert: + m_CertPath: + m_SignPackage: 1 + luminIsChannelApp: 0 + luminVersion: + m_VersionCode: 1 + m_VersionName: + apiCompatibilityLevel: 6 + activeInputHandler: 0 + cloudProjectId: + framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] + projectName: + organizationId: + cloudEnabled: 0 + legacyClampBlendShapeWeights: 0 + playerDataPath: + forceSRGBBlit: 1 + virtualTexturingSupportEnabled: 0 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ProjectVersion.txt b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ProjectVersion.txt new file mode 100644 index 00000000..90d6509f --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2021.3.1f1 +m_EditorVersionWithRevision: 2021.3.1f1 (3b70a0754835) diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/QualitySettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/QualitySettings.asset new file mode 100644 index 00000000..7b7658d6 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/QualitySettings.asset @@ -0,0 +1,232 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 5 + m_QualitySettings: + - serializedVersion: 2 + name: Very Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.3 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.4 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 16 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Medium + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 0.7 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 64 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: High + pixelLightCount: 2 + shadows: 2 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 256 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Very High + pixelLightCount: 3 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 1024 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Ultra + pixelLightCount: 4 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 2 + maximumLODLevel: 0 + streamingMipmapsActive: 0 + streamingMipmapsAddAllCameras: 1 + streamingMipmapsMemoryBudget: 512 + streamingMipmapsRenderersPerFrame: 512 + streamingMipmapsMaxLevelReduction: 2 + streamingMipmapsMaxFileIORequests: 1024 + particleRaycastBudget: 4096 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + asyncUploadPersistentBuffer: 1 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 2 + Lumin: 5 + Nintendo 3DS: 5 + Nintendo Switch: 5 + PS4: 5 + PSP2: 2 + Stadia: 5 + Standalone: 5 + WebGL: 3 + Windows Store Apps: 5 + XboxOne: 5 + iPhone: 2 + tvOS: 2 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/TagManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/TagManager.asset new file mode 100644 index 00000000..1c92a784 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/TimeManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/TimeManager.asset new file mode 100644 index 00000000..558a017e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/TimeManager.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: 0.02 + Maximum Allowed Timestep: 0.33333334 + m_TimeScale: 1 + Maximum Particle Timestep: 0.03 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/UnityConnectSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 00000000..fa0b1465 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 1 + m_Enabled: 0 + m_TestMode: 0 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events + m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_TestInitMode: 0 + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com + m_Enabled: 0 + m_LogBufferSize: 10 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_TestMode: 0 + m_InitializeOnStartup: 1 + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_IosGameId: + m_AndroidGameId: + m_GameIds: {} + m_GameId: + PerformanceReportingSettings: + m_Enabled: 0 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/VFXManager.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/VFXManager.asset new file mode 100644 index 00000000..3a95c98b --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/VFXManager.asset @@ -0,0 +1,12 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/VersionControlSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 00000000..dca28814 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/XRSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/XRSettings.asset new file mode 100644 index 00000000..482590c1 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/boot.config b/luban_examples/Projects/Lua_Unity_xlua_bin/ProjectSettings/boot.config new file mode 100644 index 00000000..e69de29b diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.CollabProxy.Editor.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.CollabProxy.Editor.csproj new file mode 100644 index 00000000..08c48c11 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.CollabProxy.Editor.csproj @@ -0,0 +1,636 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {ebf6bd3a-7b54-41ea-5ab9-104258c5657a} + Library + Properties + Unity.CollabProxy.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + UnityEditor.UI + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + {dae50658-008a-c2c1-f8fc-f7644398689e} + UnityEditor.TestRunner + + + {8ac2a682-7e0e-9426-4eab-971d8f205a7b} + UnityEngine.TestRunner + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Rider.Editor.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Rider.Editor.csproj new file mode 100644 index 00000000..6f8db898 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Rider.Editor.csproj @@ -0,0 +1,633 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {e095e29f-88a5-885f-5a86-8594b6dd9543} + Library + Properties + Unity.Rider.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;TEST_FRAMEWORK;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {dae50658-008a-c2c1-f8fc-f7644398689e} + UnityEditor.TestRunner + + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + UnityEditor.UI + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.TextMeshPro.Editor.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.TextMeshPro.Editor.csproj new file mode 100644 index 00000000..c8b35c7a --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.TextMeshPro.Editor.csproj @@ -0,0 +1,667 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {dd58dec0-7473-ce06-1413-6caf9dfe5102} + Library + Properties + Unity.TextMeshPro.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {f76a43f5-6d58-468f-3cc3-e1312893786c} + Unity.TextMeshPro + + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + UnityEditor.UI + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + {dae50658-008a-c2c1-f8fc-f7644398689e} + UnityEditor.TestRunner + + + {8ac2a682-7e0e-9426-4eab-971d8f205a7b} + UnityEngine.TestRunner + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.TextMeshPro.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.TextMeshPro.csproj new file mode 100644 index 00000000..51ce3ffc --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.TextMeshPro.csproj @@ -0,0 +1,667 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {f76a43f5-6d58-468f-3cc3-e1312893786c} + Library + Properties + Unity.TextMeshPro + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + UnityEditor.UI + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Timeline.Editor.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Timeline.Editor.csproj new file mode 100644 index 00000000..bfd15697 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Timeline.Editor.csproj @@ -0,0 +1,856 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {00bee7f9-43d5-64c1-f9cd-7f81aff86377} + Library + Properties + Unity.Timeline.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {0861b246-f8e7-7344-e0ea-39515e6162d0} + Unity.Timeline + + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + UnityEditor.UI + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + {dae50658-008a-c2c1-f8fc-f7644398689e} + UnityEditor.TestRunner + + + {8ac2a682-7e0e-9426-4eab-971d8f205a7b} + UnityEngine.TestRunner + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Timeline.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Timeline.csproj new file mode 100644 index 00000000..3926029c --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.Timeline.csproj @@ -0,0 +1,678 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {0861b246-f8e7-7344-e0ea-39515e6162d0} + Library + Properties + Unity.Timeline + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + UnityEditor.UI + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.VSCode.Editor.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.VSCode.Editor.csproj new file mode 100644 index 00000000..0535f18f --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/Unity.VSCode.Editor.csproj @@ -0,0 +1,623 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {eb0f17dd-c6ea-9af3-9770-fec8734c5cb6} + Library + Properties + Unity.VSCode.Editor + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + UnityEditor.UI + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + {dae50658-008a-c2c1-f8fc-f7644398689e} + UnityEditor.TestRunner + + + {8ac2a682-7e0e-9426-4eab-971d8f205a7b} + UnityEngine.TestRunner + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEditor.TestRunner.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEditor.TestRunner.csproj new file mode 100644 index 00000000..9ac3695e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEditor.TestRunner.csproj @@ -0,0 +1,763 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {dae50658-008a-c2c1-f8fc-f7644398689e} + Library + Properties + UnityEditor.TestRunner + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {8ac2a682-7e0e-9426-4eab-971d8f205a7b} + UnityEngine.TestRunner + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEditor.UI.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEditor.UI.csproj new file mode 100644 index 00000000..e1378623 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEditor.UI.csproj @@ -0,0 +1,649 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {398b6fd9-9af5-6d48-59cd-6821f9bd61c6} + Library + Properties + UnityEditor.UI + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;PACKAGE_PHYSICS;PACKAGE_PHYSICS2D;PACKAGE_ANIMATION;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + {333df85d-8467-049a-595c-f0b6bfb827bc} + UnityEngine.UI + + + {dae50658-008a-c2c1-f8fc-f7644398689e} + UnityEditor.TestRunner + + + {8ac2a682-7e0e-9426-4eab-971d8f205a7b} + UnityEngine.TestRunner + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEngine.TestRunner.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEngine.TestRunner.csproj new file mode 100644 index 00000000..fc21bf8b --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEngine.TestRunner.csproj @@ -0,0 +1,706 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {8ac2a682-7e0e-9426-4eab-971d8f205a7b} + Library + Properties + UnityEngine.TestRunner + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEngine.UI.csproj b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEngine.UI.csproj new file mode 100644 index 00000000..d3e6d99e --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/UnityEngine.UI.csproj @@ -0,0 +1,683 @@ + + + + latest + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {333df85d-8467-049a-595c-f0b6bfb827bc} + Library + Properties + UnityEngine.UI + v4.7.1 + 512 + . + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_2019_4_16;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;PACKAGE_PHYSICS;PACKAGE_PHYSICS2D;PACKAGE_ANIMATION;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + prompt + 4 + 0169 + False + + + true + true + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll + + + D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll + + + D:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/workspace/luban_examples/Projects/Lua_Unity_xlua_bin/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll + + + D:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll + + + + + diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/UserSettings/EditorUserSettings.asset b/luban_examples/Projects/Lua_Unity_xlua_bin/UserSettings/EditorUserSettings.asset new file mode 100644 index 00000000..07e94fdb --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/UserSettings/EditorUserSettings.asset @@ -0,0 +1,31 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!162 &1 +EditorUserSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_ConfigSettings: + RecentlyUsedSceneGuid-0: + value: 00570d5e54005d02090d0a74117b5e444e4f407a2d7d22312c784b32b4b5376e + flags: 0 + RecentlyUsedScenePath-0: + value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d + flags: 0 + vcSharedLogLevel: + value: 0d5e400f0650 + flags: 0 + m_VCAutomaticAdd: 1 + m_VCDebugCom: 0 + m_VCDebugCmd: 0 + m_VCDebugOut: 0 + m_SemanticMergeMode: 2 + m_DesiredImportWorkerCount: 3 + m_StandbyImportWorkerCount: 2 + m_IdleImportWorkerShutdownDelay: 60000 + m_VCShowFailedCheckout: 1 + m_VCOverwriteFailedCheckoutAssets: 1 + m_VCProjectOverlayIcons: 1 + m_VCHierarchyOverlayIcons: 1 + m_VCOtherOverlayIcons: 1 + m_VCAllowAsyncUpdate: 0 + m_ArtifactGarbageCollection: 1 diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/UserSettings/Layouts/default-2021.dwlt b/luban_examples/Projects/Lua_Unity_xlua_bin/UserSettings/Layouts/default-2021.dwlt new file mode 100644 index 00000000..bfade043 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/UserSettings/Layouts/default-2021.dwlt @@ -0,0 +1,947 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_PixelRect: + serializedVersion: 2 + x: 2690 + y: 265 + width: 1206 + height: 715 + m_ShowMode: 4 + m_Title: Game + m_RootView: {fileID: 6} + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_Maximized: 0 +--- !u!114 &2 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 9} + - {fileID: 3} + m_Position: + serializedVersion: 2 + x: 0 + y: 30 + width: 1206 + height: 665 + m_MinSize: {x: 300, y: 200} + m_MaxSize: {x: 24288, y: 16192} + vertical: 0 + controlID: 71 +--- !u!114 &3 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 921 + y: 0 + width: 285 + height: 665 + m_MinSize: {x: 276, y: 71} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 13} + m_Panes: + - {fileID: 13} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &4 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 228 + height: 394 + m_MinSize: {x: 201, y: 221} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 14} + m_Panes: + - {fileID: 14} + m_Selected: 0 + m_LastSelected: 0 +--- !u!114 &5 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: ConsoleWindow + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 394 + width: 921 + height: 271 + m_MinSize: {x: 101, y: 121} + m_MaxSize: {x: 4001, y: 4021} + m_ActualView: {fileID: 17} + m_Panes: + - {fileID: 12} + - {fileID: 17} + m_Selected: 1 + m_LastSelected: 0 +--- !u!114 &6 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 7} + - {fileID: 2} + - {fileID: 8} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1206 + height: 715 + m_MinSize: {x: 875, y: 300} + m_MaxSize: {x: 10000, y: 10000} + m_UseTopView: 1 + m_TopViewHeight: 30 + m_UseBottomView: 1 + m_BottomViewHeight: 20 +--- !u!114 &7 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 1206 + height: 30 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} + m_LastLoadedLayoutName: +--- !u!114 &8 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 0 + y: 695 + width: 1206 + height: 20 + m_MinSize: {x: 0, y: 0} + m_MaxSize: {x: 0, y: 0} +--- !u!114 &9 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 10} + - {fileID: 5} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 921 + height: 665 + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 16192, y: 16192} + vertical: 1 + controlID: 72 +--- !u!114 &10 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_Children: + - {fileID: 4} + - {fileID: 11} + m_Position: + serializedVersion: 2 + x: 0 + y: 0 + width: 921 + height: 394 + m_MinSize: {x: 200, y: 100} + m_MaxSize: {x: 16192, y: 8096} + vertical: 0 + controlID: 73 +--- !u!114 &11 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} + m_Name: SceneView + m_EditorClassIdentifier: + m_Children: [] + m_Position: + serializedVersion: 2 + x: 228 + y: 0 + width: 693 + height: 394 + m_MinSize: {x: 202, y: 221} + m_MaxSize: {x: 4002, y: 4021} + m_ActualView: {fileID: 15} + m_Panes: + - {fileID: 15} + - {fileID: 16} + m_Selected: 0 + m_LastSelected: 1 +--- !u!114 &12 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 230, y: 250} + m_MaxSize: {x: 10000, y: 10000} + m_TitleContent: + m_Text: Project + m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2690 + y: 689 + width: 920 + height: 250 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_SearchFilter: + m_NameFilter: + m_ClassNames: [] + m_AssetLabels: [] + m_AssetBundleNames: [] + m_VersionControlStates: [] + m_SoftLockControlStates: [] + m_ReferencingInstanceIDs: + m_SceneHandles: + m_ShowAllHits: 0 + m_SkipHidden: 0 + m_SearchArea: 1 + m_Folders: + - Assets/Scenes + m_Globs: [] + m_OriginalText: + m_ViewMode: 1 + m_StartGridSize: 64 + m_LastFolders: + - Assets/Scenes + m_LastFoldersGridSize: -1 + m_LastProjectPath: D:\workspace2\luban_examples\Projects\Lua_Unity_xlua_bin + m_LockTracker: + m_IsLocked: 0 + m_FolderTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: a27b0000 + m_LastClickedID: 31650 + m_ExpandedIDs: 000000009a7b000000ca9a3bffffff7f + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_AssetTreeState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_ListAreaState: + m_SelectedInstanceIDs: + m_LastClickedInstanceID: 0 + m_HadKeyboardFocusLastEvent: 1 + m_ExpandedInstanceIDs: c6230000 + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 1 + m_ClientGUIView: {fileID: 0} + m_CreateAssetUtility: + m_EndAction: {fileID: 0} + m_InstanceID: 0 + m_Path: + m_Icon: {fileID: 0} + m_ResourceFile: + m_NewAssetIndexInList: -1 + m_ScrollPosition: {x: 0, y: 0} + m_GridSize: 64 + m_SkipHiddenPackages: 0 + m_DirectoriesAreaWidth: 207 +--- !u!114 &13 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 275, y: 50} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Inspector + m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 3611 + y: 295 + width: 284 + height: 644 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_ObjectsLockedBeforeSerialization: [] + m_InstanceIDsLockedBeforeSerialization: + m_PreviewResizer: + m_CachedPref: 160 + m_ControlHash: -371814159 + m_PrefName: Preview_InspectorPreview + m_LastInspectedObjectInstanceID: -1 + m_LastVerticalScrollValue: 0 + m_GlobalObjectId: + m_InspectorMode: 0 + m_LockTracker: + m_IsLocked: 0 + m_PreviewWindow: {fileID: 0} +--- !u!114 &14 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Hierarchy + m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2690 + y: 295 + width: 227 + height: 373 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_SceneHierarchy: + m_TreeViewState: + scrollPos: {x: 0, y: 0} + m_SelectedIDs: + m_LastClickedID: 0 + m_ExpandedIDs: c4d4ffffc6d5ffff + m_RenameOverlay: + m_UserAcceptedRename: 0 + m_Name: + m_OriginalName: + m_EditFieldRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + m_UserData: 0 + m_IsWaitingForDelay: 0 + m_IsRenaming: 0 + m_OriginalEventType: 11 + m_IsRenamingFilename: 0 + m_ClientGUIView: {fileID: 0} + m_SearchString: + m_ExpandedScenes: [] + m_CurrenRootInstanceID: 0 + m_LockTracker: + m_IsLocked: 0 + m_CurrentSortingName: TransformSorting + m_WindowGUID: 4c969a2b90040154d917609493e03593 +--- !u!114 &15 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Scene + m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2918 + y: 295 + width: 691 + height: 373 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: + - dockPosition: 0 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: -101, y: -26} + snapCorner: 3 + id: Tool Settings + index: 0 + layout: 1 + - dockPosition: 0 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: -141, y: 149} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 1 + id: unity-grid-and-snap-toolbar + index: 1 + layout: 1 + - dockPosition: 1 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: unity-scene-view-toolbar + index: 0 + layout: 1 + - dockPosition: 1 + containerId: overlay-toolbar__top + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 1 + id: unity-search-toolbar + index: 1 + layout: 1 + - dockPosition: 0 + containerId: overlay-container--left + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: unity-transform-toolbar + index: 0 + layout: 2 + - dockPosition: 0 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 1 + snapOffset: {x: 67.5, y: 86} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Orientation + index: 0 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Light Settings + index: 0 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Camera + index: 1 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Cloth Constraints + index: 2 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Cloth Collisions + index: 3 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Navmesh Display + index: 4 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Agent Display + index: 5 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Obstacle Display + index: 6 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Occlusion Culling + index: 7 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Physics Debugger + index: 8 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Scene Visibility + index: 9 + layout: 4 + - dockPosition: 1 + containerId: overlay-container--right + floating: 0 + collapsed: 0 + displayed: 0 + snapOffset: {x: 0, y: 0} + snapOffsetDelta: {x: 0, y: 0} + snapCorner: 0 + id: Scene View/Particles + index: 10 + layout: 4 + m_WindowGUID: cc27987af1a868c49b0894db9c0f5429 + m_Gizmos: 1 + m_OverrideSceneCullingMask: 6917529027641081856 + m_SceneIsLit: 1 + m_SceneLighting: 1 + m_2DMode: 0 + m_isRotationLocked: 0 + m_PlayAudio: 0 + m_AudioPlay: 0 + m_Position: + m_Target: {x: 0, y: 0, z: 0} + speed: 2 + m_Value: {x: 0, y: 0, z: 0} + m_RenderMode: 0 + m_CameraMode: + drawMode: 0 + name: Shaded + section: Shading Mode + m_ValidateTrueMetals: 0 + m_DoValidateTrueMetals: 0 + m_ExposureSliderValue: 0 + m_SceneViewState: + m_AlwaysRefresh: 0 + showFog: 1 + showSkybox: 1 + showFlares: 1 + showImageEffects: 1 + showParticleSystems: 1 + showVisualEffectGraphs: 1 + m_FxEnabled: 1 + m_Grid: + xGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + yGrid: + m_Fade: + m_Target: 1 + speed: 2 + m_Value: 1 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 1, y: 1} + zGrid: + m_Fade: + m_Target: 0 + speed: 2 + m_Value: 0 + m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} + m_Pivot: {x: 0, y: 0, z: 0} + m_Size: {x: 0, y: 0} + m_ShowGrid: 1 + m_GridAxis: 1 + m_gridOpacity: 0.5 + m_Rotation: + m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + speed: 2 + m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} + m_Size: + m_Target: 10 + speed: 2 + m_Value: 10 + m_Ortho: + m_Target: 0 + speed: 2 + m_Value: 0 + m_CameraSettings: + m_Speed: 1 + m_SpeedNormalized: 0.5 + m_SpeedMin: 0.001 + m_SpeedMax: 2 + m_EasingEnabled: 1 + m_EasingDuration: 0.4 + m_AccelerationEnabled: 1 + m_FieldOfViewHorizontalOrVertical: 60 + m_NearClip: 0.03 + m_FarClip: 10000 + m_DynamicClip: 1 + m_OcclusionCulling: 0 + m_LastSceneViewRotation: {x: 0, y: 0, z: 0, w: 0} + m_LastSceneViewOrtho: 0 + m_ReplacementShader: {fileID: 0} + m_ReplacementString: + m_SceneVisActive: 1 + m_LastLockedObject: {fileID: 0} + m_ViewIsLockedToObject: 0 +--- !u!114 &16 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 200, y: 200} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Game + m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2918 + y: 295 + width: 691 + height: 373 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] + m_SerializedViewNames: [] + m_SerializedViewValues: [] + m_PlayModeViewName: GameView + m_ShowGizmos: 0 + m_TargetDisplay: 0 + m_ClearColor: {r: 0, g: 0, b: 0, a: 0} + m_TargetSize: {x: 691, y: 352} + m_TextureFilterMode: 0 + m_TextureHideFlags: 61 + m_RenderIMGUI: 1 + m_EnterPlayModeBehavior: 0 + m_UseMipMap: 0 + m_VSyncEnabled: 0 + m_Gizmos: 0 + m_Stats: 0 + m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000 + m_ZoomArea: + m_HRangeLocked: 0 + m_VRangeLocked: 0 + hZoomLockedByDefault: 0 + vZoomLockedByDefault: 0 + m_HBaseRangeMin: -345.5 + m_HBaseRangeMax: 345.5 + m_VBaseRangeMin: -176 + m_VBaseRangeMax: 176 + m_HAllowExceedBaseRangeMin: 1 + m_HAllowExceedBaseRangeMax: 1 + m_VAllowExceedBaseRangeMin: 1 + m_VAllowExceedBaseRangeMax: 1 + m_ScaleWithWindow: 0 + m_HSlider: 0 + m_VSlider: 0 + m_IgnoreScrollWheelUntilClicked: 0 + m_EnableMouseInput: 0 + m_EnableSliderZoomHorizontal: 0 + m_EnableSliderZoomVertical: 0 + m_UniformScale: 1 + m_UpDirection: 1 + m_DrawArea: + serializedVersion: 2 + x: 0 + y: 21 + width: 691 + height: 352 + m_Scale: {x: 1, y: 1} + m_Translation: {x: 345.5, y: 176} + m_MarginLeft: 0 + m_MarginRight: 0 + m_MarginTop: 0 + m_MarginBottom: 0 + m_LastShownAreaInsideMargins: + serializedVersion: 2 + x: -345.5 + y: -176 + width: 691 + height: 352 + m_MinimalGUI: 1 + m_defaultScale: 1 + m_LastWindowPixelSize: {x: 691, y: 373} + m_ClearInEditMode: 1 + m_NoCameraWarning: 1 + m_LowResolutionForAspectRatios: 01000000000000000000 + m_XRRenderMode: 0 + m_RenderTexture: {fileID: 0} +--- !u!114 &17 +MonoBehaviour: + m_ObjectHideFlags: 52 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 1 + m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_MinSize: {x: 100, y: 100} + m_MaxSize: {x: 4000, y: 4000} + m_TitleContent: + m_Text: Console + m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, + type: 0} + m_Tooltip: + m_Pos: + serializedVersion: 2 + x: 2690 + y: 689 + width: 920 + height: 250 + m_ViewDataDictionary: {fileID: 0} + m_OverlayCanvas: + m_LastAppliedPresetName: Default + m_SaveData: [] diff --git a/luban_examples/Projects/Lua_Unity_xlua_bin/gen.bat b/luban_examples/Projects/Lua_Unity_xlua_bin/gen.bat new file mode 100644 index 00000000..2b140640 --- /dev/null +++ b/luban_examples/Projects/Lua_Unity_xlua_bin/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c lua-bin ^ + -d bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Assets/Lua/Gen ^ + -x outputDataDir=..\GenerateDatas\bytes ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Lua_lua/Gen/schema.lua b/luban_examples/Projects/Lua_lua/Gen/schema.lua new file mode 100644 index 00000000..9769ad29 --- /dev/null +++ b/luban_examples/Projects/Lua_lua/Gen/schema.lua @@ -0,0 +1,1554 @@ + +--[[------------------------------------------------------------------------------ +-- +-- This code was generated by a tool. +-- Changes to this file may cause incorrect behavior and will be lost if +-- the code is regenerated. +-- +--]]------------------------------------------------------------------------------ + + +local enums = +{ + ---@class ai.EExecutor + ---@field public CLIENT integer + ---@field public SERVER integer + ['ai.EExecutor'] = { CLIENT=0, SERVER=1, }; + ---@class ai.EKeyType + ---@field public BOOL integer + ---@field public INT integer + ---@field public FLOAT integer + ---@field public STRING integer + ---@field public VECTOR integer + ---@field public ROTATOR integer + ---@field public NAME integer + ---@field public CLASS integer + ---@field public ENUM integer + ---@field public OBJECT integer + ['ai.EKeyType'] = { BOOL=1, INT=2, FLOAT=3, STRING=4, VECTOR=5, ROTATOR=6, NAME=7, CLASS=8, ENUM=9, OBJECT=10, }; + ---@class ai.EFlowAbortMode + ---@field public NONE integer + ---@field public LOWER_PRIORITY integer + ---@field public SELF integer + ---@field public BOTH integer + ['ai.EFlowAbortMode'] = { NONE=0, LOWER_PRIORITY=1, SELF=2, BOTH=3, }; + ---@class ai.EFinishMode + ---@field public IMMEDIATE integer + ---@field public DELAYED integer + ['ai.EFinishMode'] = { IMMEDIATE=0, DELAYED=1, }; + ---@class ai.ENotifyObserverMode + ---@field public ON_VALUE_CHANGE integer + ---@field public ON_RESULT_CHANGE integer + ['ai.ENotifyObserverMode'] = { ON_VALUE_CHANGE=0, ON_RESULT_CHANGE=1, }; + ---@class ai.EOperator + ---@field public IS_EQUAL_TO integer + ---@field public IS_NOT_EQUAL_TO integer + ---@field public IS_LESS_THAN integer + ---@field public IS_LESS_THAN_OR_EQUAL_TO integer + ---@field public IS_GREAT_THAN integer + ---@field public IS_GREAT_THAN_OR_EQUAL_TO integer + ---@field public CONTAINS integer + ---@field public NOT_CONTAINS integer + ['ai.EOperator'] = { IS_EQUAL_TO=0, IS_NOT_EQUAL_TO=1, IS_LESS_THAN=2, IS_LESS_THAN_OR_EQUAL_TO=3, IS_GREAT_THAN=4, IS_GREAT_THAN_OR_EQUAL_TO=5, CONTAINS=6, NOT_CONTAINS=7, }; + ---@class AudioType + ---@field public UNKNOWN integer + ---@field public ACC integer + ---@field public AIFF integer + ['AudioType'] = { UNKNOWN=0, ACC=1, AIFF=2, }; + ---@class common.EBoolOperator + ---@field public AND integer + ---@field public OR integer + ['common.EBoolOperator'] = { AND=0, OR=1, }; + ---@class item.EItemQuality @道具品质 + ---@field public WHITE integer @白 + ---@field public GREEN integer @绿 + ---@field public BLUE integer @蓝 + ---@field public PURPLE integer @紫 + ---@field public GOLDEN integer @金 + ['item.EItemQuality'] = { WHITE=0, GREEN=1, BLUE=2, PURPLE=3, GOLDEN=4, }; + ---@class item.ECurrencyType + ---@field public DIAMOND integer @钻石 + ---@field public GOLD integer @金币 + ---@field public SILVER integer @银币 + ---@field public EXP integer @经验 + ---@field public POWER_POINT integer @能量点 + ['item.ECurrencyType'] = { DIAMOND=1, GOLD=2, SILVER=3, EXP=4, POWER_POINT=5, }; + ---@class item.EMajorType + ---@field public CURRENCY integer @货币 + ---@field public CLOTH integer @服装 + ---@field public QUEST integer @任务 + ---@field public CONSUMABLES integer @消耗品 + ---@field public TREASURE_BOX integer @宝箱 + ---@field public ACHIEVEMENT_AND_TITLE integer @成就和称谓 + ---@field public HEAD_FRAME integer @头像框 + ---@field public VOICE integer @语音 + ---@field public ACTION integer @动作 + ---@field public EXPANSION integer @扩容道具 + ---@field public MATERIAL integer @制作材料 + ['item.EMajorType'] = { CURRENCY=1, CLOTH=2, QUEST=3, CONSUMABLES=4, TREASURE_BOX=5, ACHIEVEMENT_AND_TITLE=6, HEAD_FRAME=7, VOICE=8, ACTION=9, EXPANSION=10, MATERIAL=11, }; + ---@class item.EMinorType + ---@field public DIAMOND integer @钻石 + ---@field public GOLD integer @金币 + ---@field public SILVER integer @银币 + ---@field public EXP integer @经验 + ---@field public POWER_POINT integer @能量点 + ---@field public HAIR_STYLE integer @发型 + ---@field public COAT integer @外套 + ---@field public UPPER_JACKET integer @上衣 + ---@field public TROUSERS integer @裤子 + ---@field public SKIRT integer @裙子 + ---@field public SOCKS integer @袜子 + ---@field public SHOES integer @鞋子 + ---@field public HAIR_ACCESSORY integer @发饰 + ---@field public HAT integer @帽子 + ---@field public EARRING integer @耳饰 + ---@field public NECKLACE integer @颈饰 + ---@field public BRACELET integer @腕饰 + ---@field public HAIR_CLASP integer @发箍 + ---@field public GLOVE integer @手套 + ---@field public HANDHELD_OBJECT integer @手持物 + ---@field public SPECIAL integer @特殊 + ---@field public BASE_COSMETIC integer @底妆 + ---@field public EYEBROW_COSMETIC integer @眉妆 + ---@field public EYELASH integer @睫毛 + ---@field public COSMETIC_CONTACT_LENSES integer @美瞳 + ---@field public LIP_COSMETIC integer @唇妆 + ---@field public SKIN_COLOR integer @肤色 + ---@field public ONE_PIECE_DRESS integer @连衣裙 + ---@field public SWITCH_CLOTHES_SCENE integer @换装场景 + ---@field public QUEST integer @任务道具 + ---@field public CAST integer @投掷物 + ---@field public SWORD integer @刀剑 + ---@field public BOW_ARROW integer @弓箭 + ---@field public WANDS integer @法杖 + ---@field public SPECIAL_TOOL integer @特殊工具 + ---@field public FOOD integer @食物 + ---@field public TREASURE_BOX integer @宝箱 + ---@field public KEY integer @钥匙 + ---@field public MULTI_CHOOSE_TREASURE_BOX integer @多选一宝箱 + ---@field public ACHIEVEMENT integer @成就相关 + ---@field public TITLE integer @称谓相关 + ---@field public AVATAR_FRAME integer @头像框 + ---@field public VOICE integer @语音 + ---@field public IDLE_POSE integer @特殊待机动作 + ---@field public PHOTO_POSE integer @拍照动作 + ---@field public BAG integer @背包 + ---@field public FRIEND_CAPACITY integer @好友数量 + ---@field public CONSTRUCTION_MATERIAL integer @制作材料 + ---@field public DESIGN_DRAWING integer @设计图纸 + ['item.EMinorType'] = { DIAMOND=101, GOLD=102, SILVER=103, EXP=104, POWER_POINT=105, HAIR_STYLE=210, COAT=220, UPPER_JACKET=230, TROUSERS=241, SKIRT=242, SOCKS=250, SHOES=260, HAIR_ACCESSORY=271, HAT=272, EARRING=273, NECKLACE=274, BRACELET=275, HAIR_CLASP=276, GLOVE=277, HANDHELD_OBJECT=278, SPECIAL=279, BASE_COSMETIC=281, EYEBROW_COSMETIC=282, EYELASH=283, COSMETIC_CONTACT_LENSES=284, LIP_COSMETIC=285, SKIN_COLOR=286, ONE_PIECE_DRESS=290, SWITCH_CLOTHES_SCENE=291, QUEST=301, CAST=401, SWORD=421, BOW_ARROW=422, WANDS=423, SPECIAL_TOOL=424, FOOD=403, TREASURE_BOX=501, KEY=502, MULTI_CHOOSE_TREASURE_BOX=503, ACHIEVEMENT=601, TITLE=602, AVATAR_FRAME=701, VOICE=801, IDLE_POSE=901, PHOTO_POSE=902, BAG=1001, FRIEND_CAPACITY=1002, CONSTRUCTION_MATERIAL=1101, DESIGN_DRAWING=1102, }; + ---@class item.EClothersStarQualityType + ---@field public ONE integer @一星 + ---@field public TWO integer @二星 + ---@field public THREE integer @三星 + ---@field public FOUR integer @四星 + ---@field public FIVE integer @五星 + ---@field public SIX integer @六星 + ---@field public SEVEN integer @七星 + ---@field public EIGHT integer @八星 + ---@field public NINE integer @九星 + ---@field public TEN integer @十星 + ['item.EClothersStarQualityType'] = { ONE=1, TWO=2, THREE=3, FOUR=4, FIVE=5, SIX=6, SEVEN=7, EIGHT=8, NINE=9, TEN=10, }; + ---@class item.EClothersTag + ---@field public FANG_SHAI integer @防晒 + ---@field public WU_ZHE integer @舞者 + ['item.EClothersTag'] = { FANG_SHAI=1, WU_ZHE=2, }; + ---@class item.EUseType + ---@field public MANUAL integer @手动 + ---@field public AUTO integer @自动 + ['item.EUseType'] = { MANUAL=0, AUTO=1, }; + ---@class item.EClothesHidePartType + ---@field public CHEST integer @胸部 + ---@field public HEAD integer @手 + ---@field public SPINE_UPPER integer @脊柱上 + ---@field public SPINE_LOWER integer @脊柱下 + ---@field public HIP integer @臀部 + ---@field public LEG_UPPER integer @腿上 + ---@field public LEG_MIDDLE integer @腿中 + ---@field public LEG_LOWER integer @腿下 + ['item.EClothesHidePartType'] = { CHEST=0, HEAD=1, SPINE_UPPER=2, SPINE_LOWER=3, HIP=4, LEG_UPPER=5, LEG_MIDDLE=6, LEG_LOWER=7, }; + ---@class item.EClothesPropertyType + ---@field public JIAN_YUE integer @简约 + ---@field public HUA_LI integer @华丽 + ---@field public KE_AI integer @可爱 + ---@field public CHENG_SHU integer @成熟 + ---@field public HUO_PO integer @活泼 + ---@field public YOU_YA integer @优雅 + ---@field public QING_CHUN integer @清纯 + ---@field public XING_GAN integer @性感 + ---@field public QING_LIANG integer @清凉 + ---@field public BAO_NUAN integer @保暖 + ['item.EClothesPropertyType'] = { JIAN_YUE=1, HUA_LI=2, KE_AI=3, CHENG_SHU=4, HUO_PO=5, YOU_YA=6, QING_CHUN=7, XING_GAN=8, QING_LIANG=9, BAO_NUAN=10, }; + ---@class test.DemoEnum + ---@field public NONE integer + ---@field public A integer @aa + ---@field public B integer @bb + ---@field public C integer @cc + ---@field public D integer @dd + ['test.DemoEnum'] = { NONE=0, A=1, B=2, C=4, D=5, }; + ---@class test.DemoFlag + ---@field public A integer + ---@field public B integer + ---@field public C integer + ---@field public D integer + ['test.DemoFlag'] = { A=1, B=2, C=4, D=8, }; + ---@class test.ETestUeType + ---@field public WHITE integer @白 + ---@field public BLACK integer + ['test.ETestUeType'] = { WHITE=0, BLACK=1, }; + ---@class test.ETestEmptyEnum + ['test.ETestEmptyEnum'] = { }; + ---@class test.ETestEmptyEnum2 + ---@field public SMALL_THAN_256 integer + ---@field public X_256 integer + ---@field public X_257 integer + ['test.ETestEmptyEnum2'] = { SMALL_THAN_256=255, X_256=256, X_257=257, }; + ---@class test.ETestQuality + ---@field public A integer @最高品质 + ---@field public B integer @黑色的 + ---@field public C integer @蓝色的 + ---@field public D integer @最差品质 + ['test.ETestQuality'] = { A=1, B=2, C=3, D=4, }; + ---@class test.AccessFlag + ---@field public WRITE integer + ---@field public READ integer + ---@field public TRUNCATE integer + ---@field public NEW integer + ---@field public READ_WRITE integer + ['test.AccessFlag'] = { WRITE=1, READ=2, TRUNCATE=4, NEW=8, READ_WRITE=3, }; +} + +local beans = {} + do + ---@class ai.Blackboard + ---@field public name string + ---@field public desc string + ---@field public parent_name string + ---@field public keys ai.BlackboardKey[] + local class = { + { name='name', type='string'}, + { name='desc', type='string'}, + { name='parent_name', type='string'}, + { name='keys', type='ai.BlackboardKey[]'}, + } + beans['ai.Blackboard'] = class + end + do + ---@class ai.BlackboardKey + ---@field public name string + ---@field public desc string + ---@field public is_static boolean + ---@field public type integer + ---@field public type_class_name string + local class = { + { name='name', type='string'}, + { name='desc', type='string'}, + { name='is_static', type='boolean'}, + { name='type', type='integer'}, + { name='type_class_name', type='string'}, + } + beans['ai.BlackboardKey'] = class + end + do + ---@class ai.BehaviorTree + ---@field public id integer + ---@field public name string + ---@field public desc string + ---@field public blackboard_id string + ---@field public root ai.ComposeNode + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='desc', type='string'}, + { name='blackboard_id', type='string'}, + { name='root', type='ai.ComposeNode'}, + } + beans['ai.BehaviorTree'] = class + end + do + ---@class ai.Node + ---@field public id integer + ---@field public node_name string + local class = { + { name='id', type='integer'}, + { name='node_name', type='string'}, + } + beans['ai.Node'] = class + end + do + ---@class ai.Service :ai.Node + local class = { + } + beans['ai.Service'] = class + end + do + ---@class ai.UeSetDefaultFocus :ai.Service + ---@field public keyboard_key string + local class = { + { name='keyboard_key', type='string'}, + } + beans['ai.UeSetDefaultFocus'] = class + end + do + ---@class ai.ExecuteTimeStatistic :ai.Service + local class = { + } + beans['ai.ExecuteTimeStatistic'] = class + end + do + ---@class ai.ChooseTarget :ai.Service + ---@field public result_target_key string + local class = { + { name='result_target_key', type='string'}, + } + beans['ai.ChooseTarget'] = class + end + do + ---@class ai.KeepFaceTarget :ai.Service + ---@field public target_actor_key string + local class = { + { name='target_actor_key', type='string'}, + } + beans['ai.KeepFaceTarget'] = class + end + do + ---@class ai.GetOwnerPlayer :ai.Service + ---@field public player_actor_key string + local class = { + { name='player_actor_key', type='string'}, + } + beans['ai.GetOwnerPlayer'] = class + end + do + ---@class ai.UpdateDailyBehaviorProps :ai.Service + ---@field public satiety_key string + ---@field public energy_key string + ---@field public mood_key string + ---@field public satiety_lower_threshold_key string + ---@field public satiety_upper_threshold_key string + ---@field public energy_lower_threshold_key string + ---@field public energy_upper_threshold_key string + ---@field public mood_lower_threshold_key string + ---@field public mood_upper_threshold_key string + local class = { + { name='satiety_key', type='string'}, + { name='energy_key', type='string'}, + { name='mood_key', type='string'}, + { name='satiety_lower_threshold_key', type='string'}, + { name='satiety_upper_threshold_key', type='string'}, + { name='energy_lower_threshold_key', type='string'}, + { name='energy_upper_threshold_key', type='string'}, + { name='mood_lower_threshold_key', type='string'}, + { name='mood_upper_threshold_key', type='string'}, + } + beans['ai.UpdateDailyBehaviorProps'] = class + end + do + ---@class ai.Decorator :ai.Node + ---@field public flow_abort_mode integer + local class = { + { name='flow_abort_mode', type='integer'}, + } + beans['ai.Decorator'] = class + end + do + ---@class ai.UeLoop :ai.Decorator + ---@field public num_loops integer + ---@field public infinite_loop boolean + ---@field public infinite_loop_timeout_time number + local class = { + { name='num_loops', type='integer'}, + { name='infinite_loop', type='boolean'}, + { name='infinite_loop_timeout_time', type='number'}, + } + beans['ai.UeLoop'] = class + end + do + ---@class ai.UeCooldown :ai.Decorator + ---@field public cooldown_time number + local class = { + { name='cooldown_time', type='number'}, + } + beans['ai.UeCooldown'] = class + end + do + ---@class ai.UeTimeLimit :ai.Decorator + ---@field public limit_time number + local class = { + { name='limit_time', type='number'}, + } + beans['ai.UeTimeLimit'] = class + end + do + ---@class ai.UeBlackboard :ai.Decorator + ---@field public notify_observer integer + ---@field public blackboard_key string + ---@field public key_query ai.KeyQueryOperator + local class = { + { name='notify_observer', type='integer'}, + { name='blackboard_key', type='string'}, + { name='key_query', type='ai.KeyQueryOperator'}, + } + beans['ai.UeBlackboard'] = class + end + do + ---@class ai.KeyQueryOperator + local class = { + } + beans['ai.KeyQueryOperator'] = class + end + do + ---@class ai.IsSet :ai.KeyQueryOperator + local class = { + } + beans['ai.IsSet'] = class + end + do + ---@class ai.IsNotSet :ai.KeyQueryOperator + local class = { + } + beans['ai.IsNotSet'] = class + end + do + ---@class ai.BinaryOperator :ai.KeyQueryOperator + ---@field public oper integer + ---@field public data ai.KeyData + local class = { + { name='oper', type='integer'}, + { name='data', type='ai.KeyData'}, + } + beans['ai.BinaryOperator'] = class + end + do + ---@class ai.KeyData + local class = { + } + beans['ai.KeyData'] = class + end + do + ---@class ai.FloatKeyData :ai.KeyData + ---@field public value number + local class = { + { name='value', type='number'}, + } + beans['ai.FloatKeyData'] = class + end + do + ---@class ai.IntKeyData :ai.KeyData + ---@field public value integer + local class = { + { name='value', type='integer'}, + } + beans['ai.IntKeyData'] = class + end + do + ---@class ai.StringKeyData :ai.KeyData + ---@field public value string + local class = { + { name='value', type='string'}, + } + beans['ai.StringKeyData'] = class + end + do + ---@class ai.BlackboardKeyData :ai.KeyData + ---@field public value string + local class = { + { name='value', type='string'}, + } + beans['ai.BlackboardKeyData'] = class + end + do + ---@class ai.UeForceSuccess :ai.Decorator + local class = { + } + beans['ai.UeForceSuccess'] = class + end + do + ---@class ai.IsAtLocation :ai.Decorator + ---@field public acceptable_radius number + ---@field public keyboard_key string + ---@field public inverse_condition boolean + local class = { + { name='acceptable_radius', type='number'}, + { name='keyboard_key', type='string'}, + { name='inverse_condition', type='boolean'}, + } + beans['ai.IsAtLocation'] = class + end + do + ---@class ai.DistanceLessThan :ai.Decorator + ---@field public actor1_key string + ---@field public actor2_key string + ---@field public distance number + ---@field public reverse_result boolean + local class = { + { name='actor1_key', type='string'}, + { name='actor2_key', type='string'}, + { name='distance', type='number'}, + { name='reverse_result', type='boolean'}, + } + beans['ai.DistanceLessThan'] = class + end + do + ---@class ai.FlowNode :ai.Node + ---@field public decorators ai.Decorator[] + ---@field public services ai.Service[] + local class = { + { name='decorators', type='ai.Decorator[]'}, + { name='services', type='ai.Service[]'}, + } + beans['ai.FlowNode'] = class + end + do + ---@class ai.ComposeNode :ai.FlowNode + local class = { + } + beans['ai.ComposeNode'] = class + end + do + ---@class ai.Sequence :ai.ComposeNode + ---@field public children ai.FlowNode[] + local class = { + { name='children', type='ai.FlowNode[]'}, + } + beans['ai.Sequence'] = class + end + do + ---@class ai.Selector :ai.ComposeNode + ---@field public children ai.FlowNode[] + local class = { + { name='children', type='ai.FlowNode[]'}, + } + beans['ai.Selector'] = class + end + do + ---@class ai.SimpleParallel :ai.ComposeNode + ---@field public finish_mode integer + ---@field public main_task ai.Task + ---@field public background_node ai.FlowNode + local class = { + { name='finish_mode', type='integer'}, + { name='main_task', type='ai.Task'}, + { name='background_node', type='ai.FlowNode'}, + } + beans['ai.SimpleParallel'] = class + end + do + ---@class ai.Task :ai.FlowNode + ---@field public ignore_restart_self boolean + local class = { + { name='ignore_restart_self', type='boolean'}, + } + beans['ai.Task'] = class + end + do + ---@class ai.UeWait :ai.Task + ---@field public wait_time number + ---@field public random_deviation number + local class = { + { name='wait_time', type='number'}, + { name='random_deviation', type='number'}, + } + beans['ai.UeWait'] = class + end + do + ---@class ai.UeWaitBlackboardTime :ai.Task + ---@field public blackboard_key string + local class = { + { name='blackboard_key', type='string'}, + } + beans['ai.UeWaitBlackboardTime'] = class + end + do + ---@class ai.MoveToTarget :ai.Task + ---@field public target_actor_key string + ---@field public acceptable_radius number + local class = { + { name='target_actor_key', type='string'}, + { name='acceptable_radius', type='number'}, + } + beans['ai.MoveToTarget'] = class + end + do + ---@class ai.ChooseSkill :ai.Task + ---@field public target_actor_key string + ---@field public result_skill_id_key string + local class = { + { name='target_actor_key', type='string'}, + { name='result_skill_id_key', type='string'}, + } + beans['ai.ChooseSkill'] = class + end + do + ---@class ai.MoveToRandomLocation :ai.Task + ---@field public origin_position_key string + ---@field public radius number + local class = { + { name='origin_position_key', type='string'}, + { name='radius', type='number'}, + } + beans['ai.MoveToRandomLocation'] = class + end + do + ---@class ai.MoveToLocation :ai.Task + ---@field public acceptable_radius number + local class = { + { name='acceptable_radius', type='number'}, + } + beans['ai.MoveToLocation'] = class + end + do + ---@class ai.DebugPrint :ai.Task + ---@field public text string + local class = { + { name='text', type='string'}, + } + beans['ai.DebugPrint'] = class + end + do + ---@class common.GlobalConfig + ---@field public x1 integer @背包容量 + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public x5 integer + ---@field public x6 integer + ---@field public x7 integer[] + local class = { + { name='x1', type='integer'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x4', type='integer'}, + { name='x5', type='integer'}, + { name='x6', type='integer'}, + { name='x7', type='integer[]'}, + } + beans['common.GlobalConfig'] = class + end + do + ---@class item.Item @道具 + ---@field public id integer @道具id + ---@field public name string + ---@field public minor_type integer + ---@field public quality integer + ---@field public icon_backgroud string + ---@field public icon_mask string + ---@field public desc string + ---@field public show_order integer + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='minor_type', type='integer'}, + { name='quality', type='integer'}, + { name='icon_backgroud', type='string'}, + { name='icon_mask', type='string'}, + { name='desc', type='string'}, + { name='show_order', type='integer'}, + } + beans['item.Item'] = class + end + do + ---@class l10n.L10NDemo + ---@field public id integer + ---@field public text string + local class = { + { name='id', type='integer'}, + { name='text', type='string'}, + } + beans['l10n.L10NDemo'] = class + end + do + ---@class l10n.PatchDemo + ---@field public id integer + ---@field public value integer + local class = { + { name='id', type='integer'}, + { name='value', type='integer'}, + } + beans['l10n.PatchDemo'] = class + end + do + ---@class tag.TestTag + ---@field public id integer + ---@field public value string + local class = { + { name='id', type='integer'}, + { name='value', type='string'}, + } + beans['tag.TestTag'] = class + end + do + ---@class test.DemoType2 + ---@field public x4 integer + ---@field public x1 boolean + ---@field public x2 integer + ---@field public x3 integer + ---@field public x5 integer + ---@field public x6 number + ---@field public x7 number + ---@field public x8_0 integer + ---@field public x8 integer + ---@field public x9 integer + ---@field public x10 string + ---@field public x12 test.DemoType1 + ---@field public x13 integer + ---@field public x14 test.DemoDynamic + ---@field public s1 string + ---@field public t1 integer + ---@field public k1 integer[] + ---@field public k2 integer[] + ---@field public k5 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k15 test.DemoDynamic[] + local class = { + { name='x4', type='integer'}, + { name='x1', type='boolean'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='x7', type='number'}, + { name='x8_0', type='integer'}, + { name='x8', type='integer'}, + { name='x9', type='integer'}, + { name='x10', type='string'}, + { name='x12', type='test.DemoType1'}, + { name='x13', type='integer'}, + { name='x14', type='test.DemoDynamic'}, + { name='s1', type='string'}, + { name='t1', type='integer'}, + { name='k1', type='integer[]'}, + { name='k2', type='integer[]'}, + { name='k5', type='integer[]'}, + { name='k8', type='table'}, + { name='k9', type='test.DemoE2[]'}, + { name='k15', type='test.DemoDynamic[]'}, + } + beans['test.DemoType2'] = class + end + do + ---@class test.DemoType1 + ---@field public x1 integer + local class = { + { name='x1', type='integer'}, + } + beans['test.DemoType1'] = class + end + do + ---@class test.DemoDynamic + ---@field public x1 integer + local class = { + { name='x1', type='integer'}, + } + beans['test.DemoDynamic'] = class + end + do + ---@class test.DemoD2 :test.DemoDynamic + ---@field public x2 integer + local class = { + { name='x2', type='integer'}, + } + beans['test.DemoD2'] = class + end + do + ---@class test.DemoD3 :test.DemoDynamic + ---@field public x3 integer + local class = { + { name='x3', type='integer'}, + } + beans['test.DemoD3'] = class + end + do + ---@class test.DemoE1 :test.DemoD3 + ---@field public x4 integer + local class = { + { name='x4', type='integer'}, + } + beans['test.DemoE1'] = class + end + do + ---@class test.login.RoleInfo :test.DemoD3 + ---@field public role_id integer + local class = { + { name='role_id', type='integer'}, + } + beans['test.login.RoleInfo'] = class + end + do + ---@class test.DemoD5 :test.DemoDynamic + ---@field public time test.DateTimeRange + local class = { + { name='time', type='test.DateTimeRange'}, + } + beans['test.DemoD5'] = class + end + do + ---@class test.DateTimeRange + ---@field public start_time integer + ---@field public end_time integer + local class = { + { name='start_time', type='integer'}, + { name='end_time', type='integer'}, + } + beans['test.DateTimeRange'] = class + end + do + ---@class test.DemoE2 + ---@field public y1 integer + ---@field public y2 boolean + local class = { + { name='y1', type='integer'}, + { name='y2', type='boolean'}, + } + beans['test.DemoE2'] = class + end + do + ---@class test.DemoSingletonType + ---@field public id integer + ---@field public name string + ---@field public date test.DemoDynamic + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='date', type='test.DemoDynamic'}, + } + beans['test.DemoSingletonType'] = class + end + do + ---@class test.NotIndexList + ---@field public x integer + ---@field public y integer + local class = { + { name='x', type='integer'}, + { name='y', type='integer'}, + } + beans['test.NotIndexList'] = class + end + do + ---@class test.MultiUnionIndexList + ---@field public id1 integer + ---@field public id2 integer + ---@field public id3 string + ---@field public num integer + ---@field public desc string + local class = { + { name='id1', type='integer'}, + { name='id2', type='integer'}, + { name='id3', type='string'}, + { name='num', type='integer'}, + { name='desc', type='string'}, + } + beans['test.MultiUnionIndexList'] = class + end + do + ---@class test.MultiIndexList + ---@field public id1 integer + ---@field public id2 integer + ---@field public id3 string + ---@field public num integer + ---@field public desc string + local class = { + { name='id1', type='integer'}, + { name='id2', type='integer'}, + { name='id3', type='string'}, + { name='num', type='integer'}, + { name='desc', type='string'}, + } + beans['test.MultiIndexList'] = class + end + do + ---@class test.MultiRowRecord + ---@field public id integer + ---@field public name string + ---@field public one_rows test.MultiRowType1[] + ---@field public multi_rows1 test.MultiRowType1[] + ---@field public multi_rows2 test.MultiRowType1[] + ---@field public multi_rows4 table + ---@field public multi_rows5 test.MultiRowType3[] + ---@field public multi_rows6 table + ---@field public multi_rows7 table + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='one_rows', type='test.MultiRowType1[]'}, + { name='multi_rows1', type='test.MultiRowType1[]'}, + { name='multi_rows2', type='test.MultiRowType1[]'}, + { name='multi_rows4', type='table'}, + { name='multi_rows5', type='test.MultiRowType3[]'}, + { name='multi_rows6', type='table'}, + { name='multi_rows7', type='table'}, + } + beans['test.MultiRowRecord'] = class + end + do + ---@class test.MultiRowType1 + ---@field public id integer + ---@field public x integer + local class = { + { name='id', type='integer'}, + { name='x', type='integer'}, + } + beans['test.MultiRowType1'] = class + end + do + ---@class test.MultiRowType2 + ---@field public id integer + ---@field public x integer + ---@field public y number + local class = { + { name='id', type='integer'}, + { name='x', type='integer'}, + { name='y', type='number'}, + } + beans['test.MultiRowType2'] = class + end + do + ---@class test.MultiRowType3 + ---@field public id integer + ---@field public items test.MultiRowType1[] + local class = { + { name='id', type='integer'}, + { name='items', type='test.MultiRowType1[]'}, + } + beans['test.MultiRowType3'] = class + end + do + ---@class test.TestMultiColumn + ---@field public id integer + ---@field public a test.Foo + ---@field public b test.Foo + ---@field public c test.Foo + local class = { + { name='id', type='integer'}, + { name='a', type='test.Foo'}, + { name='b', type='test.Foo'}, + { name='c', type='test.Foo'}, + } + beans['test.TestMultiColumn'] = class + end + do + ---@class test.Foo + ---@field public y1 integer + ---@field public y2 integer + ---@field public y3 integer + local class = { + { name='y1', type='integer'}, + { name='y2', type='integer'}, + { name='y3', type='integer'}, + } + beans['test.Foo'] = class + end + do + ---@class test.MultiRowTitle + ---@field public id integer + ---@field public name string + ---@field public x1 test.H1 + ---@field public x2_0 test.H2 + ---@field public x2 test.H2[] + ---@field public x3 test.H2[] + ---@field public x4 test.H2[] + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='x1', type='test.H1'}, + { name='x2_0', type='test.H2'}, + { name='x2', type='test.H2[]'}, + { name='x3', type='test.H2[]'}, + { name='x4', type='test.H2[]'}, + } + beans['test.MultiRowTitle'] = class + end + do + ---@class test.H1 + ---@field public y2 test.H2 + ---@field public y3 integer + local class = { + { name='y2', type='test.H2'}, + { name='y3', type='integer'}, + } + beans['test.H1'] = class + end + do + ---@class test.H2 + ---@field public z2 integer + ---@field public z3 integer + local class = { + { name='z2', type='integer'}, + { name='z3', type='integer'}, + } + beans['test.H2'] = class + end + do + ---@class test.TestNull + ---@field public id integer + ---@field public x1 integer + ---@field public x2 integer + ---@field public x3 test.DemoType1 + ---@field public x4 test.DemoDynamic + ---@field public s1 string + ---@field public s2 string + local class = { + { name='id', type='integer'}, + { name='x1', type='integer'}, + { name='x2', type='integer'}, + { name='x3', type='test.DemoType1'}, + { name='x4', type='test.DemoDynamic'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + } + beans['test.TestNull'] = class + end + do + ---@class test.DemoPrimitiveTypesTable + ---@field public x1 boolean + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public x5 integer + ---@field public x6 number + ---@field public x7 number + ---@field public s1 string + ---@field public s2 string + ---@field public v2 vec2 + ---@field public v3 vec3 + ---@field public v4 vec4 + ---@field public t1 integer + local class = { + { name='x1', type='boolean'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x4', type='integer'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='x7', type='number'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + { name='v2', type='vec2'}, + { name='v3', type='vec3'}, + { name='v4', type='vec4'}, + { name='t1', type='integer'}, + } + beans['test.DemoPrimitiveTypesTable'] = class + end + do + ---@class vec2 + ---@field public x number + ---@field public y number + local class = { + { name='x', type='number'}, + { name='y', type='number'}, + } + beans['vec2'] = class + end + do + ---@class vec3 + ---@field public x number + ---@field public y number + ---@field public z number + local class = { + { name='x', type='number'}, + { name='y', type='number'}, + { name='z', type='number'}, + } + beans['vec3'] = class + end + do + ---@class vec4 + ---@field public x number + ---@field public y number + ---@field public z number + ---@field public w number + local class = { + { name='x', type='number'}, + { name='y', type='number'}, + { name='z', type='number'}, + { name='w', type='number'}, + } + beans['vec4'] = class + end + do + ---@class test.TestString + ---@field public id string + ---@field public s1 string + ---@field public s2 string + ---@field public cs1 test.CompactString + ---@field public cs2 test.CompactString + local class = { + { name='id', type='string'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + { name='cs1', type='test.CompactString'}, + { name='cs2', type='test.CompactString'}, + } + beans['test.TestString'] = class + end + do + ---@class test.CompactString + ---@field public id integer + ---@field public s2 string + ---@field public s3 string + local class = { + { name='id', type='integer'}, + { name='s2', type='string'}, + { name='s3', type='string'}, + } + beans['test.CompactString'] = class + end + do + ---@class test.DemoGroup + ---@field public id integer + ---@field public x5 test.InnerGroup + local class = { + { name='id', type='integer'}, + { name='x5', type='test.InnerGroup'}, + } + beans['test.DemoGroup'] = class + end + do + ---@class test.InnerGroup + ---@field public y1 integer + local class = { + { name='y1', type='integer'}, + } + beans['test.InnerGroup'] = class + end + do + ---@class test.TestGlobal + ---@field public unlock_equip integer + ---@field public unlock_hero integer + local class = { + { name='unlock_equip', type='integer'}, + { name='unlock_hero', type='integer'}, + } + beans['test.TestGlobal'] = class + end + do + ---@class test.TestBeRef + ---@field public id integer + ---@field public count integer + local class = { + { name='id', type='integer'}, + { name='count', type='integer'}, + } + beans['test.TestBeRef'] = class + end + do + ---@class test.TestRef + ---@field public id integer + ---@field public x1 integer + ---@field public x1_2 integer + ---@field public x2 integer + ---@field public x3 integer + ---@field public x4 integer + ---@field public a1 integer[] + ---@field public a2 integer[] + ---@field public b1 integer[] + ---@field public b2 integer[] + ---@field public c1 integer[] + ---@field public c2 integer[] + ---@field public d1 table + ---@field public d2 table + ---@field public e1 integer + ---@field public e2 integer + ---@field public e3 string + ---@field public f1 integer + ---@field public f2 integer + ---@field public f3 string + ---@field public s1 test.RefDynamicBase + local class = { + { name='id', type='integer'}, + { name='x1', type='integer'}, + { name='x1_2', type='integer'}, + { name='x2', type='integer'}, + { name='x3', type='integer'}, + { name='x4', type='integer'}, + { name='a1', type='integer[]'}, + { name='a2', type='integer[]'}, + { name='b1', type='integer[]'}, + { name='b2', type='integer[]'}, + { name='c1', type='integer[]'}, + { name='c2', type='integer[]'}, + { name='d1', type='table'}, + { name='d2', type='table'}, + { name='e1', type='integer'}, + { name='e2', type='integer'}, + { name='e3', type='string'}, + { name='f1', type='integer'}, + { name='f2', type='integer'}, + { name='f3', type='string'}, + { name='s1', type='test.RefDynamicBase'}, + } + beans['test.TestRef'] = class + end + do + ---@class test.RefDynamicBase + ---@field public x integer + local class = { + { name='x', type='integer'}, + } + beans['test.RefDynamicBase'] = class + end + do + ---@class test.RefBean :test.RefDynamicBase + ---@field public arr integer[] + local class = { + { name='arr', type='integer[]'}, + } + beans['test.RefBean'] = class + end + do + ---@class test.TestSize + ---@field public id integer + ---@field public x1 integer[] + ---@field public x2 integer[] + ---@field public x3 integer[] + ---@field public x4 table + local class = { + { name='id', type='integer'}, + { name='x1', type='integer[]'}, + { name='x2', type='integer[]'}, + { name='x3', type='integer[]'}, + { name='x4', type='table'}, + } + beans['test.TestSize'] = class + end + do + ---@class test.TestSet + ---@field public id integer + ---@field public x0 string + ---@field public x1 integer[] + ---@field public x2 integer[] + ---@field public x3 string[] + ---@field public x4 integer[] + local class = { + { name='id', type='integer'}, + { name='x0', type='string'}, + { name='x1', type='integer[]'}, + { name='x2', type='integer[]'}, + { name='x3', type='string[]'}, + { name='x4', type='integer[]'}, + } + beans['test.TestSet'] = class + end + do + ---@class test.DetectEncoding + ---@field public id integer + ---@field public name string + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + } + beans['test.DetectEncoding'] = class + end + do + ---@class test.ItemBase + ---@field public id integer + ---@field public name string + ---@field public desc string + local class = { + { name='id', type='integer'}, + { name='name', type='string'}, + { name='desc', type='string'}, + } + beans['test.ItemBase'] = class + end + do + ---@class test.Item :test.ItemBase + ---@field public num integer + ---@field public price integer + local class = { + { name='num', type='integer'}, + { name='price', type='integer'}, + } + beans['test.Item'] = class + end + do + ---@class test.Equipment :test.ItemBase + ---@field public attr integer + ---@field public value integer + local class = { + { name='attr', type='integer'}, + { name='value', type='integer'}, + } + beans['test.Equipment'] = class + end + do + ---@class test.Decorator :test.ItemBase + ---@field public duration integer + local class = { + { name='duration', type='integer'}, + } + beans['test.Decorator'] = class + end + do + ---@class test.TestIndex + ---@field public id integer + ---@field public eles test.DemoType1[] + local class = { + { name='id', type='integer'}, + { name='eles', type='test.DemoType1[]'}, + } + beans['test.TestIndex'] = class + end + do + ---@class test.TestMap + ---@field public id integer + ---@field public x1 table + ---@field public x2 table + ---@field public x3 table + ---@field public x4 table + local class = { + { name='id', type='integer'}, + { name='x1', type='table'}, + { name='x2', type='table'}, + { name='x3', type='table'}, + { name='x4', type='table'}, + } + beans['test.TestMap'] = class + end + do + ---@class test.ExcelFromJson + ---@field public x4 integer + ---@field public x1 boolean + ---@field public x5 integer + ---@field public x6 number + ---@field public s1 string + ---@field public s2 string + ---@field public t1 integer + ---@field public x12 test.DemoType1 + ---@field public x13 integer + ---@field public x14 test.DemoDynamic + ---@field public k1 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k15 test.DemoDynamic[] + local class = { + { name='x4', type='integer'}, + { name='x1', type='boolean'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='s1', type='string'}, + { name='s2', type='string'}, + { name='t1', type='integer'}, + { name='x12', type='test.DemoType1'}, + { name='x13', type='integer'}, + { name='x14', type='test.DemoDynamic'}, + { name='k1', type='integer[]'}, + { name='k8', type='table'}, + { name='k9', type='test.DemoE2[]'}, + { name='k15', type='test.DemoDynamic[]'}, + } + beans['test.ExcelFromJson'] = class + end + do + ---@class test.CompositeJsonTable1 + ---@field public id integer + ---@field public x string + local class = { + { name='id', type='integer'}, + { name='x', type='string'}, + } + beans['test.CompositeJsonTable1'] = class + end + do + ---@class test.CompositeJsonTable2 + ---@field public id integer + ---@field public y integer + local class = { + { name='id', type='integer'}, + { name='y', type='integer'}, + } + beans['test.CompositeJsonTable2'] = class + end + do + ---@class test.CompositeJsonTable3 + ---@field public a integer + ---@field public b integer + local class = { + { name='a', type='integer'}, + { name='b', type='integer'}, + } + beans['test.CompositeJsonTable3'] = class + end + do + ---@class test.ExcelFromJsonMultiRow + ---@field public id integer + ---@field public x integer + ---@field public items test.TestRow[] + local class = { + { name='id', type='integer'}, + { name='x', type='integer'}, + { name='items', type='test.TestRow[]'}, + } + beans['test.ExcelFromJsonMultiRow'] = class + end + do + ---@class test.TestRow + ---@field public x integer + ---@field public y boolean + ---@field public z string + ---@field public a test.Test3 + ---@field public b integer[] + local class = { + { name='x', type='integer'}, + { name='y', type='boolean'}, + { name='z', type='string'}, + { name='a', type='test.Test3'}, + { name='b', type='integer[]'}, + } + beans['test.TestRow'] = class + end + do + ---@class test.Test3 + ---@field public x integer + ---@field public y integer + local class = { + { name='x', type='integer'}, + { name='y', type='integer'}, + } + beans['test.Test3'] = class + end + do + ---@class test.TestScriptableObject + ---@field public id integer + ---@field public desc string + ---@field public rate number + ---@field public num integer + ---@field public v2 vec2 + ---@field public v3 vec3 + ---@field public v4 vec4 + local class = { + { name='id', type='integer'}, + { name='desc', type='string'}, + { name='rate', type='number'}, + { name='num', type='integer'}, + { name='v2', type='vec2'}, + { name='v3', type='vec3'}, + { name='v4', type='vec4'}, + } + beans['test.TestScriptableObject'] = class + end + do + ---@class test.TestMapper + ---@field public id integer + ---@field public audio_type integer + ---@field public v2 vec2 + local class = { + { name='id', type='integer'}, + { name='audio_type', type='integer'}, + { name='v2', type='vec2'}, + } + beans['test.TestMapper'] = class + end + do + ---@class DefineFromExcel2 + ---@field public id integer @这是id + ---@field public x1 boolean @字段x1 + ---@field public x5 integer + ---@field public x6 number + ---@field public x8 integer + ---@field public x10 string + ---@field public x13 integer + ---@field public x13_2 integer + ---@field public x14 test.DemoDynamic + ---@field public x15 test.Shape + ---@field public v2 vec2 + ---@field public t1 integer + ---@field public k1 integer[] + ---@field public k2 integer[] + ---@field public k8 table + ---@field public k9 test.DemoE2[] + ---@field public k10 vec3[] + ---@field public k11 vec4[] + local class = { + { name='id', type='integer'}, + { name='x1', type='boolean'}, + { name='x5', type='integer'}, + { name='x6', type='number'}, + { name='x8', type='integer'}, + { name='x10', type='string'}, + { name='x13', type='integer'}, + { name='x13_2', type='integer'}, + { name='x14', type='test.DemoDynamic'}, + { name='x15', type='test.Shape'}, + { name='v2', type='vec2'}, + { name='t1', type='integer'}, + { name='k1', type='integer[]'}, + { name='k2', type='integer[]'}, + { name='k8', type='table'}, + { name='k9', type='test.DemoE2[]'}, + { name='k10', type='vec3[]'}, + { name='k11', type='vec4[]'}, + } + beans['DefineFromExcel2'] = class + end + do + ---@class test.Shape + local class = { + } + beans['test.Shape'] = class + end + do + ---@class test.Circle :Shape @圆 + ---@field public radius number @半径 + local class = { + { name='radius', type='number'}, + } + beans['test.Circle'] = class + end + do + ---@class test2.Rectangle :test.Shape @矩形 + ---@field public width number @宽度 + ---@field public height number @高度 + local class = { + { name='width', type='number'}, + { name='height', type='number'}, + } + beans['test2.Rectangle'] = class + end + +local tables = +{ + { name='TbBlackboard', file='ai_tbblackboard', mode='map', index='name', value_type='ai.Blackboard' }, + { name='TbBehaviorTree', file='ai_tbbehaviortree', mode='map', index='id', value_type='ai.BehaviorTree' }, + { name='TbGlobalConfig', file='common_tbglobalconfig', mode='one', value_type='common.GlobalConfig'}, + { name='TbItem', file='item_tbitem', mode='map', index='id', value_type='item.Item' }, + { name='TbL10NDemo', file='l10n_tbl10ndemo', mode='map', index='id', value_type='l10n.L10NDemo' }, + { name='TbPatchDemo', file='l10n_tbpatchdemo', mode='map', index='id', value_type='l10n.PatchDemo' }, + { name='TbTestTag', file='tag_tbtesttag', mode='map', index='id', value_type='tag.TestTag' }, + { name='TbFullTypes', file='test_tbfulltypes', mode='map', index='x4', value_type='test.DemoType2' }, + { name='TbSingleton', file='test_tbsingleton', mode='one', value_type='test.DemoSingletonType'}, + { name='TbNotIndexList', file='test_tbnotindexlist', mode='list', index='', value_type='test.NotIndexList' }, + { name='TbMultiUnionIndexList', file='test_tbmultiunionindexlist', mode='list', index='id1+id2+id3', value_type='test.MultiUnionIndexList' }, + { name='TbMultiIndexList', file='test_tbmultiindexlist', mode='list', index='id1,id2,id3', value_type='test.MultiIndexList' }, + { name='TbDataFromMisc', file='test_tbdatafrommisc', mode='map', index='x4', value_type='test.DemoType2' }, + { name='TbMultiRowRecord', file='test_tbmultirowrecord', mode='map', index='id', value_type='test.MultiRowRecord' }, + { name='TbTestMultiColumn', file='test_tbtestmulticolumn', mode='map', index='id', value_type='test.TestMultiColumn' }, + { name='TbMultiRowTitle', file='test_tbmultirowtitle', mode='map', index='id', value_type='test.MultiRowTitle' }, + { name='TbTestNull', file='test_tbtestnull', mode='map', index='id', value_type='test.TestNull' }, + { name='TbDemoPrimitive', file='test_tbdemoprimitive', mode='map', index='x4', value_type='test.DemoPrimitiveTypesTable' }, + { name='TbTestString', file='test_tbteststring', mode='map', index='id', value_type='test.TestString' }, + { name='TbDemoGroup', file='test_tbdemogroup', mode='map', index='id', value_type='test.DemoGroup' }, + { name='TbTestGlobal', file='test_tbtestglobal', mode='one', value_type='test.TestGlobal'}, + { name='TbTestBeRef', file='test_tbtestberef', mode='map', index='id', value_type='test.TestBeRef' }, + { name='TbTestBeRef2', file='test_tbtestberef2', mode='map', index='id', value_type='test.TestBeRef' }, + { name='TbTestRef', file='test_tbtestref', mode='map', index='id', value_type='test.TestRef' }, + { name='TbTestSize', file='test_tbtestsize', mode='map', index='id', value_type='test.TestSize' }, + { name='TbTestSet', file='test_tbtestset', mode='map', index='id', value_type='test.TestSet' }, + { name='TbDetectCsvEncoding', file='test_tbdetectcsvencoding', mode='map', index='id', value_type='test.DetectEncoding' }, + { name='TbItem2', file='test_tbitem2', mode='map', index='id', value_type='test.ItemBase' }, + { name='TbTestIndex', file='test_tbtestindex', mode='map', index='id', value_type='test.TestIndex' }, + { name='TbTestMap', file='test_tbtestmap', mode='map', index='id', value_type='test.TestMap' }, + { name='TbExcelFromJson', file='test_tbexcelfromjson', mode='map', index='x4', value_type='test.ExcelFromJson' }, + { name='TbCompositeJsonTable1', file='test_tbcompositejsontable1', mode='map', index='id', value_type='test.CompositeJsonTable1' }, + { name='TbCompositeJsonTable2', file='test_tbcompositejsontable2', mode='map', index='id', value_type='test.CompositeJsonTable2' }, + { name='TbCompositeJsonTable3', file='test_tbcompositejsontable3', mode='one', value_type='test.CompositeJsonTable3'}, + { name='TbExcelFromJsonMultiRow', file='test_tbexcelfromjsonmultirow', mode='map', index='id', value_type='test.ExcelFromJsonMultiRow' }, + { name='TbTestScriptableObject', file='test_tbtestscriptableobject', mode='map', index='id', value_type='test.TestScriptableObject' }, + { name='TbTestMapper', file='test_tbtestmapper', mode='map', index='id', value_type='test.TestMapper' }, + { name='TbDefineFromExcel2', file='test_tbdefinefromexcel2', mode='map', index='id', value_type='DefineFromExcel2' }, +} + +return { enums = enums, beans = beans, tables = tables } + diff --git a/luban_examples/Projects/Lua_lua/gen.bat b/luban_examples/Projects/Lua_lua/gen.bat new file mode 100644 index 00000000..e3e192c2 --- /dev/null +++ b/luban_examples/Projects/Lua_lua/gen.bat @@ -0,0 +1,17 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c lua-lua ^ + -d lua ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Gen ^ + -x outputDataDir=..\GenerateDatas\lua ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/MsgPackBin.sln b/luban_examples/Projects/MsgPack_bin/MsgPackBin.sln new file mode 100644 index 00000000..276105c5 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/MsgPackBin.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31912.275 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MsgPackProj", "MsgPackProj.csproj", "{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CED486A9-FCBD-414B-B917-4EF26E03EC5B} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/MsgPack_bin/MsgPackInspector.exe b/luban_examples/Projects/MsgPack_bin/MsgPackInspector.exe new file mode 100644 index 00000000..eac67ddb Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/MsgPackInspector.exe differ diff --git a/luban_examples/Projects/MsgPack_bin/MsgPackProj.csproj b/luban_examples/Projects/MsgPack_bin/MsgPackProj.csproj new file mode 100644 index 00000000..60f38eea --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/MsgPackProj.csproj @@ -0,0 +1,31 @@ + + + + Exe + net6.0 + enable + enable + ProtobufProj + + + + + + + + + + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/MsgPack_bin/Program.cs b/luban_examples/Projects/MsgPack_bin/Program.cs new file mode 100644 index 00000000..bd89988a --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/Program.cs @@ -0,0 +1,52 @@ + + +class Program +{ + + + public static void Main(string[] args) + { + // See https://aka.ms/new-console-template for more information + Console.WriteLine("Hello, World!"); + + // ========== + // 使用 LsMsgPack 可视化工具检查无误 + + //TestFullTypes(); + + //TestNullable(); + } + + //private static void TestNullable() + //{ + // var file = "../../../pb_datas/test_tbtestnull.bytes"; + + // var bytes = File.ReadAllBytes(file); + // Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + // var tbTestNull = Cfg.TestTbTestNull.Parser.ParseFrom(File.OpenRead(file)); + + // Console.WriteLine(tbTestNull); + //} + + private static void TestFullTypes() + { + //var bytes = File.ReadAllBytes("../../../pb_datas/item_tbitem.pb"); + + //Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + //var tbItem = Cfg.ItemTbItem.Parser.ParseFrom(File.OpenRead("../../../pb_datas/item_tbitem.pb")); + + //Console.WriteLine(tbItem); + + //var file = "../../../msgpack_datas/test_tbfulltypes.bytes"; + + //var bytes = File.ReadAllBytes(file); + + //Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + + //Console.WriteLine(); + } +} + + + + diff --git a/luban_examples/Projects/MsgPack_bin/gen.bat b/luban_examples/Projects/MsgPack_bin/gen.bat new file mode 100644 index 00000000..0f8a521e --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/gen.bat @@ -0,0 +1,15 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -d msgpack ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputDataDir=msg_datas ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + + +pause \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/ai_tbbehaviortree.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/ai_tbbehaviortree.bytes new file mode 100644 index 00000000..5af38b5d Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/ai_tbbehaviortree.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/ai_tbblackboard.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/ai_tbblackboard.bytes new file mode 100644 index 00000000..7aaae29c --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/ai_tbblackboard.bytes @@ -0,0 +1,3 @@ +nameattack_or_patroldescdemo hahahaparent_namekeysnameOriginPositiondescis_static¤typetype_class_namenameTargetActordescx2 hahais_static¤type +type_class_namenameAcceptableRadiusdescx3 hahais_static¤typetype_class_namenameCurChooseSkillIddescx4 hahais_static¤typetype_class_namenamedemodescdemo hahahaparent_namedemo_parentkeysnamex1descx1 hahais_static¤typetype_class_namenamex2descx2 hahais_static¤typetype_class_namenamex3descx3 hahais_static¤typetype_class_namenamex4descx4 hahais_static¤typetype_class_namenamex5descx5 hahais_static¤typetype_class_namenamex6descx6 hahais_static¤typetype_class_namenamex7descx7 hahais_static¤typetype_class_namenamex8descx8 hahais_static¤typetype_class_namenamex9descx9 hahais_static¤type type_class_nameABCnamex10descx10 hahais_static¤type +type_class_nameOBJECTnamedemo_parentdescdemo parentparent_namekeysnamev1descv1 hahais_static¤typetype_class_name \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/common_tbglobalconfig.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/common_tbglobalconfig.bytes new file mode 100644 index 00000000..4a15643e --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/common_tbglobalconfig.bytes @@ -0,0 +1,2 @@ +x1Ax2̖x3x42x5 +x6x7 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/item_tbitem.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/item_tbitem.bytes new file mode 100644 index 00000000..df4c65e1 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/item_tbitem.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/l10n_tbl10ndemo.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/l10n_tbl10ndemo.bytes new file mode 100644 index 00000000..a66217f0 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/l10n_tbl10ndemo.bytes @@ -0,0 +1 @@ +id text/appleid text/appleid text/appleidtext/appleidtext/appleidtext/appleidtext/appleidtext/apple \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/l10n_tbpatchdemo.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/l10n_tbpatchdemo.bytes new file mode 100644 index 00000000..d5965757 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/l10n_tbpatchdemo.bytes @@ -0,0 +1 @@ +id valueid valueid valueidvalueidvalueidvalueidvalueidvalue \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/tag_tbtesttag.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/tag_tbtesttag.bytes new file mode 100644 index 00000000..19dafde8 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/tag_tbtesttag.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable1.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable1.bytes new file mode 100644 index 00000000..479442b1 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable1.bytes @@ -0,0 +1 @@ +idxaaa1idxxx2id xaaa11id xxx12 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable2.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable2.bytes new file mode 100644 index 00000000..faaf26b3 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable2.bytes @@ -0,0 +1 @@ +idydidy, \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable3.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable3.bytes new file mode 100644 index 00000000..4db46b3c --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbcompositejsontable3.bytes @@ -0,0 +1 @@ +aob \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdatafrommisc.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdatafrommisc.bytes new file mode 100644 index 00000000..f9716fcc Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdatafrommisc.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdefinefromexcel2.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdefinefromexcel2.bytes new file mode 100644 index 00000000..93c29eb1 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdefinefromexcel2.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdemogroup.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdemogroup.bytes new file mode 100644 index 00000000..05506034 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdemogroup.bytes @@ -0,0 +1,4 @@ +idx5y1 +idx5y1 +idx5y1 +idx5y1 diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdemoprimitive.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdemoprimitive.bytes new file mode 100644 index 00000000..8df8a8ff Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdemoprimitive.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdetectcsvencoding.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdetectcsvencoding.bytes new file mode 100644 index 00000000..2e94cac7 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbdetectcsvencoding.bytes @@ -0,0 +1 @@ +idname测试编码idname还果园国要idname工枯加盟仍id name测试编码id name还果园国要id name工枯加盟仍idname测试编码id name还果园国要id!name工枯加盟仍idname测试编码idname还果园国要idname工枯加盟仍 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbexcelfromjson.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbexcelfromjson.bytes new file mode 100644 index 00000000..40b5f14d Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbexcelfromjson.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbexcelfromjsonmultirow.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbexcelfromjsonmultirow.bytes new file mode 100644 index 00000000..fbf1a810 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbexcelfromjsonmultirow.bytes @@ -0,0 +1,3 @@ +idxitemsxyázabcdax +ydbxy¡zabcdaxy!bidx itemsxyázabcdax +y bxy¡zabcdaxy!bxy¡zabcdaxy!b \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbfulltypes.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbfulltypes.bytes new file mode 100644 index 00000000..7946f376 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbfulltypes.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbitem2.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbitem2.bytes new file mode 100644 index 00000000..d2621d44 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbitem2.bytes @@ -0,0 +1,3 @@ +$typeItemidname道具1desc道具1numdprice$typeItemidname道具2desc道具1numprice$typeEquipmentidѤname装备1desc装备1attrvalued$typeEquipmentidҤname装备2desc装备2好attrvalue$typeDecoratorid name耳环desc耳环durationd$typeDecoratorid name耳环desc耳环durationd$typeItemidname道具10desc道具10numdprice +$typeEquipmentidڤname装备20desc装备好attrvalue +$typeDecoratorid ¤name帽子desc帽子durationd \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultiindexlist.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultiindexlist.bytes new file mode 100644 index 00000000..c7733eab --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultiindexlist.bytes @@ -0,0 +1,3 @@ +id1id2id3ab1numdescdesc1id1id2id3ab2numdescdesc2id1id2id3ab3numdescdesc3id1id2id3ab4numdescdesc4id1id2 id3ab5numdescdesc5id1id2 id3ab6numdescdesc6id1id2 id3ab7numdescdesc7id1id2id3ab8numdescdesc8id1 id2id3ab9num descdesc9id1 +id2id3ab10num +descdesc10id1 id2id3ab11num descdesc11 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultirowrecord.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultirowrecord.bytes new file mode 100644 index 00000000..ad74e6ec Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultirowrecord.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultirowtitle.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultirowtitle.bytes new file mode 100644 index 00000000..651230eb --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultirowtitle.bytes @@ -0,0 +1 @@ +idnamexxxx1y2z2z3y3x2z2z3z2z3x3z2z3z2z3x4z2 z3 z2z3z2 z3!id nameyyyx1y2z2 z3 y3x2_0z2z3x2z2 z3 z2 z3x3z2 z3 z2 z3x4z2pz3qz2zz3{z2̄z3̅ \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultiunionindexlist.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultiunionindexlist.bytes new file mode 100644 index 00000000..9ea63d2f --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbmultiunionindexlist.bytes @@ -0,0 +1,3 @@ +id1id2id3ab1numdescdesc1id1id2id3ab2numdescdesc2id1id2id3ab1numdescdesc3id1id2id3ab1numdescdesc4id1id2 id3ab5numdescdesc5id1id2 id3ab6numdescdesc6id1id2 id3ab7numdescdesc7id1id2id3ab8numdescdesc8id1 id2id3ab9num descdesc9id1 +id2id3ab10num +descdesc10id1 id2id3ab11num descdesc11 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbnotindexlist.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbnotindexlist.bytes new file mode 100644 index 00000000..f2058f47 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbnotindexlist.bytes @@ -0,0 +1 @@ +xyxyxyxyxy \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbsingleton.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbsingleton.bytes new file mode 100644 index 00000000..5e06af91 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbsingleton.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestberef.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestberef.bytes new file mode 100644 index 00000000..16fb277a --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestberef.bytes @@ -0,0 +1,11 @@ +idcount +idcount +idcount +idcount +idcount +idcount +idcount +idcount +id count +id +count diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestberef2.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestberef2.bytes new file mode 100644 index 00000000..f2eb32aa --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestberef2.bytes @@ -0,0 +1,10 @@ +id count +id count +id count +idcount +idcount +idcount +idcount +idcount +idcount +idcount diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestglobal.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestglobal.bytes new file mode 100644 index 00000000..593d84a7 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestglobal.bytes @@ -0,0 +1,2 @@ +unlock_equip +unlock_hero \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestindex.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestindex.bytes new file mode 100644 index 00000000..d9b0ebac --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestindex.bytes @@ -0,0 +1 @@ +idelesx1x1x1x1x1idelesx1x1x1x1x1idelesx1x1x1x1x1idelesx1x1x1x1x1 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmap.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmap.bytes new file mode 100644 index 00000000..a49955cd --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmap.bytes @@ -0,0 +1 @@ +idx1x2x3aaabbbx4 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmapper.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmapper.bytes new file mode 100644 index 00000000..f5072ac7 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmapper.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmulticolumn.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmulticolumn.bytes new file mode 100644 index 00000000..532ac854 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestmulticolumn.bytes @@ -0,0 +1 @@ +iday1y2y3by1y2ݢy3cy1y2 y3!iday1y2y3by1y2ݢy3cy1y2 y3! \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestnull.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestnull.bytes new file mode 100644 index 00000000..8e9d4c9a --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestnull.bytes @@ -0,0 +1,2 @@ +id +id id x1x2x3x1x4$typeDemoD2x1x2s1asfs2/abcidididx1x2x3x1x4$typeDemoD2x1x2s1asfss2/abcidx1x2x3x1x4$typeDemoD2x1x2s1/apples2/appleidididx1x2x3x1x4$typeDemoD2x1x2s1/apples2/appleids1s2ids1/apples2/apple \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestref.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestref.bytes new file mode 100644 index 00000000..5dd776e7 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestref.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestscriptableobject.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestscriptableobject.bytes new file mode 100644 index 00000000..10ff0af1 Binary files /dev/null and b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestscriptableobject.bytes differ diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestset.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestset.bytes new file mode 100644 index 00000000..93ade67c --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestset.bytes @@ -0,0 +1 @@ +idx0abx1x2x3abcdx4idx0cdx1x2x3abcdx4 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestsize.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestsize.bytes new file mode 100644 index 00000000..8d8b5794 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbtestsize.bytes @@ -0,0 +1 @@ +idx1x2x3x4 \ No newline at end of file diff --git a/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbteststring.bytes b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbteststring.bytes new file mode 100644 index 00000000..60d56933 --- /dev/null +++ b/luban_examples/Projects/MsgPack_bin/msg_datas/test_tbteststring.bytes @@ -0,0 +1,3 @@ +id\as1asfass2aaa +bbbcs1ids2asfs3aaacs2ids2asfs3aaaid2s1aaa\nbbbs2aaa bbbcs1ids2s3bbbcs2ids2s3bbbid3s1升级到10级""s2cccccs1ids2asdfass3cs2ids2asdfass3id4s1\abcs2cs1ids2s3cs2ids2s3id5s1升级到10级 +abcs2cs1ids2asdfass3cs2ids2asdfass3 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/Gen/Config.cs b/luban_examples/Projects/Protobuf2_bin/Gen/Config.cs new file mode 100644 index 00000000..835ecc86 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/Gen/Config.cs @@ -0,0 +1,71737 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: config.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Cfg { + + /// Holder for reflection information generated from config.proto + public static partial class ConfigReflection { + + #region Descriptor + /// File descriptor for config.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgxjb25maWcucHJvdG8SA2NmZyIfCgdWZWN0b3IyEgkKAXgYASACKAISCQoB", + "eRgCIAIoAiIqCgdWZWN0b3IzEgkKAXgYASACKAISCQoBeRgCIAIoAhIJCgF6", + "GAMgAigCIjUKB1ZlY3RvcjQSCQoBeBgBIAIoAhIJCgF5GAIgAigCEgkKAXoY", + "AyACKAISCQoBdxgEIAIoAiJnCgxBaUJsYWNrYm9hcmQSDAoEbmFtZRgBIAIo", + "CRIMCgRkZXNjGAIgAigJEhMKC3BhcmVudF9uYW1lGAMgAigJEiYKBGtleXMY", + "BCADKAsyFC5jZmcuQWlCbGFja2JvYXJkS2V5QgIQACJ4Cg9BaUJsYWNrYm9h", + "cmRLZXkSDAoEbmFtZRgBIAIoCRIMCgRkZXNjGAIgAigJEhEKCWlzX3N0YXRp", + "YxgDIAIoCBIdCgR0eXBlGAQgAigOMg8uY2ZnLkFpRUtleVR5cGUSFwoPdHlw", + "ZV9jbGFzc19uYW1lGAUgAigJInEKDkFpQmVoYXZpb3JUcmVlEgoKAmlkGAEg", + "AigFEgwKBG5hbWUYAiACKAkSDAoEZGVzYxgDIAIoCRIVCg1ibGFja2JvYXJk", + "X2lkGAQgAigJEiAKBHJvb3QYBSACKAsyEi5jZmcuQWlDb21wb3NlTm9kZSLW", + "CAoGQWlOb2RlEjUKEVVlU2V0RGVmYXVsdEZvY3VzGAEgASgLMhguY2ZnLkFp", + "VWVTZXREZWZhdWx0Rm9jdXNIABI7ChRFeGVjdXRlVGltZVN0YXRpc3RpYxgC", + "IAEoCzIbLmNmZy5BaUV4ZWN1dGVUaW1lU3RhdGlzdGljSAASKwoMQ2hvb3Nl", + "VGFyZ2V0GAMgASgLMhMuY2ZnLkFpQ2hvb3NlVGFyZ2V0SAASLwoOS2VlcEZh", + "Y2VUYXJnZXQYBCABKAsyFS5jZmcuQWlLZWVwRmFjZVRhcmdldEgAEi8KDkdl", + "dE93bmVyUGxheWVyGAUgASgLMhUuY2ZnLkFpR2V0T3duZXJQbGF5ZXJIABJD", + "ChhVcGRhdGVEYWlseUJlaGF2aW9yUHJvcHMYBiABKAsyHy5jZmcuQWlVcGRh", + "dGVEYWlseUJlaGF2aW9yUHJvcHNIABIfCgZVZUxvb3AYByABKAsyDS5jZmcu", + "QWlVZUxvb3BIABInCgpVZUNvb2xkb3duGAggASgLMhEuY2ZnLkFpVWVDb29s", + "ZG93bkgAEikKC1VlVGltZUxpbWl0GAkgASgLMhIuY2ZnLkFpVWVUaW1lTGlt", + "aXRIABIrCgxVZUJsYWNrYm9hcmQYCiABKAsyEy5jZmcuQWlVZUJsYWNrYm9h", + "cmRIABIvCg5VZUZvcmNlU3VjY2VzcxgLIAEoCzIVLmNmZy5BaVVlRm9yY2VT", + "dWNjZXNzSAASKwoMSXNBdExvY2F0aW9uGAwgASgLMhMuY2ZnLkFpSXNBdExv", + "Y2F0aW9uSAASMwoQRGlzdGFuY2VMZXNzVGhhbhgNIAEoCzIXLmNmZy5BaURp", + "c3RhbmNlTGVzc1RoYW5IABIjCghTZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNl", + "cXVlbmNlSAASIwoIU2VsZWN0b3IYDyABKAsyDy5jZmcuQWlTZWxlY3RvckgA", + "Ei8KDlNpbXBsZVBhcmFsbGVsGBAgASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxs", + "ZWxIABIfCgZVZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdh", + "aXRCbGFja2JvYXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9h", + "cmRUaW1lSAASKwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRv", + "VGFyZ2V0SAASKQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VT", + "a2lsbEgAEjsKFE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFp", + "TW92ZVRvUmFuZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEo", + "CzIVLmNmZy5BaU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEo", + "CzIRLmNmZy5BaURlYnVnUHJpbnRIAEIHCgV2YWx1ZSLcAgoJQWlTZXJ2aWNl", + "EjUKEVVlU2V0RGVmYXVsdEZvY3VzGAEgASgLMhguY2ZnLkFpVWVTZXREZWZh", + "dWx0Rm9jdXNIABI7ChRFeGVjdXRlVGltZVN0YXRpc3RpYxgCIAEoCzIbLmNm", + "Zy5BaUV4ZWN1dGVUaW1lU3RhdGlzdGljSAASKwoMQ2hvb3NlVGFyZ2V0GAMg", + "ASgLMhMuY2ZnLkFpQ2hvb3NlVGFyZ2V0SAASLwoOS2VlcEZhY2VUYXJnZXQY", + "BCABKAsyFS5jZmcuQWlLZWVwRmFjZVRhcmdldEgAEi8KDkdldE93bmVyUGxh", + "eWVyGAUgASgLMhUuY2ZnLkFpR2V0T3duZXJQbGF5ZXJIABJDChhVcGRhdGVE", + "YWlseUJlaGF2aW9yUHJvcHMYBiABKAsyHy5jZmcuQWlVcGRhdGVEYWlseUJl", + "aGF2aW9yUHJvcHNIAEIHCgV2YWx1ZSJKChNBaVVlU2V0RGVmYXVsdEZvY3Vz", + "EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIUCgxrZXlib2FyZF9r", + "ZXkYAyACKAkiNwoWQWlFeGVjdXRlVGltZVN0YXRpc3RpYxIKCgJpZBgBIAIo", + "BRIRCglub2RlX25hbWUYAiACKAkiSgoOQWlDaG9vc2VUYXJnZXQSCgoCaWQY", + "ASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhkKEXJlc3VsdF90YXJnZXRfa2V5", + "GAMgAigJIksKEEFpS2VlcEZhY2VUYXJnZXQSCgoCaWQYASACKAUSEQoJbm9k", + "ZV9uYW1lGAIgAigJEhgKEHRhcmdldF9hY3Rvcl9rZXkYAyACKAkiSwoQQWlH", + "ZXRPd25lclBsYXllchIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkS", + "GAoQcGxheWVyX2FjdG9yX2tleRgDIAIoCSLMAgoaQWlVcGRhdGVEYWlseUJl", + "aGF2aW9yUHJvcHMSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhMK", + "C3NhdGlldHlfa2V5GAMgAigJEhIKCmVuZXJneV9rZXkYBCACKAkSEAoIbW9v", + "ZF9rZXkYBSACKAkSIwobc2F0aWV0eV9sb3dlcl90aHJlc2hvbGRfa2V5GAYg", + "AigJEiMKG3NhdGlldHlfdXBwZXJfdGhyZXNob2xkX2tleRgHIAIoCRIiChpl", + "bmVyZ3lfbG93ZXJfdGhyZXNob2xkX2tleRgIIAIoCRIiChplbmVyZ3lfdXBw", + "ZXJfdGhyZXNob2xkX2tleRgJIAIoCRIgChhtb29kX2xvd2VyX3RocmVzaG9s", + "ZF9rZXkYCiACKAkSIAoYbW9vZF91cHBlcl90aHJlc2hvbGRfa2V5GAsgAigJ", + "IssCCgtBaURlY29yYXRvchIfCgZVZUxvb3AYByABKAsyDS5jZmcuQWlVZUxv", + "b3BIABInCgpVZUNvb2xkb3duGAggASgLMhEuY2ZnLkFpVWVDb29sZG93bkgA", + "EikKC1VlVGltZUxpbWl0GAkgASgLMhIuY2ZnLkFpVWVUaW1lTGltaXRIABIr", + "CgxVZUJsYWNrYm9hcmQYCiABKAsyEy5jZmcuQWlVZUJsYWNrYm9hcmRIABIv", + "Cg5VZUZvcmNlU3VjY2VzcxgLIAEoCzIVLmNmZy5BaVVlRm9yY2VTdWNjZXNz", + "SAASKwoMSXNBdExvY2F0aW9uGAwgASgLMhMuY2ZnLkFpSXNBdExvY2F0aW9u", + "SAASMwoQRGlzdGFuY2VMZXNzVGhhbhgNIAEoCzIXLmNmZy5BaURpc3RhbmNl", + "TGVzc1RoYW5IAEIHCgV2YWx1ZSKnAQoIQWlVZUxvb3ASCgoCaWQYASACKAUS", + "EQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIV", + "LmNmZy5BaUVGbG93QWJvcnRNb2RlEhEKCW51bV9sb29wcxgEIAIoBRIVCg1p", + "bmZpbml0ZV9sb29wGAUgAigIEiIKGmluZmluaXRlX2xvb3BfdGltZW91dF90", + "aW1lGAYgAigCInQKDEFpVWVDb29sZG93bhIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMgAigOMhUuY2ZnLkFp", + "RUZsb3dBYm9ydE1vZGUSFQoNY29vbGRvd25fdGltZRgEIAIoAiJyCg1BaVVl", + "VGltZUxpbWl0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9m", + "bG93X2Fib3J0X21vZGUYAyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0TW9kZRIS", + "CgpsaW1pdF90aW1lGAQgAigCItgBCg5BaVVlQmxhY2tib2FyZBIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMg", + "AigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1vZGUSMwoPbm90aWZ5X29ic2VydmVy", + "GAQgAigOMhouY2ZnLkFpRU5vdGlmeU9ic2VydmVyTW9kZRIWCg5ibGFja2Jv", + "YXJkX2tleRgFIAIoCRIqCglrZXlfcXVlcnkYBiACKAsyFy5jZmcuQWlLZXlR", + "dWVyeU9wZXJhdG9yIpIBChJBaUtleVF1ZXJ5T3BlcmF0b3ISHQoFSXNTZXQY", + "ASABKAsyDC5jZmcuQWlJc1NldEgAEiMKCElzTm90U2V0GAIgASgLMg8uY2Zn", + "LkFpSXNOb3RTZXRIABIvCg5CaW5hcnlPcGVyYXRvchgDIAEoCzIVLmNmZy5B", + "aUJpbmFyeU9wZXJhdG9ySABCBwoFdmFsdWUiCQoHQWlJc1NldCIMCgpBaUlz", + "Tm90U2V0IlAKEEFpQmluYXJ5T3BlcmF0b3ISHgoEb3BlchgBIAIoDjIQLmNm", + "Zy5BaUVPcGVyYXRvchIcCgRkYXRhGAIgAigLMg4uY2ZnLkFpS2V5RGF0YSLQ", + "AQoJQWlLZXlEYXRhEisKDEZsb2F0S2V5RGF0YRgBIAEoCzITLmNmZy5BaUZs", + "b2F0S2V5RGF0YUgAEicKCkludEtleURhdGEYAiABKAsyES5jZmcuQWlJbnRL", + "ZXlEYXRhSAASLQoNU3RyaW5nS2V5RGF0YRgDIAEoCzIULmNmZy5BaVN0cmlu", + "Z0tleURhdGFIABI1ChFCbGFja2JvYXJkS2V5RGF0YRgEIAEoCzIYLmNmZy5B", + "aUJsYWNrYm9hcmRLZXlEYXRhSABCBwoFdmFsdWUiHwoOQWlGbG9hdEtleURh", + "dGESDQoFdmFsdWUYASACKAIiHQoMQWlJbnRLZXlEYXRhEg0KBXZhbHVlGAEg", + "AigFIiAKD0FpU3RyaW5nS2V5RGF0YRINCgV2YWx1ZRgBIAIoCSIkChNBaUJs", + "YWNrYm9hcmRLZXlEYXRhEg0KBXZhbHVlGAEgAigJImEKEEFpVWVGb3JjZVN1", + "Y2Nlc3MSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3df", + "YWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlIqsBCg5B", + "aUlzQXRMb2NhdGlvbhIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkS", + "LgoPZmxvd19hYm9ydF9tb2RlGAMgAigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1v", + "ZGUSGQoRYWNjZXB0YWJsZV9yYWRpdXMYBCACKAISFAoMa2V5Ym9hcmRfa2V5", + "GAUgAigJEhkKEWludmVyc2VfY29uZGl0aW9uGAYgAigIIrUBChJBaURpc3Rh", + "bmNlTGVzc1RoYW4SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4K", + "D2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2Rl", + "EhIKCmFjdG9yMV9rZXkYBCACKAkSEgoKYWN0b3IyX2tleRgFIAIoCRIQCghk", + "aXN0YW5jZRgGIAIoAhIWCg5yZXZlcnNlX3Jlc3VsdBgHIAIoCCLdAwoKQWlG", + "bG93Tm9kZRIjCghTZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNlcXVlbmNlSAAS", + "IwoIU2VsZWN0b3IYDyABKAsyDy5jZmcuQWlTZWxlY3RvckgAEi8KDlNpbXBs", + "ZVBhcmFsbGVsGBAgASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxsZWxIABIfCgZV", + "ZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdhaXRCbGFja2Jv", + "YXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9hcmRUaW1lSAAS", + "KwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRvVGFyZ2V0SAAS", + "KQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VTa2lsbEgAEjsK", + "FE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFpTW92ZVRvUmFu", + "ZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEoCzIVLmNmZy5B", + "aU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEoCzIRLmNmZy5B", + "aURlYnVnUHJpbnRIAEIHCgV2YWx1ZSKTAQoNQWlDb21wb3NlTm9kZRIjCghT", + "ZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNlcXVlbmNlSAASIwoIU2VsZWN0b3IY", + "DyABKAsyDy5jZmcuQWlTZWxlY3RvckgAEi8KDlNpbXBsZVBhcmFsbGVsGBAg", + "ASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxsZWxIAEIHCgV2YWx1ZSKiAQoKQWlT", + "ZXF1ZW5jZRIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVj", + "b3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29yYXRvckICEAASJAoIc2Vydmlj", + "ZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQABIlCghjaGlsZHJlbhgFIAMo", + "CzIPLmNmZy5BaUZsb3dOb2RlQgIQACKiAQoKQWlTZWxlY3RvchIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQ", + "LmNmZy5BaURlY29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcu", + "QWlTZXJ2aWNlQgIQABIlCghjaGlsZHJlbhgFIAMoCzIPLmNmZy5BaUZsb3dO", + "b2RlQgIQACL0AQoQQWlTaW1wbGVQYXJhbGxlbBIKCgJpZBgBIAIoBRIRCglu", + "b2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURl", + "Y29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNl", + "QgIQABInCgtmaW5pc2hfbW9kZRgFIAIoDjISLmNmZy5BaUVGaW5pc2hNb2Rl", + "Eh4KCW1haW5fdGFzaxgGIAIoCzILLmNmZy5BaVRhc2sSKAoPYmFja2dyb3Vu", + "ZF9ub2RlGAcgAigLMg8uY2ZnLkFpRmxvd05vZGUi3gIKBkFpVGFzaxIfCgZV", + "ZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdhaXRCbGFja2Jv", + "YXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9hcmRUaW1lSAAS", + "KwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRvVGFyZ2V0SAAS", + "KQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VTa2lsbEgAEjsK", + "FE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFpTW92ZVRvUmFu", + "ZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEoCzIVLmNmZy5B", + "aU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEoCzIRLmNmZy5B", + "aURlYnVnUHJpbnRIAEIHCgV2YWx1ZSLDAQoIQWlVZVdhaXQSCgoCaWQYASAC", + "KAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5j", + "ZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFp", + "U2VydmljZUICEAASGwoTaWdub3JlX3Jlc3RhcnRfc2VsZhgFIAIoCBIRCgl3", + "YWl0X3RpbWUYBiACKAISGAoQcmFuZG9tX2RldmlhdGlvbhgHIAIoAiK8AQoW", + "QWlVZVdhaXRCbGFja2JvYXJkVGltZRIKCgJpZBgBIAIoBRIRCglub2RlX25h", + "bWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29yYXRv", + "ckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQABIb", + "ChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEhYKDmJsYWNrYm9hcmRfa2V5", + "GAYgAigJItEBCg5BaU1vdmVUb1RhcmdldBIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29y", + "YXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQ", + "ABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEhgKEHRhcmdldF9hY3Rv", + "cl9rZXkYBiACKAkSGQoRYWNjZXB0YWJsZV9yYWRpdXMYByACKAIi0gEKDUFp", + "Q2hvb3NlU2tpbGwSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigK", + "CmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNl", + "cnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jl", + "c3RhcnRfc2VsZhgFIAIoCBIYChB0YXJnZXRfYWN0b3Jfa2V5GAYgAigJEhsK", + "E3Jlc3VsdF9za2lsbF9pZF9rZXkYByACKAki0QEKFkFpTW92ZVRvUmFuZG9t", + "TG9jYXRpb24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRl", + "Y29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZp", + "Y2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3Rh", + "cnRfc2VsZhgFIAIoCBIbChNvcmlnaW5fcG9zaXRpb25fa2V5GAYgAigJEg4K", + "BnJhZGl1cxgHIAIoAiLZAQoQQWlNb3ZlVG9Mb2NhdGlvbhIKCgJpZBgBIAIo", + "BRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNm", + "Zy5BaURlY29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlT", + "ZXJ2aWNlQgIQABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEh4KCGxv", + "Y2F0aW9uGAYgAigLMgwuY2ZnLlZlY3RvcjMSGQoRYWNjZXB0YWJsZV9yYWRp", + "dXMYByACKAIiqAEKDEFpRGVidWdQcmludBIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29y", + "YXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQ", + "ABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEgwKBHRleHQYBiACKAki", + "pwEKDkJsdWVwcmludENsYXp6EiwKCUludGVyZmFjZRgBIAEoCzIXLmNmZy5C", + "bHVlcHJpbnRJbnRlcmZhY2VIABIwCgtOb3JtYWxDbGF6ehgCIAEoCzIZLmNm", + "Zy5CbHVlcHJpbnROb3JtYWxDbGF6ekgAEiwKCUVudW1DbGF6ehgDIAEoCzIX", + "LmNmZy5CbHVlcHJpbnRFbnVtQ2xhenpIAEIHCgV2YWx1ZSLEAQoPQmx1ZXBy", + "aW50TWV0aG9kEjYKDkFic3RyYWNlTWV0aG9kGAEgASgLMhwuY2ZnLkJsdWVw", + "cmludEFic3RyYWNlTWV0aG9kSAASNgoORXh0ZXJuYWxNZXRob2QYAiABKAsy", + "HC5jZmcuQmx1ZXByaW50RXh0ZXJuYWxNZXRob2RIABI4Cg9CbHVlcHJpbnRN", + "ZXRob2QYAyABKAsyHS5jZmcuQmx1ZXByaW50Qmx1ZXByaW50TWV0aG9kSABC", + "BwoFdmFsdWUiQAoSQmx1ZXByaW50UGFyYW1JbmZvEgwKBG5hbWUYASACKAkS", + "DAoEdHlwZRgCIAIoCRIOCgZpc19yZWYYAyACKAgijgEKF0JsdWVwcmludEFi", + "c3RyYWNlTWV0aG9kEgwKBG5hbWUYASACKAkSDAoEZGVzYxgCIAIoCRIRCglp", + "c19zdGF0aWMYAyACKAgSEwoLcmV0dXJuX3R5cGUYBCACKAkSLwoKcGFyYW1l", + "dGVycxgFIAMoCzIXLmNmZy5CbHVlcHJpbnRQYXJhbUluZm9CAhAAIo4BChdC", + "bHVlcHJpbnRFeHRlcm5hbE1ldGhvZBIMCgRuYW1lGAEgAigJEgwKBGRlc2MY", + "AiACKAkSEQoJaXNfc3RhdGljGAMgAigIEhMKC3JldHVybl90eXBlGAQgAigJ", + "Ei8KCnBhcmFtZXRlcnMYBSADKAsyFy5jZmcuQmx1ZXByaW50UGFyYW1JbmZv", + "QgIQACKPAQoYQmx1ZXByaW50Qmx1ZXByaW50TWV0aG9kEgwKBG5hbWUYASAC", + "KAkSDAoEZGVzYxgCIAIoCRIRCglpc19zdGF0aWMYAyACKAgSEwoLcmV0dXJu", + "X3R5cGUYBCACKAkSLwoKcGFyYW1ldGVycxgFIAMoCzIXLmNmZy5CbHVlcHJp", + "bnRQYXJhbUluZm9CAhAAIoUBChJCbHVlcHJpbnRJbnRlcmZhY2USDAoEbmFt", + "ZRgBIAIoCRIMCgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5jZmcu", + "Qmx1ZXByaW50Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcuQmx1", + "ZXByaW50TWV0aG9kQgIQACLFAQoUQmx1ZXByaW50Tm9ybWFsQ2xhenoSDAoE", + "bmFtZRgBIAIoCRIMCgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5j", + "ZmcuQmx1ZXByaW50Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcu", + "Qmx1ZXByaW50TWV0aG9kQgIQABITCgtpc19hYnN0cmFjdBgFIAIoCBInCgZm", + "aWVsZHMYBiADKAsyEy5jZmcuQmx1ZXByaW50RmllbGRCAhAAIjoKDkJsdWVw", + "cmludEZpZWxkEgwKBG5hbWUYASACKAkSDAoEdHlwZRgCIAIoCRIMCgRkZXNj", + "GAMgAigJIrEBChJCbHVlcHJpbnRFbnVtQ2xhenoSDAoEbmFtZRgBIAIoCRIM", + "CgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5jZmcuQmx1ZXByaW50", + "Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcuQmx1ZXByaW50TWV0", + "aG9kQgIQABIqCgVlbnVtcxgFIAMoCzIXLmNmZy5CbHVlcHJpbnRFbnVtRmll", + "bGRCAhAAIjEKEkJsdWVwcmludEVudW1GaWVsZBIMCgRuYW1lGAEgAigJEg0K", + "BXZhbHVlGAIgAigFIoABCg1Cb251c0Ryb3BJbmZvEgoKAmlkGAEgAigFEgwK", + "BGRlc2MYAiACKAkSNQoRY2xpZW50X3Nob3dfaXRlbXMYAyADKAsyFi5jZmcu", + "Qm9udXNTaG93SXRlbUluZm9CAhAAEh4KBWJvbnVzGAQgAigLMg8uY2ZnLkJv", + "bnVzQm9udXMiNgoRQm9udXNTaG93SXRlbUluZm8SDwoHaXRlbV9pZBgBIAIo", + "BRIQCghpdGVtX251bRgCIAIoAyL9AwoKQm9udXNCb251cxIkCgdPbmVJdGVt", + "GAEgASgLMhEuY2ZnLkJvbnVzT25lSXRlbUgAEiYKCE9uZUl0ZW1zGAIgASgL", + "MhIuY2ZnLkJvbnVzT25lSXRlbXNIABIeCgRJdGVtGAMgASgLMg4uY2ZnLkJv", + "bnVzSXRlbUgAEiAKBUl0ZW1zGAQgASgLMg8uY2ZnLkJvbnVzSXRlbXNIABI0", + "Cg9Db2VmZmljaWVudEl0ZW0YBSABKAsyGS5jZmcuQm9udXNDb2VmZmljaWVu", + "dEl0ZW1IABIsCgtXZWlnaHRJdGVtcxgGIAEoCzIVLmNmZy5Cb251c1dlaWdo", + "dEl0ZW1zSAASNgoQUHJvYmFiaWxpdHlJdGVtcxgHIAEoCzIaLmNmZy5Cb251", + "c1Byb2JhYmlsaXR5SXRlbXNIABIqCgpNdWx0aUJvbnVzGAggASgLMhQuY2Zn", + "LkJvbnVzTXVsdGlCb251c0gAEjYKEFByb2JhYmlsaXR5Qm9udXMYCSABKAsy", + "Gi5jZmcuQm9udXNQcm9iYWJpbGl0eUJvbnVzSAASLAoLV2VpZ2h0Qm9udXMY", + "CiABKAsyFS5jZmcuQm9udXNXZWlnaHRCb251c0gAEigKCURyb3BCb251cxgL", + "IAEoCzITLmNmZy5Cb251c0Ryb3BCb251c0gAQgcKBXZhbHVlIh8KDEJvbnVz", + "T25lSXRlbRIPCgdpdGVtX2lkGAEgAigFIiIKDUJvbnVzT25lSXRlbXMSEQoF", + "aXRlbXMYASADKAVCAhABIiwKCUJvbnVzSXRlbRIPCgdpdGVtX2lkGAEgAigF", + "Eg4KBmFtb3VudBgCIAIoBSIzCgpCb251c0l0ZW1zEiUKCWl0ZW1fbGlzdBgB", + "IAMoCzIOLmNmZy5Cb251c0l0ZW1CAhAAIk0KFEJvbnVzQ29lZmZpY2llbnRJ", + "dGVtEhAKCGJvbnVzX2lkGAEgAigFEiMKCmJvbnVzX2xpc3QYAiACKAsyDy5j", + "ZmcuQm9udXNJdGVtcyJDChBCb251c1dlaWdodEl0ZW1zEi8KCWl0ZW1fbGlz", + "dBgBIAMoCzIYLmNmZy5Cb251c1dlaWdodEl0ZW1JbmZvQgIQACJDChNCb251", + "c1dlaWdodEl0ZW1JbmZvEg8KB2l0ZW1faWQYASACKAUSCwoDbnVtGAIgAigF", + "Eg4KBndlaWdodBgDIAIoBSJNChVCb251c1Byb2JhYmlsaXR5SXRlbXMSNAoJ", + "aXRlbV9saXN0GAEgAygLMh0uY2ZnLkJvbnVzUHJvYmFiaWxpdHlJdGVtSW5m", + "b0ICEAAiTQoYQm9udXNQcm9iYWJpbGl0eUl0ZW1JbmZvEg8KB2l0ZW1faWQY", + "ASACKAUSCwoDbnVtGAIgAigFEhMKC3Byb2JhYmlsaXR5GAMgAigCIjcKD0Jv", + "bnVzTXVsdGlCb251cxIkCgdib251c2VzGAEgAygLMg8uY2ZnLkJvbnVzQm9u", + "dXNCAhAAIkwKFUJvbnVzUHJvYmFiaWxpdHlCb251cxIzCgdib251c2VzGAEg", + "AygLMh4uY2ZnLkJvbnVzUHJvYmFiaWxpdHlCb251c0luZm9CAhAAIlAKGUJv", + "bnVzUHJvYmFiaWxpdHlCb251c0luZm8SHgoFYm9udXMYASACKAsyDy5jZmcu", + "Qm9udXNCb251cxITCgtwcm9iYWJpbGl0eRgCIAIoAiJCChBCb251c1dlaWdo", + "dEJvbnVzEi4KB2JvbnVzZXMYASADKAsyGS5jZmcuQm9udXNXZWlnaHRCb251", + "c0luZm9CAhAAIkYKFEJvbnVzV2VpZ2h0Qm9udXNJbmZvEh4KBWJvbnVzGAEg", + "AigLMg8uY2ZnLkJvbnVzQm9udXMSDgoGd2VpZ2h0GAIgAigFIhwKDkJvbnVz", + "RHJvcEJvbnVzEgoKAmlkGAEgAigFIs8EChJDb21tb25HbG9iYWxDb25maWcS", + "FAoMYmFnX2NhcGFjaXR5GAEgAigFEhwKFGJhZ19jYXBhY2l0eV9zcGVjaWFs", + "GAIgAigFEiQKHGJhZ190ZW1wX2V4cGVuZGFibGVfY2FwYWNpdHkYAyACKAUS", + "HgoWYmFnX3RlbXBfdG9vbF9jYXBhY2l0eRgEIAIoBRIZChFiYWdfaW5pdF9j", + "YXBhY2l0eRgFIAIoBRIaChJxdWlja19iYWdfY2FwYWNpdHkYBiACKAUSGgoS", + "Y2xvdGhfYmFnX2NhcGFjaXR5GAcgAigFEh8KF2Nsb3RoX2JhZ19pbml0X2Nh", + "cGFjaXR5GAggAigFEiIKGmNsb3RoX2JhZ19jYXBhY2l0eV9zcGVjaWFsGAkg", + "AigFEh4KFmJhZ19pbml0X2l0ZW1zX2Ryb3BfaWQYCiABKAUSGQoRbWFpbF9i", + "b3hfY2FwYWNpdHkYCyACKAUSFgoOZGFtYWdlX3BhcmFtX2MYDCACKAISFgoO", + "ZGFtYWdlX3BhcmFtX2UYDSACKAISFgoOZGFtYWdlX3BhcmFtX2YYDiACKAIS", + "FgoOZGFtYWdlX3BhcmFtX2QYDyACKAISEgoKcm9sZV9zcGVlZBgQIAIoAhIV", + "Cg1tb25zdGVyX3NwZWVkGBEgAigCEhMKC2luaXRfZW5lcmd5GBIgAigFEhQK", + "DGluaXRfdmlhbGl0eRgTIAIoBRITCgttYXhfdmlhbGl0eRgUIAIoBRIhChlw", + "ZXJfdmlhbGl0eV9yZWNvdmVyeV90aW1lGBUgAigFIlEKDkVycm9yRXJyb3JJ", + "bmZvEgwKBGNvZGUYASACKAkSDAoEZGVzYxgCIAIoCRIjCgVzdHlsZRgDIAIo", + "CzIULmNmZy5FcnJvckVycm9yU3R5bGUi/AEKD0Vycm9yRXJyb3JTdHlsZRIw", + "Cg1FcnJvclN0eWxlVGlwGAEgASgLMhcuY2ZnLkVycm9yRXJyb3JTdHlsZVRp", + "cEgAEjYKEEVycm9yU3R5bGVNc2dib3gYAiABKAsyGi5jZmcuRXJyb3JFcnJv", + "clN0eWxlTXNnYm94SAASNAoPRXJyb3JTdHlsZURsZ09rGAMgASgLMhkuY2Zn", + "LkVycm9yRXJyb3JTdHlsZURsZ09rSAASQAoVRXJyb3JTdHlsZURsZ09rQ2Fu", + "Y2VsGAQgASgLMh8uY2ZnLkVycm9yRXJyb3JTdHlsZURsZ09rQ2FuY2VsSABC", + "BwoFdmFsdWUiFAoSRXJyb3JFcnJvclN0eWxlVGlwIlIKFUVycm9yRXJyb3JT", + "dHlsZU1zZ2JveBIQCghidG5fbmFtZRgBIAIoCRInCglvcGVyYXRpb24YAiAC", + "KA4yFC5jZmcuRXJyb3JFT3BlcmF0aW9uIigKFEVycm9yRXJyb3JTdHlsZURs", + "Z09rEhAKCGJ0bl9uYW1lGAEgAigJIkIKGkVycm9yRXJyb3JTdHlsZURsZ09r", + "Q2FuY2VsEhEKCWJ0bjFfbmFtZRgBIAIoCRIRCglidG4yX25hbWUYAiACKAki", + "QAoNRXJyb3JDb2RlSW5mbxIiCgRjb2RlGAEgAigOMhQuY2ZnLkVycm9yRUVy", + "cm9yQ29kZRILCgNrZXkYAiACKAki/gMKCEl0ZW1JdGVtEgoKAmlkGAEgAigF", + "EgwKBG5hbWUYAiACKAkSJwoKbWFqb3JfdHlwZRgDIAIoDjITLmNmZy5JdGVt", + "RU1ham9yVHlwZRInCgptaW5vcl90eXBlGAQgAigOMhMuY2ZnLkl0ZW1FTWlu", + "b3JUeXBlEhQKDG1heF9waWxlX251bRgFIAIoBRImCgdxdWFsaXR5GAYgAigO", + "MhUuY2ZnLkl0ZW1FSXRlbVF1YWxpdHkSDAoEaWNvbhgHIAIoCRIWCg5pY29u", + "X2JhY2tncm91ZBgIIAIoCRIRCglpY29uX21hc2sYCSACKAkSDAoEZGVzYxgK", + "IAIoCRISCgpzaG93X29yZGVyGAsgAigFEhIKCnF1YW50aWZpZXIYDCACKAkS", + "EwoLc2hvd19pbl9iYWcYDSACKAgSFgoObWluX3Nob3dfbGV2ZWwYDiACKAUS", + "FAoMYmF0Y2hfdXNhYmxlGA8gAigIEh4KFnByb2dyZXNzX3RpbWVfd2hlbl91", + "c2UYECACKAISGgoSc2hvd19oaW50X3doZW5fdXNlGBEgAigIEhEKCWRyb3Bw", + "YWJsZRgSIAIoCBINCgVwcmljZRgTIAEoBRIjCgh1c2VfdHlwZRgUIAIoDjIR", + "LmNmZy5JdGVtRVVzZVR5cGUSEwoLbGV2ZWxfdXBfaWQYFSABKAUikAEKEEl0", + "ZW1JdGVtRnVuY3Rpb24SJwoKbWlub3JfdHlwZRgBIAIoDjITLmNmZy5JdGVt", + "RU1pbm9yVHlwZRItCglmdW5jX3R5cGUYAiACKA4yGi5jZmcuSXRlbUVJdGVt", + "RnVuY3Rpb25UeXBlEg4KBm1ldGhvZBgDIAIoCRIUCgxjbG9zZV9iYWdfdWkY", + "BCACKAgi8QEKDUl0ZW1JdGVtRXh0cmESKwoLVHJlYXN1cmVCb3gYASABKAsy", + "FC5jZmcuSXRlbVRyZWFzdXJlQm94SAASMwoPSW50ZXJhY3Rpb25JdGVtGAIg", + "ASgLMhguY2ZnLkl0ZW1JbnRlcmFjdGlvbkl0ZW1IABIjCgdDbG90aGVzGAMg", + "ASgLMhAuY2ZnLkl0ZW1DbG90aGVzSAASLwoNRGVzaWduRHJhd2luZxgEIAEo", + "CzIWLmNmZy5JdGVtRGVzaWduRHJhd2luZ0gAEh8KBUR5bW15GAUgASgLMg4u", + "Y2ZnLkl0ZW1EeW1teUgAQgcKBXZhbHVlIr0BCg9JdGVtVHJlYXN1cmVCb3gS", + "CgoCaWQYASACKAUSEwoLa2V5X2l0ZW1faWQYAiABKAUSKgoKb3Blbl9sZXZl", + "bBgDIAIoCzIWLmNmZy5Db25kaXRpb25NaW5MZXZlbBIVCg11c2Vfb25fb2J0", + "YWluGAQgAigIEhQKCGRyb3BfaWRzGAUgAygFQgIQARIwCgtjaG9vc2VfbGlz", + "dBgGIAMoCzIXLmNmZy5JdGVtQ2hvb3NlT25lQm9udXNCAhAAItUDChJDb25k", + "aXRpb25Db25kaXRpb24SLAoJVGltZVJhbmdlGAEgASgLMhcuY2ZnLkNvbmRp", + "dGlvblRpbWVSYW5nZUgAEj4KEk11bHRpUm9sZUNvbmRpdGlvbhgCIAEoCzIg", + "LmNmZy5Db25kaXRpb25NdWx0aVJvbGVDb25kaXRpb25IABIwCgtHZW5kZXJM", + "aW1pdBgDIAEoCzIZLmNmZy5Db25kaXRpb25HZW5kZXJMaW1pdEgAEioKCE1p", + "bkxldmVsGAQgASgLMhYuY2ZnLkNvbmRpdGlvbk1pbkxldmVsSAASKgoITWF4", + "TGV2ZWwYBSABKAsyFi5jZmcuQ29uZGl0aW9uTWF4TGV2ZWxIABIwCgtNaW5N", + "YXhMZXZlbBgGIAEoCzIZLmNmZy5Db25kaXRpb25NaW5NYXhMZXZlbEgAElgK", + "H0Nsb3RoZXNQcm9wZXJ0eVNjb3JlR3JlYXRlclRoYW4YByABKAsyLS5jZmcu", + "Q29uZGl0aW9uQ2xvdGhlc1Byb3BlcnR5U2NvcmVHcmVhdGVyVGhhbkgAEjIK", + "DENvbnRhaW5zSXRlbRgIIAEoCzIaLmNmZy5Db25kaXRpb25Db250YWluc0l0", + "ZW1IAEIHCgV2YWx1ZSJHChJDb25kaXRpb25UaW1lUmFuZ2USMQoPZGF0ZV90", + "aW1lX3JhbmdlGAEgAigLMhguY2ZnLkNvbW1vbkRhdGVUaW1lUmFuZ2UiOwoT", + "Q29tbW9uRGF0ZVRpbWVSYW5nZRISCgpzdGFydF90aW1lGAEgASgFEhAKCGVu", + "ZF90aW1lGAIgASgFIqsDChZDb25kaXRpb25Sb2xlQ29uZGl0aW9uEj4KEk11", + "bHRpUm9sZUNvbmRpdGlvbhgCIAEoCzIgLmNmZy5Db25kaXRpb25NdWx0aVJv", + "bGVDb25kaXRpb25IABIwCgtHZW5kZXJMaW1pdBgDIAEoCzIZLmNmZy5Db25k", + "aXRpb25HZW5kZXJMaW1pdEgAEioKCE1pbkxldmVsGAQgASgLMhYuY2ZnLkNv", + "bmRpdGlvbk1pbkxldmVsSAASKgoITWF4TGV2ZWwYBSABKAsyFi5jZmcuQ29u", + "ZGl0aW9uTWF4TGV2ZWxIABIwCgtNaW5NYXhMZXZlbBgGIAEoCzIZLmNmZy5D", + "b25kaXRpb25NaW5NYXhMZXZlbEgAElgKH0Nsb3RoZXNQcm9wZXJ0eVNjb3Jl", + "R3JlYXRlclRoYW4YByABKAsyLS5jZmcuQ29uZGl0aW9uQ2xvdGhlc1Byb3Bl", + "cnR5U2NvcmVHcmVhdGVyVGhhbkgAEjIKDENvbnRhaW5zSXRlbRgIIAEoCzIa", + "LmNmZy5Db25kaXRpb25Db250YWluc0l0ZW1IAEIHCgV2YWx1ZSJSChtDb25k", + "aXRpb25NdWx0aVJvbGVDb25kaXRpb24SMwoKY29uZGl0aW9ucxgBIAMoCzIb", + "LmNmZy5Db25kaXRpb25Sb2xlQ29uZGl0aW9uQgIQACK7AgoaQ29uZGl0aW9u", + "Qm9vbFJvbGVDb25kaXRpb24SMAoLR2VuZGVyTGltaXQYAyABKAsyGS5jZmcu", + "Q29uZGl0aW9uR2VuZGVyTGltaXRIABIqCghNaW5MZXZlbBgEIAEoCzIWLmNm", + "Zy5Db25kaXRpb25NaW5MZXZlbEgAEioKCE1heExldmVsGAUgASgLMhYuY2Zn", + "LkNvbmRpdGlvbk1heExldmVsSAASMAoLTWluTWF4TGV2ZWwYBiABKAsyGS5j", + "ZmcuQ29uZGl0aW9uTWluTWF4TGV2ZWxIABJYCh9DbG90aGVzUHJvcGVydHlT", + "Y29yZUdyZWF0ZXJUaGFuGAcgASgLMi0uY2ZnLkNvbmRpdGlvbkNsb3RoZXNQ", + "cm9wZXJ0eVNjb3JlR3JlYXRlclRoYW5IAEIHCgV2YWx1ZSI8ChRDb25kaXRp", + "b25HZW5kZXJMaW1pdBIkCgZnZW5kZXIYASACKA4yFC5jZmcuUm9sZUVHZW5k", + "ZXJUeXBlIiIKEUNvbmRpdGlvbk1pbkxldmVsEg0KBWxldmVsGAEgAigFIiIK", + "EUNvbmRpdGlvbk1heExldmVsEg0KBWxldmVsGAEgAigFIjAKFENvbmRpdGlv", + "bk1pbk1heExldmVsEgsKA21pbhgBIAIoBRILCgNtYXgYAiACKAUiZgooQ29u", + "ZGl0aW9uQ2xvdGhlc1Byb3BlcnR5U2NvcmVHcmVhdGVyVGhhbhIrCgRwcm9w", + "GAEgAigOMh0uY2ZnLkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZRINCgV2YWx1", + "ZRgCIAIoBSJGChVDb25kaXRpb25Db250YWluc0l0ZW0SDwoHaXRlbV9pZBgB", + "IAIoBRILCgNudW0YAiACKAUSDwoHcmV2ZXJzZRgDIAIoCCI4ChJJdGVtQ2hv", + "b3NlT25lQm9udXMSDwoHZHJvcF9pZBgBIAIoBRIRCglpc191bmlxdWUYAiAC", + "KAgicwoTSXRlbUludGVyYWN0aW9uSXRlbRIKCgJpZBgBIAIoBRISCgphdHRh", + "Y2tfbnVtGAIgASgFEhsKE2hvbGRpbmdfc3RhdGljX21lc2gYAyACKAkSHwoX", + "aG9sZGluZ19zdGF0aWNfbWVzaF9tYXQYBCACKAkiYgoLSXRlbUNsb3RoZXMS", + "CgoCaWQYASACKAUSDgoGYXR0YWNrGAIgAigFEgoKAmhwGAMgAigDEhQKDGVu", + "ZXJneV9saW1pdBgEIAIoBRIVCg1lbmVyZ3lfcmVzdW1lGAUgAigFIj8KEUl0", + "ZW1EZXNpZ25EcmF3aW5nEgoKAmlkGAEgAigFEh4KEmxlYXJuX2NvbXBvbmVu", + "dF9pZBgCIAMoBUICEAEiNAoJSXRlbUR5bW15EgoKAmlkGAEgAigFEhsKBGNv", + "c3QYAiACKAsyDS5jZmcuQ29zdENvc3Qi8gEKCENvc3RDb3N0Ei0KDENvc3RD", + "dXJyZW5jeRgBIAEoCzIVLmNmZy5Db3N0Q29zdEN1cnJlbmN5SAASMQoOQ29z", + "dEN1cnJlbmNpZXMYAiABKAsyFy5jZmcuQ29zdENvc3RDdXJyZW5jaWVzSAAS", + "KwoLQ29zdE9uZUl0ZW0YAyABKAsyFC5jZmcuQ29zdENvc3RPbmVJdGVtSAAS", + "JQoIQ29zdEl0ZW0YBCABKAsyES5jZmcuQ29zdENvc3RJdGVtSAASJwoJQ29z", + "dEl0ZW1zGAUgASgLMhIuY2ZnLkNvc3RDb3N0SXRlbXNIAEIHCgV2YWx1ZSJF", + "ChBDb3N0Q29zdEN1cnJlbmN5EiQKBHR5cGUYASACKA4yFi5jZmcuSXRlbUVD", + "dXJyZW5jeVR5cGUSCwoDbnVtGAIgAigFIkMKEkNvc3RDb3N0Q3VycmVuY2ll", + "cxItCgpjdXJyZW5jaWVzGAEgAygLMhUuY2ZnLkNvc3RDb3N0Q3VycmVuY3lC", + "AhAAIiIKD0Nvc3RDb3N0T25lSXRlbRIPCgdpdGVtX2lkGAEgAigFIi8KDENv", + "c3RDb3N0SXRlbRIPCgdpdGVtX2lkGAEgAigFEg4KBmFtb3VudBgCIAIoBSI5", + "Cg1Db3N0Q29zdEl0ZW1zEigKCWl0ZW1fbGlzdBgBIAMoCzIRLmNmZy5Db3N0", + "Q29zdEl0ZW1CAhAAIigKDEwxMG5MMTBORGVtbxIKCgJpZBgBIAIoBRIMCgR0", + "ZXh0GAIgAigJIioKDUwxMG5QYXRjaERlbW8SCgoCaWQYASACKAUSDQoFdmFs", + "dWUYAiACKAUiXwoOTWFpbFN5c3RlbU1haWwSCgoCaWQYASACKAUSDQoFdGl0", + "bGUYAiACKAkSDgoGc2VuZGVyGAMgAigJEg8KB2NvbnRlbnQYBCACKAkSEQoF", + "YXdhcmQYBSADKAVCAhABIr0CCg5NYWlsR2xvYmFsTWFpbBIKCgJpZBgBIAIo", + "BRINCgV0aXRsZRgCIAIoCRIOCgZzZW5kZXIYAyACKAkSDwoHY29udGVudBgE", + "IAIoCRIRCgVhd2FyZBgFIAMoBUICEAESEgoKYWxsX3NlcnZlchgGIAIoCBIX", + "CgtzZXJ2ZXJfbGlzdBgHIAMoBUICEAESEAoIcGxhdGZvcm0YCCACKAkSDwoH", + "Y2hhbm5lbBgJIAIoCRIwCg1taW5fbWF4X2xldmVsGAogAigLMhkuY2ZnLkNv", + "bmRpdGlvbk1pbk1heExldmVsEi4KDXJlZ2lzdGVyX3RpbWUYCyACKAsyFy5j", + "ZmcuQ29uZGl0aW9uVGltZVJhbmdlEioKCW1haWxfdGltZRgMIAIoCzIXLmNm", + "Zy5Db25kaXRpb25UaW1lUmFuZ2UiTgoQUm9sZUxldmVsRXhwQXR0chINCgVs", + "ZXZlbBgBIAIoBRIQCghuZWVkX2V4cBgCIAIoAxIZCg1jbG90aGVzX2F0dHJz", + "GAMgAygFQgIQASJbCg5Sb2xlTGV2ZWxCb251cxIKCgJpZBgBIAIoBRI9ChRk", + "aXN0aW5jdF9ib251c19pbmZvcxgCIAMoCzIbLmNmZy5Sb2xlRGlzdGluY3RC", + "b251c0luZm9zQgIQACJdChZSb2xlRGlzdGluY3RCb251c0luZm9zEhcKD2Vm", + "ZmVjdGl2ZV9sZXZlbBgBIAIoBRIqCgpib251c19pbmZvGAIgAygLMhIuY2Zn", + "LlJvbGVCb251c0luZm9CAhAAIkoKDVJvbGVCb251c0luZm8SJAoEdHlwZRgB", + "IAIoDjIWLmNmZy5JdGVtRUN1cnJlbmN5VHlwZRITCgtjb2VmZmljaWVudBgC", + "IAIoAiInCgpUYWdUZXN0VGFnEgoKAmlkGAEgAigFEg0KBXZhbHVlGAIgAigJ", + "IqsECg1UZXN0RGVtb1R5cGUyEgoKAng0GAEgAigFEgoKAngxGAIgAigIEgoK", + "AngyGAMgAigFEgoKAngzGAQgAigFEgoKAng1GAUgAigDEgoKAng2GAYgAigC", + "EgoKAng3GAcgAigBEgwKBHg4XzAYCCACKAUSCgoCeDgYCSACKA8SCgoCeDkY", + "CiACKBASCwoDeDEwGAsgAigJEh8KA3gxMhgMIAIoCzISLmNmZy5UZXN0RGVt", + "b1R5cGUxEh4KA3gxMxgNIAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0", + "GA4gAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgPIAIoCRIYCgJ2", + "MhgQIAIoCzIMLmNmZy5WZWN0b3IyEhgKAnYzGBEgAigLMgwuY2ZnLlZlY3Rv", + "cjMSGAoCdjQYEiACKAsyDC5jZmcuVmVjdG9yNBIKCgJ0MRgTIAIoBRIOCgJr", + "MRgUIAMoBUICEAESDgoCazIYFSADKAVCAhABEg4KAms1GBYgAygFQgIQARIm", + "CgJrOBgXIAMoCzIaLmNmZy5UZXN0RGVtb1R5cGUyLks4RW50cnkSHwoCazkY", + "GCADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASJQoDazE1GBkgAygLMhQuY2Zn", + "LlRlc3REZW1vRHluYW1pY0ICEAAaKQoHSzhFbnRyeRILCgNrZXkYASABKAUS", + "DQoFdmFsdWUYAiABKAU6AjgBIhsKDVRlc3REZW1vVHlwZTESCgoCeDEYASAC", + "KAUigwEKD1Rlc3REZW1vRHluYW1pYxIhCgZEZW1vRDIYASABKAsyDy5jZmcu", + "VGVzdERlbW9EMkgAEiEKBkRlbW9FMRgCIAEoCzIPLmNmZy5UZXN0RGVtb0Ux", + "SAASIQoGRGVtb0Q1GAMgASgLMg8uY2ZnLlRlc3REZW1vRDVIAEIHCgV2YWx1", + "ZSIkCgpUZXN0RGVtb0QyEgoKAngxGAEgAigFEgoKAngyGAIgAigFIjgKClRl", + "c3REZW1vRDMSIQoGRGVtb0UxGAIgASgLMg8uY2ZnLlRlc3REZW1vRTFIAEIH", + "CgV2YWx1ZSIwCgpUZXN0RGVtb0UxEgoKAngxGAEgAigFEgoKAngzGAIgAigF", + "EgoKAng0GAMgAigFIj4KClRlc3REZW1vRDUSCgoCeDEYASACKAUSJAoEdGlt", + "ZRgCIAIoCzIWLmNmZy5UZXN0RGF0ZVRpbWVSYW5nZSI5ChFUZXN0RGF0ZVRp", + "bWVSYW5nZRISCgpzdGFydF90aW1lGAEgAigFEhAKCGVuZF90aW1lGAIgAigF", + "IiQKClRlc3REZW1vRTISCgoCeTEYASABKAUSCgoCeTIYAiACKAgiVQoVVGVz", + "dERlbW9TaW5nbGV0b25UeXBlEgoKAmlkGAEgAigFEgwKBG5hbWUYAiACKAkS", + "IgoEZGF0ZRgDIAIoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWMiKAoQVGVzdE5v", + "dEluZGV4TGlzdBIJCgF4GAEgAigFEgkKAXkYAiACKAUiWwoXVGVzdE11bHRp", + "VW5pb25JbmRleExpc3QSCwoDaWQxGAEgAigFEgsKA2lkMhgCIAIoAxILCgNp", + "ZDMYAyACKAkSCwoDbnVtGAQgAigFEgwKBGRlc2MYBSACKAkiVgoSVGVzdE11", + "bHRpSW5kZXhMaXN0EgsKA2lkMRgBIAIoBRILCgNpZDIYAiACKAMSCwoDaWQz", + "GAMgAigJEgsKA251bRgEIAIoBRIMCgRkZXNjGAUgAigJIvIEChJUZXN0TXVs", + "dGlSb3dSZWNvcmQSCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIsCghvbmVf", + "cm93cxgDIAMoCzIWLmNmZy5UZXN0TXVsdGlSb3dUeXBlMUICEAASLwoLbXVs", + "dGlfcm93czEYBCADKAsyFi5jZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAEi8K", + "C211bHRpX3Jvd3MyGAUgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUxQgIQ", + "ABI8CgttdWx0aV9yb3dzNBgGIAMoCzInLmNmZy5UZXN0TXVsdGlSb3dSZWNv", + "cmQuTXVsdGlSb3dzNEVudHJ5Ei8KC211bHRpX3Jvd3M1GAcgAygLMhYuY2Zn", + "LlRlc3RNdWx0aVJvd1R5cGUzQgIQABI8CgttdWx0aV9yb3dzNhgIIAMoCzIn", + "LmNmZy5UZXN0TXVsdGlSb3dSZWNvcmQuTXVsdGlSb3dzNkVudHJ5EjwKC211", + "bHRpX3Jvd3M3GAkgAygLMicuY2ZnLlRlc3RNdWx0aVJvd1JlY29yZC5NdWx0", + "aVJvd3M3RW50cnkaSQoPTXVsdGlSb3dzNEVudHJ5EgsKA2tleRgBIAEoBRIl", + "CgV2YWx1ZRgCIAEoCzIWLmNmZy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaSQoP", + "TXVsdGlSb3dzNkVudHJ5EgsKA2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIW", + "LmNmZy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaMQoPTXVsdGlSb3dzN0VudHJ5", + "EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEiKgoRVGVzdE11bHRp", + "Um93VHlwZTESCgoCaWQYASACKAUSCQoBeBgCIAIoBSI1ChFUZXN0TXVsdGlS", + "b3dUeXBlMhIKCgJpZBgBIAIoBRIJCgF4GAIgAigFEgkKAXkYAyACKAIiSgoR", + "VGVzdE11bHRpUm93VHlwZTMSCgoCaWQYASACKAUSKQoFaXRlbXMYAiADKAsy", + "Fi5jZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAIrgBChFUZXN0TXVsdGlSb3dU", + "aXRsZRIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJEhcKAngxGAMgAigLMgsu", + "Y2ZnLlRlc3RIMRIZCgR4Ml8wGAQgASgLMgsuY2ZnLlRlc3RIMhIbCgJ4MhgF", + "IAMoCzILLmNmZy5UZXN0SDJCAhAAEhsKAngzGAYgAygLMgsuY2ZnLlRlc3RI", + "MkICEAASGwoCeDQYByADKAsyCy5jZmcuVGVzdEgyQgIQACItCgZUZXN0SDES", + "FwoCeTIYASACKAsyCy5jZmcuVGVzdEgyEgoKAnkzGAIgAigFIiAKBlRlc3RI", + "MhIKCgJ6MhgBIAIoBRIKCgJ6MxgCIAIoBSKfAQoMVGVzdFRlc3ROdWxsEgoK", + "AmlkGAEgAigFEgoKAngxGAIgASgFEh0KAngyGAMgASgOMhEuY2ZnLlRlc3RE", + "ZW1vRW51bRIeCgJ4MxgEIAEoCzISLmNmZy5UZXN0RGVtb1R5cGUxEiAKAng0", + "GAUgASgLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgGIAEoCRIKCgJz", + "MhgHIAEoCSLjAQobVGVzdERlbW9QcmltaXRpdmVUeXBlc1RhYmxlEgoKAngx", + "GAEgAigIEgoKAngyGAIgAigFEgoKAngzGAMgAigFEgoKAng0GAQgAigFEgoK", + "Ang1GAUgAigDEgoKAng2GAYgAigCEgoKAng3GAcgAigBEgoKAnMxGAggAigJ", + "EgoKAnMyGAkgAigJEhgKAnYyGAogAigLMgwuY2ZnLlZlY3RvcjISGAoCdjMY", + "CyACKAsyDC5jZmcuVmVjdG9yMxIYCgJ2NBgMIAIoCzIMLmNmZy5WZWN0b3I0", + "EgoKAnQxGA0gAigFInIKDlRlc3RUZXN0U3RyaW5nEgoKAmlkGAEgAigFEgoK", + "AnMxGAIgAigJEiMKA2NzMRgDIAIoCzIWLmNmZy5UZXN0Q29tcGFjdFN0cmlu", + "ZxIjCgNjczIYBCACKAsyFi5jZmcuVGVzdENvbXBhY3RTdHJpbmciNwoRVGVz", + "dENvbXBhY3RTdHJpbmcSCgoCaWQYASACKAUSCgoCczIYAiACKAkSCgoCczMY", + "AyACKAkibAoNVGVzdERlbW9Hcm91cBIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIo", + "BRIKCgJ4MhgDIAIoBRIKCgJ4MxgEIAIoBRIKCgJ4NBgFIAIoBRIfCgJ4NRgG", + "IAIoCzITLmNmZy5UZXN0SW5uZXJHcm91cCJACg5UZXN0SW5uZXJHcm91cBIK", + "CgJ5MRgBIAIoBRIKCgJ5MhgCIAIoBRIKCgJ5MxgDIAIoBRIKCgJ5NBgEIAIo", + "BSI7Cg5UZXN0VGVzdEdsb2JhbBIUCgx1bmxvY2tfZXF1aXAYASACKAUSEwoL", + "dW5sb2NrX2hlcm8YAiACKAUiKgoNVGVzdFRlc3RCZVJlZhIKCgJpZBgBIAIo", + "BRINCgVjb3VudBgCIAIoBSKVAwoLVGVzdFRlc3RSZWYSCgoCaWQYASACKAUS", + "CgoCeDEYAiACKAUSDAoEeDFfMhgDIAIoBRIKCgJ4MhgEIAIoBRIKCgJ4MxgF", + "IAIoBRIOCgJhMRgGIAMoBUICEAESDgoCYTIYByADKAVCAhABEg4KAmIxGAgg", + "AygFQgIQARIOCgJiMhgJIAMoBUICEAESDgoCYzEYCiADKAVCAhABEg4KAmMy", + "GAsgAygFQgIQARIkCgJkMRgMIAMoCzIYLmNmZy5UZXN0VGVzdFJlZi5EMUVu", + "dHJ5EiQKAmQyGA0gAygLMhguY2ZnLlRlc3RUZXN0UmVmLkQyRW50cnkSCgoC", + "ZTEYDiACKAUSCgoCZTIYDyACKAMSCgoCZTMYECACKAkSCgoCZjEYESACKAUS", + "CgoCZjIYEiACKAMSCgoCZjMYEyACKAkaKQoHRDFFbnRyeRILCgNrZXkYASAB", + "KAUSDQoFdmFsdWUYAiABKAU6AjgBGikKB0QyRW50cnkSCwoDa2V5GAEgASgF", + "Eg0KBXZhbHVlGAIgASgFOgI4ASKcAQoMVGVzdFRlc3RTaXplEgoKAmlkGAEg", + "AigFEg4KAngxGAIgAygFQgIQARIOCgJ4MhgDIAMoBUICEAESDgoCeDMYBCAD", + "KAVCAhABEiUKAng0GAUgAygLMhkuY2ZnLlRlc3RUZXN0U2l6ZS5YNEVudHJ5", + "GikKB1g0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASJs", + "CgtUZXN0VGVzdFNldBIKCgJpZBgBIAIoBRIOCgJ4MRgCIAMoBUICEAESDgoC", + "eDIYAyADKANCAhABEg4KAngzGAQgAygJQgIQABIhCgJ4NBgFIAMoDjIRLmNm", + "Zy5UZXN0RGVtb0VudW1CAhAAIi4KElRlc3REZXRlY3RFbmNvZGluZxIKCgJp", + "ZBgBIAIoBRIMCgRuYW1lGAIgAigJItUCChNUZXN0RGVmaW5lRnJvbUV4Y2Vs", + "EgoKAmlkGAEgAigFEgoKAngxGAIgAigIEgoKAng1GAMgAigDEgoKAng2GAQg", + "AigCEgoKAng4GAUgAigFEgsKA3gxMBgGIAIoCRIiCgN4MTMYByACKA4yFS5j", + "ZmcuVGVzdEVUZXN0UXVhbGl0eRIhCgN4MTQYCCACKAsyFC5jZmcuVGVzdERl", + "bW9EeW5hbWljEhgKAnYyGAkgAigLMgwuY2ZnLlZlY3RvcjISCgoCdDEYCiAC", + "KAUSDgoCazEYCyADKAVCAhABEiwKAms4GAwgAygLMiAuY2ZnLlRlc3REZWZp", + "bmVGcm9tRXhjZWwuSzhFbnRyeRIfCgJrORgNIAMoCzIPLmNmZy5UZXN0RGVt", + "b0UyQgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo", + "BToCOAEicQoWVGVzdERlZmluZUZyb21FeGNlbE9uZRIUCgx1bmxvY2tfZXF1", + "aXAYASACKAUSEwoLdW5sb2NrX2hlcm8YAiACKAUSFgoOZGVmYXVsdF9hdmF0", + "YXIYAyACKAkSFAoMZGVmYXVsdF9pdGVtGAQgAigJIkEKDVRlc3RUZXN0SW5k", + "ZXgSCgoCaWQYASACKAUSJAoEZWxlcxgCIAMoCzISLmNmZy5UZXN0RGVtb1R5", + "cGUxQgIQACLdAgoLVGVzdFRlc3RNYXASCgoCaWQYASACKAUSJAoCeDEYAiAD", + "KAsyGC5jZmcuVGVzdFRlc3RNYXAuWDFFbnRyeRIkCgJ4MhgDIAMoCzIYLmNm", + "Zy5UZXN0VGVzdE1hcC5YMkVudHJ5EiQKAngzGAQgAygLMhguY2ZnLlRlc3RU", + "ZXN0TWFwLlgzRW50cnkSJAoCeDQYBSADKAsyGC5jZmcuVGVzdFRlc3RNYXAu", + "WDRFbnRyeRopCgdYMUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo", + "BToCOAEaKQoHWDJFbnRyeRILCgNrZXkYASABKAMSDQoFdmFsdWUYAiABKAU6", + "AjgBGikKB1gzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4", + "ARopCgdYNEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEi", + "yAMKEVRlc3RFeGNlbEZyb21Kc29uEgoKAng0GAEgAigFEgoKAngxGAIgAigI", + "EgoKAng1GAMgAigDEgoKAng2GAQgAigCEgoKAnMxGAUgAigJEgoKAnMyGAYg", + "AigJEhgKAnYyGAcgAigLMgwuY2ZnLlZlY3RvcjISGAoCdjMYCCACKAsyDC5j", + "ZmcuVmVjdG9yMxIYCgJ2NBgJIAIoCzIMLmNmZy5WZWN0b3I0EgoKAnQxGAog", + "AigFEh8KA3gxMhgLIAIoCzISLmNmZy5UZXN0RGVtb1R5cGUxEh4KA3gxMxgM", + "IAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0GA0gAigLMhQuY2ZnLlRl", + "c3REZW1vRHluYW1pYxIOCgJrMRgOIAMoBUICEAESKgoCazgYDyADKAsyHi5j", + "ZmcuVGVzdEV4Y2VsRnJvbUpzb24uSzhFbnRyeRIfCgJrORgQIAMoCzIPLmNm", + "Zy5UZXN0RGVtb0UyQgIQABIlCgNrMTUYESADKAsyFC5jZmcuVGVzdERlbW9E", + "eW5hbWljQgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgC", + "IAEoBToCOAEiMAoXVGVzdENvbXBvc2l0ZUpzb25UYWJsZTESCgoCaWQYASAC", + "KAUSCQoBeBgCIAIoCSIwChdUZXN0Q29tcG9zaXRlSnNvblRhYmxlMhIKCgJp", + "ZBgBIAIoBRIJCgF5GAIgAigFIi8KF1Rlc3RDb21wb3NpdGVKc29uVGFibGUz", + "EgkKAWEYASACKAUSCQoBYhgCIAIoBSJXChlUZXN0RXhjZWxGcm9tSnNvbk11", + "bHRpUm93EgoKAmlkGAEgAigFEgkKAXgYAiACKAUSIwoFaXRlbXMYAyADKAsy", + "EC5jZmcuVGVzdFRlc3RSb3dCAhAAIlgKC1Rlc3RUZXN0Um93EgkKAXgYASAC", + "KAUSCQoBeRgCIAIoCBIJCgF6GAMgAigJEhkKAWEYBCACKAsyDi5jZmcuVGVz", + "dFRlc3QzEg0KAWIYBSADKAVCAhABIiEKCVRlc3RUZXN0MxIJCgF4GAEgAigF", + "EgkKAXkYAiACKAUizgEKC1Rlc3RUZXN0U2VwEgoKAmlkGAEgAigFEgoKAngx", + "GAIgAigJEh0KAngyGAMgAigLMhEuY2ZnLlRlc3RTZXBCZWFuMRIeCgJ4MxgE", + "IAIoCzISLmNmZy5UZXN0U2VwVmVjdG9yEiIKAng0GAUgAygLMhIuY2ZnLlRl", + "c3RTZXBWZWN0b3JCAhAAEiEKAng1GAYgAygLMhEuY2ZnLlRlc3RTZXBCZWFu", + "MUICEAASIQoCeDYYByADKAsyES5jZmcuVGVzdFNlcEJlYW4xQgIQACIvCgxU", + "ZXN0U2VwQmVhbjESCQoBYRgBIAIoBRIJCgFiGAIgAigFEgkKAWMYAyACKAki", + "MAoNVGVzdFNlcFZlY3RvchIJCgF4GAEgAigFEgkKAXkYAiACKAUSCQoBehgD", + "IAIoBSJpChRUZXN0VGVzdEV4dGVybmFsVHlwZRIKCgJpZBgBIAIoBRImCgph", + "dWRpb190eXBlGAIgAigOMhIuY2ZnLlRlc3RBdWRpb1R5cGUSHQoFY29sb3IY", + "AyACKAsyDi5jZmcuVGVzdENvbG9yIjcKCVRlc3RDb2xvchIJCgFyGAEgAigC", + "EgkKAWcYAiACKAISCQoBYhgDIAIoAhIJCgFhGAQgAigCItcCChRUZXN0RGVm", + "aW5lRnJvbUV4Y2VsMhIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIoCBIKCgJ4NRgD", + "IAIoAxIKCgJ4NhgEIAIoAhIKCgJ4OBgFIAIoBRILCgN4MTAYBiACKAkSIgoD", + "eDEzGAcgAigOMhUuY2ZnLlRlc3RFVGVzdFF1YWxpdHkSIQoDeDE0GAggAigL", + "MhQuY2ZnLlRlc3REZW1vRHluYW1pYxIYCgJ2MhgJIAIoCzIMLmNmZy5WZWN0", + "b3IyEgoKAnQxGAogAigFEg4KAmsxGAsgAygFQgIQARItCgJrOBgMIAMoCzIh", + "LmNmZy5UZXN0RGVmaW5lRnJvbUV4Y2VsMi5LOEVudHJ5Eh8KAms5GA0gAygL", + "Mg8uY2ZnLlRlc3REZW1vRTJCAhAAGikKB0s4RW50cnkSCwoDa2V5GAEgASgF", + "Eg0KBXZhbHVlGAIgASgFOgI4ASJEChJUZXN0VGVzdEV4Y2VsQmVhbjESCgoC", + "eDEYASACKAUSCgoCeDIYAiACKAkSCgoCeDMYAyACKAUSCgoCeDQYBCACKAIi", + "kwEKDFRlc3RUZXN0RGVzYxIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJEgoK", + "AmExGAMgAigFEgoKAmEyGAQgAigFEhcKAngxGAUgAigLMgsuY2ZnLlRlc3RI", + "MRIbCgJ4MhgGIAMoCzILLmNmZy5UZXN0SDJCAhAAEhsKAngzGAcgAygLMgsu", + "Y2ZnLlRlc3RIMkICEAAiOgoOQWlUYkJsYWNrYm9hcmQSKAoJZGF0YV9saXN0", + "GAEgAygLMhEuY2ZnLkFpQmxhY2tib2FyZEICEAAiPgoQQWlUYkJlaGF2aW9y", + "VHJlZRIqCglkYXRhX2xpc3QYASADKAsyEy5jZmcuQWlCZWhhdmlvclRyZWVC", + "AhAAIj4KEEJsdWVwcmludFRiQ2xhenoSKgoJZGF0YV9saXN0GAEgAygLMhMu", + "Y2ZnLkJsdWVwcmludENsYXp6QgIQACI4CgtCb251c1RiRHJvcBIpCglkYXRh", + "X2xpc3QYASADKAsyEi5jZmcuQm9udXNEcm9wSW5mb0ICEAAiRgoUQ29tbW9u", + "VGJHbG9iYWxDb25maWcSLgoJZGF0YV9saXN0GAEgAygLMhcuY2ZnLkNvbW1v", + "bkdsb2JhbENvbmZpZ0ICEAAiPgoQRXJyb3JUYkVycm9ySW5mbxIqCglkYXRh", + "X2xpc3QYASADKAsyEy5jZmcuRXJyb3JFcnJvckluZm9CAhAAIjwKD0Vycm9y", + "VGJDb2RlSW5mbxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuRXJyb3JDb2Rl", + "SW5mb0ICEAAiMgoKSXRlbVRiSXRlbRIkCglkYXRhX2xpc3QYASADKAsyDS5j", + "ZmcuSXRlbUl0ZW1CAhAAIj4KDkl0ZW1UYkl0ZW1GdW5jEiwKCWRhdGFfbGlz", + "dBgBIAMoCzIVLmNmZy5JdGVtSXRlbUZ1bmN0aW9uQgIQACI8Cg9JdGVtVGJJ", + "dGVtRXh0cmESKQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLkl0ZW1JdGVtRXh0", + "cmFCAhAAIjoKDkwxMG5UYkwxME5EZW1vEigKCWRhdGFfbGlzdBgBIAMoCzIR", + "LmNmZy5MMTBuTDEwTkRlbW9CAhAAIjwKD0wxMG5UYlBhdGNoRGVtbxIpCglk", + "YXRhX2xpc3QYASADKAsyEi5jZmcuTDEwblBhdGNoRGVtb0ICEAAiPgoQTWFp", + "bFRiU3lzdGVtTWFpbBIqCglkYXRhX2xpc3QYASADKAsyEy5jZmcuTWFpbFN5", + "c3RlbU1haWxCAhAAIj4KEE1haWxUYkdsb2JhbE1haWwSKgoJZGF0YV9saXN0", + "GAEgAygLMhMuY2ZnLk1haWxHbG9iYWxNYWlsQgIQACJGChZSb2xlVGJSb2xl", + "TGV2ZWxFeHBBdHRyEiwKCWRhdGFfbGlzdBgBIAMoCzIVLmNmZy5Sb2xlTGV2", + "ZWxFeHBBdHRyQgIQACJNCh9Sb2xlVGJSb2xlTGV2ZWxCb251c0NvZWZmaWNp", + "ZW50EioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5Sb2xlTGV2ZWxCb251c0IC", + "EAAiNgoMVGFnVGJUZXN0VGFnEiYKCWRhdGFfbGlzdBgBIAMoCzIPLmNmZy5U", + "YWdUZXN0VGFnQgIQACI8Cg9UZXN0VGJGdWxsVHlwZXMSKQoJZGF0YV9saXN0", + "GAEgAygLMhIuY2ZnLlRlc3REZW1vVHlwZTJCAhAAIkQKD1Rlc3RUYlNpbmds", + "ZXRvbhIxCglkYXRhX2xpc3QYASADKAsyGi5jZmcuVGVzdERlbW9TaW5nbGV0", + "b25UeXBlQgIQACJCChJUZXN0VGJOb3RJbmRleExpc3QSLAoJZGF0YV9saXN0", + "GAEgAygLMhUuY2ZnLlRlc3ROb3RJbmRleExpc3RCAhAAIlAKGVRlc3RUYk11", + "bHRpVW5pb25JbmRleExpc3QSMwoJZGF0YV9saXN0GAEgAygLMhwuY2ZnLlRl", + "c3RNdWx0aVVuaW9uSW5kZXhMaXN0QgIQACJGChRUZXN0VGJNdWx0aUluZGV4", + "TGlzdBIuCglkYXRhX2xpc3QYASADKAsyFy5jZmcuVGVzdE11bHRpSW5kZXhM", + "aXN0QgIQACI/ChJUZXN0VGJEYXRhRnJvbU1pc2MSKQoJZGF0YV9saXN0GAEg", + "AygLMhIuY2ZnLlRlc3REZW1vVHlwZTJCAhAAIkYKFFRlc3RUYk11bHRpUm93", + "UmVjb3JkEi4KCWRhdGFfbGlzdBgBIAMoCzIXLmNmZy5UZXN0TXVsdGlSb3dS", + "ZWNvcmRCAhAAIkQKE1Rlc3RUYk11bHRpUm93VGl0bGUSLQoJZGF0YV9saXN0", + "GAEgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1RpdGxlQgIQACI6Cg5UZXN0VGJU", + "ZXN0TnVsbBIoCglkYXRhX2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3ROdWxs", + "QgIQACJOChNUZXN0VGJEZW1vUHJpbWl0aXZlEjcKCWRhdGFfbGlzdBgBIAMo", + "CzIgLmNmZy5UZXN0RGVtb1ByaW1pdGl2ZVR5cGVzVGFibGVCAhAAIj4KEFRl", + "c3RUYlRlc3RTdHJpbmcSKgoJZGF0YV9saXN0GAEgAygLMhMuY2ZnLlRlc3RU", + "ZXN0U3RyaW5nQgIQACI8Cg9UZXN0VGJEZW1vR3JvdXASKQoJZGF0YV9saXN0", + "GAEgAygLMhIuY2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4KEVRlc3RUYkRlbW9H", + "cm91cF9DEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0RGVtb0dyb3Vw", + "QgIQACI+ChFUZXN0VGJEZW1vR3JvdXBfUxIpCglkYXRhX2xpc3QYASADKAsy", + "Ei5jZmcuVGVzdERlbW9Hcm91cEICEAAiPgoRVGVzdFRiRGVtb0dyb3VwX0US", + "KQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4K", + "EFRlc3RUYlRlc3RHbG9iYWwSKgoJZGF0YV9saXN0GAEgAygLMhMuY2ZnLlRl", + "c3RUZXN0R2xvYmFsQgIQACI8Cg9UZXN0VGJUZXN0QmVSZWYSKQoJZGF0YV9s", + "aXN0GAEgAygLMhIuY2ZnLlRlc3RUZXN0QmVSZWZCAhAAIj0KEFRlc3RUYlRl", + "c3RCZVJlZjISKQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLlRlc3RUZXN0QmVS", + "ZWZCAhAAIjgKDVRlc3RUYlRlc3RSZWYSJwoJZGF0YV9saXN0GAEgAygLMhAu", + "Y2ZnLlRlc3RUZXN0UmVmQgIQACI6Cg5UZXN0VGJUZXN0U2l6ZRIoCglkYXRh", + "X2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3RTaXplQgIQACI4Cg1UZXN0VGJU", + "ZXN0U2V0EicKCWRhdGFfbGlzdBgBIAMoCzIQLmNmZy5UZXN0VGVzdFNldEIC", + "EAAiSQoXVGVzdFRiRGV0ZWN0Q3N2RW5jb2RpbmcSLgoJZGF0YV9saXN0GAEg", + "AygLMhcuY2ZnLlRlc3REZXRlY3RFbmNvZGluZ0ICEAAiSAoVVGVzdFRiRGVm", + "aW5lRnJvbUV4Y2VsEi8KCWRhdGFfbGlzdBgBIAMoCzIYLmNmZy5UZXN0RGVm", + "aW5lRnJvbUV4Y2VsQgIQACJOChhUZXN0VGJEZWZpbmVGcm9tRXhjZWxPbmUS", + "MgoJZGF0YV9saXN0GAEgAygLMhsuY2ZnLlRlc3REZWZpbmVGcm9tRXhjZWxP", + "bmVCAhAAIjwKD1Rlc3RUYlRlc3RJbmRleBIpCglkYXRhX2xpc3QYASADKAsy", + "Ei5jZmcuVGVzdFRlc3RJbmRleEICEAAiOAoNVGVzdFRiVGVzdE1hcBInCglk", + "YXRhX2xpc3QYASADKAsyEC5jZmcuVGVzdFRlc3RNYXBCAhAAIkQKE1Rlc3RU", + "YkV4Y2VsRnJvbUpzb24SLQoJZGF0YV9saXN0GAEgAygLMhYuY2ZnLlRlc3RF", + "eGNlbEZyb21Kc29uQgIQACJQChlUZXN0VGJDb21wb3NpdGVKc29uVGFibGUx", + "EjMKCWRhdGFfbGlzdBgBIAMoCzIcLmNmZy5UZXN0Q29tcG9zaXRlSnNvblRh", + "YmxlMUICEAAiUAoZVGVzdFRiQ29tcG9zaXRlSnNvblRhYmxlMhIzCglkYXRh", + "X2xpc3QYASADKAsyHC5jZmcuVGVzdENvbXBvc2l0ZUpzb25UYWJsZTJCAhAA", + "IlAKGVRlc3RUYkNvbXBvc2l0ZUpzb25UYWJsZTMSMwoJZGF0YV9saXN0GAEg", + "AygLMhwuY2ZnLlRlc3RDb21wb3NpdGVKc29uVGFibGUzQgIQACJUChtUZXN0", + "VGJFeGNlbEZyb21Kc29uTXVsdGlSb3cSNQoJZGF0YV9saXN0GAEgAygLMh4u", + "Y2ZnLlRlc3RFeGNlbEZyb21Kc29uTXVsdGlSb3dCAhAAIjgKDVRlc3RUYlRl", + "c3RTZXASJwoJZGF0YV9saXN0GAEgAygLMhAuY2ZnLlRlc3RUZXN0U2VwQgIQ", + "ACJKChZUZXN0VGJUZXN0RXh0ZXJuYWxUeXBlEjAKCWRhdGFfbGlzdBgBIAMo", + "CzIZLmNmZy5UZXN0VGVzdEV4dGVybmFsVHlwZUICEAAiSwoeVGVzdFRiRGVt", + "b0dyb3VwRGVmaW5lRnJvbUV4Y2VsEikKCWRhdGFfbGlzdBgBIAMoCzISLmNm", + "Zy5UZXN0RGVtb0dyb3VwQgIQACJKChZUZXN0VGJEZWZpbmVGcm9tRXhjZWwy", + "EjAKCWRhdGFfbGlzdBgBIAMoCzIZLmNmZy5UZXN0RGVmaW5lRnJvbUV4Y2Vs", + "MkICEAAiRQoTVGVzdFRiVGVzdEV4Y2VsQmVhbhIuCglkYXRhX2xpc3QYASAD", + "KAsyFy5jZmcuVGVzdFRlc3RFeGNlbEJlYW4xQgIQACI6Cg5UZXN0VGJUZXN0", + "RGVzYxIoCglkYXRhX2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3REZXNjQgIQ", + "ACo9CgtBaUVFeGVjdXRvchIWChJBaUVFeGVjdXRvcl9DTElFTlQQABIWChJB", + "aUVFeGVjdXRvcl9TRVJWRVIQASroAQoKQWlFS2V5VHlwZRITCg9BaUVLZXlU", + "eXBlX0JPT0wQARISCg5BaUVLZXlUeXBlX0lOVBACEhQKEEFpRUtleVR5cGVf", + "RkxPQVQQAxIVChFBaUVLZXlUeXBlX1NUUklORxAEEhUKEUFpRUtleVR5cGVf", + "VkVDVE9SEAUSFgoSQWlFS2V5VHlwZV9ST1RBVE9SEAYSEwoPQWlFS2V5VHlw", + "ZV9OQU1FEAcSFAoQQWlFS2V5VHlwZV9DTEFTUxAIEhMKD0FpRUtleVR5cGVf", + "RU5VTRAJEhUKEUFpRUtleVR5cGVfT0JKRUNUEAoqiAEKEEFpRUZsb3dBYm9y", + "dE1vZGUSGQoVQWlFRmxvd0Fib3J0TW9kZV9OT05FEAASIwofQWlFRmxvd0Fi", + "b3J0TW9kZV9MT1dFUl9QUklPUklUWRABEhkKFUFpRUZsb3dBYm9ydE1vZGVf", + "U0VMRhACEhkKFUFpRUZsb3dBYm9ydE1vZGVfQk9USBADKkcKDUFpRUZpbmlz", + "aE1vZGUSGwoXQWlFRmluaXNoTW9kZV9JTU1FRElBVEUQABIZChVBaUVGaW5p", + "c2hNb2RlX0RFTEFZRUQQASpuChVBaUVOb3RpZnlPYnNlcnZlck1vZGUSKQol", + "QWlFTm90aWZ5T2JzZXJ2ZXJNb2RlX09OX1ZBTFVFX0NIQU5HRRAAEioKJkFp", + "RU5vdGlmeU9ic2VydmVyTW9kZV9PTl9SRVNVTFRfQ0hBTkdFEAEqlQIKC0Fp", + "RU9wZXJhdG9yEhsKF0FpRU9wZXJhdG9yX0lTX0VRVUFMX1RPEAASHwobQWlF", + "T3BlcmF0b3JfSVNfTk9UX0VRVUFMX1RPEAESHAoYQWlFT3BlcmF0b3JfSVNf", + "TEVTU19USEFOEAISKAokQWlFT3BlcmF0b3JfSVNfTEVTU19USEFOX09SX0VR", + "VUFMX1RPEAMSHQoZQWlFT3BlcmF0b3JfSVNfR1JFQVRfVEhBThAEEikKJUFp", + "RU9wZXJhdG9yX0lTX0dSRUFUX1RIQU5fT1JfRVFVQUxfVE8QBRIYChRBaUVP", + "cGVyYXRvcl9DT05UQUlOUxAGEhwKGEFpRU9wZXJhdG9yX05PVF9DT05UQUlO", + "UxAHKk4KE0NvbW1vbkVCb29sT3BlcmF0b3ISGwoXQ29tbW9uRUJvb2xPcGVy", + "YXRvcl9BTkQQABIaChZDb21tb25FQm9vbE9wZXJhdG9yX09SEAEqSgoPRXJy", + "b3JFT3BlcmF0aW9uEhoKFkVycm9yRU9wZXJhdGlvbl9MT0dPVVQQABIbChdF", + "cnJvckVPcGVyYXRpb25fUkVTVEFSVBABKt8bCg9FcnJvckVFcnJvckNvZGUS", + "FgoSRXJyb3JFRXJyb3JDb2RlX09LEAASJQohRXJyb3JFRXJyb3JDb2RlX1NF", + "UlZFUl9OT1RfRVhJU1RTEAESIwofRXJyb3JFRXJyb3JDb2RlX0hBU19CSU5E", + "X1NFUlZFUhACEh0KGUVycm9yRUVycm9yQ29kZV9BVVRIX0ZBSUwQAxIjCh9F", + "cnJvckVFcnJvckNvZGVfTk9UX0JJTkRfU0VSVkVSEAQSJgoiRXJyb3JFRXJy", + "b3JDb2RlX1NFUlZFUl9BQ0NFU1NfRkFJTBAFEiEKHUVycm9yRUVycm9yQ29k", + "ZV9FWEFNUExFX0ZMQVNIEAYSIgoeRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVf", + "TVNHQk9YEAcSIgoeRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVfRExHX09LEAgS", + "KQolRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVfRExHX09LX0NBTkNFTBAJEjEK", + "LUVycm9yRUVycm9yQ29kZV9ST0xFX0NSRUFURV9OQU1FX0lOVkFMSURfQ0hB", + "UhBkEioKJkVycm9yRUVycm9yQ29kZV9ST0xFX0NSRUFURV9OQU1FX0VNUFRZ", + "EGUSNgoyRXJyb3JFRXJyb3JDb2RlX1JPTEVfQ1JFQVRFX05BTUVfRVhDRUVE", + "X01BWF9MRU5HVEgQZhIuCipFcnJvckVFcnJvckNvZGVfUk9MRV9DUkVBVEVf", + "Uk9MRV9MSVNUX0ZVTEwQZxIyCi5FcnJvckVFcnJvckNvZGVfUk9MRV9DUkVB", + "VEVfSU5WQUxJRF9QUk9GRVNTSU9OEGgSLgoqRXJyb3JFRXJyb3JDb2RlX1JP", + "TEVfQ1JFQVRFX0lOVkFMSURfR0VOREVSEGkSKgomRXJyb3JFRXJyb3JDb2Rl", + "X1JPTEVfTk9UX09XTkVEX0JZX1VTRVIQahIpCiVFcnJvckVFcnJvckNvZGVf", + "Uk9MRV9MRVZFTF9OT1RfQVJSSVZFEGsSIgodRXJyb3JFRXJyb3JDb2RlX1BB", + "UkFNX0lMTEVHQUwQyAESJwoiRXJyb3JFRXJyb3JDb2RlX1RFTVBfQkFHX05P", + "VF9FTVBUWRDJARIlCiBFcnJvckVFcnJvckNvZGVfSVRFTV9DQU5fTk9UX1VT", + "RRDKARIoCiNFcnJvckVFcnJvckNvZGVfQ1VSUkVOQ1lfTk9UX0VOT1VHSBDL", + "ARIgChtFcnJvckVFcnJvckNvZGVfQkFHX0lTX0ZVTEwQzAESJAofRXJyb3JF", + "RXJyb3JDb2RlX0lURU1fTk9UX0VOT1VHSBDNARIgChtFcnJvckVFcnJvckNv", + "ZGVfSVRFTV9JTl9CQUcQzgESJQogRXJyb3JFRXJyb3JDb2RlX0dFTkRFUl9O", + "T1RfTUFUQ0gQrAISIgodRXJyb3JFRXJyb3JDb2RlX0xFVkVMX1RPT19MT1cQ", + "rQISIwoeRXJyb3JFRXJyb3JDb2RlX0xFVkVMX1RPT19ISUdIEK4CEiEKHEVy", + "cm9yRUVycm9yQ29kZV9FWENFRURfTElNSVQQrwISHgoZRXJyb3JFRXJyb3JD", + "b2RlX09WRVJfVElNRRCwAhIhChxFcnJvckVFcnJvckNvZGVfU0VSVkVSX0VS", + "Uk9SELECEiYKIUVycm9yRUVycm9yQ29kZV9TS0lMTF9OT1RfSU5fTElTVBCQ", + "AxInCiJFcnJvckVFcnJvckNvZGVfU0tJTExfTk9UX0NPT0xET1dOEJEDEisK", + "JkVycm9yRUVycm9yQ29kZV9TS0lMTF9UQVJHRVRfTk9UX0VYSVNUEJIDEioK", + "JUVycm9yRUVycm9yQ29kZV9TS0lMTF9BTk9USEVSX0NBU1RJTkcQkwMSKgol", + "RXJyb3JFRXJyb3JDb2RlX1NLSUxMX09VVF9PRl9ESVNUQU5DRRCUAxIwCitF", + "cnJvckVFcnJvckNvZGVfU0tJTExfVEFSR0VUX0NBTVBfTk9UX01BVENIEJUD", + "EiwKJ0Vycm9yRUVycm9yQ29kZV9TS0lMTF9JTlZBTElEX0RJUkVDVElPThCW", + "AxIuCilFcnJvckVFcnJvckNvZGVfU0tJTExfTk9UX0lOX1NFTEVDVF9TSEFQ", + "RRCXAxIsCidFcnJvckVFcnJvckNvZGVfU0tJTExfRU5FUkdZX05PVF9FTk9V", + "R0gQmAMSLAonRXJyb3JFRXJyb3JDb2RlX0RJQUxPR19OT0RFX05PVF9DSE9P", + "U0VOEPQDEiYKIUVycm9yRUVycm9yQ29kZV9ESUFMT0dfTk9UX0ZJTklTSBD1", + "AxImCiFFcnJvckVFcnJvckNvZGVfRElBTE9HX0hBU19GSU5JU0gQ9gMSLQoo", + "RXJyb3JFRXJyb3JDb2RlX1FVRVNUX1NUQUdFX05PVF9GSU5JU0hFRBD3AxIk", + "Ch9FcnJvckVFcnJvckNvZGVfUVVFU1RfTk9UX0RPSU5HEPgDEioKJUVycm9y", + "RUVycm9yQ29kZV9RVUVTVF9TVEFHRV9OT1RfRE9JTkcQ+QMSJwoiRXJyb3JF", + "RXJyb3JDb2RlX1FVRVNUX0hBU19BQ0NFUFRFRBD6AxIpCiRFcnJvckVFcnJv", + "ckNvZGVfTUFQX09CSkVDVF9OT1RfRVhJU1QQ2AQSPQo4RXJyb3JFRXJyb3JD", + "b2RlX0lOVEVSQUNUSU9OX09CSkVDVF9OT1RfU1VQUE9SVF9PUEVSQVRJT04Q", + "2QQSIgodRXJyb3JFRXJyb3JDb2RlX0hBU19OT1RfRVFVSVAQ2gQSMAorRXJy", + "b3JFRXJyb3JDb2RlX0hBTkRIRUxEX0VRVUlQX0lEX05PVF9NQVRDSBDbBBIq", + "CiVFcnJvckVFcnJvckNvZGVfTk9UX0FWQUlMQUJMRV9TVUlUX0lEENwEEi0K", + "KEVycm9yRUVycm9yQ29kZV9OT19JTlRFUkFDVElPTl9DT01QT05FTlQQ3QQS", + "IwoeRXJyb3JFRXJyb3JDb2RlX0hBU19JTlRFUkFDVEVEEN4EEicKIkVycm9y", + "RUVycm9yQ29kZV9WSUFMSVRZX05PVF9FTk9VR0gQ3wQSLQooRXJyb3JFRXJy", + "b3JDb2RlX1BMQVlFUl9TRVNTSU9OX05PVF9FWElTVBDgBBI5CjRFcnJvckVF", + "cnJvckNvZGVfUExBWUVSX1NFU1NJT05fV09STERfUExBWUVSX05PVF9JTklU", + "EOEEEiIKHUVycm9yRUVycm9yQ29kZV9NQVBfTk9UX0VYSVNUEOIEEiQKH0Vy", + "cm9yRUVycm9yQ29kZV9NQUlMX1RZUEVfRVJST1IQvAUSJAofRXJyb3JFRXJy", + "b3JDb2RlX01BSUxfTk9UX0VYSVRTVBC9BRImCiFFcnJvckVFcnJvckNvZGVf", + "TUFJTF9IQVZFX0RFTEVURUQQvgUSLQooRXJyb3JFRXJyb3JDb2RlX01BSUxf", + "QVdBUkRfSEFWRV9SRUNFSVZFRBC/BRIsCidFcnJvckVFcnJvckNvZGVfTUFJ", + "TF9PUEVSQVRFX1RZUEVfRVJST1IQwAUSLAonRXJyb3JFRXJyb3JDb2RlX01B", + "SUxfQ09ORElUSU9OX05PVF9NRUVUEMEFEiUKIEVycm9yRUVycm9yQ29kZV9N", + "QUlMX1NUQVRFX0VSUk9SEMIFEiIKHUVycm9yRUVycm9yQ29kZV9NQUlMX05P", + "X0FXQVJEEMMFEiUKIEVycm9yRUVycm9yQ29kZV9NQUlMX0JPWF9JU19GVUxM", + "EMQFEi8KKkVycm9yRUVycm9yQ29kZV9QUk9QX1NDT1JFX05PVF9CSUdHRVJf", + "VEhBThCgBhIlCiBFcnJvckVFcnJvckNvZGVfTk9UX1dFQVJfQ0xPVEhFUxCh", + "BhIiCh1FcnJvckVFcnJvckNvZGVfTk9UX1dFQVJfU1VJVBCiBhIkCh9FcnJv", + "ckVFcnJvckNvZGVfU1VJVF9OT1RfVU5MT0NLEIQHEi4KKUVycm9yRUVycm9y", + "Q29kZV9TVUlUX0NPTVBPTkVOVF9OT1RfVU5MT0NLEIUHEiUKIEVycm9yRUVy", + "cm9yQ29kZV9TVUlUX1NUQVRFX0VSUk9SEIYHEi8KKkVycm9yRUVycm9yQ29k", + "ZV9TVUlUX0NPTVBPTkVOVF9TVEFURV9FUlJPUhCHBxIxCixFcnJvckVFcnJv", + "ckNvZGVfU1VJVF9DT01QT05FTlRfTk9fTkVFRF9MRUFSThCIBxImCiFFcnJv", + "ckVFcnJvckNvZGVfU1RPUkVfTk9UX0VOQUJMRUQQ6AcSJgohRXJyb3JFRXJy", + "b3JDb2RlX1NIRUxGX05PVF9FTkFCTEVEEOkHEiYKIUVycm9yRUVycm9yQ29k", + "ZV9HT09EU19OT1RfRU5BQkxFRBDqBxItCihFcnJvckVFcnJvckNvZGVfR09P", + "RFNfTk9UX0lOX0NVUl9SRUZSRVNIEOsHEhoKFUVycm9yRUVycm9yQ29kZV9S", + "RVRSWRDMCBIhChxFcnJvckVFcnJvckNvZGVfTk9UX0NPT0xET1dOEM0IEiIK", + "HUVycm9yRUVycm9yQ29kZV9TRUxGSUVfVU5MT0NLELAJEioKJUVycm9yRUVy", + "cm9yQ29kZV9TRUxGSUVfQUxSRUFEWV9VTkxPQ0sQsQkSJwoiRXJyb3JFRXJy", + "b3JDb2RlX1NFTEZJRV9MQUNLX1NUQVJUUxCyCRImCiFFcnJvckVFcnJvckNv", + "ZGVfU0VMRklFX0hBRF9SRVdBUkQQswkqnwEKEEl0ZW1FSXRlbVF1YWxpdHkS", + "GgoWSXRlbUVJdGVtUXVhbGl0eV9XSElURRAAEhoKFkl0ZW1FSXRlbVF1YWxp", + "dHlfR1JFRU4QARIZChVJdGVtRUl0ZW1RdWFsaXR5X0JMVUUQAhIbChdJdGVt", + "RUl0ZW1RdWFsaXR5X1BVUlBMRRADEhsKF0l0ZW1FSXRlbVF1YWxpdHlfR09M", + "REVOEAQqqgEKEUl0ZW1FQ3VycmVuY3lUeXBlEh0KGUl0ZW1FQ3VycmVuY3lU", + "eXBlX0RJQU1PTkQQARIaChZJdGVtRUN1cnJlbmN5VHlwZV9HT0xEEAISHAoY", + "SXRlbUVDdXJyZW5jeVR5cGVfU0lMVkVSEAMSGQoVSXRlbUVDdXJyZW5jeVR5", + "cGVfRVhQEAQSIQodSXRlbUVDdXJyZW5jeVR5cGVfUE9XRVJfUE9JTlQQBSrb", + "AgoOSXRlbUVNYWpvclR5cGUSGwoXSXRlbUVNYWpvclR5cGVfQ1VSUkVOQ1kQ", + "ARIYChRJdGVtRU1ham9yVHlwZV9DTE9USBACEhgKFEl0ZW1FTWFqb3JUeXBl", + "X1FVRVNUEAMSHgoaSXRlbUVNYWpvclR5cGVfQ09OU1VNQUJMRVMQBBIfChtJ", + "dGVtRU1ham9yVHlwZV9UUkVBU1VSRV9CT1gQBRIoCiRJdGVtRU1ham9yVHlw", + "ZV9BQ0hJRVZFTUVOVF9BTkRfVElUTEUQBhIdChlJdGVtRU1ham9yVHlwZV9I", + "RUFEX0ZSQU1FEAcSGAoUSXRlbUVNYWpvclR5cGVfVk9JQ0UQCBIZChVJdGVt", + "RU1ham9yVHlwZV9BQ1RJT04QCRIcChhJdGVtRU1ham9yVHlwZV9FWFBBTlNJ", + "T04QChIbChdJdGVtRU1ham9yVHlwZV9NQVRFUklBTBALKo8MCg5JdGVtRU1p", + "bm9yVHlwZRIaChZJdGVtRU1pbm9yVHlwZV9ESUFNT05EEGUSFwoTSXRlbUVN", + "aW5vclR5cGVfR09MRBBmEhkKFUl0ZW1FTWlub3JUeXBlX1NJTFZFUhBnEhYK", + "Ekl0ZW1FTWlub3JUeXBlX0VYUBBoEh4KGkl0ZW1FTWlub3JUeXBlX1BPV0VS", + "X1BPSU5UEGkSHgoZSXRlbUVNaW5vclR5cGVfSEFJUl9TVFlMRRDSARIYChNJ", + "dGVtRU1pbm9yVHlwZV9DT0FUENwBEiAKG0l0ZW1FTWlub3JUeXBlX1VQUEVS", + "X0pBQ0tFVBDmARIcChdJdGVtRU1pbm9yVHlwZV9UUk9VU0VSUxDxARIZChRJ", + "dGVtRU1pbm9yVHlwZV9TS0lSVBDyARIZChRJdGVtRU1pbm9yVHlwZV9TT0NL", + "UxD6ARIZChRJdGVtRU1pbm9yVHlwZV9TSE9FUxCEAhIiCh1JdGVtRU1pbm9y", + "VHlwZV9IQUlSX0FDQ0VTU09SWRCPAhIXChJJdGVtRU1pbm9yVHlwZV9IQVQQ", + "kAISGwoWSXRlbUVNaW5vclR5cGVfRUFSUklORxCRAhIcChdJdGVtRU1pbm9y", + "VHlwZV9ORUNLTEFDRRCSAhIcChdJdGVtRU1pbm9yVHlwZV9CUkFDRUxFVBCT", + "AhIeChlJdGVtRU1pbm9yVHlwZV9IQUlSX0NMQVNQEJQCEhkKFEl0ZW1FTWlu", + "b3JUeXBlX0dMT1ZFEJUCEiMKHkl0ZW1FTWlub3JUeXBlX0hBTkRIRUxEX09C", + "SkVDVBCWAhIbChZJdGVtRU1pbm9yVHlwZV9TUEVDSUFMEJcCEiEKHEl0ZW1F", + "TWlub3JUeXBlX0JBU0VfQ09TTUVUSUMQmQISJAofSXRlbUVNaW5vclR5cGVf", + "RVlFQlJPV19DT1NNRVRJQxCaAhIbChZJdGVtRU1pbm9yVHlwZV9FWUVMQVNI", + "EJsCEisKJkl0ZW1FTWlub3JUeXBlX0NPU01FVElDX0NPTlRBQ1RfTEVOU0VT", + "EJwCEiAKG0l0ZW1FTWlub3JUeXBlX0xJUF9DT1NNRVRJQxCdAhIeChlJdGVt", + "RU1pbm9yVHlwZV9TS0lOX0NPTE9SEJ4CEiMKHkl0ZW1FTWlub3JUeXBlX09O", + "RV9QSUVDRV9EUkVTUxCiAhIoCiNJdGVtRU1pbm9yVHlwZV9TV0lUQ0hfQ0xP", + "VEhFU19TQ0VORRCjAhIZChRJdGVtRU1pbm9yVHlwZV9RVUVTVBCtAhIYChNJ", + "dGVtRU1pbm9yVHlwZV9DQVNUEJEDEhkKFEl0ZW1FTWlub3JUeXBlX1NXT1JE", + "EKUDEh0KGEl0ZW1FTWlub3JUeXBlX0JPV19BUlJPVxCmAxIZChRJdGVtRU1p", + "bm9yVHlwZV9XQU5EUxCnAxIgChtJdGVtRU1pbm9yVHlwZV9TUEVDSUFMX1RP", + "T0wQqAMSGAoTSXRlbUVNaW5vclR5cGVfRk9PRBCTAxIgChtJdGVtRU1pbm9y", + "VHlwZV9UUkVBU1VSRV9CT1gQ9QMSFwoSSXRlbUVNaW5vclR5cGVfS0VZEPYD", + "Ei0KKEl0ZW1FTWlub3JUeXBlX01VTFRJX0NIT09TRV9UUkVBU1VSRV9CT1gQ", + "9wMSHwoaSXRlbUVNaW5vclR5cGVfQUNISUVWRU1FTlQQ2QQSGQoUSXRlbUVN", + "aW5vclR5cGVfVElUTEUQ2gQSIAobSXRlbUVNaW5vclR5cGVfQVZBVEFSX0ZS", + "QU1FEL0FEhkKFEl0ZW1FTWlub3JUeXBlX1ZPSUNFEKEGEh0KGEl0ZW1FTWlu", + "b3JUeXBlX0lETEVfUE9TRRCFBxIeChlJdGVtRU1pbm9yVHlwZV9QSE9UT19Q", + "T1NFEIYHEhcKEkl0ZW1FTWlub3JUeXBlX0JBRxDpBxIjCh5JdGVtRU1pbm9y", + "VHlwZV9GUklFTkRfQ0FQQUNJVFkQ6gcSKQokSXRlbUVNaW5vclR5cGVfQ09O", + "U1RSVUNUSU9OX01BVEVSSUFMEM0IEiIKHUl0ZW1FTWlub3JUeXBlX0RFU0lH", + "Tl9EUkFXSU5HEM4IKqMDChxJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBl", + "EiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfT05FEAESJAogSXRl", + "bUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9UV08QAhImCiJJdGVtRUNsb3Ro", + "ZXJzU3RhclF1YWxpdHlUeXBlX1RIUkVFEAMSJQohSXRlbUVDbG90aGVyc1N0", + "YXJRdWFsaXR5VHlwZV9GT1VSEAQSJQohSXRlbUVDbG90aGVyc1N0YXJRdWFs", + "aXR5VHlwZV9GSVZFEAUSJAogSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlw", + "ZV9TSVgQBhImCiJJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBlX1NFVkVO", + "EAcSJgoiSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9FSUdIVBAIEiUK", + "IUl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfTklORRAJEiQKIEl0ZW1F", + "Q2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfVEVOEAoqTwoQSXRlbUVDbG90aGVy", + "c1RhZxIeChpJdGVtRUNsb3RoZXJzVGFnX0ZBTkdfU0hBSRABEhsKF0l0ZW1F", + "Q2xvdGhlcnNUYWdfV1VfWkhFEAIqPgoMSXRlbUVVc2VUeXBlEhcKE0l0ZW1F", + "VXNlVHlwZV9NQU5VQUwQABIVChFJdGVtRVVzZVR5cGVfQVVUTxABKtACChhJ", + "dGVtRUNsb3RoZXNIaWRlUGFydFR5cGUSIgoeSXRlbUVDbG90aGVzSGlkZVBh", + "cnRUeXBlX0NIRVNUEAASIQodSXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0hF", + "QUQQARIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfU1BJTkVfVVBQRVIQ", + "AhIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfU1BJTkVfTE9XRVIQAxIg", + "ChxJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfSElQEAQSJgoiSXRlbUVDbG90", + "aGVzSGlkZVBhcnRUeXBlX0xFR19VUFBFUhAFEicKI0l0ZW1FQ2xvdGhlc0hp", + "ZGVQYXJ0VHlwZV9MRUdfTUlERExFEAYSJgoiSXRlbUVDbG90aGVzSGlkZVBh", + "cnRUeXBlX0xFR19MT1dFUhAHKpsDChhJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5", + "cGUSJQohSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0pJQU5fWVVFEAESIwof", + "SXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0hVQV9MSRACEiIKHkl0ZW1FQ2xv", + "dGhlc1Byb3BlcnR5VHlwZV9LRV9BSRADEiYKIkl0ZW1FQ2xvdGhlc1Byb3Bl", + "cnR5VHlwZV9DSEVOR19TSFUQBBIjCh9JdGVtRUNsb3RoZXNQcm9wZXJ0eVR5", + "cGVfSFVPX1BPEAUSIwofSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX1lPVV9Z", + "QRAGEiYKIkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9RSU5HX0NIVU4QBxIl", + "CiFJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVfWElOR19HQU4QCBInCiNJdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGVfUUlOR19MSUFORxAJEiUKIUl0ZW1FQ2xv", + "dGhlc1Byb3BlcnR5VHlwZV9CQU9fTlVBThAKKnEKFUl0ZW1FSXRlbUZ1bmN0", + "aW9uVHlwZRIqCiZJdGVtRUl0ZW1GdW5jdGlvblR5cGVfUkVQTEFDRV9IQU5E", + "SEVMRBAAEiwKKEl0ZW1FSXRlbUZ1bmN0aW9uVHlwZV9VU0VfREVTSUdOX0RS", + "QVdJTkcQASqLAQoPTGltaXRFTmFtZXNwYWNlEiUKIUxpbWl0RU5hbWVzcGFj", + "ZV9JVEVNX0RBSUxZX09CVEFJThABEiYKIkxpbWl0RU5hbWVzcGFjZV9UUkVB", + "U1VSRV9EQUlMWV9VU0UQAhIpCiVMaW1pdEVOYW1lc3BhY2VfU1RPUkVfR09P", + "RFNfTElNSVRfQlVZEAMqQwoNTWFpbEVNYWlsVHlwZRIYChRNYWlsRU1haWxU", + "eXBlX0dMT0JBTBAAEhgKFE1haWxFTWFpbFR5cGVfU1lTVEVNEAEqRwoPUm9s", + "ZUVHZW5kZXJUeXBlEhgKFFJvbGVFR2VuZGVyVHlwZV9NQUxFEAESGgoWUm9s", + "ZUVHZW5kZXJUeXBlX0ZFTUFMRRACKjYKD1JvbGVFUHJvZmVzc2lvbhIjCh9S", + "b2xlRVByb2Zlc3Npb25fVEVTVF9QUk9GRVNTSU9OEAEqXgoMVGVzdERlbW9F", + "bnVtEhIKDlRlc3REZW1vRW51bV9BEAESEgoOVGVzdERlbW9FbnVtX0IQAhIS", + "Cg5UZXN0RGVtb0VudW1fQxAEEhIKDlRlc3REZW1vRW51bV9EEAUqSgoMVGVz", + "dERlbW9GbGFnEhIKDlRlc3REZW1vRmxhZ19BEAESEgoOVGVzdERlbW9GbGFn", + "X0IQAhISCg5UZXN0RGVtb0ZsYWdfRBADKkcKD1Rlc3RFVGVzdFVlVHlwZRIZ", + "ChVUZXN0RVRlc3RVZVR5cGVfV0hJVEUQABIZChVUZXN0RVRlc3RVZVR5cGVf", + "QkxBQ0sQASo+ChJUZXN0RVRlc3RFbXB0eUVudW0SKAokVGVzdEVUZXN0RW1w", + "dHlFbnVtX0VNUFRZX1BMQUNFSE9MREVSEAAqfgoTVGVzdEVUZXN0RW1wdHlF", + "bnVtMhInCiJUZXN0RVRlc3RFbXB0eUVudW0yX1NNQUxMX1RIQU5fMjU2EP8B", + "Eh4KGVRlc3RFVGVzdEVtcHR5RW51bTJfWF8yNTYQgAISHgoZVGVzdEVUZXN0", + "RW1wdHlFbnVtMl9YXzI1NxCBAipZCg1UZXN0QXVkaW9UeXBlEhkKFVRlc3RB", + "dWRpb1R5cGVfVU5LTk9XThAAEhUKEVRlc3RBdWRpb1R5cGVfQUNDEAESFgoS", + "VGVzdEF1ZGlvVHlwZV9BSUZGEAIqcgoQVGVzdEVUZXN0UXVhbGl0eRIWChJU", + "ZXN0RVRlc3RRdWFsaXR5X0EQARIWChJUZXN0RVRlc3RRdWFsaXR5X0IQAhIW", + "ChJUZXN0RVRlc3RRdWFsaXR5X0MQAxIWChJUZXN0RVRlc3RRdWFsaXR5X0QQ", + "BCqXAQoOVGVzdEFjY2Vzc0ZsYWcSGAoUVGVzdEFjY2Vzc0ZsYWdfV1JJVEUQ", + "ARIXChNUZXN0QWNjZXNzRmxhZ19SRUFEEAISGwoXVGVzdEFjY2Vzc0ZsYWdf", + "VFJVTkNBVEUQBBIWChJUZXN0QWNjZXNzRmxhZ19ORVcQCBIdChlUZXN0QWNj", + "ZXNzRmxhZ19SRUFEX1dSSVRFEAM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Cfg.AiEExecutor), typeof(global::Cfg.AiEKeyType), typeof(global::Cfg.AiEFlowAbortMode), typeof(global::Cfg.AiEFinishMode), typeof(global::Cfg.AiENotifyObserverMode), typeof(global::Cfg.AiEOperator), typeof(global::Cfg.CommonEBoolOperator), typeof(global::Cfg.ErrorEOperation), typeof(global::Cfg.ErrorEErrorCode), typeof(global::Cfg.ItemEItemQuality), typeof(global::Cfg.ItemECurrencyType), typeof(global::Cfg.ItemEMajorType), typeof(global::Cfg.ItemEMinorType), typeof(global::Cfg.ItemEClothersStarQualityType), typeof(global::Cfg.ItemEClothersTag), typeof(global::Cfg.ItemEUseType), typeof(global::Cfg.ItemEClothesHidePartType), typeof(global::Cfg.ItemEClothesPropertyType), typeof(global::Cfg.ItemEItemFunctionType), typeof(global::Cfg.LimitENamespace), typeof(global::Cfg.MailEMailType), typeof(global::Cfg.RoleEGenderType), typeof(global::Cfg.RoleEProfession), typeof(global::Cfg.TestDemoEnum), typeof(global::Cfg.TestDemoFlag), typeof(global::Cfg.TestETestUeType), typeof(global::Cfg.TestETestEmptyEnum), typeof(global::Cfg.TestETestEmptyEnum2), typeof(global::Cfg.TestAudioType), typeof(global::Cfg.TestETestQuality), typeof(global::Cfg.TestAccessFlag), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector2), global::Cfg.Vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector3), global::Cfg.Vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector4), global::Cfg.Vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboard), global::Cfg.AiBlackboard.Parser, new[]{ "Name", "Desc", "ParentName", "Keys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKey), global::Cfg.AiBlackboardKey.Parser, new[]{ "Name", "Desc", "IsStatic", "Type", "TypeClassName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBehaviorTree), global::Cfg.AiBehaviorTree.Parser, new[]{ "Id", "Name", "Desc", "BlackboardId", "Root" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiNode), global::Cfg.AiNode.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps", "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan", "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiService), global::Cfg.AiService.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeSetDefaultFocus), global::Cfg.AiUeSetDefaultFocus.Parser, new[]{ "Id", "NodeName", "KeyboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiExecuteTimeStatistic), global::Cfg.AiExecuteTimeStatistic.Parser, new[]{ "Id", "NodeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseTarget), global::Cfg.AiChooseTarget.Parser, new[]{ "Id", "NodeName", "ResultTargetKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeepFaceTarget), global::Cfg.AiKeepFaceTarget.Parser, new[]{ "Id", "NodeName", "TargetActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiGetOwnerPlayer), global::Cfg.AiGetOwnerPlayer.Parser, new[]{ "Id", "NodeName", "PlayerActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUpdateDailyBehaviorProps), global::Cfg.AiUpdateDailyBehaviorProps.Parser, new[]{ "Id", "NodeName", "SatietyKey", "EnergyKey", "MoodKey", "SatietyLowerThresholdKey", "SatietyUpperThresholdKey", "EnergyLowerThresholdKey", "EnergyUpperThresholdKey", "MoodLowerThresholdKey", "MoodUpperThresholdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDecorator), global::Cfg.AiDecorator.Parser, new[]{ "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeLoop), global::Cfg.AiUeLoop.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NumLoops", "InfiniteLoop", "InfiniteLoopTimeoutTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeCooldown), global::Cfg.AiUeCooldown.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "CooldownTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeTimeLimit), global::Cfg.AiUeTimeLimit.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "LimitTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeBlackboard), global::Cfg.AiUeBlackboard.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NotifyObserver", "BlackboardKey", "KeyQuery" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyQueryOperator), global::Cfg.AiKeyQueryOperator.Parser, new[]{ "IsSet", "IsNotSet", "BinaryOperator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsSet), global::Cfg.AiIsSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsNotSet), global::Cfg.AiIsNotSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBinaryOperator), global::Cfg.AiBinaryOperator.Parser, new[]{ "Oper", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyData), global::Cfg.AiKeyData.Parser, new[]{ "FloatKeyData", "IntKeyData", "StringKeyData", "BlackboardKeyData" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFloatKeyData), global::Cfg.AiFloatKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIntKeyData), global::Cfg.AiIntKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiStringKeyData), global::Cfg.AiStringKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKeyData), global::Cfg.AiBlackboardKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeForceSuccess), global::Cfg.AiUeForceSuccess.Parser, new[]{ "Id", "NodeName", "FlowAbortMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsAtLocation), global::Cfg.AiIsAtLocation.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "AcceptableRadius", "KeyboardKey", "InverseCondition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDistanceLessThan), global::Cfg.AiDistanceLessThan.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "Actor1Key", "Actor2Key", "Distance", "ReverseResult" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFlowNode), global::Cfg.AiFlowNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiComposeNode), global::Cfg.AiComposeNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSequence), global::Cfg.AiSequence.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSelector), global::Cfg.AiSelector.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSimpleParallel), global::Cfg.AiSimpleParallel.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "FinishMode", "MainTask", "BackgroundNode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTask), global::Cfg.AiTask.Parser, new[]{ "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWait), global::Cfg.AiUeWait.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "WaitTime", "RandomDeviation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWaitBlackboardTime), global::Cfg.AiUeWaitBlackboardTime.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "BlackboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToTarget), global::Cfg.AiMoveToTarget.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseSkill), global::Cfg.AiChooseSkill.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "ResultSkillIdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToRandomLocation), global::Cfg.AiMoveToRandomLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "OriginPositionKey", "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToLocation), global::Cfg.AiMoveToLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Location", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDebugPrint), global::Cfg.AiDebugPrint.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintClazz), global::Cfg.BlueprintClazz.Parser, new[]{ "Interface", "NormalClazz", "EnumClazz" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintMethod), global::Cfg.BlueprintMethod.Parser, new[]{ "AbstraceMethod", "ExternalMethod", "BlueprintMethod_" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintParamInfo), global::Cfg.BlueprintParamInfo.Parser, new[]{ "Name", "Type", "IsRef" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintAbstraceMethod), global::Cfg.BlueprintAbstraceMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintExternalMethod), global::Cfg.BlueprintExternalMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintBlueprintMethod), global::Cfg.BlueprintBlueprintMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintInterface), global::Cfg.BlueprintInterface.Parser, new[]{ "Name", "Desc", "Parents", "Methods" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintNormalClazz), global::Cfg.BlueprintNormalClazz.Parser, new[]{ "Name", "Desc", "Parents", "Methods", "IsAbstract", "Fields" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintField), global::Cfg.BlueprintField.Parser, new[]{ "Name", "Type", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintEnumClazz), global::Cfg.BlueprintEnumClazz.Parser, new[]{ "Name", "Desc", "Parents", "Methods", "Enums" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintEnumField), global::Cfg.BlueprintEnumField.Parser, new[]{ "Name", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusDropInfo), global::Cfg.BonusDropInfo.Parser, new[]{ "Id", "Desc", "ClientShowItems", "Bonus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusShowItemInfo), global::Cfg.BonusShowItemInfo.Parser, new[]{ "ItemId", "ItemNum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusBonus), global::Cfg.BonusBonus.Parser, new[]{ "OneItem", "OneItems", "Item", "Items", "CoefficientItem", "WeightItems", "ProbabilityItems", "MultiBonus", "ProbabilityBonus", "WeightBonus", "DropBonus" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusOneItem), global::Cfg.BonusOneItem.Parser, new[]{ "ItemId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusOneItems), global::Cfg.BonusOneItems.Parser, new[]{ "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusItem), global::Cfg.BonusItem.Parser, new[]{ "ItemId", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusItems), global::Cfg.BonusItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusCoefficientItem), global::Cfg.BonusCoefficientItem.Parser, new[]{ "BonusId", "BonusList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightItems), global::Cfg.BonusWeightItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightItemInfo), global::Cfg.BonusWeightItemInfo.Parser, new[]{ "ItemId", "Num", "Weight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityItems), global::Cfg.BonusProbabilityItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityItemInfo), global::Cfg.BonusProbabilityItemInfo.Parser, new[]{ "ItemId", "Num", "Probability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusMultiBonus), global::Cfg.BonusMultiBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityBonus), global::Cfg.BonusProbabilityBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityBonusInfo), global::Cfg.BonusProbabilityBonusInfo.Parser, new[]{ "Bonus", "Probability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightBonus), global::Cfg.BonusWeightBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightBonusInfo), global::Cfg.BonusWeightBonusInfo.Parser, new[]{ "Bonus", "Weight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusDropBonus), global::Cfg.BonusDropBonus.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonGlobalConfig), global::Cfg.CommonGlobalConfig.Parser, new[]{ "BagCapacity", "BagCapacitySpecial", "BagTempExpendableCapacity", "BagTempToolCapacity", "BagInitCapacity", "QuickBagCapacity", "ClothBagCapacity", "ClothBagInitCapacity", "ClothBagCapacitySpecial", "BagInitItemsDropId", "MailBoxCapacity", "DamageParamC", "DamageParamE", "DamageParamF", "DamageParamD", "RoleSpeed", "MonsterSpeed", "InitEnergy", "InitViality", "MaxViality", "PerVialityRecoveryTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorInfo), global::Cfg.ErrorErrorInfo.Parser, new[]{ "Code", "Desc", "Style" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyle), global::Cfg.ErrorErrorStyle.Parser, new[]{ "ErrorStyleTip", "ErrorStyleMsgbox", "ErrorStyleDlgOk", "ErrorStyleDlgOkCancel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleTip), global::Cfg.ErrorErrorStyleTip.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleMsgbox), global::Cfg.ErrorErrorStyleMsgbox.Parser, new[]{ "BtnName", "Operation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleDlgOk), global::Cfg.ErrorErrorStyleDlgOk.Parser, new[]{ "BtnName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleDlgOkCancel), global::Cfg.ErrorErrorStyleDlgOkCancel.Parser, new[]{ "Btn1Name", "Btn2Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorCodeInfo), global::Cfg.ErrorCodeInfo.Parser, new[]{ "Code", "Key" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItem), global::Cfg.ItemItem.Parser, new[]{ "Id", "Name", "MajorType", "MinorType", "MaxPileNum", "Quality", "Icon", "IconBackgroud", "IconMask", "Desc", "ShowOrder", "Quantifier", "ShowInBag", "MinShowLevel", "BatchUsable", "ProgressTimeWhenUse", "ShowHintWhenUse", "Droppable", "Price", "UseType", "LevelUpId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItemFunction), global::Cfg.ItemItemFunction.Parser, new[]{ "MinorType", "FuncType", "Method", "CloseBagUi" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItemExtra), global::Cfg.ItemItemExtra.Parser, new[]{ "TreasureBox", "InteractionItem", "Clothes", "DesignDrawing", "Dymmy" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTreasureBox), global::Cfg.ItemTreasureBox.Parser, new[]{ "Id", "KeyItemId", "OpenLevel", "UseOnObtain", "DropIds", "ChooseList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionCondition), global::Cfg.ConditionCondition.Parser, new[]{ "TimeRange", "MultiRoleCondition", "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan", "ContainsItem" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionTimeRange), global::Cfg.ConditionTimeRange.Parser, new[]{ "DateTimeRange" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonDateTimeRange), global::Cfg.CommonDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionRoleCondition), global::Cfg.ConditionRoleCondition.Parser, new[]{ "MultiRoleCondition", "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan", "ContainsItem" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMultiRoleCondition), global::Cfg.ConditionMultiRoleCondition.Parser, new[]{ "Conditions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionBoolRoleCondition), global::Cfg.ConditionBoolRoleCondition.Parser, new[]{ "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionGenderLimit), global::Cfg.ConditionGenderLimit.Parser, new[]{ "Gender" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMinLevel), global::Cfg.ConditionMinLevel.Parser, new[]{ "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMaxLevel), global::Cfg.ConditionMaxLevel.Parser, new[]{ "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMinMaxLevel), global::Cfg.ConditionMinMaxLevel.Parser, new[]{ "Min", "Max" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionClothesPropertyScoreGreaterThan), global::Cfg.ConditionClothesPropertyScoreGreaterThan.Parser, new[]{ "Prop", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionContainsItem), global::Cfg.ConditionContainsItem.Parser, new[]{ "ItemId", "Num", "Reverse" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemChooseOneBonus), global::Cfg.ItemChooseOneBonus.Parser, new[]{ "DropId", "IsUnique" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemInteractionItem), global::Cfg.ItemInteractionItem.Parser, new[]{ "Id", "AttackNum", "HoldingStaticMesh", "HoldingStaticMeshMat" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemClothes), global::Cfg.ItemClothes.Parser, new[]{ "Id", "Attack", "Hp", "EnergyLimit", "EnergyResume" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemDesignDrawing), global::Cfg.ItemDesignDrawing.Parser, new[]{ "Id", "LearnComponentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemDymmy), global::Cfg.ItemDymmy.Parser, new[]{ "Id", "Cost" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCost), global::Cfg.CostCost.Parser, new[]{ "CostCurrency", "CostCurrencies", "CostOneItem", "CostItem", "CostItems" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostCurrency), global::Cfg.CostCostCurrency.Parser, new[]{ "Type", "Num" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostCurrencies), global::Cfg.CostCostCurrencies.Parser, new[]{ "Currencies" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostOneItem), global::Cfg.CostCostOneItem.Parser, new[]{ "ItemId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostItem), global::Cfg.CostCostItem.Parser, new[]{ "ItemId", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostItems), global::Cfg.CostCostItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nL10NDemo), global::Cfg.L10nL10NDemo.Parser, new[]{ "Id", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nPatchDemo), global::Cfg.L10nPatchDemo.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailSystemMail), global::Cfg.MailSystemMail.Parser, new[]{ "Id", "Title", "Sender", "Content", "Award" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailGlobalMail), global::Cfg.MailGlobalMail.Parser, new[]{ "Id", "Title", "Sender", "Content", "Award", "AllServer", "ServerList", "Platform", "Channel", "MinMaxLevel", "RegisterTime", "MailTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleLevelExpAttr), global::Cfg.RoleLevelExpAttr.Parser, new[]{ "Level", "NeedExp", "ClothesAttrs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleLevelBonus), global::Cfg.RoleLevelBonus.Parser, new[]{ "Id", "DistinctBonusInfos" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleDistinctBonusInfos), global::Cfg.RoleDistinctBonusInfos.Parser, new[]{ "EffectiveLevel", "BonusInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleBonusInfo), global::Cfg.RoleBonusInfo.Parser, new[]{ "Type", "Coefficient" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTestTag), global::Cfg.TagTestTag.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType2), global::Cfg.TestDemoType2.Parser, new[]{ "X4", "X1", "X2", "X3", "X5", "X6", "X7", "X80", "X8", "X9", "X10", "X12", "X13", "X14", "S1", "V2", "V3", "V4", "T1", "K1", "K2", "K5", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType1), global::Cfg.TestDemoType1.Parser, new[]{ "X1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoDynamic), global::Cfg.TestDemoDynamic.Parser, new[]{ "DemoD2", "DemoE1", "DemoD5" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD2), global::Cfg.TestDemoD2.Parser, new[]{ "X1", "X2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD3), global::Cfg.TestDemoD3.Parser, new[]{ "DemoE1" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE1), global::Cfg.TestDemoE1.Parser, new[]{ "X1", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD5), global::Cfg.TestDemoD5.Parser, new[]{ "X1", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDateTimeRange), global::Cfg.TestDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE2), global::Cfg.TestDemoE2.Parser, new[]{ "Y1", "Y2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoSingletonType), global::Cfg.TestDemoSingletonType.Parser, new[]{ "Id", "Name", "Date" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestNotIndexList), global::Cfg.TestNotIndexList.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiUnionIndexList), global::Cfg.TestMultiUnionIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiIndexList), global::Cfg.TestMultiIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowRecord), global::Cfg.TestMultiRowRecord.Parser, new[]{ "Id", "Name", "OneRows", "MultiRows1", "MultiRows2", "MultiRows4", "MultiRows5", "MultiRows6", "MultiRows7" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType1), global::Cfg.TestMultiRowType1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType2), global::Cfg.TestMultiRowType2.Parser, new[]{ "Id", "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType3), global::Cfg.TestMultiRowType3.Parser, new[]{ "Id", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowTitle), global::Cfg.TestMultiRowTitle.Parser, new[]{ "Id", "Name", "X1", "X20", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH1), global::Cfg.TestH1.Parser, new[]{ "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH2), global::Cfg.TestH2.Parser, new[]{ "Z2", "Z3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestNull), global::Cfg.TestTestNull.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "S1", "S2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoPrimitiveTypesTable), global::Cfg.TestDemoPrimitiveTypesTable.Parser, new[]{ "X1", "X2", "X3", "X4", "X5", "X6", "X7", "S1", "S2", "V2", "V3", "V4", "T1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestString), global::Cfg.TestTestString.Parser, new[]{ "Id", "S1", "Cs1", "Cs2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompactString), global::Cfg.TestCompactString.Parser, new[]{ "Id", "S2", "S3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoGroup), global::Cfg.TestDemoGroup.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestInnerGroup), global::Cfg.TestInnerGroup.Parser, new[]{ "Y1", "Y2", "Y3", "Y4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestGlobal), global::Cfg.TestTestGlobal.Parser, new[]{ "UnlockEquip", "UnlockHero" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestBeRef), global::Cfg.TestTestBeRef.Parser, new[]{ "Id", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRef), global::Cfg.TestTestRef.Parser, new[]{ "Id", "X1", "X12", "X2", "X3", "A1", "A2", "B1", "B2", "C1", "C2", "D1", "D2", "E1", "E2", "E3", "F1", "F2", "F3" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSize), global::Cfg.TestTestSize.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSet), global::Cfg.TestTestSet.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDetectEncoding), global::Cfg.TestDetectEncoding.Parser, new[]{ "Id", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcel), global::Cfg.TestDefineFromExcel.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X14", "V2", "T1", "K1", "K8", "K9" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcelOne), global::Cfg.TestDefineFromExcelOne.Parser, new[]{ "UnlockEquip", "UnlockHero", "DefaultAvatar", "DefaultItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestIndex), global::Cfg.TestTestIndex.Parser, new[]{ "Id", "Eles" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMap), global::Cfg.TestTestMap.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJson), global::Cfg.TestExcelFromJson.Parser, new[]{ "X4", "X1", "X5", "X6", "S1", "S2", "V2", "V3", "V4", "T1", "X12", "X13", "X14", "K1", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable1), global::Cfg.TestCompositeJsonTable1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable2), global::Cfg.TestCompositeJsonTable2.Parser, new[]{ "Id", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable3), global::Cfg.TestCompositeJsonTable3.Parser, new[]{ "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJsonMultiRow), global::Cfg.TestExcelFromJsonMultiRow.Parser, new[]{ "Id", "X", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRow), global::Cfg.TestTestRow.Parser, new[]{ "X", "Y", "Z", "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTest3), global::Cfg.TestTest3.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSep), global::Cfg.TestTestSep.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5", "X6" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestSepBean1), global::Cfg.TestSepBean1.Parser, new[]{ "A", "B", "C" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestSepVector), global::Cfg.TestSepVector.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExternalType), global::Cfg.TestTestExternalType.Parser, new[]{ "Id", "AudioType", "Color" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestColor), global::Cfg.TestColor.Parser, new[]{ "R", "G", "B", "A" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcel2), global::Cfg.TestDefineFromExcel2.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X14", "V2", "T1", "K1", "K8", "K9" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExcelBean1), global::Cfg.TestTestExcelBean1.Parser, new[]{ "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestDesc), global::Cfg.TestTestDesc.Parser, new[]{ "Id", "Name", "A1", "A2", "X1", "X2", "X3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBlackboard), global::Cfg.AiTbBlackboard.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBehaviorTree), global::Cfg.AiTbBehaviorTree.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintTbClazz), global::Cfg.BlueprintTbClazz.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusTbDrop), global::Cfg.BonusTbDrop.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonTbGlobalConfig), global::Cfg.CommonTbGlobalConfig.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorTbErrorInfo), global::Cfg.ErrorTbErrorInfo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorTbCodeInfo), global::Cfg.ErrorTbCodeInfo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItem), global::Cfg.ItemTbItem.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItemFunc), global::Cfg.ItemTbItemFunc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItemExtra), global::Cfg.ItemTbItemExtra.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbL10NDemo), global::Cfg.L10nTbL10NDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbPatchDemo), global::Cfg.L10nTbPatchDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailTbSystemMail), global::Cfg.MailTbSystemMail.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailTbGlobalMail), global::Cfg.MailTbGlobalMail.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleTbRoleLevelExpAttr), global::Cfg.RoleTbRoleLevelExpAttr.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleTbRoleLevelBonusCoefficient), global::Cfg.RoleTbRoleLevelBonusCoefficient.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTbTestTag), global::Cfg.TagTbTestTag.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbFullTypes), global::Cfg.TestTbFullTypes.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbSingleton), global::Cfg.TestTbSingleton.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbNotIndexList), global::Cfg.TestTbNotIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiUnionIndexList), global::Cfg.TestTbMultiUnionIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiIndexList), global::Cfg.TestTbMultiIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDataFromMisc), global::Cfg.TestTbDataFromMisc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowRecord), global::Cfg.TestTbMultiRowRecord.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowTitle), global::Cfg.TestTbMultiRowTitle.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestNull), global::Cfg.TestTbTestNull.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoPrimitive), global::Cfg.TestTbDemoPrimitive.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestString), global::Cfg.TestTbTestString.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup), global::Cfg.TestTbDemoGroup.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_C), global::Cfg.TestTbDemoGroup_C.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_S), global::Cfg.TestTbDemoGroup_S.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_E), global::Cfg.TestTbDemoGroup_E.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestGlobal), global::Cfg.TestTbTestGlobal.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef), global::Cfg.TestTbTestBeRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef2), global::Cfg.TestTbTestBeRef2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestRef), global::Cfg.TestTbTestRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSize), global::Cfg.TestTbTestSize.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSet), global::Cfg.TestTbTestSet.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDetectCsvEncoding), global::Cfg.TestTbDetectCsvEncoding.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel), global::Cfg.TestTbDefineFromExcel.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcelOne), global::Cfg.TestTbDefineFromExcelOne.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestIndex), global::Cfg.TestTbTestIndex.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMap), global::Cfg.TestTbTestMap.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJson), global::Cfg.TestTbExcelFromJson.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable1), global::Cfg.TestTbCompositeJsonTable1.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable2), global::Cfg.TestTbCompositeJsonTable2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable3), global::Cfg.TestTbCompositeJsonTable3.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJsonMultiRow), global::Cfg.TestTbExcelFromJsonMultiRow.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSep), global::Cfg.TestTbTestSep.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestExternalType), global::Cfg.TestTbTestExternalType.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroupDefineFromExcel), global::Cfg.TestTbDemoGroupDefineFromExcel.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel2), global::Cfg.TestTbDefineFromExcel2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestExcelBean), global::Cfg.TestTbTestExcelBean.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestDesc), global::Cfg.TestTbTestDesc.Parser, new[]{ "DataList" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum AiEExecutor { + [pbr::OriginalName("AiEExecutor_CLIENT")] Client = 0, + [pbr::OriginalName("AiEExecutor_SERVER")] Server = 1, + } + + public enum AiEKeyType { + [pbr::OriginalName("AiEKeyType_BOOL")] Bool = 1, + [pbr::OriginalName("AiEKeyType_INT")] Int = 2, + [pbr::OriginalName("AiEKeyType_FLOAT")] Float = 3, + [pbr::OriginalName("AiEKeyType_STRING")] String = 4, + [pbr::OriginalName("AiEKeyType_VECTOR")] Vector = 5, + [pbr::OriginalName("AiEKeyType_ROTATOR")] Rotator = 6, + [pbr::OriginalName("AiEKeyType_NAME")] Name = 7, + [pbr::OriginalName("AiEKeyType_CLASS")] Class = 8, + [pbr::OriginalName("AiEKeyType_ENUM")] Enum = 9, + [pbr::OriginalName("AiEKeyType_OBJECT")] Object = 10, + } + + public enum AiEFlowAbortMode { + [pbr::OriginalName("AiEFlowAbortMode_NONE")] None = 0, + [pbr::OriginalName("AiEFlowAbortMode_LOWER_PRIORITY")] LowerPriority = 1, + [pbr::OriginalName("AiEFlowAbortMode_SELF")] Self = 2, + [pbr::OriginalName("AiEFlowAbortMode_BOTH")] Both = 3, + } + + public enum AiEFinishMode { + [pbr::OriginalName("AiEFinishMode_IMMEDIATE")] Immediate = 0, + [pbr::OriginalName("AiEFinishMode_DELAYED")] Delayed = 1, + } + + public enum AiENotifyObserverMode { + [pbr::OriginalName("AiENotifyObserverMode_ON_VALUE_CHANGE")] OnValueChange = 0, + [pbr::OriginalName("AiENotifyObserverMode_ON_RESULT_CHANGE")] OnResultChange = 1, + } + + public enum AiEOperator { + [pbr::OriginalName("AiEOperator_IS_EQUAL_TO")] IsEqualTo = 0, + [pbr::OriginalName("AiEOperator_IS_NOT_EQUAL_TO")] IsNotEqualTo = 1, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN")] IsLessThan = 2, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN_OR_EQUAL_TO")] IsLessThanOrEqualTo = 3, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN")] IsGreatThan = 4, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO")] IsGreatThanOrEqualTo = 5, + [pbr::OriginalName("AiEOperator_CONTAINS")] Contains = 6, + [pbr::OriginalName("AiEOperator_NOT_CONTAINS")] NotContains = 7, + } + + public enum CommonEBoolOperator { + [pbr::OriginalName("CommonEBoolOperator_AND")] And = 0, + [pbr::OriginalName("CommonEBoolOperator_OR")] Or = 1, + } + + public enum ErrorEOperation { + [pbr::OriginalName("ErrorEOperation_LOGOUT")] Logout = 0, + [pbr::OriginalName("ErrorEOperation_RESTART")] Restart = 1, + } + + public enum ErrorEErrorCode { + [pbr::OriginalName("ErrorEErrorCode_OK")] Ok = 0, + [pbr::OriginalName("ErrorEErrorCode_SERVER_NOT_EXISTS")] ServerNotExists = 1, + [pbr::OriginalName("ErrorEErrorCode_HAS_BIND_SERVER")] HasBindServer = 2, + [pbr::OriginalName("ErrorEErrorCode_AUTH_FAIL")] AuthFail = 3, + [pbr::OriginalName("ErrorEErrorCode_NOT_BIND_SERVER")] NotBindServer = 4, + [pbr::OriginalName("ErrorEErrorCode_SERVER_ACCESS_FAIL")] ServerAccessFail = 5, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_FLASH")] ExampleFlash = 6, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_MSGBOX")] ExampleMsgbox = 7, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_DLG_OK")] ExampleDlgOk = 8, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_DLG_OK_CANCEL")] ExampleDlgOkCancel = 9, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_INVALID_CHAR")] RoleCreateNameInvalidChar = 100, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_EMPTY")] RoleCreateNameEmpty = 101, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_EXCEED_MAX_LENGTH")] RoleCreateNameExceedMaxLength = 102, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_ROLE_LIST_FULL")] RoleCreateRoleListFull = 103, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_INVALID_PROFESSION")] RoleCreateInvalidProfession = 104, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_INVALID_GENDER")] RoleCreateInvalidGender = 105, + [pbr::OriginalName("ErrorEErrorCode_ROLE_NOT_OWNED_BY_USER")] RoleNotOwnedByUser = 106, + [pbr::OriginalName("ErrorEErrorCode_ROLE_LEVEL_NOT_ARRIVE")] RoleLevelNotArrive = 107, + [pbr::OriginalName("ErrorEErrorCode_PARAM_ILLEGAL")] ParamIllegal = 200, + [pbr::OriginalName("ErrorEErrorCode_TEMP_BAG_NOT_EMPTY")] TempBagNotEmpty = 201, + [pbr::OriginalName("ErrorEErrorCode_ITEM_CAN_NOT_USE")] ItemCanNotUse = 202, + [pbr::OriginalName("ErrorEErrorCode_CURRENCY_NOT_ENOUGH")] CurrencyNotEnough = 203, + [pbr::OriginalName("ErrorEErrorCode_BAG_IS_FULL")] BagIsFull = 204, + [pbr::OriginalName("ErrorEErrorCode_ITEM_NOT_ENOUGH")] ItemNotEnough = 205, + [pbr::OriginalName("ErrorEErrorCode_ITEM_IN_BAG")] ItemInBag = 206, + [pbr::OriginalName("ErrorEErrorCode_GENDER_NOT_MATCH")] GenderNotMatch = 300, + [pbr::OriginalName("ErrorEErrorCode_LEVEL_TOO_LOW")] LevelTooLow = 301, + [pbr::OriginalName("ErrorEErrorCode_LEVEL_TOO_HIGH")] LevelTooHigh = 302, + [pbr::OriginalName("ErrorEErrorCode_EXCEED_LIMIT")] ExceedLimit = 303, + [pbr::OriginalName("ErrorEErrorCode_OVER_TIME")] OverTime = 304, + [pbr::OriginalName("ErrorEErrorCode_SERVER_ERROR")] ServerError = 305, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_IN_LIST")] SkillNotInList = 400, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_COOLDOWN")] SkillNotCooldown = 401, + [pbr::OriginalName("ErrorEErrorCode_SKILL_TARGET_NOT_EXIST")] SkillTargetNotExist = 402, + [pbr::OriginalName("ErrorEErrorCode_SKILL_ANOTHER_CASTING")] SkillAnotherCasting = 403, + [pbr::OriginalName("ErrorEErrorCode_SKILL_OUT_OF_DISTANCE")] SkillOutOfDistance = 404, + [pbr::OriginalName("ErrorEErrorCode_SKILL_TARGET_CAMP_NOT_MATCH")] SkillTargetCampNotMatch = 405, + [pbr::OriginalName("ErrorEErrorCode_SKILL_INVALID_DIRECTION")] SkillInvalidDirection = 406, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_IN_SELECT_SHAPE")] SkillNotInSelectShape = 407, + [pbr::OriginalName("ErrorEErrorCode_SKILL_ENERGY_NOT_ENOUGH")] SkillEnergyNotEnough = 408, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_NODE_NOT_CHOOSEN")] DialogNodeNotChoosen = 500, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_NOT_FINISH")] DialogNotFinish = 501, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_HAS_FINISH")] DialogHasFinish = 502, + [pbr::OriginalName("ErrorEErrorCode_QUEST_STAGE_NOT_FINISHED")] QuestStageNotFinished = 503, + [pbr::OriginalName("ErrorEErrorCode_QUEST_NOT_DOING")] QuestNotDoing = 504, + [pbr::OriginalName("ErrorEErrorCode_QUEST_STAGE_NOT_DOING")] QuestStageNotDoing = 505, + [pbr::OriginalName("ErrorEErrorCode_QUEST_HAS_ACCEPTED")] QuestHasAccepted = 506, + [pbr::OriginalName("ErrorEErrorCode_MAP_OBJECT_NOT_EXIST")] MapObjectNotExist = 600, + [pbr::OriginalName("ErrorEErrorCode_INTERACTION_OBJECT_NOT_SUPPORT_OPERATION")] InteractionObjectNotSupportOperation = 601, + [pbr::OriginalName("ErrorEErrorCode_HAS_NOT_EQUIP")] HasNotEquip = 602, + [pbr::OriginalName("ErrorEErrorCode_HANDHELD_EQUIP_ID_NOT_MATCH")] HandheldEquipIdNotMatch = 603, + [pbr::OriginalName("ErrorEErrorCode_NOT_AVAILABLE_SUIT_ID")] NotAvailableSuitId = 604, + [pbr::OriginalName("ErrorEErrorCode_NO_INTERACTION_COMPONENT")] NoInteractionComponent = 605, + [pbr::OriginalName("ErrorEErrorCode_HAS_INTERACTED")] HasInteracted = 606, + [pbr::OriginalName("ErrorEErrorCode_VIALITY_NOT_ENOUGH")] VialityNotEnough = 607, + [pbr::OriginalName("ErrorEErrorCode_PLAYER_SESSION_NOT_EXIST")] PlayerSessionNotExist = 608, + [pbr::OriginalName("ErrorEErrorCode_PLAYER_SESSION_WORLD_PLAYER_NOT_INIT")] PlayerSessionWorldPlayerNotInit = 609, + [pbr::OriginalName("ErrorEErrorCode_MAP_NOT_EXIST")] MapNotExist = 610, + [pbr::OriginalName("ErrorEErrorCode_MAIL_TYPE_ERROR")] MailTypeError = 700, + [pbr::OriginalName("ErrorEErrorCode_MAIL_NOT_EXITST")] MailNotExitst = 701, + [pbr::OriginalName("ErrorEErrorCode_MAIL_HAVE_DELETED")] MailHaveDeleted = 702, + [pbr::OriginalName("ErrorEErrorCode_MAIL_AWARD_HAVE_RECEIVED")] MailAwardHaveReceived = 703, + [pbr::OriginalName("ErrorEErrorCode_MAIL_OPERATE_TYPE_ERROR")] MailOperateTypeError = 704, + [pbr::OriginalName("ErrorEErrorCode_MAIL_CONDITION_NOT_MEET")] MailConditionNotMeet = 705, + [pbr::OriginalName("ErrorEErrorCode_MAIL_STATE_ERROR")] MailStateError = 706, + [pbr::OriginalName("ErrorEErrorCode_MAIL_NO_AWARD")] MailNoAward = 707, + [pbr::OriginalName("ErrorEErrorCode_MAIL_BOX_IS_FULL")] MailBoxIsFull = 708, + [pbr::OriginalName("ErrorEErrorCode_PROP_SCORE_NOT_BIGGER_THAN")] PropScoreNotBiggerThan = 800, + [pbr::OriginalName("ErrorEErrorCode_NOT_WEAR_CLOTHES")] NotWearClothes = 801, + [pbr::OriginalName("ErrorEErrorCode_NOT_WEAR_SUIT")] NotWearSuit = 802, + [pbr::OriginalName("ErrorEErrorCode_SUIT_NOT_UNLOCK")] SuitNotUnlock = 900, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_NOT_UNLOCK")] SuitComponentNotUnlock = 901, + [pbr::OriginalName("ErrorEErrorCode_SUIT_STATE_ERROR")] SuitStateError = 902, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_STATE_ERROR")] SuitComponentStateError = 903, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_NO_NEED_LEARN")] SuitComponentNoNeedLearn = 904, + [pbr::OriginalName("ErrorEErrorCode_STORE_NOT_ENABLED")] StoreNotEnabled = 1000, + [pbr::OriginalName("ErrorEErrorCode_SHELF_NOT_ENABLED")] ShelfNotEnabled = 1001, + [pbr::OriginalName("ErrorEErrorCode_GOODS_NOT_ENABLED")] GoodsNotEnabled = 1002, + [pbr::OriginalName("ErrorEErrorCode_GOODS_NOT_IN_CUR_REFRESH")] GoodsNotInCurRefresh = 1003, + [pbr::OriginalName("ErrorEErrorCode_RETRY")] Retry = 1100, + [pbr::OriginalName("ErrorEErrorCode_NOT_COOLDOWN")] NotCooldown = 1101, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_UNLOCK")] SelfieUnlock = 1200, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_ALREADY_UNLOCK")] SelfieAlreadyUnlock = 1201, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_LACK_STARTS")] SelfieLackStarts = 1202, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_HAD_REWARD")] SelfieHadReward = 1203, + } + + public enum ItemEItemQuality { + [pbr::OriginalName("ItemEItemQuality_WHITE")] White = 0, + [pbr::OriginalName("ItemEItemQuality_GREEN")] Green = 1, + [pbr::OriginalName("ItemEItemQuality_BLUE")] Blue = 2, + [pbr::OriginalName("ItemEItemQuality_PURPLE")] Purple = 3, + [pbr::OriginalName("ItemEItemQuality_GOLDEN")] Golden = 4, + } + + public enum ItemECurrencyType { + [pbr::OriginalName("ItemECurrencyType_DIAMOND")] Diamond = 1, + [pbr::OriginalName("ItemECurrencyType_GOLD")] Gold = 2, + [pbr::OriginalName("ItemECurrencyType_SILVER")] Silver = 3, + [pbr::OriginalName("ItemECurrencyType_EXP")] Exp = 4, + [pbr::OriginalName("ItemECurrencyType_POWER_POINT")] PowerPoint = 5, + } + + public enum ItemEMajorType { + [pbr::OriginalName("ItemEMajorType_CURRENCY")] Currency = 1, + [pbr::OriginalName("ItemEMajorType_CLOTH")] Cloth = 2, + [pbr::OriginalName("ItemEMajorType_QUEST")] Quest = 3, + [pbr::OriginalName("ItemEMajorType_CONSUMABLES")] Consumables = 4, + [pbr::OriginalName("ItemEMajorType_TREASURE_BOX")] TreasureBox = 5, + [pbr::OriginalName("ItemEMajorType_ACHIEVEMENT_AND_TITLE")] AchievementAndTitle = 6, + [pbr::OriginalName("ItemEMajorType_HEAD_FRAME")] HeadFrame = 7, + [pbr::OriginalName("ItemEMajorType_VOICE")] Voice = 8, + [pbr::OriginalName("ItemEMajorType_ACTION")] Action = 9, + [pbr::OriginalName("ItemEMajorType_EXPANSION")] Expansion = 10, + [pbr::OriginalName("ItemEMajorType_MATERIAL")] Material = 11, + } + + public enum ItemEMinorType { + [pbr::OriginalName("ItemEMinorType_DIAMOND")] Diamond = 101, + [pbr::OriginalName("ItemEMinorType_GOLD")] Gold = 102, + [pbr::OriginalName("ItemEMinorType_SILVER")] Silver = 103, + [pbr::OriginalName("ItemEMinorType_EXP")] Exp = 104, + [pbr::OriginalName("ItemEMinorType_POWER_POINT")] PowerPoint = 105, + [pbr::OriginalName("ItemEMinorType_HAIR_STYLE")] HairStyle = 210, + [pbr::OriginalName("ItemEMinorType_COAT")] Coat = 220, + [pbr::OriginalName("ItemEMinorType_UPPER_JACKET")] UpperJacket = 230, + [pbr::OriginalName("ItemEMinorType_TROUSERS")] Trousers = 241, + [pbr::OriginalName("ItemEMinorType_SKIRT")] Skirt = 242, + [pbr::OriginalName("ItemEMinorType_SOCKS")] Socks = 250, + [pbr::OriginalName("ItemEMinorType_SHOES")] Shoes = 260, + [pbr::OriginalName("ItemEMinorType_HAIR_ACCESSORY")] HairAccessory = 271, + [pbr::OriginalName("ItemEMinorType_HAT")] Hat = 272, + [pbr::OriginalName("ItemEMinorType_EARRING")] Earring = 273, + [pbr::OriginalName("ItemEMinorType_NECKLACE")] Necklace = 274, + [pbr::OriginalName("ItemEMinorType_BRACELET")] Bracelet = 275, + [pbr::OriginalName("ItemEMinorType_HAIR_CLASP")] HairClasp = 276, + [pbr::OriginalName("ItemEMinorType_GLOVE")] Glove = 277, + [pbr::OriginalName("ItemEMinorType_HANDHELD_OBJECT")] HandheldObject = 278, + [pbr::OriginalName("ItemEMinorType_SPECIAL")] Special = 279, + [pbr::OriginalName("ItemEMinorType_BASE_COSMETIC")] BaseCosmetic = 281, + [pbr::OriginalName("ItemEMinorType_EYEBROW_COSMETIC")] EyebrowCosmetic = 282, + [pbr::OriginalName("ItemEMinorType_EYELASH")] Eyelash = 283, + [pbr::OriginalName("ItemEMinorType_COSMETIC_CONTACT_LENSES")] CosmeticContactLenses = 284, + [pbr::OriginalName("ItemEMinorType_LIP_COSMETIC")] LipCosmetic = 285, + [pbr::OriginalName("ItemEMinorType_SKIN_COLOR")] SkinColor = 286, + [pbr::OriginalName("ItemEMinorType_ONE_PIECE_DRESS")] OnePieceDress = 290, + [pbr::OriginalName("ItemEMinorType_SWITCH_CLOTHES_SCENE")] SwitchClothesScene = 291, + [pbr::OriginalName("ItemEMinorType_QUEST")] Quest = 301, + [pbr::OriginalName("ItemEMinorType_CAST")] Cast = 401, + [pbr::OriginalName("ItemEMinorType_SWORD")] Sword = 421, + [pbr::OriginalName("ItemEMinorType_BOW_ARROW")] BowArrow = 422, + [pbr::OriginalName("ItemEMinorType_WANDS")] Wands = 423, + [pbr::OriginalName("ItemEMinorType_SPECIAL_TOOL")] SpecialTool = 424, + [pbr::OriginalName("ItemEMinorType_FOOD")] Food = 403, + [pbr::OriginalName("ItemEMinorType_TREASURE_BOX")] TreasureBox = 501, + [pbr::OriginalName("ItemEMinorType_KEY")] Key = 502, + [pbr::OriginalName("ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX")] MultiChooseTreasureBox = 503, + [pbr::OriginalName("ItemEMinorType_ACHIEVEMENT")] Achievement = 601, + [pbr::OriginalName("ItemEMinorType_TITLE")] Title = 602, + [pbr::OriginalName("ItemEMinorType_AVATAR_FRAME")] AvatarFrame = 701, + [pbr::OriginalName("ItemEMinorType_VOICE")] Voice = 801, + [pbr::OriginalName("ItemEMinorType_IDLE_POSE")] IdlePose = 901, + [pbr::OriginalName("ItemEMinorType_PHOTO_POSE")] PhotoPose = 902, + [pbr::OriginalName("ItemEMinorType_BAG")] Bag = 1001, + [pbr::OriginalName("ItemEMinorType_FRIEND_CAPACITY")] FriendCapacity = 1002, + [pbr::OriginalName("ItemEMinorType_CONSTRUCTION_MATERIAL")] ConstructionMaterial = 1101, + [pbr::OriginalName("ItemEMinorType_DESIGN_DRAWING")] DesignDrawing = 1102, + } + + public enum ItemEClothersStarQualityType { + [pbr::OriginalName("ItemEClothersStarQualityType_ONE")] One = 1, + [pbr::OriginalName("ItemEClothersStarQualityType_TWO")] Two = 2, + [pbr::OriginalName("ItemEClothersStarQualityType_THREE")] Three = 3, + [pbr::OriginalName("ItemEClothersStarQualityType_FOUR")] Four = 4, + [pbr::OriginalName("ItemEClothersStarQualityType_FIVE")] Five = 5, + [pbr::OriginalName("ItemEClothersStarQualityType_SIX")] Six = 6, + [pbr::OriginalName("ItemEClothersStarQualityType_SEVEN")] Seven = 7, + [pbr::OriginalName("ItemEClothersStarQualityType_EIGHT")] Eight = 8, + [pbr::OriginalName("ItemEClothersStarQualityType_NINE")] Nine = 9, + [pbr::OriginalName("ItemEClothersStarQualityType_TEN")] Ten = 10, + } + + public enum ItemEClothersTag { + [pbr::OriginalName("ItemEClothersTag_FANG_SHAI")] FangShai = 1, + [pbr::OriginalName("ItemEClothersTag_WU_ZHE")] WuZhe = 2, + } + + public enum ItemEUseType { + [pbr::OriginalName("ItemEUseType_MANUAL")] Manual = 0, + [pbr::OriginalName("ItemEUseType_AUTO")] Auto = 1, + } + + public enum ItemEClothesHidePartType { + [pbr::OriginalName("ItemEClothesHidePartType_CHEST")] Chest = 0, + [pbr::OriginalName("ItemEClothesHidePartType_HEAD")] Head = 1, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_UPPER")] SpineUpper = 2, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_LOWER")] SpineLower = 3, + [pbr::OriginalName("ItemEClothesHidePartType_HIP")] Hip = 4, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_UPPER")] LegUpper = 5, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_MIDDLE")] LegMiddle = 6, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_LOWER")] LegLower = 7, + } + + public enum ItemEClothesPropertyType { + [pbr::OriginalName("ItemEClothesPropertyType_JIAN_YUE")] JianYue = 1, + [pbr::OriginalName("ItemEClothesPropertyType_HUA_LI")] HuaLi = 2, + [pbr::OriginalName("ItemEClothesPropertyType_KE_AI")] KeAi = 3, + [pbr::OriginalName("ItemEClothesPropertyType_CHENG_SHU")] ChengShu = 4, + [pbr::OriginalName("ItemEClothesPropertyType_HUO_PO")] HuoPo = 5, + [pbr::OriginalName("ItemEClothesPropertyType_YOU_YA")] YouYa = 6, + [pbr::OriginalName("ItemEClothesPropertyType_QING_CHUN")] QingChun = 7, + [pbr::OriginalName("ItemEClothesPropertyType_XING_GAN")] XingGan = 8, + [pbr::OriginalName("ItemEClothesPropertyType_QING_LIANG")] QingLiang = 9, + [pbr::OriginalName("ItemEClothesPropertyType_BAO_NUAN")] BaoNuan = 10, + } + + public enum ItemEItemFunctionType { + [pbr::OriginalName("ItemEItemFunctionType_REPLACE_HANDHELD")] ReplaceHandheld = 0, + [pbr::OriginalName("ItemEItemFunctionType_USE_DESIGN_DRAWING")] UseDesignDrawing = 1, + } + + public enum LimitENamespace { + [pbr::OriginalName("LimitENamespace_ITEM_DAILY_OBTAIN")] ItemDailyObtain = 1, + [pbr::OriginalName("LimitENamespace_TREASURE_DAILY_USE")] TreasureDailyUse = 2, + [pbr::OriginalName("LimitENamespace_STORE_GOODS_LIMIT_BUY")] StoreGoodsLimitBuy = 3, + } + + public enum MailEMailType { + [pbr::OriginalName("MailEMailType_GLOBAL")] Global = 0, + [pbr::OriginalName("MailEMailType_SYSTEM")] System = 1, + } + + public enum RoleEGenderType { + [pbr::OriginalName("RoleEGenderType_MALE")] Male = 1, + [pbr::OriginalName("RoleEGenderType_FEMALE")] Female = 2, + } + + public enum RoleEProfession { + [pbr::OriginalName("RoleEProfession_TEST_PROFESSION")] TestProfession = 1, + } + + public enum TestDemoEnum { + [pbr::OriginalName("TestDemoEnum_A")] A = 1, + [pbr::OriginalName("TestDemoEnum_B")] B = 2, + [pbr::OriginalName("TestDemoEnum_C")] C = 4, + [pbr::OriginalName("TestDemoEnum_D")] D = 5, + } + + public enum TestDemoFlag { + [pbr::OriginalName("TestDemoFlag_A")] A = 1, + [pbr::OriginalName("TestDemoFlag_B")] B = 2, + [pbr::OriginalName("TestDemoFlag_D")] D = 3, + } + + public enum TestETestUeType { + [pbr::OriginalName("TestETestUeType_WHITE")] White = 0, + [pbr::OriginalName("TestETestUeType_BLACK")] Black = 1, + } + + public enum TestETestEmptyEnum { + [pbr::OriginalName("TestETestEmptyEnum_EMPTY_PLACEHOLDER")] EmptyPlaceholder = 0, + } + + public enum TestETestEmptyEnum2 { + [pbr::OriginalName("TestETestEmptyEnum2_SMALL_THAN_256")] SmallThan256 = 255, + [pbr::OriginalName("TestETestEmptyEnum2_X_256")] X256 = 256, + [pbr::OriginalName("TestETestEmptyEnum2_X_257")] X257 = 257, + } + + public enum TestAudioType { + [pbr::OriginalName("TestAudioType_UNKNOWN")] Unknown = 0, + [pbr::OriginalName("TestAudioType_ACC")] Acc = 1, + [pbr::OriginalName("TestAudioType_AIFF")] Aiff = 2, + } + + public enum TestETestQuality { + [pbr::OriginalName("TestETestQuality_A")] A = 1, + [pbr::OriginalName("TestETestQuality_B")] B = 2, + [pbr::OriginalName("TestETestQuality_C")] C = 3, + [pbr::OriginalName("TestETestQuality_D")] D = 4, + } + + public enum TestAccessFlag { + [pbr::OriginalName("TestAccessFlag_WRITE")] Write = 1, + [pbr::OriginalName("TestAccessFlag_READ")] Read = 2, + [pbr::OriginalName("TestAccessFlag_TRUNCATE")] Truncate = 4, + [pbr::OriginalName("TestAccessFlag_NEW")] New = 8, + [pbr::OriginalName("TestAccessFlag_READ_WRITE")] ReadWrite = 3, + } + + #endregion + + #region Messages + /// + /// luban internal types begin + /// + public sealed partial class Vector2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2(Vector2 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2 Clone() { + return new Vector2(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector2 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3(Vector3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3 Clone() { + return new Vector3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector4 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector4()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4(Vector4 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + w_ = other.w_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4 Clone() { + return new Vector4(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + /// Field number for the "w" field. + public const int WFieldNumber = 4; + private readonly static float WDefaultValue = 0F; + + private float w_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float W { + get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } + set { + _hasBits0 |= 8; + w_ = value; + } + } + /// Gets whether the "w" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasW { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "w" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearW() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector4); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector4 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (HasW) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector4 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.HasW) { + W = other.W; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard(AiBlackboard other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parentName_ = other.parentName_; + keys_ = other.keys_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard Clone() { + return new AiBlackboard(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parent_name" field. + public const int ParentNameFieldNumber = 3; + private readonly static string ParentNameDefaultValue = ""; + + private string parentName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParentName { + get { return parentName_ ?? ParentNameDefaultValue; } + set { + parentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "parent_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParentName { + get { return parentName_ != null; } + } + /// Clears the value of the "parent_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParentName() { + parentName_ = null; + } + + /// Field number for the "keys" field. + public const int KeysFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_keys_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiBlackboardKey.Parser); + private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Keys { + get { return keys_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ParentName != other.ParentName) return false; + if(!keys_.Equals(other.keys_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasParentName) hash ^= ParentName.GetHashCode(); + hash ^= keys_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(ref output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasParentName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentName); + } + size += keys_.CalculateSize(_repeated_keys_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboard other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasParentName) { + ParentName = other.ParentName; + } + keys_.Add(other.keys_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(input, _repeated_keys_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey(AiBlackboardKey other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + type_ = other.type_; + typeClassName_ = other.typeClassName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey Clone() { + return new AiBlackboardKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private readonly static global::Cfg.AiEKeyType TypeDefaultValue = global::Cfg.AiEKeyType.Bool; + + private global::Cfg.AiEKeyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEKeyType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "type_class_name" field. + public const int TypeClassNameFieldNumber = 5; + private readonly static string TypeClassNameDefaultValue = ""; + + private string typeClassName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TypeClassName { + get { return typeClassName_ ?? TypeClassNameDefaultValue; } + set { + typeClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type_class_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTypeClassName { + get { return typeClassName_ != null; } + } + /// Clears the value of the "type_class_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTypeClassName() { + typeClassName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (Type != other.Type) return false; + if (TypeClassName != other.TypeClassName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTypeClassName) hash ^= TypeClassName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasTypeClassName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeClassName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKey other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasTypeClassName) { + TypeClassName = other.TypeClassName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree(AiBehaviorTree other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + blackboardId_ = other.blackboardId_; + root_ = other.root_ != null ? other.root_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree Clone() { + return new AiBehaviorTree(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "blackboard_id" field. + public const int BlackboardIdFieldNumber = 4; + private readonly static string BlackboardIdDefaultValue = ""; + + private string blackboardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardId { + get { return blackboardId_ ?? BlackboardIdDefaultValue; } + set { + blackboardId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardId { + get { return blackboardId_ != null; } + } + /// Clears the value of the "blackboard_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardId() { + blackboardId_ = null; + } + + /// Field number for the "root" field. + public const int RootFieldNumber = 5; + private global::Cfg.AiComposeNode root_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiComposeNode Root { + get { return root_; } + set { + root_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (BlackboardId != other.BlackboardId) return false; + if (!object.Equals(Root, other.Root)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasBlackboardId) hash ^= BlackboardId.GetHashCode(); + if (root_ != null) hash ^= Root.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasBlackboardId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardId); + } + if (root_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Root); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBehaviorTree other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasBlackboardId) { + BlackboardId = other.BlackboardId; + } + if (other.root_ != null) { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + Root.MergeFrom(other.Root); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode(AiNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode Clone() { + return new AiNode(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiService : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiService()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService(AiService other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService Clone() { + return new AiService(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiService); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiService other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiService other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeSetDefaultFocus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeSetDefaultFocus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus(AiUeSetDefaultFocus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + keyboardKey_ = other.keyboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus Clone() { + return new AiUeSetDefaultFocus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 3; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeSetDefaultFocus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeSetDefaultFocus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (KeyboardKey != other.KeyboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeSetDefaultFocus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiExecuteTimeStatistic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiExecuteTimeStatistic()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic(AiExecuteTimeStatistic other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic Clone() { + return new AiExecuteTimeStatistic(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiExecuteTimeStatistic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiExecuteTimeStatistic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiExecuteTimeStatistic other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget(AiChooseTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + resultTargetKey_ = other.resultTargetKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget Clone() { + return new AiChooseTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "result_target_key" field. + public const int ResultTargetKeyFieldNumber = 3; + private readonly static string ResultTargetKeyDefaultValue = ""; + + private string resultTargetKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultTargetKey { + get { return resultTargetKey_ ?? ResultTargetKeyDefaultValue; } + set { + resultTargetKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_target_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultTargetKey { + get { return resultTargetKey_ != null; } + } + /// Clears the value of the "result_target_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultTargetKey() { + resultTargetKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (ResultTargetKey != other.ResultTargetKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasResultTargetKey) hash ^= ResultTargetKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasResultTargetKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultTargetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasResultTargetKey) { + ResultTargetKey = other.ResultTargetKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeepFaceTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeepFaceTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget(AiKeepFaceTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + targetActorKey_ = other.targetActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget Clone() { + return new AiKeepFaceTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 3; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeepFaceTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeepFaceTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (TargetActorKey != other.TargetActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeepFaceTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiGetOwnerPlayer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiGetOwnerPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer(AiGetOwnerPlayer other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + playerActorKey_ = other.playerActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer Clone() { + return new AiGetOwnerPlayer(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "player_actor_key" field. + public const int PlayerActorKeyFieldNumber = 3; + private readonly static string PlayerActorKeyDefaultValue = ""; + + private string playerActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayerActorKey { + get { return playerActorKey_ ?? PlayerActorKeyDefaultValue; } + set { + playerActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "player_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerActorKey { + get { return playerActorKey_ != null; } + } + /// Clears the value of the "player_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerActorKey() { + playerActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiGetOwnerPlayer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiGetOwnerPlayer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (PlayerActorKey != other.PlayerActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasPlayerActorKey) hash ^= PlayerActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasPlayerActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiGetOwnerPlayer other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasPlayerActorKey) { + PlayerActorKey = other.PlayerActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUpdateDailyBehaviorProps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUpdateDailyBehaviorProps()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps(AiUpdateDailyBehaviorProps other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + satietyKey_ = other.satietyKey_; + energyKey_ = other.energyKey_; + moodKey_ = other.moodKey_; + satietyLowerThresholdKey_ = other.satietyLowerThresholdKey_; + satietyUpperThresholdKey_ = other.satietyUpperThresholdKey_; + energyLowerThresholdKey_ = other.energyLowerThresholdKey_; + energyUpperThresholdKey_ = other.energyUpperThresholdKey_; + moodLowerThresholdKey_ = other.moodLowerThresholdKey_; + moodUpperThresholdKey_ = other.moodUpperThresholdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps Clone() { + return new AiUpdateDailyBehaviorProps(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "satiety_key" field. + public const int SatietyKeyFieldNumber = 3; + private readonly static string SatietyKeyDefaultValue = ""; + + private string satietyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyKey { + get { return satietyKey_ ?? SatietyKeyDefaultValue; } + set { + satietyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyKey { + get { return satietyKey_ != null; } + } + /// Clears the value of the "satiety_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyKey() { + satietyKey_ = null; + } + + /// Field number for the "energy_key" field. + public const int EnergyKeyFieldNumber = 4; + private readonly static string EnergyKeyDefaultValue = ""; + + private string energyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyKey { + get { return energyKey_ ?? EnergyKeyDefaultValue; } + set { + energyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyKey { + get { return energyKey_ != null; } + } + /// Clears the value of the "energy_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyKey() { + energyKey_ = null; + } + + /// Field number for the "mood_key" field. + public const int MoodKeyFieldNumber = 5; + private readonly static string MoodKeyDefaultValue = ""; + + private string moodKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodKey { + get { return moodKey_ ?? MoodKeyDefaultValue; } + set { + moodKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodKey { + get { return moodKey_ != null; } + } + /// Clears the value of the "mood_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodKey() { + moodKey_ = null; + } + + /// Field number for the "satiety_lower_threshold_key" field. + public const int SatietyLowerThresholdKeyFieldNumber = 6; + private readonly static string SatietyLowerThresholdKeyDefaultValue = ""; + + private string satietyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ ?? SatietyLowerThresholdKeyDefaultValue; } + set { + satietyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ != null; } + } + /// Clears the value of the "satiety_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyLowerThresholdKey() { + satietyLowerThresholdKey_ = null; + } + + /// Field number for the "satiety_upper_threshold_key" field. + public const int SatietyUpperThresholdKeyFieldNumber = 7; + private readonly static string SatietyUpperThresholdKeyDefaultValue = ""; + + private string satietyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ ?? SatietyUpperThresholdKeyDefaultValue; } + set { + satietyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ != null; } + } + /// Clears the value of the "satiety_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyUpperThresholdKey() { + satietyUpperThresholdKey_ = null; + } + + /// Field number for the "energy_lower_threshold_key" field. + public const int EnergyLowerThresholdKeyFieldNumber = 8; + private readonly static string EnergyLowerThresholdKeyDefaultValue = ""; + + private string energyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ ?? EnergyLowerThresholdKeyDefaultValue; } + set { + energyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ != null; } + } + /// Clears the value of the "energy_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLowerThresholdKey() { + energyLowerThresholdKey_ = null; + } + + /// Field number for the "energy_upper_threshold_key" field. + public const int EnergyUpperThresholdKeyFieldNumber = 9; + private readonly static string EnergyUpperThresholdKeyDefaultValue = ""; + + private string energyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ ?? EnergyUpperThresholdKeyDefaultValue; } + set { + energyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ != null; } + } + /// Clears the value of the "energy_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyUpperThresholdKey() { + energyUpperThresholdKey_ = null; + } + + /// Field number for the "mood_lower_threshold_key" field. + public const int MoodLowerThresholdKeyFieldNumber = 10; + private readonly static string MoodLowerThresholdKeyDefaultValue = ""; + + private string moodLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodLowerThresholdKey { + get { return moodLowerThresholdKey_ ?? MoodLowerThresholdKeyDefaultValue; } + set { + moodLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodLowerThresholdKey { + get { return moodLowerThresholdKey_ != null; } + } + /// Clears the value of the "mood_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodLowerThresholdKey() { + moodLowerThresholdKey_ = null; + } + + /// Field number for the "mood_upper_threshold_key" field. + public const int MoodUpperThresholdKeyFieldNumber = 11; + private readonly static string MoodUpperThresholdKeyDefaultValue = ""; + + private string moodUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodUpperThresholdKey { + get { return moodUpperThresholdKey_ ?? MoodUpperThresholdKeyDefaultValue; } + set { + moodUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodUpperThresholdKey { + get { return moodUpperThresholdKey_ != null; } + } + /// Clears the value of the "mood_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodUpperThresholdKey() { + moodUpperThresholdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUpdateDailyBehaviorProps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUpdateDailyBehaviorProps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (SatietyKey != other.SatietyKey) return false; + if (EnergyKey != other.EnergyKey) return false; + if (MoodKey != other.MoodKey) return false; + if (SatietyLowerThresholdKey != other.SatietyLowerThresholdKey) return false; + if (SatietyUpperThresholdKey != other.SatietyUpperThresholdKey) return false; + if (EnergyLowerThresholdKey != other.EnergyLowerThresholdKey) return false; + if (EnergyUpperThresholdKey != other.EnergyUpperThresholdKey) return false; + if (MoodLowerThresholdKey != other.MoodLowerThresholdKey) return false; + if (MoodUpperThresholdKey != other.MoodUpperThresholdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasSatietyKey) hash ^= SatietyKey.GetHashCode(); + if (HasEnergyKey) hash ^= EnergyKey.GetHashCode(); + if (HasMoodKey) hash ^= MoodKey.GetHashCode(); + if (HasSatietyLowerThresholdKey) hash ^= SatietyLowerThresholdKey.GetHashCode(); + if (HasSatietyUpperThresholdKey) hash ^= SatietyUpperThresholdKey.GetHashCode(); + if (HasEnergyLowerThresholdKey) hash ^= EnergyLowerThresholdKey.GetHashCode(); + if (HasEnergyUpperThresholdKey) hash ^= EnergyUpperThresholdKey.GetHashCode(); + if (HasMoodLowerThresholdKey) hash ^= MoodLowerThresholdKey.GetHashCode(); + if (HasMoodUpperThresholdKey) hash ^= MoodUpperThresholdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasSatietyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyKey); + } + if (HasEnergyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyKey); + } + if (HasMoodKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUpdateDailyBehaviorProps other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasSatietyKey) { + SatietyKey = other.SatietyKey; + } + if (other.HasEnergyKey) { + EnergyKey = other.EnergyKey; + } + if (other.HasMoodKey) { + MoodKey = other.MoodKey; + } + if (other.HasSatietyLowerThresholdKey) { + SatietyLowerThresholdKey = other.SatietyLowerThresholdKey; + } + if (other.HasSatietyUpperThresholdKey) { + SatietyUpperThresholdKey = other.SatietyUpperThresholdKey; + } + if (other.HasEnergyLowerThresholdKey) { + EnergyLowerThresholdKey = other.EnergyLowerThresholdKey; + } + if (other.HasEnergyUpperThresholdKey) { + EnergyUpperThresholdKey = other.EnergyUpperThresholdKey; + } + if (other.HasMoodLowerThresholdKey) { + MoodLowerThresholdKey = other.MoodLowerThresholdKey; + } + if (other.HasMoodUpperThresholdKey) { + MoodUpperThresholdKey = other.MoodUpperThresholdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDecorator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator(AiDecorator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator Clone() { + return new AiDecorator(this); + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDecorator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeLoop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeLoop()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop(AiUeLoop other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + numLoops_ = other.numLoops_; + infiniteLoop_ = other.infiniteLoop_; + infiniteLoopTimeoutTime_ = other.infiniteLoopTimeoutTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop Clone() { + return new AiUeLoop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "num_loops" field. + public const int NumLoopsFieldNumber = 4; + private readonly static int NumLoopsDefaultValue = 0; + + private int numLoops_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumLoops { + get { if ((_hasBits0 & 4) != 0) { return numLoops_; } else { return NumLoopsDefaultValue; } } + set { + _hasBits0 |= 4; + numLoops_ = value; + } + } + /// Gets whether the "num_loops" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumLoops { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num_loops" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumLoops() { + _hasBits0 &= ~4; + } + + /// Field number for the "infinite_loop" field. + public const int InfiniteLoopFieldNumber = 5; + private readonly static bool InfiniteLoopDefaultValue = false; + + private bool infiniteLoop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InfiniteLoop { + get { if ((_hasBits0 & 8) != 0) { return infiniteLoop_; } else { return InfiniteLoopDefaultValue; } } + set { + _hasBits0 |= 8; + infiniteLoop_ = value; + } + } + /// Gets whether the "infinite_loop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoop { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "infinite_loop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoop() { + _hasBits0 &= ~8; + } + + /// Field number for the "infinite_loop_timeout_time" field. + public const int InfiniteLoopTimeoutTimeFieldNumber = 6; + private readonly static float InfiniteLoopTimeoutTimeDefaultValue = 0F; + + private float infiniteLoopTimeoutTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float InfiniteLoopTimeoutTime { + get { if ((_hasBits0 & 16) != 0) { return infiniteLoopTimeoutTime_; } else { return InfiniteLoopTimeoutTimeDefaultValue; } } + set { + _hasBits0 |= 16; + infiniteLoopTimeoutTime_ = value; + } + } + /// Gets whether the "infinite_loop_timeout_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoopTimeoutTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "infinite_loop_timeout_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoopTimeoutTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeLoop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeLoop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NumLoops != other.NumLoops) return false; + if (InfiniteLoop != other.InfiniteLoop) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfiniteLoopTimeoutTime, other.InfiniteLoopTimeoutTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNumLoops) hash ^= NumLoops.GetHashCode(); + if (HasInfiniteLoop) hash ^= InfiniteLoop.GetHashCode(); + if (HasInfiniteLoopTimeoutTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfiniteLoopTimeoutTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNumLoops) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumLoops); + } + if (HasInfiniteLoop) { + size += 1 + 1; + } + if (HasInfiniteLoopTimeoutTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeLoop other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNumLoops) { + NumLoops = other.NumLoops; + } + if (other.HasInfiniteLoop) { + InfiniteLoop = other.InfiniteLoop; + } + if (other.HasInfiniteLoopTimeoutTime) { + InfiniteLoopTimeoutTime = other.InfiniteLoopTimeoutTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeCooldown : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeCooldown()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown(AiUeCooldown other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + cooldownTime_ = other.cooldownTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown Clone() { + return new AiUeCooldown(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "cooldown_time" field. + public const int CooldownTimeFieldNumber = 4; + private readonly static float CooldownTimeDefaultValue = 0F; + + private float cooldownTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CooldownTime { + get { if ((_hasBits0 & 4) != 0) { return cooldownTime_; } else { return CooldownTimeDefaultValue; } } + set { + _hasBits0 |= 4; + cooldownTime_ = value; + } + } + /// Gets whether the "cooldown_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCooldownTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cooldown_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCooldownTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeCooldown); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeCooldown other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CooldownTime, other.CooldownTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasCooldownTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CooldownTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasCooldownTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeCooldown other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasCooldownTime) { + CooldownTime = other.CooldownTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeTimeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeTimeLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit(AiUeTimeLimit other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + limitTime_ = other.limitTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit Clone() { + return new AiUeTimeLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 4; + private readonly static float LimitTimeDefaultValue = 0F; + + private float limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LimitTime { + get { if ((_hasBits0 & 4) != 0) { return limitTime_; } else { return LimitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + limitTime_ = value; + } + } + /// Gets whether the "limit_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLimitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "limit_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLimitTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeTimeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeTimeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LimitTime, other.LimitTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasLimitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LimitTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasLimitTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeTimeLimit other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasLimitTime) { + LimitTime = other.LimitTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeBlackboard()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard(AiUeBlackboard other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + notifyObserver_ = other.notifyObserver_; + blackboardKey_ = other.blackboardKey_; + keyQuery_ = other.keyQuery_ != null ? other.keyQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard Clone() { + return new AiUeBlackboard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "notify_observer" field. + public const int NotifyObserverFieldNumber = 4; + private readonly static global::Cfg.AiENotifyObserverMode NotifyObserverDefaultValue = global::Cfg.AiENotifyObserverMode.OnValueChange; + + private global::Cfg.AiENotifyObserverMode notifyObserver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiENotifyObserverMode NotifyObserver { + get { if ((_hasBits0 & 4) != 0) { return notifyObserver_; } else { return NotifyObserverDefaultValue; } } + set { + _hasBits0 |= 4; + notifyObserver_ = value; + } + } + /// Gets whether the "notify_observer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNotifyObserver { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "notify_observer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNotifyObserver() { + _hasBits0 &= ~4; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 5; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + /// Field number for the "key_query" field. + public const int KeyQueryFieldNumber = 6; + private global::Cfg.AiKeyQueryOperator keyQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyQueryOperator KeyQuery { + get { return keyQuery_; } + set { + keyQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NotifyObserver != other.NotifyObserver) return false; + if (BlackboardKey != other.BlackboardKey) return false; + if (!object.Equals(KeyQuery, other.KeyQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNotifyObserver) hash ^= NotifyObserver.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (keyQuery_ != null) hash ^= KeyQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNotifyObserver) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NotifyObserver); + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (keyQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeBlackboard other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNotifyObserver) { + NotifyObserver = other.NotifyObserver; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + if (other.keyQuery_ != null) { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + KeyQuery.MergeFrom(other.KeyQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyQueryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyQueryOperator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator(AiKeyQueryOperator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + IsSet = other.IsSet.Clone(); + break; + case ValueOneofCase.IsNotSet: + IsNotSet = other.IsNotSet.Clone(); + break; + case ValueOneofCase.BinaryOperator: + BinaryOperator = other.BinaryOperator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator Clone() { + return new AiKeyQueryOperator(this); + } + + /// Field number for the "IsSet" field. + public const int IsSetFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsSet IsSet { + get { return valueCase_ == ValueOneofCase.IsSet ? (global::Cfg.AiIsSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsSet; + } + } + + /// Field number for the "IsNotSet" field. + public const int IsNotSetFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsNotSet IsNotSet { + get { return valueCase_ == ValueOneofCase.IsNotSet ? (global::Cfg.AiIsNotSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsNotSet; + } + } + + /// Field number for the "BinaryOperator" field. + public const int BinaryOperatorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBinaryOperator BinaryOperator { + get { return valueCase_ == ValueOneofCase.BinaryOperator ? (global::Cfg.AiBinaryOperator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BinaryOperator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + IsSet = 1, + IsNotSet = 2, + BinaryOperator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyQueryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyQueryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IsSet, other.IsSet)) return false; + if (!object.Equals(IsNotSet, other.IsNotSet)) return false; + if (!object.Equals(BinaryOperator, other.BinaryOperator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.IsSet) hash ^= IsSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsNotSet) hash ^= IsNotSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.BinaryOperator) hash ^= BinaryOperator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.IsSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryOperator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyQueryOperator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + if (IsSet == null) { + IsSet = new global::Cfg.AiIsSet(); + } + IsSet.MergeFrom(other.IsSet); + break; + case ValueOneofCase.IsNotSet: + if (IsNotSet == null) { + IsNotSet = new global::Cfg.AiIsNotSet(); + } + IsNotSet.MergeFrom(other.IsNotSet); + break; + case ValueOneofCase.BinaryOperator: + if (BinaryOperator == null) { + BinaryOperator = new global::Cfg.AiBinaryOperator(); + } + BinaryOperator.MergeFrom(other.BinaryOperator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet(AiIsSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet Clone() { + return new AiIsSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiIsNotSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsNotSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet(AiIsNotSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet Clone() { + return new AiIsNotSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsNotSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsNotSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsNotSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiBinaryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBinaryOperator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator(AiBinaryOperator other) : this() { + _hasBits0 = other._hasBits0; + oper_ = other.oper_; + data_ = other.data_ != null ? other.data_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator Clone() { + return new AiBinaryOperator(this); + } + + /// Field number for the "oper" field. + public const int OperFieldNumber = 1; + private readonly static global::Cfg.AiEOperator OperDefaultValue = global::Cfg.AiEOperator.IsEqualTo; + + private global::Cfg.AiEOperator oper_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEOperator Oper { + get { if ((_hasBits0 & 1) != 0) { return oper_; } else { return OperDefaultValue; } } + set { + _hasBits0 |= 1; + oper_ = value; + } + } + /// Gets whether the "oper" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOper { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "oper" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOper() { + _hasBits0 &= ~1; + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private global::Cfg.AiKeyData data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyData Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBinaryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBinaryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Oper != other.Oper) return false; + if (!object.Equals(Data, other.Data)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasOper) hash ^= Oper.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasOper) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Oper); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBinaryOperator other) { + if (other == null) { + return; + } + if (other.HasOper) { + Oper = other.Oper; + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + Data.MergeFrom(other.Data); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData(AiKeyData other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + FloatKeyData = other.FloatKeyData.Clone(); + break; + case ValueOneofCase.IntKeyData: + IntKeyData = other.IntKeyData.Clone(); + break; + case ValueOneofCase.StringKeyData: + StringKeyData = other.StringKeyData.Clone(); + break; + case ValueOneofCase.BlackboardKeyData: + BlackboardKeyData = other.BlackboardKeyData.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData Clone() { + return new AiKeyData(this); + } + + /// Field number for the "FloatKeyData" field. + public const int FloatKeyDataFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFloatKeyData FloatKeyData { + get { return valueCase_ == ValueOneofCase.FloatKeyData ? (global::Cfg.AiFloatKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.FloatKeyData; + } + } + + /// Field number for the "IntKeyData" field. + public const int IntKeyDataFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIntKeyData IntKeyData { + get { return valueCase_ == ValueOneofCase.IntKeyData ? (global::Cfg.AiIntKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IntKeyData; + } + } + + /// Field number for the "StringKeyData" field. + public const int StringKeyDataFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiStringKeyData StringKeyData { + get { return valueCase_ == ValueOneofCase.StringKeyData ? (global::Cfg.AiStringKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.StringKeyData; + } + } + + /// Field number for the "BlackboardKeyData" field. + public const int BlackboardKeyDataFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBlackboardKeyData BlackboardKeyData { + get { return valueCase_ == ValueOneofCase.BlackboardKeyData ? (global::Cfg.AiBlackboardKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlackboardKeyData; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + FloatKeyData = 1, + IntKeyData = 2, + StringKeyData = 3, + BlackboardKeyData = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FloatKeyData, other.FloatKeyData)) return false; + if (!object.Equals(IntKeyData, other.IntKeyData)) return false; + if (!object.Equals(StringKeyData, other.StringKeyData)) return false; + if (!object.Equals(BlackboardKeyData, other.BlackboardKeyData)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.FloatKeyData) hash ^= FloatKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.IntKeyData) hash ^= IntKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.StringKeyData) hash ^= StringKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) hash ^= BlackboardKeyData.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.FloatKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlackboardKeyData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyData other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + if (FloatKeyData == null) { + FloatKeyData = new global::Cfg.AiFloatKeyData(); + } + FloatKeyData.MergeFrom(other.FloatKeyData); + break; + case ValueOneofCase.IntKeyData: + if (IntKeyData == null) { + IntKeyData = new global::Cfg.AiIntKeyData(); + } + IntKeyData.MergeFrom(other.IntKeyData); + break; + case ValueOneofCase.StringKeyData: + if (StringKeyData == null) { + StringKeyData = new global::Cfg.AiStringKeyData(); + } + StringKeyData.MergeFrom(other.StringKeyData); + break; + case ValueOneofCase.BlackboardKeyData: + if (BlackboardKeyData == null) { + BlackboardKeyData = new global::Cfg.AiBlackboardKeyData(); + } + BlackboardKeyData.MergeFrom(other.BlackboardKeyData); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFloatKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFloatKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData(AiFloatKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData Clone() { + return new AiFloatKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static float ValueDefaultValue = 0F; + + private float value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFloatKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFloatKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFloatKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIntKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIntKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData(AiIntKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData Clone() { + return new AiIntKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIntKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIntKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIntKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiStringKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiStringKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData(AiStringKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData Clone() { + return new AiStringKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiStringKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiStringKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiStringKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData(AiBlackboardKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData Clone() { + return new AiBlackboardKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeForceSuccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeForceSuccess()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess(AiUeForceSuccess other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess Clone() { + return new AiUeForceSuccess(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeForceSuccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeForceSuccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeForceSuccess other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsAtLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsAtLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation(AiIsAtLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + acceptableRadius_ = other.acceptableRadius_; + keyboardKey_ = other.keyboardKey_; + inverseCondition_ = other.inverseCondition_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation Clone() { + return new AiIsAtLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 4; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 5; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + /// Field number for the "inverse_condition" field. + public const int InverseConditionFieldNumber = 6; + private readonly static bool InverseConditionDefaultValue = false; + + private bool inverseCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InverseCondition { + get { if ((_hasBits0 & 8) != 0) { return inverseCondition_; } else { return InverseConditionDefaultValue; } } + set { + _hasBits0 |= 8; + inverseCondition_ = value; + } + } + /// Gets whether the "inverse_condition" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInverseCondition { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "inverse_condition" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInverseCondition() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsAtLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsAtLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + if (KeyboardKey != other.KeyboardKey) return false; + if (InverseCondition != other.InverseCondition) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (HasInverseCondition) hash ^= InverseCondition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (HasInverseCondition) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsAtLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + if (other.HasInverseCondition) { + InverseCondition = other.InverseCondition; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDistanceLessThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDistanceLessThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan(AiDistanceLessThan other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + actor1Key_ = other.actor1Key_; + actor2Key_ = other.actor2Key_; + distance_ = other.distance_; + reverseResult_ = other.reverseResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan Clone() { + return new AiDistanceLessThan(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "actor1_key" field. + public const int Actor1KeyFieldNumber = 4; + private readonly static string Actor1KeyDefaultValue = ""; + + private string actor1Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor1Key { + get { return actor1Key_ ?? Actor1KeyDefaultValue; } + set { + actor1Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor1_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor1Key { + get { return actor1Key_ != null; } + } + /// Clears the value of the "actor1_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor1Key() { + actor1Key_ = null; + } + + /// Field number for the "actor2_key" field. + public const int Actor2KeyFieldNumber = 5; + private readonly static string Actor2KeyDefaultValue = ""; + + private string actor2Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor2Key { + get { return actor2Key_ ?? Actor2KeyDefaultValue; } + set { + actor2Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor2_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor2Key { + get { return actor2Key_ != null; } + } + /// Clears the value of the "actor2_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor2Key() { + actor2Key_ = null; + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 6; + private readonly static float DistanceDefaultValue = 0F; + + private float distance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Distance { + get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } + set { + _hasBits0 |= 4; + distance_ = value; + } + } + /// Gets whether the "distance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "distance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistance() { + _hasBits0 &= ~4; + } + + /// Field number for the "reverse_result" field. + public const int ReverseResultFieldNumber = 7; + private readonly static bool ReverseResultDefaultValue = false; + + private bool reverseResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReverseResult { + get { if ((_hasBits0 & 8) != 0) { return reverseResult_; } else { return ReverseResultDefaultValue; } } + set { + _hasBits0 |= 8; + reverseResult_ = value; + } + } + /// Gets whether the "reverse_result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverseResult { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "reverse_result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverseResult() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDistanceLessThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDistanceLessThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (Actor1Key != other.Actor1Key) return false; + if (Actor2Key != other.Actor2Key) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; + if (ReverseResult != other.ReverseResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasActor1Key) hash ^= Actor1Key.GetHashCode(); + if (HasActor2Key) hash ^= Actor2Key.GetHashCode(); + if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); + if (HasReverseResult) hash ^= ReverseResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasActor1Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor1Key); + } + if (HasActor2Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor2Key); + } + if (HasDistance) { + size += 1 + 4; + } + if (HasReverseResult) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDistanceLessThan other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasActor1Key) { + Actor1Key = other.Actor1Key; + } + if (other.HasActor2Key) { + Actor2Key = other.Actor2Key; + } + if (other.HasDistance) { + Distance = other.Distance; + } + if (other.HasReverseResult) { + ReverseResult = other.ReverseResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFlowNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFlowNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode(AiFlowNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode Clone() { + return new AiFlowNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFlowNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFlowNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFlowNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiComposeNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiComposeNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode(AiComposeNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode Clone() { + return new AiComposeNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiComposeNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiComposeNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiComposeNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSequence()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence(AiSequence other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence Clone() { + return new AiSequence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSequence other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSelector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSelector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector(AiSelector other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector Clone() { + return new AiSelector(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSelector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSelector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSelector other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSimpleParallel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSimpleParallel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel(AiSimpleParallel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + finishMode_ = other.finishMode_; + mainTask_ = other.mainTask_ != null ? other.mainTask_.Clone() : null; + backgroundNode_ = other.backgroundNode_ != null ? other.backgroundNode_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel Clone() { + return new AiSimpleParallel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "finish_mode" field. + public const int FinishModeFieldNumber = 5; + private readonly static global::Cfg.AiEFinishMode FinishModeDefaultValue = global::Cfg.AiEFinishMode.Immediate; + + private global::Cfg.AiEFinishMode finishMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFinishMode FinishMode { + get { if ((_hasBits0 & 2) != 0) { return finishMode_; } else { return FinishModeDefaultValue; } } + set { + _hasBits0 |= 2; + finishMode_ = value; + } + } + /// Gets whether the "finish_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFinishMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "finish_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFinishMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "main_task" field. + public const int MainTaskFieldNumber = 6; + private global::Cfg.AiTask mainTask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiTask MainTask { + get { return mainTask_; } + set { + mainTask_ = value; + } + } + + /// Field number for the "background_node" field. + public const int BackgroundNodeFieldNumber = 7; + private global::Cfg.AiFlowNode backgroundNode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFlowNode BackgroundNode { + get { return backgroundNode_; } + set { + backgroundNode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSimpleParallel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSimpleParallel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (FinishMode != other.FinishMode) return false; + if (!object.Equals(MainTask, other.MainTask)) return false; + if (!object.Equals(BackgroundNode, other.BackgroundNode)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasFinishMode) hash ^= FinishMode.GetHashCode(); + if (mainTask_ != null) hash ^= MainTask.GetHashCode(); + if (backgroundNode_ != null) hash ^= BackgroundNode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasFinishMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinishMode); + } + if (mainTask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainTask); + } + if (backgroundNode_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundNode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSimpleParallel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasFinishMode) { + FinishMode = other.FinishMode; + } + if (other.mainTask_ != null) { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + MainTask.MergeFrom(other.MainTask); + } + if (other.backgroundNode_ != null) { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + BackgroundNode.MergeFrom(other.BackgroundNode); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTask : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTask()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask(AiTask other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask Clone() { + return new AiTask(this); + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTask); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTask other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTask other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWait : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWait()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait(AiUeWait other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + waitTime_ = other.waitTime_; + randomDeviation_ = other.randomDeviation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait Clone() { + return new AiUeWait(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "wait_time" field. + public const int WaitTimeFieldNumber = 6; + private readonly static float WaitTimeDefaultValue = 0F; + + private float waitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WaitTime { + get { if ((_hasBits0 & 4) != 0) { return waitTime_; } else { return WaitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + waitTime_ = value; + } + } + /// Gets whether the "wait_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWaitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "wait_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWaitTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "random_deviation" field. + public const int RandomDeviationFieldNumber = 7; + private readonly static float RandomDeviationDefaultValue = 0F; + + private float randomDeviation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RandomDeviation { + get { if ((_hasBits0 & 8) != 0) { return randomDeviation_; } else { return RandomDeviationDefaultValue; } } + set { + _hasBits0 |= 8; + randomDeviation_ = value; + } + } + /// Gets whether the "random_deviation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRandomDeviation { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "random_deviation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRandomDeviation() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWait); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWait other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WaitTime, other.WaitTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RandomDeviation, other.RandomDeviation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasWaitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WaitTime); + if (HasRandomDeviation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RandomDeviation); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasWaitTime) { + size += 1 + 4; + } + if (HasRandomDeviation) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWait other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasWaitTime) { + WaitTime = other.WaitTime; + } + if (other.HasRandomDeviation) { + RandomDeviation = other.RandomDeviation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWaitBlackboardTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWaitBlackboardTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime(AiUeWaitBlackboardTime other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + blackboardKey_ = other.blackboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime Clone() { + return new AiUeWaitBlackboardTime(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 6; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWaitBlackboardTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWaitBlackboardTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (BlackboardKey != other.BlackboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWaitBlackboardTime other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget(AiMoveToTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget Clone() { + return new AiMoveToTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseSkill()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill(AiChooseSkill other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + resultSkillIdKey_ = other.resultSkillIdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill Clone() { + return new AiChooseSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "result_skill_id_key" field. + public const int ResultSkillIdKeyFieldNumber = 7; + private readonly static string ResultSkillIdKeyDefaultValue = ""; + + private string resultSkillIdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultSkillIdKey { + get { return resultSkillIdKey_ ?? ResultSkillIdKeyDefaultValue; } + set { + resultSkillIdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_skill_id_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultSkillIdKey { + get { return resultSkillIdKey_ != null; } + } + /// Clears the value of the "result_skill_id_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultSkillIdKey() { + resultSkillIdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (ResultSkillIdKey != other.ResultSkillIdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasResultSkillIdKey) hash ^= ResultSkillIdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasResultSkillIdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultSkillIdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseSkill other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasResultSkillIdKey) { + ResultSkillIdKey = other.ResultSkillIdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToRandomLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToRandomLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation(AiMoveToRandomLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + originPositionKey_ = other.originPositionKey_; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation Clone() { + return new AiMoveToRandomLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "origin_position_key" field. + public const int OriginPositionKeyFieldNumber = 6; + private readonly static string OriginPositionKeyDefaultValue = ""; + + private string originPositionKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OriginPositionKey { + get { return originPositionKey_ ?? OriginPositionKeyDefaultValue; } + set { + originPositionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "origin_position_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOriginPositionKey { + get { return originPositionKey_ != null; } + } + /// Clears the value of the "origin_position_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOriginPositionKey() { + originPositionKey_ = null; + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 7; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 4) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 4; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToRandomLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToRandomLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (OriginPositionKey != other.OriginPositionKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasOriginPositionKey) hash ^= OriginPositionKey.GetHashCode(); + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasOriginPositionKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginPositionKey); + } + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToRandomLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasOriginPositionKey) { + OriginPositionKey = other.OriginPositionKey; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation(AiMoveToLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + location_ = other.location_ != null ? other.location_.Clone() : null; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation Clone() { + return new AiMoveToLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 6; + private global::Cfg.Vector3 location_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 Location { + get { return location_; } + set { + location_ = value; + } + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!object.Equals(Location, other.Location)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (location_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Location); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (location_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Location); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + Location.MergeFrom(other.Location); + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + input.ReadMessage(Location); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + input.ReadMessage(Location); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDebugPrint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDebugPrint()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint(AiDebugPrint other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint Clone() { + return new AiDebugPrint(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 6; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDebugPrint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDebugPrint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDebugPrint other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz(BlueprintClazz other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Interface: + Interface = other.Interface.Clone(); + break; + case ValueOneofCase.NormalClazz: + NormalClazz = other.NormalClazz.Clone(); + break; + case ValueOneofCase.EnumClazz: + EnumClazz = other.EnumClazz.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz Clone() { + return new BlueprintClazz(this); + } + + /// Field number for the "Interface" field. + public const int InterfaceFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintInterface Interface { + get { return valueCase_ == ValueOneofCase.Interface ? (global::Cfg.BlueprintInterface) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Interface; + } + } + + /// Field number for the "NormalClazz" field. + public const int NormalClazzFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintNormalClazz NormalClazz { + get { return valueCase_ == ValueOneofCase.NormalClazz ? (global::Cfg.BlueprintNormalClazz) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.NormalClazz; + } + } + + /// Field number for the "EnumClazz" field. + public const int EnumClazzFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintEnumClazz EnumClazz { + get { return valueCase_ == ValueOneofCase.EnumClazz ? (global::Cfg.BlueprintEnumClazz) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.EnumClazz; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Interface = 1, + NormalClazz = 2, + EnumClazz = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interface, other.Interface)) return false; + if (!object.Equals(NormalClazz, other.NormalClazz)) return false; + if (!object.Equals(EnumClazz, other.EnumClazz)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Interface) hash ^= Interface.GetHashCode(); + if (valueCase_ == ValueOneofCase.NormalClazz) hash ^= NormalClazz.GetHashCode(); + if (valueCase_ == ValueOneofCase.EnumClazz) hash ^= EnumClazz.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Interface) { + output.WriteRawTag(10); + output.WriteMessage(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + output.WriteRawTag(18); + output.WriteMessage(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + output.WriteRawTag(26); + output.WriteMessage(EnumClazz); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Interface) { + output.WriteRawTag(10); + output.WriteMessage(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + output.WriteRawTag(18); + output.WriteMessage(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + output.WriteRawTag(26); + output.WriteMessage(EnumClazz); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Interface) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnumClazz); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintClazz other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Interface: + if (Interface == null) { + Interface = new global::Cfg.BlueprintInterface(); + } + Interface.MergeFrom(other.Interface); + break; + case ValueOneofCase.NormalClazz: + if (NormalClazz == null) { + NormalClazz = new global::Cfg.BlueprintNormalClazz(); + } + NormalClazz.MergeFrom(other.NormalClazz); + break; + case ValueOneofCase.EnumClazz: + if (EnumClazz == null) { + EnumClazz = new global::Cfg.BlueprintEnumClazz(); + } + EnumClazz.MergeFrom(other.EnumClazz); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BlueprintInterface subBuilder = new global::Cfg.BlueprintInterface(); + if (valueCase_ == ValueOneofCase.Interface) { + subBuilder.MergeFrom(Interface); + } + input.ReadMessage(subBuilder); + Interface = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintNormalClazz subBuilder = new global::Cfg.BlueprintNormalClazz(); + if (valueCase_ == ValueOneofCase.NormalClazz) { + subBuilder.MergeFrom(NormalClazz); + } + input.ReadMessage(subBuilder); + NormalClazz = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintEnumClazz subBuilder = new global::Cfg.BlueprintEnumClazz(); + if (valueCase_ == ValueOneofCase.EnumClazz) { + subBuilder.MergeFrom(EnumClazz); + } + input.ReadMessage(subBuilder); + EnumClazz = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BlueprintInterface subBuilder = new global::Cfg.BlueprintInterface(); + if (valueCase_ == ValueOneofCase.Interface) { + subBuilder.MergeFrom(Interface); + } + input.ReadMessage(subBuilder); + Interface = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintNormalClazz subBuilder = new global::Cfg.BlueprintNormalClazz(); + if (valueCase_ == ValueOneofCase.NormalClazz) { + subBuilder.MergeFrom(NormalClazz); + } + input.ReadMessage(subBuilder); + NormalClazz = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintEnumClazz subBuilder = new global::Cfg.BlueprintEnumClazz(); + if (valueCase_ == ValueOneofCase.EnumClazz) { + subBuilder.MergeFrom(EnumClazz); + } + input.ReadMessage(subBuilder); + EnumClazz = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintMethod()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod(BlueprintMethod other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.AbstraceMethod: + AbstraceMethod = other.AbstraceMethod.Clone(); + break; + case ValueOneofCase.ExternalMethod: + ExternalMethod = other.ExternalMethod.Clone(); + break; + case ValueOneofCase.BlueprintMethod_: + BlueprintMethod_ = other.BlueprintMethod_.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod Clone() { + return new BlueprintMethod(this); + } + + /// Field number for the "AbstraceMethod" field. + public const int AbstraceMethodFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintAbstraceMethod AbstraceMethod { + get { return valueCase_ == ValueOneofCase.AbstraceMethod ? (global::Cfg.BlueprintAbstraceMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.AbstraceMethod; + } + } + + /// Field number for the "ExternalMethod" field. + public const int ExternalMethodFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintExternalMethod ExternalMethod { + get { return valueCase_ == ValueOneofCase.ExternalMethod ? (global::Cfg.BlueprintExternalMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExternalMethod; + } + } + + /// Field number for the "BlueprintMethod" field. + public const int BlueprintMethod_FieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintBlueprintMethod BlueprintMethod_ { + get { return valueCase_ == ValueOneofCase.BlueprintMethod_ ? (global::Cfg.BlueprintBlueprintMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlueprintMethod_; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + AbstraceMethod = 1, + ExternalMethod = 2, + BlueprintMethod_ = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AbstraceMethod, other.AbstraceMethod)) return false; + if (!object.Equals(ExternalMethod, other.ExternalMethod)) return false; + if (!object.Equals(BlueprintMethod_, other.BlueprintMethod_)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.AbstraceMethod) hash ^= AbstraceMethod.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExternalMethod) hash ^= ExternalMethod.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) hash ^= BlueprintMethod_.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + output.WriteRawTag(10); + output.WriteMessage(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + output.WriteRawTag(18); + output.WriteMessage(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + output.WriteRawTag(26); + output.WriteMessage(BlueprintMethod_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + output.WriteRawTag(10); + output.WriteMessage(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + output.WriteRawTag(18); + output.WriteMessage(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + output.WriteRawTag(26); + output.WriteMessage(BlueprintMethod_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlueprintMethod_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintMethod other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.AbstraceMethod: + if (AbstraceMethod == null) { + AbstraceMethod = new global::Cfg.BlueprintAbstraceMethod(); + } + AbstraceMethod.MergeFrom(other.AbstraceMethod); + break; + case ValueOneofCase.ExternalMethod: + if (ExternalMethod == null) { + ExternalMethod = new global::Cfg.BlueprintExternalMethod(); + } + ExternalMethod.MergeFrom(other.ExternalMethod); + break; + case ValueOneofCase.BlueprintMethod_: + if (BlueprintMethod_ == null) { + BlueprintMethod_ = new global::Cfg.BlueprintBlueprintMethod(); + } + BlueprintMethod_.MergeFrom(other.BlueprintMethod_); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BlueprintAbstraceMethod subBuilder = new global::Cfg.BlueprintAbstraceMethod(); + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + subBuilder.MergeFrom(AbstraceMethod); + } + input.ReadMessage(subBuilder); + AbstraceMethod = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintExternalMethod subBuilder = new global::Cfg.BlueprintExternalMethod(); + if (valueCase_ == ValueOneofCase.ExternalMethod) { + subBuilder.MergeFrom(ExternalMethod); + } + input.ReadMessage(subBuilder); + ExternalMethod = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintBlueprintMethod subBuilder = new global::Cfg.BlueprintBlueprintMethod(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + subBuilder.MergeFrom(BlueprintMethod_); + } + input.ReadMessage(subBuilder); + BlueprintMethod_ = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BlueprintAbstraceMethod subBuilder = new global::Cfg.BlueprintAbstraceMethod(); + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + subBuilder.MergeFrom(AbstraceMethod); + } + input.ReadMessage(subBuilder); + AbstraceMethod = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintExternalMethod subBuilder = new global::Cfg.BlueprintExternalMethod(); + if (valueCase_ == ValueOneofCase.ExternalMethod) { + subBuilder.MergeFrom(ExternalMethod); + } + input.ReadMessage(subBuilder); + ExternalMethod = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintBlueprintMethod subBuilder = new global::Cfg.BlueprintBlueprintMethod(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + subBuilder.MergeFrom(BlueprintMethod_); + } + input.ReadMessage(subBuilder); + BlueprintMethod_ = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintParamInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintParamInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo(BlueprintParamInfo other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + type_ = other.type_; + isRef_ = other.isRef_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo Clone() { + return new BlueprintParamInfo(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + type_ = null; + } + + /// Field number for the "is_ref" field. + public const int IsRefFieldNumber = 3; + private readonly static bool IsRefDefaultValue = false; + + private bool isRef_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsRef { + get { if ((_hasBits0 & 1) != 0) { return isRef_; } else { return IsRefDefaultValue; } } + set { + _hasBits0 |= 1; + isRef_ = value; + } + } + /// Gets whether the "is_ref" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsRef { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_ref" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsRef() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintParamInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintParamInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (IsRef != other.IsRef) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasIsRef) hash ^= IsRef.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasIsRef) { + output.WriteRawTag(24); + output.WriteBool(IsRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasIsRef) { + output.WriteRawTag(24); + output.WriteBool(IsRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasIsRef) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintParamInfo other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasIsRef) { + IsRef = other.IsRef; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 24: { + IsRef = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 24: { + IsRef = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintAbstraceMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintAbstraceMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod(BlueprintAbstraceMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod Clone() { + return new BlueprintAbstraceMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintAbstraceMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintAbstraceMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintAbstraceMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintExternalMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintExternalMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod(BlueprintExternalMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod Clone() { + return new BlueprintExternalMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintExternalMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintExternalMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintExternalMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintBlueprintMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintBlueprintMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod(BlueprintBlueprintMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod Clone() { + return new BlueprintBlueprintMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintBlueprintMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintBlueprintMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintBlueprintMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintInterface : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintInterface()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface(BlueprintInterface other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface Clone() { + return new BlueprintInterface(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintInterface); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintInterface other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintInterface other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintNormalClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintNormalClazz()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz(BlueprintNormalClazz other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + isAbstract_ = other.isAbstract_; + fields_ = other.fields_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz Clone() { + return new BlueprintNormalClazz(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + /// Field number for the "is_abstract" field. + public const int IsAbstractFieldNumber = 5; + private readonly static bool IsAbstractDefaultValue = false; + + private bool isAbstract_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAbstract { + get { if ((_hasBits0 & 1) != 0) { return isAbstract_; } else { return IsAbstractDefaultValue; } } + set { + _hasBits0 |= 1; + isAbstract_ = value; + } + } + /// Gets whether the "is_abstract" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsAbstract { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_abstract" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsAbstract() { + _hasBits0 &= ~1; + } + + /// Field number for the "fields" field. + public const int FieldsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_fields_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.BlueprintField.Parser); + private readonly pbc::RepeatedField fields_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fields { + get { return fields_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintNormalClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintNormalClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + if (IsAbstract != other.IsAbstract) return false; + if(!fields_.Equals(other.fields_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + if (HasIsAbstract) hash ^= IsAbstract.GetHashCode(); + hash ^= fields_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + if (HasIsAbstract) { + output.WriteRawTag(40); + output.WriteBool(IsAbstract); + } + fields_.WriteTo(output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + if (HasIsAbstract) { + output.WriteRawTag(40); + output.WriteBool(IsAbstract); + } + fields_.WriteTo(ref output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + if (HasIsAbstract) { + size += 1 + 1; + } + size += fields_.CalculateSize(_repeated_fields_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintNormalClazz other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + if (other.HasIsAbstract) { + IsAbstract = other.IsAbstract; + } + fields_.Add(other.fields_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + case 40: { + IsAbstract = input.ReadBool(); + break; + } + case 50: { + fields_.AddEntriesFrom(input, _repeated_fields_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + case 40: { + IsAbstract = input.ReadBool(); + break; + } + case 50: { + fields_.AddEntriesFrom(ref input, _repeated_fields_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintField : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintField()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField(BlueprintField other) : this() { + name_ = other.name_; + type_ = other.type_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField Clone() { + return new BlueprintField(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + type_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintField); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintField other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintField other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintEnumClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintEnumClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz(BlueprintEnumClazz other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + enums_ = other.enums_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz Clone() { + return new BlueprintEnumClazz(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + /// Field number for the "enums" field. + public const int EnumsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_enums_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintEnumField.Parser); + private readonly pbc::RepeatedField enums_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Enums { + get { return enums_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintEnumClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintEnumClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + if(!enums_.Equals(other.enums_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + hash ^= enums_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + enums_.WriteTo(output, _repeated_enums_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + enums_.WriteTo(ref output, _repeated_enums_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + size += enums_.CalculateSize(_repeated_enums_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintEnumClazz other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + enums_.Add(other.enums_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(input, _repeated_enums_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(ref input, _repeated_enums_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintEnumField : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintEnumField()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField(BlueprintEnumField other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField Clone() { + return new BlueprintEnumField(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintEnumField); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintEnumField other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintEnumField other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusDropInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusDropInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo(BonusDropInfo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + desc_ = other.desc_; + clientShowItems_ = other.clientShowItems_.Clone(); + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo Clone() { + return new BonusDropInfo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "client_show_items" field. + public const int ClientShowItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_clientShowItems_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BonusShowItemInfo.Parser); + private readonly pbc::RepeatedField clientShowItems_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClientShowItems { + get { return clientShowItems_; } + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 4; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusDropInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusDropInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if(!clientShowItems_.Equals(other.clientShowItems_)) return false; + if (!object.Equals(Bonus, other.Bonus)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= clientShowItems_.GetHashCode(); + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + clientShowItems_.WriteTo(output, _repeated_clientShowItems_codec); + if (bonus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Bonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + clientShowItems_.WriteTo(ref output, _repeated_clientShowItems_codec); + if (bonus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Bonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += clientShowItems_.CalculateSize(_repeated_clientShowItems_codec); + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusDropInfo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasDesc) { + Desc = other.Desc; + } + clientShowItems_.Add(other.clientShowItems_); + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + clientShowItems_.AddEntriesFrom(input, _repeated_clientShowItems_codec); + break; + } + case 34: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + clientShowItems_.AddEntriesFrom(ref input, _repeated_clientShowItems_codec); + break; + } + case 34: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusShowItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusShowItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo(BonusShowItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + itemNum_ = other.itemNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo Clone() { + return new BonusShowItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "item_num" field. + public const int ItemNumFieldNumber = 2; + private readonly static long ItemNumDefaultValue = 0L; + + private long itemNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ItemNum { + get { if ((_hasBits0 & 2) != 0) { return itemNum_; } else { return ItemNumDefaultValue; } } + set { + _hasBits0 |= 2; + itemNum_ = value; + } + } + /// Gets whether the "item_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "item_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemNum() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusShowItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusShowItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (ItemNum != other.ItemNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasItemNum) hash ^= ItemNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasItemNum) { + output.WriteRawTag(16); + output.WriteInt64(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasItemNum) { + output.WriteRawTag(16); + output.WriteInt64(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasItemNum) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ItemNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusShowItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasItemNum) { + ItemNum = other.ItemNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + ItemNum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + ItemNum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus(BonusBonus other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.OneItem: + OneItem = other.OneItem.Clone(); + break; + case ValueOneofCase.OneItems: + OneItems = other.OneItems.Clone(); + break; + case ValueOneofCase.Item: + Item = other.Item.Clone(); + break; + case ValueOneofCase.Items: + Items = other.Items.Clone(); + break; + case ValueOneofCase.CoefficientItem: + CoefficientItem = other.CoefficientItem.Clone(); + break; + case ValueOneofCase.WeightItems: + WeightItems = other.WeightItems.Clone(); + break; + case ValueOneofCase.ProbabilityItems: + ProbabilityItems = other.ProbabilityItems.Clone(); + break; + case ValueOneofCase.MultiBonus: + MultiBonus = other.MultiBonus.Clone(); + break; + case ValueOneofCase.ProbabilityBonus: + ProbabilityBonus = other.ProbabilityBonus.Clone(); + break; + case ValueOneofCase.WeightBonus: + WeightBonus = other.WeightBonus.Clone(); + break; + case ValueOneofCase.DropBonus: + DropBonus = other.DropBonus.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus Clone() { + return new BonusBonus(this); + } + + /// Field number for the "OneItem" field. + public const int OneItemFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusOneItem OneItem { + get { return valueCase_ == ValueOneofCase.OneItem ? (global::Cfg.BonusOneItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.OneItem; + } + } + + /// Field number for the "OneItems" field. + public const int OneItemsFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusOneItems OneItems { + get { return valueCase_ == ValueOneofCase.OneItems ? (global::Cfg.BonusOneItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.OneItems; + } + } + + /// Field number for the "Item" field. + public const int ItemFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItem Item { + get { return valueCase_ == ValueOneofCase.Item ? (global::Cfg.BonusItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Item; + } + } + + /// Field number for the "Items" field. + public const int ItemsFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItems Items { + get { return valueCase_ == ValueOneofCase.Items ? (global::Cfg.BonusItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Items; + } + } + + /// Field number for the "CoefficientItem" field. + public const int CoefficientItemFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusCoefficientItem CoefficientItem { + get { return valueCase_ == ValueOneofCase.CoefficientItem ? (global::Cfg.BonusCoefficientItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CoefficientItem; + } + } + + /// Field number for the "WeightItems" field. + public const int WeightItemsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusWeightItems WeightItems { + get { return valueCase_ == ValueOneofCase.WeightItems ? (global::Cfg.BonusWeightItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.WeightItems; + } + } + + /// Field number for the "ProbabilityItems" field. + public const int ProbabilityItemsFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusProbabilityItems ProbabilityItems { + get { return valueCase_ == ValueOneofCase.ProbabilityItems ? (global::Cfg.BonusProbabilityItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ProbabilityItems; + } + } + + /// Field number for the "MultiBonus" field. + public const int MultiBonusFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusMultiBonus MultiBonus { + get { return valueCase_ == ValueOneofCase.MultiBonus ? (global::Cfg.BonusMultiBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiBonus; + } + } + + /// Field number for the "ProbabilityBonus" field. + public const int ProbabilityBonusFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusProbabilityBonus ProbabilityBonus { + get { return valueCase_ == ValueOneofCase.ProbabilityBonus ? (global::Cfg.BonusProbabilityBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ProbabilityBonus; + } + } + + /// Field number for the "WeightBonus" field. + public const int WeightBonusFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusWeightBonus WeightBonus { + get { return valueCase_ == ValueOneofCase.WeightBonus ? (global::Cfg.BonusWeightBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.WeightBonus; + } + } + + /// Field number for the "DropBonus" field. + public const int DropBonusFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusDropBonus DropBonus { + get { return valueCase_ == ValueOneofCase.DropBonus ? (global::Cfg.BonusDropBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DropBonus; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + OneItem = 1, + OneItems = 2, + Item = 3, + Items = 4, + CoefficientItem = 5, + WeightItems = 6, + ProbabilityItems = 7, + MultiBonus = 8, + ProbabilityBonus = 9, + WeightBonus = 10, + DropBonus = 11, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OneItem, other.OneItem)) return false; + if (!object.Equals(OneItems, other.OneItems)) return false; + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(Items, other.Items)) return false; + if (!object.Equals(CoefficientItem, other.CoefficientItem)) return false; + if (!object.Equals(WeightItems, other.WeightItems)) return false; + if (!object.Equals(ProbabilityItems, other.ProbabilityItems)) return false; + if (!object.Equals(MultiBonus, other.MultiBonus)) return false; + if (!object.Equals(ProbabilityBonus, other.ProbabilityBonus)) return false; + if (!object.Equals(WeightBonus, other.WeightBonus)) return false; + if (!object.Equals(DropBonus, other.DropBonus)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.OneItem) hash ^= OneItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.OneItems) hash ^= OneItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.Item) hash ^= Item.GetHashCode(); + if (valueCase_ == ValueOneofCase.Items) hash ^= Items.GetHashCode(); + if (valueCase_ == ValueOneofCase.CoefficientItem) hash ^= CoefficientItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.WeightItems) hash ^= WeightItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) hash ^= ProbabilityItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.MultiBonus) hash ^= MultiBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) hash ^= ProbabilityBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.WeightBonus) hash ^= WeightBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.DropBonus) hash ^= DropBonus.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.OneItem) { + output.WriteRawTag(10); + output.WriteMessage(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + output.WriteRawTag(18); + output.WriteMessage(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(26); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + output.WriteRawTag(34); + output.WriteMessage(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + output.WriteRawTag(42); + output.WriteMessage(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + output.WriteRawTag(50); + output.WriteMessage(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + output.WriteRawTag(58); + output.WriteMessage(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + output.WriteRawTag(66); + output.WriteMessage(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + output.WriteRawTag(74); + output.WriteMessage(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + output.WriteRawTag(82); + output.WriteMessage(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + output.WriteRawTag(90); + output.WriteMessage(DropBonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.OneItem) { + output.WriteRawTag(10); + output.WriteMessage(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + output.WriteRawTag(18); + output.WriteMessage(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(26); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + output.WriteRawTag(34); + output.WriteMessage(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + output.WriteRawTag(42); + output.WriteMessage(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + output.WriteRawTag(50); + output.WriteMessage(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + output.WriteRawTag(58); + output.WriteMessage(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + output.WriteRawTag(66); + output.WriteMessage(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + output.WriteRawTag(74); + output.WriteMessage(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + output.WriteRawTag(82); + output.WriteMessage(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + output.WriteRawTag(90); + output.WriteMessage(DropBonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.OneItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DropBonus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusBonus other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.OneItem: + if (OneItem == null) { + OneItem = new global::Cfg.BonusOneItem(); + } + OneItem.MergeFrom(other.OneItem); + break; + case ValueOneofCase.OneItems: + if (OneItems == null) { + OneItems = new global::Cfg.BonusOneItems(); + } + OneItems.MergeFrom(other.OneItems); + break; + case ValueOneofCase.Item: + if (Item == null) { + Item = new global::Cfg.BonusItem(); + } + Item.MergeFrom(other.Item); + break; + case ValueOneofCase.Items: + if (Items == null) { + Items = new global::Cfg.BonusItems(); + } + Items.MergeFrom(other.Items); + break; + case ValueOneofCase.CoefficientItem: + if (CoefficientItem == null) { + CoefficientItem = new global::Cfg.BonusCoefficientItem(); + } + CoefficientItem.MergeFrom(other.CoefficientItem); + break; + case ValueOneofCase.WeightItems: + if (WeightItems == null) { + WeightItems = new global::Cfg.BonusWeightItems(); + } + WeightItems.MergeFrom(other.WeightItems); + break; + case ValueOneofCase.ProbabilityItems: + if (ProbabilityItems == null) { + ProbabilityItems = new global::Cfg.BonusProbabilityItems(); + } + ProbabilityItems.MergeFrom(other.ProbabilityItems); + break; + case ValueOneofCase.MultiBonus: + if (MultiBonus == null) { + MultiBonus = new global::Cfg.BonusMultiBonus(); + } + MultiBonus.MergeFrom(other.MultiBonus); + break; + case ValueOneofCase.ProbabilityBonus: + if (ProbabilityBonus == null) { + ProbabilityBonus = new global::Cfg.BonusProbabilityBonus(); + } + ProbabilityBonus.MergeFrom(other.ProbabilityBonus); + break; + case ValueOneofCase.WeightBonus: + if (WeightBonus == null) { + WeightBonus = new global::Cfg.BonusWeightBonus(); + } + WeightBonus.MergeFrom(other.WeightBonus); + break; + case ValueOneofCase.DropBonus: + if (DropBonus == null) { + DropBonus = new global::Cfg.BonusDropBonus(); + } + DropBonus.MergeFrom(other.DropBonus); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BonusOneItem subBuilder = new global::Cfg.BonusOneItem(); + if (valueCase_ == ValueOneofCase.OneItem) { + subBuilder.MergeFrom(OneItem); + } + input.ReadMessage(subBuilder); + OneItem = subBuilder; + break; + } + case 18: { + global::Cfg.BonusOneItems subBuilder = new global::Cfg.BonusOneItems(); + if (valueCase_ == ValueOneofCase.OneItems) { + subBuilder.MergeFrom(OneItems); + } + input.ReadMessage(subBuilder); + OneItems = subBuilder; + break; + } + case 26: { + global::Cfg.BonusItem subBuilder = new global::Cfg.BonusItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 34: { + global::Cfg.BonusItems subBuilder = new global::Cfg.BonusItems(); + if (valueCase_ == ValueOneofCase.Items) { + subBuilder.MergeFrom(Items); + } + input.ReadMessage(subBuilder); + Items = subBuilder; + break; + } + case 42: { + global::Cfg.BonusCoefficientItem subBuilder = new global::Cfg.BonusCoefficientItem(); + if (valueCase_ == ValueOneofCase.CoefficientItem) { + subBuilder.MergeFrom(CoefficientItem); + } + input.ReadMessage(subBuilder); + CoefficientItem = subBuilder; + break; + } + case 50: { + global::Cfg.BonusWeightItems subBuilder = new global::Cfg.BonusWeightItems(); + if (valueCase_ == ValueOneofCase.WeightItems) { + subBuilder.MergeFrom(WeightItems); + } + input.ReadMessage(subBuilder); + WeightItems = subBuilder; + break; + } + case 58: { + global::Cfg.BonusProbabilityItems subBuilder = new global::Cfg.BonusProbabilityItems(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + subBuilder.MergeFrom(ProbabilityItems); + } + input.ReadMessage(subBuilder); + ProbabilityItems = subBuilder; + break; + } + case 66: { + global::Cfg.BonusMultiBonus subBuilder = new global::Cfg.BonusMultiBonus(); + if (valueCase_ == ValueOneofCase.MultiBonus) { + subBuilder.MergeFrom(MultiBonus); + } + input.ReadMessage(subBuilder); + MultiBonus = subBuilder; + break; + } + case 74: { + global::Cfg.BonusProbabilityBonus subBuilder = new global::Cfg.BonusProbabilityBonus(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + subBuilder.MergeFrom(ProbabilityBonus); + } + input.ReadMessage(subBuilder); + ProbabilityBonus = subBuilder; + break; + } + case 82: { + global::Cfg.BonusWeightBonus subBuilder = new global::Cfg.BonusWeightBonus(); + if (valueCase_ == ValueOneofCase.WeightBonus) { + subBuilder.MergeFrom(WeightBonus); + } + input.ReadMessage(subBuilder); + WeightBonus = subBuilder; + break; + } + case 90: { + global::Cfg.BonusDropBonus subBuilder = new global::Cfg.BonusDropBonus(); + if (valueCase_ == ValueOneofCase.DropBonus) { + subBuilder.MergeFrom(DropBonus); + } + input.ReadMessage(subBuilder); + DropBonus = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BonusOneItem subBuilder = new global::Cfg.BonusOneItem(); + if (valueCase_ == ValueOneofCase.OneItem) { + subBuilder.MergeFrom(OneItem); + } + input.ReadMessage(subBuilder); + OneItem = subBuilder; + break; + } + case 18: { + global::Cfg.BonusOneItems subBuilder = new global::Cfg.BonusOneItems(); + if (valueCase_ == ValueOneofCase.OneItems) { + subBuilder.MergeFrom(OneItems); + } + input.ReadMessage(subBuilder); + OneItems = subBuilder; + break; + } + case 26: { + global::Cfg.BonusItem subBuilder = new global::Cfg.BonusItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 34: { + global::Cfg.BonusItems subBuilder = new global::Cfg.BonusItems(); + if (valueCase_ == ValueOneofCase.Items) { + subBuilder.MergeFrom(Items); + } + input.ReadMessage(subBuilder); + Items = subBuilder; + break; + } + case 42: { + global::Cfg.BonusCoefficientItem subBuilder = new global::Cfg.BonusCoefficientItem(); + if (valueCase_ == ValueOneofCase.CoefficientItem) { + subBuilder.MergeFrom(CoefficientItem); + } + input.ReadMessage(subBuilder); + CoefficientItem = subBuilder; + break; + } + case 50: { + global::Cfg.BonusWeightItems subBuilder = new global::Cfg.BonusWeightItems(); + if (valueCase_ == ValueOneofCase.WeightItems) { + subBuilder.MergeFrom(WeightItems); + } + input.ReadMessage(subBuilder); + WeightItems = subBuilder; + break; + } + case 58: { + global::Cfg.BonusProbabilityItems subBuilder = new global::Cfg.BonusProbabilityItems(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + subBuilder.MergeFrom(ProbabilityItems); + } + input.ReadMessage(subBuilder); + ProbabilityItems = subBuilder; + break; + } + case 66: { + global::Cfg.BonusMultiBonus subBuilder = new global::Cfg.BonusMultiBonus(); + if (valueCase_ == ValueOneofCase.MultiBonus) { + subBuilder.MergeFrom(MultiBonus); + } + input.ReadMessage(subBuilder); + MultiBonus = subBuilder; + break; + } + case 74: { + global::Cfg.BonusProbabilityBonus subBuilder = new global::Cfg.BonusProbabilityBonus(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + subBuilder.MergeFrom(ProbabilityBonus); + } + input.ReadMessage(subBuilder); + ProbabilityBonus = subBuilder; + break; + } + case 82: { + global::Cfg.BonusWeightBonus subBuilder = new global::Cfg.BonusWeightBonus(); + if (valueCase_ == ValueOneofCase.WeightBonus) { + subBuilder.MergeFrom(WeightBonus); + } + input.ReadMessage(subBuilder); + WeightBonus = subBuilder; + break; + } + case 90: { + global::Cfg.BonusDropBonus subBuilder = new global::Cfg.BonusDropBonus(); + if (valueCase_ == ValueOneofCase.DropBonus) { + subBuilder.MergeFrom(DropBonus); + } + input.ReadMessage(subBuilder); + DropBonus = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusOneItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusOneItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem(BonusOneItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem Clone() { + return new BonusOneItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusOneItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusOneItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusOneItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusOneItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusOneItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[59]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems(BonusOneItems other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems Clone() { + return new BonusOneItems(this); + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusOneItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusOneItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusOneItems other) { + if (other == null) { + return; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem(BonusItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem Clone() { + return new BonusItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private readonly static int AmountDefaultValue = 0; + + private int amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Amount { + get { if ((_hasBits0 & 2) != 0) { return amount_; } else { return AmountDefaultValue; } } + set { + _hasBits0 |= 2; + amount_ = value; + } + } + /// Gets whether the "amount" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAmount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "amount" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAmount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasAmount) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasAmount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasAmount) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems(BonusItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems Clone() { + return new BonusItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusItem.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusCoefficientItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusCoefficientItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem(BonusCoefficientItem other) : this() { + _hasBits0 = other._hasBits0; + bonusId_ = other.bonusId_; + bonusList_ = other.bonusList_ != null ? other.bonusList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem Clone() { + return new BonusCoefficientItem(this); + } + + /// Field number for the "bonus_id" field. + public const int BonusIdFieldNumber = 1; + private readonly static int BonusIdDefaultValue = 0; + + private int bonusId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BonusId { + get { if ((_hasBits0 & 1) != 0) { return bonusId_; } else { return BonusIdDefaultValue; } } + set { + _hasBits0 |= 1; + bonusId_ = value; + } + } + /// Gets whether the "bonus_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBonusId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bonus_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBonusId() { + _hasBits0 &= ~1; + } + + /// Field number for the "bonus_list" field. + public const int BonusListFieldNumber = 2; + private global::Cfg.BonusItems bonusList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItems BonusList { + get { return bonusList_; } + set { + bonusList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusCoefficientItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusCoefficientItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BonusId != other.BonusId) return false; + if (!object.Equals(BonusList, other.BonusList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBonusId) hash ^= BonusId.GetHashCode(); + if (bonusList_ != null) hash ^= BonusList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBonusId) { + output.WriteRawTag(8); + output.WriteInt32(BonusId); + } + if (bonusList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BonusList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBonusId) { + output.WriteRawTag(8); + output.WriteInt32(BonusId); + } + if (bonusList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BonusList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBonusId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BonusId); + } + if (bonusList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BonusList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusCoefficientItem other) { + if (other == null) { + return; + } + if (other.HasBonusId) { + BonusId = other.BonusId; + } + if (other.bonusList_ != null) { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + BonusList.MergeFrom(other.BonusList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BonusId = input.ReadInt32(); + break; + } + case 18: { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + input.ReadMessage(BonusList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BonusId = input.ReadInt32(); + break; + } + case 18: { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + input.ReadMessage(BonusList); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems(BonusWeightItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems Clone() { + return new BonusWeightItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusWeightItemInfo.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo(BonusWeightItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + weight_ = other.weight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo Clone() { + return new BonusWeightItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 3; + private readonly static int WeightDefaultValue = 0; + + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { if ((_hasBits0 & 4) != 0) { return weight_; } else { return WeightDefaultValue; } } + set { + _hasBits0 |= 4; + weight_ = value; + } + } + /// Gets whether the "weight" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWeight { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "weight" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWeight() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (Weight != other.Weight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasWeight) hash ^= Weight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasWeight) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasWeight) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasWeight) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasWeight) { + Weight = other.Weight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems(BonusProbabilityItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems Clone() { + return new BonusProbabilityItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusProbabilityItemInfo.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo(BonusProbabilityItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + probability_ = other.probability_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo Clone() { + return new BonusProbabilityItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "probability" field. + public const int ProbabilityFieldNumber = 3; + private readonly static float ProbabilityDefaultValue = 0F; + + private float probability_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Probability { + get { if ((_hasBits0 & 4) != 0) { return probability_; } else { return ProbabilityDefaultValue; } } + set { + _hasBits0 |= 4; + probability_ = value; + } + } + /// Gets whether the "probability" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProbability { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "probability" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProbability() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Probability, other.Probability)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasProbability) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Probability); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasProbability) { + output.WriteRawTag(29); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasProbability) { + output.WriteRawTag(29); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasProbability) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasProbability) { + Probability = other.Probability; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 29: { + Probability = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 29: { + Probability = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusMultiBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusMultiBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus(BonusMultiBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus Clone() { + return new BonusMultiBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusBonus.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusMultiBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusMultiBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusMultiBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus(BonusProbabilityBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus Clone() { + return new BonusProbabilityBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusProbabilityBonusInfo.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo(BonusProbabilityBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + probability_ = other.probability_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo Clone() { + return new BonusProbabilityBonusInfo(this); + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 1; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + /// Field number for the "probability" field. + public const int ProbabilityFieldNumber = 2; + private readonly static float ProbabilityDefaultValue = 0F; + + private float probability_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Probability { + get { if ((_hasBits0 & 1) != 0) { return probability_; } else { return ProbabilityDefaultValue; } } + set { + _hasBits0 |= 1; + probability_ = value; + } + } + /// Gets whether the "probability" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProbability { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "probability" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProbability() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Bonus, other.Bonus)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Probability, other.Probability)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (HasProbability) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Probability); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasProbability) { + output.WriteRawTag(21); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasProbability) { + output.WriteRawTag(21); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (HasProbability) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityBonusInfo other) { + if (other == null) { + return; + } + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + if (other.HasProbability) { + Probability = other.Probability; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 21: { + Probability = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 21: { + Probability = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus(BonusWeightBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus Clone() { + return new BonusWeightBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusWeightBonusInfo.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[71]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo(BonusWeightBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + weight_ = other.weight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo Clone() { + return new BonusWeightBonusInfo(this); + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 1; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 2; + private readonly static int WeightDefaultValue = 0; + + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { if ((_hasBits0 & 1) != 0) { return weight_; } else { return WeightDefaultValue; } } + set { + _hasBits0 |= 1; + weight_ = value; + } + } + /// Gets whether the "weight" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWeight { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "weight" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWeight() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Bonus, other.Bonus)) return false; + if (Weight != other.Weight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (HasWeight) hash ^= Weight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasWeight) { + output.WriteRawTag(16); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasWeight) { + output.WriteRawTag(16); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (HasWeight) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightBonusInfo other) { + if (other == null) { + return; + } + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + if (other.HasWeight) { + Weight = other.Weight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 16: { + Weight = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 16: { + Weight = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusDropBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusDropBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[72]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus(BonusDropBonus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus Clone() { + return new BonusDropBonus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusDropBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusDropBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusDropBonus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[73]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig(CommonGlobalConfig other) : this() { + _hasBits0 = other._hasBits0; + bagCapacity_ = other.bagCapacity_; + bagCapacitySpecial_ = other.bagCapacitySpecial_; + bagTempExpendableCapacity_ = other.bagTempExpendableCapacity_; + bagTempToolCapacity_ = other.bagTempToolCapacity_; + bagInitCapacity_ = other.bagInitCapacity_; + quickBagCapacity_ = other.quickBagCapacity_; + clothBagCapacity_ = other.clothBagCapacity_; + clothBagInitCapacity_ = other.clothBagInitCapacity_; + clothBagCapacitySpecial_ = other.clothBagCapacitySpecial_; + bagInitItemsDropId_ = other.bagInitItemsDropId_; + mailBoxCapacity_ = other.mailBoxCapacity_; + damageParamC_ = other.damageParamC_; + damageParamE_ = other.damageParamE_; + damageParamF_ = other.damageParamF_; + damageParamD_ = other.damageParamD_; + roleSpeed_ = other.roleSpeed_; + monsterSpeed_ = other.monsterSpeed_; + initEnergy_ = other.initEnergy_; + initViality_ = other.initViality_; + maxViality_ = other.maxViality_; + perVialityRecoveryTime_ = other.perVialityRecoveryTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig Clone() { + return new CommonGlobalConfig(this); + } + + /// Field number for the "bag_capacity" field. + public const int BagCapacityFieldNumber = 1; + private readonly static int BagCapacityDefaultValue = 0; + + private int bagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacity { + get { if ((_hasBits0 & 1) != 0) { return bagCapacity_; } else { return BagCapacityDefaultValue; } } + set { + _hasBits0 |= 1; + bagCapacity_ = value; + } + } + /// Gets whether the "bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacity { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacity() { + _hasBits0 &= ~1; + } + + /// Field number for the "bag_capacity_special" field. + public const int BagCapacitySpecialFieldNumber = 2; + private readonly static int BagCapacitySpecialDefaultValue = 0; + + private int bagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacitySpecial { + get { if ((_hasBits0 & 2) != 0) { return bagCapacitySpecial_; } else { return BagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 2; + bagCapacitySpecial_ = value; + } + } + /// Gets whether the "bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacitySpecial { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacitySpecial() { + _hasBits0 &= ~2; + } + + /// Field number for the "bag_temp_expendable_capacity" field. + public const int BagTempExpendableCapacityFieldNumber = 3; + private readonly static int BagTempExpendableCapacityDefaultValue = 0; + + private int bagTempExpendableCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempExpendableCapacity { + get { if ((_hasBits0 & 4) != 0) { return bagTempExpendableCapacity_; } else { return BagTempExpendableCapacityDefaultValue; } } + set { + _hasBits0 |= 4; + bagTempExpendableCapacity_ = value; + } + } + /// Gets whether the "bag_temp_expendable_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempExpendableCapacity { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "bag_temp_expendable_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempExpendableCapacity() { + _hasBits0 &= ~4; + } + + /// Field number for the "bag_temp_tool_capacity" field. + public const int BagTempToolCapacityFieldNumber = 4; + private readonly static int BagTempToolCapacityDefaultValue = 0; + + private int bagTempToolCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempToolCapacity { + get { if ((_hasBits0 & 8) != 0) { return bagTempToolCapacity_; } else { return BagTempToolCapacityDefaultValue; } } + set { + _hasBits0 |= 8; + bagTempToolCapacity_ = value; + } + } + /// Gets whether the "bag_temp_tool_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempToolCapacity { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bag_temp_tool_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempToolCapacity() { + _hasBits0 &= ~8; + } + + /// Field number for the "bag_init_capacity" field. + public const int BagInitCapacityFieldNumber = 5; + private readonly static int BagInitCapacityDefaultValue = 0; + + private int bagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitCapacity { + get { if ((_hasBits0 & 16) != 0) { return bagInitCapacity_; } else { return BagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 16; + bagInitCapacity_ = value; + } + } + /// Gets whether the "bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitCapacity { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitCapacity() { + _hasBits0 &= ~16; + } + + /// Field number for the "quick_bag_capacity" field. + public const int QuickBagCapacityFieldNumber = 6; + private readonly static int QuickBagCapacityDefaultValue = 0; + + private int quickBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuickBagCapacity { + get { if ((_hasBits0 & 32) != 0) { return quickBagCapacity_; } else { return QuickBagCapacityDefaultValue; } } + set { + _hasBits0 |= 32; + quickBagCapacity_ = value; + } + } + /// Gets whether the "quick_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuickBagCapacity { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "quick_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuickBagCapacity() { + _hasBits0 &= ~32; + } + + /// Field number for the "cloth_bag_capacity" field. + public const int ClothBagCapacityFieldNumber = 7; + private readonly static int ClothBagCapacityDefaultValue = 0; + + private int clothBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacity { + get { if ((_hasBits0 & 64) != 0) { return clothBagCapacity_; } else { return ClothBagCapacityDefaultValue; } } + set { + _hasBits0 |= 64; + clothBagCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacity { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "cloth_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacity() { + _hasBits0 &= ~64; + } + + /// Field number for the "cloth_bag_init_capacity" field. + public const int ClothBagInitCapacityFieldNumber = 8; + private readonly static int ClothBagInitCapacityDefaultValue = 0; + + private int clothBagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagInitCapacity { + get { if ((_hasBits0 & 128) != 0) { return clothBagInitCapacity_; } else { return ClothBagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 128; + clothBagInitCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagInitCapacity { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "cloth_bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagInitCapacity() { + _hasBits0 &= ~128; + } + + /// Field number for the "cloth_bag_capacity_special" field. + public const int ClothBagCapacitySpecialFieldNumber = 9; + private readonly static int ClothBagCapacitySpecialDefaultValue = 0; + + private int clothBagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacitySpecial { + get { if ((_hasBits0 & 256) != 0) { return clothBagCapacitySpecial_; } else { return ClothBagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 256; + clothBagCapacitySpecial_ = value; + } + } + /// Gets whether the "cloth_bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacitySpecial { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "cloth_bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacitySpecial() { + _hasBits0 &= ~256; + } + + /// Field number for the "bag_init_items_drop_id" field. + public const int BagInitItemsDropIdFieldNumber = 10; + private readonly static int BagInitItemsDropIdDefaultValue = 0; + + private int bagInitItemsDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitItemsDropId { + get { if ((_hasBits0 & 512) != 0) { return bagInitItemsDropId_; } else { return BagInitItemsDropIdDefaultValue; } } + set { + _hasBits0 |= 512; + bagInitItemsDropId_ = value; + } + } + /// Gets whether the "bag_init_items_drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitItemsDropId { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "bag_init_items_drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitItemsDropId() { + _hasBits0 &= ~512; + } + + /// Field number for the "mail_box_capacity" field. + public const int MailBoxCapacityFieldNumber = 11; + private readonly static int MailBoxCapacityDefaultValue = 0; + + private int mailBoxCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MailBoxCapacity { + get { if ((_hasBits0 & 1024) != 0) { return mailBoxCapacity_; } else { return MailBoxCapacityDefaultValue; } } + set { + _hasBits0 |= 1024; + mailBoxCapacity_ = value; + } + } + /// Gets whether the "mail_box_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMailBoxCapacity { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "mail_box_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMailBoxCapacity() { + _hasBits0 &= ~1024; + } + + /// Field number for the "damage_param_c" field. + public const int DamageParamCFieldNumber = 12; + private readonly static float DamageParamCDefaultValue = 0F; + + private float damageParamC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamC { + get { if ((_hasBits0 & 2048) != 0) { return damageParamC_; } else { return DamageParamCDefaultValue; } } + set { + _hasBits0 |= 2048; + damageParamC_ = value; + } + } + /// Gets whether the "damage_param_c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamC { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "damage_param_c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamC() { + _hasBits0 &= ~2048; + } + + /// Field number for the "damage_param_e" field. + public const int DamageParamEFieldNumber = 13; + private readonly static float DamageParamEDefaultValue = 0F; + + private float damageParamE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamE { + get { if ((_hasBits0 & 4096) != 0) { return damageParamE_; } else { return DamageParamEDefaultValue; } } + set { + _hasBits0 |= 4096; + damageParamE_ = value; + } + } + /// Gets whether the "damage_param_e" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamE { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "damage_param_e" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamE() { + _hasBits0 &= ~4096; + } + + /// Field number for the "damage_param_f" field. + public const int DamageParamFFieldNumber = 14; + private readonly static float DamageParamFDefaultValue = 0F; + + private float damageParamF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamF { + get { if ((_hasBits0 & 8192) != 0) { return damageParamF_; } else { return DamageParamFDefaultValue; } } + set { + _hasBits0 |= 8192; + damageParamF_ = value; + } + } + /// Gets whether the "damage_param_f" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamF { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "damage_param_f" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamF() { + _hasBits0 &= ~8192; + } + + /// Field number for the "damage_param_d" field. + public const int DamageParamDFieldNumber = 15; + private readonly static float DamageParamDDefaultValue = 0F; + + private float damageParamD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamD { + get { if ((_hasBits0 & 16384) != 0) { return damageParamD_; } else { return DamageParamDDefaultValue; } } + set { + _hasBits0 |= 16384; + damageParamD_ = value; + } + } + /// Gets whether the "damage_param_d" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamD { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "damage_param_d" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamD() { + _hasBits0 &= ~16384; + } + + /// Field number for the "role_speed" field. + public const int RoleSpeedFieldNumber = 16; + private readonly static float RoleSpeedDefaultValue = 0F; + + private float roleSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RoleSpeed { + get { if ((_hasBits0 & 32768) != 0) { return roleSpeed_; } else { return RoleSpeedDefaultValue; } } + set { + _hasBits0 |= 32768; + roleSpeed_ = value; + } + } + /// Gets whether the "role_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleSpeed { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "role_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleSpeed() { + _hasBits0 &= ~32768; + } + + /// Field number for the "monster_speed" field. + public const int MonsterSpeedFieldNumber = 17; + private readonly static float MonsterSpeedDefaultValue = 0F; + + private float monsterSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float MonsterSpeed { + get { if ((_hasBits0 & 65536) != 0) { return monsterSpeed_; } else { return MonsterSpeedDefaultValue; } } + set { + _hasBits0 |= 65536; + monsterSpeed_ = value; + } + } + /// Gets whether the "monster_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMonsterSpeed { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "monster_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMonsterSpeed() { + _hasBits0 &= ~65536; + } + + /// Field number for the "init_energy" field. + public const int InitEnergyFieldNumber = 18; + private readonly static int InitEnergyDefaultValue = 0; + + private int initEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitEnergy { + get { if ((_hasBits0 & 131072) != 0) { return initEnergy_; } else { return InitEnergyDefaultValue; } } + set { + _hasBits0 |= 131072; + initEnergy_ = value; + } + } + /// Gets whether the "init_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitEnergy { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "init_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitEnergy() { + _hasBits0 &= ~131072; + } + + /// Field number for the "init_viality" field. + public const int InitVialityFieldNumber = 19; + private readonly static int InitVialityDefaultValue = 0; + + private int initViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitViality { + get { if ((_hasBits0 & 262144) != 0) { return initViality_; } else { return InitVialityDefaultValue; } } + set { + _hasBits0 |= 262144; + initViality_ = value; + } + } + /// Gets whether the "init_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitViality { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "init_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitViality() { + _hasBits0 &= ~262144; + } + + /// Field number for the "max_viality" field. + public const int MaxVialityFieldNumber = 20; + private readonly static int MaxVialityDefaultValue = 0; + + private int maxViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxViality { + get { if ((_hasBits0 & 524288) != 0) { return maxViality_; } else { return MaxVialityDefaultValue; } } + set { + _hasBits0 |= 524288; + maxViality_ = value; + } + } + /// Gets whether the "max_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxViality { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "max_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxViality() { + _hasBits0 &= ~524288; + } + + /// Field number for the "per_viality_recovery_time" field. + public const int PerVialityRecoveryTimeFieldNumber = 21; + private readonly static int PerVialityRecoveryTimeDefaultValue = 0; + + private int perVialityRecoveryTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerVialityRecoveryTime { + get { if ((_hasBits0 & 1048576) != 0) { return perVialityRecoveryTime_; } else { return PerVialityRecoveryTimeDefaultValue; } } + set { + _hasBits0 |= 1048576; + perVialityRecoveryTime_ = value; + } + } + /// Gets whether the "per_viality_recovery_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPerVialityRecoveryTime { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "per_viality_recovery_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPerVialityRecoveryTime() { + _hasBits0 &= ~1048576; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BagCapacity != other.BagCapacity) return false; + if (BagCapacitySpecial != other.BagCapacitySpecial) return false; + if (BagTempExpendableCapacity != other.BagTempExpendableCapacity) return false; + if (BagTempToolCapacity != other.BagTempToolCapacity) return false; + if (BagInitCapacity != other.BagInitCapacity) return false; + if (QuickBagCapacity != other.QuickBagCapacity) return false; + if (ClothBagCapacity != other.ClothBagCapacity) return false; + if (ClothBagInitCapacity != other.ClothBagInitCapacity) return false; + if (ClothBagCapacitySpecial != other.ClothBagCapacitySpecial) return false; + if (BagInitItemsDropId != other.BagInitItemsDropId) return false; + if (MailBoxCapacity != other.MailBoxCapacity) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamC, other.DamageParamC)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamE, other.DamageParamE)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamF, other.DamageParamF)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamD, other.DamageParamD)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RoleSpeed, other.RoleSpeed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MonsterSpeed, other.MonsterSpeed)) return false; + if (InitEnergy != other.InitEnergy) return false; + if (InitViality != other.InitViality) return false; + if (MaxViality != other.MaxViality) return false; + if (PerVialityRecoveryTime != other.PerVialityRecoveryTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBagCapacity) hash ^= BagCapacity.GetHashCode(); + if (HasBagCapacitySpecial) hash ^= BagCapacitySpecial.GetHashCode(); + if (HasBagTempExpendableCapacity) hash ^= BagTempExpendableCapacity.GetHashCode(); + if (HasBagTempToolCapacity) hash ^= BagTempToolCapacity.GetHashCode(); + if (HasBagInitCapacity) hash ^= BagInitCapacity.GetHashCode(); + if (HasQuickBagCapacity) hash ^= QuickBagCapacity.GetHashCode(); + if (HasClothBagCapacity) hash ^= ClothBagCapacity.GetHashCode(); + if (HasClothBagInitCapacity) hash ^= ClothBagInitCapacity.GetHashCode(); + if (HasClothBagCapacitySpecial) hash ^= ClothBagCapacitySpecial.GetHashCode(); + if (HasBagInitItemsDropId) hash ^= BagInitItemsDropId.GetHashCode(); + if (HasMailBoxCapacity) hash ^= MailBoxCapacity.GetHashCode(); + if (HasDamageParamC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamC); + if (HasDamageParamE) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamE); + if (HasDamageParamF) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamF); + if (HasDamageParamD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamD); + if (HasRoleSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RoleSpeed); + if (HasMonsterSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MonsterSpeed); + if (HasInitEnergy) hash ^= InitEnergy.GetHashCode(); + if (HasInitViality) hash ^= InitViality.GetHashCode(); + if (HasMaxViality) hash ^= MaxViality.GetHashCode(); + if (HasPerVialityRecoveryTime) hash ^= PerVialityRecoveryTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacity); + } + if (HasBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitCapacity); + } + if (HasQuickBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuickBagCapacity); + } + if (HasClothBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MailBoxCapacity); + } + if (HasDamageParamC) { + size += 1 + 4; + } + if (HasDamageParamE) { + size += 1 + 4; + } + if (HasDamageParamF) { + size += 1 + 4; + } + if (HasDamageParamD) { + size += 1 + 4; + } + if (HasRoleSpeed) { + size += 2 + 4; + } + if (HasMonsterSpeed) { + size += 2 + 4; + } + if (HasInitEnergy) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitEnergy); + } + if (HasInitViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitViality); + } + if (HasMaxViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxViality); + } + if (HasPerVialityRecoveryTime) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonGlobalConfig other) { + if (other == null) { + return; + } + if (other.HasBagCapacity) { + BagCapacity = other.BagCapacity; + } + if (other.HasBagCapacitySpecial) { + BagCapacitySpecial = other.BagCapacitySpecial; + } + if (other.HasBagTempExpendableCapacity) { + BagTempExpendableCapacity = other.BagTempExpendableCapacity; + } + if (other.HasBagTempToolCapacity) { + BagTempToolCapacity = other.BagTempToolCapacity; + } + if (other.HasBagInitCapacity) { + BagInitCapacity = other.BagInitCapacity; + } + if (other.HasQuickBagCapacity) { + QuickBagCapacity = other.QuickBagCapacity; + } + if (other.HasClothBagCapacity) { + ClothBagCapacity = other.ClothBagCapacity; + } + if (other.HasClothBagInitCapacity) { + ClothBagInitCapacity = other.ClothBagInitCapacity; + } + if (other.HasClothBagCapacitySpecial) { + ClothBagCapacitySpecial = other.ClothBagCapacitySpecial; + } + if (other.HasBagInitItemsDropId) { + BagInitItemsDropId = other.BagInitItemsDropId; + } + if (other.HasMailBoxCapacity) { + MailBoxCapacity = other.MailBoxCapacity; + } + if (other.HasDamageParamC) { + DamageParamC = other.DamageParamC; + } + if (other.HasDamageParamE) { + DamageParamE = other.DamageParamE; + } + if (other.HasDamageParamF) { + DamageParamF = other.DamageParamF; + } + if (other.HasDamageParamD) { + DamageParamD = other.DamageParamD; + } + if (other.HasRoleSpeed) { + RoleSpeed = other.RoleSpeed; + } + if (other.HasMonsterSpeed) { + MonsterSpeed = other.MonsterSpeed; + } + if (other.HasInitEnergy) { + InitEnergy = other.InitEnergy; + } + if (other.HasInitViality) { + InitViality = other.InitViality; + } + if (other.HasMaxViality) { + MaxViality = other.MaxViality; + } + if (other.HasPerVialityRecoveryTime) { + PerVialityRecoveryTime = other.PerVialityRecoveryTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[74]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo(ErrorErrorInfo other) : this() { + code_ = other.code_; + desc_ = other.desc_; + style_ = other.style_ != null ? other.style_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo Clone() { + return new ErrorErrorInfo(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private readonly static string CodeDefaultValue = ""; + + private string code_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Code { + get { return code_ ?? CodeDefaultValue; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return code_ != null; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + code_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "style" field. + public const int StyleFieldNumber = 3; + private global::Cfg.ErrorErrorStyle style_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyle Style { + get { return style_; } + set { + style_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Desc != other.Desc) return false; + if (!object.Equals(Style, other.Style)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCode) hash ^= Code.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (style_ != null) hash ^= Style.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCode) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (style_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Style); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCode) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (style_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Style); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCode) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (style_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Style); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorInfo other) { + if (other == null) { + return; + } + if (other.HasCode) { + Code = other.Code; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.style_ != null) { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + Style.MergeFrom(other.Style); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Code = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + input.ReadMessage(Style); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Code = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + input.ReadMessage(Style); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[75]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle(ErrorErrorStyle other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.ErrorStyleTip: + ErrorStyleTip = other.ErrorStyleTip.Clone(); + break; + case ValueOneofCase.ErrorStyleMsgbox: + ErrorStyleMsgbox = other.ErrorStyleMsgbox.Clone(); + break; + case ValueOneofCase.ErrorStyleDlgOk: + ErrorStyleDlgOk = other.ErrorStyleDlgOk.Clone(); + break; + case ValueOneofCase.ErrorStyleDlgOkCancel: + ErrorStyleDlgOkCancel = other.ErrorStyleDlgOkCancel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle Clone() { + return new ErrorErrorStyle(this); + } + + /// Field number for the "ErrorStyleTip" field. + public const int ErrorStyleTipFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleTip ErrorStyleTip { + get { return valueCase_ == ValueOneofCase.ErrorStyleTip ? (global::Cfg.ErrorErrorStyleTip) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleTip; + } + } + + /// Field number for the "ErrorStyleMsgbox" field. + public const int ErrorStyleMsgboxFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleMsgbox ErrorStyleMsgbox { + get { return valueCase_ == ValueOneofCase.ErrorStyleMsgbox ? (global::Cfg.ErrorErrorStyleMsgbox) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleMsgbox; + } + } + + /// Field number for the "ErrorStyleDlgOk" field. + public const int ErrorStyleDlgOkFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleDlgOk ErrorStyleDlgOk { + get { return valueCase_ == ValueOneofCase.ErrorStyleDlgOk ? (global::Cfg.ErrorErrorStyleDlgOk) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleDlgOk; + } + } + + /// Field number for the "ErrorStyleDlgOkCancel" field. + public const int ErrorStyleDlgOkCancelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleDlgOkCancel ErrorStyleDlgOkCancel { + get { return valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel ? (global::Cfg.ErrorErrorStyleDlgOkCancel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleDlgOkCancel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + ErrorStyleTip = 1, + ErrorStyleMsgbox = 2, + ErrorStyleDlgOk = 3, + ErrorStyleDlgOkCancel = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ErrorStyleTip, other.ErrorStyleTip)) return false; + if (!object.Equals(ErrorStyleMsgbox, other.ErrorStyleMsgbox)) return false; + if (!object.Equals(ErrorStyleDlgOk, other.ErrorStyleDlgOk)) return false; + if (!object.Equals(ErrorStyleDlgOkCancel, other.ErrorStyleDlgOkCancel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.ErrorStyleTip) hash ^= ErrorStyleTip.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) hash ^= ErrorStyleMsgbox.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) hash ^= ErrorStyleDlgOk.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) hash ^= ErrorStyleDlgOkCancel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + output.WriteRawTag(10); + output.WriteMessage(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + output.WriteRawTag(18); + output.WriteMessage(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + output.WriteRawTag(26); + output.WriteMessage(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + output.WriteRawTag(34); + output.WriteMessage(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + output.WriteRawTag(10); + output.WriteMessage(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + output.WriteRawTag(18); + output.WriteMessage(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + output.WriteRawTag(26); + output.WriteMessage(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + output.WriteRawTag(34); + output.WriteMessage(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyle other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.ErrorStyleTip: + if (ErrorStyleTip == null) { + ErrorStyleTip = new global::Cfg.ErrorErrorStyleTip(); + } + ErrorStyleTip.MergeFrom(other.ErrorStyleTip); + break; + case ValueOneofCase.ErrorStyleMsgbox: + if (ErrorStyleMsgbox == null) { + ErrorStyleMsgbox = new global::Cfg.ErrorErrorStyleMsgbox(); + } + ErrorStyleMsgbox.MergeFrom(other.ErrorStyleMsgbox); + break; + case ValueOneofCase.ErrorStyleDlgOk: + if (ErrorStyleDlgOk == null) { + ErrorStyleDlgOk = new global::Cfg.ErrorErrorStyleDlgOk(); + } + ErrorStyleDlgOk.MergeFrom(other.ErrorStyleDlgOk); + break; + case ValueOneofCase.ErrorStyleDlgOkCancel: + if (ErrorStyleDlgOkCancel == null) { + ErrorStyleDlgOkCancel = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + } + ErrorStyleDlgOkCancel.MergeFrom(other.ErrorStyleDlgOkCancel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ErrorErrorStyleTip subBuilder = new global::Cfg.ErrorErrorStyleTip(); + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + subBuilder.MergeFrom(ErrorStyleTip); + } + input.ReadMessage(subBuilder); + ErrorStyleTip = subBuilder; + break; + } + case 18: { + global::Cfg.ErrorErrorStyleMsgbox subBuilder = new global::Cfg.ErrorErrorStyleMsgbox(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + subBuilder.MergeFrom(ErrorStyleMsgbox); + } + input.ReadMessage(subBuilder); + ErrorStyleMsgbox = subBuilder; + break; + } + case 26: { + global::Cfg.ErrorErrorStyleDlgOk subBuilder = new global::Cfg.ErrorErrorStyleDlgOk(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + subBuilder.MergeFrom(ErrorStyleDlgOk); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOk = subBuilder; + break; + } + case 34: { + global::Cfg.ErrorErrorStyleDlgOkCancel subBuilder = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + subBuilder.MergeFrom(ErrorStyleDlgOkCancel); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOkCancel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ErrorErrorStyleTip subBuilder = new global::Cfg.ErrorErrorStyleTip(); + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + subBuilder.MergeFrom(ErrorStyleTip); + } + input.ReadMessage(subBuilder); + ErrorStyleTip = subBuilder; + break; + } + case 18: { + global::Cfg.ErrorErrorStyleMsgbox subBuilder = new global::Cfg.ErrorErrorStyleMsgbox(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + subBuilder.MergeFrom(ErrorStyleMsgbox); + } + input.ReadMessage(subBuilder); + ErrorStyleMsgbox = subBuilder; + break; + } + case 26: { + global::Cfg.ErrorErrorStyleDlgOk subBuilder = new global::Cfg.ErrorErrorStyleDlgOk(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + subBuilder.MergeFrom(ErrorStyleDlgOk); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOk = subBuilder; + break; + } + case 34: { + global::Cfg.ErrorErrorStyleDlgOkCancel subBuilder = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + subBuilder.MergeFrom(ErrorStyleDlgOkCancel); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOkCancel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleTip : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleTip()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip(ErrorErrorStyleTip other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip Clone() { + return new ErrorErrorStyleTip(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleTip); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleTip other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleTip other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleMsgbox : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleMsgbox()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox(ErrorErrorStyleMsgbox other) : this() { + _hasBits0 = other._hasBits0; + btnName_ = other.btnName_; + operation_ = other.operation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox Clone() { + return new ErrorErrorStyleMsgbox(this); + } + + /// Field number for the "btn_name" field. + public const int BtnNameFieldNumber = 1; + private readonly static string BtnNameDefaultValue = ""; + + private string btnName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BtnName { + get { return btnName_ ?? BtnNameDefaultValue; } + set { + btnName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtnName { + get { return btnName_ != null; } + } + /// Clears the value of the "btn_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtnName() { + btnName_ = null; + } + + /// Field number for the "operation" field. + public const int OperationFieldNumber = 2; + private readonly static global::Cfg.ErrorEOperation OperationDefaultValue = global::Cfg.ErrorEOperation.Logout; + + private global::Cfg.ErrorEOperation operation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorEOperation Operation { + get { if ((_hasBits0 & 1) != 0) { return operation_; } else { return OperationDefaultValue; } } + set { + _hasBits0 |= 1; + operation_ = value; + } + } + /// Gets whether the "operation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOperation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "operation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOperation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleMsgbox); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleMsgbox other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BtnName != other.BtnName) return false; + if (Operation != other.Operation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtnName) hash ^= BtnName.GetHashCode(); + if (HasOperation) hash ^= Operation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (HasOperation) { + output.WriteRawTag(16); + output.WriteEnum((int) Operation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (HasOperation) { + output.WriteRawTag(16); + output.WriteEnum((int) Operation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtnName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BtnName); + } + if (HasOperation) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleMsgbox other) { + if (other == null) { + return; + } + if (other.HasBtnName) { + BtnName = other.BtnName; + } + if (other.HasOperation) { + Operation = other.Operation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + case 16: { + Operation = (global::Cfg.ErrorEOperation) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + case 16: { + Operation = (global::Cfg.ErrorEOperation) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleDlgOk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleDlgOk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk(ErrorErrorStyleDlgOk other) : this() { + btnName_ = other.btnName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk Clone() { + return new ErrorErrorStyleDlgOk(this); + } + + /// Field number for the "btn_name" field. + public const int BtnNameFieldNumber = 1; + private readonly static string BtnNameDefaultValue = ""; + + private string btnName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BtnName { + get { return btnName_ ?? BtnNameDefaultValue; } + set { + btnName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtnName { + get { return btnName_ != null; } + } + /// Clears the value of the "btn_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtnName() { + btnName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleDlgOk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleDlgOk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BtnName != other.BtnName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtnName) hash ^= BtnName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtnName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BtnName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleDlgOk other) { + if (other == null) { + return; + } + if (other.HasBtnName) { + BtnName = other.BtnName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleDlgOkCancel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleDlgOkCancel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel(ErrorErrorStyleDlgOkCancel other) : this() { + btn1Name_ = other.btn1Name_; + btn2Name_ = other.btn2Name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel Clone() { + return new ErrorErrorStyleDlgOkCancel(this); + } + + /// Field number for the "btn1_name" field. + public const int Btn1NameFieldNumber = 1; + private readonly static string Btn1NameDefaultValue = ""; + + private string btn1Name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Btn1Name { + get { return btn1Name_ ?? Btn1NameDefaultValue; } + set { + btn1Name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn1_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtn1Name { + get { return btn1Name_ != null; } + } + /// Clears the value of the "btn1_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtn1Name() { + btn1Name_ = null; + } + + /// Field number for the "btn2_name" field. + public const int Btn2NameFieldNumber = 2; + private readonly static string Btn2NameDefaultValue = ""; + + private string btn2Name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Btn2Name { + get { return btn2Name_ ?? Btn2NameDefaultValue; } + set { + btn2Name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn2_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtn2Name { + get { return btn2Name_ != null; } + } + /// Clears the value of the "btn2_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtn2Name() { + btn2Name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleDlgOkCancel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleDlgOkCancel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Btn1Name != other.Btn1Name) return false; + if (Btn2Name != other.Btn2Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtn1Name) hash ^= Btn1Name.GetHashCode(); + if (HasBtn2Name) hash ^= Btn2Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtn1Name) { + output.WriteRawTag(10); + output.WriteString(Btn1Name); + } + if (HasBtn2Name) { + output.WriteRawTag(18); + output.WriteString(Btn2Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtn1Name) { + output.WriteRawTag(10); + output.WriteString(Btn1Name); + } + if (HasBtn2Name) { + output.WriteRawTag(18); + output.WriteString(Btn2Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtn1Name) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Btn1Name); + } + if (HasBtn2Name) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Btn2Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleDlgOkCancel other) { + if (other == null) { + return; + } + if (other.HasBtn1Name) { + Btn1Name = other.Btn1Name; + } + if (other.HasBtn2Name) { + Btn2Name = other.Btn2Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Btn1Name = input.ReadString(); + break; + } + case 18: { + Btn2Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Btn1Name = input.ReadString(); + break; + } + case 18: { + Btn2Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorCodeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorCodeInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo(ErrorCodeInfo other) : this() { + _hasBits0 = other._hasBits0; + code_ = other.code_; + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo Clone() { + return new ErrorCodeInfo(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private readonly static global::Cfg.ErrorEErrorCode CodeDefaultValue = global::Cfg.ErrorEErrorCode.Ok; + + private global::Cfg.ErrorEErrorCode code_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorEErrorCode Code { + get { if ((_hasBits0 & 1) != 0) { return code_; } else { return CodeDefaultValue; } } + set { + _hasBits0 |= 1; + code_ = value; + } + } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + _hasBits0 &= ~1; + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 2; + private readonly static string KeyDefaultValue = ""; + + private string key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Key { + get { return key_ ?? KeyDefaultValue; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the "key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKey() { + key_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorCodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorCodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Key != other.Key) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCode) hash ^= Code.GetHashCode(); + if (HasKey) hash ^= Key.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCode) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCode) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorCodeInfo other) { + if (other == null) { + return; + } + if (other.HasCode) { + Code = other.Code; + } + if (other.HasKey) { + Key = other.Key; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Code = (global::Cfg.ErrorEErrorCode) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Code = (global::Cfg.ErrorEErrorCode) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem(ItemItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + majorType_ = other.majorType_; + minorType_ = other.minorType_; + maxPileNum_ = other.maxPileNum_; + quality_ = other.quality_; + icon_ = other.icon_; + iconBackgroud_ = other.iconBackgroud_; + iconMask_ = other.iconMask_; + desc_ = other.desc_; + showOrder_ = other.showOrder_; + quantifier_ = other.quantifier_; + showInBag_ = other.showInBag_; + minShowLevel_ = other.minShowLevel_; + batchUsable_ = other.batchUsable_; + progressTimeWhenUse_ = other.progressTimeWhenUse_; + showHintWhenUse_ = other.showHintWhenUse_; + droppable_ = other.droppable_; + price_ = other.price_; + useType_ = other.useType_; + levelUpId_ = other.levelUpId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem Clone() { + return new ItemItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "major_type" field. + public const int MajorTypeFieldNumber = 3; + private readonly static global::Cfg.ItemEMajorType MajorTypeDefaultValue = global::Cfg.ItemEMajorType.Currency; + + private global::Cfg.ItemEMajorType majorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMajorType MajorType { + get { if ((_hasBits0 & 2) != 0) { return majorType_; } else { return MajorTypeDefaultValue; } } + set { + _hasBits0 |= 2; + majorType_ = value; + } + } + /// Gets whether the "major_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMajorType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "major_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMajorType() { + _hasBits0 &= ~2; + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 4; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 4) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 4; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~4; + } + + /// Field number for the "max_pile_num" field. + public const int MaxPileNumFieldNumber = 5; + private readonly static int MaxPileNumDefaultValue = 0; + + private int maxPileNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxPileNum { + get { if ((_hasBits0 & 8) != 0) { return maxPileNum_; } else { return MaxPileNumDefaultValue; } } + set { + _hasBits0 |= 8; + maxPileNum_ = value; + } + } + /// Gets whether the "max_pile_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxPileNum { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "max_pile_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxPileNum() { + _hasBits0 &= ~8; + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 6; + private readonly static global::Cfg.ItemEItemQuality QualityDefaultValue = global::Cfg.ItemEItemQuality.White; + + private global::Cfg.ItemEItemQuality quality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemQuality Quality { + get { if ((_hasBits0 & 16) != 0) { return quality_; } else { return QualityDefaultValue; } } + set { + _hasBits0 |= 16; + quality_ = value; + } + } + /// Gets whether the "quality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuality { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "quality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuality() { + _hasBits0 &= ~16; + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 7; + private readonly static string IconDefaultValue = ""; + + private string icon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_ ?? IconDefaultValue; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIcon { + get { return icon_ != null; } + } + /// Clears the value of the "icon" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIcon() { + icon_ = null; + } + + /// Field number for the "icon_backgroud" field. + public const int IconBackgroudFieldNumber = 8; + private readonly static string IconBackgroudDefaultValue = ""; + + private string iconBackgroud_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBackgroud { + get { return iconBackgroud_ ?? IconBackgroudDefaultValue; } + set { + iconBackgroud_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_backgroud" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconBackgroud { + get { return iconBackgroud_ != null; } + } + /// Clears the value of the "icon_backgroud" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconBackgroud() { + iconBackgroud_ = null; + } + + /// Field number for the "icon_mask" field. + public const int IconMaskFieldNumber = 9; + private readonly static string IconMaskDefaultValue = ""; + + private string iconMask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconMask { + get { return iconMask_ ?? IconMaskDefaultValue; } + set { + iconMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_mask" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconMask { + get { return iconMask_ != null; } + } + /// Clears the value of the "icon_mask" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconMask() { + iconMask_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 10; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "show_order" field. + public const int ShowOrderFieldNumber = 11; + private readonly static int ShowOrderDefaultValue = 0; + + private int showOrder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowOrder { + get { if ((_hasBits0 & 32) != 0) { return showOrder_; } else { return ShowOrderDefaultValue; } } + set { + _hasBits0 |= 32; + showOrder_ = value; + } + } + /// Gets whether the "show_order" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowOrder { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "show_order" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowOrder() { + _hasBits0 &= ~32; + } + + /// Field number for the "quantifier" field. + public const int QuantifierFieldNumber = 12; + private readonly static string QuantifierDefaultValue = ""; + + private string quantifier_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Quantifier { + get { return quantifier_ ?? QuantifierDefaultValue; } + set { + quantifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "quantifier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuantifier { + get { return quantifier_ != null; } + } + /// Clears the value of the "quantifier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuantifier() { + quantifier_ = null; + } + + /// Field number for the "show_in_bag" field. + public const int ShowInBagFieldNumber = 13; + private readonly static bool ShowInBagDefaultValue = false; + + private bool showInBag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShowInBag { + get { if ((_hasBits0 & 64) != 0) { return showInBag_; } else { return ShowInBagDefaultValue; } } + set { + _hasBits0 |= 64; + showInBag_ = value; + } + } + /// Gets whether the "show_in_bag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowInBag { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "show_in_bag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowInBag() { + _hasBits0 &= ~64; + } + + /// Field number for the "min_show_level" field. + public const int MinShowLevelFieldNumber = 14; + private readonly static int MinShowLevelDefaultValue = 0; + + private int minShowLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinShowLevel { + get { if ((_hasBits0 & 128) != 0) { return minShowLevel_; } else { return MinShowLevelDefaultValue; } } + set { + _hasBits0 |= 128; + minShowLevel_ = value; + } + } + /// Gets whether the "min_show_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinShowLevel { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "min_show_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinShowLevel() { + _hasBits0 &= ~128; + } + + /// Field number for the "batch_usable" field. + public const int BatchUsableFieldNumber = 15; + private readonly static bool BatchUsableDefaultValue = false; + + private bool batchUsable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BatchUsable { + get { if ((_hasBits0 & 256) != 0) { return batchUsable_; } else { return BatchUsableDefaultValue; } } + set { + _hasBits0 |= 256; + batchUsable_ = value; + } + } + /// Gets whether the "batch_usable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBatchUsable { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "batch_usable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBatchUsable() { + _hasBits0 &= ~256; + } + + /// Field number for the "progress_time_when_use" field. + public const int ProgressTimeWhenUseFieldNumber = 16; + private readonly static float ProgressTimeWhenUseDefaultValue = 0F; + + private float progressTimeWhenUse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ProgressTimeWhenUse { + get { if ((_hasBits0 & 512) != 0) { return progressTimeWhenUse_; } else { return ProgressTimeWhenUseDefaultValue; } } + set { + _hasBits0 |= 512; + progressTimeWhenUse_ = value; + } + } + /// Gets whether the "progress_time_when_use" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProgressTimeWhenUse { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "progress_time_when_use" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProgressTimeWhenUse() { + _hasBits0 &= ~512; + } + + /// Field number for the "show_hint_when_use" field. + public const int ShowHintWhenUseFieldNumber = 17; + private readonly static bool ShowHintWhenUseDefaultValue = false; + + private bool showHintWhenUse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShowHintWhenUse { + get { if ((_hasBits0 & 1024) != 0) { return showHintWhenUse_; } else { return ShowHintWhenUseDefaultValue; } } + set { + _hasBits0 |= 1024; + showHintWhenUse_ = value; + } + } + /// Gets whether the "show_hint_when_use" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowHintWhenUse { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "show_hint_when_use" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowHintWhenUse() { + _hasBits0 &= ~1024; + } + + /// Field number for the "droppable" field. + public const int DroppableFieldNumber = 18; + private readonly static bool DroppableDefaultValue = false; + + private bool droppable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Droppable { + get { if ((_hasBits0 & 2048) != 0) { return droppable_; } else { return DroppableDefaultValue; } } + set { + _hasBits0 |= 2048; + droppable_ = value; + } + } + /// Gets whether the "droppable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDroppable { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "droppable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDroppable() { + _hasBits0 &= ~2048; + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 19; + private readonly static int PriceDefaultValue = 0; + + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { if ((_hasBits0 & 4096) != 0) { return price_; } else { return PriceDefaultValue; } } + set { + _hasBits0 |= 4096; + price_ = value; + } + } + /// Gets whether the "price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPrice { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPrice() { + _hasBits0 &= ~4096; + } + + /// Field number for the "use_type" field. + public const int UseTypeFieldNumber = 20; + private readonly static global::Cfg.ItemEUseType UseTypeDefaultValue = global::Cfg.ItemEUseType.Manual; + + private global::Cfg.ItemEUseType useType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEUseType UseType { + get { if ((_hasBits0 & 8192) != 0) { return useType_; } else { return UseTypeDefaultValue; } } + set { + _hasBits0 |= 8192; + useType_ = value; + } + } + /// Gets whether the "use_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUseType { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "use_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUseType() { + _hasBits0 &= ~8192; + } + + /// Field number for the "level_up_id" field. + public const int LevelUpIdFieldNumber = 21; + private readonly static int LevelUpIdDefaultValue = 0; + + private int levelUpId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelUpId { + get { if ((_hasBits0 & 16384) != 0) { return levelUpId_; } else { return LevelUpIdDefaultValue; } } + set { + _hasBits0 |= 16384; + levelUpId_ = value; + } + } + /// Gets whether the "level_up_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevelUpId { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "level_up_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevelUpId() { + _hasBits0 &= ~16384; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MajorType != other.MajorType) return false; + if (MinorType != other.MinorType) return false; + if (MaxPileNum != other.MaxPileNum) return false; + if (Quality != other.Quality) return false; + if (Icon != other.Icon) return false; + if (IconBackgroud != other.IconBackgroud) return false; + if (IconMask != other.IconMask) return false; + if (Desc != other.Desc) return false; + if (ShowOrder != other.ShowOrder) return false; + if (Quantifier != other.Quantifier) return false; + if (ShowInBag != other.ShowInBag) return false; + if (MinShowLevel != other.MinShowLevel) return false; + if (BatchUsable != other.BatchUsable) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ProgressTimeWhenUse, other.ProgressTimeWhenUse)) return false; + if (ShowHintWhenUse != other.ShowHintWhenUse) return false; + if (Droppable != other.Droppable) return false; + if (Price != other.Price) return false; + if (UseType != other.UseType) return false; + if (LevelUpId != other.LevelUpId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMajorType) hash ^= MajorType.GetHashCode(); + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasMaxPileNum) hash ^= MaxPileNum.GetHashCode(); + if (HasQuality) hash ^= Quality.GetHashCode(); + if (HasIcon) hash ^= Icon.GetHashCode(); + if (HasIconBackgroud) hash ^= IconBackgroud.GetHashCode(); + if (HasIconMask) hash ^= IconMask.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasShowOrder) hash ^= ShowOrder.GetHashCode(); + if (HasQuantifier) hash ^= Quantifier.GetHashCode(); + if (HasShowInBag) hash ^= ShowInBag.GetHashCode(); + if (HasMinShowLevel) hash ^= MinShowLevel.GetHashCode(); + if (HasBatchUsable) hash ^= BatchUsable.GetHashCode(); + if (HasProgressTimeWhenUse) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ProgressTimeWhenUse); + if (HasShowHintWhenUse) hash ^= ShowHintWhenUse.GetHashCode(); + if (HasDroppable) hash ^= Droppable.GetHashCode(); + if (HasPrice) hash ^= Price.GetHashCode(); + if (HasUseType) hash ^= UseType.GetHashCode(); + if (HasLevelUpId) hash ^= LevelUpId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (HasQuantifier) { + output.WriteRawTag(98); + output.WriteString(Quantifier); + } + if (HasShowInBag) { + output.WriteRawTag(104); + output.WriteBool(ShowInBag); + } + if (HasMinShowLevel) { + output.WriteRawTag(112); + output.WriteInt32(MinShowLevel); + } + if (HasBatchUsable) { + output.WriteRawTag(120); + output.WriteBool(BatchUsable); + } + if (HasProgressTimeWhenUse) { + output.WriteRawTag(133, 1); + output.WriteFloat(ProgressTimeWhenUse); + } + if (HasShowHintWhenUse) { + output.WriteRawTag(136, 1); + output.WriteBool(ShowHintWhenUse); + } + if (HasDroppable) { + output.WriteRawTag(144, 1); + output.WriteBool(Droppable); + } + if (HasPrice) { + output.WriteRawTag(152, 1); + output.WriteInt32(Price); + } + if (HasUseType) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) UseType); + } + if (HasLevelUpId) { + output.WriteRawTag(168, 1); + output.WriteInt32(LevelUpId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (HasQuantifier) { + output.WriteRawTag(98); + output.WriteString(Quantifier); + } + if (HasShowInBag) { + output.WriteRawTag(104); + output.WriteBool(ShowInBag); + } + if (HasMinShowLevel) { + output.WriteRawTag(112); + output.WriteInt32(MinShowLevel); + } + if (HasBatchUsable) { + output.WriteRawTag(120); + output.WriteBool(BatchUsable); + } + if (HasProgressTimeWhenUse) { + output.WriteRawTag(133, 1); + output.WriteFloat(ProgressTimeWhenUse); + } + if (HasShowHintWhenUse) { + output.WriteRawTag(136, 1); + output.WriteBool(ShowHintWhenUse); + } + if (HasDroppable) { + output.WriteRawTag(144, 1); + output.WriteBool(Droppable); + } + if (HasPrice) { + output.WriteRawTag(152, 1); + output.WriteInt32(Price); + } + if (HasUseType) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) UseType); + } + if (HasLevelUpId) { + output.WriteRawTag(168, 1); + output.WriteInt32(LevelUpId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMajorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MajorType); + } + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasMaxPileNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxPileNum); + } + if (HasQuality) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } + if (HasIcon) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (HasIconBackgroud) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBackgroud); + } + if (HasIconMask) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconMask); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasShowOrder) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowOrder); + } + if (HasQuantifier) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Quantifier); + } + if (HasShowInBag) { + size += 1 + 1; + } + if (HasMinShowLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinShowLevel); + } + if (HasBatchUsable) { + size += 1 + 1; + } + if (HasProgressTimeWhenUse) { + size += 2 + 4; + } + if (HasShowHintWhenUse) { + size += 2 + 1; + } + if (HasDroppable) { + size += 2 + 1; + } + if (HasPrice) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (HasUseType) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) UseType); + } + if (HasLevelUpId) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LevelUpId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMajorType) { + MajorType = other.MajorType; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasMaxPileNum) { + MaxPileNum = other.MaxPileNum; + } + if (other.HasQuality) { + Quality = other.Quality; + } + if (other.HasIcon) { + Icon = other.Icon; + } + if (other.HasIconBackgroud) { + IconBackgroud = other.IconBackgroud; + } + if (other.HasIconMask) { + IconMask = other.IconMask; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasShowOrder) { + ShowOrder = other.ShowOrder; + } + if (other.HasQuantifier) { + Quantifier = other.Quantifier; + } + if (other.HasShowInBag) { + ShowInBag = other.ShowInBag; + } + if (other.HasMinShowLevel) { + MinShowLevel = other.MinShowLevel; + } + if (other.HasBatchUsable) { + BatchUsable = other.BatchUsable; + } + if (other.HasProgressTimeWhenUse) { + ProgressTimeWhenUse = other.ProgressTimeWhenUse; + } + if (other.HasShowHintWhenUse) { + ShowHintWhenUse = other.ShowHintWhenUse; + } + if (other.HasDroppable) { + Droppable = other.Droppable; + } + if (other.HasPrice) { + Price = other.Price; + } + if (other.HasUseType) { + UseType = other.UseType; + } + if (other.HasLevelUpId) { + LevelUpId = other.LevelUpId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + case 98: { + Quantifier = input.ReadString(); + break; + } + case 104: { + ShowInBag = input.ReadBool(); + break; + } + case 112: { + MinShowLevel = input.ReadInt32(); + break; + } + case 120: { + BatchUsable = input.ReadBool(); + break; + } + case 133: { + ProgressTimeWhenUse = input.ReadFloat(); + break; + } + case 136: { + ShowHintWhenUse = input.ReadBool(); + break; + } + case 144: { + Droppable = input.ReadBool(); + break; + } + case 152: { + Price = input.ReadInt32(); + break; + } + case 160: { + UseType = (global::Cfg.ItemEUseType) input.ReadEnum(); + break; + } + case 168: { + LevelUpId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + case 98: { + Quantifier = input.ReadString(); + break; + } + case 104: { + ShowInBag = input.ReadBool(); + break; + } + case 112: { + MinShowLevel = input.ReadInt32(); + break; + } + case 120: { + BatchUsable = input.ReadBool(); + break; + } + case 133: { + ProgressTimeWhenUse = input.ReadFloat(); + break; + } + case 136: { + ShowHintWhenUse = input.ReadBool(); + break; + } + case 144: { + Droppable = input.ReadBool(); + break; + } + case 152: { + Price = input.ReadInt32(); + break; + } + case 160: { + UseType = (global::Cfg.ItemEUseType) input.ReadEnum(); + break; + } + case 168: { + LevelUpId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItemFunction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItemFunction()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[82]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction(ItemItemFunction other) : this() { + _hasBits0 = other._hasBits0; + minorType_ = other.minorType_; + funcType_ = other.funcType_; + method_ = other.method_; + closeBagUi_ = other.closeBagUi_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction Clone() { + return new ItemItemFunction(this); + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 1; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 1) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 1; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~1; + } + + /// Field number for the "func_type" field. + public const int FuncTypeFieldNumber = 2; + private readonly static global::Cfg.ItemEItemFunctionType FuncTypeDefaultValue = global::Cfg.ItemEItemFunctionType.ReplaceHandheld; + + private global::Cfg.ItemEItemFunctionType funcType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemFunctionType FuncType { + get { if ((_hasBits0 & 2) != 0) { return funcType_; } else { return FuncTypeDefaultValue; } } + set { + _hasBits0 |= 2; + funcType_ = value; + } + } + /// Gets whether the "func_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFuncType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "func_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFuncType() { + _hasBits0 &= ~2; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 3; + private readonly static string MethodDefaultValue = ""; + + private string method_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_ ?? MethodDefaultValue; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "method" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMethod { + get { return method_ != null; } + } + /// Clears the value of the "method" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMethod() { + method_ = null; + } + + /// Field number for the "close_bag_ui" field. + public const int CloseBagUiFieldNumber = 4; + private readonly static bool CloseBagUiDefaultValue = false; + + private bool closeBagUi_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CloseBagUi { + get { if ((_hasBits0 & 4) != 0) { return closeBagUi_; } else { return CloseBagUiDefaultValue; } } + set { + _hasBits0 |= 4; + closeBagUi_ = value; + } + } + /// Gets whether the "close_bag_ui" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCloseBagUi { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "close_bag_ui" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCloseBagUi() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItemFunction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItemFunction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinorType != other.MinorType) return false; + if (FuncType != other.FuncType) return false; + if (Method != other.Method) return false; + if (CloseBagUi != other.CloseBagUi) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasFuncType) hash ^= FuncType.GetHashCode(); + if (HasMethod) hash ^= Method.GetHashCode(); + if (HasCloseBagUi) hash ^= CloseBagUi.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMinorType) { + output.WriteRawTag(8); + output.WriteEnum((int) MinorType); + } + if (HasFuncType) { + output.WriteRawTag(16); + output.WriteEnum((int) FuncType); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasCloseBagUi) { + output.WriteRawTag(32); + output.WriteBool(CloseBagUi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMinorType) { + output.WriteRawTag(8); + output.WriteEnum((int) MinorType); + } + if (HasFuncType) { + output.WriteRawTag(16); + output.WriteEnum((int) FuncType); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasCloseBagUi) { + output.WriteRawTag(32); + output.WriteBool(CloseBagUi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasFuncType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FuncType); + } + if (HasMethod) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + if (HasCloseBagUi) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItemFunction other) { + if (other == null) { + return; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasFuncType) { + FuncType = other.FuncType; + } + if (other.HasMethod) { + Method = other.Method; + } + if (other.HasCloseBagUi) { + CloseBagUi = other.CloseBagUi; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 16: { + FuncType = (global::Cfg.ItemEItemFunctionType) input.ReadEnum(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 32: { + CloseBagUi = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 16: { + FuncType = (global::Cfg.ItemEItemFunctionType) input.ReadEnum(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 32: { + CloseBagUi = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItemExtra : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItemExtra()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[83]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra(ItemItemExtra other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.TreasureBox: + TreasureBox = other.TreasureBox.Clone(); + break; + case ValueOneofCase.InteractionItem: + InteractionItem = other.InteractionItem.Clone(); + break; + case ValueOneofCase.Clothes: + Clothes = other.Clothes.Clone(); + break; + case ValueOneofCase.DesignDrawing: + DesignDrawing = other.DesignDrawing.Clone(); + break; + case ValueOneofCase.Dymmy: + Dymmy = other.Dymmy.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra Clone() { + return new ItemItemExtra(this); + } + + /// Field number for the "TreasureBox" field. + public const int TreasureBoxFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemTreasureBox TreasureBox { + get { return valueCase_ == ValueOneofCase.TreasureBox ? (global::Cfg.ItemTreasureBox) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TreasureBox; + } + } + + /// Field number for the "InteractionItem" field. + public const int InteractionItemFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemInteractionItem InteractionItem { + get { return valueCase_ == ValueOneofCase.InteractionItem ? (global::Cfg.ItemInteractionItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.InteractionItem; + } + } + + /// Field number for the "Clothes" field. + public const int ClothesFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemClothes Clothes { + get { return valueCase_ == ValueOneofCase.Clothes ? (global::Cfg.ItemClothes) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Clothes; + } + } + + /// Field number for the "DesignDrawing" field. + public const int DesignDrawingFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemDesignDrawing DesignDrawing { + get { return valueCase_ == ValueOneofCase.DesignDrawing ? (global::Cfg.ItemDesignDrawing) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DesignDrawing; + } + } + + /// Field number for the "Dymmy" field. + public const int DymmyFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemDymmy Dymmy { + get { return valueCase_ == ValueOneofCase.Dymmy ? (global::Cfg.ItemDymmy) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Dymmy; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + TreasureBox = 1, + InteractionItem = 2, + Clothes = 3, + DesignDrawing = 4, + Dymmy = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItemExtra); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItemExtra other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TreasureBox, other.TreasureBox)) return false; + if (!object.Equals(InteractionItem, other.InteractionItem)) return false; + if (!object.Equals(Clothes, other.Clothes)) return false; + if (!object.Equals(DesignDrawing, other.DesignDrawing)) return false; + if (!object.Equals(Dymmy, other.Dymmy)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.TreasureBox) hash ^= TreasureBox.GetHashCode(); + if (valueCase_ == ValueOneofCase.InteractionItem) hash ^= InteractionItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.Clothes) hash ^= Clothes.GetHashCode(); + if (valueCase_ == ValueOneofCase.DesignDrawing) hash ^= DesignDrawing.GetHashCode(); + if (valueCase_ == ValueOneofCase.Dymmy) hash ^= Dymmy.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.TreasureBox) { + output.WriteRawTag(10); + output.WriteMessage(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + output.WriteRawTag(18); + output.WriteMessage(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + output.WriteRawTag(26); + output.WriteMessage(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + output.WriteRawTag(34); + output.WriteMessage(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + output.WriteRawTag(42); + output.WriteMessage(Dymmy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.TreasureBox) { + output.WriteRawTag(10); + output.WriteMessage(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + output.WriteRawTag(18); + output.WriteMessage(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + output.WriteRawTag(26); + output.WriteMessage(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + output.WriteRawTag(34); + output.WriteMessage(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + output.WriteRawTag(42); + output.WriteMessage(Dymmy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.TreasureBox) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dymmy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItemExtra other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.TreasureBox: + if (TreasureBox == null) { + TreasureBox = new global::Cfg.ItemTreasureBox(); + } + TreasureBox.MergeFrom(other.TreasureBox); + break; + case ValueOneofCase.InteractionItem: + if (InteractionItem == null) { + InteractionItem = new global::Cfg.ItemInteractionItem(); + } + InteractionItem.MergeFrom(other.InteractionItem); + break; + case ValueOneofCase.Clothes: + if (Clothes == null) { + Clothes = new global::Cfg.ItemClothes(); + } + Clothes.MergeFrom(other.Clothes); + break; + case ValueOneofCase.DesignDrawing: + if (DesignDrawing == null) { + DesignDrawing = new global::Cfg.ItemDesignDrawing(); + } + DesignDrawing.MergeFrom(other.DesignDrawing); + break; + case ValueOneofCase.Dymmy: + if (Dymmy == null) { + Dymmy = new global::Cfg.ItemDymmy(); + } + Dymmy.MergeFrom(other.Dymmy); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ItemTreasureBox subBuilder = new global::Cfg.ItemTreasureBox(); + if (valueCase_ == ValueOneofCase.TreasureBox) { + subBuilder.MergeFrom(TreasureBox); + } + input.ReadMessage(subBuilder); + TreasureBox = subBuilder; + break; + } + case 18: { + global::Cfg.ItemInteractionItem subBuilder = new global::Cfg.ItemInteractionItem(); + if (valueCase_ == ValueOneofCase.InteractionItem) { + subBuilder.MergeFrom(InteractionItem); + } + input.ReadMessage(subBuilder); + InteractionItem = subBuilder; + break; + } + case 26: { + global::Cfg.ItemClothes subBuilder = new global::Cfg.ItemClothes(); + if (valueCase_ == ValueOneofCase.Clothes) { + subBuilder.MergeFrom(Clothes); + } + input.ReadMessage(subBuilder); + Clothes = subBuilder; + break; + } + case 34: { + global::Cfg.ItemDesignDrawing subBuilder = new global::Cfg.ItemDesignDrawing(); + if (valueCase_ == ValueOneofCase.DesignDrawing) { + subBuilder.MergeFrom(DesignDrawing); + } + input.ReadMessage(subBuilder); + DesignDrawing = subBuilder; + break; + } + case 42: { + global::Cfg.ItemDymmy subBuilder = new global::Cfg.ItemDymmy(); + if (valueCase_ == ValueOneofCase.Dymmy) { + subBuilder.MergeFrom(Dymmy); + } + input.ReadMessage(subBuilder); + Dymmy = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ItemTreasureBox subBuilder = new global::Cfg.ItemTreasureBox(); + if (valueCase_ == ValueOneofCase.TreasureBox) { + subBuilder.MergeFrom(TreasureBox); + } + input.ReadMessage(subBuilder); + TreasureBox = subBuilder; + break; + } + case 18: { + global::Cfg.ItemInteractionItem subBuilder = new global::Cfg.ItemInteractionItem(); + if (valueCase_ == ValueOneofCase.InteractionItem) { + subBuilder.MergeFrom(InteractionItem); + } + input.ReadMessage(subBuilder); + InteractionItem = subBuilder; + break; + } + case 26: { + global::Cfg.ItemClothes subBuilder = new global::Cfg.ItemClothes(); + if (valueCase_ == ValueOneofCase.Clothes) { + subBuilder.MergeFrom(Clothes); + } + input.ReadMessage(subBuilder); + Clothes = subBuilder; + break; + } + case 34: { + global::Cfg.ItemDesignDrawing subBuilder = new global::Cfg.ItemDesignDrawing(); + if (valueCase_ == ValueOneofCase.DesignDrawing) { + subBuilder.MergeFrom(DesignDrawing); + } + input.ReadMessage(subBuilder); + DesignDrawing = subBuilder; + break; + } + case 42: { + global::Cfg.ItemDymmy subBuilder = new global::Cfg.ItemDymmy(); + if (valueCase_ == ValueOneofCase.Dymmy) { + subBuilder.MergeFrom(Dymmy); + } + input.ReadMessage(subBuilder); + Dymmy = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTreasureBox : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTreasureBox()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[84]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox(ItemTreasureBox other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + keyItemId_ = other.keyItemId_; + openLevel_ = other.openLevel_ != null ? other.openLevel_.Clone() : null; + useOnObtain_ = other.useOnObtain_; + dropIds_ = other.dropIds_.Clone(); + chooseList_ = other.chooseList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox Clone() { + return new ItemTreasureBox(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "key_item_id" field. + public const int KeyItemIdFieldNumber = 2; + private readonly static int KeyItemIdDefaultValue = 0; + + private int keyItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyItemId { + get { if ((_hasBits0 & 2) != 0) { return keyItemId_; } else { return KeyItemIdDefaultValue; } } + set { + _hasBits0 |= 2; + keyItemId_ = value; + } + } + /// Gets whether the "key_item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyItemId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "key_item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyItemId() { + _hasBits0 &= ~2; + } + + /// Field number for the "open_level" field. + public const int OpenLevelFieldNumber = 3; + private global::Cfg.ConditionMinLevel openLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel OpenLevel { + get { return openLevel_; } + set { + openLevel_ = value; + } + } + + /// Field number for the "use_on_obtain" field. + public const int UseOnObtainFieldNumber = 4; + private readonly static bool UseOnObtainDefaultValue = false; + + private bool useOnObtain_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UseOnObtain { + get { if ((_hasBits0 & 4) != 0) { return useOnObtain_; } else { return UseOnObtainDefaultValue; } } + set { + _hasBits0 |= 4; + useOnObtain_ = value; + } + } + /// Gets whether the "use_on_obtain" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUseOnObtain { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "use_on_obtain" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUseOnObtain() { + _hasBits0 &= ~4; + } + + /// Field number for the "drop_ids" field. + public const int DropIdsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_dropIds_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField dropIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DropIds { + get { return dropIds_; } + } + + /// Field number for the "choose_list" field. + public const int ChooseListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_chooseList_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.ItemChooseOneBonus.Parser); + private readonly pbc::RepeatedField chooseList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChooseList { + get { return chooseList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTreasureBox); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTreasureBox other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (KeyItemId != other.KeyItemId) return false; + if (!object.Equals(OpenLevel, other.OpenLevel)) return false; + if (UseOnObtain != other.UseOnObtain) return false; + if(!dropIds_.Equals(other.dropIds_)) return false; + if(!chooseList_.Equals(other.chooseList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasKeyItemId) hash ^= KeyItemId.GetHashCode(); + if (openLevel_ != null) hash ^= OpenLevel.GetHashCode(); + if (HasUseOnObtain) hash ^= UseOnObtain.GetHashCode(); + hash ^= dropIds_.GetHashCode(); + hash ^= chooseList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasKeyItemId) { + output.WriteRawTag(16); + output.WriteInt32(KeyItemId); + } + if (openLevel_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OpenLevel); + } + if (HasUseOnObtain) { + output.WriteRawTag(32); + output.WriteBool(UseOnObtain); + } + dropIds_.WriteTo(output, _repeated_dropIds_codec); + chooseList_.WriteTo(output, _repeated_chooseList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasKeyItemId) { + output.WriteRawTag(16); + output.WriteInt32(KeyItemId); + } + if (openLevel_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OpenLevel); + } + if (HasUseOnObtain) { + output.WriteRawTag(32); + output.WriteBool(UseOnObtain); + } + dropIds_.WriteTo(ref output, _repeated_dropIds_codec); + chooseList_.WriteTo(ref output, _repeated_chooseList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasKeyItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyItemId); + } + if (openLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OpenLevel); + } + if (HasUseOnObtain) { + size += 1 + 1; + } + size += dropIds_.CalculateSize(_repeated_dropIds_codec); + size += chooseList_.CalculateSize(_repeated_chooseList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTreasureBox other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasKeyItemId) { + KeyItemId = other.KeyItemId; + } + if (other.openLevel_ != null) { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + OpenLevel.MergeFrom(other.OpenLevel); + } + if (other.HasUseOnObtain) { + UseOnObtain = other.UseOnObtain; + } + dropIds_.Add(other.dropIds_); + chooseList_.Add(other.chooseList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + KeyItemId = input.ReadInt32(); + break; + } + case 26: { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + input.ReadMessage(OpenLevel); + break; + } + case 32: { + UseOnObtain = input.ReadBool(); + break; + } + case 42: + case 40: { + dropIds_.AddEntriesFrom(input, _repeated_dropIds_codec); + break; + } + case 50: { + chooseList_.AddEntriesFrom(input, _repeated_chooseList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + KeyItemId = input.ReadInt32(); + break; + } + case 26: { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + input.ReadMessage(OpenLevel); + break; + } + case 32: { + UseOnObtain = input.ReadBool(); + break; + } + case 42: + case 40: { + dropIds_.AddEntriesFrom(ref input, _repeated_dropIds_codec); + break; + } + case 50: { + chooseList_.AddEntriesFrom(ref input, _repeated_chooseList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[85]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition(ConditionCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.TimeRange: + TimeRange = other.TimeRange.Clone(); + break; + case ValueOneofCase.MultiRoleCondition: + MultiRoleCondition = other.MultiRoleCondition.Clone(); + break; + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + case ValueOneofCase.ContainsItem: + ContainsItem = other.ContainsItem.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition Clone() { + return new ConditionCondition(this); + } + + /// Field number for the "TimeRange" field. + public const int TimeRangeFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange TimeRange { + get { return valueCase_ == ValueOneofCase.TimeRange ? (global::Cfg.ConditionTimeRange) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TimeRange; + } + } + + /// Field number for the "MultiRoleCondition" field. + public const int MultiRoleConditionFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMultiRoleCondition MultiRoleCondition { + get { return valueCase_ == ValueOneofCase.MultiRoleCondition ? (global::Cfg.ConditionMultiRoleCondition) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiRoleCondition; + } + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + /// Field number for the "ContainsItem" field. + public const int ContainsItemFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionContainsItem ContainsItem { + get { return valueCase_ == ValueOneofCase.ContainsItem ? (global::Cfg.ConditionContainsItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ContainsItem; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + TimeRange = 1, + MultiRoleCondition = 2, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + ContainsItem = 8, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TimeRange, other.TimeRange)) return false; + if (!object.Equals(MultiRoleCondition, other.MultiRoleCondition)) return false; + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (!object.Equals(ContainsItem, other.ContainsItem)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.TimeRange) hash ^= TimeRange.GetHashCode(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) hash ^= MultiRoleCondition.GetHashCode(); + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.ContainsItem) hash ^= ContainsItem.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.TimeRange) { + output.WriteRawTag(10); + output.WriteMessage(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.TimeRange) { + output.WriteRawTag(10); + output.WriteMessage(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.TimeRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainsItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.TimeRange: + if (TimeRange == null) { + TimeRange = new global::Cfg.ConditionTimeRange(); + } + TimeRange.MergeFrom(other.TimeRange); + break; + case ValueOneofCase.MultiRoleCondition: + if (MultiRoleCondition == null) { + MultiRoleCondition = new global::Cfg.ConditionMultiRoleCondition(); + } + MultiRoleCondition.MergeFrom(other.MultiRoleCondition); + break; + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + case ValueOneofCase.ContainsItem: + if (ContainsItem == null) { + ContainsItem = new global::Cfg.ConditionContainsItem(); + } + ContainsItem.MergeFrom(other.ContainsItem); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ConditionTimeRange subBuilder = new global::Cfg.ConditionTimeRange(); + if (valueCase_ == ValueOneofCase.TimeRange) { + subBuilder.MergeFrom(TimeRange); + } + input.ReadMessage(subBuilder); + TimeRange = subBuilder; + break; + } + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ConditionTimeRange subBuilder = new global::Cfg.ConditionTimeRange(); + if (valueCase_ == ValueOneofCase.TimeRange) { + subBuilder.MergeFrom(TimeRange); + } + input.ReadMessage(subBuilder); + TimeRange = subBuilder; + break; + } + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionTimeRange()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[86]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange(ConditionTimeRange other) : this() { + dateTimeRange_ = other.dateTimeRange_ != null ? other.dateTimeRange_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange Clone() { + return new ConditionTimeRange(this); + } + + /// Field number for the "date_time_range" field. + public const int DateTimeRangeFieldNumber = 1; + private global::Cfg.CommonDateTimeRange dateTimeRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CommonDateTimeRange DateTimeRange { + get { return dateTimeRange_; } + set { + dateTimeRange_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DateTimeRange, other.DateTimeRange)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (dateTimeRange_ != null) hash ^= DateTimeRange.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (dateTimeRange_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DateTimeRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (dateTimeRange_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DateTimeRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (dateTimeRange_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DateTimeRange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionTimeRange other) { + if (other == null) { + return; + } + if (other.dateTimeRange_ != null) { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + DateTimeRange.MergeFrom(other.DateTimeRange); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + input.ReadMessage(DateTimeRange); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + input.ReadMessage(DateTimeRange); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[87]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange(CommonDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange Clone() { + return new CommonDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static int StartTimeDefaultValue = 0; + + private int startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static int EndTimeDefaultValue = 0; + + private int endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[88]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition(ConditionRoleCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.MultiRoleCondition: + MultiRoleCondition = other.MultiRoleCondition.Clone(); + break; + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + case ValueOneofCase.ContainsItem: + ContainsItem = other.ContainsItem.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition Clone() { + return new ConditionRoleCondition(this); + } + + /// Field number for the "MultiRoleCondition" field. + public const int MultiRoleConditionFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMultiRoleCondition MultiRoleCondition { + get { return valueCase_ == ValueOneofCase.MultiRoleCondition ? (global::Cfg.ConditionMultiRoleCondition) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiRoleCondition; + } + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + /// Field number for the "ContainsItem" field. + public const int ContainsItemFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionContainsItem ContainsItem { + get { return valueCase_ == ValueOneofCase.ContainsItem ? (global::Cfg.ConditionContainsItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ContainsItem; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + MultiRoleCondition = 2, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + ContainsItem = 8, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MultiRoleCondition, other.MultiRoleCondition)) return false; + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (!object.Equals(ContainsItem, other.ContainsItem)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.MultiRoleCondition) hash ^= MultiRoleCondition.GetHashCode(); + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.ContainsItem) hash ^= ContainsItem.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainsItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionRoleCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.MultiRoleCondition: + if (MultiRoleCondition == null) { + MultiRoleCondition = new global::Cfg.ConditionMultiRoleCondition(); + } + MultiRoleCondition.MergeFrom(other.MultiRoleCondition); + break; + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + case ValueOneofCase.ContainsItem: + if (ContainsItem == null) { + ContainsItem = new global::Cfg.ConditionContainsItem(); + } + ContainsItem.MergeFrom(other.ContainsItem); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMultiRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMultiRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[89]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition(ConditionMultiRoleCondition other) : this() { + conditions_ = other.conditions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition Clone() { + return new ConditionMultiRoleCondition(this); + } + + /// Field number for the "conditions" field. + public const int ConditionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_conditions_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ConditionRoleCondition.Parser); + private readonly pbc::RepeatedField conditions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Conditions { + get { return conditions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMultiRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMultiRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!conditions_.Equals(other.conditions_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= conditions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + conditions_.WriteTo(output, _repeated_conditions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + conditions_.WriteTo(ref output, _repeated_conditions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += conditions_.CalculateSize(_repeated_conditions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMultiRoleCondition other) { + if (other == null) { + return; + } + conditions_.Add(other.conditions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + conditions_.AddEntriesFrom(input, _repeated_conditions_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + conditions_.AddEntriesFrom(ref input, _repeated_conditions_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionBoolRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionBoolRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[90]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition(ConditionBoolRoleCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition Clone() { + return new ConditionBoolRoleCondition(this); + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionBoolRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionBoolRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionBoolRoleCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionGenderLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionGenderLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[91]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit(ConditionGenderLimit other) : this() { + _hasBits0 = other._hasBits0; + gender_ = other.gender_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit Clone() { + return new ConditionGenderLimit(this); + } + + /// Field number for the "gender" field. + public const int GenderFieldNumber = 1; + private readonly static global::Cfg.RoleEGenderType GenderDefaultValue = global::Cfg.RoleEGenderType.Male; + + private global::Cfg.RoleEGenderType gender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.RoleEGenderType Gender { + get { if ((_hasBits0 & 1) != 0) { return gender_; } else { return GenderDefaultValue; } } + set { + _hasBits0 |= 1; + gender_ = value; + } + } + /// Gets whether the "gender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasGender { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "gender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearGender() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionGenderLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionGenderLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Gender != other.Gender) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasGender) hash ^= Gender.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasGender) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasGender) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasGender) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Gender); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionGenderLimit other) { + if (other == null) { + return; + } + if (other.HasGender) { + Gender = other.Gender; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Gender = (global::Cfg.RoleEGenderType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Gender = (global::Cfg.RoleEGenderType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMinLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMinLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[92]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel(ConditionMinLevel other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel Clone() { + return new ConditionMinLevel(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMinLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMinLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMinLevel other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMaxLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMaxLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[93]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel(ConditionMaxLevel other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel Clone() { + return new ConditionMaxLevel(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMaxLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMaxLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMaxLevel other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMinMaxLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMinMaxLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[94]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel(ConditionMinMaxLevel other) : this() { + _hasBits0 = other._hasBits0; + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel Clone() { + return new ConditionMinMaxLevel(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private readonly static int MinDefaultValue = 0; + + private int min_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Min { + get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } } + set { + _hasBits0 |= 1; + min_ = value; + } + } + /// Gets whether the "min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private readonly static int MaxDefaultValue = 0; + + private int max_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Max { + get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } } + set { + _hasBits0 |= 2; + max_ = value; + } + } + /// Gets whether the "max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMinMaxLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMinMaxLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Min != other.Min) return false; + if (Max != other.Max) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMin) hash ^= Min.GetHashCode(); + if (HasMax) hash ^= Max.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt32(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt32(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt32(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt32(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMin) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Min); + } + if (HasMax) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Max); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMinMaxLevel other) { + if (other == null) { + return; + } + if (other.HasMin) { + Min = other.Min; + } + if (other.HasMax) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Min = input.ReadInt32(); + break; + } + case 16: { + Max = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Min = input.ReadInt32(); + break; + } + case 16: { + Max = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionClothesPropertyScoreGreaterThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionClothesPropertyScoreGreaterThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[95]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan(ConditionClothesPropertyScoreGreaterThan other) : this() { + _hasBits0 = other._hasBits0; + prop_ = other.prop_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan Clone() { + return new ConditionClothesPropertyScoreGreaterThan(this); + } + + /// Field number for the "prop" field. + public const int PropFieldNumber = 1; + private readonly static global::Cfg.ItemEClothesPropertyType PropDefaultValue = global::Cfg.ItemEClothesPropertyType.JianYue; + + private global::Cfg.ItemEClothesPropertyType prop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEClothesPropertyType Prop { + get { if ((_hasBits0 & 1) != 0) { return prop_; } else { return PropDefaultValue; } } + set { + _hasBits0 |= 1; + prop_ = value; + } + } + /// Gets whether the "prop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "prop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProp() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionClothesPropertyScoreGreaterThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionClothesPropertyScoreGreaterThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Prop != other.Prop) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasProp) hash ^= Prop.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasProp) { + output.WriteRawTag(8); + output.WriteEnum((int) Prop); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasProp) { + output.WriteRawTag(8); + output.WriteEnum((int) Prop); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasProp) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Prop); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionClothesPropertyScoreGreaterThan other) { + if (other == null) { + return; + } + if (other.HasProp) { + Prop = other.Prop; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Prop = (global::Cfg.ItemEClothesPropertyType) input.ReadEnum(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Prop = (global::Cfg.ItemEClothesPropertyType) input.ReadEnum(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionContainsItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionContainsItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[96]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem(ConditionContainsItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + reverse_ = other.reverse_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem Clone() { + return new ConditionContainsItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "reverse" field. + public const int ReverseFieldNumber = 3; + private readonly static bool ReverseDefaultValue = false; + + private bool reverse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Reverse { + get { if ((_hasBits0 & 4) != 0) { return reverse_; } else { return ReverseDefaultValue; } } + set { + _hasBits0 |= 4; + reverse_ = value; + } + } + /// Gets whether the "reverse" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverse { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "reverse" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverse() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionContainsItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionContainsItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (Reverse != other.Reverse) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasReverse) hash ^= Reverse.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasReverse) { + output.WriteRawTag(24); + output.WriteBool(Reverse); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasReverse) { + output.WriteRawTag(24); + output.WriteBool(Reverse); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasReverse) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionContainsItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasReverse) { + Reverse = other.Reverse; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Reverse = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Reverse = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemChooseOneBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemChooseOneBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[97]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus(ItemChooseOneBonus other) : this() { + _hasBits0 = other._hasBits0; + dropId_ = other.dropId_; + isUnique_ = other.isUnique_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus Clone() { + return new ItemChooseOneBonus(this); + } + + /// Field number for the "drop_id" field. + public const int DropIdFieldNumber = 1; + private readonly static int DropIdDefaultValue = 0; + + private int dropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropId { + get { if ((_hasBits0 & 1) != 0) { return dropId_; } else { return DropIdDefaultValue; } } + set { + _hasBits0 |= 1; + dropId_ = value; + } + } + /// Gets whether the "drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDropId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDropId() { + _hasBits0 &= ~1; + } + + /// Field number for the "is_unique" field. + public const int IsUniqueFieldNumber = 2; + private readonly static bool IsUniqueDefaultValue = false; + + private bool isUnique_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnique { + get { if ((_hasBits0 & 2) != 0) { return isUnique_; } else { return IsUniqueDefaultValue; } } + set { + _hasBits0 |= 2; + isUnique_ = value; + } + } + /// Gets whether the "is_unique" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsUnique { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_unique" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsUnique() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemChooseOneBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemChooseOneBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DropId != other.DropId) return false; + if (IsUnique != other.IsUnique) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasDropId) hash ^= DropId.GetHashCode(); + if (HasIsUnique) hash ^= IsUnique.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasDropId) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (HasIsUnique) { + output.WriteRawTag(16); + output.WriteBool(IsUnique); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasDropId) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (HasIsUnique) { + output.WriteRawTag(16); + output.WriteBool(IsUnique); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropId); + } + if (HasIsUnique) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemChooseOneBonus other) { + if (other == null) { + return; + } + if (other.HasDropId) { + DropId = other.DropId; + } + if (other.HasIsUnique) { + IsUnique = other.IsUnique; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + IsUnique = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + IsUnique = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemInteractionItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemInteractionItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[98]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem(ItemInteractionItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + attackNum_ = other.attackNum_; + holdingStaticMesh_ = other.holdingStaticMesh_; + holdingStaticMeshMat_ = other.holdingStaticMeshMat_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem Clone() { + return new ItemInteractionItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attack_num" field. + public const int AttackNumFieldNumber = 2; + private readonly static int AttackNumDefaultValue = 0; + + private int attackNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttackNum { + get { if ((_hasBits0 & 2) != 0) { return attackNum_; } else { return AttackNumDefaultValue; } } + set { + _hasBits0 |= 2; + attackNum_ = value; + } + } + /// Gets whether the "attack_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttackNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attack_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttackNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "holding_static_mesh" field. + public const int HoldingStaticMeshFieldNumber = 3; + private readonly static string HoldingStaticMeshDefaultValue = ""; + + private string holdingStaticMesh_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HoldingStaticMesh { + get { return holdingStaticMesh_ ?? HoldingStaticMeshDefaultValue; } + set { + holdingStaticMesh_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "holding_static_mesh" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHoldingStaticMesh { + get { return holdingStaticMesh_ != null; } + } + /// Clears the value of the "holding_static_mesh" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHoldingStaticMesh() { + holdingStaticMesh_ = null; + } + + /// Field number for the "holding_static_mesh_mat" field. + public const int HoldingStaticMeshMatFieldNumber = 4; + private readonly static string HoldingStaticMeshMatDefaultValue = ""; + + private string holdingStaticMeshMat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HoldingStaticMeshMat { + get { return holdingStaticMeshMat_ ?? HoldingStaticMeshMatDefaultValue; } + set { + holdingStaticMeshMat_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "holding_static_mesh_mat" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHoldingStaticMeshMat { + get { return holdingStaticMeshMat_ != null; } + } + /// Clears the value of the "holding_static_mesh_mat" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHoldingStaticMeshMat() { + holdingStaticMeshMat_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemInteractionItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemInteractionItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AttackNum != other.AttackNum) return false; + if (HoldingStaticMesh != other.HoldingStaticMesh) return false; + if (HoldingStaticMeshMat != other.HoldingStaticMeshMat) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAttackNum) hash ^= AttackNum.GetHashCode(); + if (HasHoldingStaticMesh) hash ^= HoldingStaticMesh.GetHashCode(); + if (HasHoldingStaticMeshMat) hash ^= HoldingStaticMeshMat.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttackNum) { + output.WriteRawTag(16); + output.WriteInt32(AttackNum); + } + if (HasHoldingStaticMesh) { + output.WriteRawTag(26); + output.WriteString(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + output.WriteRawTag(34); + output.WriteString(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttackNum) { + output.WriteRawTag(16); + output.WriteInt32(AttackNum); + } + if (HasHoldingStaticMesh) { + output.WriteRawTag(26); + output.WriteString(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + output.WriteRawTag(34); + output.WriteString(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAttackNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttackNum); + } + if (HasHoldingStaticMesh) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemInteractionItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAttackNum) { + AttackNum = other.AttackNum; + } + if (other.HasHoldingStaticMesh) { + HoldingStaticMesh = other.HoldingStaticMesh; + } + if (other.HasHoldingStaticMeshMat) { + HoldingStaticMeshMat = other.HoldingStaticMeshMat; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttackNum = input.ReadInt32(); + break; + } + case 26: { + HoldingStaticMesh = input.ReadString(); + break; + } + case 34: { + HoldingStaticMeshMat = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttackNum = input.ReadInt32(); + break; + } + case 26: { + HoldingStaticMesh = input.ReadString(); + break; + } + case 34: { + HoldingStaticMeshMat = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemClothes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemClothes()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[99]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes(ItemClothes other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + attack_ = other.attack_; + hp_ = other.hp_; + energyLimit_ = other.energyLimit_; + energyResume_ = other.energyResume_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes Clone() { + return new ItemClothes(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attack" field. + public const int AttackFieldNumber = 2; + private readonly static int AttackDefaultValue = 0; + + private int attack_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attack { + get { if ((_hasBits0 & 2) != 0) { return attack_; } else { return AttackDefaultValue; } } + set { + _hasBits0 |= 2; + attack_ = value; + } + } + /// Gets whether the "attack" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttack { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attack" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttack() { + _hasBits0 &= ~2; + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private readonly static long HpDefaultValue = 0L; + + private long hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Hp { + get { if ((_hasBits0 & 4) != 0) { return hp_; } else { return HpDefaultValue; } } + set { + _hasBits0 |= 4; + hp_ = value; + } + } + /// Gets whether the "hp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHp { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "hp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHp() { + _hasBits0 &= ~4; + } + + /// Field number for the "energy_limit" field. + public const int EnergyLimitFieldNumber = 4; + private readonly static int EnergyLimitDefaultValue = 0; + + private int energyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyLimit { + get { if ((_hasBits0 & 8) != 0) { return energyLimit_; } else { return EnergyLimitDefaultValue; } } + set { + _hasBits0 |= 8; + energyLimit_ = value; + } + } + /// Gets whether the "energy_limit" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLimit { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "energy_limit" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLimit() { + _hasBits0 &= ~8; + } + + /// Field number for the "energy_resume" field. + public const int EnergyResumeFieldNumber = 5; + private readonly static int EnergyResumeDefaultValue = 0; + + private int energyResume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyResume { + get { if ((_hasBits0 & 16) != 0) { return energyResume_; } else { return EnergyResumeDefaultValue; } } + set { + _hasBits0 |= 16; + energyResume_ = value; + } + } + /// Gets whether the "energy_resume" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyResume { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "energy_resume" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyResume() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemClothes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemClothes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Attack != other.Attack) return false; + if (Hp != other.Hp) return false; + if (EnergyLimit != other.EnergyLimit) return false; + if (EnergyResume != other.EnergyResume) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAttack) hash ^= Attack.GetHashCode(); + if (HasHp) hash ^= Hp.GetHashCode(); + if (HasEnergyLimit) hash ^= EnergyLimit.GetHashCode(); + if (HasEnergyResume) hash ^= EnergyResume.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttack) { + output.WriteRawTag(16); + output.WriteInt32(Attack); + } + if (HasHp) { + output.WriteRawTag(24); + output.WriteInt64(Hp); + } + if (HasEnergyLimit) { + output.WriteRawTag(32); + output.WriteInt32(EnergyLimit); + } + if (HasEnergyResume) { + output.WriteRawTag(40); + output.WriteInt32(EnergyResume); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttack) { + output.WriteRawTag(16); + output.WriteInt32(Attack); + } + if (HasHp) { + output.WriteRawTag(24); + output.WriteInt64(Hp); + } + if (HasEnergyLimit) { + output.WriteRawTag(32); + output.WriteInt32(EnergyLimit); + } + if (HasEnergyResume) { + output.WriteRawTag(40); + output.WriteInt32(EnergyResume); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAttack) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attack); + } + if (HasHp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Hp); + } + if (HasEnergyLimit) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyLimit); + } + if (HasEnergyResume) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyResume); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemClothes other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAttack) { + Attack = other.Attack; + } + if (other.HasHp) { + Hp = other.Hp; + } + if (other.HasEnergyLimit) { + EnergyLimit = other.EnergyLimit; + } + if (other.HasEnergyResume) { + EnergyResume = other.EnergyResume; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attack = input.ReadInt32(); + break; + } + case 24: { + Hp = input.ReadInt64(); + break; + } + case 32: { + EnergyLimit = input.ReadInt32(); + break; + } + case 40: { + EnergyResume = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attack = input.ReadInt32(); + break; + } + case 24: { + Hp = input.ReadInt64(); + break; + } + case 32: { + EnergyLimit = input.ReadInt32(); + break; + } + case 40: { + EnergyResume = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemDesignDrawing : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemDesignDrawing()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[100]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing(ItemDesignDrawing other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + learnComponentId_ = other.learnComponentId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing Clone() { + return new ItemDesignDrawing(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "learn_component_id" field. + public const int LearnComponentIdFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_learnComponentId_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField learnComponentId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LearnComponentId { + get { return learnComponentId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemDesignDrawing); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemDesignDrawing other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!learnComponentId_.Equals(other.learnComponentId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= learnComponentId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + learnComponentId_.WriteTo(output, _repeated_learnComponentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + learnComponentId_.WriteTo(ref output, _repeated_learnComponentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += learnComponentId_.CalculateSize(_repeated_learnComponentId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemDesignDrawing other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + learnComponentId_.Add(other.learnComponentId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + learnComponentId_.AddEntriesFrom(input, _repeated_learnComponentId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + learnComponentId_.AddEntriesFrom(ref input, _repeated_learnComponentId_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemDymmy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemDymmy()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[101]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy(ItemDymmy other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + cost_ = other.cost_ != null ? other.cost_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy Clone() { + return new ItemDymmy(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "cost" field. + public const int CostFieldNumber = 2; + private global::Cfg.CostCost cost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCost Cost { + get { return cost_; } + set { + cost_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemDymmy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemDymmy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Cost, other.Cost)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (cost_ != null) hash ^= Cost.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (cost_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Cost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (cost_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Cost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (cost_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cost); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemDymmy other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.cost_ != null) { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + Cost.MergeFrom(other.Cost); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + input.ReadMessage(Cost); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + input.ReadMessage(Cost); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCost : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCost()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[102]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost(CostCost other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.CostCurrency: + CostCurrency = other.CostCurrency.Clone(); + break; + case ValueOneofCase.CostCurrencies: + CostCurrencies = other.CostCurrencies.Clone(); + break; + case ValueOneofCase.CostOneItem: + CostOneItem = other.CostOneItem.Clone(); + break; + case ValueOneofCase.CostItem: + CostItem = other.CostItem.Clone(); + break; + case ValueOneofCase.CostItems: + CostItems = other.CostItems.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost Clone() { + return new CostCost(this); + } + + /// Field number for the "CostCurrency" field. + public const int CostCurrencyFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostCurrency CostCurrency { + get { return valueCase_ == ValueOneofCase.CostCurrency ? (global::Cfg.CostCostCurrency) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostCurrency; + } + } + + /// Field number for the "CostCurrencies" field. + public const int CostCurrenciesFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostCurrencies CostCurrencies { + get { return valueCase_ == ValueOneofCase.CostCurrencies ? (global::Cfg.CostCostCurrencies) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostCurrencies; + } + } + + /// Field number for the "CostOneItem" field. + public const int CostOneItemFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostOneItem CostOneItem { + get { return valueCase_ == ValueOneofCase.CostOneItem ? (global::Cfg.CostCostOneItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostOneItem; + } + } + + /// Field number for the "CostItem" field. + public const int CostItemFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostItem CostItem { + get { return valueCase_ == ValueOneofCase.CostItem ? (global::Cfg.CostCostItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostItem; + } + } + + /// Field number for the "CostItems" field. + public const int CostItemsFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostItems CostItems { + get { return valueCase_ == ValueOneofCase.CostItems ? (global::Cfg.CostCostItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostItems; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + CostCurrency = 1, + CostCurrencies = 2, + CostOneItem = 3, + CostItem = 4, + CostItems = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCost); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCost other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CostCurrency, other.CostCurrency)) return false; + if (!object.Equals(CostCurrencies, other.CostCurrencies)) return false; + if (!object.Equals(CostOneItem, other.CostOneItem)) return false; + if (!object.Equals(CostItem, other.CostItem)) return false; + if (!object.Equals(CostItems, other.CostItems)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.CostCurrency) hash ^= CostCurrency.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostCurrencies) hash ^= CostCurrencies.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostOneItem) hash ^= CostOneItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostItem) hash ^= CostItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostItems) hash ^= CostItems.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.CostCurrency) { + output.WriteRawTag(10); + output.WriteMessage(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + output.WriteRawTag(18); + output.WriteMessage(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + output.WriteRawTag(26); + output.WriteMessage(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + output.WriteRawTag(34); + output.WriteMessage(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + output.WriteRawTag(42); + output.WriteMessage(CostItems); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.CostCurrency) { + output.WriteRawTag(10); + output.WriteMessage(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + output.WriteRawTag(18); + output.WriteMessage(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + output.WriteRawTag(26); + output.WriteMessage(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + output.WriteRawTag(34); + output.WriteMessage(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + output.WriteRawTag(42); + output.WriteMessage(CostItems); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.CostCurrency) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostItems); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCost other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.CostCurrency: + if (CostCurrency == null) { + CostCurrency = new global::Cfg.CostCostCurrency(); + } + CostCurrency.MergeFrom(other.CostCurrency); + break; + case ValueOneofCase.CostCurrencies: + if (CostCurrencies == null) { + CostCurrencies = new global::Cfg.CostCostCurrencies(); + } + CostCurrencies.MergeFrom(other.CostCurrencies); + break; + case ValueOneofCase.CostOneItem: + if (CostOneItem == null) { + CostOneItem = new global::Cfg.CostCostOneItem(); + } + CostOneItem.MergeFrom(other.CostOneItem); + break; + case ValueOneofCase.CostItem: + if (CostItem == null) { + CostItem = new global::Cfg.CostCostItem(); + } + CostItem.MergeFrom(other.CostItem); + break; + case ValueOneofCase.CostItems: + if (CostItems == null) { + CostItems = new global::Cfg.CostCostItems(); + } + CostItems.MergeFrom(other.CostItems); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.CostCostCurrency subBuilder = new global::Cfg.CostCostCurrency(); + if (valueCase_ == ValueOneofCase.CostCurrency) { + subBuilder.MergeFrom(CostCurrency); + } + input.ReadMessage(subBuilder); + CostCurrency = subBuilder; + break; + } + case 18: { + global::Cfg.CostCostCurrencies subBuilder = new global::Cfg.CostCostCurrencies(); + if (valueCase_ == ValueOneofCase.CostCurrencies) { + subBuilder.MergeFrom(CostCurrencies); + } + input.ReadMessage(subBuilder); + CostCurrencies = subBuilder; + break; + } + case 26: { + global::Cfg.CostCostOneItem subBuilder = new global::Cfg.CostCostOneItem(); + if (valueCase_ == ValueOneofCase.CostOneItem) { + subBuilder.MergeFrom(CostOneItem); + } + input.ReadMessage(subBuilder); + CostOneItem = subBuilder; + break; + } + case 34: { + global::Cfg.CostCostItem subBuilder = new global::Cfg.CostCostItem(); + if (valueCase_ == ValueOneofCase.CostItem) { + subBuilder.MergeFrom(CostItem); + } + input.ReadMessage(subBuilder); + CostItem = subBuilder; + break; + } + case 42: { + global::Cfg.CostCostItems subBuilder = new global::Cfg.CostCostItems(); + if (valueCase_ == ValueOneofCase.CostItems) { + subBuilder.MergeFrom(CostItems); + } + input.ReadMessage(subBuilder); + CostItems = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.CostCostCurrency subBuilder = new global::Cfg.CostCostCurrency(); + if (valueCase_ == ValueOneofCase.CostCurrency) { + subBuilder.MergeFrom(CostCurrency); + } + input.ReadMessage(subBuilder); + CostCurrency = subBuilder; + break; + } + case 18: { + global::Cfg.CostCostCurrencies subBuilder = new global::Cfg.CostCostCurrencies(); + if (valueCase_ == ValueOneofCase.CostCurrencies) { + subBuilder.MergeFrom(CostCurrencies); + } + input.ReadMessage(subBuilder); + CostCurrencies = subBuilder; + break; + } + case 26: { + global::Cfg.CostCostOneItem subBuilder = new global::Cfg.CostCostOneItem(); + if (valueCase_ == ValueOneofCase.CostOneItem) { + subBuilder.MergeFrom(CostOneItem); + } + input.ReadMessage(subBuilder); + CostOneItem = subBuilder; + break; + } + case 34: { + global::Cfg.CostCostItem subBuilder = new global::Cfg.CostCostItem(); + if (valueCase_ == ValueOneofCase.CostItem) { + subBuilder.MergeFrom(CostItem); + } + input.ReadMessage(subBuilder); + CostItem = subBuilder; + break; + } + case 42: { + global::Cfg.CostCostItems subBuilder = new global::Cfg.CostCostItems(); + if (valueCase_ == ValueOneofCase.CostItems) { + subBuilder.MergeFrom(CostItems); + } + input.ReadMessage(subBuilder); + CostItems = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostCurrency : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostCurrency()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[103]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency(CostCostCurrency other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency Clone() { + return new CostCostCurrency(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static global::Cfg.ItemECurrencyType TypeDefaultValue = global::Cfg.ItemECurrencyType.Diamond; + + private global::Cfg.ItemECurrencyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemECurrencyType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostCurrency); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostCurrency other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Num != other.Num) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostCurrency other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasNum) { + Num = other.Num; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostCurrencies : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostCurrencies()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[104]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies(CostCostCurrencies other) : this() { + currencies_ = other.currencies_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies Clone() { + return new CostCostCurrencies(this); + } + + /// Field number for the "currencies" field. + public const int CurrenciesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_currencies_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CostCostCurrency.Parser); + private readonly pbc::RepeatedField currencies_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Currencies { + get { return currencies_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostCurrencies); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostCurrencies other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!currencies_.Equals(other.currencies_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= currencies_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + currencies_.WriteTo(output, _repeated_currencies_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + currencies_.WriteTo(ref output, _repeated_currencies_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += currencies_.CalculateSize(_repeated_currencies_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostCurrencies other) { + if (other == null) { + return; + } + currencies_.Add(other.currencies_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + currencies_.AddEntriesFrom(input, _repeated_currencies_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + currencies_.AddEntriesFrom(ref input, _repeated_currencies_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostOneItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostOneItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[105]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem(CostCostOneItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem Clone() { + return new CostCostOneItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostOneItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostOneItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostOneItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[106]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem(CostCostItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem Clone() { + return new CostCostItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private readonly static int AmountDefaultValue = 0; + + private int amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Amount { + get { if ((_hasBits0 & 2) != 0) { return amount_; } else { return AmountDefaultValue; } } + set { + _hasBits0 |= 2; + amount_ = value; + } + } + /// Gets whether the "amount" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAmount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "amount" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAmount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasAmount) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasAmount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasAmount) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[107]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems(CostCostItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems Clone() { + return new CostCostItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CostCostItem.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[108]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo(L10nL10NDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo Clone() { + return new L10nL10NDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nL10NDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[109]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo(L10nPatchDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo Clone() { + return new L10nPatchDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nPatchDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailSystemMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailSystemMail()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[110]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail(MailSystemMail other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + title_ = other.title_; + sender_ = other.sender_; + content_ = other.content_; + award_ = other.award_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail Clone() { + return new MailSystemMail(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private readonly static string TitleDefaultValue = ""; + + private string title_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_ ?? TitleDefaultValue; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "title" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTitle { + get { return title_ != null; } + } + /// Clears the value of the "title" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTitle() { + title_ = null; + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 3; + private readonly static string SenderDefaultValue = ""; + + private string sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sender { + get { return sender_ ?? SenderDefaultValue; } + set { + sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSender { + get { return sender_ != null; } + } + /// Clears the value of the "sender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSender() { + sender_ = null; + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 4; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "award" field. + public const int AwardFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_award_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField award_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Award { + get { return award_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailSystemMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailSystemMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Sender != other.Sender) return false; + if (Content != other.Content) return false; + if(!award_.Equals(other.award_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasTitle) hash ^= Title.GetHashCode(); + if (HasSender) hash ^= Sender.GetHashCode(); + if (HasContent) hash ^= Content.GetHashCode(); + hash ^= award_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(output, _repeated_award_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(ref output, _repeated_award_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasTitle) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HasSender) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); + } + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += award_.CalculateSize(_repeated_award_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailSystemMail other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasTitle) { + Title = other.Title; + } + if (other.HasSender) { + Sender = other.Sender; + } + if (other.HasContent) { + Content = other.Content; + } + award_.Add(other.award_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(input, _repeated_award_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(ref input, _repeated_award_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailGlobalMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailGlobalMail()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[111]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail(MailGlobalMail other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + title_ = other.title_; + sender_ = other.sender_; + content_ = other.content_; + award_ = other.award_.Clone(); + allServer_ = other.allServer_; + serverList_ = other.serverList_.Clone(); + platform_ = other.platform_; + channel_ = other.channel_; + minMaxLevel_ = other.minMaxLevel_ != null ? other.minMaxLevel_.Clone() : null; + registerTime_ = other.registerTime_ != null ? other.registerTime_.Clone() : null; + mailTime_ = other.mailTime_ != null ? other.mailTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail Clone() { + return new MailGlobalMail(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private readonly static string TitleDefaultValue = ""; + + private string title_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_ ?? TitleDefaultValue; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "title" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTitle { + get { return title_ != null; } + } + /// Clears the value of the "title" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTitle() { + title_ = null; + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 3; + private readonly static string SenderDefaultValue = ""; + + private string sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sender { + get { return sender_ ?? SenderDefaultValue; } + set { + sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSender { + get { return sender_ != null; } + } + /// Clears the value of the "sender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSender() { + sender_ = null; + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 4; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "award" field. + public const int AwardFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_award_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField award_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Award { + get { return award_; } + } + + /// Field number for the "all_server" field. + public const int AllServerFieldNumber = 6; + private readonly static bool AllServerDefaultValue = false; + + private bool allServer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllServer { + get { if ((_hasBits0 & 2) != 0) { return allServer_; } else { return AllServerDefaultValue; } } + set { + _hasBits0 |= 2; + allServer_ = value; + } + } + /// Gets whether the "all_server" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAllServer { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "all_server" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAllServer() { + _hasBits0 &= ~2; + } + + /// Field number for the "server_list" field. + public const int ServerListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_serverList_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField serverList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServerList { + get { return serverList_; } + } + + /// Field number for the "platform" field. + public const int PlatformFieldNumber = 8; + private readonly static string PlatformDefaultValue = ""; + + private string platform_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Platform { + get { return platform_ ?? PlatformDefaultValue; } + set { + platform_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "platform" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlatform { + get { return platform_ != null; } + } + /// Clears the value of the "platform" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlatform() { + platform_ = null; + } + + /// Field number for the "channel" field. + public const int ChannelFieldNumber = 9; + private readonly static string ChannelDefaultValue = ""; + + private string channel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Channel { + get { return channel_ ?? ChannelDefaultValue; } + set { + channel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "channel" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasChannel { + get { return channel_ != null; } + } + /// Clears the value of the "channel" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearChannel() { + channel_ = null; + } + + /// Field number for the "min_max_level" field. + public const int MinMaxLevelFieldNumber = 10; + private global::Cfg.ConditionMinMaxLevel minMaxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return minMaxLevel_; } + set { + minMaxLevel_ = value; + } + } + + /// Field number for the "register_time" field. + public const int RegisterTimeFieldNumber = 11; + private global::Cfg.ConditionTimeRange registerTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange RegisterTime { + get { return registerTime_; } + set { + registerTime_ = value; + } + } + + /// Field number for the "mail_time" field. + public const int MailTimeFieldNumber = 12; + private global::Cfg.ConditionTimeRange mailTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange MailTime { + get { return mailTime_; } + set { + mailTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailGlobalMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailGlobalMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Sender != other.Sender) return false; + if (Content != other.Content) return false; + if(!award_.Equals(other.award_)) return false; + if (AllServer != other.AllServer) return false; + if(!serverList_.Equals(other.serverList_)) return false; + if (Platform != other.Platform) return false; + if (Channel != other.Channel) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(RegisterTime, other.RegisterTime)) return false; + if (!object.Equals(MailTime, other.MailTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasTitle) hash ^= Title.GetHashCode(); + if (HasSender) hash ^= Sender.GetHashCode(); + if (HasContent) hash ^= Content.GetHashCode(); + hash ^= award_.GetHashCode(); + if (HasAllServer) hash ^= AllServer.GetHashCode(); + hash ^= serverList_.GetHashCode(); + if (HasPlatform) hash ^= Platform.GetHashCode(); + if (HasChannel) hash ^= Channel.GetHashCode(); + if (minMaxLevel_ != null) hash ^= MinMaxLevel.GetHashCode(); + if (registerTime_ != null) hash ^= RegisterTime.GetHashCode(); + if (mailTime_ != null) hash ^= MailTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(output, _repeated_award_codec); + if (HasAllServer) { + output.WriteRawTag(48); + output.WriteBool(AllServer); + } + serverList_.WriteTo(output, _repeated_serverList_codec); + if (HasPlatform) { + output.WriteRawTag(66); + output.WriteString(Platform); + } + if (HasChannel) { + output.WriteRawTag(74); + output.WriteString(Channel); + } + if (minMaxLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MinMaxLevel); + } + if (registerTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RegisterTime); + } + if (mailTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MailTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(ref output, _repeated_award_codec); + if (HasAllServer) { + output.WriteRawTag(48); + output.WriteBool(AllServer); + } + serverList_.WriteTo(ref output, _repeated_serverList_codec); + if (HasPlatform) { + output.WriteRawTag(66); + output.WriteString(Platform); + } + if (HasChannel) { + output.WriteRawTag(74); + output.WriteString(Channel); + } + if (minMaxLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MinMaxLevel); + } + if (registerTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RegisterTime); + } + if (mailTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MailTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasTitle) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HasSender) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); + } + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += award_.CalculateSize(_repeated_award_codec); + if (HasAllServer) { + size += 1 + 1; + } + size += serverList_.CalculateSize(_repeated_serverList_codec); + if (HasPlatform) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Platform); + } + if (HasChannel) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Channel); + } + if (minMaxLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (registerTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegisterTime); + } + if (mailTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MailTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailGlobalMail other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasTitle) { + Title = other.Title; + } + if (other.HasSender) { + Sender = other.Sender; + } + if (other.HasContent) { + Content = other.Content; + } + award_.Add(other.award_); + if (other.HasAllServer) { + AllServer = other.AllServer; + } + serverList_.Add(other.serverList_); + if (other.HasPlatform) { + Platform = other.Platform; + } + if (other.HasChannel) { + Channel = other.Channel; + } + if (other.minMaxLevel_ != null) { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + } + if (other.registerTime_ != null) { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + RegisterTime.MergeFrom(other.RegisterTime); + } + if (other.mailTime_ != null) { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + MailTime.MergeFrom(other.MailTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(input, _repeated_award_codec); + break; + } + case 48: { + AllServer = input.ReadBool(); + break; + } + case 58: + case 56: { + serverList_.AddEntriesFrom(input, _repeated_serverList_codec); + break; + } + case 66: { + Platform = input.ReadString(); + break; + } + case 74: { + Channel = input.ReadString(); + break; + } + case 82: { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + input.ReadMessage(MinMaxLevel); + break; + } + case 90: { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(RegisterTime); + break; + } + case 98: { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(MailTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(ref input, _repeated_award_codec); + break; + } + case 48: { + AllServer = input.ReadBool(); + break; + } + case 58: + case 56: { + serverList_.AddEntriesFrom(ref input, _repeated_serverList_codec); + break; + } + case 66: { + Platform = input.ReadString(); + break; + } + case 74: { + Channel = input.ReadString(); + break; + } + case 82: { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + input.ReadMessage(MinMaxLevel); + break; + } + case 90: { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(RegisterTime); + break; + } + case 98: { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(MailTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleLevelExpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleLevelExpAttr()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[112]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr(RoleLevelExpAttr other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + needExp_ = other.needExp_; + clothesAttrs_ = other.clothesAttrs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr Clone() { + return new RoleLevelExpAttr(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "need_exp" field. + public const int NeedExpFieldNumber = 2; + private readonly static long NeedExpDefaultValue = 0L; + + private long needExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NeedExp { + get { if ((_hasBits0 & 2) != 0) { return needExp_; } else { return NeedExpDefaultValue; } } + set { + _hasBits0 |= 2; + needExp_ = value; + } + } + /// Gets whether the "need_exp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNeedExp { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "need_exp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNeedExp() { + _hasBits0 &= ~2; + } + + /// Field number for the "clothes_attrs" field. + public const int ClothesAttrsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_clothesAttrs_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField clothesAttrs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClothesAttrs { + get { return clothesAttrs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleLevelExpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleLevelExpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + if (NeedExp != other.NeedExp) return false; + if(!clothesAttrs_.Equals(other.clothesAttrs_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (HasNeedExp) hash ^= NeedExp.GetHashCode(); + hash ^= clothesAttrs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (HasNeedExp) { + output.WriteRawTag(16); + output.WriteInt64(NeedExp); + } + clothesAttrs_.WriteTo(output, _repeated_clothesAttrs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (HasNeedExp) { + output.WriteRawTag(16); + output.WriteInt64(NeedExp); + } + clothesAttrs_.WriteTo(ref output, _repeated_clothesAttrs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (HasNeedExp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NeedExp); + } + size += clothesAttrs_.CalculateSize(_repeated_clothesAttrs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleLevelExpAttr other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + if (other.HasNeedExp) { + NeedExp = other.NeedExp; + } + clothesAttrs_.Add(other.clothesAttrs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + case 16: { + NeedExp = input.ReadInt64(); + break; + } + case 26: + case 24: { + clothesAttrs_.AddEntriesFrom(input, _repeated_clothesAttrs_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + case 16: { + NeedExp = input.ReadInt64(); + break; + } + case 26: + case 24: { + clothesAttrs_.AddEntriesFrom(ref input, _repeated_clothesAttrs_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleLevelBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleLevelBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[113]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus(RoleLevelBonus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + distinctBonusInfos_ = other.distinctBonusInfos_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus Clone() { + return new RoleLevelBonus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "distinct_bonus_infos" field. + public const int DistinctBonusInfosFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_distinctBonusInfos_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.RoleDistinctBonusInfos.Parser); + private readonly pbc::RepeatedField distinctBonusInfos_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DistinctBonusInfos { + get { return distinctBonusInfos_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleLevelBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleLevelBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!distinctBonusInfos_.Equals(other.distinctBonusInfos_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= distinctBonusInfos_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + distinctBonusInfos_.WriteTo(output, _repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + distinctBonusInfos_.WriteTo(ref output, _repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += distinctBonusInfos_.CalculateSize(_repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleLevelBonus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + distinctBonusInfos_.Add(other.distinctBonusInfos_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + distinctBonusInfos_.AddEntriesFrom(input, _repeated_distinctBonusInfos_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + distinctBonusInfos_.AddEntriesFrom(ref input, _repeated_distinctBonusInfos_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleDistinctBonusInfos : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleDistinctBonusInfos()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[114]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos(RoleDistinctBonusInfos other) : this() { + _hasBits0 = other._hasBits0; + effectiveLevel_ = other.effectiveLevel_; + bonusInfo_ = other.bonusInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos Clone() { + return new RoleDistinctBonusInfos(this); + } + + /// Field number for the "effective_level" field. + public const int EffectiveLevelFieldNumber = 1; + private readonly static int EffectiveLevelDefaultValue = 0; + + private int effectiveLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectiveLevel { + get { if ((_hasBits0 & 1) != 0) { return effectiveLevel_; } else { return EffectiveLevelDefaultValue; } } + set { + _hasBits0 |= 1; + effectiveLevel_ = value; + } + } + /// Gets whether the "effective_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEffectiveLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "effective_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEffectiveLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "bonus_info" field. + public const int BonusInfoFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_bonusInfo_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.RoleBonusInfo.Parser); + private readonly pbc::RepeatedField bonusInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BonusInfo { + get { return bonusInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleDistinctBonusInfos); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleDistinctBonusInfos other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EffectiveLevel != other.EffectiveLevel) return false; + if(!bonusInfo_.Equals(other.bonusInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasEffectiveLevel) hash ^= EffectiveLevel.GetHashCode(); + hash ^= bonusInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasEffectiveLevel) { + output.WriteRawTag(8); + output.WriteInt32(EffectiveLevel); + } + bonusInfo_.WriteTo(output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasEffectiveLevel) { + output.WriteRawTag(8); + output.WriteInt32(EffectiveLevel); + } + bonusInfo_.WriteTo(ref output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasEffectiveLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectiveLevel); + } + size += bonusInfo_.CalculateSize(_repeated_bonusInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleDistinctBonusInfos other) { + if (other == null) { + return; + } + if (other.HasEffectiveLevel) { + EffectiveLevel = other.EffectiveLevel; + } + bonusInfo_.Add(other.bonusInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + EffectiveLevel = input.ReadInt32(); + break; + } + case 18: { + bonusInfo_.AddEntriesFrom(input, _repeated_bonusInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EffectiveLevel = input.ReadInt32(); + break; + } + case 18: { + bonusInfo_.AddEntriesFrom(ref input, _repeated_bonusInfo_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[115]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo(RoleBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + coefficient_ = other.coefficient_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo Clone() { + return new RoleBonusInfo(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static global::Cfg.ItemECurrencyType TypeDefaultValue = global::Cfg.ItemECurrencyType.Diamond; + + private global::Cfg.ItemECurrencyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemECurrencyType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "coefficient" field. + public const int CoefficientFieldNumber = 2; + private readonly static float CoefficientDefaultValue = 0F; + + private float coefficient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Coefficient { + get { if ((_hasBits0 & 2) != 0) { return coefficient_; } else { return CoefficientDefaultValue; } } + set { + _hasBits0 |= 2; + coefficient_ = value; + } + } + /// Gets whether the "coefficient" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCoefficient { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "coefficient" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCoefficient() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Coefficient, other.Coefficient)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasCoefficient) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Coefficient); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasCoefficient) { + output.WriteRawTag(21); + output.WriteFloat(Coefficient); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasCoefficient) { + output.WriteRawTag(21); + output.WriteFloat(Coefficient); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasCoefficient) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleBonusInfo other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasCoefficient) { + Coefficient = other.Coefficient; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 21: { + Coefficient = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 21: { + Coefficient = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTestTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[116]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag(TagTestTag other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag Clone() { + return new TagTestTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTestTag other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[117]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2(TestDemoType2 other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + x80_ = other.x80_; + x8_ = other.x8_; + x9_ = other.x9_; + x10_ = other.x10_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + s1_ = other.s1_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k5_ = other.k5_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2 Clone() { + return new TestDemoType2(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "x8_0" field. + public const int X80FieldNumber = 8; + private readonly static int X80DefaultValue = 0; + + private int x80_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X80 { + get { if ((_hasBits0 & 128) != 0) { return x80_; } else { return X80DefaultValue; } } + set { + _hasBits0 |= 128; + x80_ = value; + } + } + /// Gets whether the "x8_0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX80 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "x8_0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX80() { + _hasBits0 &= ~128; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 9; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 256) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 256; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~256; + } + + /// Field number for the "x9" field. + public const int X9FieldNumber = 10; + private readonly static long X9DefaultValue = 0L; + + private long x9_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X9 { + get { if ((_hasBits0 & 512) != 0) { return x9_; } else { return X9DefaultValue; } } + set { + _hasBits0 |= 512; + x9_ = value; + } + } + /// Gets whether the "x9" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX9 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "x9" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX9() { + _hasBits0 &= ~512; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 11; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 12; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 13; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 1024) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 1024; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~1024; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 14; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 15; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 16; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 17; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 18; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 19; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 2048) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 2048; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~2048; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 20; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 21; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(170); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k5" field. + public const int K5FieldNumber = 22; + private static readonly pb::FieldCodec _repeated_k5_codec + = pb::FieldCodec.ForInt32(178); + private readonly pbc::RepeatedField k5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K5 { + get { return k5_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 23; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 186); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 24; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(194, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 25; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(202, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (X80 != other.X80) return false; + if (X8 != other.X8) return false; + if (X9 != other.X9) return false; + if (X10 != other.X10) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (S1 != other.S1) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if(!k5_.Equals(other.k5_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasX80) hash ^= X80.GetHashCode(); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX9) hash ^= X9.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= k5_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(77); + output.WriteSFixed32(X8); + } + if (HasX9) { + output.WriteRawTag(81); + output.WriteSFixed64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (v2_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(152, 1); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k5_.WriteTo(output, _repeated_k5_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(77); + output.WriteSFixed32(X8); + } + if (HasX9) { + output.WriteRawTag(81); + output.WriteSFixed64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (v2_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(152, 1); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k5_.WriteTo(ref output, _repeated_k5_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasX80) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X80); + } + if (HasX8) { + size += 1 + 4; + } + if (HasX9) { + size += 1 + 8; + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (v2_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k5_.CalculateSize(_repeated_k5_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType2 other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasX80) { + X80 = other.X80; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX9) { + X9 = other.X9; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k5_.Add(other.k5_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 77: { + X8 = input.ReadSFixed32(); + break; + } + case 81: { + X9 = input.ReadSFixed64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 130: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 138: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 146: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 152: { + T1 = input.ReadInt32(); + break; + } + case 162: + case 160: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 170: + case 168: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 178: + case 176: { + k5_.AddEntriesFrom(input, _repeated_k5_codec); + break; + } + case 186: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 194: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 202: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 77: { + X8 = input.ReadSFixed32(); + break; + } + case 81: { + X9 = input.ReadSFixed64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 130: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 138: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 146: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 152: { + T1 = input.ReadInt32(); + break; + } + case 162: + case 160: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 170: + case 168: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 178: + case 176: { + k5_.AddEntriesFrom(ref input, _repeated_k5_codec); + break; + } + case 186: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 194: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 202: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[118]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1(TestDemoType1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1 Clone() { + return new TestDemoType1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoDynamic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoDynamic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[119]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic(TestDemoDynamic other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + DemoD2 = other.DemoD2.Clone(); + break; + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.DemoD5: + DemoD5 = other.DemoD5.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic Clone() { + return new TestDemoDynamic(this); + } + + /// Field number for the "DemoD2" field. + public const int DemoD2FieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD2 DemoD2 { + get { return valueCase_ == ValueOneofCase.DemoD2 ? (global::Cfg.TestDemoD2) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD2; + } + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "DemoD5" field. + public const int DemoD5FieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD5 DemoD5 { + get { return valueCase_ == ValueOneofCase.DemoD5 ? (global::Cfg.TestDemoD5) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD5; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoD2 = 1, + DemoE1 = 2, + DemoD5 = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoDynamic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoDynamic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoD2, other.DemoD2)) return false; + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(DemoD5, other.DemoD5)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoD2) hash ^= DemoD2.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoD5) hash ^= DemoD5.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(26); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(26); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoD2) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoDynamic other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + if (DemoD2 == null) { + DemoD2 = new global::Cfg.TestDemoD2(); + } + DemoD2.MergeFrom(other.DemoD2); + break; + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.DemoD5: + if (DemoD5 == null) { + DemoD5 = new global::Cfg.TestDemoD5(); + } + DemoD5.MergeFrom(other.DemoD5); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[120]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2(TestDemoD2 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2 Clone() { + return new TestDemoD2(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD2 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[121]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3(TestDemoD3 other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3 Clone() { + return new TestDemoD3(this); + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoE1 = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD3 other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[122]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1(TestDemoE1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1 Clone() { + return new TestDemoE1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 3; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD5 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD5()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[123]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5(TestDemoD5 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5 Clone() { + return new TestDemoD5(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Cfg.TestDateTimeRange time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDateTimeRange Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD5); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD5 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (!object.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD5 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + Time.MergeFrom(other.Time); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[124]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange(TestDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange Clone() { + return new TestDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static int StartTimeDefaultValue = 0; + + private int startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static int EndTimeDefaultValue = 0; + + private int endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[125]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2(TestDemoE2 other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2 Clone() { + return new TestDemoE2(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static bool Y2DefaultValue = false; + + private bool y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE2 other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoSingletonType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoSingletonType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[126]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType(TestDemoSingletonType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + date_ = other.date_ != null ? other.date_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType Clone() { + return new TestDemoSingletonType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 3; + private global::Cfg.TestDemoDynamic date_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic Date { + get { return date_; } + set { + date_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoSingletonType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoSingletonType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(Date, other.Date)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (date_ != null) hash ^= Date.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoSingletonType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + Date.MergeFrom(other.Date); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[127]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList(TestNotIndexList other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList Clone() { + return new TestNotIndexList(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestNotIndexList other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[128]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList(TestMultiUnionIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList Clone() { + return new TestMultiUnionIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiUnionIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[129]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList(TestMultiIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList Clone() { + return new TestMultiIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[130]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord(TestMultiRowRecord other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + oneRows_ = other.oneRows_.Clone(); + multiRows1_ = other.multiRows1_.Clone(); + multiRows2_ = other.multiRows2_.Clone(); + multiRows4_ = other.multiRows4_.Clone(); + multiRows5_ = other.multiRows5_.Clone(); + multiRows6_ = other.multiRows6_.Clone(); + multiRows7_ = other.multiRows7_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord Clone() { + return new TestMultiRowRecord(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "one_rows" field. + public const int OneRowsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_oneRows_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField oneRows_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OneRows { + get { return oneRows_; } + } + + /// Field number for the "multi_rows1" field. + public const int MultiRows1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_multiRows1_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows1 { + get { return multiRows1_; } + } + + /// Field number for the "multi_rows2" field. + public const int MultiRows2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_multiRows2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows2 { + get { return multiRows2_; } + } + + /// Field number for the "multi_rows4" field. + public const int MultiRows4FieldNumber = 6; + private static readonly pbc::MapField.Codec _map_multiRows4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 50); + private readonly pbc::MapField multiRows4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows4 { + get { return multiRows4_; } + } + + /// Field number for the "multi_rows5" field. + public const int MultiRows5FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_multiRows5_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestMultiRowType3.Parser); + private readonly pbc::RepeatedField multiRows5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows5 { + get { return multiRows5_; } + } + + /// Field number for the "multi_rows6" field. + public const int MultiRows6FieldNumber = 8; + private static readonly pbc::MapField.Codec _map_multiRows6_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 66); + private readonly pbc::MapField multiRows6_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows6 { + get { return multiRows6_; } + } + + /// Field number for the "multi_rows7" field. + public const int MultiRows7FieldNumber = 9; + private static readonly pbc::MapField.Codec _map_multiRows7_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 74); + private readonly pbc::MapField multiRows7_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows7 { + get { return multiRows7_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!oneRows_.Equals(other.oneRows_)) return false; + if(!multiRows1_.Equals(other.multiRows1_)) return false; + if(!multiRows2_.Equals(other.multiRows2_)) return false; + if (!MultiRows4.Equals(other.MultiRows4)) return false; + if(!multiRows5_.Equals(other.multiRows5_)) return false; + if (!MultiRows6.Equals(other.MultiRows6)) return false; + if (!MultiRows7.Equals(other.MultiRows7)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + hash ^= oneRows_.GetHashCode(); + hash ^= multiRows1_.GetHashCode(); + hash ^= multiRows2_.GetHashCode(); + hash ^= MultiRows4.GetHashCode(); + hash ^= multiRows5_.GetHashCode(); + hash ^= MultiRows6.GetHashCode(); + hash ^= MultiRows7.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(output, _repeated_oneRows_codec); + multiRows1_.WriteTo(output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(output, _map_multiRows4_codec); + multiRows5_.WriteTo(output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(output, _map_multiRows6_codec); + multiRows7_.WriteTo(output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(ref output, _repeated_oneRows_codec); + multiRows1_.WriteTo(ref output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(ref output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(ref output, _map_multiRows4_codec); + multiRows5_.WriteTo(ref output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(ref output, _map_multiRows6_codec); + multiRows7_.WriteTo(ref output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += oneRows_.CalculateSize(_repeated_oneRows_codec); + size += multiRows1_.CalculateSize(_repeated_multiRows1_codec); + size += multiRows2_.CalculateSize(_repeated_multiRows2_codec); + size += multiRows4_.CalculateSize(_map_multiRows4_codec); + size += multiRows5_.CalculateSize(_repeated_multiRows5_codec); + size += multiRows6_.CalculateSize(_map_multiRows6_codec); + size += multiRows7_.CalculateSize(_map_multiRows7_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowRecord other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + oneRows_.Add(other.oneRows_); + multiRows1_.Add(other.multiRows1_); + multiRows2_.Add(other.multiRows2_); + multiRows4_.Add(other.multiRows4_); + multiRows5_.Add(other.multiRows5_); + multiRows6_.Add(other.multiRows6_); + multiRows7_.Add(other.multiRows7_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(input, _map_multiRows7_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(ref input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(ref input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(ref input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(ref input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(ref input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(ref input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(ref input, _map_multiRows7_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[131]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1(TestMultiRowType1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1 Clone() { + return new TestMultiRowType1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[132]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2(TestMultiRowType2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2 Clone() { + return new TestMultiRowType2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[133]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3(TestMultiRowType3 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3 Clone() { + return new TestMultiRowType3(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType3 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[134]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle(TestMultiRowTitle other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x20_ = other.x20_ != null ? other.x20_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle Clone() { + return new TestMultiRowTitle(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2_0" field. + public const int X20FieldNumber = 4; + private global::Cfg.TestH2 x20_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 X20 { + get { return x20_; } + set { + x20_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(X1, other.X1)) return false; + if (!object.Equals(X20, other.X20)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + if (x20_ != null) hash ^= X20.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + if (x20_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X20); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowTitle other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + if (other.x20_ != null) { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + X20.MergeFrom(other.X20); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[135]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1(TestH1 other) : this() { + _hasBits0 = other._hasBits0; + y2_ = other.y2_ != null ? other.y2_.Clone() : null; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1 Clone() { + return new TestH1(this); + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 1; + private global::Cfg.TestH2 y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 Y2 { + get { return y2_; } + set { + y2_ = value; + } + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 2; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 1) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 1; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Y2, other.Y2)) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (y2_ != null) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (y2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH1 other) { + if (other == null) { + return; + } + if (other.y2_ != null) { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + Y2.MergeFrom(other.Y2); + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[136]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2(TestH2 other) : this() { + _hasBits0 = other._hasBits0; + z2_ = other.z2_; + z3_ = other.z3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2 Clone() { + return new TestH2(this); + } + + /// Field number for the "z2" field. + public const int Z2FieldNumber = 1; + private readonly static int Z2DefaultValue = 0; + + private int z2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z2 { + get { if ((_hasBits0 & 1) != 0) { return z2_; } else { return Z2DefaultValue; } } + set { + _hasBits0 |= 1; + z2_ = value; + } + } + /// Gets whether the "z2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ2 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "z2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ2() { + _hasBits0 &= ~1; + } + + /// Field number for the "z3" field. + public const int Z3FieldNumber = 2; + private readonly static int Z3DefaultValue = 0; + + private int z3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z3 { + get { if ((_hasBits0 & 2) != 0) { return z3_; } else { return Z3DefaultValue; } } + set { + _hasBits0 |= 2; + z3_ = value; + } + } + /// Gets whether the "z3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "z3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ3() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Z2 != other.Z2) return false; + if (Z3 != other.Z3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasZ2) hash ^= Z2.GetHashCode(); + if (HasZ3) hash ^= Z3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasZ2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z2); + } + if (HasZ3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH2 other) { + if (other == null) { + return; + } + if (other.HasZ2) { + Z2 = other.Z2; + } + if (other.HasZ3) { + Z3 = other.Z3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestNull()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[137]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull(TestTestNull other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_ != null ? other.x4_.Clone() : null; + s1_ = other.s1_; + s2_ = other.s2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull Clone() { + return new TestTestNull(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static global::Cfg.TestDemoEnum X2DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestDemoType1 x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private global::Cfg.TestDemoDynamic x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X4 { + get { return x4_; } + set { + x4_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 6; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 7; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (!object.Equals(X3, other.X3)) return false; + if (!object.Equals(X4, other.X4)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + if (x4_ != null) hash ^= X4.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + if (x4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X4); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestNull other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + X3.MergeFrom(other.X3); + } + if (other.x4_ != null) { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + X4.MergeFrom(other.X4); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoPrimitiveTypesTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoPrimitiveTypesTable()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[138]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable(TestDemoPrimitiveTypesTable other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable Clone() { + return new TestDemoPrimitiveTypesTable(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 4) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 4; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~4; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 8) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 8; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 8; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 9; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 10; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 11; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 12; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 13; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoPrimitiveTypesTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoPrimitiveTypesTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt32(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt32(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoPrimitiveTypesTable other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[139]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString(TestTestString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s1_ = other.s1_; + cs1_ = other.cs1_ != null ? other.cs1_.Clone() : null; + cs2_ = other.cs2_ != null ? other.cs2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString Clone() { + return new TestTestString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 2; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "cs1" field. + public const int Cs1FieldNumber = 3; + private global::Cfg.TestCompactString cs1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs1 { + get { return cs1_; } + set { + cs1_ = value; + } + } + + /// Field number for the "cs2" field. + public const int Cs2FieldNumber = 4; + private global::Cfg.TestCompactString cs2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs2 { + get { return cs2_; } + set { + cs2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S1 != other.S1) return false; + if (!object.Equals(Cs1, other.Cs1)) return false; + if (!object.Equals(Cs2, other.Cs2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (cs1_ != null) hash ^= Cs1.GetHashCode(); + if (cs2_ != null) hash ^= Cs2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (cs1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs1); + } + if (cs2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.cs1_ != null) { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + Cs1.MergeFrom(other.Cs1); + } + if (other.cs2_ != null) { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + Cs2.MergeFrom(other.Cs2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompactString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompactString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[140]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString(TestCompactString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s2_ = other.s2_; + s3_ = other.s3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString Clone() { + return new TestCompactString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 2; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "s3" field. + public const int S3FieldNumber = 3; + private readonly static string S3DefaultValue = ""; + + private string s3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S3 { + get { return s3_ ?? S3DefaultValue; } + set { + s3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS3 { + get { return s3_ != null; } + } + /// Clears the value of the "s3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS3() { + s3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompactString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompactString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S2 != other.S2) return false; + if (S3 != other.S3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasS3) hash ^= S3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasS3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompactString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasS3) { + S3 = other.S3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[141]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup(TestDemoGroup other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_ != null ? other.x5_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup Clone() { + return new TestDemoGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 16) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 16; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~16; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private global::Cfg.TestInnerGroup x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestInnerGroup X5 { + get { return x5_; } + set { + x5_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (!object.Equals(X5, other.X5)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (x5_ != null) hash ^= X5.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (x5_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoGroup other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.x5_ != null) { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + X5.MergeFrom(other.X5); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestInnerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestInnerGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[142]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup(TestInnerGroup other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + y4_ = other.y4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup Clone() { + return new TestInnerGroup(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + /// Field number for the "y4" field. + public const int Y4FieldNumber = 4; + private readonly static int Y4DefaultValue = 0; + + private int y4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y4 { + get { if ((_hasBits0 & 8) != 0) { return y4_; } else { return Y4DefaultValue; } } + set { + _hasBits0 |= 8; + y4_ = value; + } + } + /// Gets whether the "y4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "y4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY4() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestInnerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestInnerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + if (Y4 != other.Y4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (HasY4) hash ^= Y4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (HasY4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestInnerGroup other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + if (other.HasY4) { + Y4 = other.Y4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[143]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal(TestTestGlobal other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal Clone() { + return new TestTestGlobal(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestGlobal other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[144]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef(TestTestBeRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef Clone() { + return new TestTestBeRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private readonly static int CountDefaultValue = 0; + + private int count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Count { + get { if ((_hasBits0 & 2) != 0) { return count_; } else { return CountDefaultValue; } } + set { + _hasBits0 |= 2; + count_ = value; + } + } + /// Gets whether the "count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestBeRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasCount) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[145]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef(TestTestRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x12_ = other.x12_; + x2_ = other.x2_; + x3_ = other.x3_; + a1_ = other.a1_.Clone(); + a2_ = other.a2_.Clone(); + b1_ = other.b1_.Clone(); + b2_ = other.b2_.Clone(); + c1_ = other.c1_.Clone(); + c2_ = other.c2_.Clone(); + d1_ = other.d1_.Clone(); + d2_ = other.d2_.Clone(); + e1_ = other.e1_; + e2_ = other.e2_; + e3_ = other.e3_; + f1_ = other.f1_; + f2_ = other.f2_; + f3_ = other.f3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef Clone() { + return new TestTestRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x1_2" field. + public const int X12FieldNumber = 3; + private readonly static int X12DefaultValue = 0; + + private int x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X12 { + get { if ((_hasBits0 & 4) != 0) { return x12_; } else { return X12DefaultValue; } } + set { + _hasBits0 |= 4; + x12_ = value; + } + } + /// Gets whether the "x1_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX12 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x1_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX12() { + _hasBits0 &= ~4; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 8) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 8; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~8; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 16) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 16; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~16; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_a1_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField a1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A1 { + get { return a1_; } + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_a2_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField a2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A2 { + get { return a2_; } + } + + /// Field number for the "b1" field. + public const int B1FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_b1_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField b1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B1 { + get { return b1_; } + } + + /// Field number for the "b2" field. + public const int B2FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_b2_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField b2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B2 { + get { return b2_; } + } + + /// Field number for the "c1" field. + public const int C1FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_c1_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField c1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C1 { + get { return c1_; } + } + + /// Field number for the "c2" field. + public const int C2FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_c2_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField c2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C2 { + get { return c2_; } + } + + /// Field number for the "d1" field. + public const int D1FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_d1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField d1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D1 { + get { return d1_; } + } + + /// Field number for the "d2" field. + public const int D2FieldNumber = 13; + private static readonly pbc::MapField.Codec _map_d2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 106); + private readonly pbc::MapField d2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D2 { + get { return d2_; } + } + + /// Field number for the "e1" field. + public const int E1FieldNumber = 14; + private readonly static int E1DefaultValue = 0; + + private int e1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int E1 { + get { if ((_hasBits0 & 32) != 0) { return e1_; } else { return E1DefaultValue; } } + set { + _hasBits0 |= 32; + e1_ = value; + } + } + /// Gets whether the "e1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE1 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "e1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE1() { + _hasBits0 &= ~32; + } + + /// Field number for the "e2" field. + public const int E2FieldNumber = 15; + private readonly static long E2DefaultValue = 0L; + + private long e2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long E2 { + get { if ((_hasBits0 & 64) != 0) { return e2_; } else { return E2DefaultValue; } } + set { + _hasBits0 |= 64; + e2_ = value; + } + } + /// Gets whether the "e2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE2 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "e2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE2() { + _hasBits0 &= ~64; + } + + /// Field number for the "e3" field. + public const int E3FieldNumber = 16; + private readonly static string E3DefaultValue = ""; + + private string e3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string E3 { + get { return e3_ ?? E3DefaultValue; } + set { + e3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "e3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE3 { + get { return e3_ != null; } + } + /// Clears the value of the "e3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE3() { + e3_ = null; + } + + /// Field number for the "f1" field. + public const int F1FieldNumber = 17; + private readonly static int F1DefaultValue = 0; + + private int f1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int F1 { + get { if ((_hasBits0 & 128) != 0) { return f1_; } else { return F1DefaultValue; } } + set { + _hasBits0 |= 128; + f1_ = value; + } + } + /// Gets whether the "f1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "f1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF1() { + _hasBits0 &= ~128; + } + + /// Field number for the "f2" field. + public const int F2FieldNumber = 18; + private readonly static long F2DefaultValue = 0L; + + private long f2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long F2 { + get { if ((_hasBits0 & 256) != 0) { return f2_; } else { return F2DefaultValue; } } + set { + _hasBits0 |= 256; + f2_ = value; + } + } + /// Gets whether the "f2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF2 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "f2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF2() { + _hasBits0 &= ~256; + } + + /// Field number for the "f3" field. + public const int F3FieldNumber = 19; + private readonly static string F3DefaultValue = ""; + + private string f3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string F3 { + get { return f3_ ?? F3DefaultValue; } + set { + f3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "f3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF3 { + get { return f3_ != null; } + } + /// Clears the value of the "f3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF3() { + f3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X12 != other.X12) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if(!a1_.Equals(other.a1_)) return false; + if(!a2_.Equals(other.a2_)) return false; + if(!b1_.Equals(other.b1_)) return false; + if(!b2_.Equals(other.b2_)) return false; + if(!c1_.Equals(other.c1_)) return false; + if(!c2_.Equals(other.c2_)) return false; + if (!D1.Equals(other.D1)) return false; + if (!D2.Equals(other.D2)) return false; + if (E1 != other.E1) return false; + if (E2 != other.E2) return false; + if (E3 != other.E3) return false; + if (F1 != other.F1) return false; + if (F2 != other.F2) return false; + if (F3 != other.F3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX12) hash ^= X12.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + hash ^= a1_.GetHashCode(); + hash ^= a2_.GetHashCode(); + hash ^= b1_.GetHashCode(); + hash ^= b2_.GetHashCode(); + hash ^= c1_.GetHashCode(); + hash ^= c2_.GetHashCode(); + hash ^= D1.GetHashCode(); + hash ^= D2.GetHashCode(); + if (HasE1) hash ^= E1.GetHashCode(); + if (HasE2) hash ^= E2.GetHashCode(); + if (HasE3) hash ^= E3.GetHashCode(); + if (HasF1) hash ^= F1.GetHashCode(); + if (HasF2) hash ^= F2.GetHashCode(); + if (HasF3) hash ^= F3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + a1_.WriteTo(output, _repeated_a1_codec); + a2_.WriteTo(output, _repeated_a2_codec); + b1_.WriteTo(output, _repeated_b1_codec); + b2_.WriteTo(output, _repeated_b2_codec); + c1_.WriteTo(output, _repeated_c1_codec); + c2_.WriteTo(output, _repeated_c2_codec); + d1_.WriteTo(output, _map_d1_codec); + d2_.WriteTo(output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(112); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(120); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(130, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(136, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(144, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(154, 1); + output.WriteString(F3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + a1_.WriteTo(ref output, _repeated_a1_codec); + a2_.WriteTo(ref output, _repeated_a2_codec); + b1_.WriteTo(ref output, _repeated_b1_codec); + b2_.WriteTo(ref output, _repeated_b2_codec); + c1_.WriteTo(ref output, _repeated_c1_codec); + c2_.WriteTo(ref output, _repeated_c2_codec); + d1_.WriteTo(ref output, _map_d1_codec); + d2_.WriteTo(ref output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(112); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(120); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(130, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(136, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(144, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(154, 1); + output.WriteString(F3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX12) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X12); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + size += a1_.CalculateSize(_repeated_a1_codec); + size += a2_.CalculateSize(_repeated_a2_codec); + size += b1_.CalculateSize(_repeated_b1_codec); + size += b2_.CalculateSize(_repeated_b2_codec); + size += c1_.CalculateSize(_repeated_c1_codec); + size += c2_.CalculateSize(_repeated_c2_codec); + size += d1_.CalculateSize(_map_d1_codec); + size += d2_.CalculateSize(_map_d2_codec); + if (HasE1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(E1); + } + if (HasE2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(E2); + } + if (HasE3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(E3); + } + if (HasF1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(F1); + } + if (HasF2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(F2); + } + if (HasF3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(F3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX12) { + X12 = other.X12; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + a1_.Add(other.a1_); + a2_.Add(other.a2_); + b1_.Add(other.b1_); + b2_.Add(other.b2_); + c1_.Add(other.c1_); + c2_.Add(other.c2_); + d1_.Add(other.d1_); + d2_.Add(other.d2_); + if (other.HasE1) { + E1 = other.E1; + } + if (other.HasE2) { + E2 = other.E2; + } + if (other.HasE3) { + E3 = other.E3; + } + if (other.HasF1) { + F1 = other.F1; + } + if (other.HasF2) { + F2 = other.F2; + } + if (other.HasF3) { + F3 = other.F3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 50: + case 48: { + a1_.AddEntriesFrom(input, _repeated_a1_codec); + break; + } + case 58: + case 56: { + a2_.AddEntriesFrom(input, _repeated_a2_codec); + break; + } + case 66: + case 64: { + b1_.AddEntriesFrom(input, _repeated_b1_codec); + break; + } + case 74: + case 72: { + b2_.AddEntriesFrom(input, _repeated_b2_codec); + break; + } + case 82: + case 80: { + c1_.AddEntriesFrom(input, _repeated_c1_codec); + break; + } + case 90: + case 88: { + c2_.AddEntriesFrom(input, _repeated_c2_codec); + break; + } + case 98: { + d1_.AddEntriesFrom(input, _map_d1_codec); + break; + } + case 106: { + d2_.AddEntriesFrom(input, _map_d2_codec); + break; + } + case 112: { + E1 = input.ReadInt32(); + break; + } + case 120: { + E2 = input.ReadInt64(); + break; + } + case 130: { + E3 = input.ReadString(); + break; + } + case 136: { + F1 = input.ReadInt32(); + break; + } + case 144: { + F2 = input.ReadInt64(); + break; + } + case 154: { + F3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 50: + case 48: { + a1_.AddEntriesFrom(ref input, _repeated_a1_codec); + break; + } + case 58: + case 56: { + a2_.AddEntriesFrom(ref input, _repeated_a2_codec); + break; + } + case 66: + case 64: { + b1_.AddEntriesFrom(ref input, _repeated_b1_codec); + break; + } + case 74: + case 72: { + b2_.AddEntriesFrom(ref input, _repeated_b2_codec); + break; + } + case 82: + case 80: { + c1_.AddEntriesFrom(ref input, _repeated_c1_codec); + break; + } + case 90: + case 88: { + c2_.AddEntriesFrom(ref input, _repeated_c2_codec); + break; + } + case 98: { + d1_.AddEntriesFrom(ref input, _map_d1_codec); + break; + } + case 106: { + d2_.AddEntriesFrom(ref input, _map_d2_codec); + break; + } + case 112: { + E1 = input.ReadInt32(); + break; + } + case 120: { + E2 = input.ReadInt64(); + break; + } + case 130: { + E3 = input.ReadString(); + break; + } + case 136: { + F1 = input.ReadInt32(); + break; + } + case 144: { + F2 = input.ReadInt64(); + break; + } + case 154: { + F3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSize()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[146]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize(TestTestSize other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize Clone() { + return new TestTestSize(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSize other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[147]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet(TestTestSet other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet Clone() { + return new TestTestSet(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt64(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForEnum(40, x => (int) x, x => (global::Cfg.TestDemoEnum) x); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSet other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: + case 40: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: + case 40: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDetectEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDetectEncoding()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[148]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding(TestDetectEncoding other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding Clone() { + return new TestDetectEncoding(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDetectEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDetectEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDetectEncoding other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[149]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel(TestDefineFromExcel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel Clone() { + return new TestDefineFromExcel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestETestQuality X13DefaultValue = global::Cfg.TestETestQuality.A; + + private global::Cfg.TestETestQuality x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestETestQuality X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 8; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 9; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 64) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 64; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~64; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcelOne : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcelOne()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[150]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne(TestDefineFromExcelOne other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + defaultAvatar_ = other.defaultAvatar_; + defaultItem_ = other.defaultItem_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne Clone() { + return new TestDefineFromExcelOne(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + /// Field number for the "default_avatar" field. + public const int DefaultAvatarFieldNumber = 3; + private readonly static string DefaultAvatarDefaultValue = ""; + + private string defaultAvatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DefaultAvatar { + get { return defaultAvatar_ ?? DefaultAvatarDefaultValue; } + set { + defaultAvatar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "default_avatar" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDefaultAvatar { + get { return defaultAvatar_ != null; } + } + /// Clears the value of the "default_avatar" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDefaultAvatar() { + defaultAvatar_ = null; + } + + /// Field number for the "default_item" field. + public const int DefaultItemFieldNumber = 4; + private readonly static string DefaultItemDefaultValue = ""; + + private string defaultItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DefaultItem { + get { return defaultItem_ ?? DefaultItemDefaultValue; } + set { + defaultItem_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "default_item" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDefaultItem { + get { return defaultItem_ != null; } + } + /// Clears the value of the "default_item" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDefaultItem() { + defaultItem_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcelOne); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcelOne other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + if (DefaultAvatar != other.DefaultAvatar) return false; + if (DefaultItem != other.DefaultItem) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (HasDefaultAvatar) hash ^= DefaultAvatar.GetHashCode(); + if (HasDefaultItem) hash ^= DefaultItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (HasDefaultAvatar) { + output.WriteRawTag(26); + output.WriteString(DefaultAvatar); + } + if (HasDefaultItem) { + output.WriteRawTag(34); + output.WriteString(DefaultItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (HasDefaultAvatar) { + output.WriteRawTag(26); + output.WriteString(DefaultAvatar); + } + if (HasDefaultItem) { + output.WriteRawTag(34); + output.WriteString(DefaultItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (HasDefaultAvatar) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultAvatar); + } + if (HasDefaultItem) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcelOne other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + if (other.HasDefaultAvatar) { + DefaultAvatar = other.DefaultAvatar; + } + if (other.HasDefaultItem) { + DefaultItem = other.DefaultItem; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + case 26: { + DefaultAvatar = input.ReadString(); + break; + } + case 34: { + DefaultItem = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + case 26: { + DefaultAvatar = input.ReadString(); + break; + } + case 34: { + DefaultItem = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestIndex()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[151]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex(TestTestIndex other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + eles_ = other.eles_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex Clone() { + return new TestTestIndex(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "eles" field. + public const int ElesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_eles_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestDemoType1.Parser); + private readonly pbc::RepeatedField eles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Eles { + get { return eles_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!eles_.Equals(other.eles_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= eles_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(ref output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += eles_.CalculateSize(_repeated_eles_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestIndex other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + eles_.Add(other.eles_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(input, _repeated_eles_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(ref input, _repeated_eles_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[152]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap(TestTestMap other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap Clone() { + return new TestTestMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pbc::MapField.Codec _map_x1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 18); + private readonly pbc::MapField x1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pbc::MapField.Codec _map_x2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt32(16, 0), 26); + private readonly pbc::MapField x2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pbc::MapField.Codec _map_x3_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 34); + private readonly pbc::MapField x3_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!X1.Equals(other.X1)) return false; + if (!X2.Equals(other.X2)) return false; + if (!X3.Equals(other.X3)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= X1.GetHashCode(); + hash ^= X2.GetHashCode(); + hash ^= X3.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _map_x1_codec); + x2_.WriteTo(output, _map_x2_codec); + x3_.WriteTo(output, _map_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _map_x1_codec); + x2_.WriteTo(ref output, _map_x2_codec); + x3_.WriteTo(ref output, _map_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_map_x1_codec); + size += x2_.CalculateSize(_map_x2_codec); + size += x3_.CalculateSize(_map_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMap other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(ref input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(ref input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[153]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson(TestExcelFromJson other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson Clone() { + return new TestExcelFromJson(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 5; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 6; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 7; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 8; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 9; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 16) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 16; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~16; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 11; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 12; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 13; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 15; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 122); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 16; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(130, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(138, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(66); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + if (x12_ != null) { + output.WriteRawTag(90); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(96); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(106); + output.WriteMessage(X14); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(66); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + if (x12_ != null) { + output.WriteRawTag(90); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(96); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(106); + output.WriteMessage(X14); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJson other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 58: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 66: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 74: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 96: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 106: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 114: + case 112: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 138: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 58: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 66: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 74: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 96: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 106: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 114: + case 112: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 138: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[154]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1(TestCompositeJsonTable1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1 Clone() { + return new TestCompositeJsonTable1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static string XDefaultValue = ""; + + private string x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X { + get { return x_ ?? XDefaultValue; } + set { + x_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return x_ != null; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + x_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[155]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2(TestCompositeJsonTable2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2 Clone() { + return new TestCompositeJsonTable2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[156]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3(TestCompositeJsonTable3 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3 Clone() { + return new TestCompositeJsonTable3(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable3 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[157]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow(TestExcelFromJsonMultiRow other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow Clone() { + return new TestExcelFromJsonMultiRow(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestTestRow.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[158]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow(TestTestRow other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow Clone() { + return new TestTestRow(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static bool YDefaultValue = false; + + private bool y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static string ZDefaultValue = ""; + + private string z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Z { + get { return z_ ?? ZDefaultValue; } + set { + z_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return z_ != null; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + z_ = null; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private global::Cfg.TestTest3 a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestTest3 A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_b_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField b_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B { + get { return b_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + if (!object.Equals(A, other.A)) return false; + if(!b_.Equals(other.b_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + hash ^= b_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(ref output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 1; + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Z); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + size += b_.CalculateSize(_repeated_b_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRow other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + A.MergeFrom(other.A); + } + b_.Add(other.b_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(input, _repeated_b_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(ref input, _repeated_b_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTest3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTest3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[159]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3(TestTest3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3 Clone() { + return new TestTest3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTest3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTest3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTest3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSep()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[160]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep(TestTestSep other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_ != null ? other.x2_.Clone() : null; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_.Clone(); + x5_ = other.x5_.Clone(); + x6_ = other.x6_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep Clone() { + return new TestTestSep(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static string X1DefaultValue = ""; + + private string x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X1 { + get { return x1_ ?? X1DefaultValue; } + set { + x1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return x1_ != null; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + x1_ = null; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private global::Cfg.TestSepBean1 x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestSepBean1 X2 { + get { return x2_; } + set { + x2_ = value; + } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestSepVector x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestSepVector X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestSepVector.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x5_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestSepBean1.Parser); + private readonly pbc::RepeatedField x5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X5 { + get { return x5_; } + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x6_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestSepBean1.Parser); + private readonly pbc::RepeatedField x6_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X6 { + get { return x6_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (!object.Equals(X2, other.X2)) return false; + if (!object.Equals(X3, other.X3)) return false; + if(!x4_.Equals(other.x4_)) return false; + if(!x5_.Equals(other.x5_)) return false; + if(!x6_.Equals(other.x6_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (x2_ != null) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + hash ^= x4_.GetHashCode(); + hash ^= x5_.GetHashCode(); + hash ^= x6_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(18); + output.WriteString(X1); + } + if (x2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + x4_.WriteTo(output, _repeated_x4_codec); + x5_.WriteTo(output, _repeated_x5_codec); + x6_.WriteTo(output, _repeated_x6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(18); + output.WriteString(X1); + } + if (x2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + x4_.WriteTo(ref output, _repeated_x4_codec); + x5_.WriteTo(ref output, _repeated_x5_codec); + x6_.WriteTo(ref output, _repeated_x6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X1); + } + if (x2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + size += x4_.CalculateSize(_repeated_x4_codec); + size += x5_.CalculateSize(_repeated_x5_codec); + size += x6_.CalculateSize(_repeated_x6_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSep other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.x2_ != null) { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + X2.MergeFrom(other.X2); + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + X3.MergeFrom(other.X3); + } + x4_.Add(other.x4_); + x5_.Add(other.x5_); + x6_.Add(other.x6_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X1 = input.ReadString(); + break; + } + case 26: { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + input.ReadMessage(X2); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + input.ReadMessage(X3); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + case 50: { + x5_.AddEntriesFrom(input, _repeated_x5_codec); + break; + } + case 58: { + x6_.AddEntriesFrom(input, _repeated_x6_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X1 = input.ReadString(); + break; + } + case 26: { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + input.ReadMessage(X2); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + input.ReadMessage(X3); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + case 50: { + x5_.AddEntriesFrom(ref input, _repeated_x5_codec); + break; + } + case 58: { + x6_.AddEntriesFrom(ref input, _repeated_x6_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestSepBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSepBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[161]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1(TestSepBean1 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + c_ = other.c_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1 Clone() { + return new TestSepBean1(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + /// Field number for the "c" field. + public const int CFieldNumber = 3; + private readonly static string CDefaultValue = ""; + + private string c_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string C { + get { return c_ ?? CDefaultValue; } + set { + c_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasC { + get { return c_ != null; } + } + /// Clears the value of the "c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearC() { + c_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestSepBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestSepBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + if (C != other.C) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (HasC) hash ^= C.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (HasC) { + output.WriteRawTag(26); + output.WriteString(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (HasC) { + output.WriteRawTag(26); + output.WriteString(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (HasC) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(C); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestSepBean1 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + if (other.HasC) { + C = other.C; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + case 26: { + C = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + case 26: { + C = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestSepVector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSepVector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[162]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector(TestSepVector other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector Clone() { + return new TestSepVector(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static int ZDefaultValue = 0; + + private int z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestSepVector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestSepVector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestSepVector other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + case 24: { + Z = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + case 24: { + Z = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestExternalType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExternalType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[163]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType(TestTestExternalType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + audioType_ = other.audioType_; + color_ = other.color_ != null ? other.color_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType Clone() { + return new TestTestExternalType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "audio_type" field. + public const int AudioTypeFieldNumber = 2; + private readonly static global::Cfg.TestAudioType AudioTypeDefaultValue = global::Cfg.TestAudioType.Unknown; + + private global::Cfg.TestAudioType audioType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestAudioType AudioType { + get { if ((_hasBits0 & 2) != 0) { return audioType_; } else { return AudioTypeDefaultValue; } } + set { + _hasBits0 |= 2; + audioType_ = value; + } + } + /// Gets whether the "audio_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "audio_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioType() { + _hasBits0 &= ~2; + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 3; + private global::Cfg.TestColor color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestColor Color { + get { return color_; } + set { + color_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExternalType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExternalType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AudioType != other.AudioType) return false; + if (!object.Equals(Color, other.Color)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAudioType) hash ^= AudioType.GetHashCode(); + if (color_ != null) hash ^= Color.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (color_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (color_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAudioType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AudioType); + } + if (color_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExternalType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAudioType) { + AudioType = other.AudioType; + } + if (other.color_ != null) { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + Color.MergeFrom(other.Color); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.TestAudioType) input.ReadEnum(); + break; + } + case 26: { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + input.ReadMessage(Color); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.TestAudioType) input.ReadEnum(); + break; + } + case 26: { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + input.ReadMessage(Color); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestColor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestColor()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[164]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor(TestColor other) : this() { + _hasBits0 = other._hasBits0; + r_ = other.r_; + g_ = other.g_; + b_ = other.b_; + a_ = other.a_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor Clone() { + return new TestColor(this); + } + + /// Field number for the "r" field. + public const int RFieldNumber = 1; + private readonly static float RDefaultValue = 0F; + + private float r_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float R { + get { if ((_hasBits0 & 1) != 0) { return r_; } else { return RDefaultValue; } } + set { + _hasBits0 |= 1; + r_ = value; + } + } + /// Gets whether the "r" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasR { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "r" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearR() { + _hasBits0 &= ~1; + } + + /// Field number for the "g" field. + public const int GFieldNumber = 2; + private readonly static float GDefaultValue = 0F; + + private float g_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float G { + get { if ((_hasBits0 & 2) != 0) { return g_; } else { return GDefaultValue; } } + set { + _hasBits0 |= 2; + g_ = value; + } + } + /// Gets whether the "g" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasG { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "g" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearG() { + _hasBits0 &= ~2; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 3; + private readonly static float BDefaultValue = 0F; + + private float b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float B { + get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 4; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~4; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private readonly static float ADefaultValue = 0F; + + private float a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float A { + get { if ((_hasBits0 & 8) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 8; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestColor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestColor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasR) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); + if (HasG) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); + if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); + if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasR) { + size += 1 + 4; + } + if (HasG) { + size += 1 + 4; + } + if (HasB) { + size += 1 + 4; + } + if (HasA) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestColor other) { + if (other == null) { + return; + } + if (other.HasR) { + R = other.R; + } + if (other.HasG) { + G = other.G; + } + if (other.HasB) { + B = other.B; + } + if (other.HasA) { + A = other.A; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[165]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2(TestDefineFromExcel2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2 Clone() { + return new TestDefineFromExcel2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestETestQuality X13DefaultValue = global::Cfg.TestETestQuality.A; + + private global::Cfg.TestETestQuality x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestETestQuality X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 8; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 9; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 64) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 64; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~64; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcel2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestExcelBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExcelBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[166]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1(TestTestExcelBean1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1 Clone() { + return new TestTestExcelBean1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static string X2DefaultValue = ""; + + private string x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X2 { + get { return x2_ ?? X2DefaultValue; } + set { + x2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return x2_ != null; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + x2_ = null; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static float X4DefaultValue = 0F; + + private float x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExcelBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExcelBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X4, other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X4); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExcelBean1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestDesc()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[167]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc(TestTestDesc other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + a1_ = other.a1_; + a2_ = other.a2_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc Clone() { + return new TestTestDesc(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 3; + private readonly static int A1DefaultValue = 0; + + private int a1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A1 { + get { if ((_hasBits0 & 2) != 0) { return a1_; } else { return A1DefaultValue; } } + set { + _hasBits0 |= 2; + a1_ = value; + } + } + /// Gets whether the "a1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "a1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA1() { + _hasBits0 &= ~2; + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 4; + private readonly static int A2DefaultValue = 0; + + private int a2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A2 { + get { if ((_hasBits0 & 4) != 0) { return a2_; } else { return A2DefaultValue; } } + set { + _hasBits0 |= 4; + a2_ = value; + } + } + /// Gets whether the "a2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "a2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 5; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (A1 != other.A1) return false; + if (A2 != other.A2) return false; + if (!object.Equals(X1, other.X1)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasA1) hash ^= A1.GetHashCode(); + if (HasA2) hash ^= A2.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasA1) { + output.WriteRawTag(24); + output.WriteInt32(A1); + } + if (HasA2) { + output.WriteRawTag(32); + output.WriteInt32(A2); + } + if (x1_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X1); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasA1) { + output.WriteRawTag(24); + output.WriteInt32(A1); + } + if (HasA2) { + output.WriteRawTag(32); + output.WriteInt32(A2); + } + if (x1_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X1); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasA1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A1); + } + if (HasA2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A2); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestDesc other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasA1) { + A1 = other.A1; + } + if (other.HasA2) { + A2 = other.A2; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + A1 = input.ReadInt32(); + break; + } + case 32: { + A2 = input.ReadInt32(); + break; + } + case 42: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 50: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 58: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + A1 = input.ReadInt32(); + break; + } + case 32: { + A2 = input.ReadInt32(); + break; + } + case 42: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 50: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 58: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[168]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard(AiTbBlackboard other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard Clone() { + return new AiTbBlackboard(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBlackboard.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBlackboard other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[169]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree(AiTbBehaviorTree other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree Clone() { + return new AiTbBehaviorTree(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBehaviorTree.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBehaviorTree other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintTbClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintTbClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[170]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz(BlueprintTbClazz other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz Clone() { + return new BlueprintTbClazz(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintTbClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintTbClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintTbClazz other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusTbDrop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusTbDrop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[171]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop(BonusTbDrop other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop Clone() { + return new BonusTbDrop(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusDropInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusTbDrop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusTbDrop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusTbDrop other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonTbGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonTbGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[172]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig(CommonTbGlobalConfig other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig Clone() { + return new CommonTbGlobalConfig(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CommonGlobalConfig.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonTbGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonTbGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonTbGlobalConfig other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorTbErrorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorTbErrorInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[173]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo(ErrorTbErrorInfo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo Clone() { + return new ErrorTbErrorInfo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ErrorErrorInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorTbErrorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorTbErrorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorTbErrorInfo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorTbCodeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorTbCodeInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[174]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo(ErrorTbCodeInfo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo Clone() { + return new ErrorTbCodeInfo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ErrorCodeInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorTbCodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorTbCodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorTbCodeInfo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[175]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem(ItemTbItem other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem Clone() { + return new ItemTbItem(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItem.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItem other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItemFunc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItemFunc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[176]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc(ItemTbItemFunc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc Clone() { + return new ItemTbItemFunc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItemFunction.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItemFunc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItemFunc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItemFunc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItemExtra : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItemExtra()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[177]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra(ItemTbItemExtra other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra Clone() { + return new ItemTbItemExtra(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItemExtra.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItemExtra); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItemExtra other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItemExtra other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[178]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo(L10nTbL10NDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo Clone() { + return new L10nTbL10NDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nL10NDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbL10NDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[179]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo(L10nTbPatchDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo Clone() { + return new L10nTbPatchDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nPatchDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbPatchDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailTbSystemMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailTbSystemMail()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[180]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail(MailTbSystemMail other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail Clone() { + return new MailTbSystemMail(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.MailSystemMail.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailTbSystemMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailTbSystemMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailTbSystemMail other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailTbGlobalMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailTbGlobalMail()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[181]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail(MailTbGlobalMail other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail Clone() { + return new MailTbGlobalMail(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.MailGlobalMail.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailTbGlobalMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailTbGlobalMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailTbGlobalMail other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleTbRoleLevelExpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleTbRoleLevelExpAttr()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[182]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr(RoleTbRoleLevelExpAttr other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr Clone() { + return new RoleTbRoleLevelExpAttr(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.RoleLevelExpAttr.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleTbRoleLevelExpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleTbRoleLevelExpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleTbRoleLevelExpAttr other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleTbRoleLevelBonusCoefficient : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleTbRoleLevelBonusCoefficient()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[183]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient(RoleTbRoleLevelBonusCoefficient other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient Clone() { + return new RoleTbRoleLevelBonusCoefficient(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.RoleLevelBonus.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleTbRoleLevelBonusCoefficient); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleTbRoleLevelBonusCoefficient other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleTbRoleLevelBonusCoefficient other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTbTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTbTestTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[184]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag(TagTbTestTag other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag Clone() { + return new TagTbTestTag(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TagTestTag.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTbTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTbTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTbTestTag other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbFullTypes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbFullTypes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[185]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes(TestTbFullTypes other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes Clone() { + return new TestTbFullTypes(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbFullTypes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbFullTypes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbFullTypes other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbSingleton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbSingleton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[186]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton(TestTbSingleton other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton Clone() { + return new TestTbSingleton(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoSingletonType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbSingleton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbSingleton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbSingleton other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[187]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList(TestTbNotIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList Clone() { + return new TestTbNotIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestNotIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbNotIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[188]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList(TestTbMultiUnionIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList Clone() { + return new TestTbMultiUnionIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiUnionIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiUnionIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[189]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList(TestTbMultiIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList Clone() { + return new TestTbMultiIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDataFromMisc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDataFromMisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[190]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc(TestTbDataFromMisc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc Clone() { + return new TestTbDataFromMisc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDataFromMisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDataFromMisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDataFromMisc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[191]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord(TestTbMultiRowRecord other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord Clone() { + return new TestTbMultiRowRecord(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowRecord.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowRecord other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[192]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle(TestTbMultiRowTitle other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle Clone() { + return new TestTbMultiRowTitle(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowTitle.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowTitle other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestNull()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[193]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull(TestTbTestNull other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull Clone() { + return new TestTbTestNull(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestNull.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestNull other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoPrimitive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoPrimitive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[194]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive(TestTbDemoPrimitive other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive Clone() { + return new TestTbDemoPrimitive(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoPrimitiveTypesTable.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoPrimitive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoPrimitive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoPrimitive other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[195]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString(TestTbTestString other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString Clone() { + return new TestTbTestString(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestString.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestString other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[196]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup(TestTbDemoGroup other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup Clone() { + return new TestTbDemoGroup(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_C : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_C()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[197]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C(TestTbDemoGroup_C other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C Clone() { + return new TestTbDemoGroup_C(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_C); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_C other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_C other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_S : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_S()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[198]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S(TestTbDemoGroup_S other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S Clone() { + return new TestTbDemoGroup_S(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_S); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_S other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_S other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_E : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_E()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[199]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E(TestTbDemoGroup_E other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E Clone() { + return new TestTbDemoGroup_E(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_E); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_E other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_E other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[200]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal(TestTbTestGlobal other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal Clone() { + return new TestTbTestGlobal(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestGlobal.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestGlobal other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[201]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef(TestTbTestBeRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef Clone() { + return new TestTbTestBeRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[202]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2(TestTbTestBeRef2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2 Clone() { + return new TestTbTestBeRef2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[203]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef(TestTbTestRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef Clone() { + return new TestTbTestRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSize()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[204]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize(TestTbTestSize other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize Clone() { + return new TestTbTestSize(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSize.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSize other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[205]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet(TestTbTestSet other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet Clone() { + return new TestTbTestSet(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSet.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSet other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDetectCsvEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDetectCsvEncoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[206]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding(TestTbDetectCsvEncoding other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding Clone() { + return new TestTbDetectCsvEncoding(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDetectEncoding.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDetectCsvEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDetectCsvEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDetectCsvEncoding other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[207]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel(TestTbDefineFromExcel other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel Clone() { + return new TestTbDefineFromExcel(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcel.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcelOne : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcelOne()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[208]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne(TestTbDefineFromExcelOne other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne Clone() { + return new TestTbDefineFromExcelOne(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcelOne.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcelOne); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcelOne other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcelOne other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestIndex()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[209]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex(TestTbTestIndex other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex Clone() { + return new TestTbTestIndex(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestIndex.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestIndex other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[210]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap(TestTbTestMap other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap Clone() { + return new TestTbTestMap(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMap.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMap other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[211]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson(TestTbExcelFromJson other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson Clone() { + return new TestTbExcelFromJson(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJson.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJson other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[212]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1(TestTbCompositeJsonTable1 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1 Clone() { + return new TestTbCompositeJsonTable1(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable1 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[213]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2(TestTbCompositeJsonTable2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2 Clone() { + return new TestTbCompositeJsonTable2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[214]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3(TestTbCompositeJsonTable3 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3 Clone() { + return new TestTbCompositeJsonTable3(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable3.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable3 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[215]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow(TestTbExcelFromJsonMultiRow other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow Clone() { + return new TestTbExcelFromJsonMultiRow(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJsonMultiRow.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSep()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[216]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep(TestTbTestSep other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep Clone() { + return new TestTbTestSep(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSep.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSep other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestExternalType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestExternalType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[217]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType(TestTbTestExternalType other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType Clone() { + return new TestTbTestExternalType(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestExternalType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestExternalType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestExternalType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestExternalType other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroupDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroupDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[218]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel(TestTbDemoGroupDefineFromExcel other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel Clone() { + return new TestTbDemoGroupDefineFromExcel(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroupDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroupDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroupDefineFromExcel other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[219]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2(TestTbDefineFromExcel2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2 Clone() { + return new TestTbDefineFromExcel2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcel2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestExcelBean : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestExcelBean()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[220]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean(TestTbTestExcelBean other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean Clone() { + return new TestTbTestExcelBean(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestExcelBean1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestExcelBean); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestExcelBean other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestExcelBean other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[221]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc(TestTbTestDesc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc Clone() { + return new TestTbTestDesc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestDesc.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestDesc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/luban_examples/Projects/Protobuf2_bin/Gen/Schema.cs b/luban_examples/Projects/Protobuf2_bin/Gen/Schema.cs new file mode 100644 index 00000000..0110196a --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/Gen/Schema.cs @@ -0,0 +1,49554 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Cfg { + + /// Holder for reflection information generated from schema.proto + public static partial class SchemaReflection { + + #region Descriptor + /// File descriptor for schema.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SchemaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxzY2hlbWEucHJvdG8SA2NmZyJEChJUZXN0VGVzdEV4Y2VsQmVhbjESCgoC", + "eDEYASACKAUSCgoCeDIYAiACKAkSCgoCeDMYAyACKAUSCgoCeDQYBCACKAIi", + "ZwoMQWlCbGFja2JvYXJkEgwKBG5hbWUYASACKAkSDAoEZGVzYxgCIAIoCRIT", + "CgtwYXJlbnRfbmFtZRgDIAIoCRImCgRrZXlzGAQgAygLMhQuY2ZnLkFpQmxh", + "Y2tib2FyZEtleUICEAAieAoPQWlCbGFja2JvYXJkS2V5EgwKBG5hbWUYASAC", + "KAkSDAoEZGVzYxgCIAIoCRIRCglpc19zdGF0aWMYAyACKAgSHQoEdHlwZRgE", + "IAIoDjIPLmNmZy5BaUVLZXlUeXBlEhcKD3R5cGVfY2xhc3NfbmFtZRgFIAIo", + "CSJxCg5BaUJlaGF2aW9yVHJlZRIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJ", + "EgwKBGRlc2MYAyACKAkSFQoNYmxhY2tib2FyZF9pZBgEIAIoCRIgCgRyb290", + "GAUgAigLMhIuY2ZnLkFpQ29tcG9zZU5vZGUi1ggKBkFpTm9kZRI1ChFVZVNl", + "dERlZmF1bHRGb2N1cxgBIAEoCzIYLmNmZy5BaVVlU2V0RGVmYXVsdEZvY3Vz", + "SAASOwoURXhlY3V0ZVRpbWVTdGF0aXN0aWMYAiABKAsyGy5jZmcuQWlFeGVj", + "dXRlVGltZVN0YXRpc3RpY0gAEisKDENob29zZVRhcmdldBgDIAEoCzITLmNm", + "Zy5BaUNob29zZVRhcmdldEgAEi8KDktlZXBGYWNlVGFyZ2V0GAQgASgLMhUu", + "Y2ZnLkFpS2VlcEZhY2VUYXJnZXRIABIvCg5HZXRPd25lclBsYXllchgFIAEo", + "CzIVLmNmZy5BaUdldE93bmVyUGxheWVySAASQwoYVXBkYXRlRGFpbHlCZWhh", + "dmlvclByb3BzGAYgASgLMh8uY2ZnLkFpVXBkYXRlRGFpbHlCZWhhdmlvclBy", + "b3BzSAASHwoGVWVMb29wGAcgASgLMg0uY2ZnLkFpVWVMb29wSAASJwoKVWVD", + "b29sZG93bhgIIAEoCzIRLmNmZy5BaVVlQ29vbGRvd25IABIpCgtVZVRpbWVM", + "aW1pdBgJIAEoCzISLmNmZy5BaVVlVGltZUxpbWl0SAASKwoMVWVCbGFja2Jv", + "YXJkGAogASgLMhMuY2ZnLkFpVWVCbGFja2JvYXJkSAASLwoOVWVGb3JjZVN1", + "Y2Nlc3MYCyABKAsyFS5jZmcuQWlVZUZvcmNlU3VjY2Vzc0gAEisKDElzQXRM", + "b2NhdGlvbhgMIAEoCzITLmNmZy5BaUlzQXRMb2NhdGlvbkgAEjMKEERpc3Rh", + "bmNlTGVzc1RoYW4YDSABKAsyFy5jZmcuQWlEaXN0YW5jZUxlc3NUaGFuSAAS", + "IwoIU2VxdWVuY2UYDiABKAsyDy5jZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVj", + "dG9yGA8gASgLMg8uY2ZnLkFpU2VsZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxl", + "bBgQIAEoCzIVLmNmZy5BaVNpbXBsZVBhcmFsbGVsSAASHwoGVWVXYWl0GBEg", + "ASgLMg0uY2ZnLkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUY", + "EiABKAsyGy5jZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVU", + "b1RhcmdldBgTIAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29z", + "ZVNraWxsGBQgASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9S", + "YW5kb21Mb2NhdGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0", + "aW9uSAASLwoOTW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9M", + "b2NhdGlvbkgAEicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1By", + "aW50SABCBwoFdmFsdWUi3AIKCUFpU2VydmljZRI1ChFVZVNldERlZmF1bHRG", + "b2N1cxgBIAEoCzIYLmNmZy5BaVVlU2V0RGVmYXVsdEZvY3VzSAASOwoURXhl", + "Y3V0ZVRpbWVTdGF0aXN0aWMYAiABKAsyGy5jZmcuQWlFeGVjdXRlVGltZVN0", + "YXRpc3RpY0gAEisKDENob29zZVRhcmdldBgDIAEoCzITLmNmZy5BaUNob29z", + "ZVRhcmdldEgAEi8KDktlZXBGYWNlVGFyZ2V0GAQgASgLMhUuY2ZnLkFpS2Vl", + "cEZhY2VUYXJnZXRIABIvCg5HZXRPd25lclBsYXllchgFIAEoCzIVLmNmZy5B", + "aUdldE93bmVyUGxheWVySAASQwoYVXBkYXRlRGFpbHlCZWhhdmlvclByb3Bz", + "GAYgASgLMh8uY2ZnLkFpVXBkYXRlRGFpbHlCZWhhdmlvclByb3BzSABCBwoF", + "dmFsdWUiSgoTQWlVZVNldERlZmF1bHRGb2N1cxIKCgJpZBgBIAIoBRIRCglu", + "b2RlX25hbWUYAiACKAkSFAoMa2V5Ym9hcmRfa2V5GAMgAigJIjcKFkFpRXhl", + "Y3V0ZVRpbWVTdGF0aXN0aWMSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIg", + "AigJIkoKDkFpQ2hvb3NlVGFyZ2V0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFt", + "ZRgCIAIoCRIZChFyZXN1bHRfdGFyZ2V0X2tleRgDIAIoCSJLChBBaUtlZXBG", + "YWNlVGFyZ2V0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIYChB0", + "YXJnZXRfYWN0b3Jfa2V5GAMgAigJIksKEEFpR2V0T3duZXJQbGF5ZXISCgoC", + "aWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhgKEHBsYXllcl9hY3Rvcl9r", + "ZXkYAyACKAkizAIKGkFpVXBkYXRlRGFpbHlCZWhhdmlvclByb3BzEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRITCgtzYXRpZXR5X2tleRgDIAIo", + "CRISCgplbmVyZ3lfa2V5GAQgAigJEhAKCG1vb2Rfa2V5GAUgAigJEiMKG3Nh", + "dGlldHlfbG93ZXJfdGhyZXNob2xkX2tleRgGIAIoCRIjChtzYXRpZXR5X3Vw", + "cGVyX3RocmVzaG9sZF9rZXkYByACKAkSIgoaZW5lcmd5X2xvd2VyX3RocmVz", + "aG9sZF9rZXkYCCACKAkSIgoaZW5lcmd5X3VwcGVyX3RocmVzaG9sZF9rZXkY", + "CSACKAkSIAoYbW9vZF9sb3dlcl90aHJlc2hvbGRfa2V5GAogAigJEiAKGG1v", + "b2RfdXBwZXJfdGhyZXNob2xkX2tleRgLIAIoCSLLAgoLQWlEZWNvcmF0b3IS", + "HwoGVWVMb29wGAcgASgLMg0uY2ZnLkFpVWVMb29wSAASJwoKVWVDb29sZG93", + "bhgIIAEoCzIRLmNmZy5BaVVlQ29vbGRvd25IABIpCgtVZVRpbWVMaW1pdBgJ", + "IAEoCzISLmNmZy5BaVVlVGltZUxpbWl0SAASKwoMVWVCbGFja2JvYXJkGAog", + "ASgLMhMuY2ZnLkFpVWVCbGFja2JvYXJkSAASLwoOVWVGb3JjZVN1Y2Nlc3MY", + "CyABKAsyFS5jZmcuQWlVZUZvcmNlU3VjY2Vzc0gAEisKDElzQXRMb2NhdGlv", + "bhgMIAEoCzITLmNmZy5BaUlzQXRMb2NhdGlvbkgAEjMKEERpc3RhbmNlTGVz", + "c1RoYW4YDSABKAsyFy5jZmcuQWlEaXN0YW5jZUxlc3NUaGFuSABCBwoFdmFs", + "dWUipwEKCEFpVWVMb29wEgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIo", + "CRIuCg9mbG93X2Fib3J0X21vZGUYAyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0", + "TW9kZRIRCgludW1fbG9vcHMYBCACKAUSFQoNaW5maW5pdGVfbG9vcBgFIAIo", + "CBIiChppbmZpbml0ZV9sb29wX3RpbWVvdXRfdGltZRgGIAIoAiJ0CgxBaVVl", + "Q29vbGRvd24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zs", + "b3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlEhUK", + "DWNvb2xkb3duX3RpbWUYBCACKAIicgoNQWlVZVRpbWVMaW1pdBIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMg", + "AigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1vZGUSEgoKbGltaXRfdGltZRgEIAIo", + "AiLYAQoOQWlVZUJsYWNrYm9hcmQSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1l", + "GAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93", + "QWJvcnRNb2RlEjMKD25vdGlmeV9vYnNlcnZlchgEIAIoDjIaLmNmZy5BaUVO", + "b3RpZnlPYnNlcnZlck1vZGUSFgoOYmxhY2tib2FyZF9rZXkYBSACKAkSKgoJ", + "a2V5X3F1ZXJ5GAYgAigLMhcuY2ZnLkFpS2V5UXVlcnlPcGVyYXRvciKSAQoS", + "QWlLZXlRdWVyeU9wZXJhdG9yEh0KBUlzU2V0GAEgASgLMgwuY2ZnLkFpSXNT", + "ZXRIABIjCghJc05vdFNldBgCIAEoCzIPLmNmZy5BaUlzTm90U2V0SAASLwoO", + "QmluYXJ5T3BlcmF0b3IYAyABKAsyFS5jZmcuQWlCaW5hcnlPcGVyYXRvckgA", + "QgcKBXZhbHVlIgkKB0FpSXNTZXQiDAoKQWlJc05vdFNldCJQChBBaUJpbmFy", + "eU9wZXJhdG9yEh4KBG9wZXIYASACKA4yEC5jZmcuQWlFT3BlcmF0b3ISHAoE", + "ZGF0YRgCIAIoCzIOLmNmZy5BaUtleURhdGEi0AEKCUFpS2V5RGF0YRIrCgxG", + "bG9hdEtleURhdGEYASABKAsyEy5jZmcuQWlGbG9hdEtleURhdGFIABInCgpJ", + "bnRLZXlEYXRhGAIgASgLMhEuY2ZnLkFpSW50S2V5RGF0YUgAEi0KDVN0cmlu", + "Z0tleURhdGEYAyABKAsyFC5jZmcuQWlTdHJpbmdLZXlEYXRhSAASNQoRQmxh", + "Y2tib2FyZEtleURhdGEYBCABKAsyGC5jZmcuQWlCbGFja2JvYXJkS2V5RGF0", + "YUgAQgcKBXZhbHVlIh8KDkFpRmxvYXRLZXlEYXRhEg0KBXZhbHVlGAEgAigC", + "Ih0KDEFpSW50S2V5RGF0YRINCgV2YWx1ZRgBIAIoBSIgCg9BaVN0cmluZ0tl", + "eURhdGESDQoFdmFsdWUYASACKAkiJAoTQWlCbGFja2JvYXJkS2V5RGF0YRIN", + "CgV2YWx1ZRgBIAIoCSJhChBBaVVlRm9yY2VTdWNjZXNzEgoKAmlkGAEgAigF", + "EhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9mbG93X2Fib3J0X21vZGUYAyACKA4y", + "FS5jZmcuQWlFRmxvd0Fib3J0TW9kZSKrAQoOQWlJc0F0TG9jYXRpb24SCgoC", + "aWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9k", + "ZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlEhkKEWFjY2VwdGFibGVf", + "cmFkaXVzGAQgAigCEhQKDGtleWJvYXJkX2tleRgFIAIoCRIZChFpbnZlcnNl", + "X2NvbmRpdGlvbhgGIAIoCCK1AQoSQWlEaXN0YW5jZUxlc3NUaGFuEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9mbG93X2Fib3J0X21vZGUY", + "AyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0TW9kZRISCgphY3RvcjFfa2V5GAQg", + "AigJEhIKCmFjdG9yMl9rZXkYBSACKAkSEAoIZGlzdGFuY2UYBiACKAISFgoO", + "cmV2ZXJzZV9yZXN1bHQYByACKAgi3QMKCkFpRmxvd05vZGUSIwoIU2VxdWVu", + "Y2UYDiABKAsyDy5jZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVjdG9yGA8gASgL", + "Mg8uY2ZnLkFpU2VsZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxlbBgQIAEoCzIV", + "LmNmZy5BaVNpbXBsZVBhcmFsbGVsSAASHwoGVWVXYWl0GBEgASgLMg0uY2Zn", + "LkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUYEiABKAsyGy5j", + "ZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVUb1RhcmdldBgT", + "IAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29zZVNraWxsGBQg", + "ASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9SYW5kb21Mb2Nh", + "dGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0aW9uSAASLwoO", + "TW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9Mb2NhdGlvbkgA", + "EicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1ByaW50SABCBwoF", + "dmFsdWUikwEKDUFpQ29tcG9zZU5vZGUSIwoIU2VxdWVuY2UYDiABKAsyDy5j", + "ZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVjdG9yGA8gASgLMg8uY2ZnLkFpU2Vs", + "ZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxlbBgQIAEoCzIVLmNmZy5BaVNpbXBs", + "ZVBhcmFsbGVsSABCBwoFdmFsdWUiogEKCkFpU2VxdWVuY2USCgoCaWQYASAC", + "KAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5j", + "ZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFp", + "U2VydmljZUICEAASJQoIY2hpbGRyZW4YBSADKAsyDy5jZmcuQWlGbG93Tm9k", + "ZUICEAAiogEKCkFpU2VsZWN0b3ISCgoCaWQYASACKAUSEQoJbm9kZV9uYW1l", + "GAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JC", + "AhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASJQoI", + "Y2hpbGRyZW4YBSADKAsyDy5jZmcuQWlGbG93Tm9kZUICEAAi9AEKEEFpU2lt", + "cGxlUGFyYWxsZWwSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigK", + "CmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNl", + "cnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASJwoLZmluaXNoX21v", + "ZGUYBSACKA4yEi5jZmcuQWlFRmluaXNoTW9kZRIeCgltYWluX3Rhc2sYBiAC", + "KAsyCy5jZmcuQWlUYXNrEigKD2JhY2tncm91bmRfbm9kZRgHIAIoCzIPLmNm", + "Zy5BaUZsb3dOb2RlIt4CCgZBaVRhc2sSHwoGVWVXYWl0GBEgASgLMg0uY2Zn", + "LkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUYEiABKAsyGy5j", + "ZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVUb1RhcmdldBgT", + "IAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29zZVNraWxsGBQg", + "ASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9SYW5kb21Mb2Nh", + "dGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0aW9uSAASLwoO", + "TW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9Mb2NhdGlvbkgA", + "EicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1ByaW50SABCBwoF", + "dmFsdWUiwwEKCEFpVWVXYWl0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgC", + "IAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAuY2ZnLkFpRGVjb3JhdG9yQgIQ", + "ABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5BaVNlcnZpY2VCAhAAEhsKE2ln", + "bm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSEQoJd2FpdF90aW1lGAYgAigCEhgK", + "EHJhbmRvbV9kZXZpYXRpb24YByACKAIivAEKFkFpVWVXYWl0QmxhY2tib2Fy", + "ZFRpbWUSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29y", + "YXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2Vz", + "GAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3RhcnRf", + "c2VsZhgFIAIoCBIWCg5ibGFja2JvYXJkX2tleRgGIAIoCSLRAQoOQWlNb3Zl", + "VG9UYXJnZXQSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRl", + "Y29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZp", + "Y2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3Rh", + "cnRfc2VsZhgFIAIoCBIYChB0YXJnZXRfYWN0b3Jfa2V5GAYgAigJEhkKEWFj", + "Y2VwdGFibGVfcmFkaXVzGAcgAigCItIBCg1BaUNob29zZVNraWxsEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygL", + "MhAuY2ZnLkFpRGVjb3JhdG9yQgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNm", + "Zy5BaVNlcnZpY2VCAhAAEhsKE2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgS", + "GAoQdGFyZ2V0X2FjdG9yX2tleRgGIAIoCRIbChNyZXN1bHRfc2tpbGxfaWRf", + "a2V5GAcgAigJItEBChZBaU1vdmVUb1JhbmRvbUxvY2F0aW9uEgoKAmlkGAEg", + "AigFEhEKCW5vZGVfbmFtZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAu", + "Y2ZnLkFpRGVjb3JhdG9yQgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5B", + "aVNlcnZpY2VCAhAAEhsKE2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSGwoT", + "b3JpZ2luX3Bvc2l0aW9uX2tleRgGIAIoCRIOCgZyYWRpdXMYByACKAIiuQEK", + "EEFpTW92ZVRvTG9jYXRpb24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIg", + "AigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAA", + "EiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdu", + "b3JlX3Jlc3RhcnRfc2VsZhgFIAIoCBIZChFhY2NlcHRhYmxlX3JhZGl1cxgG", + "IAIoAiKoAQoMQWlEZWJ1Z1ByaW50EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFt", + "ZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAuY2ZnLkFpRGVjb3JhdG9y", + "QgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5BaVNlcnZpY2VCAhAAEhsK", + "E2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSDAoEdGV4dBgGIAIoCSLPBAoS", + "Q29tbW9uR2xvYmFsQ29uZmlnEhQKDGJhZ19jYXBhY2l0eRgBIAIoBRIcChRi", + "YWdfY2FwYWNpdHlfc3BlY2lhbBgCIAIoBRIkChxiYWdfdGVtcF9leHBlbmRh", + "YmxlX2NhcGFjaXR5GAMgAigFEh4KFmJhZ190ZW1wX3Rvb2xfY2FwYWNpdHkY", + "BCACKAUSGQoRYmFnX2luaXRfY2FwYWNpdHkYBSACKAUSGgoScXVpY2tfYmFn", + "X2NhcGFjaXR5GAYgAigFEhoKEmNsb3RoX2JhZ19jYXBhY2l0eRgHIAIoBRIf", + "ChdjbG90aF9iYWdfaW5pdF9jYXBhY2l0eRgIIAIoBRIiChpjbG90aF9iYWdf", + "Y2FwYWNpdHlfc3BlY2lhbBgJIAIoBRIeChZiYWdfaW5pdF9pdGVtc19kcm9w", + "X2lkGAogASgFEhkKEW1haWxfYm94X2NhcGFjaXR5GAsgAigFEhYKDmRhbWFn", + "ZV9wYXJhbV9jGAwgAigCEhYKDmRhbWFnZV9wYXJhbV9lGA0gAigCEhYKDmRh", + "bWFnZV9wYXJhbV9mGA4gAigCEhYKDmRhbWFnZV9wYXJhbV9kGA8gAigCEhIK", + "CnJvbGVfc3BlZWQYECACKAISFQoNbW9uc3Rlcl9zcGVlZBgRIAIoAhITCgtp", + "bml0X2VuZXJneRgSIAIoBRIUCgxpbml0X3ZpYWxpdHkYEyACKAUSEwoLbWF4", + "X3ZpYWxpdHkYFCACKAUSIQoZcGVyX3ZpYWxpdHlfcmVjb3ZlcnlfdGltZRgV", + "IAIoBSKPAgoISXRlbUl0ZW0SCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIn", + "CgptYWpvcl90eXBlGAMgAigOMhMuY2ZnLkl0ZW1FTWFqb3JUeXBlEicKCm1p", + "bm9yX3R5cGUYBCACKA4yEy5jZmcuSXRlbUVNaW5vclR5cGUSFAoMbWF4X3Bp", + "bGVfbnVtGAUgAigFEiYKB3F1YWxpdHkYBiACKA4yFS5jZmcuSXRlbUVJdGVt", + "UXVhbGl0eRIMCgRpY29uGAcgAigJEhYKDmljb25fYmFja2dyb3VkGAggAigJ", + "EhEKCWljb25fbWFzaxgJIAIoCRIMCgRkZXNjGAogAigJEhIKCnNob3dfb3Jk", + "ZXIYCyACKAUiKAoMTDEwbkwxME5EZW1vEgoKAmlkGAEgAigFEgwKBHRleHQY", + "AiACKAkiKgoNTDEwblBhdGNoRGVtbxIKCgJpZBgBIAIoBRINCgV2YWx1ZRgC", + "IAIoBSInCgpUYWdUZXN0VGFnEgoKAmlkGAEgAigFEg0KBXZhbHVlGAIgAigJ", + "It0DCg1UZXN0RGVtb1R5cGUyEgoKAng0GAEgAigFEgoKAngxGAIgAigIEgoK", + "AngyGAMgAigFEgoKAngzGAQgAigFEgoKAng1GAUgAigDEgoKAng2GAYgAigC", + "EgoKAng3GAcgAigBEgwKBHg4XzAYCCACKAUSCgoCeDgYCSACKAUSCgoCeDkY", + "CiACKAMSCwoDeDEwGAsgAigJEh8KA3gxMhgMIAIoCzISLmNmZy5UZXN0RGVt", + "b1R5cGUxEh4KA3gxMxgNIAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0", + "GA4gAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgPIAIoCRIKCgJ0", + "MRgQIAIoAxIOCgJrMRgRIAMoBUICEAESDgoCazIYEiADKAVCAhABEg4KAms1", + "GBMgAygFQgIQARImCgJrOBgUIAMoCzIaLmNmZy5UZXN0RGVtb1R5cGUyLks4", + "RW50cnkSHwoCazkYFSADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASJQoDazE1", + "GBYgAygLMhQuY2ZnLlRlc3REZW1vRHluYW1pY0ICEAAaKQoHSzhFbnRyeRIL", + "CgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIhsKDVRlc3REZW1vVHlw", + "ZTESCgoCeDEYASACKAUirwEKD1Rlc3REZW1vRHluYW1pYxIhCgZEZW1vRDIY", + "ASABKAsyDy5jZmcuVGVzdERlbW9EMkgAEiEKBkRlbW9FMRgCIAEoCzIPLmNm", + "Zy5UZXN0RGVtb0UxSAASKgoIUm9sZUluZm8YAyABKAsyFi5jZmcuVGVzdExv", + "Z2luUm9sZUluZm9IABIhCgZEZW1vRDUYBCABKAsyDy5jZmcuVGVzdERlbW9E", + "NUgAQgcKBXZhbHVlIiQKClRlc3REZW1vRDISCgoCeDEYASACKAUSCgoCeDIY", + "AiACKAUiZAoKVGVzdERlbW9EMxIhCgZEZW1vRTEYAiABKAsyDy5jZmcuVGVz", + "dERlbW9FMUgAEioKCFJvbGVJbmZvGAMgASgLMhYuY2ZnLlRlc3RMb2dpblJv", + "bGVJbmZvSABCBwoFdmFsdWUiMAoKVGVzdERlbW9FMRIKCgJ4MRgBIAIoBRIK", + "CgJ4MxgCIAIoBRIKCgJ4NBgDIAIoBSI8ChFUZXN0TG9naW5Sb2xlSW5mbxIK", + "CgJ4MRgBIAIoBRIKCgJ4MxgCIAIoBRIPCgdyb2xlX2lkGAMgAigDIj4KClRl", + "c3REZW1vRDUSCgoCeDEYASACKAUSJAoEdGltZRgCIAIoCzIWLmNmZy5UZXN0", + "RGF0ZVRpbWVSYW5nZSI5ChFUZXN0RGF0ZVRpbWVSYW5nZRISCgpzdGFydF90", + "aW1lGAEgAigDEhAKCGVuZF90aW1lGAIgAigDIiQKClRlc3REZW1vRTISCgoC", + "eTEYASABKAUSCgoCeTIYAiACKAgiVQoVVGVzdERlbW9TaW5nbGV0b25UeXBl", + "EgoKAmlkGAEgAigFEgwKBG5hbWUYAiACKAkSIgoEZGF0ZRgDIAIoCzIULmNm", + "Zy5UZXN0RGVtb0R5bmFtaWMiKAoQVGVzdE5vdEluZGV4TGlzdBIJCgF4GAEg", + "AigFEgkKAXkYAiACKAUiWwoXVGVzdE11bHRpVW5pb25JbmRleExpc3QSCwoD", + "aWQxGAEgAigFEgsKA2lkMhgCIAIoAxILCgNpZDMYAyACKAkSCwoDbnVtGAQg", + "AigFEgwKBGRlc2MYBSACKAkiVgoSVGVzdE11bHRpSW5kZXhMaXN0EgsKA2lk", + "MRgBIAIoBRILCgNpZDIYAiACKAMSCwoDaWQzGAMgAigJEgsKA251bRgEIAIo", + "BRIMCgRkZXNjGAUgAigJIvIEChJUZXN0TXVsdGlSb3dSZWNvcmQSCgoCaWQY", + "ASACKAUSDAoEbmFtZRgCIAIoCRIsCghvbmVfcm93cxgDIAMoCzIWLmNmZy5U", + "ZXN0TXVsdGlSb3dUeXBlMUICEAASLwoLbXVsdGlfcm93czEYBCADKAsyFi5j", + "ZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAEi8KC211bHRpX3Jvd3MyGAUgAygL", + "MhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUxQgIQABI8CgttdWx0aV9yb3dzNBgG", + "IAMoCzInLmNmZy5UZXN0TXVsdGlSb3dSZWNvcmQuTXVsdGlSb3dzNEVudHJ5", + "Ei8KC211bHRpX3Jvd3M1GAcgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUz", + "QgIQABI8CgttdWx0aV9yb3dzNhgIIAMoCzInLmNmZy5UZXN0TXVsdGlSb3dS", + "ZWNvcmQuTXVsdGlSb3dzNkVudHJ5EjwKC211bHRpX3Jvd3M3GAkgAygLMicu", + "Y2ZnLlRlc3RNdWx0aVJvd1JlY29yZC5NdWx0aVJvd3M3RW50cnkaSQoPTXVs", + "dGlSb3dzNEVudHJ5EgsKA2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIWLmNm", + "Zy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaSQoPTXVsdGlSb3dzNkVudHJ5EgsK", + "A2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIWLmNmZy5UZXN0TXVsdGlSb3dU", + "eXBlMjoCOAEaMQoPTXVsdGlSb3dzN0VudHJ5EgsKA2tleRgBIAEoBRINCgV2", + "YWx1ZRgCIAEoBToCOAEiKgoRVGVzdE11bHRpUm93VHlwZTESCgoCaWQYASAC", + "KAUSCQoBeBgCIAIoBSI1ChFUZXN0TXVsdGlSb3dUeXBlMhIKCgJpZBgBIAIo", + "BRIJCgF4GAIgAigFEgkKAXkYAyACKAIiSgoRVGVzdE11bHRpUm93VHlwZTMS", + "CgoCaWQYASACKAUSKQoFaXRlbXMYAiADKAsyFi5jZmcuVGVzdE11bHRpUm93", + "VHlwZTFCAhAAImwKE1Rlc3RUZXN0TXVsdGlDb2x1bW4SCgoCaWQYASACKAUS", + "FwoBYRgCIAIoCzIMLmNmZy5UZXN0Rm9vEhcKAWIYAyACKAsyDC5jZmcuVGVz", + "dEZvbxIXCgFjGAQgAigLMgwuY2ZnLlRlc3RGb28iLQoHVGVzdEZvbxIKCgJ5", + "MRgBIAIoBRIKCgJ5MhgCIAIoBRIKCgJ5MxgDIAIoBSK4AQoRVGVzdE11bHRp", + "Um93VGl0bGUSCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIXCgJ4MRgDIAIo", + "CzILLmNmZy5UZXN0SDESGQoEeDJfMBgEIAEoCzILLmNmZy5UZXN0SDISGwoC", + "eDIYBSADKAsyCy5jZmcuVGVzdEgyQgIQABIbCgJ4MxgGIAMoCzILLmNmZy5U", + "ZXN0SDJCAhAAEhsKAng0GAcgAygLMgsuY2ZnLlRlc3RIMkICEAAiLQoGVGVz", + "dEgxEhcKAnkyGAEgAigLMgsuY2ZnLlRlc3RIMhIKCgJ5MxgCIAIoBSIgCgZU", + "ZXN0SDISCgoCejIYASACKAUSCgoCejMYAiACKAUinwEKDFRlc3RUZXN0TnVs", + "bBIKCgJpZBgBIAIoBRIKCgJ4MRgCIAEoBRIdCgJ4MhgDIAEoDjIRLmNmZy5U", + "ZXN0RGVtb0VudW0SHgoCeDMYBCABKAsyEi5jZmcuVGVzdERlbW9UeXBlMRIg", + "CgJ4NBgFIAEoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWMSCgoCczEYBiABKAkS", + "CgoCczIYByABKAki4wEKG1Rlc3REZW1vUHJpbWl0aXZlVHlwZXNUYWJsZRIK", + "CgJ4MRgBIAIoCBIKCgJ4MhgCIAIoBRIKCgJ4MxgDIAIoBRIKCgJ4NBgEIAIo", + "BRIKCgJ4NRgFIAIoAxIKCgJ4NhgGIAIoAhIKCgJ4NxgHIAIoARIKCgJzMRgI", + "IAIoCRIKCgJzMhgJIAIoCRIYCgJ2MhgKIAIoCzIMLmNmZy52ZWN0b3IyEhgK", + "AnYzGAsgAigLMgwuY2ZnLnZlY3RvcjMSGAoCdjQYDCACKAsyDC5jZmcudmVj", + "dG9yNBIKCgJ0MRgNIAIoAyIfCgd2ZWN0b3IyEgkKAXgYASACKAISCQoBeRgC", + "IAIoAiIqCgd2ZWN0b3IzEgkKAXgYASACKAISCQoBeRgCIAIoAhIJCgF6GAMg", + "AigCIjUKB3ZlY3RvcjQSCQoBeBgBIAIoAhIJCgF5GAIgAigCEgkKAXoYAyAC", + "KAISCQoBdxgEIAIoAiJyCg5UZXN0VGVzdFN0cmluZxIKCgJpZBgBIAIoBRIK", + "CgJzMRgCIAIoCRIjCgNjczEYAyACKAsyFi5jZmcuVGVzdENvbXBhY3RTdHJp", + "bmcSIwoDY3MyGAQgAigLMhYuY2ZnLlRlc3RDb21wYWN0U3RyaW5nIjcKEVRl", + "c3RDb21wYWN0U3RyaW5nEgoKAmlkGAEgAigFEgoKAnMyGAIgAigJEgoKAnMz", + "GAMgAigJImwKDVRlc3REZW1vR3JvdXASCgoCaWQYASACKAUSCgoCeDEYAiAC", + "KAUSCgoCeDIYAyACKAUSCgoCeDMYBCACKAUSCgoCeDQYBSACKAUSHwoCeDUY", + "BiACKAsyEy5jZmcuVGVzdElubmVyR3JvdXAiQAoOVGVzdElubmVyR3JvdXAS", + "CgoCeTEYASACKAUSCgoCeTIYAiACKAUSCgoCeTMYAyACKAUSCgoCeTQYBCAC", + "KAUiOwoOVGVzdFRlc3RHbG9iYWwSFAoMdW5sb2NrX2VxdWlwGAEgAigFEhMK", + "C3VubG9ja19oZXJvGAIgAigFIioKDVRlc3RUZXN0QmVSZWYSCgoCaWQYASAC", + "KAUSDQoFY291bnQYAiACKAUixgMKC1Rlc3RUZXN0UmVmEgoKAmlkGAEgAigF", + "EgoKAngxGAIgAigFEgwKBHgxXzIYAyACKAUSCgoCeDIYBCACKAUSCgoCeDMY", + "BSACKAUSCgoCeDQYBiACKAUSDgoCYTEYByADKAVCAhABEg4KAmEyGAggAygF", + "QgIQARIOCgJiMRgJIAMoBUICEAESDgoCYjIYCiADKAVCAhABEg4KAmMxGAsg", + "AygFQgIQARIOCgJjMhgMIAMoBUICEAESJAoCZDEYDSADKAsyGC5jZmcuVGVz", + "dFRlc3RSZWYuRDFFbnRyeRIkCgJkMhgOIAMoCzIYLmNmZy5UZXN0VGVzdFJl", + "Zi5EMkVudHJ5EgoKAmUxGA8gAigFEgoKAmUyGBAgAigDEgoKAmUzGBEgAigJ", + "EgoKAmYxGBIgAigFEgoKAmYyGBMgAigDEgoKAmYzGBQgAigJEiMKAnMxGBUg", + "AigLMhcuY2ZnLlRlc3RSZWZEeW5hbWljQmFzZRopCgdEMUVudHJ5EgsKA2tl", + "eRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaKQoHRDJFbnRyeRILCgNrZXkY", + "ASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIkIKElRlc3RSZWZEeW5hbWljQmFz", + "ZRIjCgdSZWZCZWFuGAEgASgLMhAuY2ZnLlRlc3RSZWZCZWFuSABCBwoFdmFs", + "dWUiKQoLVGVzdFJlZkJlYW4SCQoBeBgBIAIoBRIPCgNhcnIYAiADKAVCAhAB", + "IpwBCgxUZXN0VGVzdFNpemUSCgoCaWQYASACKAUSDgoCeDEYAiADKAVCAhAB", + "Eg4KAngyGAMgAygFQgIQARIOCgJ4MxgEIAMoBUICEAESJQoCeDQYBSADKAsy", + "GS5jZmcuVGVzdFRlc3RTaXplLlg0RW50cnkaKQoHWDRFbnRyeRILCgNrZXkY", + "ASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIngKC1Rlc3RUZXN0U2V0EgoKAmlk", + "GAEgAigFEgoKAngwGAIgAigJEg4KAngxGAMgAygFQgIQARIOCgJ4MhgEIAMo", + "A0ICEAESDgoCeDMYBSADKAlCAhAAEiEKAng0GAYgAygOMhEuY2ZnLlRlc3RE", + "ZW1vRW51bUICEAAiLgoSVGVzdERldGVjdEVuY29kaW5nEgoKAmlkGAEgAigF", + "EgwKBG5hbWUYAiACKAkiiAEKDFRlc3RJdGVtQmFzZRIdCgRJdGVtGAEgASgL", + "Mg0uY2ZnLlRlc3RJdGVtSAASJwoJRXF1aXBtZW50GAIgASgLMhIuY2ZnLlRl", + "c3RFcXVpcG1lbnRIABInCglEZWNvcmF0b3IYAyABKAsyEi5jZmcuVGVzdERl", + "Y29yYXRvckgAQgcKBXZhbHVlIk4KCFRlc3RJdGVtEgoKAmlkGAEgAigFEgwK", + "BG5hbWUYAiACKAkSDAoEZGVzYxgDIAIoCRILCgNudW0YBCACKAUSDQoFcHJp", + "Y2UYBSACKAUiZwoNVGVzdEVxdWlwbWVudBIKCgJpZBgBIAIoBRIMCgRuYW1l", + "GAIgAigJEgwKBGRlc2MYAyACKAkSHwoEYXR0chgEIAIoDjIRLmNmZy5UZXN0", + "RGVtb0VudW0SDQoFdmFsdWUYBSACKAUiSQoNVGVzdERlY29yYXRvchIKCgJp", + "ZBgBIAIoBRIMCgRuYW1lGAIgAigJEgwKBGRlc2MYAyACKAkSEAoIZHVyYXRp", + "b24YBCACKAUiQQoNVGVzdFRlc3RJbmRleBIKCgJpZBgBIAIoBRIkCgRlbGVz", + "GAIgAygLMhIuY2ZnLlRlc3REZW1vVHlwZTFCAhAAIt0CCgtUZXN0VGVzdE1h", + "cBIKCgJpZBgBIAIoBRIkCgJ4MRgCIAMoCzIYLmNmZy5UZXN0VGVzdE1hcC5Y", + "MUVudHJ5EiQKAngyGAMgAygLMhguY2ZnLlRlc3RUZXN0TWFwLlgyRW50cnkS", + "JAoCeDMYBCADKAsyGC5jZmcuVGVzdFRlc3RNYXAuWDNFbnRyeRIkCgJ4NBgF", + "IAMoCzIYLmNmZy5UZXN0VGVzdE1hcC5YNEVudHJ5GikKB1gxRW50cnkSCwoD", + "a2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ARopCgdYMkVudHJ5EgsKA2tl", + "eRgBIAEoAxINCgV2YWx1ZRgCIAEoBToCOAEaKQoHWDNFbnRyeRILCgNrZXkY", + "ASABKAkSDQoFdmFsdWUYAiABKAU6AjgBGikKB1g0RW50cnkSCwoDa2V5GAEg", + "ASgFEg0KBXZhbHVlGAIgASgFOgI4ASL6AgoRVGVzdEV4Y2VsRnJvbUpzb24S", + "CgoCeDQYASACKAUSCgoCeDEYAiACKAgSCgoCeDUYAyACKAMSCgoCeDYYBCAC", + "KAISCgoCczEYBSACKAkSCgoCczIYBiACKAkSCgoCdDEYByACKAMSHwoDeDEy", + "GAggAigLMhIuY2ZnLlRlc3REZW1vVHlwZTESHgoDeDEzGAkgAigOMhEuY2Zn", + "LlRlc3REZW1vRW51bRIhCgN4MTQYCiACKAsyFC5jZmcuVGVzdERlbW9EeW5h", + "bWljEg4KAmsxGAsgAygFQgIQARIqCgJrOBgMIAMoCzIeLmNmZy5UZXN0RXhj", + "ZWxGcm9tSnNvbi5LOEVudHJ5Eh8KAms5GA0gAygLMg8uY2ZnLlRlc3REZW1v", + "RTJCAhAAEiUKA2sxNRgOIAMoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWNCAhAA", + "GikKB0s4RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASIw", + "ChdUZXN0Q29tcG9zaXRlSnNvblRhYmxlMRIKCgJpZBgBIAIoBRIJCgF4GAIg", + "AigJIjAKF1Rlc3RDb21wb3NpdGVKc29uVGFibGUyEgoKAmlkGAEgAigFEgkK", + "AXkYAiACKAUiLwoXVGVzdENvbXBvc2l0ZUpzb25UYWJsZTMSCQoBYRgBIAIo", + "BRIJCgFiGAIgAigFIlcKGVRlc3RFeGNlbEZyb21Kc29uTXVsdGlSb3cSCgoC", + "aWQYASACKAUSCQoBeBgCIAIoBRIjCgVpdGVtcxgDIAMoCzIQLmNmZy5UZXN0", + "VGVzdFJvd0ICEAAiWAoLVGVzdFRlc3RSb3cSCQoBeBgBIAIoBRIJCgF5GAIg", + "AigIEgkKAXoYAyACKAkSGQoBYRgEIAIoCzIOLmNmZy5UZXN0VGVzdDMSDQoB", + "YhgFIAMoBUICEAEiIQoJVGVzdFRlc3QzEgkKAXgYASACKAUSCQoBeRgCIAIo", + "BSKdAQoYVGVzdFRlc3RTY3JpcHRhYmxlT2JqZWN0EgoKAmlkGAEgAigFEgwK", + "BGRlc2MYAiACKAkSDAoEcmF0ZRgDIAIoAhILCgNudW0YBCACKAUSGAoCdjIY", + "BSACKAsyDC5jZmcudmVjdG9yMhIYCgJ2MxgGIAIoCzIMLmNmZy52ZWN0b3Iz", + "EhgKAnY0GAcgAigLMgwuY2ZnLnZlY3RvcjQiWgoOVGVzdFRlc3RNYXBwZXIS", + "CgoCaWQYASACKAUSIgoKYXVkaW9fdHlwZRgCIAIoDjIOLmNmZy5BdWRpb1R5", + "cGUSGAoCdjIYAyACKAsyDC5jZmcudmVjdG9yMiLYAwoQRGVmaW5lRnJvbUV4", + "Y2VsMhIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIoCBIKCgJ4NRgDIAIoAxIKCgJ4", + "NhgEIAIoAhIKCgJ4OBgFIAIoBRILCgN4MTAYBiACKAkSHgoDeDEzGAcgAigO", + "MhEuY2ZnLlRlc3REZW1vRW51bRIgCgV4MTNfMhgIIAIoDjIRLmNmZy5UZXN0", + "RGVtb0ZsYWcSIQoDeDE0GAkgAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIb", + "CgN4MTUYCiACKAsyDi5jZmcuVGVzdFNoYXBlEhgKAnYyGAsgAigLMgwuY2Zn", + "LnZlY3RvcjISCgoCdDEYDCACKAMSDgoCazEYDSADKAVCAhABEg4KAmsyGA4g", + "AygFQgIQARIpCgJrOBgPIAMoCzIdLmNmZy5EZWZpbmVGcm9tRXhjZWwyLks4", + "RW50cnkSHwoCazkYECADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASHQoDazEw", + "GBEgAygLMgwuY2ZnLnZlY3RvcjNCAhAAEh0KA2sxMRgSIAMoCzIMLmNmZy52", + "ZWN0b3I0QgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgC", + "IAEoBToCOAEiYQoJVGVzdFNoYXBlEiEKBkNpcmNsZRgBIAEoCzIPLmNmZy5U", + "ZXN0Q2lyY2xlSAASKAoJUmVjdGFuZ2xlGAIgASgLMhMuY2ZnLlRlc3QyUmVj", + "dGFuZ2xlSABCBwoFdmFsdWUiHAoKVGVzdENpcmNsZRIOCgZyYWRpdXMYASAC", + "KAIiLwoOVGVzdDJSZWN0YW5nbGUSDQoFd2lkdGgYASACKAISDgoGaGVpZ2h0", + "GAIgAigCIjoKDkFpVGJCbGFja2JvYXJkEigKCWRhdGFfbGlzdBgBIAMoCzIR", + "LmNmZy5BaUJsYWNrYm9hcmRCAhAAIj4KEEFpVGJCZWhhdmlvclRyZWUSKgoJ", + "ZGF0YV9saXN0GAEgAygLMhMuY2ZnLkFpQmVoYXZpb3JUcmVlQgIQACJGChRD", + "b21tb25UYkdsb2JhbENvbmZpZxIuCglkYXRhX2xpc3QYASADKAsyFy5jZmcu", + "Q29tbW9uR2xvYmFsQ29uZmlnQgIQACIyCgpJdGVtVGJJdGVtEiQKCWRhdGFf", + "bGlzdBgBIAMoCzINLmNmZy5JdGVtSXRlbUICEAAiOgoOTDEwblRiTDEwTkRl", + "bW8SKAoJZGF0YV9saXN0GAEgAygLMhEuY2ZnLkwxMG5MMTBORGVtb0ICEAAi", + "PAoPTDEwblRiUGF0Y2hEZW1vEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5M", + "MTBuUGF0Y2hEZW1vQgIQACI2CgxUYWdUYlRlc3RUYWcSJgoJZGF0YV9saXN0", + "GAEgAygLMg8uY2ZnLlRhZ1Rlc3RUYWdCAhAAIjwKD1Rlc3RUYkZ1bGxUeXBl", + "cxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9UeXBlMkICEAAi", + "RAoPVGVzdFRiU2luZ2xldG9uEjEKCWRhdGFfbGlzdBgBIAMoCzIaLmNmZy5U", + "ZXN0RGVtb1NpbmdsZXRvblR5cGVCAhAAIkIKElRlc3RUYk5vdEluZGV4TGlz", + "dBIsCglkYXRhX2xpc3QYASADKAsyFS5jZmcuVGVzdE5vdEluZGV4TGlzdEIC", + "EAAiUAoZVGVzdFRiTXVsdGlVbmlvbkluZGV4TGlzdBIzCglkYXRhX2xpc3QY", + "ASADKAsyHC5jZmcuVGVzdE11bHRpVW5pb25JbmRleExpc3RCAhAAIkYKFFRl", + "c3RUYk11bHRpSW5kZXhMaXN0Ei4KCWRhdGFfbGlzdBgBIAMoCzIXLmNmZy5U", + "ZXN0TXVsdGlJbmRleExpc3RCAhAAIj8KElRlc3RUYkRhdGFGcm9tTWlzYxIp", + "CglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9UeXBlMkICEAAiRgoU", + "VGVzdFRiTXVsdGlSb3dSZWNvcmQSLgoJZGF0YV9saXN0GAEgAygLMhcuY2Zn", + "LlRlc3RNdWx0aVJvd1JlY29yZEICEAAiSAoVVGVzdFRiVGVzdE11bHRpQ29s", + "dW1uEi8KCWRhdGFfbGlzdBgBIAMoCzIYLmNmZy5UZXN0VGVzdE11bHRpQ29s", + "dW1uQgIQACJEChNUZXN0VGJNdWx0aVJvd1RpdGxlEi0KCWRhdGFfbGlzdBgB", + "IAMoCzIWLmNmZy5UZXN0TXVsdGlSb3dUaXRsZUICEAAiOgoOVGVzdFRiVGVz", + "dE51bGwSKAoJZGF0YV9saXN0GAEgAygLMhEuY2ZnLlRlc3RUZXN0TnVsbEIC", + "EAAiTgoTVGVzdFRiRGVtb1ByaW1pdGl2ZRI3CglkYXRhX2xpc3QYASADKAsy", + "IC5jZmcuVGVzdERlbW9QcmltaXRpdmVUeXBlc1RhYmxlQgIQACI+ChBUZXN0", + "VGJUZXN0U3RyaW5nEioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5UZXN0VGVz", + "dFN0cmluZ0ICEAAiPAoPVGVzdFRiRGVtb0dyb3VwEikKCWRhdGFfbGlzdBgB", + "IAMoCzISLmNmZy5UZXN0RGVtb0dyb3VwQgIQACI+ChFUZXN0VGJEZW1vR3Jv", + "dXBfQxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9Hcm91cEIC", + "EAAiPgoRVGVzdFRiRGVtb0dyb3VwX1MSKQoJZGF0YV9saXN0GAEgAygLMhIu", + "Y2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4KEVRlc3RUYkRlbW9Hcm91cF9FEikK", + "CWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0RGVtb0dyb3VwQgIQACI+ChBU", + "ZXN0VGJUZXN0R2xvYmFsEioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5UZXN0", + "VGVzdEdsb2JhbEICEAAiPAoPVGVzdFRiVGVzdEJlUmVmEikKCWRhdGFfbGlz", + "dBgBIAMoCzISLmNmZy5UZXN0VGVzdEJlUmVmQgIQACI9ChBUZXN0VGJUZXN0", + "QmVSZWYyEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0VGVzdEJlUmVm", + "QgIQACI4Cg1UZXN0VGJUZXN0UmVmEicKCWRhdGFfbGlzdBgBIAMoCzIQLmNm", + "Zy5UZXN0VGVzdFJlZkICEAAiOgoOVGVzdFRiVGVzdFNpemUSKAoJZGF0YV9s", + "aXN0GAEgAygLMhEuY2ZnLlRlc3RUZXN0U2l6ZUICEAAiOAoNVGVzdFRiVGVz", + "dFNldBInCglkYXRhX2xpc3QYASADKAsyEC5jZmcuVGVzdFRlc3RTZXRCAhAA", + "IkkKF1Rlc3RUYkRldGVjdENzdkVuY29kaW5nEi4KCWRhdGFfbGlzdBgBIAMo", + "CzIXLmNmZy5UZXN0RGV0ZWN0RW5jb2RpbmdCAhAAIjcKC1Rlc3RUYkl0ZW0y", + "EigKCWRhdGFfbGlzdBgBIAMoCzIRLmNmZy5UZXN0SXRlbUJhc2VCAhAAIjwK", + "D1Rlc3RUYlRlc3RJbmRleBIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVz", + "dFRlc3RJbmRleEICEAAiOAoNVGVzdFRiVGVzdE1hcBInCglkYXRhX2xpc3QY", + "ASADKAsyEC5jZmcuVGVzdFRlc3RNYXBCAhAAIkQKE1Rlc3RUYkV4Y2VsRnJv", + "bUpzb24SLQoJZGF0YV9saXN0GAEgAygLMhYuY2ZnLlRlc3RFeGNlbEZyb21K", + "c29uQgIQACJQChlUZXN0VGJDb21wb3NpdGVKc29uVGFibGUxEjMKCWRhdGFf", + "bGlzdBgBIAMoCzIcLmNmZy5UZXN0Q29tcG9zaXRlSnNvblRhYmxlMUICEAAi", + "UAoZVGVzdFRiQ29tcG9zaXRlSnNvblRhYmxlMhIzCglkYXRhX2xpc3QYASAD", + "KAsyHC5jZmcuVGVzdENvbXBvc2l0ZUpzb25UYWJsZTJCAhAAIlAKGVRlc3RU", + "YkNvbXBvc2l0ZUpzb25UYWJsZTMSMwoJZGF0YV9saXN0GAEgAygLMhwuY2Zn", + "LlRlc3RDb21wb3NpdGVKc29uVGFibGUzQgIQACJUChtUZXN0VGJFeGNlbEZy", + "b21Kc29uTXVsdGlSb3cSNQoJZGF0YV9saXN0GAEgAygLMh4uY2ZnLlRlc3RF", + "eGNlbEZyb21Kc29uTXVsdGlSb3dCAhAAIlIKGlRlc3RUYlRlc3RTY3JpcHRh", + "YmxlT2JqZWN0EjQKCWRhdGFfbGlzdBgBIAMoCzIdLmNmZy5UZXN0VGVzdFNj", + "cmlwdGFibGVPYmplY3RCAhAAIj4KEFRlc3RUYlRlc3RNYXBwZXISKgoJZGF0", + "YV9saXN0GAEgAygLMhMuY2ZnLlRlc3RUZXN0TWFwcGVyQgIQACJGChZUZXN0", + "VGJEZWZpbmVGcm9tRXhjZWwyEiwKCWRhdGFfbGlzdBgBIAMoCzIVLmNmZy5E", + "ZWZpbmVGcm9tRXhjZWwyQgIQACo9CgtBaUVFeGVjdXRvchIWChJBaUVFeGVj", + "dXRvcl9DTElFTlQQABIWChJBaUVFeGVjdXRvcl9TRVJWRVIQASroAQoKQWlF", + "S2V5VHlwZRITCg9BaUVLZXlUeXBlX0JPT0wQARISCg5BaUVLZXlUeXBlX0lO", + "VBACEhQKEEFpRUtleVR5cGVfRkxPQVQQAxIVChFBaUVLZXlUeXBlX1NUUklO", + "RxAEEhUKEUFpRUtleVR5cGVfVkVDVE9SEAUSFgoSQWlFS2V5VHlwZV9ST1RB", + "VE9SEAYSEwoPQWlFS2V5VHlwZV9OQU1FEAcSFAoQQWlFS2V5VHlwZV9DTEFT", + "UxAIEhMKD0FpRUtleVR5cGVfRU5VTRAJEhUKEUFpRUtleVR5cGVfT0JKRUNU", + "EAoqiAEKEEFpRUZsb3dBYm9ydE1vZGUSGQoVQWlFRmxvd0Fib3J0TW9kZV9O", + "T05FEAASIwofQWlFRmxvd0Fib3J0TW9kZV9MT1dFUl9QUklPUklUWRABEhkK", + "FUFpRUZsb3dBYm9ydE1vZGVfU0VMRhACEhkKFUFpRUZsb3dBYm9ydE1vZGVf", + "Qk9USBADKkcKDUFpRUZpbmlzaE1vZGUSGwoXQWlFRmluaXNoTW9kZV9JTU1F", + "RElBVEUQABIZChVBaUVGaW5pc2hNb2RlX0RFTEFZRUQQASpuChVBaUVOb3Rp", + "ZnlPYnNlcnZlck1vZGUSKQolQWlFTm90aWZ5T2JzZXJ2ZXJNb2RlX09OX1ZB", + "TFVFX0NIQU5HRRAAEioKJkFpRU5vdGlmeU9ic2VydmVyTW9kZV9PTl9SRVNV", + "TFRfQ0hBTkdFEAEqlQIKC0FpRU9wZXJhdG9yEhsKF0FpRU9wZXJhdG9yX0lT", + "X0VRVUFMX1RPEAASHwobQWlFT3BlcmF0b3JfSVNfTk9UX0VRVUFMX1RPEAES", + "HAoYQWlFT3BlcmF0b3JfSVNfTEVTU19USEFOEAISKAokQWlFT3BlcmF0b3Jf", + "SVNfTEVTU19USEFOX09SX0VRVUFMX1RPEAMSHQoZQWlFT3BlcmF0b3JfSVNf", + "R1JFQVRfVEhBThAEEikKJUFpRU9wZXJhdG9yX0lTX0dSRUFUX1RIQU5fT1Jf", + "RVFVQUxfVE8QBRIYChRBaUVPcGVyYXRvcl9DT05UQUlOUxAGEhwKGEFpRU9w", + "ZXJhdG9yX05PVF9DT05UQUlOUxAHKkkKCUF1ZGlvVHlwZRIVChFBdWRpb1R5", + "cGVfVU5LTk9XThAAEhEKDUF1ZGlvVHlwZV9BQ0MQARISCg5BdWRpb1R5cGVf", + "QUlGRhACKk4KE0NvbW1vbkVCb29sT3BlcmF0b3ISGwoXQ29tbW9uRUJvb2xP", + "cGVyYXRvcl9BTkQQABIaChZDb21tb25FQm9vbE9wZXJhdG9yX09SEAEqnwEK", + "EEl0ZW1FSXRlbVF1YWxpdHkSGgoWSXRlbUVJdGVtUXVhbGl0eV9XSElURRAA", + "EhoKFkl0ZW1FSXRlbVF1YWxpdHlfR1JFRU4QARIZChVJdGVtRUl0ZW1RdWFs", + "aXR5X0JMVUUQAhIbChdJdGVtRUl0ZW1RdWFsaXR5X1BVUlBMRRADEhsKF0l0", + "ZW1FSXRlbVF1YWxpdHlfR09MREVOEAQqqgEKEUl0ZW1FQ3VycmVuY3lUeXBl", + "Eh0KGUl0ZW1FQ3VycmVuY3lUeXBlX0RJQU1PTkQQARIaChZJdGVtRUN1cnJl", + "bmN5VHlwZV9HT0xEEAISHAoYSXRlbUVDdXJyZW5jeVR5cGVfU0lMVkVSEAMS", + "GQoVSXRlbUVDdXJyZW5jeVR5cGVfRVhQEAQSIQodSXRlbUVDdXJyZW5jeVR5", + "cGVfUE9XRVJfUE9JTlQQBSrbAgoOSXRlbUVNYWpvclR5cGUSGwoXSXRlbUVN", + "YWpvclR5cGVfQ1VSUkVOQ1kQARIYChRJdGVtRU1ham9yVHlwZV9DTE9USBAC", + "EhgKFEl0ZW1FTWFqb3JUeXBlX1FVRVNUEAMSHgoaSXRlbUVNYWpvclR5cGVf", + "Q09OU1VNQUJMRVMQBBIfChtJdGVtRU1ham9yVHlwZV9UUkVBU1VSRV9CT1gQ", + "BRIoCiRJdGVtRU1ham9yVHlwZV9BQ0hJRVZFTUVOVF9BTkRfVElUTEUQBhId", + "ChlJdGVtRU1ham9yVHlwZV9IRUFEX0ZSQU1FEAcSGAoUSXRlbUVNYWpvclR5", + "cGVfVk9JQ0UQCBIZChVJdGVtRU1ham9yVHlwZV9BQ1RJT04QCRIcChhJdGVt", + "RU1ham9yVHlwZV9FWFBBTlNJT04QChIbChdJdGVtRU1ham9yVHlwZV9NQVRF", + "UklBTBALKo8MCg5JdGVtRU1pbm9yVHlwZRIaChZJdGVtRU1pbm9yVHlwZV9E", + "SUFNT05EEGUSFwoTSXRlbUVNaW5vclR5cGVfR09MRBBmEhkKFUl0ZW1FTWlu", + "b3JUeXBlX1NJTFZFUhBnEhYKEkl0ZW1FTWlub3JUeXBlX0VYUBBoEh4KGkl0", + "ZW1FTWlub3JUeXBlX1BPV0VSX1BPSU5UEGkSHgoZSXRlbUVNaW5vclR5cGVf", + "SEFJUl9TVFlMRRDSARIYChNJdGVtRU1pbm9yVHlwZV9DT0FUENwBEiAKG0l0", + "ZW1FTWlub3JUeXBlX1VQUEVSX0pBQ0tFVBDmARIcChdJdGVtRU1pbm9yVHlw", + "ZV9UUk9VU0VSUxDxARIZChRJdGVtRU1pbm9yVHlwZV9TS0lSVBDyARIZChRJ", + "dGVtRU1pbm9yVHlwZV9TT0NLUxD6ARIZChRJdGVtRU1pbm9yVHlwZV9TSE9F", + "UxCEAhIiCh1JdGVtRU1pbm9yVHlwZV9IQUlSX0FDQ0VTU09SWRCPAhIXChJJ", + "dGVtRU1pbm9yVHlwZV9IQVQQkAISGwoWSXRlbUVNaW5vclR5cGVfRUFSUklO", + "RxCRAhIcChdJdGVtRU1pbm9yVHlwZV9ORUNLTEFDRRCSAhIcChdJdGVtRU1p", + "bm9yVHlwZV9CUkFDRUxFVBCTAhIeChlJdGVtRU1pbm9yVHlwZV9IQUlSX0NM", + "QVNQEJQCEhkKFEl0ZW1FTWlub3JUeXBlX0dMT1ZFEJUCEiMKHkl0ZW1FTWlu", + "b3JUeXBlX0hBTkRIRUxEX09CSkVDVBCWAhIbChZJdGVtRU1pbm9yVHlwZV9T", + "UEVDSUFMEJcCEiEKHEl0ZW1FTWlub3JUeXBlX0JBU0VfQ09TTUVUSUMQmQIS", + "JAofSXRlbUVNaW5vclR5cGVfRVlFQlJPV19DT1NNRVRJQxCaAhIbChZJdGVt", + "RU1pbm9yVHlwZV9FWUVMQVNIEJsCEisKJkl0ZW1FTWlub3JUeXBlX0NPU01F", + "VElDX0NPTlRBQ1RfTEVOU0VTEJwCEiAKG0l0ZW1FTWlub3JUeXBlX0xJUF9D", + "T1NNRVRJQxCdAhIeChlJdGVtRU1pbm9yVHlwZV9TS0lOX0NPTE9SEJ4CEiMK", + "Hkl0ZW1FTWlub3JUeXBlX09ORV9QSUVDRV9EUkVTUxCiAhIoCiNJdGVtRU1p", + "bm9yVHlwZV9TV0lUQ0hfQ0xPVEhFU19TQ0VORRCjAhIZChRJdGVtRU1pbm9y", + "VHlwZV9RVUVTVBCtAhIYChNJdGVtRU1pbm9yVHlwZV9DQVNUEJEDEhkKFEl0", + "ZW1FTWlub3JUeXBlX1NXT1JEEKUDEh0KGEl0ZW1FTWlub3JUeXBlX0JPV19B", + "UlJPVxCmAxIZChRJdGVtRU1pbm9yVHlwZV9XQU5EUxCnAxIgChtJdGVtRU1p", + "bm9yVHlwZV9TUEVDSUFMX1RPT0wQqAMSGAoTSXRlbUVNaW5vclR5cGVfRk9P", + "RBCTAxIgChtJdGVtRU1pbm9yVHlwZV9UUkVBU1VSRV9CT1gQ9QMSFwoSSXRl", + "bUVNaW5vclR5cGVfS0VZEPYDEi0KKEl0ZW1FTWlub3JUeXBlX01VTFRJX0NI", + "T09TRV9UUkVBU1VSRV9CT1gQ9wMSHwoaSXRlbUVNaW5vclR5cGVfQUNISUVW", + "RU1FTlQQ2QQSGQoUSXRlbUVNaW5vclR5cGVfVElUTEUQ2gQSIAobSXRlbUVN", + "aW5vclR5cGVfQVZBVEFSX0ZSQU1FEL0FEhkKFEl0ZW1FTWlub3JUeXBlX1ZP", + "SUNFEKEGEh0KGEl0ZW1FTWlub3JUeXBlX0lETEVfUE9TRRCFBxIeChlJdGVt", + "RU1pbm9yVHlwZV9QSE9UT19QT1NFEIYHEhcKEkl0ZW1FTWlub3JUeXBlX0JB", + "RxDpBxIjCh5JdGVtRU1pbm9yVHlwZV9GUklFTkRfQ0FQQUNJVFkQ6gcSKQok", + "SXRlbUVNaW5vclR5cGVfQ09OU1RSVUNUSU9OX01BVEVSSUFMEM0IEiIKHUl0", + "ZW1FTWlub3JUeXBlX0RFU0lHTl9EUkFXSU5HEM4IKqMDChxJdGVtRUNsb3Ro", + "ZXJzU3RhclF1YWxpdHlUeXBlEiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0", + "eVR5cGVfT05FEAESJAogSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9U", + "V08QAhImCiJJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBlX1RIUkVFEAMS", + "JQohSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9GT1VSEAQSJQohSXRl", + "bUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9GSVZFEAUSJAogSXRlbUVDbG90", + "aGVyc1N0YXJRdWFsaXR5VHlwZV9TSVgQBhImCiJJdGVtRUNsb3RoZXJzU3Rh", + "clF1YWxpdHlUeXBlX1NFVkVOEAcSJgoiSXRlbUVDbG90aGVyc1N0YXJRdWFs", + "aXR5VHlwZV9FSUdIVBAIEiUKIUl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5", + "cGVfTklORRAJEiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfVEVO", + "EAoqTwoQSXRlbUVDbG90aGVyc1RhZxIeChpJdGVtRUNsb3RoZXJzVGFnX0ZB", + "TkdfU0hBSRABEhsKF0l0ZW1FQ2xvdGhlcnNUYWdfV1VfWkhFEAIqPgoMSXRl", + "bUVVc2VUeXBlEhcKE0l0ZW1FVXNlVHlwZV9NQU5VQUwQABIVChFJdGVtRVVz", + "ZVR5cGVfQVVUTxABKtACChhJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGUSIgoe", + "SXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0NIRVNUEAASIQodSXRlbUVDbG90", + "aGVzSGlkZVBhcnRUeXBlX0hFQUQQARIoCiRJdGVtRUNsb3RoZXNIaWRlUGFy", + "dFR5cGVfU1BJTkVfVVBQRVIQAhIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5", + "cGVfU1BJTkVfTE9XRVIQAxIgChxJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVf", + "SElQEAQSJgoiSXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0xFR19VUFBFUhAF", + "EicKI0l0ZW1FQ2xvdGhlc0hpZGVQYXJ0VHlwZV9MRUdfTUlERExFEAYSJgoi", + "SXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0xFR19MT1dFUhAHKpsDChhJdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGUSJQohSXRlbUVDbG90aGVzUHJvcGVydHlU", + "eXBlX0pJQU5fWVVFEAESIwofSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0hV", + "QV9MSRACEiIKHkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9LRV9BSRADEiYK", + "Ikl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9DSEVOR19TSFUQBBIjCh9JdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGVfSFVPX1BPEAUSIwofSXRlbUVDbG90aGVz", + "UHJvcGVydHlUeXBlX1lPVV9ZQRAGEiYKIkl0ZW1FQ2xvdGhlc1Byb3BlcnR5", + "VHlwZV9RSU5HX0NIVU4QBxIlCiFJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVf", + "WElOR19HQU4QCBInCiNJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVfUUlOR19M", + "SUFORxAJEiUKIUl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9CQU9fTlVBThAK", + "KnUKDFRlc3REZW1vRW51bRIVChFUZXN0RGVtb0VudW1fTk9ORRAAEhIKDlRl", + "c3REZW1vRW51bV9BEAESEgoOVGVzdERlbW9FbnVtX0IQAhISCg5UZXN0RGVt", + "b0VudW1fQxAEEhIKDlRlc3REZW1vRW51bV9EEAUqXgoMVGVzdERlbW9GbGFn", + "EhIKDlRlc3REZW1vRmxhZ19BEAESEgoOVGVzdERlbW9GbGFnX0IQAhISCg5U", + "ZXN0RGVtb0ZsYWdfQxAEEhIKDlRlc3REZW1vRmxhZ19EEAgqRwoPVGVzdEVU", + "ZXN0VWVUeXBlEhkKFVRlc3RFVGVzdFVlVHlwZV9XSElURRAAEhkKFVRlc3RF", + "VGVzdFVlVHlwZV9CTEFDSxABKj4KElRlc3RFVGVzdEVtcHR5RW51bRIoCiRU", + "ZXN0RVRlc3RFbXB0eUVudW1fRU1QVFlfUExBQ0VIT0xERVIQACp+ChNUZXN0", + "RVRlc3RFbXB0eUVudW0yEicKIlRlc3RFVGVzdEVtcHR5RW51bTJfU01BTExf", + "VEhBTl8yNTYQ/wESHgoZVGVzdEVUZXN0RW1wdHlFbnVtMl9YXzI1NhCAAhIe", + "ChlUZXN0RVRlc3RFbXB0eUVudW0yX1hfMjU3EIECKnIKEFRlc3RFVGVzdFF1", + "YWxpdHkSFgoSVGVzdEVUZXN0UXVhbGl0eV9BEAESFgoSVGVzdEVUZXN0UXVh", + "bGl0eV9CEAISFgoSVGVzdEVUZXN0UXVhbGl0eV9DEAMSFgoSVGVzdEVUZXN0", + "UXVhbGl0eV9EEAQqlwEKDlRlc3RBY2Nlc3NGbGFnEhgKFFRlc3RBY2Nlc3NG", + "bGFnX1dSSVRFEAESFwoTVGVzdEFjY2Vzc0ZsYWdfUkVBRBACEhsKF1Rlc3RB", + "Y2Nlc3NGbGFnX1RSVU5DQVRFEAQSFgoSVGVzdEFjY2Vzc0ZsYWdfTkVXEAgS", + "HQoZVGVzdEFjY2Vzc0ZsYWdfUkVBRF9XUklURRAD")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Cfg.AiEExecutor), typeof(global::Cfg.AiEKeyType), typeof(global::Cfg.AiEFlowAbortMode), typeof(global::Cfg.AiEFinishMode), typeof(global::Cfg.AiENotifyObserverMode), typeof(global::Cfg.AiEOperator), typeof(global::Cfg.AudioType), typeof(global::Cfg.CommonEBoolOperator), typeof(global::Cfg.ItemEItemQuality), typeof(global::Cfg.ItemECurrencyType), typeof(global::Cfg.ItemEMajorType), typeof(global::Cfg.ItemEMinorType), typeof(global::Cfg.ItemEClothersStarQualityType), typeof(global::Cfg.ItemEClothersTag), typeof(global::Cfg.ItemEUseType), typeof(global::Cfg.ItemEClothesHidePartType), typeof(global::Cfg.ItemEClothesPropertyType), typeof(global::Cfg.TestDemoEnum), typeof(global::Cfg.TestDemoFlag), typeof(global::Cfg.TestETestUeType), typeof(global::Cfg.TestETestEmptyEnum), typeof(global::Cfg.TestETestEmptyEnum2), typeof(global::Cfg.TestETestQuality), typeof(global::Cfg.TestAccessFlag), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExcelBean1), global::Cfg.TestTestExcelBean1.Parser, new[]{ "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboard), global::Cfg.AiBlackboard.Parser, new[]{ "Name", "Desc", "ParentName", "Keys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKey), global::Cfg.AiBlackboardKey.Parser, new[]{ "Name", "Desc", "IsStatic", "Type", "TypeClassName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBehaviorTree), global::Cfg.AiBehaviorTree.Parser, new[]{ "Id", "Name", "Desc", "BlackboardId", "Root" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiNode), global::Cfg.AiNode.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps", "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan", "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiService), global::Cfg.AiService.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeSetDefaultFocus), global::Cfg.AiUeSetDefaultFocus.Parser, new[]{ "Id", "NodeName", "KeyboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiExecuteTimeStatistic), global::Cfg.AiExecuteTimeStatistic.Parser, new[]{ "Id", "NodeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseTarget), global::Cfg.AiChooseTarget.Parser, new[]{ "Id", "NodeName", "ResultTargetKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeepFaceTarget), global::Cfg.AiKeepFaceTarget.Parser, new[]{ "Id", "NodeName", "TargetActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiGetOwnerPlayer), global::Cfg.AiGetOwnerPlayer.Parser, new[]{ "Id", "NodeName", "PlayerActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUpdateDailyBehaviorProps), global::Cfg.AiUpdateDailyBehaviorProps.Parser, new[]{ "Id", "NodeName", "SatietyKey", "EnergyKey", "MoodKey", "SatietyLowerThresholdKey", "SatietyUpperThresholdKey", "EnergyLowerThresholdKey", "EnergyUpperThresholdKey", "MoodLowerThresholdKey", "MoodUpperThresholdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDecorator), global::Cfg.AiDecorator.Parser, new[]{ "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeLoop), global::Cfg.AiUeLoop.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NumLoops", "InfiniteLoop", "InfiniteLoopTimeoutTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeCooldown), global::Cfg.AiUeCooldown.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "CooldownTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeTimeLimit), global::Cfg.AiUeTimeLimit.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "LimitTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeBlackboard), global::Cfg.AiUeBlackboard.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NotifyObserver", "BlackboardKey", "KeyQuery" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyQueryOperator), global::Cfg.AiKeyQueryOperator.Parser, new[]{ "IsSet", "IsNotSet", "BinaryOperator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsSet), global::Cfg.AiIsSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsNotSet), global::Cfg.AiIsNotSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBinaryOperator), global::Cfg.AiBinaryOperator.Parser, new[]{ "Oper", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyData), global::Cfg.AiKeyData.Parser, new[]{ "FloatKeyData", "IntKeyData", "StringKeyData", "BlackboardKeyData" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFloatKeyData), global::Cfg.AiFloatKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIntKeyData), global::Cfg.AiIntKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiStringKeyData), global::Cfg.AiStringKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKeyData), global::Cfg.AiBlackboardKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeForceSuccess), global::Cfg.AiUeForceSuccess.Parser, new[]{ "Id", "NodeName", "FlowAbortMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsAtLocation), global::Cfg.AiIsAtLocation.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "AcceptableRadius", "KeyboardKey", "InverseCondition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDistanceLessThan), global::Cfg.AiDistanceLessThan.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "Actor1Key", "Actor2Key", "Distance", "ReverseResult" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFlowNode), global::Cfg.AiFlowNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiComposeNode), global::Cfg.AiComposeNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSequence), global::Cfg.AiSequence.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSelector), global::Cfg.AiSelector.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSimpleParallel), global::Cfg.AiSimpleParallel.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "FinishMode", "MainTask", "BackgroundNode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTask), global::Cfg.AiTask.Parser, new[]{ "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWait), global::Cfg.AiUeWait.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "WaitTime", "RandomDeviation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWaitBlackboardTime), global::Cfg.AiUeWaitBlackboardTime.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "BlackboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToTarget), global::Cfg.AiMoveToTarget.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseSkill), global::Cfg.AiChooseSkill.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "ResultSkillIdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToRandomLocation), global::Cfg.AiMoveToRandomLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "OriginPositionKey", "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToLocation), global::Cfg.AiMoveToLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDebugPrint), global::Cfg.AiDebugPrint.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonGlobalConfig), global::Cfg.CommonGlobalConfig.Parser, new[]{ "BagCapacity", "BagCapacitySpecial", "BagTempExpendableCapacity", "BagTempToolCapacity", "BagInitCapacity", "QuickBagCapacity", "ClothBagCapacity", "ClothBagInitCapacity", "ClothBagCapacitySpecial", "BagInitItemsDropId", "MailBoxCapacity", "DamageParamC", "DamageParamE", "DamageParamF", "DamageParamD", "RoleSpeed", "MonsterSpeed", "InitEnergy", "InitViality", "MaxViality", "PerVialityRecoveryTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItem), global::Cfg.ItemItem.Parser, new[]{ "Id", "Name", "MajorType", "MinorType", "MaxPileNum", "Quality", "Icon", "IconBackgroud", "IconMask", "Desc", "ShowOrder" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nL10NDemo), global::Cfg.L10nL10NDemo.Parser, new[]{ "Id", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nPatchDemo), global::Cfg.L10nPatchDemo.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTestTag), global::Cfg.TagTestTag.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType2), global::Cfg.TestDemoType2.Parser, new[]{ "X4", "X1", "X2", "X3", "X5", "X6", "X7", "X80", "X8", "X9", "X10", "X12", "X13", "X14", "S1", "T1", "K1", "K2", "K5", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType1), global::Cfg.TestDemoType1.Parser, new[]{ "X1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoDynamic), global::Cfg.TestDemoDynamic.Parser, new[]{ "DemoD2", "DemoE1", "RoleInfo", "DemoD5" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD2), global::Cfg.TestDemoD2.Parser, new[]{ "X1", "X2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD3), global::Cfg.TestDemoD3.Parser, new[]{ "DemoE1", "RoleInfo" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE1), global::Cfg.TestDemoE1.Parser, new[]{ "X1", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestLoginRoleInfo), global::Cfg.TestLoginRoleInfo.Parser, new[]{ "X1", "X3", "RoleId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD5), global::Cfg.TestDemoD5.Parser, new[]{ "X1", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDateTimeRange), global::Cfg.TestDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE2), global::Cfg.TestDemoE2.Parser, new[]{ "Y1", "Y2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoSingletonType), global::Cfg.TestDemoSingletonType.Parser, new[]{ "Id", "Name", "Date" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestNotIndexList), global::Cfg.TestNotIndexList.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiUnionIndexList), global::Cfg.TestMultiUnionIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiIndexList), global::Cfg.TestMultiIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowRecord), global::Cfg.TestMultiRowRecord.Parser, new[]{ "Id", "Name", "OneRows", "MultiRows1", "MultiRows2", "MultiRows4", "MultiRows5", "MultiRows6", "MultiRows7" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType1), global::Cfg.TestMultiRowType1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType2), global::Cfg.TestMultiRowType2.Parser, new[]{ "Id", "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType3), global::Cfg.TestMultiRowType3.Parser, new[]{ "Id", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMultiColumn), global::Cfg.TestTestMultiColumn.Parser, new[]{ "Id", "A", "B", "C" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestFoo), global::Cfg.TestFoo.Parser, new[]{ "Y1", "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowTitle), global::Cfg.TestMultiRowTitle.Parser, new[]{ "Id", "Name", "X1", "X20", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH1), global::Cfg.TestH1.Parser, new[]{ "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH2), global::Cfg.TestH2.Parser, new[]{ "Z2", "Z3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestNull), global::Cfg.TestTestNull.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "S1", "S2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoPrimitiveTypesTable), global::Cfg.TestDemoPrimitiveTypesTable.Parser, new[]{ "X1", "X2", "X3", "X4", "X5", "X6", "X7", "S1", "S2", "V2", "V3", "V4", "T1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector2), global::Cfg.vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector3), global::Cfg.vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector4), global::Cfg.vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestString), global::Cfg.TestTestString.Parser, new[]{ "Id", "S1", "Cs1", "Cs2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompactString), global::Cfg.TestCompactString.Parser, new[]{ "Id", "S2", "S3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoGroup), global::Cfg.TestDemoGroup.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestInnerGroup), global::Cfg.TestInnerGroup.Parser, new[]{ "Y1", "Y2", "Y3", "Y4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestGlobal), global::Cfg.TestTestGlobal.Parser, new[]{ "UnlockEquip", "UnlockHero" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestBeRef), global::Cfg.TestTestBeRef.Parser, new[]{ "Id", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRef), global::Cfg.TestTestRef.Parser, new[]{ "Id", "X1", "X12", "X2", "X3", "X4", "A1", "A2", "B1", "B2", "C1", "C2", "D1", "D2", "E1", "E2", "E3", "F1", "F2", "F3", "S1" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestRefDynamicBase), global::Cfg.TestRefDynamicBase.Parser, new[]{ "RefBean" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestRefBean), global::Cfg.TestRefBean.Parser, new[]{ "X", "Arr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSize), global::Cfg.TestTestSize.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSet), global::Cfg.TestTestSet.Parser, new[]{ "Id", "X0", "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDetectEncoding), global::Cfg.TestDetectEncoding.Parser, new[]{ "Id", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestItemBase), global::Cfg.TestItemBase.Parser, new[]{ "Item", "Equipment", "Decorator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestItem), global::Cfg.TestItem.Parser, new[]{ "Id", "Name", "Desc", "Num", "Price" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestEquipment), global::Cfg.TestEquipment.Parser, new[]{ "Id", "Name", "Desc", "Attr", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDecorator), global::Cfg.TestDecorator.Parser, new[]{ "Id", "Name", "Desc", "Duration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestIndex), global::Cfg.TestTestIndex.Parser, new[]{ "Id", "Eles" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMap), global::Cfg.TestTestMap.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJson), global::Cfg.TestExcelFromJson.Parser, new[]{ "X4", "X1", "X5", "X6", "S1", "S2", "T1", "X12", "X13", "X14", "K1", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable1), global::Cfg.TestCompositeJsonTable1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable2), global::Cfg.TestCompositeJsonTable2.Parser, new[]{ "Id", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable3), global::Cfg.TestCompositeJsonTable3.Parser, new[]{ "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJsonMultiRow), global::Cfg.TestExcelFromJsonMultiRow.Parser, new[]{ "Id", "X", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRow), global::Cfg.TestTestRow.Parser, new[]{ "X", "Y", "Z", "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTest3), global::Cfg.TestTest3.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestScriptableObject), global::Cfg.TestTestScriptableObject.Parser, new[]{ "Id", "Desc", "Rate", "Num", "V2", "V3", "V4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMapper), global::Cfg.TestTestMapper.Parser, new[]{ "Id", "AudioType", "V2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.DefineFromExcel2), global::Cfg.DefineFromExcel2.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X132", "X14", "X15", "V2", "T1", "K1", "K2", "K8", "K9", "K10", "K11" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestShape), global::Cfg.TestShape.Parser, new[]{ "Circle", "Rectangle" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCircle), global::Cfg.TestCircle.Parser, new[]{ "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Test2Rectangle), global::Cfg.Test2Rectangle.Parser, new[]{ "Width", "Height" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBlackboard), global::Cfg.AiTbBlackboard.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBehaviorTree), global::Cfg.AiTbBehaviorTree.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonTbGlobalConfig), global::Cfg.CommonTbGlobalConfig.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItem), global::Cfg.ItemTbItem.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbL10NDemo), global::Cfg.L10nTbL10NDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbPatchDemo), global::Cfg.L10nTbPatchDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTbTestTag), global::Cfg.TagTbTestTag.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbFullTypes), global::Cfg.TestTbFullTypes.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbSingleton), global::Cfg.TestTbSingleton.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbNotIndexList), global::Cfg.TestTbNotIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiUnionIndexList), global::Cfg.TestTbMultiUnionIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiIndexList), global::Cfg.TestTbMultiIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDataFromMisc), global::Cfg.TestTbDataFromMisc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowRecord), global::Cfg.TestTbMultiRowRecord.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMultiColumn), global::Cfg.TestTbTestMultiColumn.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowTitle), global::Cfg.TestTbMultiRowTitle.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestNull), global::Cfg.TestTbTestNull.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoPrimitive), global::Cfg.TestTbDemoPrimitive.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestString), global::Cfg.TestTbTestString.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup), global::Cfg.TestTbDemoGroup.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_C), global::Cfg.TestTbDemoGroup_C.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_S), global::Cfg.TestTbDemoGroup_S.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_E), global::Cfg.TestTbDemoGroup_E.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestGlobal), global::Cfg.TestTbTestGlobal.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef), global::Cfg.TestTbTestBeRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef2), global::Cfg.TestTbTestBeRef2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestRef), global::Cfg.TestTbTestRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSize), global::Cfg.TestTbTestSize.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSet), global::Cfg.TestTbTestSet.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDetectCsvEncoding), global::Cfg.TestTbDetectCsvEncoding.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbItem2), global::Cfg.TestTbItem2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestIndex), global::Cfg.TestTbTestIndex.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMap), global::Cfg.TestTbTestMap.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJson), global::Cfg.TestTbExcelFromJson.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable1), global::Cfg.TestTbCompositeJsonTable1.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable2), global::Cfg.TestTbCompositeJsonTable2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable3), global::Cfg.TestTbCompositeJsonTable3.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJsonMultiRow), global::Cfg.TestTbExcelFromJsonMultiRow.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestScriptableObject), global::Cfg.TestTbTestScriptableObject.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMapper), global::Cfg.TestTbTestMapper.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel2), global::Cfg.TestTbDefineFromExcel2.Parser, new[]{ "DataList" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum AiEExecutor { + [pbr::OriginalName("AiEExecutor_CLIENT")] Client = 0, + [pbr::OriginalName("AiEExecutor_SERVER")] Server = 1, + } + + public enum AiEKeyType { + [pbr::OriginalName("AiEKeyType_BOOL")] Bool = 1, + [pbr::OriginalName("AiEKeyType_INT")] Int = 2, + [pbr::OriginalName("AiEKeyType_FLOAT")] Float = 3, + [pbr::OriginalName("AiEKeyType_STRING")] String = 4, + [pbr::OriginalName("AiEKeyType_VECTOR")] Vector = 5, + [pbr::OriginalName("AiEKeyType_ROTATOR")] Rotator = 6, + [pbr::OriginalName("AiEKeyType_NAME")] Name = 7, + [pbr::OriginalName("AiEKeyType_CLASS")] Class = 8, + [pbr::OriginalName("AiEKeyType_ENUM")] Enum = 9, + [pbr::OriginalName("AiEKeyType_OBJECT")] Object = 10, + } + + public enum AiEFlowAbortMode { + [pbr::OriginalName("AiEFlowAbortMode_NONE")] None = 0, + [pbr::OriginalName("AiEFlowAbortMode_LOWER_PRIORITY")] LowerPriority = 1, + [pbr::OriginalName("AiEFlowAbortMode_SELF")] Self = 2, + [pbr::OriginalName("AiEFlowAbortMode_BOTH")] Both = 3, + } + + public enum AiEFinishMode { + [pbr::OriginalName("AiEFinishMode_IMMEDIATE")] Immediate = 0, + [pbr::OriginalName("AiEFinishMode_DELAYED")] Delayed = 1, + } + + public enum AiENotifyObserverMode { + [pbr::OriginalName("AiENotifyObserverMode_ON_VALUE_CHANGE")] OnValueChange = 0, + [pbr::OriginalName("AiENotifyObserverMode_ON_RESULT_CHANGE")] OnResultChange = 1, + } + + public enum AiEOperator { + [pbr::OriginalName("AiEOperator_IS_EQUAL_TO")] IsEqualTo = 0, + [pbr::OriginalName("AiEOperator_IS_NOT_EQUAL_TO")] IsNotEqualTo = 1, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN")] IsLessThan = 2, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN_OR_EQUAL_TO")] IsLessThanOrEqualTo = 3, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN")] IsGreatThan = 4, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO")] IsGreatThanOrEqualTo = 5, + [pbr::OriginalName("AiEOperator_CONTAINS")] Contains = 6, + [pbr::OriginalName("AiEOperator_NOT_CONTAINS")] NotContains = 7, + } + + public enum AudioType { + [pbr::OriginalName("AudioType_UNKNOWN")] Unknown = 0, + [pbr::OriginalName("AudioType_ACC")] Acc = 1, + [pbr::OriginalName("AudioType_AIFF")] Aiff = 2, + } + + public enum CommonEBoolOperator { + [pbr::OriginalName("CommonEBoolOperator_AND")] And = 0, + [pbr::OriginalName("CommonEBoolOperator_OR")] Or = 1, + } + + public enum ItemEItemQuality { + [pbr::OriginalName("ItemEItemQuality_WHITE")] White = 0, + [pbr::OriginalName("ItemEItemQuality_GREEN")] Green = 1, + [pbr::OriginalName("ItemEItemQuality_BLUE")] Blue = 2, + [pbr::OriginalName("ItemEItemQuality_PURPLE")] Purple = 3, + [pbr::OriginalName("ItemEItemQuality_GOLDEN")] Golden = 4, + } + + public enum ItemECurrencyType { + [pbr::OriginalName("ItemECurrencyType_DIAMOND")] Diamond = 1, + [pbr::OriginalName("ItemECurrencyType_GOLD")] Gold = 2, + [pbr::OriginalName("ItemECurrencyType_SILVER")] Silver = 3, + [pbr::OriginalName("ItemECurrencyType_EXP")] Exp = 4, + [pbr::OriginalName("ItemECurrencyType_POWER_POINT")] PowerPoint = 5, + } + + public enum ItemEMajorType { + [pbr::OriginalName("ItemEMajorType_CURRENCY")] Currency = 1, + [pbr::OriginalName("ItemEMajorType_CLOTH")] Cloth = 2, + [pbr::OriginalName("ItemEMajorType_QUEST")] Quest = 3, + [pbr::OriginalName("ItemEMajorType_CONSUMABLES")] Consumables = 4, + [pbr::OriginalName("ItemEMajorType_TREASURE_BOX")] TreasureBox = 5, + [pbr::OriginalName("ItemEMajorType_ACHIEVEMENT_AND_TITLE")] AchievementAndTitle = 6, + [pbr::OriginalName("ItemEMajorType_HEAD_FRAME")] HeadFrame = 7, + [pbr::OriginalName("ItemEMajorType_VOICE")] Voice = 8, + [pbr::OriginalName("ItemEMajorType_ACTION")] Action = 9, + [pbr::OriginalName("ItemEMajorType_EXPANSION")] Expansion = 10, + [pbr::OriginalName("ItemEMajorType_MATERIAL")] Material = 11, + } + + public enum ItemEMinorType { + [pbr::OriginalName("ItemEMinorType_DIAMOND")] Diamond = 101, + [pbr::OriginalName("ItemEMinorType_GOLD")] Gold = 102, + [pbr::OriginalName("ItemEMinorType_SILVER")] Silver = 103, + [pbr::OriginalName("ItemEMinorType_EXP")] Exp = 104, + [pbr::OriginalName("ItemEMinorType_POWER_POINT")] PowerPoint = 105, + [pbr::OriginalName("ItemEMinorType_HAIR_STYLE")] HairStyle = 210, + [pbr::OriginalName("ItemEMinorType_COAT")] Coat = 220, + [pbr::OriginalName("ItemEMinorType_UPPER_JACKET")] UpperJacket = 230, + [pbr::OriginalName("ItemEMinorType_TROUSERS")] Trousers = 241, + [pbr::OriginalName("ItemEMinorType_SKIRT")] Skirt = 242, + [pbr::OriginalName("ItemEMinorType_SOCKS")] Socks = 250, + [pbr::OriginalName("ItemEMinorType_SHOES")] Shoes = 260, + [pbr::OriginalName("ItemEMinorType_HAIR_ACCESSORY")] HairAccessory = 271, + [pbr::OriginalName("ItemEMinorType_HAT")] Hat = 272, + [pbr::OriginalName("ItemEMinorType_EARRING")] Earring = 273, + [pbr::OriginalName("ItemEMinorType_NECKLACE")] Necklace = 274, + [pbr::OriginalName("ItemEMinorType_BRACELET")] Bracelet = 275, + [pbr::OriginalName("ItemEMinorType_HAIR_CLASP")] HairClasp = 276, + [pbr::OriginalName("ItemEMinorType_GLOVE")] Glove = 277, + [pbr::OriginalName("ItemEMinorType_HANDHELD_OBJECT")] HandheldObject = 278, + [pbr::OriginalName("ItemEMinorType_SPECIAL")] Special = 279, + [pbr::OriginalName("ItemEMinorType_BASE_COSMETIC")] BaseCosmetic = 281, + [pbr::OriginalName("ItemEMinorType_EYEBROW_COSMETIC")] EyebrowCosmetic = 282, + [pbr::OriginalName("ItemEMinorType_EYELASH")] Eyelash = 283, + [pbr::OriginalName("ItemEMinorType_COSMETIC_CONTACT_LENSES")] CosmeticContactLenses = 284, + [pbr::OriginalName("ItemEMinorType_LIP_COSMETIC")] LipCosmetic = 285, + [pbr::OriginalName("ItemEMinorType_SKIN_COLOR")] SkinColor = 286, + [pbr::OriginalName("ItemEMinorType_ONE_PIECE_DRESS")] OnePieceDress = 290, + [pbr::OriginalName("ItemEMinorType_SWITCH_CLOTHES_SCENE")] SwitchClothesScene = 291, + [pbr::OriginalName("ItemEMinorType_QUEST")] Quest = 301, + [pbr::OriginalName("ItemEMinorType_CAST")] Cast = 401, + [pbr::OriginalName("ItemEMinorType_SWORD")] Sword = 421, + [pbr::OriginalName("ItemEMinorType_BOW_ARROW")] BowArrow = 422, + [pbr::OriginalName("ItemEMinorType_WANDS")] Wands = 423, + [pbr::OriginalName("ItemEMinorType_SPECIAL_TOOL")] SpecialTool = 424, + [pbr::OriginalName("ItemEMinorType_FOOD")] Food = 403, + [pbr::OriginalName("ItemEMinorType_TREASURE_BOX")] TreasureBox = 501, + [pbr::OriginalName("ItemEMinorType_KEY")] Key = 502, + [pbr::OriginalName("ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX")] MultiChooseTreasureBox = 503, + [pbr::OriginalName("ItemEMinorType_ACHIEVEMENT")] Achievement = 601, + [pbr::OriginalName("ItemEMinorType_TITLE")] Title = 602, + [pbr::OriginalName("ItemEMinorType_AVATAR_FRAME")] AvatarFrame = 701, + [pbr::OriginalName("ItemEMinorType_VOICE")] Voice = 801, + [pbr::OriginalName("ItemEMinorType_IDLE_POSE")] IdlePose = 901, + [pbr::OriginalName("ItemEMinorType_PHOTO_POSE")] PhotoPose = 902, + [pbr::OriginalName("ItemEMinorType_BAG")] Bag = 1001, + [pbr::OriginalName("ItemEMinorType_FRIEND_CAPACITY")] FriendCapacity = 1002, + [pbr::OriginalName("ItemEMinorType_CONSTRUCTION_MATERIAL")] ConstructionMaterial = 1101, + [pbr::OriginalName("ItemEMinorType_DESIGN_DRAWING")] DesignDrawing = 1102, + } + + public enum ItemEClothersStarQualityType { + [pbr::OriginalName("ItemEClothersStarQualityType_ONE")] One = 1, + [pbr::OriginalName("ItemEClothersStarQualityType_TWO")] Two = 2, + [pbr::OriginalName("ItemEClothersStarQualityType_THREE")] Three = 3, + [pbr::OriginalName("ItemEClothersStarQualityType_FOUR")] Four = 4, + [pbr::OriginalName("ItemEClothersStarQualityType_FIVE")] Five = 5, + [pbr::OriginalName("ItemEClothersStarQualityType_SIX")] Six = 6, + [pbr::OriginalName("ItemEClothersStarQualityType_SEVEN")] Seven = 7, + [pbr::OriginalName("ItemEClothersStarQualityType_EIGHT")] Eight = 8, + [pbr::OriginalName("ItemEClothersStarQualityType_NINE")] Nine = 9, + [pbr::OriginalName("ItemEClothersStarQualityType_TEN")] Ten = 10, + } + + public enum ItemEClothersTag { + [pbr::OriginalName("ItemEClothersTag_FANG_SHAI")] FangShai = 1, + [pbr::OriginalName("ItemEClothersTag_WU_ZHE")] WuZhe = 2, + } + + public enum ItemEUseType { + [pbr::OriginalName("ItemEUseType_MANUAL")] Manual = 0, + [pbr::OriginalName("ItemEUseType_AUTO")] Auto = 1, + } + + public enum ItemEClothesHidePartType { + [pbr::OriginalName("ItemEClothesHidePartType_CHEST")] Chest = 0, + [pbr::OriginalName("ItemEClothesHidePartType_HEAD")] Head = 1, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_UPPER")] SpineUpper = 2, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_LOWER")] SpineLower = 3, + [pbr::OriginalName("ItemEClothesHidePartType_HIP")] Hip = 4, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_UPPER")] LegUpper = 5, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_MIDDLE")] LegMiddle = 6, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_LOWER")] LegLower = 7, + } + + public enum ItemEClothesPropertyType { + [pbr::OriginalName("ItemEClothesPropertyType_JIAN_YUE")] JianYue = 1, + [pbr::OriginalName("ItemEClothesPropertyType_HUA_LI")] HuaLi = 2, + [pbr::OriginalName("ItemEClothesPropertyType_KE_AI")] KeAi = 3, + [pbr::OriginalName("ItemEClothesPropertyType_CHENG_SHU")] ChengShu = 4, + [pbr::OriginalName("ItemEClothesPropertyType_HUO_PO")] HuoPo = 5, + [pbr::OriginalName("ItemEClothesPropertyType_YOU_YA")] YouYa = 6, + [pbr::OriginalName("ItemEClothesPropertyType_QING_CHUN")] QingChun = 7, + [pbr::OriginalName("ItemEClothesPropertyType_XING_GAN")] XingGan = 8, + [pbr::OriginalName("ItemEClothesPropertyType_QING_LIANG")] QingLiang = 9, + [pbr::OriginalName("ItemEClothesPropertyType_BAO_NUAN")] BaoNuan = 10, + } + + public enum TestDemoEnum { + [pbr::OriginalName("TestDemoEnum_NONE")] None = 0, + [pbr::OriginalName("TestDemoEnum_A")] A = 1, + [pbr::OriginalName("TestDemoEnum_B")] B = 2, + [pbr::OriginalName("TestDemoEnum_C")] C = 4, + [pbr::OriginalName("TestDemoEnum_D")] D = 5, + } + + public enum TestDemoFlag { + [pbr::OriginalName("TestDemoFlag_A")] A = 1, + [pbr::OriginalName("TestDemoFlag_B")] B = 2, + [pbr::OriginalName("TestDemoFlag_C")] C = 4, + [pbr::OriginalName("TestDemoFlag_D")] D = 8, + } + + public enum TestETestUeType { + [pbr::OriginalName("TestETestUeType_WHITE")] White = 0, + [pbr::OriginalName("TestETestUeType_BLACK")] Black = 1, + } + + public enum TestETestEmptyEnum { + [pbr::OriginalName("TestETestEmptyEnum_EMPTY_PLACEHOLDER")] EmptyPlaceholder = 0, + } + + public enum TestETestEmptyEnum2 { + [pbr::OriginalName("TestETestEmptyEnum2_SMALL_THAN_256")] SmallThan256 = 255, + [pbr::OriginalName("TestETestEmptyEnum2_X_256")] X256 = 256, + [pbr::OriginalName("TestETestEmptyEnum2_X_257")] X257 = 257, + } + + public enum TestETestQuality { + [pbr::OriginalName("TestETestQuality_A")] A = 1, + [pbr::OriginalName("TestETestQuality_B")] B = 2, + [pbr::OriginalName("TestETestQuality_C")] C = 3, + [pbr::OriginalName("TestETestQuality_D")] D = 4, + } + + public enum TestAccessFlag { + [pbr::OriginalName("TestAccessFlag_WRITE")] Write = 1, + [pbr::OriginalName("TestAccessFlag_READ")] Read = 2, + [pbr::OriginalName("TestAccessFlag_TRUNCATE")] Truncate = 4, + [pbr::OriginalName("TestAccessFlag_NEW")] New = 8, + [pbr::OriginalName("TestAccessFlag_READ_WRITE")] ReadWrite = 3, + } + + #endregion + + #region Messages + public sealed partial class TestTestExcelBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExcelBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1(TestTestExcelBean1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1 Clone() { + return new TestTestExcelBean1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static string X2DefaultValue = ""; + + private string x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X2 { + get { return x2_ ?? X2DefaultValue; } + set { + x2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return x2_ != null; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + x2_ = null; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static float X4DefaultValue = 0F; + + private float x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExcelBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExcelBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X4, other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X4); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExcelBean1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard(AiBlackboard other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parentName_ = other.parentName_; + keys_ = other.keys_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard Clone() { + return new AiBlackboard(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parent_name" field. + public const int ParentNameFieldNumber = 3; + private readonly static string ParentNameDefaultValue = ""; + + private string parentName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParentName { + get { return parentName_ ?? ParentNameDefaultValue; } + set { + parentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "parent_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParentName { + get { return parentName_ != null; } + } + /// Clears the value of the "parent_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParentName() { + parentName_ = null; + } + + /// Field number for the "keys" field. + public const int KeysFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_keys_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiBlackboardKey.Parser); + private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Keys { + get { return keys_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ParentName != other.ParentName) return false; + if(!keys_.Equals(other.keys_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasParentName) hash ^= ParentName.GetHashCode(); + hash ^= keys_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(ref output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasParentName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentName); + } + size += keys_.CalculateSize(_repeated_keys_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboard other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasParentName) { + ParentName = other.ParentName; + } + keys_.Add(other.keys_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(input, _repeated_keys_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey(AiBlackboardKey other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + type_ = other.type_; + typeClassName_ = other.typeClassName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey Clone() { + return new AiBlackboardKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private readonly static global::Cfg.AiEKeyType TypeDefaultValue = global::Cfg.AiEKeyType.Bool; + + private global::Cfg.AiEKeyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEKeyType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "type_class_name" field. + public const int TypeClassNameFieldNumber = 5; + private readonly static string TypeClassNameDefaultValue = ""; + + private string typeClassName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TypeClassName { + get { return typeClassName_ ?? TypeClassNameDefaultValue; } + set { + typeClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type_class_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTypeClassName { + get { return typeClassName_ != null; } + } + /// Clears the value of the "type_class_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTypeClassName() { + typeClassName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (Type != other.Type) return false; + if (TypeClassName != other.TypeClassName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTypeClassName) hash ^= TypeClassName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasTypeClassName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeClassName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKey other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasTypeClassName) { + TypeClassName = other.TypeClassName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree(AiBehaviorTree other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + blackboardId_ = other.blackboardId_; + root_ = other.root_ != null ? other.root_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree Clone() { + return new AiBehaviorTree(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "blackboard_id" field. + public const int BlackboardIdFieldNumber = 4; + private readonly static string BlackboardIdDefaultValue = ""; + + private string blackboardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardId { + get { return blackboardId_ ?? BlackboardIdDefaultValue; } + set { + blackboardId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardId { + get { return blackboardId_ != null; } + } + /// Clears the value of the "blackboard_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardId() { + blackboardId_ = null; + } + + /// Field number for the "root" field. + public const int RootFieldNumber = 5; + private global::Cfg.AiComposeNode root_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiComposeNode Root { + get { return root_; } + set { + root_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (BlackboardId != other.BlackboardId) return false; + if (!object.Equals(Root, other.Root)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasBlackboardId) hash ^= BlackboardId.GetHashCode(); + if (root_ != null) hash ^= Root.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasBlackboardId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardId); + } + if (root_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Root); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBehaviorTree other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasBlackboardId) { + BlackboardId = other.BlackboardId; + } + if (other.root_ != null) { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + Root.MergeFrom(other.Root); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode(AiNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode Clone() { + return new AiNode(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiService : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiService()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService(AiService other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService Clone() { + return new AiService(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiService); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiService other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiService other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeSetDefaultFocus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeSetDefaultFocus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus(AiUeSetDefaultFocus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + keyboardKey_ = other.keyboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus Clone() { + return new AiUeSetDefaultFocus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 3; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeSetDefaultFocus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeSetDefaultFocus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (KeyboardKey != other.KeyboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeSetDefaultFocus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiExecuteTimeStatistic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiExecuteTimeStatistic()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic(AiExecuteTimeStatistic other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic Clone() { + return new AiExecuteTimeStatistic(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiExecuteTimeStatistic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiExecuteTimeStatistic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiExecuteTimeStatistic other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget(AiChooseTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + resultTargetKey_ = other.resultTargetKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget Clone() { + return new AiChooseTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "result_target_key" field. + public const int ResultTargetKeyFieldNumber = 3; + private readonly static string ResultTargetKeyDefaultValue = ""; + + private string resultTargetKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultTargetKey { + get { return resultTargetKey_ ?? ResultTargetKeyDefaultValue; } + set { + resultTargetKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_target_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultTargetKey { + get { return resultTargetKey_ != null; } + } + /// Clears the value of the "result_target_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultTargetKey() { + resultTargetKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (ResultTargetKey != other.ResultTargetKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasResultTargetKey) hash ^= ResultTargetKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasResultTargetKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultTargetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasResultTargetKey) { + ResultTargetKey = other.ResultTargetKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeepFaceTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeepFaceTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget(AiKeepFaceTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + targetActorKey_ = other.targetActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget Clone() { + return new AiKeepFaceTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 3; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeepFaceTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeepFaceTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (TargetActorKey != other.TargetActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeepFaceTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiGetOwnerPlayer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiGetOwnerPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer(AiGetOwnerPlayer other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + playerActorKey_ = other.playerActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer Clone() { + return new AiGetOwnerPlayer(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "player_actor_key" field. + public const int PlayerActorKeyFieldNumber = 3; + private readonly static string PlayerActorKeyDefaultValue = ""; + + private string playerActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayerActorKey { + get { return playerActorKey_ ?? PlayerActorKeyDefaultValue; } + set { + playerActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "player_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerActorKey { + get { return playerActorKey_ != null; } + } + /// Clears the value of the "player_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerActorKey() { + playerActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiGetOwnerPlayer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiGetOwnerPlayer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (PlayerActorKey != other.PlayerActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasPlayerActorKey) hash ^= PlayerActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasPlayerActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiGetOwnerPlayer other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasPlayerActorKey) { + PlayerActorKey = other.PlayerActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUpdateDailyBehaviorProps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUpdateDailyBehaviorProps()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps(AiUpdateDailyBehaviorProps other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + satietyKey_ = other.satietyKey_; + energyKey_ = other.energyKey_; + moodKey_ = other.moodKey_; + satietyLowerThresholdKey_ = other.satietyLowerThresholdKey_; + satietyUpperThresholdKey_ = other.satietyUpperThresholdKey_; + energyLowerThresholdKey_ = other.energyLowerThresholdKey_; + energyUpperThresholdKey_ = other.energyUpperThresholdKey_; + moodLowerThresholdKey_ = other.moodLowerThresholdKey_; + moodUpperThresholdKey_ = other.moodUpperThresholdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps Clone() { + return new AiUpdateDailyBehaviorProps(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "satiety_key" field. + public const int SatietyKeyFieldNumber = 3; + private readonly static string SatietyKeyDefaultValue = ""; + + private string satietyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyKey { + get { return satietyKey_ ?? SatietyKeyDefaultValue; } + set { + satietyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyKey { + get { return satietyKey_ != null; } + } + /// Clears the value of the "satiety_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyKey() { + satietyKey_ = null; + } + + /// Field number for the "energy_key" field. + public const int EnergyKeyFieldNumber = 4; + private readonly static string EnergyKeyDefaultValue = ""; + + private string energyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyKey { + get { return energyKey_ ?? EnergyKeyDefaultValue; } + set { + energyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyKey { + get { return energyKey_ != null; } + } + /// Clears the value of the "energy_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyKey() { + energyKey_ = null; + } + + /// Field number for the "mood_key" field. + public const int MoodKeyFieldNumber = 5; + private readonly static string MoodKeyDefaultValue = ""; + + private string moodKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodKey { + get { return moodKey_ ?? MoodKeyDefaultValue; } + set { + moodKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodKey { + get { return moodKey_ != null; } + } + /// Clears the value of the "mood_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodKey() { + moodKey_ = null; + } + + /// Field number for the "satiety_lower_threshold_key" field. + public const int SatietyLowerThresholdKeyFieldNumber = 6; + private readonly static string SatietyLowerThresholdKeyDefaultValue = ""; + + private string satietyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ ?? SatietyLowerThresholdKeyDefaultValue; } + set { + satietyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ != null; } + } + /// Clears the value of the "satiety_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyLowerThresholdKey() { + satietyLowerThresholdKey_ = null; + } + + /// Field number for the "satiety_upper_threshold_key" field. + public const int SatietyUpperThresholdKeyFieldNumber = 7; + private readonly static string SatietyUpperThresholdKeyDefaultValue = ""; + + private string satietyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ ?? SatietyUpperThresholdKeyDefaultValue; } + set { + satietyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ != null; } + } + /// Clears the value of the "satiety_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyUpperThresholdKey() { + satietyUpperThresholdKey_ = null; + } + + /// Field number for the "energy_lower_threshold_key" field. + public const int EnergyLowerThresholdKeyFieldNumber = 8; + private readonly static string EnergyLowerThresholdKeyDefaultValue = ""; + + private string energyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ ?? EnergyLowerThresholdKeyDefaultValue; } + set { + energyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ != null; } + } + /// Clears the value of the "energy_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLowerThresholdKey() { + energyLowerThresholdKey_ = null; + } + + /// Field number for the "energy_upper_threshold_key" field. + public const int EnergyUpperThresholdKeyFieldNumber = 9; + private readonly static string EnergyUpperThresholdKeyDefaultValue = ""; + + private string energyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ ?? EnergyUpperThresholdKeyDefaultValue; } + set { + energyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ != null; } + } + /// Clears the value of the "energy_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyUpperThresholdKey() { + energyUpperThresholdKey_ = null; + } + + /// Field number for the "mood_lower_threshold_key" field. + public const int MoodLowerThresholdKeyFieldNumber = 10; + private readonly static string MoodLowerThresholdKeyDefaultValue = ""; + + private string moodLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodLowerThresholdKey { + get { return moodLowerThresholdKey_ ?? MoodLowerThresholdKeyDefaultValue; } + set { + moodLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodLowerThresholdKey { + get { return moodLowerThresholdKey_ != null; } + } + /// Clears the value of the "mood_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodLowerThresholdKey() { + moodLowerThresholdKey_ = null; + } + + /// Field number for the "mood_upper_threshold_key" field. + public const int MoodUpperThresholdKeyFieldNumber = 11; + private readonly static string MoodUpperThresholdKeyDefaultValue = ""; + + private string moodUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodUpperThresholdKey { + get { return moodUpperThresholdKey_ ?? MoodUpperThresholdKeyDefaultValue; } + set { + moodUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodUpperThresholdKey { + get { return moodUpperThresholdKey_ != null; } + } + /// Clears the value of the "mood_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodUpperThresholdKey() { + moodUpperThresholdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUpdateDailyBehaviorProps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUpdateDailyBehaviorProps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (SatietyKey != other.SatietyKey) return false; + if (EnergyKey != other.EnergyKey) return false; + if (MoodKey != other.MoodKey) return false; + if (SatietyLowerThresholdKey != other.SatietyLowerThresholdKey) return false; + if (SatietyUpperThresholdKey != other.SatietyUpperThresholdKey) return false; + if (EnergyLowerThresholdKey != other.EnergyLowerThresholdKey) return false; + if (EnergyUpperThresholdKey != other.EnergyUpperThresholdKey) return false; + if (MoodLowerThresholdKey != other.MoodLowerThresholdKey) return false; + if (MoodUpperThresholdKey != other.MoodUpperThresholdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasSatietyKey) hash ^= SatietyKey.GetHashCode(); + if (HasEnergyKey) hash ^= EnergyKey.GetHashCode(); + if (HasMoodKey) hash ^= MoodKey.GetHashCode(); + if (HasSatietyLowerThresholdKey) hash ^= SatietyLowerThresholdKey.GetHashCode(); + if (HasSatietyUpperThresholdKey) hash ^= SatietyUpperThresholdKey.GetHashCode(); + if (HasEnergyLowerThresholdKey) hash ^= EnergyLowerThresholdKey.GetHashCode(); + if (HasEnergyUpperThresholdKey) hash ^= EnergyUpperThresholdKey.GetHashCode(); + if (HasMoodLowerThresholdKey) hash ^= MoodLowerThresholdKey.GetHashCode(); + if (HasMoodUpperThresholdKey) hash ^= MoodUpperThresholdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasSatietyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyKey); + } + if (HasEnergyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyKey); + } + if (HasMoodKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUpdateDailyBehaviorProps other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasSatietyKey) { + SatietyKey = other.SatietyKey; + } + if (other.HasEnergyKey) { + EnergyKey = other.EnergyKey; + } + if (other.HasMoodKey) { + MoodKey = other.MoodKey; + } + if (other.HasSatietyLowerThresholdKey) { + SatietyLowerThresholdKey = other.SatietyLowerThresholdKey; + } + if (other.HasSatietyUpperThresholdKey) { + SatietyUpperThresholdKey = other.SatietyUpperThresholdKey; + } + if (other.HasEnergyLowerThresholdKey) { + EnergyLowerThresholdKey = other.EnergyLowerThresholdKey; + } + if (other.HasEnergyUpperThresholdKey) { + EnergyUpperThresholdKey = other.EnergyUpperThresholdKey; + } + if (other.HasMoodLowerThresholdKey) { + MoodLowerThresholdKey = other.MoodLowerThresholdKey; + } + if (other.HasMoodUpperThresholdKey) { + MoodUpperThresholdKey = other.MoodUpperThresholdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDecorator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator(AiDecorator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator Clone() { + return new AiDecorator(this); + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDecorator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeLoop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeLoop()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop(AiUeLoop other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + numLoops_ = other.numLoops_; + infiniteLoop_ = other.infiniteLoop_; + infiniteLoopTimeoutTime_ = other.infiniteLoopTimeoutTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop Clone() { + return new AiUeLoop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "num_loops" field. + public const int NumLoopsFieldNumber = 4; + private readonly static int NumLoopsDefaultValue = 0; + + private int numLoops_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumLoops { + get { if ((_hasBits0 & 4) != 0) { return numLoops_; } else { return NumLoopsDefaultValue; } } + set { + _hasBits0 |= 4; + numLoops_ = value; + } + } + /// Gets whether the "num_loops" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumLoops { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num_loops" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumLoops() { + _hasBits0 &= ~4; + } + + /// Field number for the "infinite_loop" field. + public const int InfiniteLoopFieldNumber = 5; + private readonly static bool InfiniteLoopDefaultValue = false; + + private bool infiniteLoop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InfiniteLoop { + get { if ((_hasBits0 & 8) != 0) { return infiniteLoop_; } else { return InfiniteLoopDefaultValue; } } + set { + _hasBits0 |= 8; + infiniteLoop_ = value; + } + } + /// Gets whether the "infinite_loop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoop { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "infinite_loop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoop() { + _hasBits0 &= ~8; + } + + /// Field number for the "infinite_loop_timeout_time" field. + public const int InfiniteLoopTimeoutTimeFieldNumber = 6; + private readonly static float InfiniteLoopTimeoutTimeDefaultValue = 0F; + + private float infiniteLoopTimeoutTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float InfiniteLoopTimeoutTime { + get { if ((_hasBits0 & 16) != 0) { return infiniteLoopTimeoutTime_; } else { return InfiniteLoopTimeoutTimeDefaultValue; } } + set { + _hasBits0 |= 16; + infiniteLoopTimeoutTime_ = value; + } + } + /// Gets whether the "infinite_loop_timeout_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoopTimeoutTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "infinite_loop_timeout_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoopTimeoutTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeLoop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeLoop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NumLoops != other.NumLoops) return false; + if (InfiniteLoop != other.InfiniteLoop) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfiniteLoopTimeoutTime, other.InfiniteLoopTimeoutTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNumLoops) hash ^= NumLoops.GetHashCode(); + if (HasInfiniteLoop) hash ^= InfiniteLoop.GetHashCode(); + if (HasInfiniteLoopTimeoutTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfiniteLoopTimeoutTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNumLoops) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumLoops); + } + if (HasInfiniteLoop) { + size += 1 + 1; + } + if (HasInfiniteLoopTimeoutTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeLoop other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNumLoops) { + NumLoops = other.NumLoops; + } + if (other.HasInfiniteLoop) { + InfiniteLoop = other.InfiniteLoop; + } + if (other.HasInfiniteLoopTimeoutTime) { + InfiniteLoopTimeoutTime = other.InfiniteLoopTimeoutTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeCooldown : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeCooldown()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown(AiUeCooldown other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + cooldownTime_ = other.cooldownTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown Clone() { + return new AiUeCooldown(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "cooldown_time" field. + public const int CooldownTimeFieldNumber = 4; + private readonly static float CooldownTimeDefaultValue = 0F; + + private float cooldownTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CooldownTime { + get { if ((_hasBits0 & 4) != 0) { return cooldownTime_; } else { return CooldownTimeDefaultValue; } } + set { + _hasBits0 |= 4; + cooldownTime_ = value; + } + } + /// Gets whether the "cooldown_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCooldownTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cooldown_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCooldownTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeCooldown); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeCooldown other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CooldownTime, other.CooldownTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasCooldownTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CooldownTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasCooldownTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeCooldown other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasCooldownTime) { + CooldownTime = other.CooldownTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeTimeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeTimeLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit(AiUeTimeLimit other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + limitTime_ = other.limitTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit Clone() { + return new AiUeTimeLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 4; + private readonly static float LimitTimeDefaultValue = 0F; + + private float limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LimitTime { + get { if ((_hasBits0 & 4) != 0) { return limitTime_; } else { return LimitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + limitTime_ = value; + } + } + /// Gets whether the "limit_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLimitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "limit_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLimitTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeTimeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeTimeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LimitTime, other.LimitTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasLimitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LimitTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasLimitTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeTimeLimit other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasLimitTime) { + LimitTime = other.LimitTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeBlackboard()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard(AiUeBlackboard other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + notifyObserver_ = other.notifyObserver_; + blackboardKey_ = other.blackboardKey_; + keyQuery_ = other.keyQuery_ != null ? other.keyQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard Clone() { + return new AiUeBlackboard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "notify_observer" field. + public const int NotifyObserverFieldNumber = 4; + private readonly static global::Cfg.AiENotifyObserverMode NotifyObserverDefaultValue = global::Cfg.AiENotifyObserverMode.OnValueChange; + + private global::Cfg.AiENotifyObserverMode notifyObserver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiENotifyObserverMode NotifyObserver { + get { if ((_hasBits0 & 4) != 0) { return notifyObserver_; } else { return NotifyObserverDefaultValue; } } + set { + _hasBits0 |= 4; + notifyObserver_ = value; + } + } + /// Gets whether the "notify_observer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNotifyObserver { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "notify_observer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNotifyObserver() { + _hasBits0 &= ~4; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 5; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + /// Field number for the "key_query" field. + public const int KeyQueryFieldNumber = 6; + private global::Cfg.AiKeyQueryOperator keyQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyQueryOperator KeyQuery { + get { return keyQuery_; } + set { + keyQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NotifyObserver != other.NotifyObserver) return false; + if (BlackboardKey != other.BlackboardKey) return false; + if (!object.Equals(KeyQuery, other.KeyQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNotifyObserver) hash ^= NotifyObserver.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (keyQuery_ != null) hash ^= KeyQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNotifyObserver) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NotifyObserver); + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (keyQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeBlackboard other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNotifyObserver) { + NotifyObserver = other.NotifyObserver; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + if (other.keyQuery_ != null) { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + KeyQuery.MergeFrom(other.KeyQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyQueryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyQueryOperator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator(AiKeyQueryOperator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + IsSet = other.IsSet.Clone(); + break; + case ValueOneofCase.IsNotSet: + IsNotSet = other.IsNotSet.Clone(); + break; + case ValueOneofCase.BinaryOperator: + BinaryOperator = other.BinaryOperator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator Clone() { + return new AiKeyQueryOperator(this); + } + + /// Field number for the "IsSet" field. + public const int IsSetFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsSet IsSet { + get { return valueCase_ == ValueOneofCase.IsSet ? (global::Cfg.AiIsSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsSet; + } + } + + /// Field number for the "IsNotSet" field. + public const int IsNotSetFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsNotSet IsNotSet { + get { return valueCase_ == ValueOneofCase.IsNotSet ? (global::Cfg.AiIsNotSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsNotSet; + } + } + + /// Field number for the "BinaryOperator" field. + public const int BinaryOperatorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBinaryOperator BinaryOperator { + get { return valueCase_ == ValueOneofCase.BinaryOperator ? (global::Cfg.AiBinaryOperator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BinaryOperator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + IsSet = 1, + IsNotSet = 2, + BinaryOperator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyQueryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyQueryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IsSet, other.IsSet)) return false; + if (!object.Equals(IsNotSet, other.IsNotSet)) return false; + if (!object.Equals(BinaryOperator, other.BinaryOperator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.IsSet) hash ^= IsSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsNotSet) hash ^= IsNotSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.BinaryOperator) hash ^= BinaryOperator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.IsSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryOperator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyQueryOperator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + if (IsSet == null) { + IsSet = new global::Cfg.AiIsSet(); + } + IsSet.MergeFrom(other.IsSet); + break; + case ValueOneofCase.IsNotSet: + if (IsNotSet == null) { + IsNotSet = new global::Cfg.AiIsNotSet(); + } + IsNotSet.MergeFrom(other.IsNotSet); + break; + case ValueOneofCase.BinaryOperator: + if (BinaryOperator == null) { + BinaryOperator = new global::Cfg.AiBinaryOperator(); + } + BinaryOperator.MergeFrom(other.BinaryOperator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet(AiIsSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet Clone() { + return new AiIsSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiIsNotSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsNotSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet(AiIsNotSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet Clone() { + return new AiIsNotSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsNotSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsNotSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsNotSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiBinaryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBinaryOperator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator(AiBinaryOperator other) : this() { + _hasBits0 = other._hasBits0; + oper_ = other.oper_; + data_ = other.data_ != null ? other.data_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator Clone() { + return new AiBinaryOperator(this); + } + + /// Field number for the "oper" field. + public const int OperFieldNumber = 1; + private readonly static global::Cfg.AiEOperator OperDefaultValue = global::Cfg.AiEOperator.IsEqualTo; + + private global::Cfg.AiEOperator oper_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEOperator Oper { + get { if ((_hasBits0 & 1) != 0) { return oper_; } else { return OperDefaultValue; } } + set { + _hasBits0 |= 1; + oper_ = value; + } + } + /// Gets whether the "oper" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOper { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "oper" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOper() { + _hasBits0 &= ~1; + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private global::Cfg.AiKeyData data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyData Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBinaryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBinaryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Oper != other.Oper) return false; + if (!object.Equals(Data, other.Data)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasOper) hash ^= Oper.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasOper) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Oper); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBinaryOperator other) { + if (other == null) { + return; + } + if (other.HasOper) { + Oper = other.Oper; + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + Data.MergeFrom(other.Data); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData(AiKeyData other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + FloatKeyData = other.FloatKeyData.Clone(); + break; + case ValueOneofCase.IntKeyData: + IntKeyData = other.IntKeyData.Clone(); + break; + case ValueOneofCase.StringKeyData: + StringKeyData = other.StringKeyData.Clone(); + break; + case ValueOneofCase.BlackboardKeyData: + BlackboardKeyData = other.BlackboardKeyData.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData Clone() { + return new AiKeyData(this); + } + + /// Field number for the "FloatKeyData" field. + public const int FloatKeyDataFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFloatKeyData FloatKeyData { + get { return valueCase_ == ValueOneofCase.FloatKeyData ? (global::Cfg.AiFloatKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.FloatKeyData; + } + } + + /// Field number for the "IntKeyData" field. + public const int IntKeyDataFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIntKeyData IntKeyData { + get { return valueCase_ == ValueOneofCase.IntKeyData ? (global::Cfg.AiIntKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IntKeyData; + } + } + + /// Field number for the "StringKeyData" field. + public const int StringKeyDataFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiStringKeyData StringKeyData { + get { return valueCase_ == ValueOneofCase.StringKeyData ? (global::Cfg.AiStringKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.StringKeyData; + } + } + + /// Field number for the "BlackboardKeyData" field. + public const int BlackboardKeyDataFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBlackboardKeyData BlackboardKeyData { + get { return valueCase_ == ValueOneofCase.BlackboardKeyData ? (global::Cfg.AiBlackboardKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlackboardKeyData; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + FloatKeyData = 1, + IntKeyData = 2, + StringKeyData = 3, + BlackboardKeyData = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FloatKeyData, other.FloatKeyData)) return false; + if (!object.Equals(IntKeyData, other.IntKeyData)) return false; + if (!object.Equals(StringKeyData, other.StringKeyData)) return false; + if (!object.Equals(BlackboardKeyData, other.BlackboardKeyData)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.FloatKeyData) hash ^= FloatKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.IntKeyData) hash ^= IntKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.StringKeyData) hash ^= StringKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) hash ^= BlackboardKeyData.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.FloatKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlackboardKeyData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyData other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + if (FloatKeyData == null) { + FloatKeyData = new global::Cfg.AiFloatKeyData(); + } + FloatKeyData.MergeFrom(other.FloatKeyData); + break; + case ValueOneofCase.IntKeyData: + if (IntKeyData == null) { + IntKeyData = new global::Cfg.AiIntKeyData(); + } + IntKeyData.MergeFrom(other.IntKeyData); + break; + case ValueOneofCase.StringKeyData: + if (StringKeyData == null) { + StringKeyData = new global::Cfg.AiStringKeyData(); + } + StringKeyData.MergeFrom(other.StringKeyData); + break; + case ValueOneofCase.BlackboardKeyData: + if (BlackboardKeyData == null) { + BlackboardKeyData = new global::Cfg.AiBlackboardKeyData(); + } + BlackboardKeyData.MergeFrom(other.BlackboardKeyData); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFloatKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFloatKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData(AiFloatKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData Clone() { + return new AiFloatKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static float ValueDefaultValue = 0F; + + private float value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFloatKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFloatKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFloatKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIntKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIntKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData(AiIntKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData Clone() { + return new AiIntKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIntKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIntKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIntKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiStringKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiStringKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData(AiStringKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData Clone() { + return new AiStringKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiStringKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiStringKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiStringKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData(AiBlackboardKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData Clone() { + return new AiBlackboardKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeForceSuccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeForceSuccess()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess(AiUeForceSuccess other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess Clone() { + return new AiUeForceSuccess(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeForceSuccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeForceSuccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeForceSuccess other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsAtLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsAtLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation(AiIsAtLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + acceptableRadius_ = other.acceptableRadius_; + keyboardKey_ = other.keyboardKey_; + inverseCondition_ = other.inverseCondition_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation Clone() { + return new AiIsAtLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 4; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 5; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + /// Field number for the "inverse_condition" field. + public const int InverseConditionFieldNumber = 6; + private readonly static bool InverseConditionDefaultValue = false; + + private bool inverseCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InverseCondition { + get { if ((_hasBits0 & 8) != 0) { return inverseCondition_; } else { return InverseConditionDefaultValue; } } + set { + _hasBits0 |= 8; + inverseCondition_ = value; + } + } + /// Gets whether the "inverse_condition" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInverseCondition { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "inverse_condition" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInverseCondition() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsAtLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsAtLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + if (KeyboardKey != other.KeyboardKey) return false; + if (InverseCondition != other.InverseCondition) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (HasInverseCondition) hash ^= InverseCondition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (HasInverseCondition) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsAtLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + if (other.HasInverseCondition) { + InverseCondition = other.InverseCondition; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDistanceLessThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDistanceLessThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan(AiDistanceLessThan other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + actor1Key_ = other.actor1Key_; + actor2Key_ = other.actor2Key_; + distance_ = other.distance_; + reverseResult_ = other.reverseResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan Clone() { + return new AiDistanceLessThan(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "actor1_key" field. + public const int Actor1KeyFieldNumber = 4; + private readonly static string Actor1KeyDefaultValue = ""; + + private string actor1Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor1Key { + get { return actor1Key_ ?? Actor1KeyDefaultValue; } + set { + actor1Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor1_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor1Key { + get { return actor1Key_ != null; } + } + /// Clears the value of the "actor1_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor1Key() { + actor1Key_ = null; + } + + /// Field number for the "actor2_key" field. + public const int Actor2KeyFieldNumber = 5; + private readonly static string Actor2KeyDefaultValue = ""; + + private string actor2Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor2Key { + get { return actor2Key_ ?? Actor2KeyDefaultValue; } + set { + actor2Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor2_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor2Key { + get { return actor2Key_ != null; } + } + /// Clears the value of the "actor2_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor2Key() { + actor2Key_ = null; + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 6; + private readonly static float DistanceDefaultValue = 0F; + + private float distance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Distance { + get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } + set { + _hasBits0 |= 4; + distance_ = value; + } + } + /// Gets whether the "distance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "distance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistance() { + _hasBits0 &= ~4; + } + + /// Field number for the "reverse_result" field. + public const int ReverseResultFieldNumber = 7; + private readonly static bool ReverseResultDefaultValue = false; + + private bool reverseResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReverseResult { + get { if ((_hasBits0 & 8) != 0) { return reverseResult_; } else { return ReverseResultDefaultValue; } } + set { + _hasBits0 |= 8; + reverseResult_ = value; + } + } + /// Gets whether the "reverse_result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverseResult { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "reverse_result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverseResult() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDistanceLessThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDistanceLessThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (Actor1Key != other.Actor1Key) return false; + if (Actor2Key != other.Actor2Key) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; + if (ReverseResult != other.ReverseResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasActor1Key) hash ^= Actor1Key.GetHashCode(); + if (HasActor2Key) hash ^= Actor2Key.GetHashCode(); + if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); + if (HasReverseResult) hash ^= ReverseResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasActor1Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor1Key); + } + if (HasActor2Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor2Key); + } + if (HasDistance) { + size += 1 + 4; + } + if (HasReverseResult) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDistanceLessThan other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasActor1Key) { + Actor1Key = other.Actor1Key; + } + if (other.HasActor2Key) { + Actor2Key = other.Actor2Key; + } + if (other.HasDistance) { + Distance = other.Distance; + } + if (other.HasReverseResult) { + ReverseResult = other.ReverseResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFlowNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFlowNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode(AiFlowNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode Clone() { + return new AiFlowNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFlowNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFlowNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFlowNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiComposeNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiComposeNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode(AiComposeNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode Clone() { + return new AiComposeNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiComposeNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiComposeNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiComposeNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSequence()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence(AiSequence other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence Clone() { + return new AiSequence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSequence other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSelector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSelector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector(AiSelector other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector Clone() { + return new AiSelector(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSelector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSelector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSelector other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSimpleParallel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSimpleParallel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel(AiSimpleParallel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + finishMode_ = other.finishMode_; + mainTask_ = other.mainTask_ != null ? other.mainTask_.Clone() : null; + backgroundNode_ = other.backgroundNode_ != null ? other.backgroundNode_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel Clone() { + return new AiSimpleParallel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "finish_mode" field. + public const int FinishModeFieldNumber = 5; + private readonly static global::Cfg.AiEFinishMode FinishModeDefaultValue = global::Cfg.AiEFinishMode.Immediate; + + private global::Cfg.AiEFinishMode finishMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFinishMode FinishMode { + get { if ((_hasBits0 & 2) != 0) { return finishMode_; } else { return FinishModeDefaultValue; } } + set { + _hasBits0 |= 2; + finishMode_ = value; + } + } + /// Gets whether the "finish_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFinishMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "finish_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFinishMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "main_task" field. + public const int MainTaskFieldNumber = 6; + private global::Cfg.AiTask mainTask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiTask MainTask { + get { return mainTask_; } + set { + mainTask_ = value; + } + } + + /// Field number for the "background_node" field. + public const int BackgroundNodeFieldNumber = 7; + private global::Cfg.AiFlowNode backgroundNode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFlowNode BackgroundNode { + get { return backgroundNode_; } + set { + backgroundNode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSimpleParallel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSimpleParallel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (FinishMode != other.FinishMode) return false; + if (!object.Equals(MainTask, other.MainTask)) return false; + if (!object.Equals(BackgroundNode, other.BackgroundNode)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasFinishMode) hash ^= FinishMode.GetHashCode(); + if (mainTask_ != null) hash ^= MainTask.GetHashCode(); + if (backgroundNode_ != null) hash ^= BackgroundNode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasFinishMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinishMode); + } + if (mainTask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainTask); + } + if (backgroundNode_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundNode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSimpleParallel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasFinishMode) { + FinishMode = other.FinishMode; + } + if (other.mainTask_ != null) { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + MainTask.MergeFrom(other.MainTask); + } + if (other.backgroundNode_ != null) { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + BackgroundNode.MergeFrom(other.BackgroundNode); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTask : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTask()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask(AiTask other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask Clone() { + return new AiTask(this); + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTask); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTask other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTask other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWait : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWait()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait(AiUeWait other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + waitTime_ = other.waitTime_; + randomDeviation_ = other.randomDeviation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait Clone() { + return new AiUeWait(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "wait_time" field. + public const int WaitTimeFieldNumber = 6; + private readonly static float WaitTimeDefaultValue = 0F; + + private float waitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WaitTime { + get { if ((_hasBits0 & 4) != 0) { return waitTime_; } else { return WaitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + waitTime_ = value; + } + } + /// Gets whether the "wait_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWaitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "wait_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWaitTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "random_deviation" field. + public const int RandomDeviationFieldNumber = 7; + private readonly static float RandomDeviationDefaultValue = 0F; + + private float randomDeviation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RandomDeviation { + get { if ((_hasBits0 & 8) != 0) { return randomDeviation_; } else { return RandomDeviationDefaultValue; } } + set { + _hasBits0 |= 8; + randomDeviation_ = value; + } + } + /// Gets whether the "random_deviation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRandomDeviation { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "random_deviation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRandomDeviation() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWait); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWait other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WaitTime, other.WaitTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RandomDeviation, other.RandomDeviation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasWaitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WaitTime); + if (HasRandomDeviation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RandomDeviation); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasWaitTime) { + size += 1 + 4; + } + if (HasRandomDeviation) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWait other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasWaitTime) { + WaitTime = other.WaitTime; + } + if (other.HasRandomDeviation) { + RandomDeviation = other.RandomDeviation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWaitBlackboardTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWaitBlackboardTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime(AiUeWaitBlackboardTime other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + blackboardKey_ = other.blackboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime Clone() { + return new AiUeWaitBlackboardTime(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 6; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWaitBlackboardTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWaitBlackboardTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (BlackboardKey != other.BlackboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWaitBlackboardTime other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget(AiMoveToTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget Clone() { + return new AiMoveToTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseSkill()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill(AiChooseSkill other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + resultSkillIdKey_ = other.resultSkillIdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill Clone() { + return new AiChooseSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "result_skill_id_key" field. + public const int ResultSkillIdKeyFieldNumber = 7; + private readonly static string ResultSkillIdKeyDefaultValue = ""; + + private string resultSkillIdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultSkillIdKey { + get { return resultSkillIdKey_ ?? ResultSkillIdKeyDefaultValue; } + set { + resultSkillIdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_skill_id_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultSkillIdKey { + get { return resultSkillIdKey_ != null; } + } + /// Clears the value of the "result_skill_id_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultSkillIdKey() { + resultSkillIdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (ResultSkillIdKey != other.ResultSkillIdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasResultSkillIdKey) hash ^= ResultSkillIdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasResultSkillIdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultSkillIdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseSkill other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasResultSkillIdKey) { + ResultSkillIdKey = other.ResultSkillIdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToRandomLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToRandomLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation(AiMoveToRandomLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + originPositionKey_ = other.originPositionKey_; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation Clone() { + return new AiMoveToRandomLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "origin_position_key" field. + public const int OriginPositionKeyFieldNumber = 6; + private readonly static string OriginPositionKeyDefaultValue = ""; + + private string originPositionKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OriginPositionKey { + get { return originPositionKey_ ?? OriginPositionKeyDefaultValue; } + set { + originPositionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "origin_position_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOriginPositionKey { + get { return originPositionKey_ != null; } + } + /// Clears the value of the "origin_position_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOriginPositionKey() { + originPositionKey_ = null; + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 7; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 4) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 4; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToRandomLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToRandomLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (OriginPositionKey != other.OriginPositionKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasOriginPositionKey) hash ^= OriginPositionKey.GetHashCode(); + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasOriginPositionKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginPositionKey); + } + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToRandomLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasOriginPositionKey) { + OriginPositionKey = other.OriginPositionKey; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation(AiMoveToLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation Clone() { + return new AiMoveToLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 6; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasAcceptableRadius) { + output.WriteRawTag(53); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasAcceptableRadius) { + output.WriteRawTag(53); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDebugPrint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDebugPrint()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint(AiDebugPrint other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint Clone() { + return new AiDebugPrint(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 6; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDebugPrint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDebugPrint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDebugPrint other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig(CommonGlobalConfig other) : this() { + _hasBits0 = other._hasBits0; + bagCapacity_ = other.bagCapacity_; + bagCapacitySpecial_ = other.bagCapacitySpecial_; + bagTempExpendableCapacity_ = other.bagTempExpendableCapacity_; + bagTempToolCapacity_ = other.bagTempToolCapacity_; + bagInitCapacity_ = other.bagInitCapacity_; + quickBagCapacity_ = other.quickBagCapacity_; + clothBagCapacity_ = other.clothBagCapacity_; + clothBagInitCapacity_ = other.clothBagInitCapacity_; + clothBagCapacitySpecial_ = other.clothBagCapacitySpecial_; + bagInitItemsDropId_ = other.bagInitItemsDropId_; + mailBoxCapacity_ = other.mailBoxCapacity_; + damageParamC_ = other.damageParamC_; + damageParamE_ = other.damageParamE_; + damageParamF_ = other.damageParamF_; + damageParamD_ = other.damageParamD_; + roleSpeed_ = other.roleSpeed_; + monsterSpeed_ = other.monsterSpeed_; + initEnergy_ = other.initEnergy_; + initViality_ = other.initViality_; + maxViality_ = other.maxViality_; + perVialityRecoveryTime_ = other.perVialityRecoveryTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig Clone() { + return new CommonGlobalConfig(this); + } + + /// Field number for the "bag_capacity" field. + public const int BagCapacityFieldNumber = 1; + private readonly static int BagCapacityDefaultValue = 0; + + private int bagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacity { + get { if ((_hasBits0 & 1) != 0) { return bagCapacity_; } else { return BagCapacityDefaultValue; } } + set { + _hasBits0 |= 1; + bagCapacity_ = value; + } + } + /// Gets whether the "bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacity { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacity() { + _hasBits0 &= ~1; + } + + /// Field number for the "bag_capacity_special" field. + public const int BagCapacitySpecialFieldNumber = 2; + private readonly static int BagCapacitySpecialDefaultValue = 0; + + private int bagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacitySpecial { + get { if ((_hasBits0 & 2) != 0) { return bagCapacitySpecial_; } else { return BagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 2; + bagCapacitySpecial_ = value; + } + } + /// Gets whether the "bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacitySpecial { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacitySpecial() { + _hasBits0 &= ~2; + } + + /// Field number for the "bag_temp_expendable_capacity" field. + public const int BagTempExpendableCapacityFieldNumber = 3; + private readonly static int BagTempExpendableCapacityDefaultValue = 0; + + private int bagTempExpendableCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempExpendableCapacity { + get { if ((_hasBits0 & 4) != 0) { return bagTempExpendableCapacity_; } else { return BagTempExpendableCapacityDefaultValue; } } + set { + _hasBits0 |= 4; + bagTempExpendableCapacity_ = value; + } + } + /// Gets whether the "bag_temp_expendable_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempExpendableCapacity { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "bag_temp_expendable_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempExpendableCapacity() { + _hasBits0 &= ~4; + } + + /// Field number for the "bag_temp_tool_capacity" field. + public const int BagTempToolCapacityFieldNumber = 4; + private readonly static int BagTempToolCapacityDefaultValue = 0; + + private int bagTempToolCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempToolCapacity { + get { if ((_hasBits0 & 8) != 0) { return bagTempToolCapacity_; } else { return BagTempToolCapacityDefaultValue; } } + set { + _hasBits0 |= 8; + bagTempToolCapacity_ = value; + } + } + /// Gets whether the "bag_temp_tool_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempToolCapacity { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bag_temp_tool_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempToolCapacity() { + _hasBits0 &= ~8; + } + + /// Field number for the "bag_init_capacity" field. + public const int BagInitCapacityFieldNumber = 5; + private readonly static int BagInitCapacityDefaultValue = 0; + + private int bagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitCapacity { + get { if ((_hasBits0 & 16) != 0) { return bagInitCapacity_; } else { return BagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 16; + bagInitCapacity_ = value; + } + } + /// Gets whether the "bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitCapacity { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitCapacity() { + _hasBits0 &= ~16; + } + + /// Field number for the "quick_bag_capacity" field. + public const int QuickBagCapacityFieldNumber = 6; + private readonly static int QuickBagCapacityDefaultValue = 0; + + private int quickBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuickBagCapacity { + get { if ((_hasBits0 & 32) != 0) { return quickBagCapacity_; } else { return QuickBagCapacityDefaultValue; } } + set { + _hasBits0 |= 32; + quickBagCapacity_ = value; + } + } + /// Gets whether the "quick_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuickBagCapacity { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "quick_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuickBagCapacity() { + _hasBits0 &= ~32; + } + + /// Field number for the "cloth_bag_capacity" field. + public const int ClothBagCapacityFieldNumber = 7; + private readonly static int ClothBagCapacityDefaultValue = 0; + + private int clothBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacity { + get { if ((_hasBits0 & 64) != 0) { return clothBagCapacity_; } else { return ClothBagCapacityDefaultValue; } } + set { + _hasBits0 |= 64; + clothBagCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacity { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "cloth_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacity() { + _hasBits0 &= ~64; + } + + /// Field number for the "cloth_bag_init_capacity" field. + public const int ClothBagInitCapacityFieldNumber = 8; + private readonly static int ClothBagInitCapacityDefaultValue = 0; + + private int clothBagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagInitCapacity { + get { if ((_hasBits0 & 128) != 0) { return clothBagInitCapacity_; } else { return ClothBagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 128; + clothBagInitCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagInitCapacity { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "cloth_bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagInitCapacity() { + _hasBits0 &= ~128; + } + + /// Field number for the "cloth_bag_capacity_special" field. + public const int ClothBagCapacitySpecialFieldNumber = 9; + private readonly static int ClothBagCapacitySpecialDefaultValue = 0; + + private int clothBagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacitySpecial { + get { if ((_hasBits0 & 256) != 0) { return clothBagCapacitySpecial_; } else { return ClothBagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 256; + clothBagCapacitySpecial_ = value; + } + } + /// Gets whether the "cloth_bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacitySpecial { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "cloth_bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacitySpecial() { + _hasBits0 &= ~256; + } + + /// Field number for the "bag_init_items_drop_id" field. + public const int BagInitItemsDropIdFieldNumber = 10; + private readonly static int BagInitItemsDropIdDefaultValue = 0; + + private int bagInitItemsDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitItemsDropId { + get { if ((_hasBits0 & 512) != 0) { return bagInitItemsDropId_; } else { return BagInitItemsDropIdDefaultValue; } } + set { + _hasBits0 |= 512; + bagInitItemsDropId_ = value; + } + } + /// Gets whether the "bag_init_items_drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitItemsDropId { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "bag_init_items_drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitItemsDropId() { + _hasBits0 &= ~512; + } + + /// Field number for the "mail_box_capacity" field. + public const int MailBoxCapacityFieldNumber = 11; + private readonly static int MailBoxCapacityDefaultValue = 0; + + private int mailBoxCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MailBoxCapacity { + get { if ((_hasBits0 & 1024) != 0) { return mailBoxCapacity_; } else { return MailBoxCapacityDefaultValue; } } + set { + _hasBits0 |= 1024; + mailBoxCapacity_ = value; + } + } + /// Gets whether the "mail_box_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMailBoxCapacity { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "mail_box_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMailBoxCapacity() { + _hasBits0 &= ~1024; + } + + /// Field number for the "damage_param_c" field. + public const int DamageParamCFieldNumber = 12; + private readonly static float DamageParamCDefaultValue = 0F; + + private float damageParamC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamC { + get { if ((_hasBits0 & 2048) != 0) { return damageParamC_; } else { return DamageParamCDefaultValue; } } + set { + _hasBits0 |= 2048; + damageParamC_ = value; + } + } + /// Gets whether the "damage_param_c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamC { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "damage_param_c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamC() { + _hasBits0 &= ~2048; + } + + /// Field number for the "damage_param_e" field. + public const int DamageParamEFieldNumber = 13; + private readonly static float DamageParamEDefaultValue = 0F; + + private float damageParamE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamE { + get { if ((_hasBits0 & 4096) != 0) { return damageParamE_; } else { return DamageParamEDefaultValue; } } + set { + _hasBits0 |= 4096; + damageParamE_ = value; + } + } + /// Gets whether the "damage_param_e" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamE { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "damage_param_e" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamE() { + _hasBits0 &= ~4096; + } + + /// Field number for the "damage_param_f" field. + public const int DamageParamFFieldNumber = 14; + private readonly static float DamageParamFDefaultValue = 0F; + + private float damageParamF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamF { + get { if ((_hasBits0 & 8192) != 0) { return damageParamF_; } else { return DamageParamFDefaultValue; } } + set { + _hasBits0 |= 8192; + damageParamF_ = value; + } + } + /// Gets whether the "damage_param_f" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamF { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "damage_param_f" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamF() { + _hasBits0 &= ~8192; + } + + /// Field number for the "damage_param_d" field. + public const int DamageParamDFieldNumber = 15; + private readonly static float DamageParamDDefaultValue = 0F; + + private float damageParamD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamD { + get { if ((_hasBits0 & 16384) != 0) { return damageParamD_; } else { return DamageParamDDefaultValue; } } + set { + _hasBits0 |= 16384; + damageParamD_ = value; + } + } + /// Gets whether the "damage_param_d" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamD { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "damage_param_d" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamD() { + _hasBits0 &= ~16384; + } + + /// Field number for the "role_speed" field. + public const int RoleSpeedFieldNumber = 16; + private readonly static float RoleSpeedDefaultValue = 0F; + + private float roleSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RoleSpeed { + get { if ((_hasBits0 & 32768) != 0) { return roleSpeed_; } else { return RoleSpeedDefaultValue; } } + set { + _hasBits0 |= 32768; + roleSpeed_ = value; + } + } + /// Gets whether the "role_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleSpeed { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "role_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleSpeed() { + _hasBits0 &= ~32768; + } + + /// Field number for the "monster_speed" field. + public const int MonsterSpeedFieldNumber = 17; + private readonly static float MonsterSpeedDefaultValue = 0F; + + private float monsterSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float MonsterSpeed { + get { if ((_hasBits0 & 65536) != 0) { return monsterSpeed_; } else { return MonsterSpeedDefaultValue; } } + set { + _hasBits0 |= 65536; + monsterSpeed_ = value; + } + } + /// Gets whether the "monster_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMonsterSpeed { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "monster_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMonsterSpeed() { + _hasBits0 &= ~65536; + } + + /// Field number for the "init_energy" field. + public const int InitEnergyFieldNumber = 18; + private readonly static int InitEnergyDefaultValue = 0; + + private int initEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitEnergy { + get { if ((_hasBits0 & 131072) != 0) { return initEnergy_; } else { return InitEnergyDefaultValue; } } + set { + _hasBits0 |= 131072; + initEnergy_ = value; + } + } + /// Gets whether the "init_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitEnergy { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "init_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitEnergy() { + _hasBits0 &= ~131072; + } + + /// Field number for the "init_viality" field. + public const int InitVialityFieldNumber = 19; + private readonly static int InitVialityDefaultValue = 0; + + private int initViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitViality { + get { if ((_hasBits0 & 262144) != 0) { return initViality_; } else { return InitVialityDefaultValue; } } + set { + _hasBits0 |= 262144; + initViality_ = value; + } + } + /// Gets whether the "init_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitViality { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "init_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitViality() { + _hasBits0 &= ~262144; + } + + /// Field number for the "max_viality" field. + public const int MaxVialityFieldNumber = 20; + private readonly static int MaxVialityDefaultValue = 0; + + private int maxViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxViality { + get { if ((_hasBits0 & 524288) != 0) { return maxViality_; } else { return MaxVialityDefaultValue; } } + set { + _hasBits0 |= 524288; + maxViality_ = value; + } + } + /// Gets whether the "max_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxViality { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "max_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxViality() { + _hasBits0 &= ~524288; + } + + /// Field number for the "per_viality_recovery_time" field. + public const int PerVialityRecoveryTimeFieldNumber = 21; + private readonly static int PerVialityRecoveryTimeDefaultValue = 0; + + private int perVialityRecoveryTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerVialityRecoveryTime { + get { if ((_hasBits0 & 1048576) != 0) { return perVialityRecoveryTime_; } else { return PerVialityRecoveryTimeDefaultValue; } } + set { + _hasBits0 |= 1048576; + perVialityRecoveryTime_ = value; + } + } + /// Gets whether the "per_viality_recovery_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPerVialityRecoveryTime { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "per_viality_recovery_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPerVialityRecoveryTime() { + _hasBits0 &= ~1048576; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BagCapacity != other.BagCapacity) return false; + if (BagCapacitySpecial != other.BagCapacitySpecial) return false; + if (BagTempExpendableCapacity != other.BagTempExpendableCapacity) return false; + if (BagTempToolCapacity != other.BagTempToolCapacity) return false; + if (BagInitCapacity != other.BagInitCapacity) return false; + if (QuickBagCapacity != other.QuickBagCapacity) return false; + if (ClothBagCapacity != other.ClothBagCapacity) return false; + if (ClothBagInitCapacity != other.ClothBagInitCapacity) return false; + if (ClothBagCapacitySpecial != other.ClothBagCapacitySpecial) return false; + if (BagInitItemsDropId != other.BagInitItemsDropId) return false; + if (MailBoxCapacity != other.MailBoxCapacity) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamC, other.DamageParamC)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamE, other.DamageParamE)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamF, other.DamageParamF)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamD, other.DamageParamD)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RoleSpeed, other.RoleSpeed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MonsterSpeed, other.MonsterSpeed)) return false; + if (InitEnergy != other.InitEnergy) return false; + if (InitViality != other.InitViality) return false; + if (MaxViality != other.MaxViality) return false; + if (PerVialityRecoveryTime != other.PerVialityRecoveryTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBagCapacity) hash ^= BagCapacity.GetHashCode(); + if (HasBagCapacitySpecial) hash ^= BagCapacitySpecial.GetHashCode(); + if (HasBagTempExpendableCapacity) hash ^= BagTempExpendableCapacity.GetHashCode(); + if (HasBagTempToolCapacity) hash ^= BagTempToolCapacity.GetHashCode(); + if (HasBagInitCapacity) hash ^= BagInitCapacity.GetHashCode(); + if (HasQuickBagCapacity) hash ^= QuickBagCapacity.GetHashCode(); + if (HasClothBagCapacity) hash ^= ClothBagCapacity.GetHashCode(); + if (HasClothBagInitCapacity) hash ^= ClothBagInitCapacity.GetHashCode(); + if (HasClothBagCapacitySpecial) hash ^= ClothBagCapacitySpecial.GetHashCode(); + if (HasBagInitItemsDropId) hash ^= BagInitItemsDropId.GetHashCode(); + if (HasMailBoxCapacity) hash ^= MailBoxCapacity.GetHashCode(); + if (HasDamageParamC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamC); + if (HasDamageParamE) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamE); + if (HasDamageParamF) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamF); + if (HasDamageParamD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamD); + if (HasRoleSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RoleSpeed); + if (HasMonsterSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MonsterSpeed); + if (HasInitEnergy) hash ^= InitEnergy.GetHashCode(); + if (HasInitViality) hash ^= InitViality.GetHashCode(); + if (HasMaxViality) hash ^= MaxViality.GetHashCode(); + if (HasPerVialityRecoveryTime) hash ^= PerVialityRecoveryTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacity); + } + if (HasBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitCapacity); + } + if (HasQuickBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuickBagCapacity); + } + if (HasClothBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MailBoxCapacity); + } + if (HasDamageParamC) { + size += 1 + 4; + } + if (HasDamageParamE) { + size += 1 + 4; + } + if (HasDamageParamF) { + size += 1 + 4; + } + if (HasDamageParamD) { + size += 1 + 4; + } + if (HasRoleSpeed) { + size += 2 + 4; + } + if (HasMonsterSpeed) { + size += 2 + 4; + } + if (HasInitEnergy) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitEnergy); + } + if (HasInitViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitViality); + } + if (HasMaxViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxViality); + } + if (HasPerVialityRecoveryTime) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonGlobalConfig other) { + if (other == null) { + return; + } + if (other.HasBagCapacity) { + BagCapacity = other.BagCapacity; + } + if (other.HasBagCapacitySpecial) { + BagCapacitySpecial = other.BagCapacitySpecial; + } + if (other.HasBagTempExpendableCapacity) { + BagTempExpendableCapacity = other.BagTempExpendableCapacity; + } + if (other.HasBagTempToolCapacity) { + BagTempToolCapacity = other.BagTempToolCapacity; + } + if (other.HasBagInitCapacity) { + BagInitCapacity = other.BagInitCapacity; + } + if (other.HasQuickBagCapacity) { + QuickBagCapacity = other.QuickBagCapacity; + } + if (other.HasClothBagCapacity) { + ClothBagCapacity = other.ClothBagCapacity; + } + if (other.HasClothBagInitCapacity) { + ClothBagInitCapacity = other.ClothBagInitCapacity; + } + if (other.HasClothBagCapacitySpecial) { + ClothBagCapacitySpecial = other.ClothBagCapacitySpecial; + } + if (other.HasBagInitItemsDropId) { + BagInitItemsDropId = other.BagInitItemsDropId; + } + if (other.HasMailBoxCapacity) { + MailBoxCapacity = other.MailBoxCapacity; + } + if (other.HasDamageParamC) { + DamageParamC = other.DamageParamC; + } + if (other.HasDamageParamE) { + DamageParamE = other.DamageParamE; + } + if (other.HasDamageParamF) { + DamageParamF = other.DamageParamF; + } + if (other.HasDamageParamD) { + DamageParamD = other.DamageParamD; + } + if (other.HasRoleSpeed) { + RoleSpeed = other.RoleSpeed; + } + if (other.HasMonsterSpeed) { + MonsterSpeed = other.MonsterSpeed; + } + if (other.HasInitEnergy) { + InitEnergy = other.InitEnergy; + } + if (other.HasInitViality) { + InitViality = other.InitViality; + } + if (other.HasMaxViality) { + MaxViality = other.MaxViality; + } + if (other.HasPerVialityRecoveryTime) { + PerVialityRecoveryTime = other.PerVialityRecoveryTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem(ItemItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + majorType_ = other.majorType_; + minorType_ = other.minorType_; + maxPileNum_ = other.maxPileNum_; + quality_ = other.quality_; + icon_ = other.icon_; + iconBackgroud_ = other.iconBackgroud_; + iconMask_ = other.iconMask_; + desc_ = other.desc_; + showOrder_ = other.showOrder_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem Clone() { + return new ItemItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "major_type" field. + public const int MajorTypeFieldNumber = 3; + private readonly static global::Cfg.ItemEMajorType MajorTypeDefaultValue = global::Cfg.ItemEMajorType.Currency; + + private global::Cfg.ItemEMajorType majorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMajorType MajorType { + get { if ((_hasBits0 & 2) != 0) { return majorType_; } else { return MajorTypeDefaultValue; } } + set { + _hasBits0 |= 2; + majorType_ = value; + } + } + /// Gets whether the "major_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMajorType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "major_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMajorType() { + _hasBits0 &= ~2; + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 4; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 4) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 4; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~4; + } + + /// Field number for the "max_pile_num" field. + public const int MaxPileNumFieldNumber = 5; + private readonly static int MaxPileNumDefaultValue = 0; + + private int maxPileNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxPileNum { + get { if ((_hasBits0 & 8) != 0) { return maxPileNum_; } else { return MaxPileNumDefaultValue; } } + set { + _hasBits0 |= 8; + maxPileNum_ = value; + } + } + /// Gets whether the "max_pile_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxPileNum { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "max_pile_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxPileNum() { + _hasBits0 &= ~8; + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 6; + private readonly static global::Cfg.ItemEItemQuality QualityDefaultValue = global::Cfg.ItemEItemQuality.White; + + private global::Cfg.ItemEItemQuality quality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemQuality Quality { + get { if ((_hasBits0 & 16) != 0) { return quality_; } else { return QualityDefaultValue; } } + set { + _hasBits0 |= 16; + quality_ = value; + } + } + /// Gets whether the "quality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuality { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "quality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuality() { + _hasBits0 &= ~16; + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 7; + private readonly static string IconDefaultValue = ""; + + private string icon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_ ?? IconDefaultValue; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIcon { + get { return icon_ != null; } + } + /// Clears the value of the "icon" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIcon() { + icon_ = null; + } + + /// Field number for the "icon_backgroud" field. + public const int IconBackgroudFieldNumber = 8; + private readonly static string IconBackgroudDefaultValue = ""; + + private string iconBackgroud_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBackgroud { + get { return iconBackgroud_ ?? IconBackgroudDefaultValue; } + set { + iconBackgroud_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_backgroud" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconBackgroud { + get { return iconBackgroud_ != null; } + } + /// Clears the value of the "icon_backgroud" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconBackgroud() { + iconBackgroud_ = null; + } + + /// Field number for the "icon_mask" field. + public const int IconMaskFieldNumber = 9; + private readonly static string IconMaskDefaultValue = ""; + + private string iconMask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconMask { + get { return iconMask_ ?? IconMaskDefaultValue; } + set { + iconMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_mask" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconMask { + get { return iconMask_ != null; } + } + /// Clears the value of the "icon_mask" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconMask() { + iconMask_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 10; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "show_order" field. + public const int ShowOrderFieldNumber = 11; + private readonly static int ShowOrderDefaultValue = 0; + + private int showOrder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowOrder { + get { if ((_hasBits0 & 32) != 0) { return showOrder_; } else { return ShowOrderDefaultValue; } } + set { + _hasBits0 |= 32; + showOrder_ = value; + } + } + /// Gets whether the "show_order" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowOrder { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "show_order" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowOrder() { + _hasBits0 &= ~32; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MajorType != other.MajorType) return false; + if (MinorType != other.MinorType) return false; + if (MaxPileNum != other.MaxPileNum) return false; + if (Quality != other.Quality) return false; + if (Icon != other.Icon) return false; + if (IconBackgroud != other.IconBackgroud) return false; + if (IconMask != other.IconMask) return false; + if (Desc != other.Desc) return false; + if (ShowOrder != other.ShowOrder) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMajorType) hash ^= MajorType.GetHashCode(); + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasMaxPileNum) hash ^= MaxPileNum.GetHashCode(); + if (HasQuality) hash ^= Quality.GetHashCode(); + if (HasIcon) hash ^= Icon.GetHashCode(); + if (HasIconBackgroud) hash ^= IconBackgroud.GetHashCode(); + if (HasIconMask) hash ^= IconMask.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasShowOrder) hash ^= ShowOrder.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMajorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MajorType); + } + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasMaxPileNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxPileNum); + } + if (HasQuality) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } + if (HasIcon) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (HasIconBackgroud) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBackgroud); + } + if (HasIconMask) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconMask); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasShowOrder) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowOrder); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMajorType) { + MajorType = other.MajorType; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasMaxPileNum) { + MaxPileNum = other.MaxPileNum; + } + if (other.HasQuality) { + Quality = other.Quality; + } + if (other.HasIcon) { + Icon = other.Icon; + } + if (other.HasIconBackgroud) { + IconBackgroud = other.IconBackgroud; + } + if (other.HasIconMask) { + IconMask = other.IconMask; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasShowOrder) { + ShowOrder = other.ShowOrder; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo(L10nL10NDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo Clone() { + return new L10nL10NDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nL10NDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo(L10nPatchDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo Clone() { + return new L10nPatchDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nPatchDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTestTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag(TagTestTag other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag Clone() { + return new TagTestTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTestTag other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2(TestDemoType2 other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + x80_ = other.x80_; + x8_ = other.x8_; + x9_ = other.x9_; + x10_ = other.x10_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + s1_ = other.s1_; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k5_ = other.k5_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2 Clone() { + return new TestDemoType2(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "x8_0" field. + public const int X80FieldNumber = 8; + private readonly static int X80DefaultValue = 0; + + private int x80_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X80 { + get { if ((_hasBits0 & 128) != 0) { return x80_; } else { return X80DefaultValue; } } + set { + _hasBits0 |= 128; + x80_ = value; + } + } + /// Gets whether the "x8_0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX80 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "x8_0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX80() { + _hasBits0 &= ~128; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 9; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 256) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 256; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~256; + } + + /// Field number for the "x9" field. + public const int X9FieldNumber = 10; + private readonly static long X9DefaultValue = 0L; + + private long x9_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X9 { + get { if ((_hasBits0 & 512) != 0) { return x9_; } else { return X9DefaultValue; } } + set { + _hasBits0 |= 512; + x9_ = value; + } + } + /// Gets whether the "x9" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX9 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "x9" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX9() { + _hasBits0 &= ~512; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 11; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 12; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 13; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 1024) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 1024; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~1024; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 14; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 15; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 16; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 2048) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 2048; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~2048; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 18; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(146); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k5" field. + public const int K5FieldNumber = 19; + private static readonly pb::FieldCodec _repeated_k5_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField k5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K5 { + get { return k5_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 20; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 162); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 21; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(170, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 22; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(178, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (X80 != other.X80) return false; + if (X8 != other.X8) return false; + if (X9 != other.X9) return false; + if (X10 != other.X10) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (S1 != other.S1) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if(!k5_.Equals(other.k5_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasX80) hash ^= X80.GetHashCode(); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX9) hash ^= X9.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= k5_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(72); + output.WriteInt32(X8); + } + if (HasX9) { + output.WriteRawTag(80); + output.WriteInt64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (HasT1) { + output.WriteRawTag(128, 1); + output.WriteInt64(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k5_.WriteTo(output, _repeated_k5_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(72); + output.WriteInt32(X8); + } + if (HasX9) { + output.WriteRawTag(80); + output.WriteInt64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (HasT1) { + output.WriteRawTag(128, 1); + output.WriteInt64(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k5_.WriteTo(ref output, _repeated_k5_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasX80) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X80); + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX9) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X9); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasT1) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k5_.CalculateSize(_repeated_k5_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType2 other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasX80) { + X80 = other.X80; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX9) { + X9 = other.X9; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k5_.Add(other.k5_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 72: { + X8 = input.ReadInt32(); + break; + } + case 80: { + X9 = input.ReadInt64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 128: { + T1 = input.ReadInt64(); + break; + } + case 138: + case 136: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 146: + case 144: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 154: + case 152: { + k5_.AddEntriesFrom(input, _repeated_k5_codec); + break; + } + case 162: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 170: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 178: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 72: { + X8 = input.ReadInt32(); + break; + } + case 80: { + X9 = input.ReadInt64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 128: { + T1 = input.ReadInt64(); + break; + } + case 138: + case 136: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 146: + case 144: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 154: + case 152: { + k5_.AddEntriesFrom(ref input, _repeated_k5_codec); + break; + } + case 162: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 170: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 178: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1(TestDemoType1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1 Clone() { + return new TestDemoType1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoDynamic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoDynamic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic(TestDemoDynamic other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + DemoD2 = other.DemoD2.Clone(); + break; + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.RoleInfo: + RoleInfo = other.RoleInfo.Clone(); + break; + case ValueOneofCase.DemoD5: + DemoD5 = other.DemoD5.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic Clone() { + return new TestDemoDynamic(this); + } + + /// Field number for the "DemoD2" field. + public const int DemoD2FieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD2 DemoD2 { + get { return valueCase_ == ValueOneofCase.DemoD2 ? (global::Cfg.TestDemoD2) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD2; + } + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "RoleInfo" field. + public const int RoleInfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestLoginRoleInfo RoleInfo { + get { return valueCase_ == ValueOneofCase.RoleInfo ? (global::Cfg.TestLoginRoleInfo) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RoleInfo; + } + } + + /// Field number for the "DemoD5" field. + public const int DemoD5FieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD5 DemoD5 { + get { return valueCase_ == ValueOneofCase.DemoD5 ? (global::Cfg.TestDemoD5) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD5; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoD2 = 1, + DemoE1 = 2, + RoleInfo = 3, + DemoD5 = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoDynamic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoDynamic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoD2, other.DemoD2)) return false; + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(RoleInfo, other.RoleInfo)) return false; + if (!object.Equals(DemoD5, other.DemoD5)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoD2) hash ^= DemoD2.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.RoleInfo) hash ^= RoleInfo.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoD5) hash ^= DemoD5.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(34); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(34); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoD2) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoDynamic other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + if (DemoD2 == null) { + DemoD2 = new global::Cfg.TestDemoD2(); + } + DemoD2.MergeFrom(other.DemoD2); + break; + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.RoleInfo: + if (RoleInfo == null) { + RoleInfo = new global::Cfg.TestLoginRoleInfo(); + } + RoleInfo.MergeFrom(other.RoleInfo); + break; + case ValueOneofCase.DemoD5: + if (DemoD5 == null) { + DemoD5 = new global::Cfg.TestDemoD5(); + } + DemoD5.MergeFrom(other.DemoD5); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + case 34: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + case 34: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2(TestDemoD2 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2 Clone() { + return new TestDemoD2(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD2 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3(TestDemoD3 other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.RoleInfo: + RoleInfo = other.RoleInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3 Clone() { + return new TestDemoD3(this); + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "RoleInfo" field. + public const int RoleInfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestLoginRoleInfo RoleInfo { + get { return valueCase_ == ValueOneofCase.RoleInfo ? (global::Cfg.TestLoginRoleInfo) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RoleInfo; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoE1 = 2, + RoleInfo = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(RoleInfo, other.RoleInfo)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.RoleInfo) hash ^= RoleInfo.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD3 other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.RoleInfo: + if (RoleInfo == null) { + RoleInfo = new global::Cfg.TestLoginRoleInfo(); + } + RoleInfo.MergeFrom(other.RoleInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1(TestDemoE1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1 Clone() { + return new TestDemoE1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 3; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestLoginRoleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestLoginRoleInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo(TestLoginRoleInfo other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + roleId_ = other.roleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo Clone() { + return new TestLoginRoleInfo(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "role_id" field. + public const int RoleIdFieldNumber = 3; + private readonly static long RoleIdDefaultValue = 0L; + + private long roleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long RoleId { + get { if ((_hasBits0 & 4) != 0) { return roleId_; } else { return RoleIdDefaultValue; } } + set { + _hasBits0 |= 4; + roleId_ = value; + } + } + /// Gets whether the "role_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "role_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleId() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestLoginRoleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestLoginRoleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (RoleId != other.RoleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasRoleId) hash ^= RoleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasRoleId) { + output.WriteRawTag(24); + output.WriteInt64(RoleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasRoleId) { + output.WriteRawTag(24); + output.WriteInt64(RoleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasRoleId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestLoginRoleInfo other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasRoleId) { + RoleId = other.RoleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + RoleId = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + RoleId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD5 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD5()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5(TestDemoD5 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5 Clone() { + return new TestDemoD5(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Cfg.TestDateTimeRange time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDateTimeRange Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD5); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD5 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (!object.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD5 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + Time.MergeFrom(other.Time); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange(TestDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange Clone() { + return new TestDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static long StartTimeDefaultValue = 0L; + + private long startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static long EndTimeDefaultValue = 0L; + + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2(TestDemoE2 other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2 Clone() { + return new TestDemoE2(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static bool Y2DefaultValue = false; + + private bool y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE2 other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoSingletonType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoSingletonType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType(TestDemoSingletonType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + date_ = other.date_ != null ? other.date_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType Clone() { + return new TestDemoSingletonType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 3; + private global::Cfg.TestDemoDynamic date_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic Date { + get { return date_; } + set { + date_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoSingletonType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoSingletonType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(Date, other.Date)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (date_ != null) hash ^= Date.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoSingletonType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + Date.MergeFrom(other.Date); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList(TestNotIndexList other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList Clone() { + return new TestNotIndexList(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestNotIndexList other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[59]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList(TestMultiUnionIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList Clone() { + return new TestMultiUnionIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiUnionIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList(TestMultiIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList Clone() { + return new TestMultiIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord(TestMultiRowRecord other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + oneRows_ = other.oneRows_.Clone(); + multiRows1_ = other.multiRows1_.Clone(); + multiRows2_ = other.multiRows2_.Clone(); + multiRows4_ = other.multiRows4_.Clone(); + multiRows5_ = other.multiRows5_.Clone(); + multiRows6_ = other.multiRows6_.Clone(); + multiRows7_ = other.multiRows7_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord Clone() { + return new TestMultiRowRecord(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "one_rows" field. + public const int OneRowsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_oneRows_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField oneRows_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OneRows { + get { return oneRows_; } + } + + /// Field number for the "multi_rows1" field. + public const int MultiRows1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_multiRows1_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows1 { + get { return multiRows1_; } + } + + /// Field number for the "multi_rows2" field. + public const int MultiRows2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_multiRows2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows2 { + get { return multiRows2_; } + } + + /// Field number for the "multi_rows4" field. + public const int MultiRows4FieldNumber = 6; + private static readonly pbc::MapField.Codec _map_multiRows4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 50); + private readonly pbc::MapField multiRows4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows4 { + get { return multiRows4_; } + } + + /// Field number for the "multi_rows5" field. + public const int MultiRows5FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_multiRows5_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestMultiRowType3.Parser); + private readonly pbc::RepeatedField multiRows5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows5 { + get { return multiRows5_; } + } + + /// Field number for the "multi_rows6" field. + public const int MultiRows6FieldNumber = 8; + private static readonly pbc::MapField.Codec _map_multiRows6_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 66); + private readonly pbc::MapField multiRows6_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows6 { + get { return multiRows6_; } + } + + /// Field number for the "multi_rows7" field. + public const int MultiRows7FieldNumber = 9; + private static readonly pbc::MapField.Codec _map_multiRows7_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 74); + private readonly pbc::MapField multiRows7_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows7 { + get { return multiRows7_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!oneRows_.Equals(other.oneRows_)) return false; + if(!multiRows1_.Equals(other.multiRows1_)) return false; + if(!multiRows2_.Equals(other.multiRows2_)) return false; + if (!MultiRows4.Equals(other.MultiRows4)) return false; + if(!multiRows5_.Equals(other.multiRows5_)) return false; + if (!MultiRows6.Equals(other.MultiRows6)) return false; + if (!MultiRows7.Equals(other.MultiRows7)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + hash ^= oneRows_.GetHashCode(); + hash ^= multiRows1_.GetHashCode(); + hash ^= multiRows2_.GetHashCode(); + hash ^= MultiRows4.GetHashCode(); + hash ^= multiRows5_.GetHashCode(); + hash ^= MultiRows6.GetHashCode(); + hash ^= MultiRows7.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(output, _repeated_oneRows_codec); + multiRows1_.WriteTo(output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(output, _map_multiRows4_codec); + multiRows5_.WriteTo(output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(output, _map_multiRows6_codec); + multiRows7_.WriteTo(output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(ref output, _repeated_oneRows_codec); + multiRows1_.WriteTo(ref output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(ref output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(ref output, _map_multiRows4_codec); + multiRows5_.WriteTo(ref output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(ref output, _map_multiRows6_codec); + multiRows7_.WriteTo(ref output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += oneRows_.CalculateSize(_repeated_oneRows_codec); + size += multiRows1_.CalculateSize(_repeated_multiRows1_codec); + size += multiRows2_.CalculateSize(_repeated_multiRows2_codec); + size += multiRows4_.CalculateSize(_map_multiRows4_codec); + size += multiRows5_.CalculateSize(_repeated_multiRows5_codec); + size += multiRows6_.CalculateSize(_map_multiRows6_codec); + size += multiRows7_.CalculateSize(_map_multiRows7_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowRecord other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + oneRows_.Add(other.oneRows_); + multiRows1_.Add(other.multiRows1_); + multiRows2_.Add(other.multiRows2_); + multiRows4_.MergeFrom(other.multiRows4_); + multiRows5_.Add(other.multiRows5_); + multiRows6_.MergeFrom(other.multiRows6_); + multiRows7_.MergeFrom(other.multiRows7_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(input, _map_multiRows7_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(ref input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(ref input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(ref input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(ref input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(ref input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(ref input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(ref input, _map_multiRows7_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1(TestMultiRowType1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1 Clone() { + return new TestMultiRowType1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2(TestMultiRowType2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2 Clone() { + return new TestMultiRowType2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3(TestMultiRowType3 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3 Clone() { + return new TestMultiRowType3(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType3 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMultiColumn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMultiColumn()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn(TestTestMultiColumn other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_ != null ? other.b_.Clone() : null; + c_ = other.c_ != null ? other.c_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn Clone() { + return new TestTestMultiColumn(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 2; + private global::Cfg.TestFoo a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 3; + private global::Cfg.TestFoo b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo B { + get { return b_; } + set { + b_ = value; + } + } + + /// Field number for the "c" field. + public const int CFieldNumber = 4; + private global::Cfg.TestFoo c_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo C { + get { return c_; } + set { + c_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMultiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMultiColumn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(A, other.A)) return false; + if (!object.Equals(B, other.B)) return false; + if (!object.Equals(C, other.C)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + if (b_ != null) hash ^= B.GetHashCode(); + if (c_ != null) hash ^= C.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (a_ != null) { + output.WriteRawTag(18); + output.WriteMessage(A); + } + if (b_ != null) { + output.WriteRawTag(26); + output.WriteMessage(B); + } + if (c_ != null) { + output.WriteRawTag(34); + output.WriteMessage(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (a_ != null) { + output.WriteRawTag(18); + output.WriteMessage(A); + } + if (b_ != null) { + output.WriteRawTag(26); + output.WriteMessage(B); + } + if (c_ != null) { + output.WriteRawTag(34); + output.WriteMessage(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + if (b_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(B); + } + if (c_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(C); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMultiColumn other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + A.MergeFrom(other.A); + } + if (other.b_ != null) { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + B.MergeFrom(other.B); + } + if (other.c_ != null) { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + C.MergeFrom(other.C); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + input.ReadMessage(A); + break; + } + case 26: { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + input.ReadMessage(B); + break; + } + case 34: { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + input.ReadMessage(C); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + input.ReadMessage(A); + break; + } + case 26: { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + input.ReadMessage(B); + break; + } + case 34: { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + input.ReadMessage(C); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestFoo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestFoo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo(TestFoo other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo Clone() { + return new TestFoo(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestFoo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestFoo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestFoo other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle(TestMultiRowTitle other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x20_ = other.x20_ != null ? other.x20_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle Clone() { + return new TestMultiRowTitle(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2_0" field. + public const int X20FieldNumber = 4; + private global::Cfg.TestH2 x20_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 X20 { + get { return x20_; } + set { + x20_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(X1, other.X1)) return false; + if (!object.Equals(X20, other.X20)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + if (x20_ != null) hash ^= X20.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + if (x20_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X20); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowTitle other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + if (other.x20_ != null) { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + X20.MergeFrom(other.X20); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1(TestH1 other) : this() { + _hasBits0 = other._hasBits0; + y2_ = other.y2_ != null ? other.y2_.Clone() : null; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1 Clone() { + return new TestH1(this); + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 1; + private global::Cfg.TestH2 y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 Y2 { + get { return y2_; } + set { + y2_ = value; + } + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 2; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 1) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 1; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Y2, other.Y2)) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (y2_ != null) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (y2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH1 other) { + if (other == null) { + return; + } + if (other.y2_ != null) { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + Y2.MergeFrom(other.Y2); + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2(TestH2 other) : this() { + _hasBits0 = other._hasBits0; + z2_ = other.z2_; + z3_ = other.z3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2 Clone() { + return new TestH2(this); + } + + /// Field number for the "z2" field. + public const int Z2FieldNumber = 1; + private readonly static int Z2DefaultValue = 0; + + private int z2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z2 { + get { if ((_hasBits0 & 1) != 0) { return z2_; } else { return Z2DefaultValue; } } + set { + _hasBits0 |= 1; + z2_ = value; + } + } + /// Gets whether the "z2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ2 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "z2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ2() { + _hasBits0 &= ~1; + } + + /// Field number for the "z3" field. + public const int Z3FieldNumber = 2; + private readonly static int Z3DefaultValue = 0; + + private int z3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z3 { + get { if ((_hasBits0 & 2) != 0) { return z3_; } else { return Z3DefaultValue; } } + set { + _hasBits0 |= 2; + z3_ = value; + } + } + /// Gets whether the "z3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "z3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ3() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Z2 != other.Z2) return false; + if (Z3 != other.Z3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasZ2) hash ^= Z2.GetHashCode(); + if (HasZ3) hash ^= Z3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasZ2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z2); + } + if (HasZ3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH2 other) { + if (other == null) { + return; + } + if (other.HasZ2) { + Z2 = other.Z2; + } + if (other.HasZ3) { + Z3 = other.Z3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestNull()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull(TestTestNull other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_ != null ? other.x4_.Clone() : null; + s1_ = other.s1_; + s2_ = other.s2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull Clone() { + return new TestTestNull(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static global::Cfg.TestDemoEnum X2DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestDemoType1 x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private global::Cfg.TestDemoDynamic x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X4 { + get { return x4_; } + set { + x4_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 6; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 7; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (!object.Equals(X3, other.X3)) return false; + if (!object.Equals(X4, other.X4)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + if (x4_ != null) hash ^= X4.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + if (x4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X4); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestNull other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + X3.MergeFrom(other.X3); + } + if (other.x4_ != null) { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + X4.MergeFrom(other.X4); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoPrimitiveTypesTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoPrimitiveTypesTable()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[71]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable(TestDemoPrimitiveTypesTable other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable Clone() { + return new TestDemoPrimitiveTypesTable(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 4) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 4; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~4; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 8) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 8; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 8; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 9; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 10; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 11; + private global::Cfg.vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 12; + private global::Cfg.vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 13; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoPrimitiveTypesTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoPrimitiveTypesTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt64(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt64(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoPrimitiveTypesTable other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[72]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2(vector2 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2 Clone() { + return new vector2(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector2 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[73]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3(vector3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3 Clone() { + return new vector3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector4 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector4()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[74]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4(vector4 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + w_ = other.w_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4 Clone() { + return new vector4(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + /// Field number for the "w" field. + public const int WFieldNumber = 4; + private readonly static float WDefaultValue = 0F; + + private float w_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float W { + get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } + set { + _hasBits0 |= 8; + w_ = value; + } + } + /// Gets whether the "w" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasW { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "w" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearW() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector4); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector4 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (HasW) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector4 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.HasW) { + W = other.W; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[75]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString(TestTestString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s1_ = other.s1_; + cs1_ = other.cs1_ != null ? other.cs1_.Clone() : null; + cs2_ = other.cs2_ != null ? other.cs2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString Clone() { + return new TestTestString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 2; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "cs1" field. + public const int Cs1FieldNumber = 3; + private global::Cfg.TestCompactString cs1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs1 { + get { return cs1_; } + set { + cs1_ = value; + } + } + + /// Field number for the "cs2" field. + public const int Cs2FieldNumber = 4; + private global::Cfg.TestCompactString cs2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs2 { + get { return cs2_; } + set { + cs2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S1 != other.S1) return false; + if (!object.Equals(Cs1, other.Cs1)) return false; + if (!object.Equals(Cs2, other.Cs2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (cs1_ != null) hash ^= Cs1.GetHashCode(); + if (cs2_ != null) hash ^= Cs2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (cs1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs1); + } + if (cs2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.cs1_ != null) { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + Cs1.MergeFrom(other.Cs1); + } + if (other.cs2_ != null) { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + Cs2.MergeFrom(other.Cs2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompactString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompactString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString(TestCompactString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s2_ = other.s2_; + s3_ = other.s3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString Clone() { + return new TestCompactString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 2; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "s3" field. + public const int S3FieldNumber = 3; + private readonly static string S3DefaultValue = ""; + + private string s3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S3 { + get { return s3_ ?? S3DefaultValue; } + set { + s3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS3 { + get { return s3_ != null; } + } + /// Clears the value of the "s3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS3() { + s3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompactString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompactString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S2 != other.S2) return false; + if (S3 != other.S3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasS3) hash ^= S3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasS3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompactString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasS3) { + S3 = other.S3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup(TestDemoGroup other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_ != null ? other.x5_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup Clone() { + return new TestDemoGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 16) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 16; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~16; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private global::Cfg.TestInnerGroup x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestInnerGroup X5 { + get { return x5_; } + set { + x5_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (!object.Equals(X5, other.X5)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (x5_ != null) hash ^= X5.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (x5_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoGroup other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.x5_ != null) { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + X5.MergeFrom(other.X5); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestInnerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestInnerGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup(TestInnerGroup other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + y4_ = other.y4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup Clone() { + return new TestInnerGroup(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + /// Field number for the "y4" field. + public const int Y4FieldNumber = 4; + private readonly static int Y4DefaultValue = 0; + + private int y4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y4 { + get { if ((_hasBits0 & 8) != 0) { return y4_; } else { return Y4DefaultValue; } } + set { + _hasBits0 |= 8; + y4_ = value; + } + } + /// Gets whether the "y4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "y4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY4() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestInnerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestInnerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + if (Y4 != other.Y4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (HasY4) hash ^= Y4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (HasY4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestInnerGroup other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + if (other.HasY4) { + Y4 = other.Y4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal(TestTestGlobal other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal Clone() { + return new TestTestGlobal(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestGlobal other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef(TestTestBeRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef Clone() { + return new TestTestBeRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private readonly static int CountDefaultValue = 0; + + private int count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Count { + get { if ((_hasBits0 & 2) != 0) { return count_; } else { return CountDefaultValue; } } + set { + _hasBits0 |= 2; + count_ = value; + } + } + /// Gets whether the "count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestBeRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasCount) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef(TestTestRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x12_ = other.x12_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + a1_ = other.a1_.Clone(); + a2_ = other.a2_.Clone(); + b1_ = other.b1_.Clone(); + b2_ = other.b2_.Clone(); + c1_ = other.c1_.Clone(); + c2_ = other.c2_.Clone(); + d1_ = other.d1_.Clone(); + d2_ = other.d2_.Clone(); + e1_ = other.e1_; + e2_ = other.e2_; + e3_ = other.e3_; + f1_ = other.f1_; + f2_ = other.f2_; + f3_ = other.f3_; + s1_ = other.s1_ != null ? other.s1_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef Clone() { + return new TestTestRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x1_2" field. + public const int X12FieldNumber = 3; + private readonly static int X12DefaultValue = 0; + + private int x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X12 { + get { if ((_hasBits0 & 4) != 0) { return x12_; } else { return X12DefaultValue; } } + set { + _hasBits0 |= 4; + x12_ = value; + } + } + /// Gets whether the "x1_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX12 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x1_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX12() { + _hasBits0 &= ~4; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 8) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 8; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~8; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 16) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 16; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~16; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 6; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 32) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 32; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~32; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_a1_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField a1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A1 { + get { return a1_; } + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_a2_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField a2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A2 { + get { return a2_; } + } + + /// Field number for the "b1" field. + public const int B1FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_b1_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField b1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B1 { + get { return b1_; } + } + + /// Field number for the "b2" field. + public const int B2FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_b2_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField b2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B2 { + get { return b2_; } + } + + /// Field number for the "c1" field. + public const int C1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_c1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField c1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C1 { + get { return c1_; } + } + + /// Field number for the "c2" field. + public const int C2FieldNumber = 12; + private static readonly pb::FieldCodec _repeated_c2_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField c2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C2 { + get { return c2_; } + } + + /// Field number for the "d1" field. + public const int D1FieldNumber = 13; + private static readonly pbc::MapField.Codec _map_d1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 106); + private readonly pbc::MapField d1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D1 { + get { return d1_; } + } + + /// Field number for the "d2" field. + public const int D2FieldNumber = 14; + private static readonly pbc::MapField.Codec _map_d2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 114); + private readonly pbc::MapField d2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D2 { + get { return d2_; } + } + + /// Field number for the "e1" field. + public const int E1FieldNumber = 15; + private readonly static int E1DefaultValue = 0; + + private int e1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int E1 { + get { if ((_hasBits0 & 64) != 0) { return e1_; } else { return E1DefaultValue; } } + set { + _hasBits0 |= 64; + e1_ = value; + } + } + /// Gets whether the "e1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "e1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE1() { + _hasBits0 &= ~64; + } + + /// Field number for the "e2" field. + public const int E2FieldNumber = 16; + private readonly static long E2DefaultValue = 0L; + + private long e2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long E2 { + get { if ((_hasBits0 & 128) != 0) { return e2_; } else { return E2DefaultValue; } } + set { + _hasBits0 |= 128; + e2_ = value; + } + } + /// Gets whether the "e2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE2 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "e2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE2() { + _hasBits0 &= ~128; + } + + /// Field number for the "e3" field. + public const int E3FieldNumber = 17; + private readonly static string E3DefaultValue = ""; + + private string e3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string E3 { + get { return e3_ ?? E3DefaultValue; } + set { + e3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "e3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE3 { + get { return e3_ != null; } + } + /// Clears the value of the "e3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE3() { + e3_ = null; + } + + /// Field number for the "f1" field. + public const int F1FieldNumber = 18; + private readonly static int F1DefaultValue = 0; + + private int f1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int F1 { + get { if ((_hasBits0 & 256) != 0) { return f1_; } else { return F1DefaultValue; } } + set { + _hasBits0 |= 256; + f1_ = value; + } + } + /// Gets whether the "f1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF1 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "f1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF1() { + _hasBits0 &= ~256; + } + + /// Field number for the "f2" field. + public const int F2FieldNumber = 19; + private readonly static long F2DefaultValue = 0L; + + private long f2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long F2 { + get { if ((_hasBits0 & 512) != 0) { return f2_; } else { return F2DefaultValue; } } + set { + _hasBits0 |= 512; + f2_ = value; + } + } + /// Gets whether the "f2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF2 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "f2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF2() { + _hasBits0 &= ~512; + } + + /// Field number for the "f3" field. + public const int F3FieldNumber = 20; + private readonly static string F3DefaultValue = ""; + + private string f3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string F3 { + get { return f3_ ?? F3DefaultValue; } + set { + f3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "f3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF3 { + get { return f3_ != null; } + } + /// Clears the value of the "f3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF3() { + f3_ = null; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 21; + private global::Cfg.TestRefDynamicBase s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestRefDynamicBase S1 { + get { return s1_; } + set { + s1_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X12 != other.X12) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if(!a1_.Equals(other.a1_)) return false; + if(!a2_.Equals(other.a2_)) return false; + if(!b1_.Equals(other.b1_)) return false; + if(!b2_.Equals(other.b2_)) return false; + if(!c1_.Equals(other.c1_)) return false; + if(!c2_.Equals(other.c2_)) return false; + if (!D1.Equals(other.D1)) return false; + if (!D2.Equals(other.D2)) return false; + if (E1 != other.E1) return false; + if (E2 != other.E2) return false; + if (E3 != other.E3) return false; + if (F1 != other.F1) return false; + if (F2 != other.F2) return false; + if (F3 != other.F3) return false; + if (!object.Equals(S1, other.S1)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX12) hash ^= X12.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + hash ^= a1_.GetHashCode(); + hash ^= a2_.GetHashCode(); + hash ^= b1_.GetHashCode(); + hash ^= b2_.GetHashCode(); + hash ^= c1_.GetHashCode(); + hash ^= c2_.GetHashCode(); + hash ^= D1.GetHashCode(); + hash ^= D2.GetHashCode(); + if (HasE1) hash ^= E1.GetHashCode(); + if (HasE2) hash ^= E2.GetHashCode(); + if (HasE3) hash ^= E3.GetHashCode(); + if (HasF1) hash ^= F1.GetHashCode(); + if (HasF2) hash ^= F2.GetHashCode(); + if (HasF3) hash ^= F3.GetHashCode(); + if (s1_ != null) hash ^= S1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(48); + output.WriteInt32(X4); + } + a1_.WriteTo(output, _repeated_a1_codec); + a2_.WriteTo(output, _repeated_a2_codec); + b1_.WriteTo(output, _repeated_b1_codec); + b2_.WriteTo(output, _repeated_b2_codec); + c1_.WriteTo(output, _repeated_c1_codec); + c2_.WriteTo(output, _repeated_c2_codec); + d1_.WriteTo(output, _map_d1_codec); + d2_.WriteTo(output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(120); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(128, 1); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(138, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(144, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(152, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(162, 1); + output.WriteString(F3); + } + if (s1_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(S1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(48); + output.WriteInt32(X4); + } + a1_.WriteTo(ref output, _repeated_a1_codec); + a2_.WriteTo(ref output, _repeated_a2_codec); + b1_.WriteTo(ref output, _repeated_b1_codec); + b2_.WriteTo(ref output, _repeated_b2_codec); + c1_.WriteTo(ref output, _repeated_c1_codec); + c2_.WriteTo(ref output, _repeated_c2_codec); + d1_.WriteTo(ref output, _map_d1_codec); + d2_.WriteTo(ref output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(120); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(128, 1); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(138, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(144, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(152, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(162, 1); + output.WriteString(F3); + } + if (s1_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(S1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX12) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X12); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + size += a1_.CalculateSize(_repeated_a1_codec); + size += a2_.CalculateSize(_repeated_a2_codec); + size += b1_.CalculateSize(_repeated_b1_codec); + size += b2_.CalculateSize(_repeated_b2_codec); + size += c1_.CalculateSize(_repeated_c1_codec); + size += c2_.CalculateSize(_repeated_c2_codec); + size += d1_.CalculateSize(_map_d1_codec); + size += d2_.CalculateSize(_map_d2_codec); + if (HasE1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(E1); + } + if (HasE2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(E2); + } + if (HasE3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(E3); + } + if (HasF1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(F1); + } + if (HasF2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(F2); + } + if (HasF3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(F3); + } + if (s1_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(S1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX12) { + X12 = other.X12; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + a1_.Add(other.a1_); + a2_.Add(other.a2_); + b1_.Add(other.b1_); + b2_.Add(other.b2_); + c1_.Add(other.c1_); + c2_.Add(other.c2_); + d1_.MergeFrom(other.d1_); + d2_.MergeFrom(other.d2_); + if (other.HasE1) { + E1 = other.E1; + } + if (other.HasE2) { + E2 = other.E2; + } + if (other.HasE3) { + E3 = other.E3; + } + if (other.HasF1) { + F1 = other.F1; + } + if (other.HasF2) { + F2 = other.F2; + } + if (other.HasF3) { + F3 = other.F3; + } + if (other.s1_ != null) { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + S1.MergeFrom(other.S1); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 48: { + X4 = input.ReadInt32(); + break; + } + case 58: + case 56: { + a1_.AddEntriesFrom(input, _repeated_a1_codec); + break; + } + case 66: + case 64: { + a2_.AddEntriesFrom(input, _repeated_a2_codec); + break; + } + case 74: + case 72: { + b1_.AddEntriesFrom(input, _repeated_b1_codec); + break; + } + case 82: + case 80: { + b2_.AddEntriesFrom(input, _repeated_b2_codec); + break; + } + case 90: + case 88: { + c1_.AddEntriesFrom(input, _repeated_c1_codec); + break; + } + case 98: + case 96: { + c2_.AddEntriesFrom(input, _repeated_c2_codec); + break; + } + case 106: { + d1_.AddEntriesFrom(input, _map_d1_codec); + break; + } + case 114: { + d2_.AddEntriesFrom(input, _map_d2_codec); + break; + } + case 120: { + E1 = input.ReadInt32(); + break; + } + case 128: { + E2 = input.ReadInt64(); + break; + } + case 138: { + E3 = input.ReadString(); + break; + } + case 144: { + F1 = input.ReadInt32(); + break; + } + case 152: { + F2 = input.ReadInt64(); + break; + } + case 162: { + F3 = input.ReadString(); + break; + } + case 170: { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + input.ReadMessage(S1); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 48: { + X4 = input.ReadInt32(); + break; + } + case 58: + case 56: { + a1_.AddEntriesFrom(ref input, _repeated_a1_codec); + break; + } + case 66: + case 64: { + a2_.AddEntriesFrom(ref input, _repeated_a2_codec); + break; + } + case 74: + case 72: { + b1_.AddEntriesFrom(ref input, _repeated_b1_codec); + break; + } + case 82: + case 80: { + b2_.AddEntriesFrom(ref input, _repeated_b2_codec); + break; + } + case 90: + case 88: { + c1_.AddEntriesFrom(ref input, _repeated_c1_codec); + break; + } + case 98: + case 96: { + c2_.AddEntriesFrom(ref input, _repeated_c2_codec); + break; + } + case 106: { + d1_.AddEntriesFrom(ref input, _map_d1_codec); + break; + } + case 114: { + d2_.AddEntriesFrom(ref input, _map_d2_codec); + break; + } + case 120: { + E1 = input.ReadInt32(); + break; + } + case 128: { + E2 = input.ReadInt64(); + break; + } + case 138: { + E3 = input.ReadString(); + break; + } + case 144: { + F1 = input.ReadInt32(); + break; + } + case 152: { + F2 = input.ReadInt64(); + break; + } + case 162: { + F3 = input.ReadString(); + break; + } + case 170: { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + input.ReadMessage(S1); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestRefDynamicBase : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestRefDynamicBase()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[82]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase(TestRefDynamicBase other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.RefBean: + RefBean = other.RefBean.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase Clone() { + return new TestRefDynamicBase(this); + } + + /// Field number for the "RefBean" field. + public const int RefBeanFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestRefBean RefBean { + get { return valueCase_ == ValueOneofCase.RefBean ? (global::Cfg.TestRefBean) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RefBean; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + RefBean = 1, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestRefDynamicBase); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestRefDynamicBase other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RefBean, other.RefBean)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.RefBean) hash ^= RefBean.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.RefBean) { + output.WriteRawTag(10); + output.WriteMessage(RefBean); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.RefBean) { + output.WriteRawTag(10); + output.WriteMessage(RefBean); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.RefBean) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RefBean); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestRefDynamicBase other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.RefBean: + if (RefBean == null) { + RefBean = new global::Cfg.TestRefBean(); + } + RefBean.MergeFrom(other.RefBean); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestRefBean subBuilder = new global::Cfg.TestRefBean(); + if (valueCase_ == ValueOneofCase.RefBean) { + subBuilder.MergeFrom(RefBean); + } + input.ReadMessage(subBuilder); + RefBean = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestRefBean subBuilder = new global::Cfg.TestRefBean(); + if (valueCase_ == ValueOneofCase.RefBean) { + subBuilder.MergeFrom(RefBean); + } + input.ReadMessage(subBuilder); + RefBean = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestRefBean : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestRefBean()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[83]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean(TestRefBean other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + arr_ = other.arr_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean Clone() { + return new TestRefBean(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "arr" field. + public const int ArrFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_arr_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField arr_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Arr { + get { return arr_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestRefBean); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestRefBean other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if(!arr_.Equals(other.arr_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + hash ^= arr_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + arr_.WriteTo(output, _repeated_arr_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + arr_.WriteTo(ref output, _repeated_arr_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += arr_.CalculateSize(_repeated_arr_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestRefBean other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + arr_.Add(other.arr_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 18: + case 16: { + arr_.AddEntriesFrom(input, _repeated_arr_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 18: + case 16: { + arr_.AddEntriesFrom(ref input, _repeated_arr_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSize()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[84]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize(TestTestSize other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize Clone() { + return new TestTestSize(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSize other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.MergeFrom(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[85]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet(TestTestSet other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x0_ = other.x0_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet Clone() { + return new TestTestSet(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x0" field. + public const int X0FieldNumber = 2; + private readonly static string X0DefaultValue = ""; + + private string x0_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X0 { + get { return x0_ ?? X0DefaultValue; } + set { + x0_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX0 { + get { return x0_ != null; } + } + /// Clears the value of the "x0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX0() { + x0_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt64(34); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForEnum(48, x => (int) x, x => (global::Cfg.TestDemoEnum) x); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X0 != other.X0) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX0) hash ^= X0.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX0) { + output.WriteRawTag(18); + output.WriteString(X0); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX0) { + output.WriteRawTag(18); + output.WriteString(X0); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X0); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSet other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX0) { + X0 = other.X0; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X0 = input.ReadString(); + break; + } + case 26: + case 24: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 34: + case 32: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 42: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 50: + case 48: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X0 = input.ReadString(); + break; + } + case 26: + case 24: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 34: + case 32: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 42: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 50: + case 48: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDetectEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDetectEncoding()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[86]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding(TestDetectEncoding other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding Clone() { + return new TestDetectEncoding(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDetectEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDetectEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDetectEncoding other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestItemBase : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestItemBase()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[87]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase(TestItemBase other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Item: + Item = other.Item.Clone(); + break; + case ValueOneofCase.Equipment: + Equipment = other.Equipment.Clone(); + break; + case ValueOneofCase.Decorator: + Decorator = other.Decorator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase Clone() { + return new TestItemBase(this); + } + + /// Field number for the "Item" field. + public const int ItemFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestItem Item { + get { return valueCase_ == ValueOneofCase.Item ? (global::Cfg.TestItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Item; + } + } + + /// Field number for the "Equipment" field. + public const int EquipmentFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestEquipment Equipment { + get { return valueCase_ == ValueOneofCase.Equipment ? (global::Cfg.TestEquipment) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Equipment; + } + } + + /// Field number for the "Decorator" field. + public const int DecoratorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDecorator Decorator { + get { return valueCase_ == ValueOneofCase.Decorator ? (global::Cfg.TestDecorator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Decorator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Item = 1, + Equipment = 2, + Decorator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestItemBase); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestItemBase other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(Equipment, other.Equipment)) return false; + if (!object.Equals(Decorator, other.Decorator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Item) hash ^= Item.GetHashCode(); + if (valueCase_ == ValueOneofCase.Equipment) hash ^= Equipment.GetHashCode(); + if (valueCase_ == ValueOneofCase.Decorator) hash ^= Decorator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + output.WriteRawTag(18); + output.WriteMessage(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + output.WriteRawTag(26); + output.WriteMessage(Decorator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + output.WriteRawTag(18); + output.WriteMessage(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + output.WriteRawTag(26); + output.WriteMessage(Decorator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Decorator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestItemBase other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Item: + if (Item == null) { + Item = new global::Cfg.TestItem(); + } + Item.MergeFrom(other.Item); + break; + case ValueOneofCase.Equipment: + if (Equipment == null) { + Equipment = new global::Cfg.TestEquipment(); + } + Equipment.MergeFrom(other.Equipment); + break; + case ValueOneofCase.Decorator: + if (Decorator == null) { + Decorator = new global::Cfg.TestDecorator(); + } + Decorator.MergeFrom(other.Decorator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestItem subBuilder = new global::Cfg.TestItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 18: { + global::Cfg.TestEquipment subBuilder = new global::Cfg.TestEquipment(); + if (valueCase_ == ValueOneofCase.Equipment) { + subBuilder.MergeFrom(Equipment); + } + input.ReadMessage(subBuilder); + Equipment = subBuilder; + break; + } + case 26: { + global::Cfg.TestDecorator subBuilder = new global::Cfg.TestDecorator(); + if (valueCase_ == ValueOneofCase.Decorator) { + subBuilder.MergeFrom(Decorator); + } + input.ReadMessage(subBuilder); + Decorator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestItem subBuilder = new global::Cfg.TestItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 18: { + global::Cfg.TestEquipment subBuilder = new global::Cfg.TestEquipment(); + if (valueCase_ == ValueOneofCase.Equipment) { + subBuilder.MergeFrom(Equipment); + } + input.ReadMessage(subBuilder); + Equipment = subBuilder; + break; + } + case 26: { + global::Cfg.TestDecorator subBuilder = new global::Cfg.TestDecorator(); + if (valueCase_ == ValueOneofCase.Decorator) { + subBuilder.MergeFrom(Decorator); + } + input.ReadMessage(subBuilder); + Decorator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[88]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem(TestItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + num_ = other.num_; + price_ = other.price_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem Clone() { + return new TestItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 5; + private readonly static int PriceDefaultValue = 0; + + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { if ((_hasBits0 & 4) != 0) { return price_; } else { return PriceDefaultValue; } } + set { + _hasBits0 |= 4; + price_ = value; + } + } + /// Gets whether the "price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPrice { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPrice() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Num != other.Num) return false; + if (Price != other.Price) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasPrice) hash ^= Price.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasPrice) { + output.WriteRawTag(40); + output.WriteInt32(Price); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasPrice) { + output.WriteRawTag(40); + output.WriteInt32(Price); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasPrice) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasPrice) { + Price = other.Price; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 40: { + Price = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 40: { + Price = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestEquipment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestEquipment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[89]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment(TestEquipment other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + attr_ = other.attr_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment Clone() { + return new TestEquipment(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "attr" field. + public const int AttrFieldNumber = 4; + private readonly static global::Cfg.TestDemoEnum AttrDefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum attr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum Attr { + get { if ((_hasBits0 & 2) != 0) { return attr_; } else { return AttrDefaultValue; } } + set { + _hasBits0 |= 2; + attr_ = value; + } + } + /// Gets whether the "attr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttr { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttr() { + _hasBits0 &= ~2; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 5; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 4) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 4; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestEquipment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestEquipment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Attr != other.Attr) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasAttr) hash ^= Attr.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasAttr) { + output.WriteRawTag(32); + output.WriteEnum((int) Attr); + } + if (HasValue) { + output.WriteRawTag(40); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasAttr) { + output.WriteRawTag(32); + output.WriteEnum((int) Attr); + } + if (HasValue) { + output.WriteRawTag(40); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasAttr) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Attr); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestEquipment other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasAttr) { + Attr = other.Attr; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Attr = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 40: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Attr = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 40: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDecorator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[90]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator(TestDecorator other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + duration_ = other.duration_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator Clone() { + return new TestDecorator(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 4; + private readonly static int DurationDefaultValue = 0; + + private int duration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Duration { + get { if ((_hasBits0 & 2) != 0) { return duration_; } else { return DurationDefaultValue; } } + set { + _hasBits0 |= 2; + duration_ = value; + } + } + /// Gets whether the "duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDuration { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDuration() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Duration != other.Duration) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasDuration) hash ^= Duration.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasDuration) { + output.WriteRawTag(32); + output.WriteInt32(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasDuration) { + output.WriteRawTag(32); + output.WriteInt32(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasDuration) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Duration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDecorator other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasDuration) { + Duration = other.Duration; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Duration = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Duration = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestIndex()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[91]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex(TestTestIndex other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + eles_ = other.eles_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex Clone() { + return new TestTestIndex(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "eles" field. + public const int ElesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_eles_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestDemoType1.Parser); + private readonly pbc::RepeatedField eles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Eles { + get { return eles_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!eles_.Equals(other.eles_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= eles_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(ref output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += eles_.CalculateSize(_repeated_eles_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestIndex other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + eles_.Add(other.eles_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(input, _repeated_eles_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(ref input, _repeated_eles_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[92]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap(TestTestMap other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap Clone() { + return new TestTestMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pbc::MapField.Codec _map_x1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 18); + private readonly pbc::MapField x1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pbc::MapField.Codec _map_x2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt32(16, 0), 26); + private readonly pbc::MapField x2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pbc::MapField.Codec _map_x3_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 34); + private readonly pbc::MapField x3_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!X1.Equals(other.X1)) return false; + if (!X2.Equals(other.X2)) return false; + if (!X3.Equals(other.X3)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= X1.GetHashCode(); + hash ^= X2.GetHashCode(); + hash ^= X3.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _map_x1_codec); + x2_.WriteTo(output, _map_x2_codec); + x3_.WriteTo(output, _map_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _map_x1_codec); + x2_.WriteTo(ref output, _map_x2_codec); + x3_.WriteTo(ref output, _map_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_map_x1_codec); + size += x2_.CalculateSize(_map_x2_codec); + size += x3_.CalculateSize(_map_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMap other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.MergeFrom(other.x1_); + x2_.MergeFrom(other.x2_); + x3_.MergeFrom(other.x3_); + x4_.MergeFrom(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(ref input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(ref input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[93]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson(TestExcelFromJson other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + s1_ = other.s1_; + s2_ = other.s2_; + t1_ = other.t1_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson Clone() { + return new TestExcelFromJson(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 5; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 6; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 7; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 16) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 16; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~16; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 8; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 9; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 10; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(114, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (T1 != other.T1) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (HasT1) { + output.WriteRawTag(56); + output.WriteInt64(T1); + } + if (x12_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(72); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X14); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (HasT1) { + output.WriteRawTag(56); + output.WriteInt64(T1); + } + if (x12_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(72); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X14); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJson other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasT1) { + T1 = other.T1; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + k1_.Add(other.k1_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 56: { + T1 = input.ReadInt64(); + break; + } + case 66: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 72: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 82: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 114: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 56: { + T1 = input.ReadInt64(); + break; + } + case 66: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 72: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 82: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 114: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[94]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1(TestCompositeJsonTable1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1 Clone() { + return new TestCompositeJsonTable1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static string XDefaultValue = ""; + + private string x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X { + get { return x_ ?? XDefaultValue; } + set { + x_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return x_ != null; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + x_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[95]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2(TestCompositeJsonTable2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2 Clone() { + return new TestCompositeJsonTable2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[96]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3(TestCompositeJsonTable3 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3 Clone() { + return new TestCompositeJsonTable3(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable3 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[97]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow(TestExcelFromJsonMultiRow other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow Clone() { + return new TestExcelFromJsonMultiRow(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestTestRow.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[98]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow(TestTestRow other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow Clone() { + return new TestTestRow(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static bool YDefaultValue = false; + + private bool y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static string ZDefaultValue = ""; + + private string z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Z { + get { return z_ ?? ZDefaultValue; } + set { + z_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return z_ != null; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + z_ = null; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private global::Cfg.TestTest3 a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestTest3 A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_b_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField b_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B { + get { return b_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + if (!object.Equals(A, other.A)) return false; + if(!b_.Equals(other.b_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + hash ^= b_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(ref output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 1; + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Z); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + size += b_.CalculateSize(_repeated_b_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRow other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + A.MergeFrom(other.A); + } + b_.Add(other.b_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(input, _repeated_b_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(ref input, _repeated_b_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTest3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTest3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[99]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3(TestTest3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3 Clone() { + return new TestTest3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTest3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTest3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTest3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestScriptableObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestScriptableObject()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[100]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject(TestTestScriptableObject other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + desc_ = other.desc_; + rate_ = other.rate_; + num_ = other.num_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject Clone() { + return new TestTestScriptableObject(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 3; + private readonly static float RateDefaultValue = 0F; + + private float rate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Rate { + get { if ((_hasBits0 & 2) != 0) { return rate_; } else { return RateDefaultValue; } } + set { + _hasBits0 |= 2; + rate_ = value; + } + } + /// Gets whether the "rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRate { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRate() { + _hasBits0 &= ~2; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 5; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 6; + private global::Cfg.vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 7; + private global::Cfg.vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestScriptableObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestScriptableObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rate, other.Rate)) return false; + if (Num != other.Num) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rate); + if (HasNum) hash ^= Num.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasRate) { + output.WriteRawTag(29); + output.WriteFloat(Rate); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (v2_ != null) { + output.WriteRawTag(42); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(50); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasRate) { + output.WriteRawTag(29); + output.WriteFloat(Rate); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (v2_ != null) { + output.WriteRawTag(42); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(50); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasRate) { + size += 1 + 4; + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestScriptableObject other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasRate) { + Rate = other.Rate; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + V4.MergeFrom(other.V4); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 29: { + Rate = input.ReadFloat(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 50: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 58: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 29: { + Rate = input.ReadFloat(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 50: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 58: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMapper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMapper()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[101]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper(TestTestMapper other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + audioType_ = other.audioType_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper Clone() { + return new TestTestMapper(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "audio_type" field. + public const int AudioTypeFieldNumber = 2; + private readonly static global::Cfg.AudioType AudioTypeDefaultValue = global::Cfg.AudioType.Unknown; + + private global::Cfg.AudioType audioType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AudioType AudioType { + get { if ((_hasBits0 & 2) != 0) { return audioType_; } else { return AudioTypeDefaultValue; } } + set { + _hasBits0 |= 2; + audioType_ = value; + } + } + /// Gets whether the "audio_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "audio_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioType() { + _hasBits0 &= ~2; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 3; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMapper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMapper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AudioType != other.AudioType) return false; + if (!object.Equals(V2, other.V2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAudioType) hash ^= AudioType.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (v2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(V2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (v2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(V2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAudioType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AudioType); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMapper other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAudioType) { + AudioType = other.AudioType; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.AudioType) input.ReadEnum(); + break; + } + case 26: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.AudioType) input.ReadEnum(); + break; + } + case 26: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + } + } + } + #endif + + } + + public sealed partial class DefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[102]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2(DefineFromExcel2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x132_ = other.x132_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + x15_ = other.x15_ != null ? other.x15_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k10_ = other.k10_.Clone(); + k11_ = other.k11_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2 Clone() { + return new DefineFromExcel2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x13_2" field. + public const int X132FieldNumber = 8; + private readonly static global::Cfg.TestDemoFlag X132DefaultValue = global::Cfg.TestDemoFlag.A; + + private global::Cfg.TestDemoFlag x132_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoFlag X132 { + get { if ((_hasBits0 & 64) != 0) { return x132_; } else { return X132DefaultValue; } } + set { + _hasBits0 |= 64; + x132_ = value; + } + } + /// Gets whether the "x13_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX132 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x13_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX132() { + _hasBits0 &= ~64; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 9; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "x15" field. + public const int X15FieldNumber = 10; + private global::Cfg.TestShape x15_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestShape X15 { + get { return x15_; } + set { + x15_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 11; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 12; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 15; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 122); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 16; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(130, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k10" field. + public const int K10FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k10_codec + = pb::FieldCodec.ForMessage(138, global::Cfg.vector3.Parser); + private readonly pbc::RepeatedField k10_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K10 { + get { return k10_; } + } + + /// Field number for the "k11" field. + public const int K11FieldNumber = 18; + private static readonly pb::FieldCodec _repeated_k11_codec + = pb::FieldCodec.ForMessage(146, global::Cfg.vector4.Parser); + private readonly pbc::RepeatedField k11_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K11 { + get { return k11_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (X132 != other.X132) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(X15, other.X15)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k10_.Equals(other.k10_)) return false; + if(!k11_.Equals(other.k11_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (HasX132) hash ^= X132.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (x15_ != null) hash ^= X15.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k10_.GetHashCode(); + hash ^= k11_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (HasX132) { + output.WriteRawTag(64); + output.WriteEnum((int) X132); + } + if (x14_ != null) { + output.WriteRawTag(74); + output.WriteMessage(X14); + } + if (x15_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X15); + } + if (v2_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(96); + output.WriteInt64(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k10_.WriteTo(output, _repeated_k10_codec); + k11_.WriteTo(output, _repeated_k11_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (HasX132) { + output.WriteRawTag(64); + output.WriteEnum((int) X132); + } + if (x14_ != null) { + output.WriteRawTag(74); + output.WriteMessage(X14); + } + if (x15_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X15); + } + if (v2_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(96); + output.WriteInt64(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k10_.WriteTo(ref output, _repeated_k10_codec); + k11_.WriteTo(ref output, _repeated_k11_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (HasX132) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X132); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (x15_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X15); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k10_.CalculateSize(_repeated_k10_codec); + size += k11_.CalculateSize(_repeated_k11_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DefineFromExcel2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.HasX132) { + X132 = other.X132; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.x15_ != null) { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + X15.MergeFrom(other.X15); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k10_.Add(other.k10_); + k11_.Add(other.k11_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 64: { + X132 = (global::Cfg.TestDemoFlag) input.ReadEnum(); + break; + } + case 74: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 82: { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + input.ReadMessage(X15); + break; + } + case 90: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 96: { + T1 = input.ReadInt64(); + break; + } + case 106: + case 104: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 114: + case 112: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 138: { + k10_.AddEntriesFrom(input, _repeated_k10_codec); + break; + } + case 146: { + k11_.AddEntriesFrom(input, _repeated_k11_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 64: { + X132 = (global::Cfg.TestDemoFlag) input.ReadEnum(); + break; + } + case 74: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 82: { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + input.ReadMessage(X15); + break; + } + case 90: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 96: { + T1 = input.ReadInt64(); + break; + } + case 106: + case 104: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 114: + case 112: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 138: { + k10_.AddEntriesFrom(ref input, _repeated_k10_codec); + break; + } + case 146: { + k11_.AddEntriesFrom(ref input, _repeated_k11_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestShape : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestShape()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[103]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape(TestShape other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Circle: + Circle = other.Circle.Clone(); + break; + case ValueOneofCase.Rectangle: + Rectangle = other.Rectangle.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape Clone() { + return new TestShape(this); + } + + /// Field number for the "Circle" field. + public const int CircleFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCircle Circle { + get { return valueCase_ == ValueOneofCase.Circle ? (global::Cfg.TestCircle) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Circle; + } + } + + /// Field number for the "Rectangle" field. + public const int RectangleFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Test2Rectangle Rectangle { + get { return valueCase_ == ValueOneofCase.Rectangle ? (global::Cfg.Test2Rectangle) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Rectangle; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Circle = 1, + Rectangle = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestShape); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestShape other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Circle, other.Circle)) return false; + if (!object.Equals(Rectangle, other.Rectangle)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Circle) hash ^= Circle.GetHashCode(); + if (valueCase_ == ValueOneofCase.Rectangle) hash ^= Rectangle.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Circle) { + output.WriteRawTag(10); + output.WriteMessage(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + output.WriteRawTag(18); + output.WriteMessage(Rectangle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Circle) { + output.WriteRawTag(10); + output.WriteMessage(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + output.WriteRawTag(18); + output.WriteMessage(Rectangle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Circle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rectangle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestShape other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Circle: + if (Circle == null) { + Circle = new global::Cfg.TestCircle(); + } + Circle.MergeFrom(other.Circle); + break; + case ValueOneofCase.Rectangle: + if (Rectangle == null) { + Rectangle = new global::Cfg.Test2Rectangle(); + } + Rectangle.MergeFrom(other.Rectangle); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestCircle subBuilder = new global::Cfg.TestCircle(); + if (valueCase_ == ValueOneofCase.Circle) { + subBuilder.MergeFrom(Circle); + } + input.ReadMessage(subBuilder); + Circle = subBuilder; + break; + } + case 18: { + global::Cfg.Test2Rectangle subBuilder = new global::Cfg.Test2Rectangle(); + if (valueCase_ == ValueOneofCase.Rectangle) { + subBuilder.MergeFrom(Rectangle); + } + input.ReadMessage(subBuilder); + Rectangle = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestCircle subBuilder = new global::Cfg.TestCircle(); + if (valueCase_ == ValueOneofCase.Circle) { + subBuilder.MergeFrom(Circle); + } + input.ReadMessage(subBuilder); + Circle = subBuilder; + break; + } + case 18: { + global::Cfg.Test2Rectangle subBuilder = new global::Cfg.Test2Rectangle(); + if (valueCase_ == ValueOneofCase.Rectangle) { + subBuilder.MergeFrom(Rectangle); + } + input.ReadMessage(subBuilder); + Rectangle = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCircle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCircle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[104]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle(TestCircle other) : this() { + _hasBits0 = other._hasBits0; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle Clone() { + return new TestCircle(this); + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 1; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 1) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 1; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCircle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCircle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasRadius) { + output.WriteRawTag(13); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasRadius) { + output.WriteRawTag(13); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCircle other) { + if (other == null) { + return; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Test2Rectangle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Test2Rectangle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[105]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle(Test2Rectangle other) : this() { + _hasBits0 = other._hasBits0; + width_ = other.width_; + height_ = other.height_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle Clone() { + return new Test2Rectangle(this); + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private readonly static float WidthDefaultValue = 0F; + + private float width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Width { + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 1; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private readonly static float HeightDefaultValue = 0F; + + private float height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Height { + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 2; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Test2Rectangle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Test2Rectangle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); + if (HasHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasWidth) { + output.WriteRawTag(13); + output.WriteFloat(Width); + } + if (HasHeight) { + output.WriteRawTag(21); + output.WriteFloat(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasWidth) { + output.WriteRawTag(13); + output.WriteFloat(Width); + } + if (HasHeight) { + output.WriteRawTag(21); + output.WriteFloat(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasWidth) { + size += 1 + 4; + } + if (HasHeight) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Test2Rectangle other) { + if (other == null) { + return; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Width = input.ReadFloat(); + break; + } + case 21: { + Height = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Width = input.ReadFloat(); + break; + } + case 21: { + Height = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[106]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard(AiTbBlackboard other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard Clone() { + return new AiTbBlackboard(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBlackboard.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBlackboard other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[107]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree(AiTbBehaviorTree other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree Clone() { + return new AiTbBehaviorTree(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBehaviorTree.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBehaviorTree other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonTbGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonTbGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[108]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig(CommonTbGlobalConfig other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig Clone() { + return new CommonTbGlobalConfig(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CommonGlobalConfig.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonTbGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonTbGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonTbGlobalConfig other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[109]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem(ItemTbItem other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem Clone() { + return new ItemTbItem(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItem.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItem other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[110]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo(L10nTbL10NDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo Clone() { + return new L10nTbL10NDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nL10NDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbL10NDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[111]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo(L10nTbPatchDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo Clone() { + return new L10nTbPatchDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nPatchDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbPatchDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTbTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTbTestTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[112]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag(TagTbTestTag other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag Clone() { + return new TagTbTestTag(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TagTestTag.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTbTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTbTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTbTestTag other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbFullTypes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbFullTypes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[113]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes(TestTbFullTypes other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes Clone() { + return new TestTbFullTypes(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbFullTypes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbFullTypes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbFullTypes other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbSingleton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbSingleton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[114]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton(TestTbSingleton other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton Clone() { + return new TestTbSingleton(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoSingletonType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbSingleton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbSingleton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbSingleton other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[115]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList(TestTbNotIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList Clone() { + return new TestTbNotIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestNotIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbNotIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[116]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList(TestTbMultiUnionIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList Clone() { + return new TestTbMultiUnionIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiUnionIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiUnionIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[117]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList(TestTbMultiIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList Clone() { + return new TestTbMultiIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDataFromMisc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDataFromMisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[118]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc(TestTbDataFromMisc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc Clone() { + return new TestTbDataFromMisc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDataFromMisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDataFromMisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDataFromMisc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[119]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord(TestTbMultiRowRecord other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord Clone() { + return new TestTbMultiRowRecord(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowRecord.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowRecord other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMultiColumn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMultiColumn()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[120]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn(TestTbTestMultiColumn other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn Clone() { + return new TestTbTestMultiColumn(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMultiColumn.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMultiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMultiColumn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMultiColumn other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[121]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle(TestTbMultiRowTitle other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle Clone() { + return new TestTbMultiRowTitle(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowTitle.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowTitle other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestNull()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[122]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull(TestTbTestNull other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull Clone() { + return new TestTbTestNull(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestNull.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestNull other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoPrimitive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoPrimitive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[123]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive(TestTbDemoPrimitive other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive Clone() { + return new TestTbDemoPrimitive(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoPrimitiveTypesTable.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoPrimitive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoPrimitive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoPrimitive other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[124]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString(TestTbTestString other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString Clone() { + return new TestTbTestString(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestString.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestString other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[125]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup(TestTbDemoGroup other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup Clone() { + return new TestTbDemoGroup(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_C : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_C()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[126]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C(TestTbDemoGroup_C other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C Clone() { + return new TestTbDemoGroup_C(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_C); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_C other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_C other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_S : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_S()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[127]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S(TestTbDemoGroup_S other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S Clone() { + return new TestTbDemoGroup_S(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_S); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_S other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_S other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_E : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_E()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[128]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E(TestTbDemoGroup_E other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E Clone() { + return new TestTbDemoGroup_E(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_E); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_E other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_E other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[129]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal(TestTbTestGlobal other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal Clone() { + return new TestTbTestGlobal(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestGlobal.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestGlobal other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[130]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef(TestTbTestBeRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef Clone() { + return new TestTbTestBeRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[131]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2(TestTbTestBeRef2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2 Clone() { + return new TestTbTestBeRef2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[132]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef(TestTbTestRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef Clone() { + return new TestTbTestRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSize()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[133]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize(TestTbTestSize other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize Clone() { + return new TestTbTestSize(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSize.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSize other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[134]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet(TestTbTestSet other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet Clone() { + return new TestTbTestSet(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSet.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSet other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDetectCsvEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDetectCsvEncoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[135]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding(TestTbDetectCsvEncoding other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding Clone() { + return new TestTbDetectCsvEncoding(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDetectEncoding.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDetectCsvEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDetectCsvEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDetectCsvEncoding other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbItem2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbItem2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[136]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2(TestTbItem2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2 Clone() { + return new TestTbItem2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestItemBase.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbItem2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbItem2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbItem2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestIndex()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[137]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex(TestTbTestIndex other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex Clone() { + return new TestTbTestIndex(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestIndex.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestIndex other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[138]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap(TestTbTestMap other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap Clone() { + return new TestTbTestMap(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMap.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMap other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[139]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson(TestTbExcelFromJson other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson Clone() { + return new TestTbExcelFromJson(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJson.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJson other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[140]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1(TestTbCompositeJsonTable1 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1 Clone() { + return new TestTbCompositeJsonTable1(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable1 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[141]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2(TestTbCompositeJsonTable2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2 Clone() { + return new TestTbCompositeJsonTable2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[142]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3(TestTbCompositeJsonTable3 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3 Clone() { + return new TestTbCompositeJsonTable3(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable3.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable3 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[143]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow(TestTbExcelFromJsonMultiRow other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow Clone() { + return new TestTbExcelFromJsonMultiRow(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJsonMultiRow.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestScriptableObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestScriptableObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[144]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject(TestTbTestScriptableObject other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject Clone() { + return new TestTbTestScriptableObject(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestScriptableObject.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestScriptableObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestScriptableObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestScriptableObject other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMapper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMapper()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[145]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper(TestTbTestMapper other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper Clone() { + return new TestTbTestMapper(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMapper.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMapper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMapper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMapper other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[146]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2(TestTbDefineFromExcel2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2 Clone() { + return new TestTbDefineFromExcel2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.DefineFromExcel2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/luban_examples/Projects/Protobuf2_bin/Program.cs b/luban_examples/Projects/Protobuf2_bin/Program.cs new file mode 100644 index 00000000..cdce2ef1 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/Program.cs @@ -0,0 +1,76 @@ + +using Google.Protobuf; + +class Program +{ + + + public static void Main(string[] args) + { + // See https://aka.ms/new-console-template for more information + Console.WriteLine("Hello, World!"); + + + + TestFullTypes(); + + TestNullable(); + } + + private static void TestNullable() + { + var file = "../../../pb_datas/test_tbtestnull.bytes"; + + var bytes = File.ReadAllBytes(file); + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + var tbTestNull = Cfg.TestTbTestNull.Parser.ParseFrom(File.OpenRead(file)); + + Console.WriteLine(tbTestNull); + } + + private static void TestFullTypes() + { + //var bytes = File.ReadAllBytes("../../../pb_datas/item_tbitem.pb"); + + //Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + //var tbItem = Cfg.ItemTbItem.Parser.ParseFrom(File.OpenRead("../../../pb_datas/item_tbitem.pb")); + + //Console.WriteLine(tbItem); + + var file = "../../../pb_datas/test_tbfulltypes.bytes"; + + var bytes = File.ReadAllBytes(file); + + //var ft = new Cfg.TestDemoType2(); + //ft.X4 = 1; + //ft.X14 = new Cfg.TestDemoDynamic(); + //ft.X14.DemoD2 = new Cfg.TestDemoD2() + //{ + // X1 = 1, + // X2 = 2 + //}; + + + //var mm = new MemoryStream(); + //var cos = new CodedOutputStream(mm); + + //ft.WriteTo(cos); + //cos.Flush(); + + //mm.Seek(0, SeekOrigin.Begin); + + //var b2 = new byte[mm.Length]; + //mm.Read(b2, 0, (int)mm.Length); + + //Console.WriteLine(string.Join(',', b2.Select(b => b.ToString()))); + + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + var tbFullTypes = Cfg.TestTbFullTypes.Parser.ParseFrom(File.OpenRead(file)); + + Console.WriteLine(tbFullTypes); + } +} + + + + diff --git a/luban_examples/Projects/Protobuf2_bin/ProtobufProj.csproj b/luban_examples/Projects/Protobuf2_bin/ProtobufProj.csproj new file mode 100644 index 00000000..4573a52e --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/ProtobufProj.csproj @@ -0,0 +1,26 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Protobuf2_bin/ProtobufProj.sln b/luban_examples/Projects/Protobuf2_bin/ProtobufProj.sln new file mode 100644 index 00000000..84987b91 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/ProtobufProj.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31912.275 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProtobufProj", "ProtobufProj.csproj", "{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CED486A9-FCBD-414B-B917-4EF26E03EC5B} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/ai_tbbehaviortree.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/ai_tbbehaviortree.bytes new file mode 100644 index 00000000..bef52bac Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/ai_tbbehaviortree.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/ai_tbblackboard.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/ai_tbblackboard.bytes new file mode 100644 index 00000000..8d0d220f Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/ai_tbblackboard.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/common_tbglobalconfig.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/common_tbglobalconfig.bytes new file mode 100644 index 00000000..d9a8dcd6 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/common_tbglobalconfig.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/item_tbitem.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/item_tbitem.bytes new file mode 100644 index 00000000..46c9e0d3 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/item_tbitem.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/l10n_tbl10ndemo.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/l10n_tbl10ndemo.bytes new file mode 100644 index 00000000..86753292 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/l10n_tbl10ndemo.bytes @@ -0,0 +1,17 @@ + + + /apple + + /apple + + /apple + +/apple + +/apple + +/apple + +/apple + +/apple \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/l10n_tbpatchdemo.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/l10n_tbpatchdemo.bytes new file mode 100644 index 00000000..e0b6d08d --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/l10n_tbpatchdemo.bytes @@ -0,0 +1,9 @@ + +  +  +  + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/tag_tbtesttag.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/tag_tbtesttag.bytes new file mode 100644 index 00000000..02bdc449 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/tag_tbtesttag.bytes @@ -0,0 +1,29 @@ + + 导出 +any + test + +d导出 + +导出 + +导出 + +导出 + +导出 + + 测试 + + +测试 + any + + 导出 + + 导出 +hany +ftest + export +any + test \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable1.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable1.bytes new file mode 100644 index 00000000..2f999cff --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable1.bytes @@ -0,0 +1,5 @@ + +aaa1 +xx2 +  aaa11 + xx12 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable2.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable2.bytes new file mode 100644 index 00000000..6f292300 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable2.bytes @@ -0,0 +1,3 @@ + +d + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable3.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable3.bytes new file mode 100644 index 00000000..804d07a9 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbcompositejsontable3.bytes @@ -0,0 +1,2 @@ + +o \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdatafrommisc.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdatafrommisc.bytes new file mode 100644 index 00000000..c132b925 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdatafrommisc.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdefinefromexcel2.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdefinefromexcel2.bytes new file mode 100644 index 00000000..2ed61719 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdefinefromexcel2.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_c.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_c.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_c.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_e.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_e.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_e.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_s.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_s.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemogroup_s.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemoprimitive.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemoprimitive.bytes new file mode 100644 index 00000000..e610a780 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdemoprimitive.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdetectcsvencoding.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdetectcsvencoding.bytes new file mode 100644 index 00000000..d05a79d4 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbdetectcsvencoding.bytes @@ -0,0 +1,13 @@ + + 测试编码 +还果园国要 +工枯加盟仍 +  测试编码 + 还果园国要 + 工枯加盟仍 + 测试编码 + 还果园国要 +!工枯加盟仍 + 测试编码 +还果园国要 +工枯加盟仍 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbexcelfromjson.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbexcelfromjson.bytes new file mode 100644 index 00000000..591f5d2d Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbexcelfromjson.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbexcelfromjsonmultirow.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbexcelfromjsonmultirow.bytes new file mode 100644 index 00000000..a9d1f030 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbexcelfromjsonmultirow.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbfulltypes.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbfulltypes.bytes new file mode 100644 index 00000000..5aeccdb0 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbfulltypes.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbitem2.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbitem2.bytes new file mode 100644 index 00000000..aff5d4a2 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbitem2.bytes @@ -0,0 +1,13 @@ + +ݸ 道具1道具1 d( +ݸ 道具2道具1 ( + 装备1装备1 (d +" 装备2 +装备2好 ( + 耳环耳环 d + 耳环耳环 d +!ݸ 道具10道具10 d( + +" 装备20 装备好 ( + + 帽子帽子 d \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultiindexlist.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultiindexlist.bytes new file mode 100644 index 00000000..c782a27a --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultiindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab3 *desc3 +ab4 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultirowrecord.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultirowrecord.bytes new file mode 100644 index 00000000..101bcaa7 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultirowrecord.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultirowtitle.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultirowtitle.bytes new file mode 100644 index 00000000..03763341 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultirowtitle.bytes @@ -0,0 +1,5 @@ + +;xxx +**22:  :: ! +C yyy +  "*  * 2  2 :pq:z{: \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultiunionindexlist.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultiunionindexlist.bytes new file mode 100644 index 00000000..1adf52ec --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbmultiunionindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab1 *desc3 +ab1 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbnotindexlist.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbnotindexlist.bytes new file mode 100644 index 00000000..bc5b3e49 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbnotindexlist.bytes @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbsingleton.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbsingleton.bytes new file mode 100644 index 00000000..ca1f4c25 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbsingleton.bytes @@ -0,0 +1,2 @@ + +#key_name" ھ \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestberef.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestberef.bytes new file mode 100644 index 00000000..dbf12607 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestberef.bytes @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + +  + + + diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestberef2.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestberef2.bytes new file mode 100644 index 00000000..57b70d64 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestberef2.bytes @@ -0,0 +1,20 @@ + +  + +  + +  + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestglobal.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestglobal.bytes new file mode 100644 index 00000000..fc7f5643 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestglobal.bytes @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestindex.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestindex.bytes new file mode 100644 index 00000000..0d4bd1d6 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestindex.bytes @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmap.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmap.bytes new file mode 100644 index 00000000..6127220b --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmap.bytes @@ -0,0 +1,4 @@ + +8" +aaa" +bbb** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmapper.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmapper.bytes new file mode 100644 index 00000000..dd2f03cf Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmapper.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmulticolumn.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmulticolumn.bytes new file mode 100644 index 00000000..00b03f37 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestmulticolumn.bytes @@ -0,0 +1,3 @@ + +" ! +" ! \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestnull.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestnull.bytes new file mode 100644 index 00000000..6fd0826b Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestnull.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestref.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestref.bytes new file mode 100644 index 00000000..403c6a53 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestref.bytes @@ -0,0 +1,7 @@ + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZ b jjrrx ab5 ab5 + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestscriptableobject.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestscriptableobject.bytes new file mode 100644 index 00000000..cd397970 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestscriptableobject.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestset.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestset.bytes new file mode 100644 index 00000000..fdb89222 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestset.bytes @@ -0,0 +1,3 @@ + +ab"*ab*cd00 +cd"*ab*cd0 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestsize.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestsize.bytes new file mode 100644 index 00000000..cbeca07e --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbtestsize.bytes @@ -0,0 +1,2 @@ + +"** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/bytes/test_tbteststring.bytes b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbteststring.bytes new file mode 100644 index 00000000..392ce38e Binary files /dev/null and b/luban_examples/Projects/Protobuf2_bin/bytes/test_tbteststring.bytes differ diff --git a/luban_examples/Projects/Protobuf2_bin/gen_pb_code.bat b/luban_examples/Projects/Protobuf2_bin/gen_pb_code.bat new file mode 100644 index 00000000..81a5baec --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/gen_pb_code.bat @@ -0,0 +1,5 @@ + + +protoc\bin\protoc -I=pb_schemas --csharp_out=Gen pb_schemas\schema.proto + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/gen_pb_schema_data.bat b/luban_examples/Projects/Protobuf2_bin/gen_pb_schema_data.bat new file mode 100644 index 00000000..7a7b9404 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/gen_pb_schema_data.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c protobuf2 ^ + -d protobuf-bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=pb_schemas ^ + -x outputDataDir=pb_datas ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_bin/pb_schemas/schema.proto b/luban_examples/Projects/Protobuf2_bin/pb_schemas/schema.proto new file mode 100644 index 00000000..1f24c480 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/pb_schemas/schema.proto @@ -0,0 +1,1054 @@ +syntax = "proto2"; + +package cfg; + +enum AiEExecutor { + AiEExecutor_CLIENT = 0; + AiEExecutor_SERVER = 1; +} +enum AiEKeyType { + AiEKeyType_BOOL = 1; + AiEKeyType_INT = 2; + AiEKeyType_FLOAT = 3; + AiEKeyType_STRING = 4; + AiEKeyType_VECTOR = 5; + AiEKeyType_ROTATOR = 6; + AiEKeyType_NAME = 7; + AiEKeyType_CLASS = 8; + AiEKeyType_ENUM = 9; + AiEKeyType_OBJECT = 10; +} +enum AiEFlowAbortMode { + AiEFlowAbortMode_NONE = 0; + AiEFlowAbortMode_LOWER_PRIORITY = 1; + AiEFlowAbortMode_SELF = 2; + AiEFlowAbortMode_BOTH = 3; +} +enum AiEFinishMode { + AiEFinishMode_IMMEDIATE = 0; + AiEFinishMode_DELAYED = 1; +} +enum AiENotifyObserverMode { + AiENotifyObserverMode_ON_VALUE_CHANGE = 0; + AiENotifyObserverMode_ON_RESULT_CHANGE = 1; +} +enum AiEOperator { + AiEOperator_IS_EQUAL_TO = 0; + AiEOperator_IS_NOT_EQUAL_TO = 1; + AiEOperator_IS_LESS_THAN = 2; + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3; + AiEOperator_IS_GREAT_THAN = 4; + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5; + AiEOperator_CONTAINS = 6; + AiEOperator_NOT_CONTAINS = 7; +} +enum AudioType { + AudioType_UNKNOWN = 0; + AudioType_ACC = 1; + AudioType_AIFF = 2; +} +enum CommonEBoolOperator { + CommonEBoolOperator_AND = 0; + CommonEBoolOperator_OR = 1; +} +enum ItemEItemQuality { + ItemEItemQuality_WHITE = 0; + ItemEItemQuality_GREEN = 1; + ItemEItemQuality_BLUE = 2; + ItemEItemQuality_PURPLE = 3; + ItemEItemQuality_GOLDEN = 4; +} +enum ItemECurrencyType { + ItemECurrencyType_DIAMOND = 1; + ItemECurrencyType_GOLD = 2; + ItemECurrencyType_SILVER = 3; + ItemECurrencyType_EXP = 4; + ItemECurrencyType_POWER_POINT = 5; +} +enum ItemEMajorType { + ItemEMajorType_CURRENCY = 1; + ItemEMajorType_CLOTH = 2; + ItemEMajorType_QUEST = 3; + ItemEMajorType_CONSUMABLES = 4; + ItemEMajorType_TREASURE_BOX = 5; + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6; + ItemEMajorType_HEAD_FRAME = 7; + ItemEMajorType_VOICE = 8; + ItemEMajorType_ACTION = 9; + ItemEMajorType_EXPANSION = 10; + ItemEMajorType_MATERIAL = 11; +} +enum ItemEMinorType { + ItemEMinorType_DIAMOND = 101; + ItemEMinorType_GOLD = 102; + ItemEMinorType_SILVER = 103; + ItemEMinorType_EXP = 104; + ItemEMinorType_POWER_POINT = 105; + ItemEMinorType_HAIR_STYLE = 210; + ItemEMinorType_COAT = 220; + ItemEMinorType_UPPER_JACKET = 230; + ItemEMinorType_TROUSERS = 241; + ItemEMinorType_SKIRT = 242; + ItemEMinorType_SOCKS = 250; + ItemEMinorType_SHOES = 260; + ItemEMinorType_HAIR_ACCESSORY = 271; + ItemEMinorType_HAT = 272; + ItemEMinorType_EARRING = 273; + ItemEMinorType_NECKLACE = 274; + ItemEMinorType_BRACELET = 275; + ItemEMinorType_HAIR_CLASP = 276; + ItemEMinorType_GLOVE = 277; + ItemEMinorType_HANDHELD_OBJECT = 278; + ItemEMinorType_SPECIAL = 279; + ItemEMinorType_BASE_COSMETIC = 281; + ItemEMinorType_EYEBROW_COSMETIC = 282; + ItemEMinorType_EYELASH = 283; + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284; + ItemEMinorType_LIP_COSMETIC = 285; + ItemEMinorType_SKIN_COLOR = 286; + ItemEMinorType_ONE_PIECE_DRESS = 290; + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291; + ItemEMinorType_QUEST = 301; + ItemEMinorType_CAST = 401; + ItemEMinorType_SWORD = 421; + ItemEMinorType_BOW_ARROW = 422; + ItemEMinorType_WANDS = 423; + ItemEMinorType_SPECIAL_TOOL = 424; + ItemEMinorType_FOOD = 403; + ItemEMinorType_TREASURE_BOX = 501; + ItemEMinorType_KEY = 502; + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503; + ItemEMinorType_ACHIEVEMENT = 601; + ItemEMinorType_TITLE = 602; + ItemEMinorType_AVATAR_FRAME = 701; + ItemEMinorType_VOICE = 801; + ItemEMinorType_IDLE_POSE = 901; + ItemEMinorType_PHOTO_POSE = 902; + ItemEMinorType_BAG = 1001; + ItemEMinorType_FRIEND_CAPACITY = 1002; + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101; + ItemEMinorType_DESIGN_DRAWING = 1102; +} +enum ItemEClothersStarQualityType { + ItemEClothersStarQualityType_ONE = 1; + ItemEClothersStarQualityType_TWO = 2; + ItemEClothersStarQualityType_THREE = 3; + ItemEClothersStarQualityType_FOUR = 4; + ItemEClothersStarQualityType_FIVE = 5; + ItemEClothersStarQualityType_SIX = 6; + ItemEClothersStarQualityType_SEVEN = 7; + ItemEClothersStarQualityType_EIGHT = 8; + ItemEClothersStarQualityType_NINE = 9; + ItemEClothersStarQualityType_TEN = 10; +} +enum ItemEClothersTag { + ItemEClothersTag_FANG_SHAI = 1; + ItemEClothersTag_WU_ZHE = 2; +} +enum ItemEUseType { + ItemEUseType_MANUAL = 0; + ItemEUseType_AUTO = 1; +} +enum ItemEClothesHidePartType { + ItemEClothesHidePartType_CHEST = 0; + ItemEClothesHidePartType_HEAD = 1; + ItemEClothesHidePartType_SPINE_UPPER = 2; + ItemEClothesHidePartType_SPINE_LOWER = 3; + ItemEClothesHidePartType_HIP = 4; + ItemEClothesHidePartType_LEG_UPPER = 5; + ItemEClothesHidePartType_LEG_MIDDLE = 6; + ItemEClothesHidePartType_LEG_LOWER = 7; +} +enum ItemEClothesPropertyType { + ItemEClothesPropertyType_JIAN_YUE = 1; + ItemEClothesPropertyType_HUA_LI = 2; + ItemEClothesPropertyType_KE_AI = 3; + ItemEClothesPropertyType_CHENG_SHU = 4; + ItemEClothesPropertyType_HUO_PO = 5; + ItemEClothesPropertyType_YOU_YA = 6; + ItemEClothesPropertyType_QING_CHUN = 7; + ItemEClothesPropertyType_XING_GAN = 8; + ItemEClothesPropertyType_QING_LIANG = 9; + ItemEClothesPropertyType_BAO_NUAN = 10; +} +enum TestDemoEnum { + TestDemoEnum_NONE = 0; + TestDemoEnum_A = 1; + TestDemoEnum_B = 2; + TestDemoEnum_C = 4; + TestDemoEnum_D = 5; +} +enum TestDemoFlag { + TestDemoFlag_A = 1; + TestDemoFlag_B = 2; + TestDemoFlag_C = 4; + TestDemoFlag_D = 8; +} +enum TestETestUeType { + TestETestUeType_WHITE = 0; + TestETestUeType_BLACK = 1; +} +enum TestETestEmptyEnum { + + TestETestEmptyEnum_EMPTY_PLACEHOLDER = 0; +} +enum TestETestEmptyEnum2 { + TestETestEmptyEnum2_SMALL_THAN_256 = 255; + TestETestEmptyEnum2_X_256 = 256; + TestETestEmptyEnum2_X_257 = 257; +} +enum TestETestQuality { + TestETestQuality_A = 1; + TestETestQuality_B = 2; + TestETestQuality_C = 3; + TestETestQuality_D = 4; +} +enum TestAccessFlag { + TestAccessFlag_WRITE = 1; + TestAccessFlag_READ = 2; + TestAccessFlag_TRUNCATE = 4; + TestAccessFlag_NEW = 8; + TestAccessFlag_READ_WRITE = 3; +} + +message AiBlackboard { + required string name = 1 ; + required string desc = 2 ; + required string parent_name = 3 ; + repeated AiBlackboardKey keys = 4 [packed = false]; +} +message AiBlackboardKey { + required string name = 1 ; + required string desc = 2 ; + required bool is_static = 3 ; + required AiEKeyType type = 4 ; + required string type_class_name = 5 ; +} +message AiBehaviorTree { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required string blackboard_id = 4 ; + required AiComposeNode root = 5 ; +} +message AiNode { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiService { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + } +} +message AiUeSetDefaultFocus { + required int32 id = 1 ; + required string node_name = 2 ; + required string keyboard_key = 3 ; +} +message AiExecuteTimeStatistic { + required int32 id = 1 ; + required string node_name = 2 ; +} +message AiChooseTarget { + required int32 id = 1 ; + required string node_name = 2 ; + required string result_target_key = 3 ; +} +message AiKeepFaceTarget { + required int32 id = 1 ; + required string node_name = 2 ; + required string target_actor_key = 3 ; +} +message AiGetOwnerPlayer { + required int32 id = 1 ; + required string node_name = 2 ; + required string player_actor_key = 3 ; +} +message AiUpdateDailyBehaviorProps { + required int32 id = 1 ; + required string node_name = 2 ; + required string satiety_key = 3 ; + required string energy_key = 4 ; + required string mood_key = 5 ; + required string satiety_lower_threshold_key = 6 ; + required string satiety_upper_threshold_key = 7 ; + required string energy_lower_threshold_key = 8 ; + required string energy_upper_threshold_key = 9 ; + required string mood_lower_threshold_key = 10 ; + required string mood_upper_threshold_key = 11 ; +} +message AiDecorator { + oneof value { + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + } +} +message AiUeLoop { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required int32 num_loops = 4 ; + required bool infinite_loop = 5 ; + required float infinite_loop_timeout_time = 6 ; +} +message AiUeCooldown { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required float cooldown_time = 4 ; +} +message AiUeTimeLimit { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required float limit_time = 4 ; +} +message AiUeBlackboard { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required AiENotifyObserverMode notify_observer = 4 ; + required string blackboard_key = 5 ; + required AiKeyQueryOperator key_query = 6 ; +} +message AiKeyQueryOperator { + oneof value { + AiIsSet IsSet = 1; + AiIsNotSet IsNotSet = 2; + AiBinaryOperator BinaryOperator = 3; + } +} +message AiIsSet { +} +message AiIsNotSet { +} +message AiBinaryOperator { + required AiEOperator oper = 1 ; + required AiKeyData data = 2 ; +} +message AiKeyData { + oneof value { + AiFloatKeyData FloatKeyData = 1; + AiIntKeyData IntKeyData = 2; + AiStringKeyData StringKeyData = 3; + AiBlackboardKeyData BlackboardKeyData = 4; + } +} +message AiFloatKeyData { + required float value = 1 ; +} +message AiIntKeyData { + required int32 value = 1 ; +} +message AiStringKeyData { + required string value = 1 ; +} +message AiBlackboardKeyData { + required string value = 1 ; +} +message AiUeForceSuccess { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; +} +message AiIsAtLocation { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required float acceptable_radius = 4 ; + required string keyboard_key = 5 ; + required bool inverse_condition = 6 ; +} +message AiDistanceLessThan { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required string actor1_key = 4 ; + required string actor2_key = 5 ; + required float distance = 6 ; + required bool reverse_result = 7 ; +} +message AiFlowNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiComposeNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + } +} +message AiSequence { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSelector { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSimpleParallel { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required AiEFinishMode finish_mode = 5 ; + required AiTask main_task = 6 ; + required AiFlowNode background_node = 7 ; +} +message AiTask { + oneof value { + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiUeWait { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required float wait_time = 6 ; + required float random_deviation = 7 ; +} +message AiUeWaitBlackboardTime { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string blackboard_key = 6 ; +} +message AiMoveToTarget { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string target_actor_key = 6 ; + required float acceptable_radius = 7 ; +} +message AiChooseSkill { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string target_actor_key = 6 ; + required string result_skill_id_key = 7 ; +} +message AiMoveToRandomLocation { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string origin_position_key = 6 ; + required float radius = 7 ; +} +message AiMoveToLocation { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required float acceptable_radius = 6 ; +} +message AiDebugPrint { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string text = 6 ; +} +message CommonGlobalConfig { + required int32 x1 = 1 ; + required int32 x2 = 2 ; + required int32 x3 = 3 ; + required int32 x4 = 4 ; + required int32 x5 = 5 ; + required int32 x6 = 6 ; + repeated int32 x7 = 7 [packed = true]; +} +message ItemItem { + required int32 id = 1 ; + required string name = 2 ; + required ItemEMinorType minor_type = 4 ; + required ItemEItemQuality quality = 6 ; + required string icon_backgroud = 8 ; + required string icon_mask = 9 ; + required string desc = 10 ; + required int32 show_order = 11 ; +} +message L10nL10NDemo { + required int32 id = 1 ; + required string text = 2 ; +} +message L10nPatchDemo { + required int32 id = 1 ; + required int32 value = 2 ; +} +message TagTestTag { + required int32 id = 1 ; + required string value = 2 ; +} +message TestDemoType2 { + required int32 x4 = 1 ; + required bool x1 = 2 ; + required int32 x2 = 3 ; + required int32 x3 = 4 ; + required int64 x5 = 5 ; + required float x6 = 6 ; + required double x7 = 7 ; + required int32 x8_0 = 8 ; + required int32 x8 = 9 ; + required int64 x9 = 10 ; + required string x10 = 11 ; + required TestDemoType1 x12 = 12 ; + required TestDemoEnum x13 = 13 ; + required TestDemoDynamic x14 = 14 ; + required string s1 = 15 ; + required int64 t1 = 16 ; + repeated int32 k1 = 17 [packed = true]; + repeated int32 k2 = 18 [packed = true]; + repeated int32 k5 = 19 [packed = true]; + map k8 = 20 ; + repeated TestDemoE2 k9 = 21 [packed = false]; + repeated TestDemoDynamic k15 = 22 [packed = false]; +} +message TestDemoType1 { + required int32 x1 = 1 ; +} +message TestDemoDynamic { + oneof value { + TestDemoD2 DemoD2 = 1; + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + TestDemoD5 DemoD5 = 4; + } +} +message TestDemoD2 { + required int32 x1 = 1 ; + required int32 x2 = 2 ; +} +message TestDemoD3 { + oneof value { + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + } +} +message TestDemoE1 { + required int32 x1 = 1 ; + required int32 x3 = 2 ; + required int32 x4 = 3 ; +} +message TestLoginRoleInfo { + required int32 x1 = 1 ; + required int32 x3 = 2 ; + required int64 role_id = 3 ; +} +message TestDemoD5 { + required int32 x1 = 1 ; + required TestDateTimeRange time = 2 ; +} +message TestDateTimeRange { + required int64 start_time = 1 ; + required int64 end_time = 2 ; +} +message TestDemoE2 { + optional int32 y1 = 1 ; + required bool y2 = 2 ; +} +message TestDemoSingletonType { + required int32 id = 1 ; + required string name = 2 ; + required TestDemoDynamic date = 3 ; +} +message TestNotIndexList { + required int32 x = 1 ; + required int32 y = 2 ; +} +message TestMultiUnionIndexList { + required int32 id1 = 1 ; + required int64 id2 = 2 ; + required string id3 = 3 ; + required int32 num = 4 ; + required string desc = 5 ; +} +message TestMultiIndexList { + required int32 id1 = 1 ; + required int64 id2 = 2 ; + required string id3 = 3 ; + required int32 num = 4 ; + required string desc = 5 ; +} +message TestMultiRowRecord { + required int32 id = 1 ; + required string name = 2 ; + repeated TestMultiRowType1 one_rows = 3 [packed = false]; + repeated TestMultiRowType1 multi_rows1 = 4 [packed = false]; + repeated TestMultiRowType1 multi_rows2 = 5 [packed = false]; + map multi_rows4 = 6 ; + repeated TestMultiRowType3 multi_rows5 = 7 [packed = false]; + map multi_rows6 = 8 ; + map multi_rows7 = 9 ; +} +message TestMultiRowType1 { + required int32 id = 1 ; + required int32 x = 2 ; +} +message TestMultiRowType2 { + required int32 id = 1 ; + required int32 x = 2 ; + required float y = 3 ; +} +message TestMultiRowType3 { + required int32 id = 1 ; + repeated TestMultiRowType1 items = 2 [packed = false]; +} +message TestTestMultiColumn { + required int32 id = 1 ; + required TestFoo a = 2 ; + required TestFoo b = 3 ; + required TestFoo c = 4 ; +} +message TestFoo { + required int32 y1 = 1 ; + required int32 y2 = 2 ; + required int32 y3 = 3 ; +} +message TestMultiRowTitle { + required int32 id = 1 ; + required string name = 2 ; + required TestH1 x1 = 3 ; + optional TestH2 x2_0 = 4 ; + repeated TestH2 x2 = 5 [packed = false]; + repeated TestH2 x3 = 6 [packed = false]; + repeated TestH2 x4 = 7 [packed = false]; +} +message TestH1 { + required TestH2 y2 = 1 ; + required int32 y3 = 2 ; +} +message TestH2 { + required int32 z2 = 1 ; + required int32 z3 = 2 ; +} +message TestTestNull { + required int32 id = 1 ; + optional int32 x1 = 2 ; + optional TestDemoEnum x2 = 3 ; + optional TestDemoType1 x3 = 4 ; + optional TestDemoDynamic x4 = 5 ; + optional string s1 = 6 ; + optional string s2 = 7 ; +} +message TestDemoPrimitiveTypesTable { + required bool x1 = 1 ; + required int32 x2 = 2 ; + required int32 x3 = 3 ; + required int32 x4 = 4 ; + required int64 x5 = 5 ; + required float x6 = 6 ; + required double x7 = 7 ; + required string s1 = 8 ; + required string s2 = 9 ; + required vec2 v2 = 10 ; + required vec3 v3 = 11 ; + required vec4 v4 = 12 ; + required int64 t1 = 13 ; +} +message vec2 { + required float x = 1 ; + required float y = 2 ; +} +message vec3 { + required float x = 1 ; + required float y = 2 ; + required float z = 3 ; +} +message vec4 { + required float x = 1 ; + required float y = 2 ; + required float z = 3 ; + required float w = 4 ; +} +message TestTestString { + required string id = 1 ; + required string s1 = 2 ; + required string s2 = 3 ; + required TestCompactString cs1 = 4 ; + required TestCompactString cs2 = 5 ; +} +message TestCompactString { + required int32 id = 1 ; + required string s2 = 2 ; + required string s3 = 3 ; +} +message TestDemoGroup { + required int32 id = 1 ; + required TestInnerGroup x5 = 6 ; +} +message TestInnerGroup { + required int32 y1 = 1 ; +} +message TestTestGlobal { + required int32 unlock_equip = 1 ; + required int32 unlock_hero = 2 ; +} +message TestTestBeRef { + required int32 id = 1 ; + required int32 count = 2 ; +} +message TestTestRef { + required int32 id = 1 ; + required int32 x1 = 2 ; + required int32 x1_2 = 3 ; + required int32 x2 = 4 ; + required int32 x3 = 5 ; + required int32 x4 = 6 ; + repeated int32 a1 = 7 [packed = true]; + repeated int32 a2 = 8 [packed = true]; + repeated int32 b1 = 9 [packed = true]; + repeated int32 b2 = 10 [packed = true]; + repeated int32 c1 = 11 [packed = true]; + repeated int32 c2 = 12 [packed = true]; + map d1 = 13 ; + map d2 = 14 ; + required int32 e1 = 15 ; + required int64 e2 = 16 ; + required string e3 = 17 ; + required int32 f1 = 18 ; + required int64 f2 = 19 ; + required string f3 = 20 ; + required TestRefDynamicBase s1 = 21 ; +} +message TestRefDynamicBase { + oneof value { + TestRefBean RefBean = 1; + } +} +message TestRefBean { + required int32 x = 1 ; + repeated int32 arr = 2 [packed = true]; +} +message TestTestSize { + required int32 id = 1 ; + repeated int32 x1 = 2 [packed = true]; + repeated int32 x2 = 3 [packed = true]; + repeated int32 x3 = 4 [packed = true]; + map x4 = 5 ; +} +message TestTestSet { + required int32 id = 1 ; + required string x0 = 2 ; + repeated int32 x1 = 3 [packed = true]; + repeated int64 x2 = 4 [packed = true]; + repeated string x3 = 5 [packed = false]; + repeated TestDemoEnum x4 = 6 [packed = false]; +} +message TestDetectEncoding { + required int32 id = 1 ; + required string name = 2 ; +} +message TestItemBase { + oneof value { + TestItem Item = 1; + TestEquipment Equipment = 2; + TestDecorator Decorator = 3; + } +} +message TestItem { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required int32 num = 4 ; + required int32 price = 5 ; +} +message TestEquipment { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required TestDemoEnum attr = 4 ; + required int32 value = 5 ; +} +message TestDecorator { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required int32 duration = 4 ; +} +message TestTestIndex { + required int32 id = 1 ; + repeated TestDemoType1 eles = 2 [packed = false]; +} +message TestTestMap { + required int32 id = 1 ; + map x1 = 2 ; + map x2 = 3 ; + map x3 = 4 ; + map x4 = 5 ; +} +message TestExcelFromJson { + required int32 x4 = 1 ; + required bool x1 = 2 ; + required int64 x5 = 3 ; + required float x6 = 4 ; + required string s1 = 5 ; + required string s2 = 6 ; + required int64 t1 = 7 ; + required TestDemoType1 x12 = 8 ; + required TestDemoEnum x13 = 9 ; + required TestDemoDynamic x14 = 10 ; + repeated int32 k1 = 11 [packed = true]; + map k8 = 12 ; + repeated TestDemoE2 k9 = 13 [packed = false]; + repeated TestDemoDynamic k15 = 14 [packed = false]; +} +message TestCompositeJsonTable1 { + required int32 id = 1 ; + required string x = 2 ; +} +message TestCompositeJsonTable2 { + required int32 id = 1 ; + required int32 y = 2 ; +} +message TestCompositeJsonTable3 { + required int32 a = 1 ; + required int32 b = 2 ; +} +message TestExcelFromJsonMultiRow { + required int32 id = 1 ; + required int32 x = 2 ; + repeated TestTestRow items = 3 [packed = false]; +} +message TestTestRow { + required int32 x = 1 ; + required bool y = 2 ; + required string z = 3 ; + required TestTest3 a = 4 ; + repeated int32 b = 5 [packed = true]; +} +message TestTest3 { + required int32 x = 1 ; + required int32 y = 2 ; +} +message TestTestScriptableObject { + required int32 id = 1 ; + required string desc = 2 ; + required float rate = 3 ; + required int32 num = 4 ; + required vec2 v2 = 5 ; + required vec3 v3 = 6 ; + required vec4 v4 = 7 ; +} +message TestTestMapper { + required int32 id = 1 ; + required AudioType audio_type = 2 ; + required vec2 v2 = 3 ; +} +message DefineFromExcel2 { + required int32 id = 1 ; + required bool x1 = 2 ; + required int64 x5 = 3 ; + required float x6 = 4 ; + required int32 x8 = 5 ; + required string x10 = 6 ; + required TestDemoEnum x13 = 7 ; + required TestDemoFlag x13_2 = 8 ; + required TestDemoDynamic x14 = 9 ; + required TestShape x15 = 10 ; + required vec2 v2 = 11 ; + required int64 t1 = 12 ; + repeated int32 k1 = 13 [packed = true]; + repeated int32 k2 = 14 [packed = true]; + map k8 = 15 ; + repeated TestDemoE2 k9 = 16 [packed = false]; + repeated vec3 k10 = 17 [packed = false]; + repeated vec4 k11 = 18 [packed = false]; +} +message TestShape { + oneof value { + TestCircle Circle = 1; + Test2Rectangle Rectangle = 2; + } +} +message TestCircle { + required float radius = 1 ; +} +message Test2Rectangle { + required float width = 1 ; + required float height = 2 ; +} + +message AiTbBlackboard { + repeated AiBlackboard data_list = 1 [packed = false]; +} +message AiTbBehaviorTree { + repeated AiBehaviorTree data_list = 1 [packed = false]; +} +message CommonTbGlobalConfig { + repeated CommonGlobalConfig data_list = 1 [packed = false]; +} +message ItemTbItem { + repeated ItemItem data_list = 1 [packed = false]; +} +message L10nTbL10NDemo { + repeated L10nL10NDemo data_list = 1 [packed = false]; +} +message L10nTbPatchDemo { + repeated L10nPatchDemo data_list = 1 [packed = false]; +} +message TagTbTestTag { + repeated TagTestTag data_list = 1 [packed = false]; +} +message TestTbFullTypes { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbSingleton { + repeated TestDemoSingletonType data_list = 1 [packed = false]; +} +message TestTbNotIndexList { + repeated TestNotIndexList data_list = 1 [packed = false]; +} +message TestTbMultiUnionIndexList { + repeated TestMultiUnionIndexList data_list = 1 [packed = false]; +} +message TestTbMultiIndexList { + repeated TestMultiIndexList data_list = 1 [packed = false]; +} +message TestTbDataFromMisc { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbMultiRowRecord { + repeated TestMultiRowRecord data_list = 1 [packed = false]; +} +message TestTbTestMultiColumn { + repeated TestTestMultiColumn data_list = 1 [packed = false]; +} +message TestTbMultiRowTitle { + repeated TestMultiRowTitle data_list = 1 [packed = false]; +} +message TestTbTestNull { + repeated TestTestNull data_list = 1 [packed = false]; +} +message TestTbDemoPrimitive { + repeated TestDemoPrimitiveTypesTable data_list = 1 [packed = false]; +} +message TestTbTestString { + repeated TestTestString data_list = 1 [packed = false]; +} +message TestTbDemoGroup { + repeated TestDemoGroup data_list = 1 [packed = false]; +} +message TestTbTestGlobal { + repeated TestTestGlobal data_list = 1 [packed = false]; +} +message TestTbTestBeRef { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestBeRef2 { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestRef { + repeated TestTestRef data_list = 1 [packed = false]; +} +message TestTbTestSize { + repeated TestTestSize data_list = 1 [packed = false]; +} +message TestTbTestSet { + repeated TestTestSet data_list = 1 [packed = false]; +} +message TestTbDetectCsvEncoding { + repeated TestDetectEncoding data_list = 1 [packed = false]; +} +message TestTbItem2 { + repeated TestItemBase data_list = 1 [packed = false]; +} +message TestTbTestIndex { + repeated TestTestIndex data_list = 1 [packed = false]; +} +message TestTbTestMap { + repeated TestTestMap data_list = 1 [packed = false]; +} +message TestTbExcelFromJson { + repeated TestExcelFromJson data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable1 { + repeated TestCompositeJsonTable1 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable2 { + repeated TestCompositeJsonTable2 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable3 { + repeated TestCompositeJsonTable3 data_list = 1 [packed = false]; +} +message TestTbExcelFromJsonMultiRow { + repeated TestExcelFromJsonMultiRow data_list = 1 [packed = false]; +} +message TestTbTestScriptableObject { + repeated TestTestScriptableObject data_list = 1 [packed = false]; +} +message TestTbTestMapper { + repeated TestTestMapper data_list = 1 [packed = false]; +} +message TestTbDefineFromExcel2 { + repeated DefineFromExcel2 data_list = 1 [packed = false]; +} + + diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/any.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/any.proto new file mode 100644 index 00000000..eff44e50 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/any.proto @@ -0,0 +1,162 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/known/anypb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "AnyProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// `Any` contains an arbitrary serialized protocol buffer message along with a +// URL that describes the type of the serialized message. +// +// Protobuf library provides support to pack/unpack Any values in the form +// of utility functions or additional generated methods of the Any type. +// +// Example 1: Pack and unpack a message in C++. +// +// Foo foo = ...; +// Any any; +// any.PackFrom(foo); +// ... +// if (any.UnpackTo(&foo)) { +// ... +// } +// +// Example 2: Pack and unpack a message in Java. +// +// Foo foo = ...; +// Any any = Any.pack(foo); +// ... +// if (any.is(Foo.class)) { +// foo = any.unpack(Foo.class); +// } +// // or ... +// if (any.isSameTypeAs(Foo.getDefaultInstance())) { +// foo = any.unpack(Foo.getDefaultInstance()); +// } +// +// Example 3: Pack and unpack a message in Python. +// +// foo = Foo(...) +// any = Any() +// any.Pack(foo) +// ... +// if any.Is(Foo.DESCRIPTOR): +// any.Unpack(foo) +// ... +// +// Example 4: Pack and unpack a message in Go +// +// foo := &pb.Foo{...} +// any, err := anypb.New(foo) +// if err != nil { +// ... +// } +// ... +// foo := &pb.Foo{} +// if err := any.UnmarshalTo(foo); err != nil { +// ... +// } +// +// The pack methods provided by protobuf library will by default use +// 'type.googleapis.com/full.type.name' as the type URL and the unpack +// methods only use the fully qualified type name after the last '/' +// in the type URL, for example "foo.bar.com/x/y.z" will yield type +// name "y.z". +// +// JSON +// ==== +// The JSON representation of an `Any` value uses the regular +// representation of the deserialized, embedded message, with an +// additional field `@type` which contains the type URL. Example: +// +// package google.profile; +// message Person { +// string first_name = 1; +// string last_name = 2; +// } +// +// { +// "@type": "type.googleapis.com/google.profile.Person", +// "firstName": , +// "lastName": +// } +// +// If the embedded message type is well-known and has a custom JSON +// representation, that representation will be embedded adding a field +// `value` which holds the custom JSON in addition to the `@type` +// field. Example (for message [google.protobuf.Duration][]): +// +// { +// "@type": "type.googleapis.com/google.protobuf.Duration", +// "value": "1.212s" +// } +// +message Any { + // A URL/resource name that uniquely identifies the type of the serialized + // protocol buffer message. This string must contain at least + // one "/" character. The last segment of the URL's path must represent + // the fully qualified name of the type (as in + // `path/google.protobuf.Duration`). The name should be in a canonical form + // (e.g., leading "." is not accepted). + // + // In practice, teams usually precompile into the binary all types that they + // expect it to use in the context of Any. However, for URLs which use the + // scheme `http`, `https`, or no scheme, one can optionally set up a type + // server that maps type URLs to message definitions as follows: + // + // * If no scheme is provided, `https` is assumed. + // * An HTTP GET on the URL must yield a [google.protobuf.Type][] + // value in binary format, or produce an error. + // * Applications are allowed to cache lookup results based on the + // URL, or have them precompiled into a binary to avoid any + // lookup. Therefore, binary compatibility needs to be preserved + // on changes to types. (Use versioned type names to manage + // breaking changes.) + // + // Note: this functionality is not currently available in the official + // protobuf release, and it is not used for type URLs beginning with + // type.googleapis.com. As of May 2023, there are no widely used type server + // implementations and no plans to implement one. + // + // Schemes other than `http`, `https` (or the empty scheme) might be + // used with implementation specific semantics. + // + string type_url = 1; + + // Must be a valid serialized protocol buffer of the above specified type. + bytes value = 2; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/api.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/api.proto new file mode 100644 index 00000000..42223516 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/api.proto @@ -0,0 +1,207 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +import "google/protobuf/source_context.proto"; +import "google/protobuf/type.proto"; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "ApiProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/apipb"; + +// Api is a light-weight descriptor for an API Interface. +// +// Interfaces are also described as "protocol buffer services" in some contexts, +// such as by the "service" keyword in a .proto file, but they are different +// from API Services, which represent a concrete implementation of an interface +// as opposed to simply a description of methods and bindings. They are also +// sometimes simply referred to as "APIs" in other contexts, such as the name of +// this message itself. See https://cloud.google.com/apis/design/glossary for +// detailed terminology. +message Api { + // The fully qualified name of this interface, including package name + // followed by the interface's simple name. + string name = 1; + + // The methods of this interface, in unspecified order. + repeated Method methods = 2; + + // Any metadata attached to the interface. + repeated Option options = 3; + + // A version string for this interface. If specified, must have the form + // `major-version.minor-version`, as in `1.10`. If the minor version is + // omitted, it defaults to zero. If the entire version field is empty, the + // major version is derived from the package name, as outlined below. If the + // field is not empty, the version in the package name will be verified to be + // consistent with what is provided here. + // + // The versioning schema uses [semantic + // versioning](http://semver.org) where the major version number + // indicates a breaking change and the minor version an additive, + // non-breaking change. Both version numbers are signals to users + // what to expect from different versions, and should be carefully + // chosen based on the product plan. + // + // The major version is also reflected in the package name of the + // interface, which must end in `v`, as in + // `google.feature.v1`. For major versions 0 and 1, the suffix can + // be omitted. Zero major versions must only be used for + // experimental, non-GA interfaces. + // + string version = 4; + + // Source context for the protocol buffer service represented by this + // message. + SourceContext source_context = 5; + + // Included interfaces. See [Mixin][]. + repeated Mixin mixins = 6; + + // The source syntax of the service. + Syntax syntax = 7; +} + +// Method represents a method of an API interface. +message Method { + // The simple name of this method. + string name = 1; + + // A URL of the input message type. + string request_type_url = 2; + + // If true, the request is streamed. + bool request_streaming = 3; + + // The URL of the output message type. + string response_type_url = 4; + + // If true, the response is streamed. + bool response_streaming = 5; + + // Any metadata attached to the method. + repeated Option options = 6; + + // The source syntax of this method. + Syntax syntax = 7; +} + +// Declares an API Interface to be included in this interface. The including +// interface must redeclare all the methods from the included interface, but +// documentation and options are inherited as follows: +// +// - If after comment and whitespace stripping, the documentation +// string of the redeclared method is empty, it will be inherited +// from the original method. +// +// - Each annotation belonging to the service config (http, +// visibility) which is not set in the redeclared method will be +// inherited. +// +// - If an http annotation is inherited, the path pattern will be +// modified as follows. Any version prefix will be replaced by the +// version of the including interface plus the [root][] path if +// specified. +// +// Example of a simple mixin: +// +// package google.acl.v1; +// service AccessControl { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v1/{resource=**}:getAcl"; +// } +// } +// +// package google.storage.v2; +// service Storage { +// rpc GetAcl(GetAclRequest) returns (Acl); +// +// // Get a data record. +// rpc GetData(GetDataRequest) returns (Data) { +// option (google.api.http).get = "/v2/{resource=**}"; +// } +// } +// +// Example of a mixin configuration: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// +// The mixin construct implies that all methods in `AccessControl` are +// also declared with same name and request/response types in +// `Storage`. A documentation generator or annotation processor will +// see the effective `Storage.GetAcl` method after inherting +// documentation and annotations as follows: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/{resource=**}:getAcl"; +// } +// ... +// } +// +// Note how the version in the path pattern changed from `v1` to `v2`. +// +// If the `root` field in the mixin is specified, it should be a +// relative path under which inherited HTTP paths are placed. Example: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// root: acls +// +// This implies the following inherited HTTP annotation: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; +// } +// ... +// } +message Mixin { + // The fully qualified name of the interface which is included. + string name = 1; + + // If non-empty specifies a path under which inherited HTTP paths + // are rooted. + string root = 2; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/compiler/plugin.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/compiler/plugin.proto new file mode 100644 index 00000000..1a809868 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/compiler/plugin.proto @@ -0,0 +1,191 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// +// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is +// just a program that reads a CodeGeneratorRequest from stdin and writes a +// CodeGeneratorResponse to stdout. +// +// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead +// of dealing with the raw protocol defined here. +// +// A plugin executable needs only to be placed somewhere in the path. The +// plugin should be named "protoc-gen-$NAME", and will then be used when the +// flag "--${NAME}_out" is passed to protoc. + +syntax = "proto2"; + +package google.protobuf.compiler; +option java_package = "com.google.protobuf.compiler"; +option java_outer_classname = "PluginProtos"; + +option csharp_namespace = "Google.Protobuf.Compiler"; +option go_package = "google.golang.org/protobuf/types/pluginpb"; + +import "google/protobuf/descriptor.proto"; + +// The version number of protocol compiler. +message Version { + optional int32 major = 1; + optional int32 minor = 2; + optional int32 patch = 3; + // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should + // be empty for mainline stable releases. + optional string suffix = 4; +} + +// An encoded CodeGeneratorRequest is written to the plugin's stdin. +message CodeGeneratorRequest { + // The .proto files that were explicitly listed on the command-line. The + // code generator should generate code only for these files. Each file's + // descriptor will be included in proto_file, below. + repeated string file_to_generate = 1; + + // The generator parameter passed on the command-line. + optional string parameter = 2; + + // FileDescriptorProtos for all files in files_to_generate and everything + // they import. The files will appear in topological order, so each file + // appears before any file that imports it. + // + // Note: the files listed in files_to_generate will include runtime-retention + // options only, but all other files will include source-retention options. + // The source_file_descriptors field below is available in case you need + // source-retention options for files_to_generate. + // + // protoc guarantees that all proto_files will be written after + // the fields above, even though this is not technically guaranteed by the + // protobuf wire format. This theoretically could allow a plugin to stream + // in the FileDescriptorProtos and handle them one by one rather than read + // the entire set into memory at once. However, as of this writing, this + // is not similarly optimized on protoc's end -- it will store all fields in + // memory at once before sending them to the plugin. + // + // Type names of fields and extensions in the FileDescriptorProto are always + // fully qualified. + repeated FileDescriptorProto proto_file = 15; + + // File descriptors with all options, including source-retention options. + // These descriptors are only provided for the files listed in + // files_to_generate. + repeated FileDescriptorProto source_file_descriptors = 17; + + // The version number of protocol compiler. + optional Version compiler_version = 3; +} + +// The plugin writes an encoded CodeGeneratorResponse to stdout. +message CodeGeneratorResponse { + // Error message. If non-empty, code generation failed. The plugin process + // should exit with status code zero even if it reports an error in this way. + // + // This should be used to indicate errors in .proto files which prevent the + // code generator from generating correct code. Errors which indicate a + // problem in protoc itself -- such as the input CodeGeneratorRequest being + // unparseable -- should be reported by writing a message to stderr and + // exiting with a non-zero status code. + optional string error = 1; + + // A bitmask of supported features that the code generator supports. + // This is a bitwise "or" of values from the Feature enum. + optional uint64 supported_features = 2; + + // Sync with code_generator.h. + enum Feature { + FEATURE_NONE = 0; + FEATURE_PROTO3_OPTIONAL = 1; + FEATURE_SUPPORTS_EDITIONS = 2; + } + + // Represents a single generated file. + message File { + // The file name, relative to the output directory. The name must not + // contain "." or ".." components and must be relative, not be absolute (so, + // the file cannot lie outside the output directory). "/" must be used as + // the path separator, not "\". + // + // If the name is omitted, the content will be appended to the previous + // file. This allows the generator to break large files into small chunks, + // and allows the generated text to be streamed back to protoc so that large + // files need not reside completely in memory at one time. Note that as of + // this writing protoc does not optimize for this -- it will read the entire + // CodeGeneratorResponse before writing files to disk. + optional string name = 1; + + // If non-empty, indicates that the named file should already exist, and the + // content here is to be inserted into that file at a defined insertion + // point. This feature allows a code generator to extend the output + // produced by another code generator. The original generator may provide + // insertion points by placing special annotations in the file that look + // like: + // @@protoc_insertion_point(NAME) + // The annotation can have arbitrary text before and after it on the line, + // which allows it to be placed in a comment. NAME should be replaced with + // an identifier naming the point -- this is what other generators will use + // as the insertion_point. Code inserted at this point will be placed + // immediately above the line containing the insertion point (thus multiple + // insertions to the same point will come out in the order they were added). + // The double-@ is intended to make it unlikely that the generated code + // could contain things that look like insertion points by accident. + // + // For example, the C++ code generator places the following line in the + // .pb.h files that it generates: + // // @@protoc_insertion_point(namespace_scope) + // This line appears within the scope of the file's package namespace, but + // outside of any particular class. Another plugin can then specify the + // insertion_point "namespace_scope" to generate additional classes or + // other declarations that should be placed in this scope. + // + // Note that if the line containing the insertion point begins with + // whitespace, the same whitespace will be added to every line of the + // inserted text. This is useful for languages like Python, where + // indentation matters. In these languages, the insertion point comment + // should be indented the same amount as any inserted code will need to be + // in order to work correctly in that context. + // + // The code generator that generates the initial file and the one which + // inserts into it must both run as part of a single invocation of protoc. + // Code generators are executed in the order in which they appear on the + // command line. + // + // If |insertion_point| is present, |name| must also be present. + optional string insertion_point = 2; + + // The file contents. + optional string content = 15; + + // Information describing the file content being inserted. If an insertion + // point is used, this information will be appropriately offset and inserted + // into the code generation metadata for the generated files. + optional GeneratedCodeInfo generated_code_info = 16; + } + repeated File file = 15; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/descriptor.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/descriptor.proto new file mode 100644 index 00000000..5f148224 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/descriptor.proto @@ -0,0 +1,1157 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). + +syntax = "proto2"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/descriptorpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DescriptorProtos"; +option csharp_namespace = "Google.Protobuf.Reflection"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; + +// descriptor.proto must be optimized for speed because reflection-based +// algorithms don't work during bootstrapping. +option optimize_for = SPEED; + +// The protocol compiler can output a FileDescriptorSet containing the .proto +// files it parses. +message FileDescriptorSet { + repeated FileDescriptorProto file = 1; +} + +// Describes a complete .proto file. +message FileDescriptorProto { + optional string name = 1; // file name, relative to root of source tree + optional string package = 2; // e.g. "foo", "foo.bar", etc. + + // Names of files imported by this file. + repeated string dependency = 3; + // Indexes of the public imported files in the dependency list above. + repeated int32 public_dependency = 10; + // Indexes of the weak imported files in the dependency list. + // For Google-internal migration only. Do not use. + repeated int32 weak_dependency = 11; + + // All top-level definitions in this file. + repeated DescriptorProto message_type = 4; + repeated EnumDescriptorProto enum_type = 5; + repeated ServiceDescriptorProto service = 6; + repeated FieldDescriptorProto extension = 7; + + optional FileOptions options = 8; + + // This field contains optional information about the original source code. + // You may safely remove this entire field without harming runtime + // functionality of the descriptors -- the information is needed only by + // development tools. + optional SourceCodeInfo source_code_info = 9; + + // The syntax of the proto file. + // The supported values are "proto2", "proto3", and "editions". + // + // If `edition` is present, this value must be "editions". + optional string syntax = 12; + + // The edition of the proto file, which is an opaque string. + optional string edition = 13; +} + +// Describes a message type. +message DescriptorProto { + optional string name = 1; + + repeated FieldDescriptorProto field = 2; + repeated FieldDescriptorProto extension = 6; + + repeated DescriptorProto nested_type = 3; + repeated EnumDescriptorProto enum_type = 4; + + message ExtensionRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Exclusive. + + optional ExtensionRangeOptions options = 3; + } + repeated ExtensionRange extension_range = 5; + + repeated OneofDescriptorProto oneof_decl = 8; + + optional MessageOptions options = 7; + + // Range of reserved tag numbers. Reserved tag numbers may not be used by + // fields or extension ranges in the same message. Reserved ranges may + // not overlap. + message ReservedRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Exclusive. + } + repeated ReservedRange reserved_range = 9; + // Reserved field names, which may not be used by fields in the same message. + // A given name may only be reserved once. + repeated string reserved_name = 10; +} + +message ExtensionRangeOptions { + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + message Declaration { + // The extension number declared within the extension range. + optional int32 number = 1; + + // The fully-qualified name of the extension field. There must be a leading + // dot in front of the full name. + optional string full_name = 2; + + // The fully-qualified type name of the extension field. Unlike + // Metadata.type, Declaration.type must have a leading dot for messages + // and enums. + optional string type = 3; + + // If true, indicates that the number is reserved in the extension range, + // and any extension field with the number will fail to compile. Set this + // when a declared extension field is deleted. + optional bool reserved = 5; + + // If true, indicates that the extension must be defined as repeated. + // Otherwise the extension must be defined as optional. + optional bool repeated = 6; + + reserved 4; // removed is_repeated + } + + // For external users: DO NOT USE. We are in the process of open sourcing + // extension declaration and executing internal cleanups before it can be + // used externally. + repeated Declaration declaration = 2 [retention = RETENTION_SOURCE]; + + // Any features defined in the specific edition. + optional FeatureSet features = 50; + + // The verification state of the extension range. + enum VerificationState { + // All the extensions of the range must be declared. + DECLARATION = 0; + UNVERIFIED = 1; + } + + // The verification state of the range. + // TODO(b/278783756): flip the default to DECLARATION once all empty ranges + // are marked as UNVERIFIED. + optional VerificationState verification = 3 [default = UNVERIFIED]; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +// Describes a field within a message. +message FieldDescriptorProto { + enum Type { + // 0 is reserved for errors. + // Order is weird for historical reasons. + TYPE_DOUBLE = 1; + TYPE_FLOAT = 2; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + // negative values are likely. + TYPE_INT64 = 3; + TYPE_UINT64 = 4; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + // negative values are likely. + TYPE_INT32 = 5; + TYPE_FIXED64 = 6; + TYPE_FIXED32 = 7; + TYPE_BOOL = 8; + TYPE_STRING = 9; + // Tag-delimited aggregate. + // Group type is deprecated and not supported in proto3. However, Proto3 + // implementations should still be able to parse the group wire format and + // treat group fields as unknown fields. + TYPE_GROUP = 10; + TYPE_MESSAGE = 11; // Length-delimited aggregate. + + // New in version 2. + TYPE_BYTES = 12; + TYPE_UINT32 = 13; + TYPE_ENUM = 14; + TYPE_SFIXED32 = 15; + TYPE_SFIXED64 = 16; + TYPE_SINT32 = 17; // Uses ZigZag encoding. + TYPE_SINT64 = 18; // Uses ZigZag encoding. + } + + enum Label { + // 0 is reserved for errors + LABEL_OPTIONAL = 1; + LABEL_REQUIRED = 2; + LABEL_REPEATED = 3; + } + + optional string name = 1; + optional int32 number = 3; + optional Label label = 4; + + // If type_name is set, this need not be set. If both this and type_name + // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + optional Type type = 5; + + // For message and enum types, this is the name of the type. If the name + // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + // rules are used to find the type (i.e. first the nested types within this + // message are searched, then within the parent, on up to the root + // namespace). + optional string type_name = 6; + + // For extensions, this is the name of the type being extended. It is + // resolved in the same manner as type_name. + optional string extendee = 2; + + // For numeric types, contains the original text representation of the value. + // For booleans, "true" or "false". + // For strings, contains the default text contents (not escaped in any way). + // For bytes, contains the C escaped value. All bytes >= 128 are escaped. + optional string default_value = 7; + + // If set, gives the index of a oneof in the containing type's oneof_decl + // list. This field is a member of that oneof. + optional int32 oneof_index = 9; + + // JSON name of this field. The value is set by protocol compiler. If the + // user has set a "json_name" option on this field, that option's value + // will be used. Otherwise, it's deduced from the field's name by converting + // it to camelCase. + optional string json_name = 10; + + optional FieldOptions options = 8; + + // If true, this is a proto3 "optional". When a proto3 field is optional, it + // tracks presence regardless of field type. + // + // When proto3_optional is true, this field must be belong to a oneof to + // signal to old proto3 clients that presence is tracked for this field. This + // oneof is known as a "synthetic" oneof, and this field must be its sole + // member (each proto3 optional field gets its own synthetic oneof). Synthetic + // oneofs exist in the descriptor only, and do not generate any API. Synthetic + // oneofs must be ordered after all "real" oneofs. + // + // For message fields, proto3_optional doesn't create any semantic change, + // since non-repeated message fields always track presence. However it still + // indicates the semantic detail of whether the user wrote "optional" or not. + // This can be useful for round-tripping the .proto file. For consistency we + // give message fields a synthetic oneof also, even though it is not required + // to track presence. This is especially important because the parser can't + // tell if a field is a message or an enum, so it must always create a + // synthetic oneof. + // + // Proto2 optional fields do not set this flag, because they already indicate + // optional with `LABEL_OPTIONAL`. + optional bool proto3_optional = 17; +} + +// Describes a oneof. +message OneofDescriptorProto { + optional string name = 1; + optional OneofOptions options = 2; +} + +// Describes an enum type. +message EnumDescriptorProto { + optional string name = 1; + + repeated EnumValueDescriptorProto value = 2; + + optional EnumOptions options = 3; + + // Range of reserved numeric values. Reserved values may not be used by + // entries in the same enum. Reserved ranges may not overlap. + // + // Note that this is distinct from DescriptorProto.ReservedRange in that it + // is inclusive such that it can appropriately represent the entire int32 + // domain. + message EnumReservedRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Inclusive. + } + + // Range of reserved numeric values. Reserved numeric values may not be used + // by enum values in the same enum declaration. Reserved ranges may not + // overlap. + repeated EnumReservedRange reserved_range = 4; + + // Reserved enum value names, which may not be reused. A given name may only + // be reserved once. + repeated string reserved_name = 5; +} + +// Describes a value within an enum. +message EnumValueDescriptorProto { + optional string name = 1; + optional int32 number = 2; + + optional EnumValueOptions options = 3; +} + +// Describes a service. +message ServiceDescriptorProto { + optional string name = 1; + repeated MethodDescriptorProto method = 2; + + optional ServiceOptions options = 3; +} + +// Describes a method of a service. +message MethodDescriptorProto { + optional string name = 1; + + // Input and output type names. These are resolved in the same way as + // FieldDescriptorProto.type_name, but must refer to a message type. + optional string input_type = 2; + optional string output_type = 3; + + optional MethodOptions options = 4; + + // Identifies if client streams multiple client messages + optional bool client_streaming = 5 [default = false]; + // Identifies if server streams multiple server messages + optional bool server_streaming = 6 [default = false]; +} + +// =================================================================== +// Options + +// Each of the definitions above may have "options" attached. These are +// just annotations which may cause code to be generated slightly differently +// or may contain hints for code that manipulates protocol messages. +// +// Clients may define custom options as extensions of the *Options messages. +// These extensions may not yet be known at parsing time, so the parser cannot +// store the values in them. Instead it stores them in a field in the *Options +// message called uninterpreted_option. This field must have the same name +// across all *Options messages. We then use this field to populate the +// extensions when we build a descriptor, at which point all protos have been +// parsed and so all extensions are known. +// +// Extension numbers for custom options may be chosen as follows: +// * For options which will only be used within a single application or +// organization, or for experimental options, use field numbers 50000 +// through 99999. It is up to you to ensure that you do not use the +// same number for multiple options. +// * For options which will be published and used publicly by multiple +// independent entities, e-mail protobuf-global-extension-registry@google.com +// to reserve extension numbers. Simply provide your project name (e.g. +// Objective-C plugin) and your project website (if available) -- there's no +// need to explain how you intend to use them. Usually you only need one +// extension number. You can declare multiple options with only one extension +// number by putting them in a sub-message. See the Custom Options section of +// the docs for examples: +// https://developers.google.com/protocol-buffers/docs/proto#options +// If this turns out to be popular, a web service will be set up +// to automatically assign option numbers. + +message FileOptions { + + // Sets the Java package where classes generated from this .proto will be + // placed. By default, the proto package is used, but this is often + // inappropriate because proto packages do not normally start with backwards + // domain names. + optional string java_package = 1; + + // Controls the name of the wrapper Java class generated for the .proto file. + // That class will always contain the .proto file's getDescriptor() method as + // well as any top-level extensions defined in the .proto file. + // If java_multiple_files is disabled, then all the other classes from the + // .proto file will be nested inside the single wrapper outer class. + optional string java_outer_classname = 8; + + // If enabled, then the Java code generator will generate a separate .java + // file for each top-level message, enum, and service defined in the .proto + // file. Thus, these types will *not* be nested inside the wrapper class + // named by java_outer_classname. However, the wrapper class will still be + // generated to contain the file's getDescriptor() method as well as any + // top-level extensions defined in the file. + optional bool java_multiple_files = 10 [default = false]; + + // This option does nothing. + optional bool java_generate_equals_and_hash = 20 [deprecated=true]; + + // If set true, then the Java2 code generator will generate code that + // throws an exception whenever an attempt is made to assign a non-UTF-8 + // byte sequence to a string field. + // Message reflection will do the same. + // However, an extension field still accepts non-UTF-8 byte sequences. + // This option has no effect on when used with the lite runtime. + optional bool java_string_check_utf8 = 27 [default = false]; + + // Generated classes can be optimized for speed or code size. + enum OptimizeMode { + SPEED = 1; // Generate complete code for parsing, serialization, + // etc. + CODE_SIZE = 2; // Use ReflectionOps to implement these methods. + LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. + } + optional OptimizeMode optimize_for = 9 [default = SPEED]; + + // Sets the Go package where structs generated from this .proto will be + // placed. If omitted, the Go package will be derived from the following: + // - The basename of the package import path, if provided. + // - Otherwise, the package statement in the .proto file, if present. + // - Otherwise, the basename of the .proto file, without extension. + optional string go_package = 11; + + // Should generic services be generated in each language? "Generic" services + // are not specific to any particular RPC system. They are generated by the + // main code generators in each language (without additional plugins). + // Generic services were the only kind of service generation supported by + // early versions of google.protobuf. + // + // Generic services are now considered deprecated in favor of using plugins + // that generate code specific to your particular RPC system. Therefore, + // these default to false. Old code which depends on generic services should + // explicitly set them to true. + optional bool cc_generic_services = 16 [default = false]; + optional bool java_generic_services = 17 [default = false]; + optional bool py_generic_services = 18 [default = false]; + optional bool php_generic_services = 42 [default = false]; + + // Is this file deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for everything in the file, or it will be completely ignored; in the very + // least, this is a formalization for deprecating files. + optional bool deprecated = 23 [default = false]; + + // Enables the use of arenas for the proto messages in this file. This applies + // only to generated classes for C++. + optional bool cc_enable_arenas = 31 [default = true]; + + // Sets the objective c class prefix which is prepended to all objective c + // generated classes from this .proto. There is no default. + optional string objc_class_prefix = 36; + + // Namespace for generated classes; defaults to the package. + optional string csharp_namespace = 37; + + // By default Swift generators will take the proto package and CamelCase it + // replacing '.' with underscore and use that to prefix the types/symbols + // defined. When this options is provided, they will use this value instead + // to prefix the types/symbols defined. + optional string swift_prefix = 39; + + // Sets the php class prefix which is prepended to all php generated classes + // from this .proto. Default is empty. + optional string php_class_prefix = 40; + + // Use this option to change the namespace of php generated classes. Default + // is empty. When this option is empty, the package name will be used for + // determining the namespace. + optional string php_namespace = 41; + + // Use this option to change the namespace of php generated metadata classes. + // Default is empty. When this option is empty, the proto file name will be + // used for determining the namespace. + optional string php_metadata_namespace = 44; + + // Use this option to change the package of ruby generated classes. Default + // is empty. When this option is not set, the package name will be used for + // determining the ruby package. + optional string ruby_package = 45; + + // Any features defined in the specific edition. + optional FeatureSet features = 50; + + // The parser stores options it doesn't recognize here. + // See the documentation for the "Options" section above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. + // See the documentation for the "Options" section above. + extensions 1000 to max; + + reserved 38; +} + +message MessageOptions { + // Set true to use the old proto1 MessageSet wire format for extensions. + // This is provided for backwards-compatibility with the MessageSet wire + // format. You should not use this for any other reason: It's less + // efficient, has fewer features, and is more complicated. + // + // The message must be defined exactly as follows: + // message Foo { + // option message_set_wire_format = true; + // extensions 4 to max; + // } + // Note that the message cannot have any defined fields; MessageSets only + // have extensions. + // + // All extensions of your type must be singular messages; e.g. they cannot + // be int32s, enums, or repeated messages. + // + // Because this is an option, the above two restrictions are not enforced by + // the protocol compiler. + optional bool message_set_wire_format = 1 [default = false]; + + // Disables the generation of the standard "descriptor()" accessor, which can + // conflict with a field of the same name. This is meant to make migration + // from proto1 easier; new code should avoid fields named "descriptor". + optional bool no_standard_descriptor_accessor = 2 [default = false]; + + // Is this message deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the message, or it will be completely ignored; in the very least, + // this is a formalization for deprecating messages. + optional bool deprecated = 3 [default = false]; + + reserved 4, 5, 6; + + // NOTE: Do not set the option in .proto files. Always use the maps syntax + // instead. The option should only be implicitly set by the proto compiler + // parser. + // + // Whether the message is an automatically generated map entry type for the + // maps field. + // + // For maps fields: + // map map_field = 1; + // The parsed descriptor looks like: + // message MapFieldEntry { + // option map_entry = true; + // optional KeyType key = 1; + // optional ValueType value = 2; + // } + // repeated MapFieldEntry map_field = 1; + // + // Implementations may choose not to generate the map_entry=true message, but + // use a native map in the target language to hold the keys and values. + // The reflection APIs in such implementations still need to work as + // if the field is a repeated message field. + optional bool map_entry = 7; + + reserved 8; // javalite_serializable + reserved 9; // javanano_as_lite + + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // + // This should only be used as a temporary measure against broken builds due + // to the change in behavior for JSON field name conflicts. + // + // TODO(b/261750190) This is legacy behavior we plan to remove once downstream + // teams have had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 12; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message FieldOptions { + // The ctype option instructs the C++ code generator to use a different + // representation of the field than it normally would. See the specific + // options below. This option is only implemented to support use of + // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of + // type "bytes" in the open source release -- sorry, we'll try to include + // other types in a future version! + optional CType ctype = 1 [default = STRING]; + enum CType { + // Default mode. + STRING = 0; + + // The option [ctype=CORD] may be applied to a non-repeated field of type + // "bytes". It indicates that in C++, the data should be stored in a Cord + // instead of a string. For very large strings, this may reduce memory + // fragmentation. It may also allow better performance when parsing from a + // Cord, or when parsing with aliasing enabled, as the parsed Cord may then + // alias the original buffer. + CORD = 1; + + STRING_PIECE = 2; + } + // The packed option can be enabled for repeated primitive fields to enable + // a more efficient representation on the wire. Rather than repeatedly + // writing the tag and type for each element, the entire array is encoded as + // a single length-delimited blob. In proto3, only explicit setting it to + // false will avoid using packed encoding. + optional bool packed = 2; + + // The jstype option determines the JavaScript type used for values of the + // field. The option is permitted only for 64 bit integral and fixed types + // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + // is represented as JavaScript string, which avoids loss of precision that + // can happen when a large value is converted to a floating point JavaScript. + // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + // use the JavaScript "number" type. The behavior of the default option + // JS_NORMAL is implementation dependent. + // + // This option is an enum to permit additional types to be added, e.g. + // goog.math.Integer. + optional JSType jstype = 6 [default = JS_NORMAL]; + enum JSType { + // Use the default type. + JS_NORMAL = 0; + + // Use JavaScript strings. + JS_STRING = 1; + + // Use JavaScript numbers. + JS_NUMBER = 2; + } + + // Should this field be parsed lazily? Lazy applies only to message-type + // fields. It means that when the outer message is initially parsed, the + // inner message's contents will not be parsed but instead stored in encoded + // form. The inner message will actually be parsed when it is first accessed. + // + // This is only a hint. Implementations are free to choose whether to use + // eager or lazy parsing regardless of the value of this option. However, + // setting this option true suggests that the protocol author believes that + // using lazy parsing on this field is worth the additional bookkeeping + // overhead typically needed to implement it. + // + // This option does not affect the public interface of any generated code; + // all method signatures remain the same. Furthermore, thread-safety of the + // interface is not affected by this option; const methods remain safe to + // call from multiple threads concurrently, while non-const methods continue + // to require exclusive access. + // + // Note that implementations may choose not to check required fields within + // a lazy sub-message. That is, calling IsInitialized() on the outer message + // may return true even if the inner message has missing required fields. + // This is necessary because otherwise the inner message would have to be + // parsed in order to perform the check, defeating the purpose of lazy + // parsing. An implementation which chooses not to check required fields + // must be consistent about it. That is, for any particular sub-message, the + // implementation must either *always* check its required fields, or *never* + // check its required fields, regardless of whether or not the message has + // been parsed. + // + // As of May 2022, lazy verifies the contents of the byte stream during + // parsing. An invalid byte stream will cause the overall parsing to fail. + optional bool lazy = 5 [default = false]; + + // unverified_lazy does no correctness checks on the byte stream. This should + // only be used where lazy with verification is prohibitive for performance + // reasons. + optional bool unverified_lazy = 15 [default = false]; + + // Is this field deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for accessors, or it will be completely ignored; in the very least, this + // is a formalization for deprecating fields. + optional bool deprecated = 3 [default = false]; + + // For Google-internal migration only. Do not use. + optional bool weak = 10 [default = false]; + + // Indicate that the field value should not be printed out when using debug + // formats, e.g. when the field contains sensitive credentials. + optional bool debug_redact = 16 [default = false]; + + // If set to RETENTION_SOURCE, the option will be omitted from the binary. + // Note: as of January 2023, support for this is in progress and does not yet + // have an effect (b/264593489). + enum OptionRetention { + RETENTION_UNKNOWN = 0; + RETENTION_RUNTIME = 1; + RETENTION_SOURCE = 2; + } + + optional OptionRetention retention = 17; + + // This indicates the types of entities that the field may apply to when used + // as an option. If it is unset, then the field may be freely used as an + // option on any kind of entity. Note: as of January 2023, support for this is + // in progress and does not yet have an effect (b/264593489). + enum OptionTargetType { + TARGET_TYPE_UNKNOWN = 0; + TARGET_TYPE_FILE = 1; + TARGET_TYPE_EXTENSION_RANGE = 2; + TARGET_TYPE_MESSAGE = 3; + TARGET_TYPE_FIELD = 4; + TARGET_TYPE_ONEOF = 5; + TARGET_TYPE_ENUM = 6; + TARGET_TYPE_ENUM_ENTRY = 7; + TARGET_TYPE_SERVICE = 8; + TARGET_TYPE_METHOD = 9; + } + + repeated OptionTargetType targets = 19; + + message EditionDefault { + optional string edition = 1; + optional string value = 2; // Textproto value. + } + repeated EditionDefault edition_defaults = 20; + + // Any features defined in the specific edition. + optional FeatureSet features = 21; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; + + reserved 4; // removed jtype + reserved 18; // reserve target, target_obsolete_do_not_use +} + +message OneofOptions { + // Any features defined in the specific edition. + optional FeatureSet features = 1; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumOptions { + + // Set this option to true to allow mapping different tag names to the same + // value. + optional bool allow_alias = 2; + + // Is this enum deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum, or it will be completely ignored; in the very least, this + // is a formalization for deprecating enums. + optional bool deprecated = 3 [default = false]; + + reserved 5; // javanano_as_lite + + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // TODO(b/261750190) Remove this legacy behavior once downstream teams have + // had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 7; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumValueOptions { + // Is this enum value deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum value, or it will be completely ignored; in the very least, + // this is a formalization for deprecating enum values. + optional bool deprecated = 1 [default = false]; + + // Any features defined in the specific edition. + optional FeatureSet features = 2; + + // Indicate that fields annotated with this enum value should not be printed + // out when using debug formats, e.g. when the field contains sensitive + // credentials. + optional bool debug_redact = 3 [default = false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message ServiceOptions { + + // Any features defined in the specific edition. + optional FeatureSet features = 34; + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this service deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the service, or it will be completely ignored; in the very least, + // this is a formalization for deprecating services. + optional bool deprecated = 33 [default = false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message MethodOptions { + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this method deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the method, or it will be completely ignored; in the very least, + // this is a formalization for deprecating methods. + optional bool deprecated = 33 [default = false]; + + // Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + // or neither? HTTP based RPC implementation may choose GET verb for safe + // methods, and PUT verb for idempotent methods instead of the default POST. + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0; + NO_SIDE_EFFECTS = 1; // implies idempotent + IDEMPOTENT = 2; // idempotent, but may have side effects + } + optional IdempotencyLevel idempotency_level = 34 + [default = IDEMPOTENCY_UNKNOWN]; + + // Any features defined in the specific edition. + optional FeatureSet features = 35; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +// A message representing a option the parser does not recognize. This only +// appears in options protos created by the compiler::Parser class. +// DescriptorPool resolves these when building Descriptor objects. Therefore, +// options protos in descriptor objects (e.g. returned by Descriptor::options(), +// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +// in them. +message UninterpretedOption { + // The name of the uninterpreted option. Each string represents a segment in + // a dot-separated name. is_extension is true iff a segment represents an + // extension (denoted with parentheses in options specs in .proto files). + // E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents + // "foo.(bar.baz).moo". + message NamePart { + required string name_part = 1; + required bool is_extension = 2; + } + repeated NamePart name = 2; + + // The value of the uninterpreted option, in whatever type the tokenizer + // identified it as during parsing. Exactly one of these should be set. + optional string identifier_value = 3; + optional uint64 positive_int_value = 4; + optional int64 negative_int_value = 5; + optional double double_value = 6; + optional bytes string_value = 7; + optional string aggregate_value = 8; +} + +// =================================================================== +// Features + +// TODO(b/274655146) Enums in C++ gencode (and potentially other languages) are +// not well scoped. This means that each of the feature enums below can clash +// with each other. The short names we've chosen maximize call-site +// readability, but leave us very open to this scenario. A future feature will +// be designed and implemented to handle this, hopefully before we ever hit a +// conflict here. +message FeatureSet { + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0; + EXPLICIT = 1; + IMPLICIT = 2; + LEGACY_REQUIRED = 3; + } + optional FieldPresence field_presence = 1 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "EXPLICIT" } + ]; + + enum EnumType { + ENUM_TYPE_UNKNOWN = 0; + OPEN = 1; + CLOSED = 2; + } + optional EnumType enum_type = 2 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "OPEN" } + ]; + + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0; + PACKED = 1; + EXPANDED = 2; + } + optional RepeatedFieldEncoding repeated_field_encoding = 3 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "PACKED" } + ]; + + enum StringFieldValidation { + STRING_FIELD_VALIDATION_UNKNOWN = 0; + MANDATORY = 1; + HINT = 2; + NONE = 3; + } + optional StringFieldValidation string_field_validation = 4 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "MANDATORY" } + ]; + + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0; + LENGTH_PREFIXED = 1; + DELIMITED = 2; + } + optional MessageEncoding message_encoding = 5 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "LENGTH_PREFIXED" } + ]; + + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0; + ALLOW = 1; + LEGACY_BEST_EFFORT = 2; + } + optional JsonFormat json_format = 6 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_MESSAGE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "ALLOW" } + ]; + + optional FeatureSet raw_features = 999 [targets = TARGET_TYPE_UNKNOWN]; + + extensions 1000; // for Protobuf C++ + extensions 1001; // for Protobuf Java + + extensions 9995 to 9999; // For internal testing +} + +// =================================================================== +// Optional source code info + +// Encapsulates information about the original source file from which a +// FileDescriptorProto was generated. +message SourceCodeInfo { + // A Location identifies a piece of source code in a .proto file which + // corresponds to a particular definition. This information is intended + // to be useful to IDEs, code indexers, documentation generators, and similar + // tools. + // + // For example, say we have a file like: + // message Foo { + // optional string foo = 1; + // } + // Let's look at just the field definition: + // optional string foo = 1; + // ^ ^^ ^^ ^ ^^^ + // a bc de f ghi + // We have the following locations: + // span path represents + // [a,i) [ 4, 0, 2, 0 ] The whole field definition. + // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + // + // Notes: + // - A location may refer to a repeated field itself (i.e. not to any + // particular index within it). This is used whenever a set of elements are + // logically enclosed in a single code segment. For example, an entire + // extend block (possibly containing multiple extension definitions) will + // have an outer location whose path refers to the "extensions" repeated + // field without an index. + // - Multiple locations may have the same path. This happens when a single + // logical declaration is spread out across multiple places. The most + // obvious example is the "extend" block again -- there may be multiple + // extend blocks in the same scope, each of which will have the same path. + // - A location's span is not always a subset of its parent's span. For + // example, the "extendee" of an extension declaration appears at the + // beginning of the "extend" block and is shared by all extensions within + // the block. + // - Just because a location's span is a subset of some other location's span + // does not mean that it is a descendant. For example, a "group" defines + // both a type and a field in a single declaration. Thus, the locations + // corresponding to the type and field and their components will overlap. + // - Code which tries to interpret locations should probably be designed to + // ignore those that it doesn't understand, as more types of locations could + // be recorded in the future. + repeated Location location = 1; + message Location { + // Identifies which part of the FileDescriptorProto was defined at this + // location. + // + // Each element is a field number or an index. They form a path from + // the root FileDescriptorProto to the place where the definition occurs. + // For example, this path: + // [ 4, 3, 2, 7, 1 ] + // refers to: + // file.message_type(3) // 4, 3 + // .field(7) // 2, 7 + // .name() // 1 + // This is because FileDescriptorProto.message_type has field number 4: + // repeated DescriptorProto message_type = 4; + // and DescriptorProto.field has field number 2: + // repeated FieldDescriptorProto field = 2; + // and FieldDescriptorProto.name has field number 1: + // optional string name = 1; + // + // Thus, the above path gives the location of a field name. If we removed + // the last element: + // [ 4, 3, 2, 7 ] + // this path refers to the whole field declaration (from the beginning + // of the label to the terminating semicolon). + repeated int32 path = 1 [packed = true]; + + // Always has exactly three or four elements: start line, start column, + // end line (optional, otherwise assumed same as start line), end column. + // These are packed into a single field for efficiency. Note that line + // and column numbers are zero-based -- typically you will want to add + // 1 to each before displaying to a user. + repeated int32 span = 2 [packed = true]; + + // If this SourceCodeInfo represents a complete declaration, these are any + // comments appearing before and after the declaration which appear to be + // attached to the declaration. + // + // A series of line comments appearing on consecutive lines, with no other + // tokens appearing on those lines, will be treated as a single comment. + // + // leading_detached_comments will keep paragraphs of comments that appear + // before (but not connected to) the current element. Each paragraph, + // separated by empty lines, will be one comment element in the repeated + // field. + // + // Only the comment content is provided; comment markers (e.g. //) are + // stripped out. For block comments, leading whitespace and an asterisk + // will be stripped from the beginning of each line other than the first. + // Newlines are included in the output. + // + // Examples: + // + // optional int32 foo = 1; // Comment attached to foo. + // // Comment attached to bar. + // optional int32 bar = 2; + // + // optional string baz = 3; + // // Comment attached to baz. + // // Another line attached to baz. + // + // // Comment attached to moo. + // // + // // Another line attached to moo. + // optional double moo = 4; + // + // // Detached comment for corge. This is not leading or trailing comments + // // to moo or corge because there are blank lines separating it from + // // both. + // + // // Detached comment for corge paragraph 2. + // + // optional string corge = 5; + // /* Block comment attached + // * to corge. Leading asterisks + // * will be removed. */ + // /* Block comment attached to + // * grault. */ + // optional int32 grault = 6; + // + // // ignored detached comments. + optional string leading_comments = 3; + optional string trailing_comments = 4; + repeated string leading_detached_comments = 6; + } +} + +// Describes the relationship between generated code and its original source +// file. A GeneratedCodeInfo message is associated with only one generated +// source file, but may contain references to different source .proto files. +message GeneratedCodeInfo { + // An Annotation connects some span of text in generated code to an element + // of its generating .proto file. + repeated Annotation annotation = 1; + message Annotation { + // Identifies the element in the original source .proto file. This field + // is formatted the same as SourceCodeInfo.Location.path. + repeated int32 path = 1 [packed = true]; + + // Identifies the filesystem path to the original source .proto. + optional string source_file = 2; + + // Identifies the starting offset in bytes in the generated code + // that relates to the identified object. + optional int32 begin = 3; + + // Identifies the ending offset in bytes in the generated code that + // relates to the identified object. The end offset should be one past + // the last relevant byte (so the length of the text = end - begin). + optional int32 end = 4; + + // Represents the identified object's effect on the element in the original + // .proto file. + enum Semantic { + // There is no effect or the effect is indescribable. + NONE = 0; + // The element is set or otherwise mutated. + SET = 1; + // An alias to the element is returned. + ALIAS = 2; + } + optional Semantic semantic = 5; + } +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/duration.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/duration.proto new file mode 100644 index 00000000..41f40c22 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/duration.proto @@ -0,0 +1,115 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/durationpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DurationProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Duration represents a signed, fixed-length span of time represented +// as a count of seconds and fractions of seconds at nanosecond +// resolution. It is independent of any calendar and concepts like "day" +// or "month". It is related to Timestamp in that the difference between +// two Timestamp values is a Duration and it can be added or subtracted +// from a Timestamp. Range is approximately +-10,000 years. +// +// # Examples +// +// Example 1: Compute Duration from two Timestamps in pseudo code. +// +// Timestamp start = ...; +// Timestamp end = ...; +// Duration duration = ...; +// +// duration.seconds = end.seconds - start.seconds; +// duration.nanos = end.nanos - start.nanos; +// +// if (duration.seconds < 0 && duration.nanos > 0) { +// duration.seconds += 1; +// duration.nanos -= 1000000000; +// } else if (duration.seconds > 0 && duration.nanos < 0) { +// duration.seconds -= 1; +// duration.nanos += 1000000000; +// } +// +// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +// +// Timestamp start = ...; +// Duration duration = ...; +// Timestamp end = ...; +// +// end.seconds = start.seconds + duration.seconds; +// end.nanos = start.nanos + duration.nanos; +// +// if (end.nanos < 0) { +// end.seconds -= 1; +// end.nanos += 1000000000; +// } else if (end.nanos >= 1000000000) { +// end.seconds += 1; +// end.nanos -= 1000000000; +// } +// +// Example 3: Compute Duration from datetime.timedelta in Python. +// +// td = datetime.timedelta(days=3, minutes=10) +// duration = Duration() +// duration.FromTimedelta(td) +// +// # JSON Mapping +// +// In JSON format, the Duration type is encoded as a string rather than an +// object, where the string ends in the suffix "s" (indicating seconds) and +// is preceded by the number of seconds, with nanoseconds expressed as +// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +// microsecond should be expressed in JSON format as "3.000001s". +// +message Duration { + // Signed seconds of the span of time. Must be from -315,576,000,000 + // to +315,576,000,000 inclusive. Note: these bounds are computed from: + // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + int64 seconds = 1; + + // Signed fractions of a second at nanosecond resolution of the span + // of time. Durations less than one second are represented with a 0 + // `seconds` field and a positive or negative `nanos` field. For durations + // of one second or more, a non-zero value for the `nanos` field must be + // of the same sign as the `seconds` field. Must be from -999,999,999 + // to +999,999,999 inclusive. + int32 nanos = 2; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/empty.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/empty.proto new file mode 100644 index 00000000..b87c89dc --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/empty.proto @@ -0,0 +1,51 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/known/emptypb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "EmptyProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option cc_enable_arenas = true; + +// A generic empty message that you can re-use to avoid defining duplicated +// empty messages in your APIs. A typical example is to use it as the request +// or the response type of an API method. For instance: +// +// service Foo { +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +// } +// +message Empty {} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/field_mask.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/field_mask.proto new file mode 100644 index 00000000..b28334b9 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/field_mask.proto @@ -0,0 +1,245 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "FieldMaskProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb"; +option cc_enable_arenas = true; + +// `FieldMask` represents a set of symbolic field paths, for example: +// +// paths: "f.a" +// paths: "f.b.d" +// +// Here `f` represents a field in some root message, `a` and `b` +// fields in the message found in `f`, and `d` a field found in the +// message in `f.b`. +// +// Field masks are used to specify a subset of fields that should be +// returned by a get operation or modified by an update operation. +// Field masks also have a custom JSON encoding (see below). +// +// # Field Masks in Projections +// +// When used in the context of a projection, a response message or +// sub-message is filtered by the API to only contain those fields as +// specified in the mask. For example, if the mask in the previous +// example is applied to a response message as follows: +// +// f { +// a : 22 +// b { +// d : 1 +// x : 2 +// } +// y : 13 +// } +// z: 8 +// +// The result will not contain specific values for fields x,y and z +// (their value will be set to the default, and omitted in proto text +// output): +// +// +// f { +// a : 22 +// b { +// d : 1 +// } +// } +// +// A repeated field is not allowed except at the last position of a +// paths string. +// +// If a FieldMask object is not present in a get operation, the +// operation applies to all fields (as if a FieldMask of all fields +// had been specified). +// +// Note that a field mask does not necessarily apply to the +// top-level response message. In case of a REST get operation, the +// field mask applies directly to the response, but in case of a REST +// list operation, the mask instead applies to each individual message +// in the returned resource list. In case of a REST custom method, +// other definitions may be used. Where the mask applies will be +// clearly documented together with its declaration in the API. In +// any case, the effect on the returned resource/resources is required +// behavior for APIs. +// +// # Field Masks in Update Operations +// +// A field mask in update operations specifies which fields of the +// targeted resource are going to be updated. The API is required +// to only change the values of the fields as specified in the mask +// and leave the others untouched. If a resource is passed in to +// describe the updated values, the API ignores the values of all +// fields not covered by the mask. +// +// If a repeated field is specified for an update operation, new values will +// be appended to the existing repeated field in the target resource. Note that +// a repeated field is only allowed in the last position of a `paths` string. +// +// If a sub-message is specified in the last position of the field mask for an +// update operation, then new value will be merged into the existing sub-message +// in the target resource. +// +// For example, given the target message: +// +// f { +// b { +// d: 1 +// x: 2 +// } +// c: [1] +// } +// +// And an update message: +// +// f { +// b { +// d: 10 +// } +// c: [2] +// } +// +// then if the field mask is: +// +// paths: ["f.b", "f.c"] +// +// then the result will be: +// +// f { +// b { +// d: 10 +// x: 2 +// } +// c: [1, 2] +// } +// +// An implementation may provide options to override this default behavior for +// repeated and message fields. +// +// In order to reset a field's value to the default, the field must +// be in the mask and set to the default value in the provided resource. +// Hence, in order to reset all fields of a resource, provide a default +// instance of the resource and set all fields in the mask, or do +// not provide a mask as described below. +// +// If a field mask is not present on update, the operation applies to +// all fields (as if a field mask of all fields has been specified). +// Note that in the presence of schema evolution, this may mean that +// fields the client does not know and has therefore not filled into +// the request will be reset to their default. If this is unwanted +// behavior, a specific service may require a client to always specify +// a field mask, producing an error if not. +// +// As with get operations, the location of the resource which +// describes the updated values in the request message depends on the +// operation kind. In any case, the effect of the field mask is +// required to be honored by the API. +// +// ## Considerations for HTTP REST +// +// The HTTP kind of an update operation which uses a field mask must +// be set to PATCH instead of PUT in order to satisfy HTTP semantics +// (PUT must only be used for full updates). +// +// # JSON Encoding of Field Masks +// +// In JSON, a field mask is encoded as a single string where paths are +// separated by a comma. Fields name in each path are converted +// to/from lower-camel naming conventions. +// +// As an example, consider the following message declarations: +// +// message Profile { +// User user = 1; +// Photo photo = 2; +// } +// message User { +// string display_name = 1; +// string address = 2; +// } +// +// In proto a field mask for `Profile` may look as such: +// +// mask { +// paths: "user.display_name" +// paths: "photo" +// } +// +// In JSON, the same mask is represented as below: +// +// { +// mask: "user.displayName,photo" +// } +// +// # Field Masks and Oneof Fields +// +// Field masks treat fields in oneofs just as regular fields. Consider the +// following message: +// +// message SampleMessage { +// oneof test_oneof { +// string name = 4; +// SubMessage sub_message = 9; +// } +// } +// +// The field mask can be: +// +// mask { +// paths: "name" +// } +// +// Or: +// +// mask { +// paths: "sub_message" +// } +// +// Note that oneof type names ("test_oneof" in this case) cannot be used in +// paths. +// +// ## Field Mask Verification +// +// The implementation of any API method which has a FieldMask type field in the +// request should verify the included field paths, and return an +// `INVALID_ARGUMENT` error if any path is unmappable. +message FieldMask { + // The set of field mask paths. + repeated string paths = 1; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/source_context.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/source_context.proto new file mode 100644 index 00000000..135f50fe --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/source_context.proto @@ -0,0 +1,48 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "SourceContextProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb"; + +// `SourceContext` represents information about the source of a +// protobuf element, like the file in which it is defined. +message SourceContext { + // The path-qualified name of the .proto file that contained the associated + // protobuf element. For example: `"google/protobuf/source_context.proto"`. + string file_name = 1; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/struct.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/struct.proto new file mode 100644 index 00000000..1bf0c1ad --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/struct.proto @@ -0,0 +1,95 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/structpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "StructProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// `Struct` represents a structured data value, consisting of fields +// which map to dynamically typed values. In some languages, `Struct` +// might be supported by a native representation. For example, in +// scripting languages like JS a struct is represented as an +// object. The details of that representation are described together +// with the proto support for the language. +// +// The JSON representation for `Struct` is JSON object. +message Struct { + // Unordered map of dynamically typed values. + map fields = 1; +} + +// `Value` represents a dynamically typed value which can be either +// null, a number, a string, a boolean, a recursive struct value, or a +// list of values. A producer of value is expected to set one of these +// variants. Absence of any variant indicates an error. +// +// The JSON representation for `Value` is JSON value. +message Value { + // The kind of value. + oneof kind { + // Represents a null value. + NullValue null_value = 1; + // Represents a double value. + double number_value = 2; + // Represents a string value. + string string_value = 3; + // Represents a boolean value. + bool bool_value = 4; + // Represents a structured value. + Struct struct_value = 5; + // Represents a repeated `Value`. + ListValue list_value = 6; + } +} + +// `NullValue` is a singleton enumeration to represent the null value for the +// `Value` type union. +// +// The JSON representation for `NullValue` is JSON `null`. +enum NullValue { + // Null value. + NULL_VALUE = 0; +} + +// `ListValue` is a wrapper around a repeated field of values. +// +// The JSON representation for `ListValue` is JSON array. +message ListValue { + // Repeated field of dynamically typed values. + repeated Value values = 1; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/timestamp.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/timestamp.proto new file mode 100644 index 00000000..fd0bc07d --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/timestamp.proto @@ -0,0 +1,144 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/timestamppb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TimestampProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +// second table is needed for interpretation, using a [24-hour linear +// smear](https://developers.google.com/time/smear). +// +// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +// restricting to that range, we ensure that we can convert to and from [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +// +// # Examples +// +// Example 1: Compute Timestamp from POSIX `time()`. +// +// Timestamp timestamp; +// timestamp.set_seconds(time(NULL)); +// timestamp.set_nanos(0); +// +// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +// +// struct timeval tv; +// gettimeofday(&tv, NULL); +// +// Timestamp timestamp; +// timestamp.set_seconds(tv.tv_sec); +// timestamp.set_nanos(tv.tv_usec * 1000); +// +// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +// +// FILETIME ft; +// GetSystemTimeAsFileTime(&ft); +// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +// +// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +// Timestamp timestamp; +// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +// +// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +// +// long millis = System.currentTimeMillis(); +// +// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +// .setNanos((int) ((millis % 1000) * 1000000)).build(); +// +// Example 5: Compute Timestamp from Java `Instant.now()`. +// +// Instant now = Instant.now(); +// +// Timestamp timestamp = +// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) +// .setNanos(now.getNano()).build(); +// +// Example 6: Compute Timestamp from current time in Python. +// +// timestamp = Timestamp() +// timestamp.GetCurrentTime() +// +// # JSON Mapping +// +// In JSON format, the Timestamp type is encoded as a string in the +// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +// where {year} is always expressed using four digits while {month}, {day}, +// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +// is required. A proto3 JSON serializer should always use UTC (as indicated by +// "Z") when printing the Timestamp type and a proto3 JSON parser should be +// able to accept both UTC and other timezones (as indicated by an offset). +// +// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +// 01:30 UTC on January 15, 2017. +// +// In JavaScript, one can convert a Date object to this format using the +// standard +// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +// method. In Python, a standard `datetime.datetime` object can be converted +// to this format using +// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() +// ) to obtain a formatter capable of generating timestamps in this format. +// +message Timestamp { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + int64 seconds = 1; + + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + int32 nanos = 2; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/type.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/type.proto new file mode 100644 index 00000000..48cb11e7 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/type.proto @@ -0,0 +1,193 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +import "google/protobuf/any.proto"; +import "google/protobuf/source_context.proto"; + +option cc_enable_arenas = true; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TypeProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/typepb"; + +// A protocol buffer message type. +message Type { + // The fully qualified message name. + string name = 1; + // The list of fields. + repeated Field fields = 2; + // The list of types appearing in `oneof` definitions in this type. + repeated string oneofs = 3; + // The protocol buffer options. + repeated Option options = 4; + // The source context. + SourceContext source_context = 5; + // The source syntax. + Syntax syntax = 6; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 7; +} + +// A single field of a message type. +message Field { + // Basic field types. + enum Kind { + // Field type unknown. + TYPE_UNKNOWN = 0; + // Field type double. + TYPE_DOUBLE = 1; + // Field type float. + TYPE_FLOAT = 2; + // Field type int64. + TYPE_INT64 = 3; + // Field type uint64. + TYPE_UINT64 = 4; + // Field type int32. + TYPE_INT32 = 5; + // Field type fixed64. + TYPE_FIXED64 = 6; + // Field type fixed32. + TYPE_FIXED32 = 7; + // Field type bool. + TYPE_BOOL = 8; + // Field type string. + TYPE_STRING = 9; + // Field type group. Proto2 syntax only, and deprecated. + TYPE_GROUP = 10; + // Field type message. + TYPE_MESSAGE = 11; + // Field type bytes. + TYPE_BYTES = 12; + // Field type uint32. + TYPE_UINT32 = 13; + // Field type enum. + TYPE_ENUM = 14; + // Field type sfixed32. + TYPE_SFIXED32 = 15; + // Field type sfixed64. + TYPE_SFIXED64 = 16; + // Field type sint32. + TYPE_SINT32 = 17; + // Field type sint64. + TYPE_SINT64 = 18; + } + + // Whether a field is optional, required, or repeated. + enum Cardinality { + // For fields with unknown cardinality. + CARDINALITY_UNKNOWN = 0; + // For optional fields. + CARDINALITY_OPTIONAL = 1; + // For required fields. Proto2 syntax only. + CARDINALITY_REQUIRED = 2; + // For repeated fields. + CARDINALITY_REPEATED = 3; + } + + // The field type. + Kind kind = 1; + // The field cardinality. + Cardinality cardinality = 2; + // The field number. + int32 number = 3; + // The field name. + string name = 4; + // The field type URL, without the scheme, for message or enumeration + // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. + string type_url = 6; + // The index of the field type in `Type.oneofs`, for message or enumeration + // types. The first type has index 1; zero means the type is not in the list. + int32 oneof_index = 7; + // Whether to use alternative packed wire representation. + bool packed = 8; + // The protocol buffer options. + repeated Option options = 9; + // The field JSON name. + string json_name = 10; + // The string value of the default value of this field. Proto2 syntax only. + string default_value = 11; +} + +// Enum type definition. +message Enum { + // Enum type name. + string name = 1; + // Enum value definitions. + repeated EnumValue enumvalue = 2; + // Protocol buffer options. + repeated Option options = 3; + // The source context. + SourceContext source_context = 4; + // The source syntax. + Syntax syntax = 5; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 6; +} + +// Enum value definition. +message EnumValue { + // Enum value name. + string name = 1; + // Enum value number. + int32 number = 2; + // Protocol buffer options. + repeated Option options = 3; +} + +// A protocol buffer option, which can be attached to a message, field, +// enumeration, etc. +message Option { + // The option's name. For protobuf built-in options (options defined in + // descriptor.proto), this is the short name. For example, `"map_entry"`. + // For custom options, it should be the fully-qualified name. For example, + // `"google.api.http"`. + string name = 1; + // The option's value packed in an Any message. If the value is a primitive, + // the corresponding wrapper type defined in google/protobuf/wrappers.proto + // should be used. If the value is an enum, it should be stored as an int32 + // value using the google.protobuf.Int32Value type. + Any value = 2; +} + +// The syntax in which a protocol buffer element is defined. +enum Syntax { + // Syntax `proto2`. + SYNTAX_PROTO2 = 0; + // Syntax `proto3`. + SYNTAX_PROTO3 = 1; + // Syntax `editions`. + SYNTAX_EDITIONS = 2; +} diff --git a/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/wrappers.proto b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/wrappers.proto new file mode 100644 index 00000000..1959fa55 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_bin/protoc/include/google/protobuf/wrappers.proto @@ -0,0 +1,123 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "WrappersProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// Wrapper message for `double`. +// +// The JSON representation for `DoubleValue` is JSON number. +message DoubleValue { + // The double value. + double value = 1; +} + +// Wrapper message for `float`. +// +// The JSON representation for `FloatValue` is JSON number. +message FloatValue { + // The float value. + float value = 1; +} + +// Wrapper message for `int64`. +// +// The JSON representation for `Int64Value` is JSON string. +message Int64Value { + // The int64 value. + int64 value = 1; +} + +// Wrapper message for `uint64`. +// +// The JSON representation for `UInt64Value` is JSON string. +message UInt64Value { + // The uint64 value. + uint64 value = 1; +} + +// Wrapper message for `int32`. +// +// The JSON representation for `Int32Value` is JSON number. +message Int32Value { + // The int32 value. + int32 value = 1; +} + +// Wrapper message for `uint32`. +// +// The JSON representation for `UInt32Value` is JSON number. +message UInt32Value { + // The uint32 value. + uint32 value = 1; +} + +// Wrapper message for `bool`. +// +// The JSON representation for `BoolValue` is JSON `true` and `false`. +message BoolValue { + // The bool value. + bool value = 1; +} + +// Wrapper message for `string`. +// +// The JSON representation for `StringValue` is JSON string. +message StringValue { + // The string value. + string value = 1; +} + +// Wrapper message for `bytes`. +// +// The JSON representation for `BytesValue` is JSON string. +message BytesValue { + // The bytes value. + bytes value = 1; +} diff --git a/luban_examples/Projects/Protobuf2_json/Gen/Config.cs b/luban_examples/Projects/Protobuf2_json/Gen/Config.cs new file mode 100644 index 00000000..835ecc86 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/Gen/Config.cs @@ -0,0 +1,71737 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: config.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Cfg { + + /// Holder for reflection information generated from config.proto + public static partial class ConfigReflection { + + #region Descriptor + /// File descriptor for config.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgxjb25maWcucHJvdG8SA2NmZyIfCgdWZWN0b3IyEgkKAXgYASACKAISCQoB", + "eRgCIAIoAiIqCgdWZWN0b3IzEgkKAXgYASACKAISCQoBeRgCIAIoAhIJCgF6", + "GAMgAigCIjUKB1ZlY3RvcjQSCQoBeBgBIAIoAhIJCgF5GAIgAigCEgkKAXoY", + "AyACKAISCQoBdxgEIAIoAiJnCgxBaUJsYWNrYm9hcmQSDAoEbmFtZRgBIAIo", + "CRIMCgRkZXNjGAIgAigJEhMKC3BhcmVudF9uYW1lGAMgAigJEiYKBGtleXMY", + "BCADKAsyFC5jZmcuQWlCbGFja2JvYXJkS2V5QgIQACJ4Cg9BaUJsYWNrYm9h", + "cmRLZXkSDAoEbmFtZRgBIAIoCRIMCgRkZXNjGAIgAigJEhEKCWlzX3N0YXRp", + "YxgDIAIoCBIdCgR0eXBlGAQgAigOMg8uY2ZnLkFpRUtleVR5cGUSFwoPdHlw", + "ZV9jbGFzc19uYW1lGAUgAigJInEKDkFpQmVoYXZpb3JUcmVlEgoKAmlkGAEg", + "AigFEgwKBG5hbWUYAiACKAkSDAoEZGVzYxgDIAIoCRIVCg1ibGFja2JvYXJk", + "X2lkGAQgAigJEiAKBHJvb3QYBSACKAsyEi5jZmcuQWlDb21wb3NlTm9kZSLW", + "CAoGQWlOb2RlEjUKEVVlU2V0RGVmYXVsdEZvY3VzGAEgASgLMhguY2ZnLkFp", + "VWVTZXREZWZhdWx0Rm9jdXNIABI7ChRFeGVjdXRlVGltZVN0YXRpc3RpYxgC", + "IAEoCzIbLmNmZy5BaUV4ZWN1dGVUaW1lU3RhdGlzdGljSAASKwoMQ2hvb3Nl", + "VGFyZ2V0GAMgASgLMhMuY2ZnLkFpQ2hvb3NlVGFyZ2V0SAASLwoOS2VlcEZh", + "Y2VUYXJnZXQYBCABKAsyFS5jZmcuQWlLZWVwRmFjZVRhcmdldEgAEi8KDkdl", + "dE93bmVyUGxheWVyGAUgASgLMhUuY2ZnLkFpR2V0T3duZXJQbGF5ZXJIABJD", + "ChhVcGRhdGVEYWlseUJlaGF2aW9yUHJvcHMYBiABKAsyHy5jZmcuQWlVcGRh", + "dGVEYWlseUJlaGF2aW9yUHJvcHNIABIfCgZVZUxvb3AYByABKAsyDS5jZmcu", + "QWlVZUxvb3BIABInCgpVZUNvb2xkb3duGAggASgLMhEuY2ZnLkFpVWVDb29s", + "ZG93bkgAEikKC1VlVGltZUxpbWl0GAkgASgLMhIuY2ZnLkFpVWVUaW1lTGlt", + "aXRIABIrCgxVZUJsYWNrYm9hcmQYCiABKAsyEy5jZmcuQWlVZUJsYWNrYm9h", + "cmRIABIvCg5VZUZvcmNlU3VjY2VzcxgLIAEoCzIVLmNmZy5BaVVlRm9yY2VT", + "dWNjZXNzSAASKwoMSXNBdExvY2F0aW9uGAwgASgLMhMuY2ZnLkFpSXNBdExv", + "Y2F0aW9uSAASMwoQRGlzdGFuY2VMZXNzVGhhbhgNIAEoCzIXLmNmZy5BaURp", + "c3RhbmNlTGVzc1RoYW5IABIjCghTZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNl", + "cXVlbmNlSAASIwoIU2VsZWN0b3IYDyABKAsyDy5jZmcuQWlTZWxlY3RvckgA", + "Ei8KDlNpbXBsZVBhcmFsbGVsGBAgASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxs", + "ZWxIABIfCgZVZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdh", + "aXRCbGFja2JvYXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9h", + "cmRUaW1lSAASKwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRv", + "VGFyZ2V0SAASKQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VT", + "a2lsbEgAEjsKFE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFp", + "TW92ZVRvUmFuZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEo", + "CzIVLmNmZy5BaU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEo", + "CzIRLmNmZy5BaURlYnVnUHJpbnRIAEIHCgV2YWx1ZSLcAgoJQWlTZXJ2aWNl", + "EjUKEVVlU2V0RGVmYXVsdEZvY3VzGAEgASgLMhguY2ZnLkFpVWVTZXREZWZh", + "dWx0Rm9jdXNIABI7ChRFeGVjdXRlVGltZVN0YXRpc3RpYxgCIAEoCzIbLmNm", + "Zy5BaUV4ZWN1dGVUaW1lU3RhdGlzdGljSAASKwoMQ2hvb3NlVGFyZ2V0GAMg", + "ASgLMhMuY2ZnLkFpQ2hvb3NlVGFyZ2V0SAASLwoOS2VlcEZhY2VUYXJnZXQY", + "BCABKAsyFS5jZmcuQWlLZWVwRmFjZVRhcmdldEgAEi8KDkdldE93bmVyUGxh", + "eWVyGAUgASgLMhUuY2ZnLkFpR2V0T3duZXJQbGF5ZXJIABJDChhVcGRhdGVE", + "YWlseUJlaGF2aW9yUHJvcHMYBiABKAsyHy5jZmcuQWlVcGRhdGVEYWlseUJl", + "aGF2aW9yUHJvcHNIAEIHCgV2YWx1ZSJKChNBaVVlU2V0RGVmYXVsdEZvY3Vz", + "EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIUCgxrZXlib2FyZF9r", + "ZXkYAyACKAkiNwoWQWlFeGVjdXRlVGltZVN0YXRpc3RpYxIKCgJpZBgBIAIo", + "BRIRCglub2RlX25hbWUYAiACKAkiSgoOQWlDaG9vc2VUYXJnZXQSCgoCaWQY", + "ASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhkKEXJlc3VsdF90YXJnZXRfa2V5", + "GAMgAigJIksKEEFpS2VlcEZhY2VUYXJnZXQSCgoCaWQYASACKAUSEQoJbm9k", + "ZV9uYW1lGAIgAigJEhgKEHRhcmdldF9hY3Rvcl9rZXkYAyACKAkiSwoQQWlH", + "ZXRPd25lclBsYXllchIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkS", + "GAoQcGxheWVyX2FjdG9yX2tleRgDIAIoCSLMAgoaQWlVcGRhdGVEYWlseUJl", + "aGF2aW9yUHJvcHMSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhMK", + "C3NhdGlldHlfa2V5GAMgAigJEhIKCmVuZXJneV9rZXkYBCACKAkSEAoIbW9v", + "ZF9rZXkYBSACKAkSIwobc2F0aWV0eV9sb3dlcl90aHJlc2hvbGRfa2V5GAYg", + "AigJEiMKG3NhdGlldHlfdXBwZXJfdGhyZXNob2xkX2tleRgHIAIoCRIiChpl", + "bmVyZ3lfbG93ZXJfdGhyZXNob2xkX2tleRgIIAIoCRIiChplbmVyZ3lfdXBw", + "ZXJfdGhyZXNob2xkX2tleRgJIAIoCRIgChhtb29kX2xvd2VyX3RocmVzaG9s", + "ZF9rZXkYCiACKAkSIAoYbW9vZF91cHBlcl90aHJlc2hvbGRfa2V5GAsgAigJ", + "IssCCgtBaURlY29yYXRvchIfCgZVZUxvb3AYByABKAsyDS5jZmcuQWlVZUxv", + "b3BIABInCgpVZUNvb2xkb3duGAggASgLMhEuY2ZnLkFpVWVDb29sZG93bkgA", + "EikKC1VlVGltZUxpbWl0GAkgASgLMhIuY2ZnLkFpVWVUaW1lTGltaXRIABIr", + "CgxVZUJsYWNrYm9hcmQYCiABKAsyEy5jZmcuQWlVZUJsYWNrYm9hcmRIABIv", + "Cg5VZUZvcmNlU3VjY2VzcxgLIAEoCzIVLmNmZy5BaVVlRm9yY2VTdWNjZXNz", + "SAASKwoMSXNBdExvY2F0aW9uGAwgASgLMhMuY2ZnLkFpSXNBdExvY2F0aW9u", + "SAASMwoQRGlzdGFuY2VMZXNzVGhhbhgNIAEoCzIXLmNmZy5BaURpc3RhbmNl", + "TGVzc1RoYW5IAEIHCgV2YWx1ZSKnAQoIQWlVZUxvb3ASCgoCaWQYASACKAUS", + "EQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIV", + "LmNmZy5BaUVGbG93QWJvcnRNb2RlEhEKCW51bV9sb29wcxgEIAIoBRIVCg1p", + "bmZpbml0ZV9sb29wGAUgAigIEiIKGmluZmluaXRlX2xvb3BfdGltZW91dF90", + "aW1lGAYgAigCInQKDEFpVWVDb29sZG93bhIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMgAigOMhUuY2ZnLkFp", + "RUZsb3dBYm9ydE1vZGUSFQoNY29vbGRvd25fdGltZRgEIAIoAiJyCg1BaVVl", + "VGltZUxpbWl0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9m", + "bG93X2Fib3J0X21vZGUYAyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0TW9kZRIS", + "CgpsaW1pdF90aW1lGAQgAigCItgBCg5BaVVlQmxhY2tib2FyZBIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMg", + "AigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1vZGUSMwoPbm90aWZ5X29ic2VydmVy", + "GAQgAigOMhouY2ZnLkFpRU5vdGlmeU9ic2VydmVyTW9kZRIWCg5ibGFja2Jv", + "YXJkX2tleRgFIAIoCRIqCglrZXlfcXVlcnkYBiACKAsyFy5jZmcuQWlLZXlR", + "dWVyeU9wZXJhdG9yIpIBChJBaUtleVF1ZXJ5T3BlcmF0b3ISHQoFSXNTZXQY", + "ASABKAsyDC5jZmcuQWlJc1NldEgAEiMKCElzTm90U2V0GAIgASgLMg8uY2Zn", + "LkFpSXNOb3RTZXRIABIvCg5CaW5hcnlPcGVyYXRvchgDIAEoCzIVLmNmZy5B", + "aUJpbmFyeU9wZXJhdG9ySABCBwoFdmFsdWUiCQoHQWlJc1NldCIMCgpBaUlz", + "Tm90U2V0IlAKEEFpQmluYXJ5T3BlcmF0b3ISHgoEb3BlchgBIAIoDjIQLmNm", + "Zy5BaUVPcGVyYXRvchIcCgRkYXRhGAIgAigLMg4uY2ZnLkFpS2V5RGF0YSLQ", + "AQoJQWlLZXlEYXRhEisKDEZsb2F0S2V5RGF0YRgBIAEoCzITLmNmZy5BaUZs", + "b2F0S2V5RGF0YUgAEicKCkludEtleURhdGEYAiABKAsyES5jZmcuQWlJbnRL", + "ZXlEYXRhSAASLQoNU3RyaW5nS2V5RGF0YRgDIAEoCzIULmNmZy5BaVN0cmlu", + "Z0tleURhdGFIABI1ChFCbGFja2JvYXJkS2V5RGF0YRgEIAEoCzIYLmNmZy5B", + "aUJsYWNrYm9hcmRLZXlEYXRhSABCBwoFdmFsdWUiHwoOQWlGbG9hdEtleURh", + "dGESDQoFdmFsdWUYASACKAIiHQoMQWlJbnRLZXlEYXRhEg0KBXZhbHVlGAEg", + "AigFIiAKD0FpU3RyaW5nS2V5RGF0YRINCgV2YWx1ZRgBIAIoCSIkChNBaUJs", + "YWNrYm9hcmRLZXlEYXRhEg0KBXZhbHVlGAEgAigJImEKEEFpVWVGb3JjZVN1", + "Y2Nlc3MSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3df", + "YWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlIqsBCg5B", + "aUlzQXRMb2NhdGlvbhIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkS", + "LgoPZmxvd19hYm9ydF9tb2RlGAMgAigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1v", + "ZGUSGQoRYWNjZXB0YWJsZV9yYWRpdXMYBCACKAISFAoMa2V5Ym9hcmRfa2V5", + "GAUgAigJEhkKEWludmVyc2VfY29uZGl0aW9uGAYgAigIIrUBChJBaURpc3Rh", + "bmNlTGVzc1RoYW4SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4K", + "D2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2Rl", + "EhIKCmFjdG9yMV9rZXkYBCACKAkSEgoKYWN0b3IyX2tleRgFIAIoCRIQCghk", + "aXN0YW5jZRgGIAIoAhIWCg5yZXZlcnNlX3Jlc3VsdBgHIAIoCCLdAwoKQWlG", + "bG93Tm9kZRIjCghTZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNlcXVlbmNlSAAS", + "IwoIU2VsZWN0b3IYDyABKAsyDy5jZmcuQWlTZWxlY3RvckgAEi8KDlNpbXBs", + "ZVBhcmFsbGVsGBAgASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxsZWxIABIfCgZV", + "ZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdhaXRCbGFja2Jv", + "YXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9hcmRUaW1lSAAS", + "KwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRvVGFyZ2V0SAAS", + "KQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VTa2lsbEgAEjsK", + "FE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFpTW92ZVRvUmFu", + "ZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEoCzIVLmNmZy5B", + "aU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEoCzIRLmNmZy5B", + "aURlYnVnUHJpbnRIAEIHCgV2YWx1ZSKTAQoNQWlDb21wb3NlTm9kZRIjCghT", + "ZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNlcXVlbmNlSAASIwoIU2VsZWN0b3IY", + "DyABKAsyDy5jZmcuQWlTZWxlY3RvckgAEi8KDlNpbXBsZVBhcmFsbGVsGBAg", + "ASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxsZWxIAEIHCgV2YWx1ZSKiAQoKQWlT", + "ZXF1ZW5jZRIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVj", + "b3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29yYXRvckICEAASJAoIc2Vydmlj", + "ZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQABIlCghjaGlsZHJlbhgFIAMo", + "CzIPLmNmZy5BaUZsb3dOb2RlQgIQACKiAQoKQWlTZWxlY3RvchIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQ", + "LmNmZy5BaURlY29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcu", + "QWlTZXJ2aWNlQgIQABIlCghjaGlsZHJlbhgFIAMoCzIPLmNmZy5BaUZsb3dO", + "b2RlQgIQACL0AQoQQWlTaW1wbGVQYXJhbGxlbBIKCgJpZBgBIAIoBRIRCglu", + "b2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURl", + "Y29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNl", + "QgIQABInCgtmaW5pc2hfbW9kZRgFIAIoDjISLmNmZy5BaUVGaW5pc2hNb2Rl", + "Eh4KCW1haW5fdGFzaxgGIAIoCzILLmNmZy5BaVRhc2sSKAoPYmFja2dyb3Vu", + "ZF9ub2RlGAcgAigLMg8uY2ZnLkFpRmxvd05vZGUi3gIKBkFpVGFzaxIfCgZV", + "ZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdhaXRCbGFja2Jv", + "YXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9hcmRUaW1lSAAS", + "KwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRvVGFyZ2V0SAAS", + "KQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VTa2lsbEgAEjsK", + "FE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFpTW92ZVRvUmFu", + "ZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEoCzIVLmNmZy5B", + "aU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEoCzIRLmNmZy5B", + "aURlYnVnUHJpbnRIAEIHCgV2YWx1ZSLDAQoIQWlVZVdhaXQSCgoCaWQYASAC", + "KAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5j", + "ZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFp", + "U2VydmljZUICEAASGwoTaWdub3JlX3Jlc3RhcnRfc2VsZhgFIAIoCBIRCgl3", + "YWl0X3RpbWUYBiACKAISGAoQcmFuZG9tX2RldmlhdGlvbhgHIAIoAiK8AQoW", + "QWlVZVdhaXRCbGFja2JvYXJkVGltZRIKCgJpZBgBIAIoBRIRCglub2RlX25h", + "bWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29yYXRv", + "ckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQABIb", + "ChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEhYKDmJsYWNrYm9hcmRfa2V5", + "GAYgAigJItEBCg5BaU1vdmVUb1RhcmdldBIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29y", + "YXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQ", + "ABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEhgKEHRhcmdldF9hY3Rv", + "cl9rZXkYBiACKAkSGQoRYWNjZXB0YWJsZV9yYWRpdXMYByACKAIi0gEKDUFp", + "Q2hvb3NlU2tpbGwSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigK", + "CmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNl", + "cnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jl", + "c3RhcnRfc2VsZhgFIAIoCBIYChB0YXJnZXRfYWN0b3Jfa2V5GAYgAigJEhsK", + "E3Jlc3VsdF9za2lsbF9pZF9rZXkYByACKAki0QEKFkFpTW92ZVRvUmFuZG9t", + "TG9jYXRpb24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRl", + "Y29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZp", + "Y2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3Rh", + "cnRfc2VsZhgFIAIoCBIbChNvcmlnaW5fcG9zaXRpb25fa2V5GAYgAigJEg4K", + "BnJhZGl1cxgHIAIoAiLZAQoQQWlNb3ZlVG9Mb2NhdGlvbhIKCgJpZBgBIAIo", + "BRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNm", + "Zy5BaURlY29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlT", + "ZXJ2aWNlQgIQABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEh4KCGxv", + "Y2F0aW9uGAYgAigLMgwuY2ZnLlZlY3RvcjMSGQoRYWNjZXB0YWJsZV9yYWRp", + "dXMYByACKAIiqAEKDEFpRGVidWdQcmludBIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29y", + "YXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQ", + "ABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEgwKBHRleHQYBiACKAki", + "pwEKDkJsdWVwcmludENsYXp6EiwKCUludGVyZmFjZRgBIAEoCzIXLmNmZy5C", + "bHVlcHJpbnRJbnRlcmZhY2VIABIwCgtOb3JtYWxDbGF6ehgCIAEoCzIZLmNm", + "Zy5CbHVlcHJpbnROb3JtYWxDbGF6ekgAEiwKCUVudW1DbGF6ehgDIAEoCzIX", + "LmNmZy5CbHVlcHJpbnRFbnVtQ2xhenpIAEIHCgV2YWx1ZSLEAQoPQmx1ZXBy", + "aW50TWV0aG9kEjYKDkFic3RyYWNlTWV0aG9kGAEgASgLMhwuY2ZnLkJsdWVw", + "cmludEFic3RyYWNlTWV0aG9kSAASNgoORXh0ZXJuYWxNZXRob2QYAiABKAsy", + "HC5jZmcuQmx1ZXByaW50RXh0ZXJuYWxNZXRob2RIABI4Cg9CbHVlcHJpbnRN", + "ZXRob2QYAyABKAsyHS5jZmcuQmx1ZXByaW50Qmx1ZXByaW50TWV0aG9kSABC", + "BwoFdmFsdWUiQAoSQmx1ZXByaW50UGFyYW1JbmZvEgwKBG5hbWUYASACKAkS", + "DAoEdHlwZRgCIAIoCRIOCgZpc19yZWYYAyACKAgijgEKF0JsdWVwcmludEFi", + "c3RyYWNlTWV0aG9kEgwKBG5hbWUYASACKAkSDAoEZGVzYxgCIAIoCRIRCglp", + "c19zdGF0aWMYAyACKAgSEwoLcmV0dXJuX3R5cGUYBCACKAkSLwoKcGFyYW1l", + "dGVycxgFIAMoCzIXLmNmZy5CbHVlcHJpbnRQYXJhbUluZm9CAhAAIo4BChdC", + "bHVlcHJpbnRFeHRlcm5hbE1ldGhvZBIMCgRuYW1lGAEgAigJEgwKBGRlc2MY", + "AiACKAkSEQoJaXNfc3RhdGljGAMgAigIEhMKC3JldHVybl90eXBlGAQgAigJ", + "Ei8KCnBhcmFtZXRlcnMYBSADKAsyFy5jZmcuQmx1ZXByaW50UGFyYW1JbmZv", + "QgIQACKPAQoYQmx1ZXByaW50Qmx1ZXByaW50TWV0aG9kEgwKBG5hbWUYASAC", + "KAkSDAoEZGVzYxgCIAIoCRIRCglpc19zdGF0aWMYAyACKAgSEwoLcmV0dXJu", + "X3R5cGUYBCACKAkSLwoKcGFyYW1ldGVycxgFIAMoCzIXLmNmZy5CbHVlcHJp", + "bnRQYXJhbUluZm9CAhAAIoUBChJCbHVlcHJpbnRJbnRlcmZhY2USDAoEbmFt", + "ZRgBIAIoCRIMCgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5jZmcu", + "Qmx1ZXByaW50Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcuQmx1", + "ZXByaW50TWV0aG9kQgIQACLFAQoUQmx1ZXByaW50Tm9ybWFsQ2xhenoSDAoE", + "bmFtZRgBIAIoCRIMCgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5j", + "ZmcuQmx1ZXByaW50Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcu", + "Qmx1ZXByaW50TWV0aG9kQgIQABITCgtpc19hYnN0cmFjdBgFIAIoCBInCgZm", + "aWVsZHMYBiADKAsyEy5jZmcuQmx1ZXByaW50RmllbGRCAhAAIjoKDkJsdWVw", + "cmludEZpZWxkEgwKBG5hbWUYASACKAkSDAoEdHlwZRgCIAIoCRIMCgRkZXNj", + "GAMgAigJIrEBChJCbHVlcHJpbnRFbnVtQ2xhenoSDAoEbmFtZRgBIAIoCRIM", + "CgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5jZmcuQmx1ZXByaW50", + "Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcuQmx1ZXByaW50TWV0", + "aG9kQgIQABIqCgVlbnVtcxgFIAMoCzIXLmNmZy5CbHVlcHJpbnRFbnVtRmll", + "bGRCAhAAIjEKEkJsdWVwcmludEVudW1GaWVsZBIMCgRuYW1lGAEgAigJEg0K", + "BXZhbHVlGAIgAigFIoABCg1Cb251c0Ryb3BJbmZvEgoKAmlkGAEgAigFEgwK", + "BGRlc2MYAiACKAkSNQoRY2xpZW50X3Nob3dfaXRlbXMYAyADKAsyFi5jZmcu", + "Qm9udXNTaG93SXRlbUluZm9CAhAAEh4KBWJvbnVzGAQgAigLMg8uY2ZnLkJv", + "bnVzQm9udXMiNgoRQm9udXNTaG93SXRlbUluZm8SDwoHaXRlbV9pZBgBIAIo", + "BRIQCghpdGVtX251bRgCIAIoAyL9AwoKQm9udXNCb251cxIkCgdPbmVJdGVt", + "GAEgASgLMhEuY2ZnLkJvbnVzT25lSXRlbUgAEiYKCE9uZUl0ZW1zGAIgASgL", + "MhIuY2ZnLkJvbnVzT25lSXRlbXNIABIeCgRJdGVtGAMgASgLMg4uY2ZnLkJv", + "bnVzSXRlbUgAEiAKBUl0ZW1zGAQgASgLMg8uY2ZnLkJvbnVzSXRlbXNIABI0", + "Cg9Db2VmZmljaWVudEl0ZW0YBSABKAsyGS5jZmcuQm9udXNDb2VmZmljaWVu", + "dEl0ZW1IABIsCgtXZWlnaHRJdGVtcxgGIAEoCzIVLmNmZy5Cb251c1dlaWdo", + "dEl0ZW1zSAASNgoQUHJvYmFiaWxpdHlJdGVtcxgHIAEoCzIaLmNmZy5Cb251", + "c1Byb2JhYmlsaXR5SXRlbXNIABIqCgpNdWx0aUJvbnVzGAggASgLMhQuY2Zn", + "LkJvbnVzTXVsdGlCb251c0gAEjYKEFByb2JhYmlsaXR5Qm9udXMYCSABKAsy", + "Gi5jZmcuQm9udXNQcm9iYWJpbGl0eUJvbnVzSAASLAoLV2VpZ2h0Qm9udXMY", + "CiABKAsyFS5jZmcuQm9udXNXZWlnaHRCb251c0gAEigKCURyb3BCb251cxgL", + "IAEoCzITLmNmZy5Cb251c0Ryb3BCb251c0gAQgcKBXZhbHVlIh8KDEJvbnVz", + "T25lSXRlbRIPCgdpdGVtX2lkGAEgAigFIiIKDUJvbnVzT25lSXRlbXMSEQoF", + "aXRlbXMYASADKAVCAhABIiwKCUJvbnVzSXRlbRIPCgdpdGVtX2lkGAEgAigF", + "Eg4KBmFtb3VudBgCIAIoBSIzCgpCb251c0l0ZW1zEiUKCWl0ZW1fbGlzdBgB", + "IAMoCzIOLmNmZy5Cb251c0l0ZW1CAhAAIk0KFEJvbnVzQ29lZmZpY2llbnRJ", + "dGVtEhAKCGJvbnVzX2lkGAEgAigFEiMKCmJvbnVzX2xpc3QYAiACKAsyDy5j", + "ZmcuQm9udXNJdGVtcyJDChBCb251c1dlaWdodEl0ZW1zEi8KCWl0ZW1fbGlz", + "dBgBIAMoCzIYLmNmZy5Cb251c1dlaWdodEl0ZW1JbmZvQgIQACJDChNCb251", + "c1dlaWdodEl0ZW1JbmZvEg8KB2l0ZW1faWQYASACKAUSCwoDbnVtGAIgAigF", + "Eg4KBndlaWdodBgDIAIoBSJNChVCb251c1Byb2JhYmlsaXR5SXRlbXMSNAoJ", + "aXRlbV9saXN0GAEgAygLMh0uY2ZnLkJvbnVzUHJvYmFiaWxpdHlJdGVtSW5m", + "b0ICEAAiTQoYQm9udXNQcm9iYWJpbGl0eUl0ZW1JbmZvEg8KB2l0ZW1faWQY", + "ASACKAUSCwoDbnVtGAIgAigFEhMKC3Byb2JhYmlsaXR5GAMgAigCIjcKD0Jv", + "bnVzTXVsdGlCb251cxIkCgdib251c2VzGAEgAygLMg8uY2ZnLkJvbnVzQm9u", + "dXNCAhAAIkwKFUJvbnVzUHJvYmFiaWxpdHlCb251cxIzCgdib251c2VzGAEg", + "AygLMh4uY2ZnLkJvbnVzUHJvYmFiaWxpdHlCb251c0luZm9CAhAAIlAKGUJv", + "bnVzUHJvYmFiaWxpdHlCb251c0luZm8SHgoFYm9udXMYASACKAsyDy5jZmcu", + "Qm9udXNCb251cxITCgtwcm9iYWJpbGl0eRgCIAIoAiJCChBCb251c1dlaWdo", + "dEJvbnVzEi4KB2JvbnVzZXMYASADKAsyGS5jZmcuQm9udXNXZWlnaHRCb251", + "c0luZm9CAhAAIkYKFEJvbnVzV2VpZ2h0Qm9udXNJbmZvEh4KBWJvbnVzGAEg", + "AigLMg8uY2ZnLkJvbnVzQm9udXMSDgoGd2VpZ2h0GAIgAigFIhwKDkJvbnVz", + "RHJvcEJvbnVzEgoKAmlkGAEgAigFIs8EChJDb21tb25HbG9iYWxDb25maWcS", + "FAoMYmFnX2NhcGFjaXR5GAEgAigFEhwKFGJhZ19jYXBhY2l0eV9zcGVjaWFs", + "GAIgAigFEiQKHGJhZ190ZW1wX2V4cGVuZGFibGVfY2FwYWNpdHkYAyACKAUS", + "HgoWYmFnX3RlbXBfdG9vbF9jYXBhY2l0eRgEIAIoBRIZChFiYWdfaW5pdF9j", + "YXBhY2l0eRgFIAIoBRIaChJxdWlja19iYWdfY2FwYWNpdHkYBiACKAUSGgoS", + "Y2xvdGhfYmFnX2NhcGFjaXR5GAcgAigFEh8KF2Nsb3RoX2JhZ19pbml0X2Nh", + "cGFjaXR5GAggAigFEiIKGmNsb3RoX2JhZ19jYXBhY2l0eV9zcGVjaWFsGAkg", + "AigFEh4KFmJhZ19pbml0X2l0ZW1zX2Ryb3BfaWQYCiABKAUSGQoRbWFpbF9i", + "b3hfY2FwYWNpdHkYCyACKAUSFgoOZGFtYWdlX3BhcmFtX2MYDCACKAISFgoO", + "ZGFtYWdlX3BhcmFtX2UYDSACKAISFgoOZGFtYWdlX3BhcmFtX2YYDiACKAIS", + "FgoOZGFtYWdlX3BhcmFtX2QYDyACKAISEgoKcm9sZV9zcGVlZBgQIAIoAhIV", + "Cg1tb25zdGVyX3NwZWVkGBEgAigCEhMKC2luaXRfZW5lcmd5GBIgAigFEhQK", + "DGluaXRfdmlhbGl0eRgTIAIoBRITCgttYXhfdmlhbGl0eRgUIAIoBRIhChlw", + "ZXJfdmlhbGl0eV9yZWNvdmVyeV90aW1lGBUgAigFIlEKDkVycm9yRXJyb3JJ", + "bmZvEgwKBGNvZGUYASACKAkSDAoEZGVzYxgCIAIoCRIjCgVzdHlsZRgDIAIo", + "CzIULmNmZy5FcnJvckVycm9yU3R5bGUi/AEKD0Vycm9yRXJyb3JTdHlsZRIw", + "Cg1FcnJvclN0eWxlVGlwGAEgASgLMhcuY2ZnLkVycm9yRXJyb3JTdHlsZVRp", + "cEgAEjYKEEVycm9yU3R5bGVNc2dib3gYAiABKAsyGi5jZmcuRXJyb3JFcnJv", + "clN0eWxlTXNnYm94SAASNAoPRXJyb3JTdHlsZURsZ09rGAMgASgLMhkuY2Zn", + "LkVycm9yRXJyb3JTdHlsZURsZ09rSAASQAoVRXJyb3JTdHlsZURsZ09rQ2Fu", + "Y2VsGAQgASgLMh8uY2ZnLkVycm9yRXJyb3JTdHlsZURsZ09rQ2FuY2VsSABC", + "BwoFdmFsdWUiFAoSRXJyb3JFcnJvclN0eWxlVGlwIlIKFUVycm9yRXJyb3JT", + "dHlsZU1zZ2JveBIQCghidG5fbmFtZRgBIAIoCRInCglvcGVyYXRpb24YAiAC", + "KA4yFC5jZmcuRXJyb3JFT3BlcmF0aW9uIigKFEVycm9yRXJyb3JTdHlsZURs", + "Z09rEhAKCGJ0bl9uYW1lGAEgAigJIkIKGkVycm9yRXJyb3JTdHlsZURsZ09r", + "Q2FuY2VsEhEKCWJ0bjFfbmFtZRgBIAIoCRIRCglidG4yX25hbWUYAiACKAki", + "QAoNRXJyb3JDb2RlSW5mbxIiCgRjb2RlGAEgAigOMhQuY2ZnLkVycm9yRUVy", + "cm9yQ29kZRILCgNrZXkYAiACKAki/gMKCEl0ZW1JdGVtEgoKAmlkGAEgAigF", + "EgwKBG5hbWUYAiACKAkSJwoKbWFqb3JfdHlwZRgDIAIoDjITLmNmZy5JdGVt", + "RU1ham9yVHlwZRInCgptaW5vcl90eXBlGAQgAigOMhMuY2ZnLkl0ZW1FTWlu", + "b3JUeXBlEhQKDG1heF9waWxlX251bRgFIAIoBRImCgdxdWFsaXR5GAYgAigO", + "MhUuY2ZnLkl0ZW1FSXRlbVF1YWxpdHkSDAoEaWNvbhgHIAIoCRIWCg5pY29u", + "X2JhY2tncm91ZBgIIAIoCRIRCglpY29uX21hc2sYCSACKAkSDAoEZGVzYxgK", + "IAIoCRISCgpzaG93X29yZGVyGAsgAigFEhIKCnF1YW50aWZpZXIYDCACKAkS", + "EwoLc2hvd19pbl9iYWcYDSACKAgSFgoObWluX3Nob3dfbGV2ZWwYDiACKAUS", + "FAoMYmF0Y2hfdXNhYmxlGA8gAigIEh4KFnByb2dyZXNzX3RpbWVfd2hlbl91", + "c2UYECACKAISGgoSc2hvd19oaW50X3doZW5fdXNlGBEgAigIEhEKCWRyb3Bw", + "YWJsZRgSIAIoCBINCgVwcmljZRgTIAEoBRIjCgh1c2VfdHlwZRgUIAIoDjIR", + "LmNmZy5JdGVtRVVzZVR5cGUSEwoLbGV2ZWxfdXBfaWQYFSABKAUikAEKEEl0", + "ZW1JdGVtRnVuY3Rpb24SJwoKbWlub3JfdHlwZRgBIAIoDjITLmNmZy5JdGVt", + "RU1pbm9yVHlwZRItCglmdW5jX3R5cGUYAiACKA4yGi5jZmcuSXRlbUVJdGVt", + "RnVuY3Rpb25UeXBlEg4KBm1ldGhvZBgDIAIoCRIUCgxjbG9zZV9iYWdfdWkY", + "BCACKAgi8QEKDUl0ZW1JdGVtRXh0cmESKwoLVHJlYXN1cmVCb3gYASABKAsy", + "FC5jZmcuSXRlbVRyZWFzdXJlQm94SAASMwoPSW50ZXJhY3Rpb25JdGVtGAIg", + "ASgLMhguY2ZnLkl0ZW1JbnRlcmFjdGlvbkl0ZW1IABIjCgdDbG90aGVzGAMg", + "ASgLMhAuY2ZnLkl0ZW1DbG90aGVzSAASLwoNRGVzaWduRHJhd2luZxgEIAEo", + "CzIWLmNmZy5JdGVtRGVzaWduRHJhd2luZ0gAEh8KBUR5bW15GAUgASgLMg4u", + "Y2ZnLkl0ZW1EeW1teUgAQgcKBXZhbHVlIr0BCg9JdGVtVHJlYXN1cmVCb3gS", + "CgoCaWQYASACKAUSEwoLa2V5X2l0ZW1faWQYAiABKAUSKgoKb3Blbl9sZXZl", + "bBgDIAIoCzIWLmNmZy5Db25kaXRpb25NaW5MZXZlbBIVCg11c2Vfb25fb2J0", + "YWluGAQgAigIEhQKCGRyb3BfaWRzGAUgAygFQgIQARIwCgtjaG9vc2VfbGlz", + "dBgGIAMoCzIXLmNmZy5JdGVtQ2hvb3NlT25lQm9udXNCAhAAItUDChJDb25k", + "aXRpb25Db25kaXRpb24SLAoJVGltZVJhbmdlGAEgASgLMhcuY2ZnLkNvbmRp", + "dGlvblRpbWVSYW5nZUgAEj4KEk11bHRpUm9sZUNvbmRpdGlvbhgCIAEoCzIg", + "LmNmZy5Db25kaXRpb25NdWx0aVJvbGVDb25kaXRpb25IABIwCgtHZW5kZXJM", + "aW1pdBgDIAEoCzIZLmNmZy5Db25kaXRpb25HZW5kZXJMaW1pdEgAEioKCE1p", + "bkxldmVsGAQgASgLMhYuY2ZnLkNvbmRpdGlvbk1pbkxldmVsSAASKgoITWF4", + "TGV2ZWwYBSABKAsyFi5jZmcuQ29uZGl0aW9uTWF4TGV2ZWxIABIwCgtNaW5N", + "YXhMZXZlbBgGIAEoCzIZLmNmZy5Db25kaXRpb25NaW5NYXhMZXZlbEgAElgK", + "H0Nsb3RoZXNQcm9wZXJ0eVNjb3JlR3JlYXRlclRoYW4YByABKAsyLS5jZmcu", + "Q29uZGl0aW9uQ2xvdGhlc1Byb3BlcnR5U2NvcmVHcmVhdGVyVGhhbkgAEjIK", + "DENvbnRhaW5zSXRlbRgIIAEoCzIaLmNmZy5Db25kaXRpb25Db250YWluc0l0", + "ZW1IAEIHCgV2YWx1ZSJHChJDb25kaXRpb25UaW1lUmFuZ2USMQoPZGF0ZV90", + "aW1lX3JhbmdlGAEgAigLMhguY2ZnLkNvbW1vbkRhdGVUaW1lUmFuZ2UiOwoT", + "Q29tbW9uRGF0ZVRpbWVSYW5nZRISCgpzdGFydF90aW1lGAEgASgFEhAKCGVu", + "ZF90aW1lGAIgASgFIqsDChZDb25kaXRpb25Sb2xlQ29uZGl0aW9uEj4KEk11", + "bHRpUm9sZUNvbmRpdGlvbhgCIAEoCzIgLmNmZy5Db25kaXRpb25NdWx0aVJv", + "bGVDb25kaXRpb25IABIwCgtHZW5kZXJMaW1pdBgDIAEoCzIZLmNmZy5Db25k", + "aXRpb25HZW5kZXJMaW1pdEgAEioKCE1pbkxldmVsGAQgASgLMhYuY2ZnLkNv", + "bmRpdGlvbk1pbkxldmVsSAASKgoITWF4TGV2ZWwYBSABKAsyFi5jZmcuQ29u", + "ZGl0aW9uTWF4TGV2ZWxIABIwCgtNaW5NYXhMZXZlbBgGIAEoCzIZLmNmZy5D", + "b25kaXRpb25NaW5NYXhMZXZlbEgAElgKH0Nsb3RoZXNQcm9wZXJ0eVNjb3Jl", + "R3JlYXRlclRoYW4YByABKAsyLS5jZmcuQ29uZGl0aW9uQ2xvdGhlc1Byb3Bl", + "cnR5U2NvcmVHcmVhdGVyVGhhbkgAEjIKDENvbnRhaW5zSXRlbRgIIAEoCzIa", + "LmNmZy5Db25kaXRpb25Db250YWluc0l0ZW1IAEIHCgV2YWx1ZSJSChtDb25k", + "aXRpb25NdWx0aVJvbGVDb25kaXRpb24SMwoKY29uZGl0aW9ucxgBIAMoCzIb", + "LmNmZy5Db25kaXRpb25Sb2xlQ29uZGl0aW9uQgIQACK7AgoaQ29uZGl0aW9u", + "Qm9vbFJvbGVDb25kaXRpb24SMAoLR2VuZGVyTGltaXQYAyABKAsyGS5jZmcu", + "Q29uZGl0aW9uR2VuZGVyTGltaXRIABIqCghNaW5MZXZlbBgEIAEoCzIWLmNm", + "Zy5Db25kaXRpb25NaW5MZXZlbEgAEioKCE1heExldmVsGAUgASgLMhYuY2Zn", + "LkNvbmRpdGlvbk1heExldmVsSAASMAoLTWluTWF4TGV2ZWwYBiABKAsyGS5j", + "ZmcuQ29uZGl0aW9uTWluTWF4TGV2ZWxIABJYCh9DbG90aGVzUHJvcGVydHlT", + "Y29yZUdyZWF0ZXJUaGFuGAcgASgLMi0uY2ZnLkNvbmRpdGlvbkNsb3RoZXNQ", + "cm9wZXJ0eVNjb3JlR3JlYXRlclRoYW5IAEIHCgV2YWx1ZSI8ChRDb25kaXRp", + "b25HZW5kZXJMaW1pdBIkCgZnZW5kZXIYASACKA4yFC5jZmcuUm9sZUVHZW5k", + "ZXJUeXBlIiIKEUNvbmRpdGlvbk1pbkxldmVsEg0KBWxldmVsGAEgAigFIiIK", + "EUNvbmRpdGlvbk1heExldmVsEg0KBWxldmVsGAEgAigFIjAKFENvbmRpdGlv", + "bk1pbk1heExldmVsEgsKA21pbhgBIAIoBRILCgNtYXgYAiACKAUiZgooQ29u", + "ZGl0aW9uQ2xvdGhlc1Byb3BlcnR5U2NvcmVHcmVhdGVyVGhhbhIrCgRwcm9w", + "GAEgAigOMh0uY2ZnLkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZRINCgV2YWx1", + "ZRgCIAIoBSJGChVDb25kaXRpb25Db250YWluc0l0ZW0SDwoHaXRlbV9pZBgB", + "IAIoBRILCgNudW0YAiACKAUSDwoHcmV2ZXJzZRgDIAIoCCI4ChJJdGVtQ2hv", + "b3NlT25lQm9udXMSDwoHZHJvcF9pZBgBIAIoBRIRCglpc191bmlxdWUYAiAC", + "KAgicwoTSXRlbUludGVyYWN0aW9uSXRlbRIKCgJpZBgBIAIoBRISCgphdHRh", + "Y2tfbnVtGAIgASgFEhsKE2hvbGRpbmdfc3RhdGljX21lc2gYAyACKAkSHwoX", + "aG9sZGluZ19zdGF0aWNfbWVzaF9tYXQYBCACKAkiYgoLSXRlbUNsb3RoZXMS", + "CgoCaWQYASACKAUSDgoGYXR0YWNrGAIgAigFEgoKAmhwGAMgAigDEhQKDGVu", + "ZXJneV9saW1pdBgEIAIoBRIVCg1lbmVyZ3lfcmVzdW1lGAUgAigFIj8KEUl0", + "ZW1EZXNpZ25EcmF3aW5nEgoKAmlkGAEgAigFEh4KEmxlYXJuX2NvbXBvbmVu", + "dF9pZBgCIAMoBUICEAEiNAoJSXRlbUR5bW15EgoKAmlkGAEgAigFEhsKBGNv", + "c3QYAiACKAsyDS5jZmcuQ29zdENvc3Qi8gEKCENvc3RDb3N0Ei0KDENvc3RD", + "dXJyZW5jeRgBIAEoCzIVLmNmZy5Db3N0Q29zdEN1cnJlbmN5SAASMQoOQ29z", + "dEN1cnJlbmNpZXMYAiABKAsyFy5jZmcuQ29zdENvc3RDdXJyZW5jaWVzSAAS", + "KwoLQ29zdE9uZUl0ZW0YAyABKAsyFC5jZmcuQ29zdENvc3RPbmVJdGVtSAAS", + "JQoIQ29zdEl0ZW0YBCABKAsyES5jZmcuQ29zdENvc3RJdGVtSAASJwoJQ29z", + "dEl0ZW1zGAUgASgLMhIuY2ZnLkNvc3RDb3N0SXRlbXNIAEIHCgV2YWx1ZSJF", + "ChBDb3N0Q29zdEN1cnJlbmN5EiQKBHR5cGUYASACKA4yFi5jZmcuSXRlbUVD", + "dXJyZW5jeVR5cGUSCwoDbnVtGAIgAigFIkMKEkNvc3RDb3N0Q3VycmVuY2ll", + "cxItCgpjdXJyZW5jaWVzGAEgAygLMhUuY2ZnLkNvc3RDb3N0Q3VycmVuY3lC", + "AhAAIiIKD0Nvc3RDb3N0T25lSXRlbRIPCgdpdGVtX2lkGAEgAigFIi8KDENv", + "c3RDb3N0SXRlbRIPCgdpdGVtX2lkGAEgAigFEg4KBmFtb3VudBgCIAIoBSI5", + "Cg1Db3N0Q29zdEl0ZW1zEigKCWl0ZW1fbGlzdBgBIAMoCzIRLmNmZy5Db3N0", + "Q29zdEl0ZW1CAhAAIigKDEwxMG5MMTBORGVtbxIKCgJpZBgBIAIoBRIMCgR0", + "ZXh0GAIgAigJIioKDUwxMG5QYXRjaERlbW8SCgoCaWQYASACKAUSDQoFdmFs", + "dWUYAiACKAUiXwoOTWFpbFN5c3RlbU1haWwSCgoCaWQYASACKAUSDQoFdGl0", + "bGUYAiACKAkSDgoGc2VuZGVyGAMgAigJEg8KB2NvbnRlbnQYBCACKAkSEQoF", + "YXdhcmQYBSADKAVCAhABIr0CCg5NYWlsR2xvYmFsTWFpbBIKCgJpZBgBIAIo", + "BRINCgV0aXRsZRgCIAIoCRIOCgZzZW5kZXIYAyACKAkSDwoHY29udGVudBgE", + "IAIoCRIRCgVhd2FyZBgFIAMoBUICEAESEgoKYWxsX3NlcnZlchgGIAIoCBIX", + "CgtzZXJ2ZXJfbGlzdBgHIAMoBUICEAESEAoIcGxhdGZvcm0YCCACKAkSDwoH", + "Y2hhbm5lbBgJIAIoCRIwCg1taW5fbWF4X2xldmVsGAogAigLMhkuY2ZnLkNv", + "bmRpdGlvbk1pbk1heExldmVsEi4KDXJlZ2lzdGVyX3RpbWUYCyACKAsyFy5j", + "ZmcuQ29uZGl0aW9uVGltZVJhbmdlEioKCW1haWxfdGltZRgMIAIoCzIXLmNm", + "Zy5Db25kaXRpb25UaW1lUmFuZ2UiTgoQUm9sZUxldmVsRXhwQXR0chINCgVs", + "ZXZlbBgBIAIoBRIQCghuZWVkX2V4cBgCIAIoAxIZCg1jbG90aGVzX2F0dHJz", + "GAMgAygFQgIQASJbCg5Sb2xlTGV2ZWxCb251cxIKCgJpZBgBIAIoBRI9ChRk", + "aXN0aW5jdF9ib251c19pbmZvcxgCIAMoCzIbLmNmZy5Sb2xlRGlzdGluY3RC", + "b251c0luZm9zQgIQACJdChZSb2xlRGlzdGluY3RCb251c0luZm9zEhcKD2Vm", + "ZmVjdGl2ZV9sZXZlbBgBIAIoBRIqCgpib251c19pbmZvGAIgAygLMhIuY2Zn", + "LlJvbGVCb251c0luZm9CAhAAIkoKDVJvbGVCb251c0luZm8SJAoEdHlwZRgB", + "IAIoDjIWLmNmZy5JdGVtRUN1cnJlbmN5VHlwZRITCgtjb2VmZmljaWVudBgC", + "IAIoAiInCgpUYWdUZXN0VGFnEgoKAmlkGAEgAigFEg0KBXZhbHVlGAIgAigJ", + "IqsECg1UZXN0RGVtb1R5cGUyEgoKAng0GAEgAigFEgoKAngxGAIgAigIEgoK", + "AngyGAMgAigFEgoKAngzGAQgAigFEgoKAng1GAUgAigDEgoKAng2GAYgAigC", + "EgoKAng3GAcgAigBEgwKBHg4XzAYCCACKAUSCgoCeDgYCSACKA8SCgoCeDkY", + "CiACKBASCwoDeDEwGAsgAigJEh8KA3gxMhgMIAIoCzISLmNmZy5UZXN0RGVt", + "b1R5cGUxEh4KA3gxMxgNIAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0", + "GA4gAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgPIAIoCRIYCgJ2", + "MhgQIAIoCzIMLmNmZy5WZWN0b3IyEhgKAnYzGBEgAigLMgwuY2ZnLlZlY3Rv", + "cjMSGAoCdjQYEiACKAsyDC5jZmcuVmVjdG9yNBIKCgJ0MRgTIAIoBRIOCgJr", + "MRgUIAMoBUICEAESDgoCazIYFSADKAVCAhABEg4KAms1GBYgAygFQgIQARIm", + "CgJrOBgXIAMoCzIaLmNmZy5UZXN0RGVtb1R5cGUyLks4RW50cnkSHwoCazkY", + "GCADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASJQoDazE1GBkgAygLMhQuY2Zn", + "LlRlc3REZW1vRHluYW1pY0ICEAAaKQoHSzhFbnRyeRILCgNrZXkYASABKAUS", + "DQoFdmFsdWUYAiABKAU6AjgBIhsKDVRlc3REZW1vVHlwZTESCgoCeDEYASAC", + "KAUigwEKD1Rlc3REZW1vRHluYW1pYxIhCgZEZW1vRDIYASABKAsyDy5jZmcu", + "VGVzdERlbW9EMkgAEiEKBkRlbW9FMRgCIAEoCzIPLmNmZy5UZXN0RGVtb0Ux", + "SAASIQoGRGVtb0Q1GAMgASgLMg8uY2ZnLlRlc3REZW1vRDVIAEIHCgV2YWx1", + "ZSIkCgpUZXN0RGVtb0QyEgoKAngxGAEgAigFEgoKAngyGAIgAigFIjgKClRl", + "c3REZW1vRDMSIQoGRGVtb0UxGAIgASgLMg8uY2ZnLlRlc3REZW1vRTFIAEIH", + "CgV2YWx1ZSIwCgpUZXN0RGVtb0UxEgoKAngxGAEgAigFEgoKAngzGAIgAigF", + "EgoKAng0GAMgAigFIj4KClRlc3REZW1vRDUSCgoCeDEYASACKAUSJAoEdGlt", + "ZRgCIAIoCzIWLmNmZy5UZXN0RGF0ZVRpbWVSYW5nZSI5ChFUZXN0RGF0ZVRp", + "bWVSYW5nZRISCgpzdGFydF90aW1lGAEgAigFEhAKCGVuZF90aW1lGAIgAigF", + "IiQKClRlc3REZW1vRTISCgoCeTEYASABKAUSCgoCeTIYAiACKAgiVQoVVGVz", + "dERlbW9TaW5nbGV0b25UeXBlEgoKAmlkGAEgAigFEgwKBG5hbWUYAiACKAkS", + "IgoEZGF0ZRgDIAIoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWMiKAoQVGVzdE5v", + "dEluZGV4TGlzdBIJCgF4GAEgAigFEgkKAXkYAiACKAUiWwoXVGVzdE11bHRp", + "VW5pb25JbmRleExpc3QSCwoDaWQxGAEgAigFEgsKA2lkMhgCIAIoAxILCgNp", + "ZDMYAyACKAkSCwoDbnVtGAQgAigFEgwKBGRlc2MYBSACKAkiVgoSVGVzdE11", + "bHRpSW5kZXhMaXN0EgsKA2lkMRgBIAIoBRILCgNpZDIYAiACKAMSCwoDaWQz", + "GAMgAigJEgsKA251bRgEIAIoBRIMCgRkZXNjGAUgAigJIvIEChJUZXN0TXVs", + "dGlSb3dSZWNvcmQSCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIsCghvbmVf", + "cm93cxgDIAMoCzIWLmNmZy5UZXN0TXVsdGlSb3dUeXBlMUICEAASLwoLbXVs", + "dGlfcm93czEYBCADKAsyFi5jZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAEi8K", + "C211bHRpX3Jvd3MyGAUgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUxQgIQ", + "ABI8CgttdWx0aV9yb3dzNBgGIAMoCzInLmNmZy5UZXN0TXVsdGlSb3dSZWNv", + "cmQuTXVsdGlSb3dzNEVudHJ5Ei8KC211bHRpX3Jvd3M1GAcgAygLMhYuY2Zn", + "LlRlc3RNdWx0aVJvd1R5cGUzQgIQABI8CgttdWx0aV9yb3dzNhgIIAMoCzIn", + "LmNmZy5UZXN0TXVsdGlSb3dSZWNvcmQuTXVsdGlSb3dzNkVudHJ5EjwKC211", + "bHRpX3Jvd3M3GAkgAygLMicuY2ZnLlRlc3RNdWx0aVJvd1JlY29yZC5NdWx0", + "aVJvd3M3RW50cnkaSQoPTXVsdGlSb3dzNEVudHJ5EgsKA2tleRgBIAEoBRIl", + "CgV2YWx1ZRgCIAEoCzIWLmNmZy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaSQoP", + "TXVsdGlSb3dzNkVudHJ5EgsKA2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIW", + "LmNmZy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaMQoPTXVsdGlSb3dzN0VudHJ5", + "EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEiKgoRVGVzdE11bHRp", + "Um93VHlwZTESCgoCaWQYASACKAUSCQoBeBgCIAIoBSI1ChFUZXN0TXVsdGlS", + "b3dUeXBlMhIKCgJpZBgBIAIoBRIJCgF4GAIgAigFEgkKAXkYAyACKAIiSgoR", + "VGVzdE11bHRpUm93VHlwZTMSCgoCaWQYASACKAUSKQoFaXRlbXMYAiADKAsy", + "Fi5jZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAIrgBChFUZXN0TXVsdGlSb3dU", + "aXRsZRIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJEhcKAngxGAMgAigLMgsu", + "Y2ZnLlRlc3RIMRIZCgR4Ml8wGAQgASgLMgsuY2ZnLlRlc3RIMhIbCgJ4MhgF", + "IAMoCzILLmNmZy5UZXN0SDJCAhAAEhsKAngzGAYgAygLMgsuY2ZnLlRlc3RI", + "MkICEAASGwoCeDQYByADKAsyCy5jZmcuVGVzdEgyQgIQACItCgZUZXN0SDES", + "FwoCeTIYASACKAsyCy5jZmcuVGVzdEgyEgoKAnkzGAIgAigFIiAKBlRlc3RI", + "MhIKCgJ6MhgBIAIoBRIKCgJ6MxgCIAIoBSKfAQoMVGVzdFRlc3ROdWxsEgoK", + "AmlkGAEgAigFEgoKAngxGAIgASgFEh0KAngyGAMgASgOMhEuY2ZnLlRlc3RE", + "ZW1vRW51bRIeCgJ4MxgEIAEoCzISLmNmZy5UZXN0RGVtb1R5cGUxEiAKAng0", + "GAUgASgLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgGIAEoCRIKCgJz", + "MhgHIAEoCSLjAQobVGVzdERlbW9QcmltaXRpdmVUeXBlc1RhYmxlEgoKAngx", + "GAEgAigIEgoKAngyGAIgAigFEgoKAngzGAMgAigFEgoKAng0GAQgAigFEgoK", + "Ang1GAUgAigDEgoKAng2GAYgAigCEgoKAng3GAcgAigBEgoKAnMxGAggAigJ", + "EgoKAnMyGAkgAigJEhgKAnYyGAogAigLMgwuY2ZnLlZlY3RvcjISGAoCdjMY", + "CyACKAsyDC5jZmcuVmVjdG9yMxIYCgJ2NBgMIAIoCzIMLmNmZy5WZWN0b3I0", + "EgoKAnQxGA0gAigFInIKDlRlc3RUZXN0U3RyaW5nEgoKAmlkGAEgAigFEgoK", + "AnMxGAIgAigJEiMKA2NzMRgDIAIoCzIWLmNmZy5UZXN0Q29tcGFjdFN0cmlu", + "ZxIjCgNjczIYBCACKAsyFi5jZmcuVGVzdENvbXBhY3RTdHJpbmciNwoRVGVz", + "dENvbXBhY3RTdHJpbmcSCgoCaWQYASACKAUSCgoCczIYAiACKAkSCgoCczMY", + "AyACKAkibAoNVGVzdERlbW9Hcm91cBIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIo", + "BRIKCgJ4MhgDIAIoBRIKCgJ4MxgEIAIoBRIKCgJ4NBgFIAIoBRIfCgJ4NRgG", + "IAIoCzITLmNmZy5UZXN0SW5uZXJHcm91cCJACg5UZXN0SW5uZXJHcm91cBIK", + "CgJ5MRgBIAIoBRIKCgJ5MhgCIAIoBRIKCgJ5MxgDIAIoBRIKCgJ5NBgEIAIo", + "BSI7Cg5UZXN0VGVzdEdsb2JhbBIUCgx1bmxvY2tfZXF1aXAYASACKAUSEwoL", + "dW5sb2NrX2hlcm8YAiACKAUiKgoNVGVzdFRlc3RCZVJlZhIKCgJpZBgBIAIo", + "BRINCgVjb3VudBgCIAIoBSKVAwoLVGVzdFRlc3RSZWYSCgoCaWQYASACKAUS", + "CgoCeDEYAiACKAUSDAoEeDFfMhgDIAIoBRIKCgJ4MhgEIAIoBRIKCgJ4MxgF", + "IAIoBRIOCgJhMRgGIAMoBUICEAESDgoCYTIYByADKAVCAhABEg4KAmIxGAgg", + "AygFQgIQARIOCgJiMhgJIAMoBUICEAESDgoCYzEYCiADKAVCAhABEg4KAmMy", + "GAsgAygFQgIQARIkCgJkMRgMIAMoCzIYLmNmZy5UZXN0VGVzdFJlZi5EMUVu", + "dHJ5EiQKAmQyGA0gAygLMhguY2ZnLlRlc3RUZXN0UmVmLkQyRW50cnkSCgoC", + "ZTEYDiACKAUSCgoCZTIYDyACKAMSCgoCZTMYECACKAkSCgoCZjEYESACKAUS", + "CgoCZjIYEiACKAMSCgoCZjMYEyACKAkaKQoHRDFFbnRyeRILCgNrZXkYASAB", + "KAUSDQoFdmFsdWUYAiABKAU6AjgBGikKB0QyRW50cnkSCwoDa2V5GAEgASgF", + "Eg0KBXZhbHVlGAIgASgFOgI4ASKcAQoMVGVzdFRlc3RTaXplEgoKAmlkGAEg", + "AigFEg4KAngxGAIgAygFQgIQARIOCgJ4MhgDIAMoBUICEAESDgoCeDMYBCAD", + "KAVCAhABEiUKAng0GAUgAygLMhkuY2ZnLlRlc3RUZXN0U2l6ZS5YNEVudHJ5", + "GikKB1g0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASJs", + "CgtUZXN0VGVzdFNldBIKCgJpZBgBIAIoBRIOCgJ4MRgCIAMoBUICEAESDgoC", + "eDIYAyADKANCAhABEg4KAngzGAQgAygJQgIQABIhCgJ4NBgFIAMoDjIRLmNm", + "Zy5UZXN0RGVtb0VudW1CAhAAIi4KElRlc3REZXRlY3RFbmNvZGluZxIKCgJp", + "ZBgBIAIoBRIMCgRuYW1lGAIgAigJItUCChNUZXN0RGVmaW5lRnJvbUV4Y2Vs", + "EgoKAmlkGAEgAigFEgoKAngxGAIgAigIEgoKAng1GAMgAigDEgoKAng2GAQg", + "AigCEgoKAng4GAUgAigFEgsKA3gxMBgGIAIoCRIiCgN4MTMYByACKA4yFS5j", + "ZmcuVGVzdEVUZXN0UXVhbGl0eRIhCgN4MTQYCCACKAsyFC5jZmcuVGVzdERl", + "bW9EeW5hbWljEhgKAnYyGAkgAigLMgwuY2ZnLlZlY3RvcjISCgoCdDEYCiAC", + "KAUSDgoCazEYCyADKAVCAhABEiwKAms4GAwgAygLMiAuY2ZnLlRlc3REZWZp", + "bmVGcm9tRXhjZWwuSzhFbnRyeRIfCgJrORgNIAMoCzIPLmNmZy5UZXN0RGVt", + "b0UyQgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo", + "BToCOAEicQoWVGVzdERlZmluZUZyb21FeGNlbE9uZRIUCgx1bmxvY2tfZXF1", + "aXAYASACKAUSEwoLdW5sb2NrX2hlcm8YAiACKAUSFgoOZGVmYXVsdF9hdmF0", + "YXIYAyACKAkSFAoMZGVmYXVsdF9pdGVtGAQgAigJIkEKDVRlc3RUZXN0SW5k", + "ZXgSCgoCaWQYASACKAUSJAoEZWxlcxgCIAMoCzISLmNmZy5UZXN0RGVtb1R5", + "cGUxQgIQACLdAgoLVGVzdFRlc3RNYXASCgoCaWQYASACKAUSJAoCeDEYAiAD", + "KAsyGC5jZmcuVGVzdFRlc3RNYXAuWDFFbnRyeRIkCgJ4MhgDIAMoCzIYLmNm", + "Zy5UZXN0VGVzdE1hcC5YMkVudHJ5EiQKAngzGAQgAygLMhguY2ZnLlRlc3RU", + "ZXN0TWFwLlgzRW50cnkSJAoCeDQYBSADKAsyGC5jZmcuVGVzdFRlc3RNYXAu", + "WDRFbnRyeRopCgdYMUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo", + "BToCOAEaKQoHWDJFbnRyeRILCgNrZXkYASABKAMSDQoFdmFsdWUYAiABKAU6", + "AjgBGikKB1gzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4", + "ARopCgdYNEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEi", + "yAMKEVRlc3RFeGNlbEZyb21Kc29uEgoKAng0GAEgAigFEgoKAngxGAIgAigI", + "EgoKAng1GAMgAigDEgoKAng2GAQgAigCEgoKAnMxGAUgAigJEgoKAnMyGAYg", + "AigJEhgKAnYyGAcgAigLMgwuY2ZnLlZlY3RvcjISGAoCdjMYCCACKAsyDC5j", + "ZmcuVmVjdG9yMxIYCgJ2NBgJIAIoCzIMLmNmZy5WZWN0b3I0EgoKAnQxGAog", + "AigFEh8KA3gxMhgLIAIoCzISLmNmZy5UZXN0RGVtb1R5cGUxEh4KA3gxMxgM", + "IAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0GA0gAigLMhQuY2ZnLlRl", + "c3REZW1vRHluYW1pYxIOCgJrMRgOIAMoBUICEAESKgoCazgYDyADKAsyHi5j", + "ZmcuVGVzdEV4Y2VsRnJvbUpzb24uSzhFbnRyeRIfCgJrORgQIAMoCzIPLmNm", + "Zy5UZXN0RGVtb0UyQgIQABIlCgNrMTUYESADKAsyFC5jZmcuVGVzdERlbW9E", + "eW5hbWljQgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgC", + "IAEoBToCOAEiMAoXVGVzdENvbXBvc2l0ZUpzb25UYWJsZTESCgoCaWQYASAC", + "KAUSCQoBeBgCIAIoCSIwChdUZXN0Q29tcG9zaXRlSnNvblRhYmxlMhIKCgJp", + "ZBgBIAIoBRIJCgF5GAIgAigFIi8KF1Rlc3RDb21wb3NpdGVKc29uVGFibGUz", + "EgkKAWEYASACKAUSCQoBYhgCIAIoBSJXChlUZXN0RXhjZWxGcm9tSnNvbk11", + "bHRpUm93EgoKAmlkGAEgAigFEgkKAXgYAiACKAUSIwoFaXRlbXMYAyADKAsy", + "EC5jZmcuVGVzdFRlc3RSb3dCAhAAIlgKC1Rlc3RUZXN0Um93EgkKAXgYASAC", + "KAUSCQoBeRgCIAIoCBIJCgF6GAMgAigJEhkKAWEYBCACKAsyDi5jZmcuVGVz", + "dFRlc3QzEg0KAWIYBSADKAVCAhABIiEKCVRlc3RUZXN0MxIJCgF4GAEgAigF", + "EgkKAXkYAiACKAUizgEKC1Rlc3RUZXN0U2VwEgoKAmlkGAEgAigFEgoKAngx", + "GAIgAigJEh0KAngyGAMgAigLMhEuY2ZnLlRlc3RTZXBCZWFuMRIeCgJ4MxgE", + "IAIoCzISLmNmZy5UZXN0U2VwVmVjdG9yEiIKAng0GAUgAygLMhIuY2ZnLlRl", + "c3RTZXBWZWN0b3JCAhAAEiEKAng1GAYgAygLMhEuY2ZnLlRlc3RTZXBCZWFu", + "MUICEAASIQoCeDYYByADKAsyES5jZmcuVGVzdFNlcEJlYW4xQgIQACIvCgxU", + "ZXN0U2VwQmVhbjESCQoBYRgBIAIoBRIJCgFiGAIgAigFEgkKAWMYAyACKAki", + "MAoNVGVzdFNlcFZlY3RvchIJCgF4GAEgAigFEgkKAXkYAiACKAUSCQoBehgD", + "IAIoBSJpChRUZXN0VGVzdEV4dGVybmFsVHlwZRIKCgJpZBgBIAIoBRImCgph", + "dWRpb190eXBlGAIgAigOMhIuY2ZnLlRlc3RBdWRpb1R5cGUSHQoFY29sb3IY", + "AyACKAsyDi5jZmcuVGVzdENvbG9yIjcKCVRlc3RDb2xvchIJCgFyGAEgAigC", + "EgkKAWcYAiACKAISCQoBYhgDIAIoAhIJCgFhGAQgAigCItcCChRUZXN0RGVm", + "aW5lRnJvbUV4Y2VsMhIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIoCBIKCgJ4NRgD", + "IAIoAxIKCgJ4NhgEIAIoAhIKCgJ4OBgFIAIoBRILCgN4MTAYBiACKAkSIgoD", + "eDEzGAcgAigOMhUuY2ZnLlRlc3RFVGVzdFF1YWxpdHkSIQoDeDE0GAggAigL", + "MhQuY2ZnLlRlc3REZW1vRHluYW1pYxIYCgJ2MhgJIAIoCzIMLmNmZy5WZWN0", + "b3IyEgoKAnQxGAogAigFEg4KAmsxGAsgAygFQgIQARItCgJrOBgMIAMoCzIh", + "LmNmZy5UZXN0RGVmaW5lRnJvbUV4Y2VsMi5LOEVudHJ5Eh8KAms5GA0gAygL", + "Mg8uY2ZnLlRlc3REZW1vRTJCAhAAGikKB0s4RW50cnkSCwoDa2V5GAEgASgF", + "Eg0KBXZhbHVlGAIgASgFOgI4ASJEChJUZXN0VGVzdEV4Y2VsQmVhbjESCgoC", + "eDEYASACKAUSCgoCeDIYAiACKAkSCgoCeDMYAyACKAUSCgoCeDQYBCACKAIi", + "kwEKDFRlc3RUZXN0RGVzYxIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJEgoK", + "AmExGAMgAigFEgoKAmEyGAQgAigFEhcKAngxGAUgAigLMgsuY2ZnLlRlc3RI", + "MRIbCgJ4MhgGIAMoCzILLmNmZy5UZXN0SDJCAhAAEhsKAngzGAcgAygLMgsu", + "Y2ZnLlRlc3RIMkICEAAiOgoOQWlUYkJsYWNrYm9hcmQSKAoJZGF0YV9saXN0", + "GAEgAygLMhEuY2ZnLkFpQmxhY2tib2FyZEICEAAiPgoQQWlUYkJlaGF2aW9y", + "VHJlZRIqCglkYXRhX2xpc3QYASADKAsyEy5jZmcuQWlCZWhhdmlvclRyZWVC", + "AhAAIj4KEEJsdWVwcmludFRiQ2xhenoSKgoJZGF0YV9saXN0GAEgAygLMhMu", + "Y2ZnLkJsdWVwcmludENsYXp6QgIQACI4CgtCb251c1RiRHJvcBIpCglkYXRh", + "X2xpc3QYASADKAsyEi5jZmcuQm9udXNEcm9wSW5mb0ICEAAiRgoUQ29tbW9u", + "VGJHbG9iYWxDb25maWcSLgoJZGF0YV9saXN0GAEgAygLMhcuY2ZnLkNvbW1v", + "bkdsb2JhbENvbmZpZ0ICEAAiPgoQRXJyb3JUYkVycm9ySW5mbxIqCglkYXRh", + "X2xpc3QYASADKAsyEy5jZmcuRXJyb3JFcnJvckluZm9CAhAAIjwKD0Vycm9y", + "VGJDb2RlSW5mbxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuRXJyb3JDb2Rl", + "SW5mb0ICEAAiMgoKSXRlbVRiSXRlbRIkCglkYXRhX2xpc3QYASADKAsyDS5j", + "ZmcuSXRlbUl0ZW1CAhAAIj4KDkl0ZW1UYkl0ZW1GdW5jEiwKCWRhdGFfbGlz", + "dBgBIAMoCzIVLmNmZy5JdGVtSXRlbUZ1bmN0aW9uQgIQACI8Cg9JdGVtVGJJ", + "dGVtRXh0cmESKQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLkl0ZW1JdGVtRXh0", + "cmFCAhAAIjoKDkwxMG5UYkwxME5EZW1vEigKCWRhdGFfbGlzdBgBIAMoCzIR", + "LmNmZy5MMTBuTDEwTkRlbW9CAhAAIjwKD0wxMG5UYlBhdGNoRGVtbxIpCglk", + "YXRhX2xpc3QYASADKAsyEi5jZmcuTDEwblBhdGNoRGVtb0ICEAAiPgoQTWFp", + "bFRiU3lzdGVtTWFpbBIqCglkYXRhX2xpc3QYASADKAsyEy5jZmcuTWFpbFN5", + "c3RlbU1haWxCAhAAIj4KEE1haWxUYkdsb2JhbE1haWwSKgoJZGF0YV9saXN0", + "GAEgAygLMhMuY2ZnLk1haWxHbG9iYWxNYWlsQgIQACJGChZSb2xlVGJSb2xl", + "TGV2ZWxFeHBBdHRyEiwKCWRhdGFfbGlzdBgBIAMoCzIVLmNmZy5Sb2xlTGV2", + "ZWxFeHBBdHRyQgIQACJNCh9Sb2xlVGJSb2xlTGV2ZWxCb251c0NvZWZmaWNp", + "ZW50EioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5Sb2xlTGV2ZWxCb251c0IC", + "EAAiNgoMVGFnVGJUZXN0VGFnEiYKCWRhdGFfbGlzdBgBIAMoCzIPLmNmZy5U", + "YWdUZXN0VGFnQgIQACI8Cg9UZXN0VGJGdWxsVHlwZXMSKQoJZGF0YV9saXN0", + "GAEgAygLMhIuY2ZnLlRlc3REZW1vVHlwZTJCAhAAIkQKD1Rlc3RUYlNpbmds", + "ZXRvbhIxCglkYXRhX2xpc3QYASADKAsyGi5jZmcuVGVzdERlbW9TaW5nbGV0", + "b25UeXBlQgIQACJCChJUZXN0VGJOb3RJbmRleExpc3QSLAoJZGF0YV9saXN0", + "GAEgAygLMhUuY2ZnLlRlc3ROb3RJbmRleExpc3RCAhAAIlAKGVRlc3RUYk11", + "bHRpVW5pb25JbmRleExpc3QSMwoJZGF0YV9saXN0GAEgAygLMhwuY2ZnLlRl", + "c3RNdWx0aVVuaW9uSW5kZXhMaXN0QgIQACJGChRUZXN0VGJNdWx0aUluZGV4", + "TGlzdBIuCglkYXRhX2xpc3QYASADKAsyFy5jZmcuVGVzdE11bHRpSW5kZXhM", + "aXN0QgIQACI/ChJUZXN0VGJEYXRhRnJvbU1pc2MSKQoJZGF0YV9saXN0GAEg", + "AygLMhIuY2ZnLlRlc3REZW1vVHlwZTJCAhAAIkYKFFRlc3RUYk11bHRpUm93", + "UmVjb3JkEi4KCWRhdGFfbGlzdBgBIAMoCzIXLmNmZy5UZXN0TXVsdGlSb3dS", + "ZWNvcmRCAhAAIkQKE1Rlc3RUYk11bHRpUm93VGl0bGUSLQoJZGF0YV9saXN0", + "GAEgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1RpdGxlQgIQACI6Cg5UZXN0VGJU", + "ZXN0TnVsbBIoCglkYXRhX2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3ROdWxs", + "QgIQACJOChNUZXN0VGJEZW1vUHJpbWl0aXZlEjcKCWRhdGFfbGlzdBgBIAMo", + "CzIgLmNmZy5UZXN0RGVtb1ByaW1pdGl2ZVR5cGVzVGFibGVCAhAAIj4KEFRl", + "c3RUYlRlc3RTdHJpbmcSKgoJZGF0YV9saXN0GAEgAygLMhMuY2ZnLlRlc3RU", + "ZXN0U3RyaW5nQgIQACI8Cg9UZXN0VGJEZW1vR3JvdXASKQoJZGF0YV9saXN0", + "GAEgAygLMhIuY2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4KEVRlc3RUYkRlbW9H", + "cm91cF9DEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0RGVtb0dyb3Vw", + "QgIQACI+ChFUZXN0VGJEZW1vR3JvdXBfUxIpCglkYXRhX2xpc3QYASADKAsy", + "Ei5jZmcuVGVzdERlbW9Hcm91cEICEAAiPgoRVGVzdFRiRGVtb0dyb3VwX0US", + "KQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4K", + "EFRlc3RUYlRlc3RHbG9iYWwSKgoJZGF0YV9saXN0GAEgAygLMhMuY2ZnLlRl", + "c3RUZXN0R2xvYmFsQgIQACI8Cg9UZXN0VGJUZXN0QmVSZWYSKQoJZGF0YV9s", + "aXN0GAEgAygLMhIuY2ZnLlRlc3RUZXN0QmVSZWZCAhAAIj0KEFRlc3RUYlRl", + "c3RCZVJlZjISKQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLlRlc3RUZXN0QmVS", + "ZWZCAhAAIjgKDVRlc3RUYlRlc3RSZWYSJwoJZGF0YV9saXN0GAEgAygLMhAu", + "Y2ZnLlRlc3RUZXN0UmVmQgIQACI6Cg5UZXN0VGJUZXN0U2l6ZRIoCglkYXRh", + "X2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3RTaXplQgIQACI4Cg1UZXN0VGJU", + "ZXN0U2V0EicKCWRhdGFfbGlzdBgBIAMoCzIQLmNmZy5UZXN0VGVzdFNldEIC", + "EAAiSQoXVGVzdFRiRGV0ZWN0Q3N2RW5jb2RpbmcSLgoJZGF0YV9saXN0GAEg", + "AygLMhcuY2ZnLlRlc3REZXRlY3RFbmNvZGluZ0ICEAAiSAoVVGVzdFRiRGVm", + "aW5lRnJvbUV4Y2VsEi8KCWRhdGFfbGlzdBgBIAMoCzIYLmNmZy5UZXN0RGVm", + "aW5lRnJvbUV4Y2VsQgIQACJOChhUZXN0VGJEZWZpbmVGcm9tRXhjZWxPbmUS", + "MgoJZGF0YV9saXN0GAEgAygLMhsuY2ZnLlRlc3REZWZpbmVGcm9tRXhjZWxP", + "bmVCAhAAIjwKD1Rlc3RUYlRlc3RJbmRleBIpCglkYXRhX2xpc3QYASADKAsy", + "Ei5jZmcuVGVzdFRlc3RJbmRleEICEAAiOAoNVGVzdFRiVGVzdE1hcBInCglk", + "YXRhX2xpc3QYASADKAsyEC5jZmcuVGVzdFRlc3RNYXBCAhAAIkQKE1Rlc3RU", + "YkV4Y2VsRnJvbUpzb24SLQoJZGF0YV9saXN0GAEgAygLMhYuY2ZnLlRlc3RF", + "eGNlbEZyb21Kc29uQgIQACJQChlUZXN0VGJDb21wb3NpdGVKc29uVGFibGUx", + "EjMKCWRhdGFfbGlzdBgBIAMoCzIcLmNmZy5UZXN0Q29tcG9zaXRlSnNvblRh", + "YmxlMUICEAAiUAoZVGVzdFRiQ29tcG9zaXRlSnNvblRhYmxlMhIzCglkYXRh", + "X2xpc3QYASADKAsyHC5jZmcuVGVzdENvbXBvc2l0ZUpzb25UYWJsZTJCAhAA", + "IlAKGVRlc3RUYkNvbXBvc2l0ZUpzb25UYWJsZTMSMwoJZGF0YV9saXN0GAEg", + "AygLMhwuY2ZnLlRlc3RDb21wb3NpdGVKc29uVGFibGUzQgIQACJUChtUZXN0", + "VGJFeGNlbEZyb21Kc29uTXVsdGlSb3cSNQoJZGF0YV9saXN0GAEgAygLMh4u", + "Y2ZnLlRlc3RFeGNlbEZyb21Kc29uTXVsdGlSb3dCAhAAIjgKDVRlc3RUYlRl", + "c3RTZXASJwoJZGF0YV9saXN0GAEgAygLMhAuY2ZnLlRlc3RUZXN0U2VwQgIQ", + "ACJKChZUZXN0VGJUZXN0RXh0ZXJuYWxUeXBlEjAKCWRhdGFfbGlzdBgBIAMo", + "CzIZLmNmZy5UZXN0VGVzdEV4dGVybmFsVHlwZUICEAAiSwoeVGVzdFRiRGVt", + "b0dyb3VwRGVmaW5lRnJvbUV4Y2VsEikKCWRhdGFfbGlzdBgBIAMoCzISLmNm", + "Zy5UZXN0RGVtb0dyb3VwQgIQACJKChZUZXN0VGJEZWZpbmVGcm9tRXhjZWwy", + "EjAKCWRhdGFfbGlzdBgBIAMoCzIZLmNmZy5UZXN0RGVmaW5lRnJvbUV4Y2Vs", + "MkICEAAiRQoTVGVzdFRiVGVzdEV4Y2VsQmVhbhIuCglkYXRhX2xpc3QYASAD", + "KAsyFy5jZmcuVGVzdFRlc3RFeGNlbEJlYW4xQgIQACI6Cg5UZXN0VGJUZXN0", + "RGVzYxIoCglkYXRhX2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3REZXNjQgIQ", + "ACo9CgtBaUVFeGVjdXRvchIWChJBaUVFeGVjdXRvcl9DTElFTlQQABIWChJB", + "aUVFeGVjdXRvcl9TRVJWRVIQASroAQoKQWlFS2V5VHlwZRITCg9BaUVLZXlU", + "eXBlX0JPT0wQARISCg5BaUVLZXlUeXBlX0lOVBACEhQKEEFpRUtleVR5cGVf", + "RkxPQVQQAxIVChFBaUVLZXlUeXBlX1NUUklORxAEEhUKEUFpRUtleVR5cGVf", + "VkVDVE9SEAUSFgoSQWlFS2V5VHlwZV9ST1RBVE9SEAYSEwoPQWlFS2V5VHlw", + "ZV9OQU1FEAcSFAoQQWlFS2V5VHlwZV9DTEFTUxAIEhMKD0FpRUtleVR5cGVf", + "RU5VTRAJEhUKEUFpRUtleVR5cGVfT0JKRUNUEAoqiAEKEEFpRUZsb3dBYm9y", + "dE1vZGUSGQoVQWlFRmxvd0Fib3J0TW9kZV9OT05FEAASIwofQWlFRmxvd0Fi", + "b3J0TW9kZV9MT1dFUl9QUklPUklUWRABEhkKFUFpRUZsb3dBYm9ydE1vZGVf", + "U0VMRhACEhkKFUFpRUZsb3dBYm9ydE1vZGVfQk9USBADKkcKDUFpRUZpbmlz", + "aE1vZGUSGwoXQWlFRmluaXNoTW9kZV9JTU1FRElBVEUQABIZChVBaUVGaW5p", + "c2hNb2RlX0RFTEFZRUQQASpuChVBaUVOb3RpZnlPYnNlcnZlck1vZGUSKQol", + "QWlFTm90aWZ5T2JzZXJ2ZXJNb2RlX09OX1ZBTFVFX0NIQU5HRRAAEioKJkFp", + "RU5vdGlmeU9ic2VydmVyTW9kZV9PTl9SRVNVTFRfQ0hBTkdFEAEqlQIKC0Fp", + "RU9wZXJhdG9yEhsKF0FpRU9wZXJhdG9yX0lTX0VRVUFMX1RPEAASHwobQWlF", + "T3BlcmF0b3JfSVNfTk9UX0VRVUFMX1RPEAESHAoYQWlFT3BlcmF0b3JfSVNf", + "TEVTU19USEFOEAISKAokQWlFT3BlcmF0b3JfSVNfTEVTU19USEFOX09SX0VR", + "VUFMX1RPEAMSHQoZQWlFT3BlcmF0b3JfSVNfR1JFQVRfVEhBThAEEikKJUFp", + "RU9wZXJhdG9yX0lTX0dSRUFUX1RIQU5fT1JfRVFVQUxfVE8QBRIYChRBaUVP", + "cGVyYXRvcl9DT05UQUlOUxAGEhwKGEFpRU9wZXJhdG9yX05PVF9DT05UQUlO", + "UxAHKk4KE0NvbW1vbkVCb29sT3BlcmF0b3ISGwoXQ29tbW9uRUJvb2xPcGVy", + "YXRvcl9BTkQQABIaChZDb21tb25FQm9vbE9wZXJhdG9yX09SEAEqSgoPRXJy", + "b3JFT3BlcmF0aW9uEhoKFkVycm9yRU9wZXJhdGlvbl9MT0dPVVQQABIbChdF", + "cnJvckVPcGVyYXRpb25fUkVTVEFSVBABKt8bCg9FcnJvckVFcnJvckNvZGUS", + "FgoSRXJyb3JFRXJyb3JDb2RlX09LEAASJQohRXJyb3JFRXJyb3JDb2RlX1NF", + "UlZFUl9OT1RfRVhJU1RTEAESIwofRXJyb3JFRXJyb3JDb2RlX0hBU19CSU5E", + "X1NFUlZFUhACEh0KGUVycm9yRUVycm9yQ29kZV9BVVRIX0ZBSUwQAxIjCh9F", + "cnJvckVFcnJvckNvZGVfTk9UX0JJTkRfU0VSVkVSEAQSJgoiRXJyb3JFRXJy", + "b3JDb2RlX1NFUlZFUl9BQ0NFU1NfRkFJTBAFEiEKHUVycm9yRUVycm9yQ29k", + "ZV9FWEFNUExFX0ZMQVNIEAYSIgoeRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVf", + "TVNHQk9YEAcSIgoeRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVfRExHX09LEAgS", + "KQolRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVfRExHX09LX0NBTkNFTBAJEjEK", + "LUVycm9yRUVycm9yQ29kZV9ST0xFX0NSRUFURV9OQU1FX0lOVkFMSURfQ0hB", + "UhBkEioKJkVycm9yRUVycm9yQ29kZV9ST0xFX0NSRUFURV9OQU1FX0VNUFRZ", + "EGUSNgoyRXJyb3JFRXJyb3JDb2RlX1JPTEVfQ1JFQVRFX05BTUVfRVhDRUVE", + "X01BWF9MRU5HVEgQZhIuCipFcnJvckVFcnJvckNvZGVfUk9MRV9DUkVBVEVf", + "Uk9MRV9MSVNUX0ZVTEwQZxIyCi5FcnJvckVFcnJvckNvZGVfUk9MRV9DUkVB", + "VEVfSU5WQUxJRF9QUk9GRVNTSU9OEGgSLgoqRXJyb3JFRXJyb3JDb2RlX1JP", + "TEVfQ1JFQVRFX0lOVkFMSURfR0VOREVSEGkSKgomRXJyb3JFRXJyb3JDb2Rl", + "X1JPTEVfTk9UX09XTkVEX0JZX1VTRVIQahIpCiVFcnJvckVFcnJvckNvZGVf", + "Uk9MRV9MRVZFTF9OT1RfQVJSSVZFEGsSIgodRXJyb3JFRXJyb3JDb2RlX1BB", + "UkFNX0lMTEVHQUwQyAESJwoiRXJyb3JFRXJyb3JDb2RlX1RFTVBfQkFHX05P", + "VF9FTVBUWRDJARIlCiBFcnJvckVFcnJvckNvZGVfSVRFTV9DQU5fTk9UX1VT", + "RRDKARIoCiNFcnJvckVFcnJvckNvZGVfQ1VSUkVOQ1lfTk9UX0VOT1VHSBDL", + "ARIgChtFcnJvckVFcnJvckNvZGVfQkFHX0lTX0ZVTEwQzAESJAofRXJyb3JF", + "RXJyb3JDb2RlX0lURU1fTk9UX0VOT1VHSBDNARIgChtFcnJvckVFcnJvckNv", + "ZGVfSVRFTV9JTl9CQUcQzgESJQogRXJyb3JFRXJyb3JDb2RlX0dFTkRFUl9O", + "T1RfTUFUQ0gQrAISIgodRXJyb3JFRXJyb3JDb2RlX0xFVkVMX1RPT19MT1cQ", + "rQISIwoeRXJyb3JFRXJyb3JDb2RlX0xFVkVMX1RPT19ISUdIEK4CEiEKHEVy", + "cm9yRUVycm9yQ29kZV9FWENFRURfTElNSVQQrwISHgoZRXJyb3JFRXJyb3JD", + "b2RlX09WRVJfVElNRRCwAhIhChxFcnJvckVFcnJvckNvZGVfU0VSVkVSX0VS", + "Uk9SELECEiYKIUVycm9yRUVycm9yQ29kZV9TS0lMTF9OT1RfSU5fTElTVBCQ", + "AxInCiJFcnJvckVFcnJvckNvZGVfU0tJTExfTk9UX0NPT0xET1dOEJEDEisK", + "JkVycm9yRUVycm9yQ29kZV9TS0lMTF9UQVJHRVRfTk9UX0VYSVNUEJIDEioK", + "JUVycm9yRUVycm9yQ29kZV9TS0lMTF9BTk9USEVSX0NBU1RJTkcQkwMSKgol", + "RXJyb3JFRXJyb3JDb2RlX1NLSUxMX09VVF9PRl9ESVNUQU5DRRCUAxIwCitF", + "cnJvckVFcnJvckNvZGVfU0tJTExfVEFSR0VUX0NBTVBfTk9UX01BVENIEJUD", + "EiwKJ0Vycm9yRUVycm9yQ29kZV9TS0lMTF9JTlZBTElEX0RJUkVDVElPThCW", + "AxIuCilFcnJvckVFcnJvckNvZGVfU0tJTExfTk9UX0lOX1NFTEVDVF9TSEFQ", + "RRCXAxIsCidFcnJvckVFcnJvckNvZGVfU0tJTExfRU5FUkdZX05PVF9FTk9V", + "R0gQmAMSLAonRXJyb3JFRXJyb3JDb2RlX0RJQUxPR19OT0RFX05PVF9DSE9P", + "U0VOEPQDEiYKIUVycm9yRUVycm9yQ29kZV9ESUFMT0dfTk9UX0ZJTklTSBD1", + "AxImCiFFcnJvckVFcnJvckNvZGVfRElBTE9HX0hBU19GSU5JU0gQ9gMSLQoo", + "RXJyb3JFRXJyb3JDb2RlX1FVRVNUX1NUQUdFX05PVF9GSU5JU0hFRBD3AxIk", + "Ch9FcnJvckVFcnJvckNvZGVfUVVFU1RfTk9UX0RPSU5HEPgDEioKJUVycm9y", + "RUVycm9yQ29kZV9RVUVTVF9TVEFHRV9OT1RfRE9JTkcQ+QMSJwoiRXJyb3JF", + "RXJyb3JDb2RlX1FVRVNUX0hBU19BQ0NFUFRFRBD6AxIpCiRFcnJvckVFcnJv", + "ckNvZGVfTUFQX09CSkVDVF9OT1RfRVhJU1QQ2AQSPQo4RXJyb3JFRXJyb3JD", + "b2RlX0lOVEVSQUNUSU9OX09CSkVDVF9OT1RfU1VQUE9SVF9PUEVSQVRJT04Q", + "2QQSIgodRXJyb3JFRXJyb3JDb2RlX0hBU19OT1RfRVFVSVAQ2gQSMAorRXJy", + "b3JFRXJyb3JDb2RlX0hBTkRIRUxEX0VRVUlQX0lEX05PVF9NQVRDSBDbBBIq", + "CiVFcnJvckVFcnJvckNvZGVfTk9UX0FWQUlMQUJMRV9TVUlUX0lEENwEEi0K", + "KEVycm9yRUVycm9yQ29kZV9OT19JTlRFUkFDVElPTl9DT01QT05FTlQQ3QQS", + "IwoeRXJyb3JFRXJyb3JDb2RlX0hBU19JTlRFUkFDVEVEEN4EEicKIkVycm9y", + "RUVycm9yQ29kZV9WSUFMSVRZX05PVF9FTk9VR0gQ3wQSLQooRXJyb3JFRXJy", + "b3JDb2RlX1BMQVlFUl9TRVNTSU9OX05PVF9FWElTVBDgBBI5CjRFcnJvckVF", + "cnJvckNvZGVfUExBWUVSX1NFU1NJT05fV09STERfUExBWUVSX05PVF9JTklU", + "EOEEEiIKHUVycm9yRUVycm9yQ29kZV9NQVBfTk9UX0VYSVNUEOIEEiQKH0Vy", + "cm9yRUVycm9yQ29kZV9NQUlMX1RZUEVfRVJST1IQvAUSJAofRXJyb3JFRXJy", + "b3JDb2RlX01BSUxfTk9UX0VYSVRTVBC9BRImCiFFcnJvckVFcnJvckNvZGVf", + "TUFJTF9IQVZFX0RFTEVURUQQvgUSLQooRXJyb3JFRXJyb3JDb2RlX01BSUxf", + "QVdBUkRfSEFWRV9SRUNFSVZFRBC/BRIsCidFcnJvckVFcnJvckNvZGVfTUFJ", + "TF9PUEVSQVRFX1RZUEVfRVJST1IQwAUSLAonRXJyb3JFRXJyb3JDb2RlX01B", + "SUxfQ09ORElUSU9OX05PVF9NRUVUEMEFEiUKIEVycm9yRUVycm9yQ29kZV9N", + "QUlMX1NUQVRFX0VSUk9SEMIFEiIKHUVycm9yRUVycm9yQ29kZV9NQUlMX05P", + "X0FXQVJEEMMFEiUKIEVycm9yRUVycm9yQ29kZV9NQUlMX0JPWF9JU19GVUxM", + "EMQFEi8KKkVycm9yRUVycm9yQ29kZV9QUk9QX1NDT1JFX05PVF9CSUdHRVJf", + "VEhBThCgBhIlCiBFcnJvckVFcnJvckNvZGVfTk9UX1dFQVJfQ0xPVEhFUxCh", + "BhIiCh1FcnJvckVFcnJvckNvZGVfTk9UX1dFQVJfU1VJVBCiBhIkCh9FcnJv", + "ckVFcnJvckNvZGVfU1VJVF9OT1RfVU5MT0NLEIQHEi4KKUVycm9yRUVycm9y", + "Q29kZV9TVUlUX0NPTVBPTkVOVF9OT1RfVU5MT0NLEIUHEiUKIEVycm9yRUVy", + "cm9yQ29kZV9TVUlUX1NUQVRFX0VSUk9SEIYHEi8KKkVycm9yRUVycm9yQ29k", + "ZV9TVUlUX0NPTVBPTkVOVF9TVEFURV9FUlJPUhCHBxIxCixFcnJvckVFcnJv", + "ckNvZGVfU1VJVF9DT01QT05FTlRfTk9fTkVFRF9MRUFSThCIBxImCiFFcnJv", + "ckVFcnJvckNvZGVfU1RPUkVfTk9UX0VOQUJMRUQQ6AcSJgohRXJyb3JFRXJy", + "b3JDb2RlX1NIRUxGX05PVF9FTkFCTEVEEOkHEiYKIUVycm9yRUVycm9yQ29k", + "ZV9HT09EU19OT1RfRU5BQkxFRBDqBxItCihFcnJvckVFcnJvckNvZGVfR09P", + "RFNfTk9UX0lOX0NVUl9SRUZSRVNIEOsHEhoKFUVycm9yRUVycm9yQ29kZV9S", + "RVRSWRDMCBIhChxFcnJvckVFcnJvckNvZGVfTk9UX0NPT0xET1dOEM0IEiIK", + "HUVycm9yRUVycm9yQ29kZV9TRUxGSUVfVU5MT0NLELAJEioKJUVycm9yRUVy", + "cm9yQ29kZV9TRUxGSUVfQUxSRUFEWV9VTkxPQ0sQsQkSJwoiRXJyb3JFRXJy", + "b3JDb2RlX1NFTEZJRV9MQUNLX1NUQVJUUxCyCRImCiFFcnJvckVFcnJvckNv", + "ZGVfU0VMRklFX0hBRF9SRVdBUkQQswkqnwEKEEl0ZW1FSXRlbVF1YWxpdHkS", + "GgoWSXRlbUVJdGVtUXVhbGl0eV9XSElURRAAEhoKFkl0ZW1FSXRlbVF1YWxp", + "dHlfR1JFRU4QARIZChVJdGVtRUl0ZW1RdWFsaXR5X0JMVUUQAhIbChdJdGVt", + "RUl0ZW1RdWFsaXR5X1BVUlBMRRADEhsKF0l0ZW1FSXRlbVF1YWxpdHlfR09M", + "REVOEAQqqgEKEUl0ZW1FQ3VycmVuY3lUeXBlEh0KGUl0ZW1FQ3VycmVuY3lU", + "eXBlX0RJQU1PTkQQARIaChZJdGVtRUN1cnJlbmN5VHlwZV9HT0xEEAISHAoY", + "SXRlbUVDdXJyZW5jeVR5cGVfU0lMVkVSEAMSGQoVSXRlbUVDdXJyZW5jeVR5", + "cGVfRVhQEAQSIQodSXRlbUVDdXJyZW5jeVR5cGVfUE9XRVJfUE9JTlQQBSrb", + "AgoOSXRlbUVNYWpvclR5cGUSGwoXSXRlbUVNYWpvclR5cGVfQ1VSUkVOQ1kQ", + "ARIYChRJdGVtRU1ham9yVHlwZV9DTE9USBACEhgKFEl0ZW1FTWFqb3JUeXBl", + "X1FVRVNUEAMSHgoaSXRlbUVNYWpvclR5cGVfQ09OU1VNQUJMRVMQBBIfChtJ", + "dGVtRU1ham9yVHlwZV9UUkVBU1VSRV9CT1gQBRIoCiRJdGVtRU1ham9yVHlw", + "ZV9BQ0hJRVZFTUVOVF9BTkRfVElUTEUQBhIdChlJdGVtRU1ham9yVHlwZV9I", + "RUFEX0ZSQU1FEAcSGAoUSXRlbUVNYWpvclR5cGVfVk9JQ0UQCBIZChVJdGVt", + "RU1ham9yVHlwZV9BQ1RJT04QCRIcChhJdGVtRU1ham9yVHlwZV9FWFBBTlNJ", + "T04QChIbChdJdGVtRU1ham9yVHlwZV9NQVRFUklBTBALKo8MCg5JdGVtRU1p", + "bm9yVHlwZRIaChZJdGVtRU1pbm9yVHlwZV9ESUFNT05EEGUSFwoTSXRlbUVN", + "aW5vclR5cGVfR09MRBBmEhkKFUl0ZW1FTWlub3JUeXBlX1NJTFZFUhBnEhYK", + "Ekl0ZW1FTWlub3JUeXBlX0VYUBBoEh4KGkl0ZW1FTWlub3JUeXBlX1BPV0VS", + "X1BPSU5UEGkSHgoZSXRlbUVNaW5vclR5cGVfSEFJUl9TVFlMRRDSARIYChNJ", + "dGVtRU1pbm9yVHlwZV9DT0FUENwBEiAKG0l0ZW1FTWlub3JUeXBlX1VQUEVS", + "X0pBQ0tFVBDmARIcChdJdGVtRU1pbm9yVHlwZV9UUk9VU0VSUxDxARIZChRJ", + "dGVtRU1pbm9yVHlwZV9TS0lSVBDyARIZChRJdGVtRU1pbm9yVHlwZV9TT0NL", + "UxD6ARIZChRJdGVtRU1pbm9yVHlwZV9TSE9FUxCEAhIiCh1JdGVtRU1pbm9y", + "VHlwZV9IQUlSX0FDQ0VTU09SWRCPAhIXChJJdGVtRU1pbm9yVHlwZV9IQVQQ", + "kAISGwoWSXRlbUVNaW5vclR5cGVfRUFSUklORxCRAhIcChdJdGVtRU1pbm9y", + "VHlwZV9ORUNLTEFDRRCSAhIcChdJdGVtRU1pbm9yVHlwZV9CUkFDRUxFVBCT", + "AhIeChlJdGVtRU1pbm9yVHlwZV9IQUlSX0NMQVNQEJQCEhkKFEl0ZW1FTWlu", + "b3JUeXBlX0dMT1ZFEJUCEiMKHkl0ZW1FTWlub3JUeXBlX0hBTkRIRUxEX09C", + "SkVDVBCWAhIbChZJdGVtRU1pbm9yVHlwZV9TUEVDSUFMEJcCEiEKHEl0ZW1F", + "TWlub3JUeXBlX0JBU0VfQ09TTUVUSUMQmQISJAofSXRlbUVNaW5vclR5cGVf", + "RVlFQlJPV19DT1NNRVRJQxCaAhIbChZJdGVtRU1pbm9yVHlwZV9FWUVMQVNI", + "EJsCEisKJkl0ZW1FTWlub3JUeXBlX0NPU01FVElDX0NPTlRBQ1RfTEVOU0VT", + "EJwCEiAKG0l0ZW1FTWlub3JUeXBlX0xJUF9DT1NNRVRJQxCdAhIeChlJdGVt", + "RU1pbm9yVHlwZV9TS0lOX0NPTE9SEJ4CEiMKHkl0ZW1FTWlub3JUeXBlX09O", + "RV9QSUVDRV9EUkVTUxCiAhIoCiNJdGVtRU1pbm9yVHlwZV9TV0lUQ0hfQ0xP", + "VEhFU19TQ0VORRCjAhIZChRJdGVtRU1pbm9yVHlwZV9RVUVTVBCtAhIYChNJ", + "dGVtRU1pbm9yVHlwZV9DQVNUEJEDEhkKFEl0ZW1FTWlub3JUeXBlX1NXT1JE", + "EKUDEh0KGEl0ZW1FTWlub3JUeXBlX0JPV19BUlJPVxCmAxIZChRJdGVtRU1p", + "bm9yVHlwZV9XQU5EUxCnAxIgChtJdGVtRU1pbm9yVHlwZV9TUEVDSUFMX1RP", + "T0wQqAMSGAoTSXRlbUVNaW5vclR5cGVfRk9PRBCTAxIgChtJdGVtRU1pbm9y", + "VHlwZV9UUkVBU1VSRV9CT1gQ9QMSFwoSSXRlbUVNaW5vclR5cGVfS0VZEPYD", + "Ei0KKEl0ZW1FTWlub3JUeXBlX01VTFRJX0NIT09TRV9UUkVBU1VSRV9CT1gQ", + "9wMSHwoaSXRlbUVNaW5vclR5cGVfQUNISUVWRU1FTlQQ2QQSGQoUSXRlbUVN", + "aW5vclR5cGVfVElUTEUQ2gQSIAobSXRlbUVNaW5vclR5cGVfQVZBVEFSX0ZS", + "QU1FEL0FEhkKFEl0ZW1FTWlub3JUeXBlX1ZPSUNFEKEGEh0KGEl0ZW1FTWlu", + "b3JUeXBlX0lETEVfUE9TRRCFBxIeChlJdGVtRU1pbm9yVHlwZV9QSE9UT19Q", + "T1NFEIYHEhcKEkl0ZW1FTWlub3JUeXBlX0JBRxDpBxIjCh5JdGVtRU1pbm9y", + "VHlwZV9GUklFTkRfQ0FQQUNJVFkQ6gcSKQokSXRlbUVNaW5vclR5cGVfQ09O", + "U1RSVUNUSU9OX01BVEVSSUFMEM0IEiIKHUl0ZW1FTWlub3JUeXBlX0RFU0lH", + "Tl9EUkFXSU5HEM4IKqMDChxJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBl", + "EiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfT05FEAESJAogSXRl", + "bUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9UV08QAhImCiJJdGVtRUNsb3Ro", + "ZXJzU3RhclF1YWxpdHlUeXBlX1RIUkVFEAMSJQohSXRlbUVDbG90aGVyc1N0", + "YXJRdWFsaXR5VHlwZV9GT1VSEAQSJQohSXRlbUVDbG90aGVyc1N0YXJRdWFs", + "aXR5VHlwZV9GSVZFEAUSJAogSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlw", + "ZV9TSVgQBhImCiJJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBlX1NFVkVO", + "EAcSJgoiSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9FSUdIVBAIEiUK", + "IUl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfTklORRAJEiQKIEl0ZW1F", + "Q2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfVEVOEAoqTwoQSXRlbUVDbG90aGVy", + "c1RhZxIeChpJdGVtRUNsb3RoZXJzVGFnX0ZBTkdfU0hBSRABEhsKF0l0ZW1F", + "Q2xvdGhlcnNUYWdfV1VfWkhFEAIqPgoMSXRlbUVVc2VUeXBlEhcKE0l0ZW1F", + "VXNlVHlwZV9NQU5VQUwQABIVChFJdGVtRVVzZVR5cGVfQVVUTxABKtACChhJ", + "dGVtRUNsb3RoZXNIaWRlUGFydFR5cGUSIgoeSXRlbUVDbG90aGVzSGlkZVBh", + "cnRUeXBlX0NIRVNUEAASIQodSXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0hF", + "QUQQARIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfU1BJTkVfVVBQRVIQ", + "AhIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfU1BJTkVfTE9XRVIQAxIg", + "ChxJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfSElQEAQSJgoiSXRlbUVDbG90", + "aGVzSGlkZVBhcnRUeXBlX0xFR19VUFBFUhAFEicKI0l0ZW1FQ2xvdGhlc0hp", + "ZGVQYXJ0VHlwZV9MRUdfTUlERExFEAYSJgoiSXRlbUVDbG90aGVzSGlkZVBh", + "cnRUeXBlX0xFR19MT1dFUhAHKpsDChhJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5", + "cGUSJQohSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0pJQU5fWVVFEAESIwof", + "SXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0hVQV9MSRACEiIKHkl0ZW1FQ2xv", + "dGhlc1Byb3BlcnR5VHlwZV9LRV9BSRADEiYKIkl0ZW1FQ2xvdGhlc1Byb3Bl", + "cnR5VHlwZV9DSEVOR19TSFUQBBIjCh9JdGVtRUNsb3RoZXNQcm9wZXJ0eVR5", + "cGVfSFVPX1BPEAUSIwofSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX1lPVV9Z", + "QRAGEiYKIkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9RSU5HX0NIVU4QBxIl", + "CiFJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVfWElOR19HQU4QCBInCiNJdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGVfUUlOR19MSUFORxAJEiUKIUl0ZW1FQ2xv", + "dGhlc1Byb3BlcnR5VHlwZV9CQU9fTlVBThAKKnEKFUl0ZW1FSXRlbUZ1bmN0", + "aW9uVHlwZRIqCiZJdGVtRUl0ZW1GdW5jdGlvblR5cGVfUkVQTEFDRV9IQU5E", + "SEVMRBAAEiwKKEl0ZW1FSXRlbUZ1bmN0aW9uVHlwZV9VU0VfREVTSUdOX0RS", + "QVdJTkcQASqLAQoPTGltaXRFTmFtZXNwYWNlEiUKIUxpbWl0RU5hbWVzcGFj", + "ZV9JVEVNX0RBSUxZX09CVEFJThABEiYKIkxpbWl0RU5hbWVzcGFjZV9UUkVB", + "U1VSRV9EQUlMWV9VU0UQAhIpCiVMaW1pdEVOYW1lc3BhY2VfU1RPUkVfR09P", + "RFNfTElNSVRfQlVZEAMqQwoNTWFpbEVNYWlsVHlwZRIYChRNYWlsRU1haWxU", + "eXBlX0dMT0JBTBAAEhgKFE1haWxFTWFpbFR5cGVfU1lTVEVNEAEqRwoPUm9s", + "ZUVHZW5kZXJUeXBlEhgKFFJvbGVFR2VuZGVyVHlwZV9NQUxFEAESGgoWUm9s", + "ZUVHZW5kZXJUeXBlX0ZFTUFMRRACKjYKD1JvbGVFUHJvZmVzc2lvbhIjCh9S", + "b2xlRVByb2Zlc3Npb25fVEVTVF9QUk9GRVNTSU9OEAEqXgoMVGVzdERlbW9F", + "bnVtEhIKDlRlc3REZW1vRW51bV9BEAESEgoOVGVzdERlbW9FbnVtX0IQAhIS", + "Cg5UZXN0RGVtb0VudW1fQxAEEhIKDlRlc3REZW1vRW51bV9EEAUqSgoMVGVz", + "dERlbW9GbGFnEhIKDlRlc3REZW1vRmxhZ19BEAESEgoOVGVzdERlbW9GbGFn", + "X0IQAhISCg5UZXN0RGVtb0ZsYWdfRBADKkcKD1Rlc3RFVGVzdFVlVHlwZRIZ", + "ChVUZXN0RVRlc3RVZVR5cGVfV0hJVEUQABIZChVUZXN0RVRlc3RVZVR5cGVf", + "QkxBQ0sQASo+ChJUZXN0RVRlc3RFbXB0eUVudW0SKAokVGVzdEVUZXN0RW1w", + "dHlFbnVtX0VNUFRZX1BMQUNFSE9MREVSEAAqfgoTVGVzdEVUZXN0RW1wdHlF", + "bnVtMhInCiJUZXN0RVRlc3RFbXB0eUVudW0yX1NNQUxMX1RIQU5fMjU2EP8B", + "Eh4KGVRlc3RFVGVzdEVtcHR5RW51bTJfWF8yNTYQgAISHgoZVGVzdEVUZXN0", + "RW1wdHlFbnVtMl9YXzI1NxCBAipZCg1UZXN0QXVkaW9UeXBlEhkKFVRlc3RB", + "dWRpb1R5cGVfVU5LTk9XThAAEhUKEVRlc3RBdWRpb1R5cGVfQUNDEAESFgoS", + "VGVzdEF1ZGlvVHlwZV9BSUZGEAIqcgoQVGVzdEVUZXN0UXVhbGl0eRIWChJU", + "ZXN0RVRlc3RRdWFsaXR5X0EQARIWChJUZXN0RVRlc3RRdWFsaXR5X0IQAhIW", + "ChJUZXN0RVRlc3RRdWFsaXR5X0MQAxIWChJUZXN0RVRlc3RRdWFsaXR5X0QQ", + "BCqXAQoOVGVzdEFjY2Vzc0ZsYWcSGAoUVGVzdEFjY2Vzc0ZsYWdfV1JJVEUQ", + "ARIXChNUZXN0QWNjZXNzRmxhZ19SRUFEEAISGwoXVGVzdEFjY2Vzc0ZsYWdf", + "VFJVTkNBVEUQBBIWChJUZXN0QWNjZXNzRmxhZ19ORVcQCBIdChlUZXN0QWNj", + "ZXNzRmxhZ19SRUFEX1dSSVRFEAM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Cfg.AiEExecutor), typeof(global::Cfg.AiEKeyType), typeof(global::Cfg.AiEFlowAbortMode), typeof(global::Cfg.AiEFinishMode), typeof(global::Cfg.AiENotifyObserverMode), typeof(global::Cfg.AiEOperator), typeof(global::Cfg.CommonEBoolOperator), typeof(global::Cfg.ErrorEOperation), typeof(global::Cfg.ErrorEErrorCode), typeof(global::Cfg.ItemEItemQuality), typeof(global::Cfg.ItemECurrencyType), typeof(global::Cfg.ItemEMajorType), typeof(global::Cfg.ItemEMinorType), typeof(global::Cfg.ItemEClothersStarQualityType), typeof(global::Cfg.ItemEClothersTag), typeof(global::Cfg.ItemEUseType), typeof(global::Cfg.ItemEClothesHidePartType), typeof(global::Cfg.ItemEClothesPropertyType), typeof(global::Cfg.ItemEItemFunctionType), typeof(global::Cfg.LimitENamespace), typeof(global::Cfg.MailEMailType), typeof(global::Cfg.RoleEGenderType), typeof(global::Cfg.RoleEProfession), typeof(global::Cfg.TestDemoEnum), typeof(global::Cfg.TestDemoFlag), typeof(global::Cfg.TestETestUeType), typeof(global::Cfg.TestETestEmptyEnum), typeof(global::Cfg.TestETestEmptyEnum2), typeof(global::Cfg.TestAudioType), typeof(global::Cfg.TestETestQuality), typeof(global::Cfg.TestAccessFlag), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector2), global::Cfg.Vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector3), global::Cfg.Vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector4), global::Cfg.Vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboard), global::Cfg.AiBlackboard.Parser, new[]{ "Name", "Desc", "ParentName", "Keys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKey), global::Cfg.AiBlackboardKey.Parser, new[]{ "Name", "Desc", "IsStatic", "Type", "TypeClassName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBehaviorTree), global::Cfg.AiBehaviorTree.Parser, new[]{ "Id", "Name", "Desc", "BlackboardId", "Root" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiNode), global::Cfg.AiNode.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps", "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan", "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiService), global::Cfg.AiService.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeSetDefaultFocus), global::Cfg.AiUeSetDefaultFocus.Parser, new[]{ "Id", "NodeName", "KeyboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiExecuteTimeStatistic), global::Cfg.AiExecuteTimeStatistic.Parser, new[]{ "Id", "NodeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseTarget), global::Cfg.AiChooseTarget.Parser, new[]{ "Id", "NodeName", "ResultTargetKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeepFaceTarget), global::Cfg.AiKeepFaceTarget.Parser, new[]{ "Id", "NodeName", "TargetActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiGetOwnerPlayer), global::Cfg.AiGetOwnerPlayer.Parser, new[]{ "Id", "NodeName", "PlayerActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUpdateDailyBehaviorProps), global::Cfg.AiUpdateDailyBehaviorProps.Parser, new[]{ "Id", "NodeName", "SatietyKey", "EnergyKey", "MoodKey", "SatietyLowerThresholdKey", "SatietyUpperThresholdKey", "EnergyLowerThresholdKey", "EnergyUpperThresholdKey", "MoodLowerThresholdKey", "MoodUpperThresholdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDecorator), global::Cfg.AiDecorator.Parser, new[]{ "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeLoop), global::Cfg.AiUeLoop.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NumLoops", "InfiniteLoop", "InfiniteLoopTimeoutTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeCooldown), global::Cfg.AiUeCooldown.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "CooldownTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeTimeLimit), global::Cfg.AiUeTimeLimit.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "LimitTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeBlackboard), global::Cfg.AiUeBlackboard.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NotifyObserver", "BlackboardKey", "KeyQuery" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyQueryOperator), global::Cfg.AiKeyQueryOperator.Parser, new[]{ "IsSet", "IsNotSet", "BinaryOperator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsSet), global::Cfg.AiIsSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsNotSet), global::Cfg.AiIsNotSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBinaryOperator), global::Cfg.AiBinaryOperator.Parser, new[]{ "Oper", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyData), global::Cfg.AiKeyData.Parser, new[]{ "FloatKeyData", "IntKeyData", "StringKeyData", "BlackboardKeyData" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFloatKeyData), global::Cfg.AiFloatKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIntKeyData), global::Cfg.AiIntKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiStringKeyData), global::Cfg.AiStringKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKeyData), global::Cfg.AiBlackboardKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeForceSuccess), global::Cfg.AiUeForceSuccess.Parser, new[]{ "Id", "NodeName", "FlowAbortMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsAtLocation), global::Cfg.AiIsAtLocation.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "AcceptableRadius", "KeyboardKey", "InverseCondition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDistanceLessThan), global::Cfg.AiDistanceLessThan.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "Actor1Key", "Actor2Key", "Distance", "ReverseResult" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFlowNode), global::Cfg.AiFlowNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiComposeNode), global::Cfg.AiComposeNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSequence), global::Cfg.AiSequence.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSelector), global::Cfg.AiSelector.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSimpleParallel), global::Cfg.AiSimpleParallel.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "FinishMode", "MainTask", "BackgroundNode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTask), global::Cfg.AiTask.Parser, new[]{ "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWait), global::Cfg.AiUeWait.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "WaitTime", "RandomDeviation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWaitBlackboardTime), global::Cfg.AiUeWaitBlackboardTime.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "BlackboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToTarget), global::Cfg.AiMoveToTarget.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseSkill), global::Cfg.AiChooseSkill.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "ResultSkillIdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToRandomLocation), global::Cfg.AiMoveToRandomLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "OriginPositionKey", "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToLocation), global::Cfg.AiMoveToLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Location", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDebugPrint), global::Cfg.AiDebugPrint.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintClazz), global::Cfg.BlueprintClazz.Parser, new[]{ "Interface", "NormalClazz", "EnumClazz" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintMethod), global::Cfg.BlueprintMethod.Parser, new[]{ "AbstraceMethod", "ExternalMethod", "BlueprintMethod_" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintParamInfo), global::Cfg.BlueprintParamInfo.Parser, new[]{ "Name", "Type", "IsRef" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintAbstraceMethod), global::Cfg.BlueprintAbstraceMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintExternalMethod), global::Cfg.BlueprintExternalMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintBlueprintMethod), global::Cfg.BlueprintBlueprintMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintInterface), global::Cfg.BlueprintInterface.Parser, new[]{ "Name", "Desc", "Parents", "Methods" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintNormalClazz), global::Cfg.BlueprintNormalClazz.Parser, new[]{ "Name", "Desc", "Parents", "Methods", "IsAbstract", "Fields" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintField), global::Cfg.BlueprintField.Parser, new[]{ "Name", "Type", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintEnumClazz), global::Cfg.BlueprintEnumClazz.Parser, new[]{ "Name", "Desc", "Parents", "Methods", "Enums" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintEnumField), global::Cfg.BlueprintEnumField.Parser, new[]{ "Name", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusDropInfo), global::Cfg.BonusDropInfo.Parser, new[]{ "Id", "Desc", "ClientShowItems", "Bonus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusShowItemInfo), global::Cfg.BonusShowItemInfo.Parser, new[]{ "ItemId", "ItemNum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusBonus), global::Cfg.BonusBonus.Parser, new[]{ "OneItem", "OneItems", "Item", "Items", "CoefficientItem", "WeightItems", "ProbabilityItems", "MultiBonus", "ProbabilityBonus", "WeightBonus", "DropBonus" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusOneItem), global::Cfg.BonusOneItem.Parser, new[]{ "ItemId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusOneItems), global::Cfg.BonusOneItems.Parser, new[]{ "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusItem), global::Cfg.BonusItem.Parser, new[]{ "ItemId", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusItems), global::Cfg.BonusItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusCoefficientItem), global::Cfg.BonusCoefficientItem.Parser, new[]{ "BonusId", "BonusList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightItems), global::Cfg.BonusWeightItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightItemInfo), global::Cfg.BonusWeightItemInfo.Parser, new[]{ "ItemId", "Num", "Weight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityItems), global::Cfg.BonusProbabilityItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityItemInfo), global::Cfg.BonusProbabilityItemInfo.Parser, new[]{ "ItemId", "Num", "Probability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusMultiBonus), global::Cfg.BonusMultiBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityBonus), global::Cfg.BonusProbabilityBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityBonusInfo), global::Cfg.BonusProbabilityBonusInfo.Parser, new[]{ "Bonus", "Probability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightBonus), global::Cfg.BonusWeightBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightBonusInfo), global::Cfg.BonusWeightBonusInfo.Parser, new[]{ "Bonus", "Weight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusDropBonus), global::Cfg.BonusDropBonus.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonGlobalConfig), global::Cfg.CommonGlobalConfig.Parser, new[]{ "BagCapacity", "BagCapacitySpecial", "BagTempExpendableCapacity", "BagTempToolCapacity", "BagInitCapacity", "QuickBagCapacity", "ClothBagCapacity", "ClothBagInitCapacity", "ClothBagCapacitySpecial", "BagInitItemsDropId", "MailBoxCapacity", "DamageParamC", "DamageParamE", "DamageParamF", "DamageParamD", "RoleSpeed", "MonsterSpeed", "InitEnergy", "InitViality", "MaxViality", "PerVialityRecoveryTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorInfo), global::Cfg.ErrorErrorInfo.Parser, new[]{ "Code", "Desc", "Style" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyle), global::Cfg.ErrorErrorStyle.Parser, new[]{ "ErrorStyleTip", "ErrorStyleMsgbox", "ErrorStyleDlgOk", "ErrorStyleDlgOkCancel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleTip), global::Cfg.ErrorErrorStyleTip.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleMsgbox), global::Cfg.ErrorErrorStyleMsgbox.Parser, new[]{ "BtnName", "Operation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleDlgOk), global::Cfg.ErrorErrorStyleDlgOk.Parser, new[]{ "BtnName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleDlgOkCancel), global::Cfg.ErrorErrorStyleDlgOkCancel.Parser, new[]{ "Btn1Name", "Btn2Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorCodeInfo), global::Cfg.ErrorCodeInfo.Parser, new[]{ "Code", "Key" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItem), global::Cfg.ItemItem.Parser, new[]{ "Id", "Name", "MajorType", "MinorType", "MaxPileNum", "Quality", "Icon", "IconBackgroud", "IconMask", "Desc", "ShowOrder", "Quantifier", "ShowInBag", "MinShowLevel", "BatchUsable", "ProgressTimeWhenUse", "ShowHintWhenUse", "Droppable", "Price", "UseType", "LevelUpId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItemFunction), global::Cfg.ItemItemFunction.Parser, new[]{ "MinorType", "FuncType", "Method", "CloseBagUi" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItemExtra), global::Cfg.ItemItemExtra.Parser, new[]{ "TreasureBox", "InteractionItem", "Clothes", "DesignDrawing", "Dymmy" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTreasureBox), global::Cfg.ItemTreasureBox.Parser, new[]{ "Id", "KeyItemId", "OpenLevel", "UseOnObtain", "DropIds", "ChooseList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionCondition), global::Cfg.ConditionCondition.Parser, new[]{ "TimeRange", "MultiRoleCondition", "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan", "ContainsItem" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionTimeRange), global::Cfg.ConditionTimeRange.Parser, new[]{ "DateTimeRange" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonDateTimeRange), global::Cfg.CommonDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionRoleCondition), global::Cfg.ConditionRoleCondition.Parser, new[]{ "MultiRoleCondition", "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan", "ContainsItem" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMultiRoleCondition), global::Cfg.ConditionMultiRoleCondition.Parser, new[]{ "Conditions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionBoolRoleCondition), global::Cfg.ConditionBoolRoleCondition.Parser, new[]{ "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionGenderLimit), global::Cfg.ConditionGenderLimit.Parser, new[]{ "Gender" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMinLevel), global::Cfg.ConditionMinLevel.Parser, new[]{ "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMaxLevel), global::Cfg.ConditionMaxLevel.Parser, new[]{ "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMinMaxLevel), global::Cfg.ConditionMinMaxLevel.Parser, new[]{ "Min", "Max" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionClothesPropertyScoreGreaterThan), global::Cfg.ConditionClothesPropertyScoreGreaterThan.Parser, new[]{ "Prop", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionContainsItem), global::Cfg.ConditionContainsItem.Parser, new[]{ "ItemId", "Num", "Reverse" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemChooseOneBonus), global::Cfg.ItemChooseOneBonus.Parser, new[]{ "DropId", "IsUnique" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemInteractionItem), global::Cfg.ItemInteractionItem.Parser, new[]{ "Id", "AttackNum", "HoldingStaticMesh", "HoldingStaticMeshMat" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemClothes), global::Cfg.ItemClothes.Parser, new[]{ "Id", "Attack", "Hp", "EnergyLimit", "EnergyResume" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemDesignDrawing), global::Cfg.ItemDesignDrawing.Parser, new[]{ "Id", "LearnComponentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemDymmy), global::Cfg.ItemDymmy.Parser, new[]{ "Id", "Cost" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCost), global::Cfg.CostCost.Parser, new[]{ "CostCurrency", "CostCurrencies", "CostOneItem", "CostItem", "CostItems" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostCurrency), global::Cfg.CostCostCurrency.Parser, new[]{ "Type", "Num" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostCurrencies), global::Cfg.CostCostCurrencies.Parser, new[]{ "Currencies" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostOneItem), global::Cfg.CostCostOneItem.Parser, new[]{ "ItemId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostItem), global::Cfg.CostCostItem.Parser, new[]{ "ItemId", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostItems), global::Cfg.CostCostItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nL10NDemo), global::Cfg.L10nL10NDemo.Parser, new[]{ "Id", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nPatchDemo), global::Cfg.L10nPatchDemo.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailSystemMail), global::Cfg.MailSystemMail.Parser, new[]{ "Id", "Title", "Sender", "Content", "Award" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailGlobalMail), global::Cfg.MailGlobalMail.Parser, new[]{ "Id", "Title", "Sender", "Content", "Award", "AllServer", "ServerList", "Platform", "Channel", "MinMaxLevel", "RegisterTime", "MailTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleLevelExpAttr), global::Cfg.RoleLevelExpAttr.Parser, new[]{ "Level", "NeedExp", "ClothesAttrs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleLevelBonus), global::Cfg.RoleLevelBonus.Parser, new[]{ "Id", "DistinctBonusInfos" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleDistinctBonusInfos), global::Cfg.RoleDistinctBonusInfos.Parser, new[]{ "EffectiveLevel", "BonusInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleBonusInfo), global::Cfg.RoleBonusInfo.Parser, new[]{ "Type", "Coefficient" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTestTag), global::Cfg.TagTestTag.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType2), global::Cfg.TestDemoType2.Parser, new[]{ "X4", "X1", "X2", "X3", "X5", "X6", "X7", "X80", "X8", "X9", "X10", "X12", "X13", "X14", "S1", "V2", "V3", "V4", "T1", "K1", "K2", "K5", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType1), global::Cfg.TestDemoType1.Parser, new[]{ "X1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoDynamic), global::Cfg.TestDemoDynamic.Parser, new[]{ "DemoD2", "DemoE1", "DemoD5" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD2), global::Cfg.TestDemoD2.Parser, new[]{ "X1", "X2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD3), global::Cfg.TestDemoD3.Parser, new[]{ "DemoE1" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE1), global::Cfg.TestDemoE1.Parser, new[]{ "X1", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD5), global::Cfg.TestDemoD5.Parser, new[]{ "X1", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDateTimeRange), global::Cfg.TestDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE2), global::Cfg.TestDemoE2.Parser, new[]{ "Y1", "Y2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoSingletonType), global::Cfg.TestDemoSingletonType.Parser, new[]{ "Id", "Name", "Date" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestNotIndexList), global::Cfg.TestNotIndexList.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiUnionIndexList), global::Cfg.TestMultiUnionIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiIndexList), global::Cfg.TestMultiIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowRecord), global::Cfg.TestMultiRowRecord.Parser, new[]{ "Id", "Name", "OneRows", "MultiRows1", "MultiRows2", "MultiRows4", "MultiRows5", "MultiRows6", "MultiRows7" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType1), global::Cfg.TestMultiRowType1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType2), global::Cfg.TestMultiRowType2.Parser, new[]{ "Id", "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType3), global::Cfg.TestMultiRowType3.Parser, new[]{ "Id", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowTitle), global::Cfg.TestMultiRowTitle.Parser, new[]{ "Id", "Name", "X1", "X20", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH1), global::Cfg.TestH1.Parser, new[]{ "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH2), global::Cfg.TestH2.Parser, new[]{ "Z2", "Z3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestNull), global::Cfg.TestTestNull.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "S1", "S2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoPrimitiveTypesTable), global::Cfg.TestDemoPrimitiveTypesTable.Parser, new[]{ "X1", "X2", "X3", "X4", "X5", "X6", "X7", "S1", "S2", "V2", "V3", "V4", "T1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestString), global::Cfg.TestTestString.Parser, new[]{ "Id", "S1", "Cs1", "Cs2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompactString), global::Cfg.TestCompactString.Parser, new[]{ "Id", "S2", "S3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoGroup), global::Cfg.TestDemoGroup.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestInnerGroup), global::Cfg.TestInnerGroup.Parser, new[]{ "Y1", "Y2", "Y3", "Y4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestGlobal), global::Cfg.TestTestGlobal.Parser, new[]{ "UnlockEquip", "UnlockHero" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestBeRef), global::Cfg.TestTestBeRef.Parser, new[]{ "Id", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRef), global::Cfg.TestTestRef.Parser, new[]{ "Id", "X1", "X12", "X2", "X3", "A1", "A2", "B1", "B2", "C1", "C2", "D1", "D2", "E1", "E2", "E3", "F1", "F2", "F3" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSize), global::Cfg.TestTestSize.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSet), global::Cfg.TestTestSet.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDetectEncoding), global::Cfg.TestDetectEncoding.Parser, new[]{ "Id", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcel), global::Cfg.TestDefineFromExcel.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X14", "V2", "T1", "K1", "K8", "K9" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcelOne), global::Cfg.TestDefineFromExcelOne.Parser, new[]{ "UnlockEquip", "UnlockHero", "DefaultAvatar", "DefaultItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestIndex), global::Cfg.TestTestIndex.Parser, new[]{ "Id", "Eles" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMap), global::Cfg.TestTestMap.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJson), global::Cfg.TestExcelFromJson.Parser, new[]{ "X4", "X1", "X5", "X6", "S1", "S2", "V2", "V3", "V4", "T1", "X12", "X13", "X14", "K1", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable1), global::Cfg.TestCompositeJsonTable1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable2), global::Cfg.TestCompositeJsonTable2.Parser, new[]{ "Id", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable3), global::Cfg.TestCompositeJsonTable3.Parser, new[]{ "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJsonMultiRow), global::Cfg.TestExcelFromJsonMultiRow.Parser, new[]{ "Id", "X", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRow), global::Cfg.TestTestRow.Parser, new[]{ "X", "Y", "Z", "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTest3), global::Cfg.TestTest3.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSep), global::Cfg.TestTestSep.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5", "X6" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestSepBean1), global::Cfg.TestSepBean1.Parser, new[]{ "A", "B", "C" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestSepVector), global::Cfg.TestSepVector.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExternalType), global::Cfg.TestTestExternalType.Parser, new[]{ "Id", "AudioType", "Color" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestColor), global::Cfg.TestColor.Parser, new[]{ "R", "G", "B", "A" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcel2), global::Cfg.TestDefineFromExcel2.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X14", "V2", "T1", "K1", "K8", "K9" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExcelBean1), global::Cfg.TestTestExcelBean1.Parser, new[]{ "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestDesc), global::Cfg.TestTestDesc.Parser, new[]{ "Id", "Name", "A1", "A2", "X1", "X2", "X3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBlackboard), global::Cfg.AiTbBlackboard.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBehaviorTree), global::Cfg.AiTbBehaviorTree.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintTbClazz), global::Cfg.BlueprintTbClazz.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusTbDrop), global::Cfg.BonusTbDrop.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonTbGlobalConfig), global::Cfg.CommonTbGlobalConfig.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorTbErrorInfo), global::Cfg.ErrorTbErrorInfo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorTbCodeInfo), global::Cfg.ErrorTbCodeInfo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItem), global::Cfg.ItemTbItem.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItemFunc), global::Cfg.ItemTbItemFunc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItemExtra), global::Cfg.ItemTbItemExtra.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbL10NDemo), global::Cfg.L10nTbL10NDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbPatchDemo), global::Cfg.L10nTbPatchDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailTbSystemMail), global::Cfg.MailTbSystemMail.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailTbGlobalMail), global::Cfg.MailTbGlobalMail.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleTbRoleLevelExpAttr), global::Cfg.RoleTbRoleLevelExpAttr.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleTbRoleLevelBonusCoefficient), global::Cfg.RoleTbRoleLevelBonusCoefficient.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTbTestTag), global::Cfg.TagTbTestTag.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbFullTypes), global::Cfg.TestTbFullTypes.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbSingleton), global::Cfg.TestTbSingleton.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbNotIndexList), global::Cfg.TestTbNotIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiUnionIndexList), global::Cfg.TestTbMultiUnionIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiIndexList), global::Cfg.TestTbMultiIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDataFromMisc), global::Cfg.TestTbDataFromMisc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowRecord), global::Cfg.TestTbMultiRowRecord.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowTitle), global::Cfg.TestTbMultiRowTitle.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestNull), global::Cfg.TestTbTestNull.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoPrimitive), global::Cfg.TestTbDemoPrimitive.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestString), global::Cfg.TestTbTestString.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup), global::Cfg.TestTbDemoGroup.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_C), global::Cfg.TestTbDemoGroup_C.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_S), global::Cfg.TestTbDemoGroup_S.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_E), global::Cfg.TestTbDemoGroup_E.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestGlobal), global::Cfg.TestTbTestGlobal.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef), global::Cfg.TestTbTestBeRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef2), global::Cfg.TestTbTestBeRef2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestRef), global::Cfg.TestTbTestRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSize), global::Cfg.TestTbTestSize.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSet), global::Cfg.TestTbTestSet.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDetectCsvEncoding), global::Cfg.TestTbDetectCsvEncoding.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel), global::Cfg.TestTbDefineFromExcel.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcelOne), global::Cfg.TestTbDefineFromExcelOne.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestIndex), global::Cfg.TestTbTestIndex.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMap), global::Cfg.TestTbTestMap.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJson), global::Cfg.TestTbExcelFromJson.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable1), global::Cfg.TestTbCompositeJsonTable1.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable2), global::Cfg.TestTbCompositeJsonTable2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable3), global::Cfg.TestTbCompositeJsonTable3.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJsonMultiRow), global::Cfg.TestTbExcelFromJsonMultiRow.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSep), global::Cfg.TestTbTestSep.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestExternalType), global::Cfg.TestTbTestExternalType.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroupDefineFromExcel), global::Cfg.TestTbDemoGroupDefineFromExcel.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel2), global::Cfg.TestTbDefineFromExcel2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestExcelBean), global::Cfg.TestTbTestExcelBean.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestDesc), global::Cfg.TestTbTestDesc.Parser, new[]{ "DataList" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum AiEExecutor { + [pbr::OriginalName("AiEExecutor_CLIENT")] Client = 0, + [pbr::OriginalName("AiEExecutor_SERVER")] Server = 1, + } + + public enum AiEKeyType { + [pbr::OriginalName("AiEKeyType_BOOL")] Bool = 1, + [pbr::OriginalName("AiEKeyType_INT")] Int = 2, + [pbr::OriginalName("AiEKeyType_FLOAT")] Float = 3, + [pbr::OriginalName("AiEKeyType_STRING")] String = 4, + [pbr::OriginalName("AiEKeyType_VECTOR")] Vector = 5, + [pbr::OriginalName("AiEKeyType_ROTATOR")] Rotator = 6, + [pbr::OriginalName("AiEKeyType_NAME")] Name = 7, + [pbr::OriginalName("AiEKeyType_CLASS")] Class = 8, + [pbr::OriginalName("AiEKeyType_ENUM")] Enum = 9, + [pbr::OriginalName("AiEKeyType_OBJECT")] Object = 10, + } + + public enum AiEFlowAbortMode { + [pbr::OriginalName("AiEFlowAbortMode_NONE")] None = 0, + [pbr::OriginalName("AiEFlowAbortMode_LOWER_PRIORITY")] LowerPriority = 1, + [pbr::OriginalName("AiEFlowAbortMode_SELF")] Self = 2, + [pbr::OriginalName("AiEFlowAbortMode_BOTH")] Both = 3, + } + + public enum AiEFinishMode { + [pbr::OriginalName("AiEFinishMode_IMMEDIATE")] Immediate = 0, + [pbr::OriginalName("AiEFinishMode_DELAYED")] Delayed = 1, + } + + public enum AiENotifyObserverMode { + [pbr::OriginalName("AiENotifyObserverMode_ON_VALUE_CHANGE")] OnValueChange = 0, + [pbr::OriginalName("AiENotifyObserverMode_ON_RESULT_CHANGE")] OnResultChange = 1, + } + + public enum AiEOperator { + [pbr::OriginalName("AiEOperator_IS_EQUAL_TO")] IsEqualTo = 0, + [pbr::OriginalName("AiEOperator_IS_NOT_EQUAL_TO")] IsNotEqualTo = 1, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN")] IsLessThan = 2, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN_OR_EQUAL_TO")] IsLessThanOrEqualTo = 3, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN")] IsGreatThan = 4, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO")] IsGreatThanOrEqualTo = 5, + [pbr::OriginalName("AiEOperator_CONTAINS")] Contains = 6, + [pbr::OriginalName("AiEOperator_NOT_CONTAINS")] NotContains = 7, + } + + public enum CommonEBoolOperator { + [pbr::OriginalName("CommonEBoolOperator_AND")] And = 0, + [pbr::OriginalName("CommonEBoolOperator_OR")] Or = 1, + } + + public enum ErrorEOperation { + [pbr::OriginalName("ErrorEOperation_LOGOUT")] Logout = 0, + [pbr::OriginalName("ErrorEOperation_RESTART")] Restart = 1, + } + + public enum ErrorEErrorCode { + [pbr::OriginalName("ErrorEErrorCode_OK")] Ok = 0, + [pbr::OriginalName("ErrorEErrorCode_SERVER_NOT_EXISTS")] ServerNotExists = 1, + [pbr::OriginalName("ErrorEErrorCode_HAS_BIND_SERVER")] HasBindServer = 2, + [pbr::OriginalName("ErrorEErrorCode_AUTH_FAIL")] AuthFail = 3, + [pbr::OriginalName("ErrorEErrorCode_NOT_BIND_SERVER")] NotBindServer = 4, + [pbr::OriginalName("ErrorEErrorCode_SERVER_ACCESS_FAIL")] ServerAccessFail = 5, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_FLASH")] ExampleFlash = 6, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_MSGBOX")] ExampleMsgbox = 7, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_DLG_OK")] ExampleDlgOk = 8, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_DLG_OK_CANCEL")] ExampleDlgOkCancel = 9, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_INVALID_CHAR")] RoleCreateNameInvalidChar = 100, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_EMPTY")] RoleCreateNameEmpty = 101, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_EXCEED_MAX_LENGTH")] RoleCreateNameExceedMaxLength = 102, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_ROLE_LIST_FULL")] RoleCreateRoleListFull = 103, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_INVALID_PROFESSION")] RoleCreateInvalidProfession = 104, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_INVALID_GENDER")] RoleCreateInvalidGender = 105, + [pbr::OriginalName("ErrorEErrorCode_ROLE_NOT_OWNED_BY_USER")] RoleNotOwnedByUser = 106, + [pbr::OriginalName("ErrorEErrorCode_ROLE_LEVEL_NOT_ARRIVE")] RoleLevelNotArrive = 107, + [pbr::OriginalName("ErrorEErrorCode_PARAM_ILLEGAL")] ParamIllegal = 200, + [pbr::OriginalName("ErrorEErrorCode_TEMP_BAG_NOT_EMPTY")] TempBagNotEmpty = 201, + [pbr::OriginalName("ErrorEErrorCode_ITEM_CAN_NOT_USE")] ItemCanNotUse = 202, + [pbr::OriginalName("ErrorEErrorCode_CURRENCY_NOT_ENOUGH")] CurrencyNotEnough = 203, + [pbr::OriginalName("ErrorEErrorCode_BAG_IS_FULL")] BagIsFull = 204, + [pbr::OriginalName("ErrorEErrorCode_ITEM_NOT_ENOUGH")] ItemNotEnough = 205, + [pbr::OriginalName("ErrorEErrorCode_ITEM_IN_BAG")] ItemInBag = 206, + [pbr::OriginalName("ErrorEErrorCode_GENDER_NOT_MATCH")] GenderNotMatch = 300, + [pbr::OriginalName("ErrorEErrorCode_LEVEL_TOO_LOW")] LevelTooLow = 301, + [pbr::OriginalName("ErrorEErrorCode_LEVEL_TOO_HIGH")] LevelTooHigh = 302, + [pbr::OriginalName("ErrorEErrorCode_EXCEED_LIMIT")] ExceedLimit = 303, + [pbr::OriginalName("ErrorEErrorCode_OVER_TIME")] OverTime = 304, + [pbr::OriginalName("ErrorEErrorCode_SERVER_ERROR")] ServerError = 305, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_IN_LIST")] SkillNotInList = 400, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_COOLDOWN")] SkillNotCooldown = 401, + [pbr::OriginalName("ErrorEErrorCode_SKILL_TARGET_NOT_EXIST")] SkillTargetNotExist = 402, + [pbr::OriginalName("ErrorEErrorCode_SKILL_ANOTHER_CASTING")] SkillAnotherCasting = 403, + [pbr::OriginalName("ErrorEErrorCode_SKILL_OUT_OF_DISTANCE")] SkillOutOfDistance = 404, + [pbr::OriginalName("ErrorEErrorCode_SKILL_TARGET_CAMP_NOT_MATCH")] SkillTargetCampNotMatch = 405, + [pbr::OriginalName("ErrorEErrorCode_SKILL_INVALID_DIRECTION")] SkillInvalidDirection = 406, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_IN_SELECT_SHAPE")] SkillNotInSelectShape = 407, + [pbr::OriginalName("ErrorEErrorCode_SKILL_ENERGY_NOT_ENOUGH")] SkillEnergyNotEnough = 408, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_NODE_NOT_CHOOSEN")] DialogNodeNotChoosen = 500, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_NOT_FINISH")] DialogNotFinish = 501, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_HAS_FINISH")] DialogHasFinish = 502, + [pbr::OriginalName("ErrorEErrorCode_QUEST_STAGE_NOT_FINISHED")] QuestStageNotFinished = 503, + [pbr::OriginalName("ErrorEErrorCode_QUEST_NOT_DOING")] QuestNotDoing = 504, + [pbr::OriginalName("ErrorEErrorCode_QUEST_STAGE_NOT_DOING")] QuestStageNotDoing = 505, + [pbr::OriginalName("ErrorEErrorCode_QUEST_HAS_ACCEPTED")] QuestHasAccepted = 506, + [pbr::OriginalName("ErrorEErrorCode_MAP_OBJECT_NOT_EXIST")] MapObjectNotExist = 600, + [pbr::OriginalName("ErrorEErrorCode_INTERACTION_OBJECT_NOT_SUPPORT_OPERATION")] InteractionObjectNotSupportOperation = 601, + [pbr::OriginalName("ErrorEErrorCode_HAS_NOT_EQUIP")] HasNotEquip = 602, + [pbr::OriginalName("ErrorEErrorCode_HANDHELD_EQUIP_ID_NOT_MATCH")] HandheldEquipIdNotMatch = 603, + [pbr::OriginalName("ErrorEErrorCode_NOT_AVAILABLE_SUIT_ID")] NotAvailableSuitId = 604, + [pbr::OriginalName("ErrorEErrorCode_NO_INTERACTION_COMPONENT")] NoInteractionComponent = 605, + [pbr::OriginalName("ErrorEErrorCode_HAS_INTERACTED")] HasInteracted = 606, + [pbr::OriginalName("ErrorEErrorCode_VIALITY_NOT_ENOUGH")] VialityNotEnough = 607, + [pbr::OriginalName("ErrorEErrorCode_PLAYER_SESSION_NOT_EXIST")] PlayerSessionNotExist = 608, + [pbr::OriginalName("ErrorEErrorCode_PLAYER_SESSION_WORLD_PLAYER_NOT_INIT")] PlayerSessionWorldPlayerNotInit = 609, + [pbr::OriginalName("ErrorEErrorCode_MAP_NOT_EXIST")] MapNotExist = 610, + [pbr::OriginalName("ErrorEErrorCode_MAIL_TYPE_ERROR")] MailTypeError = 700, + [pbr::OriginalName("ErrorEErrorCode_MAIL_NOT_EXITST")] MailNotExitst = 701, + [pbr::OriginalName("ErrorEErrorCode_MAIL_HAVE_DELETED")] MailHaveDeleted = 702, + [pbr::OriginalName("ErrorEErrorCode_MAIL_AWARD_HAVE_RECEIVED")] MailAwardHaveReceived = 703, + [pbr::OriginalName("ErrorEErrorCode_MAIL_OPERATE_TYPE_ERROR")] MailOperateTypeError = 704, + [pbr::OriginalName("ErrorEErrorCode_MAIL_CONDITION_NOT_MEET")] MailConditionNotMeet = 705, + [pbr::OriginalName("ErrorEErrorCode_MAIL_STATE_ERROR")] MailStateError = 706, + [pbr::OriginalName("ErrorEErrorCode_MAIL_NO_AWARD")] MailNoAward = 707, + [pbr::OriginalName("ErrorEErrorCode_MAIL_BOX_IS_FULL")] MailBoxIsFull = 708, + [pbr::OriginalName("ErrorEErrorCode_PROP_SCORE_NOT_BIGGER_THAN")] PropScoreNotBiggerThan = 800, + [pbr::OriginalName("ErrorEErrorCode_NOT_WEAR_CLOTHES")] NotWearClothes = 801, + [pbr::OriginalName("ErrorEErrorCode_NOT_WEAR_SUIT")] NotWearSuit = 802, + [pbr::OriginalName("ErrorEErrorCode_SUIT_NOT_UNLOCK")] SuitNotUnlock = 900, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_NOT_UNLOCK")] SuitComponentNotUnlock = 901, + [pbr::OriginalName("ErrorEErrorCode_SUIT_STATE_ERROR")] SuitStateError = 902, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_STATE_ERROR")] SuitComponentStateError = 903, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_NO_NEED_LEARN")] SuitComponentNoNeedLearn = 904, + [pbr::OriginalName("ErrorEErrorCode_STORE_NOT_ENABLED")] StoreNotEnabled = 1000, + [pbr::OriginalName("ErrorEErrorCode_SHELF_NOT_ENABLED")] ShelfNotEnabled = 1001, + [pbr::OriginalName("ErrorEErrorCode_GOODS_NOT_ENABLED")] GoodsNotEnabled = 1002, + [pbr::OriginalName("ErrorEErrorCode_GOODS_NOT_IN_CUR_REFRESH")] GoodsNotInCurRefresh = 1003, + [pbr::OriginalName("ErrorEErrorCode_RETRY")] Retry = 1100, + [pbr::OriginalName("ErrorEErrorCode_NOT_COOLDOWN")] NotCooldown = 1101, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_UNLOCK")] SelfieUnlock = 1200, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_ALREADY_UNLOCK")] SelfieAlreadyUnlock = 1201, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_LACK_STARTS")] SelfieLackStarts = 1202, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_HAD_REWARD")] SelfieHadReward = 1203, + } + + public enum ItemEItemQuality { + [pbr::OriginalName("ItemEItemQuality_WHITE")] White = 0, + [pbr::OriginalName("ItemEItemQuality_GREEN")] Green = 1, + [pbr::OriginalName("ItemEItemQuality_BLUE")] Blue = 2, + [pbr::OriginalName("ItemEItemQuality_PURPLE")] Purple = 3, + [pbr::OriginalName("ItemEItemQuality_GOLDEN")] Golden = 4, + } + + public enum ItemECurrencyType { + [pbr::OriginalName("ItemECurrencyType_DIAMOND")] Diamond = 1, + [pbr::OriginalName("ItemECurrencyType_GOLD")] Gold = 2, + [pbr::OriginalName("ItemECurrencyType_SILVER")] Silver = 3, + [pbr::OriginalName("ItemECurrencyType_EXP")] Exp = 4, + [pbr::OriginalName("ItemECurrencyType_POWER_POINT")] PowerPoint = 5, + } + + public enum ItemEMajorType { + [pbr::OriginalName("ItemEMajorType_CURRENCY")] Currency = 1, + [pbr::OriginalName("ItemEMajorType_CLOTH")] Cloth = 2, + [pbr::OriginalName("ItemEMajorType_QUEST")] Quest = 3, + [pbr::OriginalName("ItemEMajorType_CONSUMABLES")] Consumables = 4, + [pbr::OriginalName("ItemEMajorType_TREASURE_BOX")] TreasureBox = 5, + [pbr::OriginalName("ItemEMajorType_ACHIEVEMENT_AND_TITLE")] AchievementAndTitle = 6, + [pbr::OriginalName("ItemEMajorType_HEAD_FRAME")] HeadFrame = 7, + [pbr::OriginalName("ItemEMajorType_VOICE")] Voice = 8, + [pbr::OriginalName("ItemEMajorType_ACTION")] Action = 9, + [pbr::OriginalName("ItemEMajorType_EXPANSION")] Expansion = 10, + [pbr::OriginalName("ItemEMajorType_MATERIAL")] Material = 11, + } + + public enum ItemEMinorType { + [pbr::OriginalName("ItemEMinorType_DIAMOND")] Diamond = 101, + [pbr::OriginalName("ItemEMinorType_GOLD")] Gold = 102, + [pbr::OriginalName("ItemEMinorType_SILVER")] Silver = 103, + [pbr::OriginalName("ItemEMinorType_EXP")] Exp = 104, + [pbr::OriginalName("ItemEMinorType_POWER_POINT")] PowerPoint = 105, + [pbr::OriginalName("ItemEMinorType_HAIR_STYLE")] HairStyle = 210, + [pbr::OriginalName("ItemEMinorType_COAT")] Coat = 220, + [pbr::OriginalName("ItemEMinorType_UPPER_JACKET")] UpperJacket = 230, + [pbr::OriginalName("ItemEMinorType_TROUSERS")] Trousers = 241, + [pbr::OriginalName("ItemEMinorType_SKIRT")] Skirt = 242, + [pbr::OriginalName("ItemEMinorType_SOCKS")] Socks = 250, + [pbr::OriginalName("ItemEMinorType_SHOES")] Shoes = 260, + [pbr::OriginalName("ItemEMinorType_HAIR_ACCESSORY")] HairAccessory = 271, + [pbr::OriginalName("ItemEMinorType_HAT")] Hat = 272, + [pbr::OriginalName("ItemEMinorType_EARRING")] Earring = 273, + [pbr::OriginalName("ItemEMinorType_NECKLACE")] Necklace = 274, + [pbr::OriginalName("ItemEMinorType_BRACELET")] Bracelet = 275, + [pbr::OriginalName("ItemEMinorType_HAIR_CLASP")] HairClasp = 276, + [pbr::OriginalName("ItemEMinorType_GLOVE")] Glove = 277, + [pbr::OriginalName("ItemEMinorType_HANDHELD_OBJECT")] HandheldObject = 278, + [pbr::OriginalName("ItemEMinorType_SPECIAL")] Special = 279, + [pbr::OriginalName("ItemEMinorType_BASE_COSMETIC")] BaseCosmetic = 281, + [pbr::OriginalName("ItemEMinorType_EYEBROW_COSMETIC")] EyebrowCosmetic = 282, + [pbr::OriginalName("ItemEMinorType_EYELASH")] Eyelash = 283, + [pbr::OriginalName("ItemEMinorType_COSMETIC_CONTACT_LENSES")] CosmeticContactLenses = 284, + [pbr::OriginalName("ItemEMinorType_LIP_COSMETIC")] LipCosmetic = 285, + [pbr::OriginalName("ItemEMinorType_SKIN_COLOR")] SkinColor = 286, + [pbr::OriginalName("ItemEMinorType_ONE_PIECE_DRESS")] OnePieceDress = 290, + [pbr::OriginalName("ItemEMinorType_SWITCH_CLOTHES_SCENE")] SwitchClothesScene = 291, + [pbr::OriginalName("ItemEMinorType_QUEST")] Quest = 301, + [pbr::OriginalName("ItemEMinorType_CAST")] Cast = 401, + [pbr::OriginalName("ItemEMinorType_SWORD")] Sword = 421, + [pbr::OriginalName("ItemEMinorType_BOW_ARROW")] BowArrow = 422, + [pbr::OriginalName("ItemEMinorType_WANDS")] Wands = 423, + [pbr::OriginalName("ItemEMinorType_SPECIAL_TOOL")] SpecialTool = 424, + [pbr::OriginalName("ItemEMinorType_FOOD")] Food = 403, + [pbr::OriginalName("ItemEMinorType_TREASURE_BOX")] TreasureBox = 501, + [pbr::OriginalName("ItemEMinorType_KEY")] Key = 502, + [pbr::OriginalName("ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX")] MultiChooseTreasureBox = 503, + [pbr::OriginalName("ItemEMinorType_ACHIEVEMENT")] Achievement = 601, + [pbr::OriginalName("ItemEMinorType_TITLE")] Title = 602, + [pbr::OriginalName("ItemEMinorType_AVATAR_FRAME")] AvatarFrame = 701, + [pbr::OriginalName("ItemEMinorType_VOICE")] Voice = 801, + [pbr::OriginalName("ItemEMinorType_IDLE_POSE")] IdlePose = 901, + [pbr::OriginalName("ItemEMinorType_PHOTO_POSE")] PhotoPose = 902, + [pbr::OriginalName("ItemEMinorType_BAG")] Bag = 1001, + [pbr::OriginalName("ItemEMinorType_FRIEND_CAPACITY")] FriendCapacity = 1002, + [pbr::OriginalName("ItemEMinorType_CONSTRUCTION_MATERIAL")] ConstructionMaterial = 1101, + [pbr::OriginalName("ItemEMinorType_DESIGN_DRAWING")] DesignDrawing = 1102, + } + + public enum ItemEClothersStarQualityType { + [pbr::OriginalName("ItemEClothersStarQualityType_ONE")] One = 1, + [pbr::OriginalName("ItemEClothersStarQualityType_TWO")] Two = 2, + [pbr::OriginalName("ItemEClothersStarQualityType_THREE")] Three = 3, + [pbr::OriginalName("ItemEClothersStarQualityType_FOUR")] Four = 4, + [pbr::OriginalName("ItemEClothersStarQualityType_FIVE")] Five = 5, + [pbr::OriginalName("ItemEClothersStarQualityType_SIX")] Six = 6, + [pbr::OriginalName("ItemEClothersStarQualityType_SEVEN")] Seven = 7, + [pbr::OriginalName("ItemEClothersStarQualityType_EIGHT")] Eight = 8, + [pbr::OriginalName("ItemEClothersStarQualityType_NINE")] Nine = 9, + [pbr::OriginalName("ItemEClothersStarQualityType_TEN")] Ten = 10, + } + + public enum ItemEClothersTag { + [pbr::OriginalName("ItemEClothersTag_FANG_SHAI")] FangShai = 1, + [pbr::OriginalName("ItemEClothersTag_WU_ZHE")] WuZhe = 2, + } + + public enum ItemEUseType { + [pbr::OriginalName("ItemEUseType_MANUAL")] Manual = 0, + [pbr::OriginalName("ItemEUseType_AUTO")] Auto = 1, + } + + public enum ItemEClothesHidePartType { + [pbr::OriginalName("ItemEClothesHidePartType_CHEST")] Chest = 0, + [pbr::OriginalName("ItemEClothesHidePartType_HEAD")] Head = 1, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_UPPER")] SpineUpper = 2, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_LOWER")] SpineLower = 3, + [pbr::OriginalName("ItemEClothesHidePartType_HIP")] Hip = 4, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_UPPER")] LegUpper = 5, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_MIDDLE")] LegMiddle = 6, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_LOWER")] LegLower = 7, + } + + public enum ItemEClothesPropertyType { + [pbr::OriginalName("ItemEClothesPropertyType_JIAN_YUE")] JianYue = 1, + [pbr::OriginalName("ItemEClothesPropertyType_HUA_LI")] HuaLi = 2, + [pbr::OriginalName("ItemEClothesPropertyType_KE_AI")] KeAi = 3, + [pbr::OriginalName("ItemEClothesPropertyType_CHENG_SHU")] ChengShu = 4, + [pbr::OriginalName("ItemEClothesPropertyType_HUO_PO")] HuoPo = 5, + [pbr::OriginalName("ItemEClothesPropertyType_YOU_YA")] YouYa = 6, + [pbr::OriginalName("ItemEClothesPropertyType_QING_CHUN")] QingChun = 7, + [pbr::OriginalName("ItemEClothesPropertyType_XING_GAN")] XingGan = 8, + [pbr::OriginalName("ItemEClothesPropertyType_QING_LIANG")] QingLiang = 9, + [pbr::OriginalName("ItemEClothesPropertyType_BAO_NUAN")] BaoNuan = 10, + } + + public enum ItemEItemFunctionType { + [pbr::OriginalName("ItemEItemFunctionType_REPLACE_HANDHELD")] ReplaceHandheld = 0, + [pbr::OriginalName("ItemEItemFunctionType_USE_DESIGN_DRAWING")] UseDesignDrawing = 1, + } + + public enum LimitENamespace { + [pbr::OriginalName("LimitENamespace_ITEM_DAILY_OBTAIN")] ItemDailyObtain = 1, + [pbr::OriginalName("LimitENamespace_TREASURE_DAILY_USE")] TreasureDailyUse = 2, + [pbr::OriginalName("LimitENamespace_STORE_GOODS_LIMIT_BUY")] StoreGoodsLimitBuy = 3, + } + + public enum MailEMailType { + [pbr::OriginalName("MailEMailType_GLOBAL")] Global = 0, + [pbr::OriginalName("MailEMailType_SYSTEM")] System = 1, + } + + public enum RoleEGenderType { + [pbr::OriginalName("RoleEGenderType_MALE")] Male = 1, + [pbr::OriginalName("RoleEGenderType_FEMALE")] Female = 2, + } + + public enum RoleEProfession { + [pbr::OriginalName("RoleEProfession_TEST_PROFESSION")] TestProfession = 1, + } + + public enum TestDemoEnum { + [pbr::OriginalName("TestDemoEnum_A")] A = 1, + [pbr::OriginalName("TestDemoEnum_B")] B = 2, + [pbr::OriginalName("TestDemoEnum_C")] C = 4, + [pbr::OriginalName("TestDemoEnum_D")] D = 5, + } + + public enum TestDemoFlag { + [pbr::OriginalName("TestDemoFlag_A")] A = 1, + [pbr::OriginalName("TestDemoFlag_B")] B = 2, + [pbr::OriginalName("TestDemoFlag_D")] D = 3, + } + + public enum TestETestUeType { + [pbr::OriginalName("TestETestUeType_WHITE")] White = 0, + [pbr::OriginalName("TestETestUeType_BLACK")] Black = 1, + } + + public enum TestETestEmptyEnum { + [pbr::OriginalName("TestETestEmptyEnum_EMPTY_PLACEHOLDER")] EmptyPlaceholder = 0, + } + + public enum TestETestEmptyEnum2 { + [pbr::OriginalName("TestETestEmptyEnum2_SMALL_THAN_256")] SmallThan256 = 255, + [pbr::OriginalName("TestETestEmptyEnum2_X_256")] X256 = 256, + [pbr::OriginalName("TestETestEmptyEnum2_X_257")] X257 = 257, + } + + public enum TestAudioType { + [pbr::OriginalName("TestAudioType_UNKNOWN")] Unknown = 0, + [pbr::OriginalName("TestAudioType_ACC")] Acc = 1, + [pbr::OriginalName("TestAudioType_AIFF")] Aiff = 2, + } + + public enum TestETestQuality { + [pbr::OriginalName("TestETestQuality_A")] A = 1, + [pbr::OriginalName("TestETestQuality_B")] B = 2, + [pbr::OriginalName("TestETestQuality_C")] C = 3, + [pbr::OriginalName("TestETestQuality_D")] D = 4, + } + + public enum TestAccessFlag { + [pbr::OriginalName("TestAccessFlag_WRITE")] Write = 1, + [pbr::OriginalName("TestAccessFlag_READ")] Read = 2, + [pbr::OriginalName("TestAccessFlag_TRUNCATE")] Truncate = 4, + [pbr::OriginalName("TestAccessFlag_NEW")] New = 8, + [pbr::OriginalName("TestAccessFlag_READ_WRITE")] ReadWrite = 3, + } + + #endregion + + #region Messages + /// + /// luban internal types begin + /// + public sealed partial class Vector2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2(Vector2 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2 Clone() { + return new Vector2(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector2 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3(Vector3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3 Clone() { + return new Vector3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector4 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector4()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4(Vector4 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + w_ = other.w_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4 Clone() { + return new Vector4(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + /// Field number for the "w" field. + public const int WFieldNumber = 4; + private readonly static float WDefaultValue = 0F; + + private float w_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float W { + get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } + set { + _hasBits0 |= 8; + w_ = value; + } + } + /// Gets whether the "w" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasW { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "w" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearW() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector4); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector4 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (HasW) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector4 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.HasW) { + W = other.W; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard(AiBlackboard other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parentName_ = other.parentName_; + keys_ = other.keys_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard Clone() { + return new AiBlackboard(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parent_name" field. + public const int ParentNameFieldNumber = 3; + private readonly static string ParentNameDefaultValue = ""; + + private string parentName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParentName { + get { return parentName_ ?? ParentNameDefaultValue; } + set { + parentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "parent_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParentName { + get { return parentName_ != null; } + } + /// Clears the value of the "parent_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParentName() { + parentName_ = null; + } + + /// Field number for the "keys" field. + public const int KeysFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_keys_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiBlackboardKey.Parser); + private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Keys { + get { return keys_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ParentName != other.ParentName) return false; + if(!keys_.Equals(other.keys_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasParentName) hash ^= ParentName.GetHashCode(); + hash ^= keys_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(ref output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasParentName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentName); + } + size += keys_.CalculateSize(_repeated_keys_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboard other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasParentName) { + ParentName = other.ParentName; + } + keys_.Add(other.keys_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(input, _repeated_keys_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey(AiBlackboardKey other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + type_ = other.type_; + typeClassName_ = other.typeClassName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey Clone() { + return new AiBlackboardKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private readonly static global::Cfg.AiEKeyType TypeDefaultValue = global::Cfg.AiEKeyType.Bool; + + private global::Cfg.AiEKeyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEKeyType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "type_class_name" field. + public const int TypeClassNameFieldNumber = 5; + private readonly static string TypeClassNameDefaultValue = ""; + + private string typeClassName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TypeClassName { + get { return typeClassName_ ?? TypeClassNameDefaultValue; } + set { + typeClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type_class_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTypeClassName { + get { return typeClassName_ != null; } + } + /// Clears the value of the "type_class_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTypeClassName() { + typeClassName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (Type != other.Type) return false; + if (TypeClassName != other.TypeClassName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTypeClassName) hash ^= TypeClassName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasTypeClassName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeClassName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKey other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasTypeClassName) { + TypeClassName = other.TypeClassName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree(AiBehaviorTree other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + blackboardId_ = other.blackboardId_; + root_ = other.root_ != null ? other.root_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree Clone() { + return new AiBehaviorTree(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "blackboard_id" field. + public const int BlackboardIdFieldNumber = 4; + private readonly static string BlackboardIdDefaultValue = ""; + + private string blackboardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardId { + get { return blackboardId_ ?? BlackboardIdDefaultValue; } + set { + blackboardId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardId { + get { return blackboardId_ != null; } + } + /// Clears the value of the "blackboard_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardId() { + blackboardId_ = null; + } + + /// Field number for the "root" field. + public const int RootFieldNumber = 5; + private global::Cfg.AiComposeNode root_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiComposeNode Root { + get { return root_; } + set { + root_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (BlackboardId != other.BlackboardId) return false; + if (!object.Equals(Root, other.Root)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasBlackboardId) hash ^= BlackboardId.GetHashCode(); + if (root_ != null) hash ^= Root.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasBlackboardId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardId); + } + if (root_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Root); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBehaviorTree other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasBlackboardId) { + BlackboardId = other.BlackboardId; + } + if (other.root_ != null) { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + Root.MergeFrom(other.Root); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode(AiNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode Clone() { + return new AiNode(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiService : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiService()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService(AiService other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService Clone() { + return new AiService(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiService); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiService other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiService other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeSetDefaultFocus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeSetDefaultFocus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus(AiUeSetDefaultFocus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + keyboardKey_ = other.keyboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus Clone() { + return new AiUeSetDefaultFocus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 3; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeSetDefaultFocus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeSetDefaultFocus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (KeyboardKey != other.KeyboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeSetDefaultFocus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiExecuteTimeStatistic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiExecuteTimeStatistic()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic(AiExecuteTimeStatistic other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic Clone() { + return new AiExecuteTimeStatistic(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiExecuteTimeStatistic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiExecuteTimeStatistic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiExecuteTimeStatistic other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget(AiChooseTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + resultTargetKey_ = other.resultTargetKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget Clone() { + return new AiChooseTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "result_target_key" field. + public const int ResultTargetKeyFieldNumber = 3; + private readonly static string ResultTargetKeyDefaultValue = ""; + + private string resultTargetKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultTargetKey { + get { return resultTargetKey_ ?? ResultTargetKeyDefaultValue; } + set { + resultTargetKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_target_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultTargetKey { + get { return resultTargetKey_ != null; } + } + /// Clears the value of the "result_target_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultTargetKey() { + resultTargetKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (ResultTargetKey != other.ResultTargetKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasResultTargetKey) hash ^= ResultTargetKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasResultTargetKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultTargetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasResultTargetKey) { + ResultTargetKey = other.ResultTargetKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeepFaceTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeepFaceTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget(AiKeepFaceTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + targetActorKey_ = other.targetActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget Clone() { + return new AiKeepFaceTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 3; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeepFaceTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeepFaceTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (TargetActorKey != other.TargetActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeepFaceTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiGetOwnerPlayer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiGetOwnerPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer(AiGetOwnerPlayer other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + playerActorKey_ = other.playerActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer Clone() { + return new AiGetOwnerPlayer(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "player_actor_key" field. + public const int PlayerActorKeyFieldNumber = 3; + private readonly static string PlayerActorKeyDefaultValue = ""; + + private string playerActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayerActorKey { + get { return playerActorKey_ ?? PlayerActorKeyDefaultValue; } + set { + playerActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "player_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerActorKey { + get { return playerActorKey_ != null; } + } + /// Clears the value of the "player_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerActorKey() { + playerActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiGetOwnerPlayer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiGetOwnerPlayer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (PlayerActorKey != other.PlayerActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasPlayerActorKey) hash ^= PlayerActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasPlayerActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiGetOwnerPlayer other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasPlayerActorKey) { + PlayerActorKey = other.PlayerActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUpdateDailyBehaviorProps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUpdateDailyBehaviorProps()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps(AiUpdateDailyBehaviorProps other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + satietyKey_ = other.satietyKey_; + energyKey_ = other.energyKey_; + moodKey_ = other.moodKey_; + satietyLowerThresholdKey_ = other.satietyLowerThresholdKey_; + satietyUpperThresholdKey_ = other.satietyUpperThresholdKey_; + energyLowerThresholdKey_ = other.energyLowerThresholdKey_; + energyUpperThresholdKey_ = other.energyUpperThresholdKey_; + moodLowerThresholdKey_ = other.moodLowerThresholdKey_; + moodUpperThresholdKey_ = other.moodUpperThresholdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps Clone() { + return new AiUpdateDailyBehaviorProps(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "satiety_key" field. + public const int SatietyKeyFieldNumber = 3; + private readonly static string SatietyKeyDefaultValue = ""; + + private string satietyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyKey { + get { return satietyKey_ ?? SatietyKeyDefaultValue; } + set { + satietyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyKey { + get { return satietyKey_ != null; } + } + /// Clears the value of the "satiety_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyKey() { + satietyKey_ = null; + } + + /// Field number for the "energy_key" field. + public const int EnergyKeyFieldNumber = 4; + private readonly static string EnergyKeyDefaultValue = ""; + + private string energyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyKey { + get { return energyKey_ ?? EnergyKeyDefaultValue; } + set { + energyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyKey { + get { return energyKey_ != null; } + } + /// Clears the value of the "energy_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyKey() { + energyKey_ = null; + } + + /// Field number for the "mood_key" field. + public const int MoodKeyFieldNumber = 5; + private readonly static string MoodKeyDefaultValue = ""; + + private string moodKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodKey { + get { return moodKey_ ?? MoodKeyDefaultValue; } + set { + moodKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodKey { + get { return moodKey_ != null; } + } + /// Clears the value of the "mood_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodKey() { + moodKey_ = null; + } + + /// Field number for the "satiety_lower_threshold_key" field. + public const int SatietyLowerThresholdKeyFieldNumber = 6; + private readonly static string SatietyLowerThresholdKeyDefaultValue = ""; + + private string satietyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ ?? SatietyLowerThresholdKeyDefaultValue; } + set { + satietyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ != null; } + } + /// Clears the value of the "satiety_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyLowerThresholdKey() { + satietyLowerThresholdKey_ = null; + } + + /// Field number for the "satiety_upper_threshold_key" field. + public const int SatietyUpperThresholdKeyFieldNumber = 7; + private readonly static string SatietyUpperThresholdKeyDefaultValue = ""; + + private string satietyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ ?? SatietyUpperThresholdKeyDefaultValue; } + set { + satietyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ != null; } + } + /// Clears the value of the "satiety_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyUpperThresholdKey() { + satietyUpperThresholdKey_ = null; + } + + /// Field number for the "energy_lower_threshold_key" field. + public const int EnergyLowerThresholdKeyFieldNumber = 8; + private readonly static string EnergyLowerThresholdKeyDefaultValue = ""; + + private string energyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ ?? EnergyLowerThresholdKeyDefaultValue; } + set { + energyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ != null; } + } + /// Clears the value of the "energy_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLowerThresholdKey() { + energyLowerThresholdKey_ = null; + } + + /// Field number for the "energy_upper_threshold_key" field. + public const int EnergyUpperThresholdKeyFieldNumber = 9; + private readonly static string EnergyUpperThresholdKeyDefaultValue = ""; + + private string energyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ ?? EnergyUpperThresholdKeyDefaultValue; } + set { + energyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ != null; } + } + /// Clears the value of the "energy_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyUpperThresholdKey() { + energyUpperThresholdKey_ = null; + } + + /// Field number for the "mood_lower_threshold_key" field. + public const int MoodLowerThresholdKeyFieldNumber = 10; + private readonly static string MoodLowerThresholdKeyDefaultValue = ""; + + private string moodLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodLowerThresholdKey { + get { return moodLowerThresholdKey_ ?? MoodLowerThresholdKeyDefaultValue; } + set { + moodLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodLowerThresholdKey { + get { return moodLowerThresholdKey_ != null; } + } + /// Clears the value of the "mood_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodLowerThresholdKey() { + moodLowerThresholdKey_ = null; + } + + /// Field number for the "mood_upper_threshold_key" field. + public const int MoodUpperThresholdKeyFieldNumber = 11; + private readonly static string MoodUpperThresholdKeyDefaultValue = ""; + + private string moodUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodUpperThresholdKey { + get { return moodUpperThresholdKey_ ?? MoodUpperThresholdKeyDefaultValue; } + set { + moodUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodUpperThresholdKey { + get { return moodUpperThresholdKey_ != null; } + } + /// Clears the value of the "mood_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodUpperThresholdKey() { + moodUpperThresholdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUpdateDailyBehaviorProps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUpdateDailyBehaviorProps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (SatietyKey != other.SatietyKey) return false; + if (EnergyKey != other.EnergyKey) return false; + if (MoodKey != other.MoodKey) return false; + if (SatietyLowerThresholdKey != other.SatietyLowerThresholdKey) return false; + if (SatietyUpperThresholdKey != other.SatietyUpperThresholdKey) return false; + if (EnergyLowerThresholdKey != other.EnergyLowerThresholdKey) return false; + if (EnergyUpperThresholdKey != other.EnergyUpperThresholdKey) return false; + if (MoodLowerThresholdKey != other.MoodLowerThresholdKey) return false; + if (MoodUpperThresholdKey != other.MoodUpperThresholdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasSatietyKey) hash ^= SatietyKey.GetHashCode(); + if (HasEnergyKey) hash ^= EnergyKey.GetHashCode(); + if (HasMoodKey) hash ^= MoodKey.GetHashCode(); + if (HasSatietyLowerThresholdKey) hash ^= SatietyLowerThresholdKey.GetHashCode(); + if (HasSatietyUpperThresholdKey) hash ^= SatietyUpperThresholdKey.GetHashCode(); + if (HasEnergyLowerThresholdKey) hash ^= EnergyLowerThresholdKey.GetHashCode(); + if (HasEnergyUpperThresholdKey) hash ^= EnergyUpperThresholdKey.GetHashCode(); + if (HasMoodLowerThresholdKey) hash ^= MoodLowerThresholdKey.GetHashCode(); + if (HasMoodUpperThresholdKey) hash ^= MoodUpperThresholdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasSatietyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyKey); + } + if (HasEnergyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyKey); + } + if (HasMoodKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUpdateDailyBehaviorProps other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasSatietyKey) { + SatietyKey = other.SatietyKey; + } + if (other.HasEnergyKey) { + EnergyKey = other.EnergyKey; + } + if (other.HasMoodKey) { + MoodKey = other.MoodKey; + } + if (other.HasSatietyLowerThresholdKey) { + SatietyLowerThresholdKey = other.SatietyLowerThresholdKey; + } + if (other.HasSatietyUpperThresholdKey) { + SatietyUpperThresholdKey = other.SatietyUpperThresholdKey; + } + if (other.HasEnergyLowerThresholdKey) { + EnergyLowerThresholdKey = other.EnergyLowerThresholdKey; + } + if (other.HasEnergyUpperThresholdKey) { + EnergyUpperThresholdKey = other.EnergyUpperThresholdKey; + } + if (other.HasMoodLowerThresholdKey) { + MoodLowerThresholdKey = other.MoodLowerThresholdKey; + } + if (other.HasMoodUpperThresholdKey) { + MoodUpperThresholdKey = other.MoodUpperThresholdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDecorator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator(AiDecorator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator Clone() { + return new AiDecorator(this); + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDecorator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeLoop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeLoop()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop(AiUeLoop other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + numLoops_ = other.numLoops_; + infiniteLoop_ = other.infiniteLoop_; + infiniteLoopTimeoutTime_ = other.infiniteLoopTimeoutTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop Clone() { + return new AiUeLoop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "num_loops" field. + public const int NumLoopsFieldNumber = 4; + private readonly static int NumLoopsDefaultValue = 0; + + private int numLoops_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumLoops { + get { if ((_hasBits0 & 4) != 0) { return numLoops_; } else { return NumLoopsDefaultValue; } } + set { + _hasBits0 |= 4; + numLoops_ = value; + } + } + /// Gets whether the "num_loops" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumLoops { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num_loops" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumLoops() { + _hasBits0 &= ~4; + } + + /// Field number for the "infinite_loop" field. + public const int InfiniteLoopFieldNumber = 5; + private readonly static bool InfiniteLoopDefaultValue = false; + + private bool infiniteLoop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InfiniteLoop { + get { if ((_hasBits0 & 8) != 0) { return infiniteLoop_; } else { return InfiniteLoopDefaultValue; } } + set { + _hasBits0 |= 8; + infiniteLoop_ = value; + } + } + /// Gets whether the "infinite_loop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoop { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "infinite_loop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoop() { + _hasBits0 &= ~8; + } + + /// Field number for the "infinite_loop_timeout_time" field. + public const int InfiniteLoopTimeoutTimeFieldNumber = 6; + private readonly static float InfiniteLoopTimeoutTimeDefaultValue = 0F; + + private float infiniteLoopTimeoutTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float InfiniteLoopTimeoutTime { + get { if ((_hasBits0 & 16) != 0) { return infiniteLoopTimeoutTime_; } else { return InfiniteLoopTimeoutTimeDefaultValue; } } + set { + _hasBits0 |= 16; + infiniteLoopTimeoutTime_ = value; + } + } + /// Gets whether the "infinite_loop_timeout_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoopTimeoutTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "infinite_loop_timeout_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoopTimeoutTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeLoop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeLoop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NumLoops != other.NumLoops) return false; + if (InfiniteLoop != other.InfiniteLoop) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfiniteLoopTimeoutTime, other.InfiniteLoopTimeoutTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNumLoops) hash ^= NumLoops.GetHashCode(); + if (HasInfiniteLoop) hash ^= InfiniteLoop.GetHashCode(); + if (HasInfiniteLoopTimeoutTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfiniteLoopTimeoutTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNumLoops) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumLoops); + } + if (HasInfiniteLoop) { + size += 1 + 1; + } + if (HasInfiniteLoopTimeoutTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeLoop other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNumLoops) { + NumLoops = other.NumLoops; + } + if (other.HasInfiniteLoop) { + InfiniteLoop = other.InfiniteLoop; + } + if (other.HasInfiniteLoopTimeoutTime) { + InfiniteLoopTimeoutTime = other.InfiniteLoopTimeoutTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeCooldown : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeCooldown()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown(AiUeCooldown other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + cooldownTime_ = other.cooldownTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown Clone() { + return new AiUeCooldown(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "cooldown_time" field. + public const int CooldownTimeFieldNumber = 4; + private readonly static float CooldownTimeDefaultValue = 0F; + + private float cooldownTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CooldownTime { + get { if ((_hasBits0 & 4) != 0) { return cooldownTime_; } else { return CooldownTimeDefaultValue; } } + set { + _hasBits0 |= 4; + cooldownTime_ = value; + } + } + /// Gets whether the "cooldown_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCooldownTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cooldown_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCooldownTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeCooldown); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeCooldown other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CooldownTime, other.CooldownTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasCooldownTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CooldownTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasCooldownTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeCooldown other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasCooldownTime) { + CooldownTime = other.CooldownTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeTimeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeTimeLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit(AiUeTimeLimit other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + limitTime_ = other.limitTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit Clone() { + return new AiUeTimeLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 4; + private readonly static float LimitTimeDefaultValue = 0F; + + private float limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LimitTime { + get { if ((_hasBits0 & 4) != 0) { return limitTime_; } else { return LimitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + limitTime_ = value; + } + } + /// Gets whether the "limit_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLimitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "limit_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLimitTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeTimeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeTimeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LimitTime, other.LimitTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasLimitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LimitTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasLimitTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeTimeLimit other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasLimitTime) { + LimitTime = other.LimitTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeBlackboard()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard(AiUeBlackboard other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + notifyObserver_ = other.notifyObserver_; + blackboardKey_ = other.blackboardKey_; + keyQuery_ = other.keyQuery_ != null ? other.keyQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard Clone() { + return new AiUeBlackboard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "notify_observer" field. + public const int NotifyObserverFieldNumber = 4; + private readonly static global::Cfg.AiENotifyObserverMode NotifyObserverDefaultValue = global::Cfg.AiENotifyObserverMode.OnValueChange; + + private global::Cfg.AiENotifyObserverMode notifyObserver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiENotifyObserverMode NotifyObserver { + get { if ((_hasBits0 & 4) != 0) { return notifyObserver_; } else { return NotifyObserverDefaultValue; } } + set { + _hasBits0 |= 4; + notifyObserver_ = value; + } + } + /// Gets whether the "notify_observer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNotifyObserver { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "notify_observer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNotifyObserver() { + _hasBits0 &= ~4; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 5; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + /// Field number for the "key_query" field. + public const int KeyQueryFieldNumber = 6; + private global::Cfg.AiKeyQueryOperator keyQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyQueryOperator KeyQuery { + get { return keyQuery_; } + set { + keyQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NotifyObserver != other.NotifyObserver) return false; + if (BlackboardKey != other.BlackboardKey) return false; + if (!object.Equals(KeyQuery, other.KeyQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNotifyObserver) hash ^= NotifyObserver.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (keyQuery_ != null) hash ^= KeyQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNotifyObserver) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NotifyObserver); + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (keyQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeBlackboard other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNotifyObserver) { + NotifyObserver = other.NotifyObserver; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + if (other.keyQuery_ != null) { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + KeyQuery.MergeFrom(other.KeyQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyQueryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyQueryOperator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator(AiKeyQueryOperator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + IsSet = other.IsSet.Clone(); + break; + case ValueOneofCase.IsNotSet: + IsNotSet = other.IsNotSet.Clone(); + break; + case ValueOneofCase.BinaryOperator: + BinaryOperator = other.BinaryOperator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator Clone() { + return new AiKeyQueryOperator(this); + } + + /// Field number for the "IsSet" field. + public const int IsSetFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsSet IsSet { + get { return valueCase_ == ValueOneofCase.IsSet ? (global::Cfg.AiIsSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsSet; + } + } + + /// Field number for the "IsNotSet" field. + public const int IsNotSetFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsNotSet IsNotSet { + get { return valueCase_ == ValueOneofCase.IsNotSet ? (global::Cfg.AiIsNotSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsNotSet; + } + } + + /// Field number for the "BinaryOperator" field. + public const int BinaryOperatorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBinaryOperator BinaryOperator { + get { return valueCase_ == ValueOneofCase.BinaryOperator ? (global::Cfg.AiBinaryOperator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BinaryOperator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + IsSet = 1, + IsNotSet = 2, + BinaryOperator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyQueryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyQueryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IsSet, other.IsSet)) return false; + if (!object.Equals(IsNotSet, other.IsNotSet)) return false; + if (!object.Equals(BinaryOperator, other.BinaryOperator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.IsSet) hash ^= IsSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsNotSet) hash ^= IsNotSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.BinaryOperator) hash ^= BinaryOperator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.IsSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryOperator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyQueryOperator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + if (IsSet == null) { + IsSet = new global::Cfg.AiIsSet(); + } + IsSet.MergeFrom(other.IsSet); + break; + case ValueOneofCase.IsNotSet: + if (IsNotSet == null) { + IsNotSet = new global::Cfg.AiIsNotSet(); + } + IsNotSet.MergeFrom(other.IsNotSet); + break; + case ValueOneofCase.BinaryOperator: + if (BinaryOperator == null) { + BinaryOperator = new global::Cfg.AiBinaryOperator(); + } + BinaryOperator.MergeFrom(other.BinaryOperator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet(AiIsSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet Clone() { + return new AiIsSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiIsNotSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsNotSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet(AiIsNotSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet Clone() { + return new AiIsNotSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsNotSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsNotSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsNotSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiBinaryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBinaryOperator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator(AiBinaryOperator other) : this() { + _hasBits0 = other._hasBits0; + oper_ = other.oper_; + data_ = other.data_ != null ? other.data_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator Clone() { + return new AiBinaryOperator(this); + } + + /// Field number for the "oper" field. + public const int OperFieldNumber = 1; + private readonly static global::Cfg.AiEOperator OperDefaultValue = global::Cfg.AiEOperator.IsEqualTo; + + private global::Cfg.AiEOperator oper_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEOperator Oper { + get { if ((_hasBits0 & 1) != 0) { return oper_; } else { return OperDefaultValue; } } + set { + _hasBits0 |= 1; + oper_ = value; + } + } + /// Gets whether the "oper" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOper { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "oper" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOper() { + _hasBits0 &= ~1; + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private global::Cfg.AiKeyData data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyData Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBinaryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBinaryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Oper != other.Oper) return false; + if (!object.Equals(Data, other.Data)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasOper) hash ^= Oper.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasOper) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Oper); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBinaryOperator other) { + if (other == null) { + return; + } + if (other.HasOper) { + Oper = other.Oper; + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + Data.MergeFrom(other.Data); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData(AiKeyData other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + FloatKeyData = other.FloatKeyData.Clone(); + break; + case ValueOneofCase.IntKeyData: + IntKeyData = other.IntKeyData.Clone(); + break; + case ValueOneofCase.StringKeyData: + StringKeyData = other.StringKeyData.Clone(); + break; + case ValueOneofCase.BlackboardKeyData: + BlackboardKeyData = other.BlackboardKeyData.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData Clone() { + return new AiKeyData(this); + } + + /// Field number for the "FloatKeyData" field. + public const int FloatKeyDataFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFloatKeyData FloatKeyData { + get { return valueCase_ == ValueOneofCase.FloatKeyData ? (global::Cfg.AiFloatKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.FloatKeyData; + } + } + + /// Field number for the "IntKeyData" field. + public const int IntKeyDataFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIntKeyData IntKeyData { + get { return valueCase_ == ValueOneofCase.IntKeyData ? (global::Cfg.AiIntKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IntKeyData; + } + } + + /// Field number for the "StringKeyData" field. + public const int StringKeyDataFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiStringKeyData StringKeyData { + get { return valueCase_ == ValueOneofCase.StringKeyData ? (global::Cfg.AiStringKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.StringKeyData; + } + } + + /// Field number for the "BlackboardKeyData" field. + public const int BlackboardKeyDataFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBlackboardKeyData BlackboardKeyData { + get { return valueCase_ == ValueOneofCase.BlackboardKeyData ? (global::Cfg.AiBlackboardKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlackboardKeyData; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + FloatKeyData = 1, + IntKeyData = 2, + StringKeyData = 3, + BlackboardKeyData = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FloatKeyData, other.FloatKeyData)) return false; + if (!object.Equals(IntKeyData, other.IntKeyData)) return false; + if (!object.Equals(StringKeyData, other.StringKeyData)) return false; + if (!object.Equals(BlackboardKeyData, other.BlackboardKeyData)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.FloatKeyData) hash ^= FloatKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.IntKeyData) hash ^= IntKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.StringKeyData) hash ^= StringKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) hash ^= BlackboardKeyData.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.FloatKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlackboardKeyData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyData other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + if (FloatKeyData == null) { + FloatKeyData = new global::Cfg.AiFloatKeyData(); + } + FloatKeyData.MergeFrom(other.FloatKeyData); + break; + case ValueOneofCase.IntKeyData: + if (IntKeyData == null) { + IntKeyData = new global::Cfg.AiIntKeyData(); + } + IntKeyData.MergeFrom(other.IntKeyData); + break; + case ValueOneofCase.StringKeyData: + if (StringKeyData == null) { + StringKeyData = new global::Cfg.AiStringKeyData(); + } + StringKeyData.MergeFrom(other.StringKeyData); + break; + case ValueOneofCase.BlackboardKeyData: + if (BlackboardKeyData == null) { + BlackboardKeyData = new global::Cfg.AiBlackboardKeyData(); + } + BlackboardKeyData.MergeFrom(other.BlackboardKeyData); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFloatKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFloatKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData(AiFloatKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData Clone() { + return new AiFloatKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static float ValueDefaultValue = 0F; + + private float value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFloatKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFloatKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFloatKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIntKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIntKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData(AiIntKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData Clone() { + return new AiIntKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIntKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIntKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIntKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiStringKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiStringKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData(AiStringKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData Clone() { + return new AiStringKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiStringKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiStringKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiStringKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData(AiBlackboardKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData Clone() { + return new AiBlackboardKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeForceSuccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeForceSuccess()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess(AiUeForceSuccess other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess Clone() { + return new AiUeForceSuccess(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeForceSuccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeForceSuccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeForceSuccess other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsAtLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsAtLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation(AiIsAtLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + acceptableRadius_ = other.acceptableRadius_; + keyboardKey_ = other.keyboardKey_; + inverseCondition_ = other.inverseCondition_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation Clone() { + return new AiIsAtLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 4; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 5; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + /// Field number for the "inverse_condition" field. + public const int InverseConditionFieldNumber = 6; + private readonly static bool InverseConditionDefaultValue = false; + + private bool inverseCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InverseCondition { + get { if ((_hasBits0 & 8) != 0) { return inverseCondition_; } else { return InverseConditionDefaultValue; } } + set { + _hasBits0 |= 8; + inverseCondition_ = value; + } + } + /// Gets whether the "inverse_condition" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInverseCondition { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "inverse_condition" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInverseCondition() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsAtLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsAtLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + if (KeyboardKey != other.KeyboardKey) return false; + if (InverseCondition != other.InverseCondition) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (HasInverseCondition) hash ^= InverseCondition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (HasInverseCondition) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsAtLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + if (other.HasInverseCondition) { + InverseCondition = other.InverseCondition; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDistanceLessThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDistanceLessThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan(AiDistanceLessThan other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + actor1Key_ = other.actor1Key_; + actor2Key_ = other.actor2Key_; + distance_ = other.distance_; + reverseResult_ = other.reverseResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan Clone() { + return new AiDistanceLessThan(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "actor1_key" field. + public const int Actor1KeyFieldNumber = 4; + private readonly static string Actor1KeyDefaultValue = ""; + + private string actor1Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor1Key { + get { return actor1Key_ ?? Actor1KeyDefaultValue; } + set { + actor1Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor1_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor1Key { + get { return actor1Key_ != null; } + } + /// Clears the value of the "actor1_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor1Key() { + actor1Key_ = null; + } + + /// Field number for the "actor2_key" field. + public const int Actor2KeyFieldNumber = 5; + private readonly static string Actor2KeyDefaultValue = ""; + + private string actor2Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor2Key { + get { return actor2Key_ ?? Actor2KeyDefaultValue; } + set { + actor2Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor2_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor2Key { + get { return actor2Key_ != null; } + } + /// Clears the value of the "actor2_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor2Key() { + actor2Key_ = null; + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 6; + private readonly static float DistanceDefaultValue = 0F; + + private float distance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Distance { + get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } + set { + _hasBits0 |= 4; + distance_ = value; + } + } + /// Gets whether the "distance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "distance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistance() { + _hasBits0 &= ~4; + } + + /// Field number for the "reverse_result" field. + public const int ReverseResultFieldNumber = 7; + private readonly static bool ReverseResultDefaultValue = false; + + private bool reverseResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReverseResult { + get { if ((_hasBits0 & 8) != 0) { return reverseResult_; } else { return ReverseResultDefaultValue; } } + set { + _hasBits0 |= 8; + reverseResult_ = value; + } + } + /// Gets whether the "reverse_result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverseResult { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "reverse_result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverseResult() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDistanceLessThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDistanceLessThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (Actor1Key != other.Actor1Key) return false; + if (Actor2Key != other.Actor2Key) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; + if (ReverseResult != other.ReverseResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasActor1Key) hash ^= Actor1Key.GetHashCode(); + if (HasActor2Key) hash ^= Actor2Key.GetHashCode(); + if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); + if (HasReverseResult) hash ^= ReverseResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasActor1Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor1Key); + } + if (HasActor2Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor2Key); + } + if (HasDistance) { + size += 1 + 4; + } + if (HasReverseResult) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDistanceLessThan other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasActor1Key) { + Actor1Key = other.Actor1Key; + } + if (other.HasActor2Key) { + Actor2Key = other.Actor2Key; + } + if (other.HasDistance) { + Distance = other.Distance; + } + if (other.HasReverseResult) { + ReverseResult = other.ReverseResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFlowNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFlowNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode(AiFlowNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode Clone() { + return new AiFlowNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFlowNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFlowNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFlowNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiComposeNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiComposeNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode(AiComposeNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode Clone() { + return new AiComposeNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiComposeNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiComposeNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiComposeNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSequence()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence(AiSequence other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence Clone() { + return new AiSequence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSequence other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSelector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSelector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector(AiSelector other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector Clone() { + return new AiSelector(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSelector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSelector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSelector other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSimpleParallel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSimpleParallel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel(AiSimpleParallel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + finishMode_ = other.finishMode_; + mainTask_ = other.mainTask_ != null ? other.mainTask_.Clone() : null; + backgroundNode_ = other.backgroundNode_ != null ? other.backgroundNode_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel Clone() { + return new AiSimpleParallel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "finish_mode" field. + public const int FinishModeFieldNumber = 5; + private readonly static global::Cfg.AiEFinishMode FinishModeDefaultValue = global::Cfg.AiEFinishMode.Immediate; + + private global::Cfg.AiEFinishMode finishMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFinishMode FinishMode { + get { if ((_hasBits0 & 2) != 0) { return finishMode_; } else { return FinishModeDefaultValue; } } + set { + _hasBits0 |= 2; + finishMode_ = value; + } + } + /// Gets whether the "finish_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFinishMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "finish_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFinishMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "main_task" field. + public const int MainTaskFieldNumber = 6; + private global::Cfg.AiTask mainTask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiTask MainTask { + get { return mainTask_; } + set { + mainTask_ = value; + } + } + + /// Field number for the "background_node" field. + public const int BackgroundNodeFieldNumber = 7; + private global::Cfg.AiFlowNode backgroundNode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFlowNode BackgroundNode { + get { return backgroundNode_; } + set { + backgroundNode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSimpleParallel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSimpleParallel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (FinishMode != other.FinishMode) return false; + if (!object.Equals(MainTask, other.MainTask)) return false; + if (!object.Equals(BackgroundNode, other.BackgroundNode)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasFinishMode) hash ^= FinishMode.GetHashCode(); + if (mainTask_ != null) hash ^= MainTask.GetHashCode(); + if (backgroundNode_ != null) hash ^= BackgroundNode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasFinishMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinishMode); + } + if (mainTask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainTask); + } + if (backgroundNode_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundNode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSimpleParallel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasFinishMode) { + FinishMode = other.FinishMode; + } + if (other.mainTask_ != null) { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + MainTask.MergeFrom(other.MainTask); + } + if (other.backgroundNode_ != null) { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + BackgroundNode.MergeFrom(other.BackgroundNode); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTask : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTask()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask(AiTask other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask Clone() { + return new AiTask(this); + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTask); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTask other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTask other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWait : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWait()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait(AiUeWait other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + waitTime_ = other.waitTime_; + randomDeviation_ = other.randomDeviation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait Clone() { + return new AiUeWait(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "wait_time" field. + public const int WaitTimeFieldNumber = 6; + private readonly static float WaitTimeDefaultValue = 0F; + + private float waitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WaitTime { + get { if ((_hasBits0 & 4) != 0) { return waitTime_; } else { return WaitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + waitTime_ = value; + } + } + /// Gets whether the "wait_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWaitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "wait_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWaitTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "random_deviation" field. + public const int RandomDeviationFieldNumber = 7; + private readonly static float RandomDeviationDefaultValue = 0F; + + private float randomDeviation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RandomDeviation { + get { if ((_hasBits0 & 8) != 0) { return randomDeviation_; } else { return RandomDeviationDefaultValue; } } + set { + _hasBits0 |= 8; + randomDeviation_ = value; + } + } + /// Gets whether the "random_deviation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRandomDeviation { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "random_deviation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRandomDeviation() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWait); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWait other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WaitTime, other.WaitTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RandomDeviation, other.RandomDeviation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasWaitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WaitTime); + if (HasRandomDeviation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RandomDeviation); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasWaitTime) { + size += 1 + 4; + } + if (HasRandomDeviation) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWait other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasWaitTime) { + WaitTime = other.WaitTime; + } + if (other.HasRandomDeviation) { + RandomDeviation = other.RandomDeviation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWaitBlackboardTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWaitBlackboardTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime(AiUeWaitBlackboardTime other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + blackboardKey_ = other.blackboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime Clone() { + return new AiUeWaitBlackboardTime(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 6; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWaitBlackboardTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWaitBlackboardTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (BlackboardKey != other.BlackboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWaitBlackboardTime other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget(AiMoveToTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget Clone() { + return new AiMoveToTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseSkill()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill(AiChooseSkill other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + resultSkillIdKey_ = other.resultSkillIdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill Clone() { + return new AiChooseSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "result_skill_id_key" field. + public const int ResultSkillIdKeyFieldNumber = 7; + private readonly static string ResultSkillIdKeyDefaultValue = ""; + + private string resultSkillIdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultSkillIdKey { + get { return resultSkillIdKey_ ?? ResultSkillIdKeyDefaultValue; } + set { + resultSkillIdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_skill_id_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultSkillIdKey { + get { return resultSkillIdKey_ != null; } + } + /// Clears the value of the "result_skill_id_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultSkillIdKey() { + resultSkillIdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (ResultSkillIdKey != other.ResultSkillIdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasResultSkillIdKey) hash ^= ResultSkillIdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasResultSkillIdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultSkillIdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseSkill other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasResultSkillIdKey) { + ResultSkillIdKey = other.ResultSkillIdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToRandomLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToRandomLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation(AiMoveToRandomLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + originPositionKey_ = other.originPositionKey_; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation Clone() { + return new AiMoveToRandomLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "origin_position_key" field. + public const int OriginPositionKeyFieldNumber = 6; + private readonly static string OriginPositionKeyDefaultValue = ""; + + private string originPositionKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OriginPositionKey { + get { return originPositionKey_ ?? OriginPositionKeyDefaultValue; } + set { + originPositionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "origin_position_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOriginPositionKey { + get { return originPositionKey_ != null; } + } + /// Clears the value of the "origin_position_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOriginPositionKey() { + originPositionKey_ = null; + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 7; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 4) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 4; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToRandomLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToRandomLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (OriginPositionKey != other.OriginPositionKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasOriginPositionKey) hash ^= OriginPositionKey.GetHashCode(); + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasOriginPositionKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginPositionKey); + } + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToRandomLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasOriginPositionKey) { + OriginPositionKey = other.OriginPositionKey; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation(AiMoveToLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + location_ = other.location_ != null ? other.location_.Clone() : null; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation Clone() { + return new AiMoveToLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 6; + private global::Cfg.Vector3 location_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 Location { + get { return location_; } + set { + location_ = value; + } + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!object.Equals(Location, other.Location)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (location_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Location); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (location_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Location); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + Location.MergeFrom(other.Location); + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + input.ReadMessage(Location); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + input.ReadMessage(Location); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDebugPrint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDebugPrint()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint(AiDebugPrint other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint Clone() { + return new AiDebugPrint(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 6; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDebugPrint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDebugPrint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDebugPrint other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz(BlueprintClazz other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Interface: + Interface = other.Interface.Clone(); + break; + case ValueOneofCase.NormalClazz: + NormalClazz = other.NormalClazz.Clone(); + break; + case ValueOneofCase.EnumClazz: + EnumClazz = other.EnumClazz.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz Clone() { + return new BlueprintClazz(this); + } + + /// Field number for the "Interface" field. + public const int InterfaceFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintInterface Interface { + get { return valueCase_ == ValueOneofCase.Interface ? (global::Cfg.BlueprintInterface) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Interface; + } + } + + /// Field number for the "NormalClazz" field. + public const int NormalClazzFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintNormalClazz NormalClazz { + get { return valueCase_ == ValueOneofCase.NormalClazz ? (global::Cfg.BlueprintNormalClazz) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.NormalClazz; + } + } + + /// Field number for the "EnumClazz" field. + public const int EnumClazzFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintEnumClazz EnumClazz { + get { return valueCase_ == ValueOneofCase.EnumClazz ? (global::Cfg.BlueprintEnumClazz) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.EnumClazz; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Interface = 1, + NormalClazz = 2, + EnumClazz = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interface, other.Interface)) return false; + if (!object.Equals(NormalClazz, other.NormalClazz)) return false; + if (!object.Equals(EnumClazz, other.EnumClazz)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Interface) hash ^= Interface.GetHashCode(); + if (valueCase_ == ValueOneofCase.NormalClazz) hash ^= NormalClazz.GetHashCode(); + if (valueCase_ == ValueOneofCase.EnumClazz) hash ^= EnumClazz.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Interface) { + output.WriteRawTag(10); + output.WriteMessage(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + output.WriteRawTag(18); + output.WriteMessage(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + output.WriteRawTag(26); + output.WriteMessage(EnumClazz); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Interface) { + output.WriteRawTag(10); + output.WriteMessage(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + output.WriteRawTag(18); + output.WriteMessage(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + output.WriteRawTag(26); + output.WriteMessage(EnumClazz); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Interface) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnumClazz); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintClazz other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Interface: + if (Interface == null) { + Interface = new global::Cfg.BlueprintInterface(); + } + Interface.MergeFrom(other.Interface); + break; + case ValueOneofCase.NormalClazz: + if (NormalClazz == null) { + NormalClazz = new global::Cfg.BlueprintNormalClazz(); + } + NormalClazz.MergeFrom(other.NormalClazz); + break; + case ValueOneofCase.EnumClazz: + if (EnumClazz == null) { + EnumClazz = new global::Cfg.BlueprintEnumClazz(); + } + EnumClazz.MergeFrom(other.EnumClazz); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BlueprintInterface subBuilder = new global::Cfg.BlueprintInterface(); + if (valueCase_ == ValueOneofCase.Interface) { + subBuilder.MergeFrom(Interface); + } + input.ReadMessage(subBuilder); + Interface = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintNormalClazz subBuilder = new global::Cfg.BlueprintNormalClazz(); + if (valueCase_ == ValueOneofCase.NormalClazz) { + subBuilder.MergeFrom(NormalClazz); + } + input.ReadMessage(subBuilder); + NormalClazz = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintEnumClazz subBuilder = new global::Cfg.BlueprintEnumClazz(); + if (valueCase_ == ValueOneofCase.EnumClazz) { + subBuilder.MergeFrom(EnumClazz); + } + input.ReadMessage(subBuilder); + EnumClazz = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BlueprintInterface subBuilder = new global::Cfg.BlueprintInterface(); + if (valueCase_ == ValueOneofCase.Interface) { + subBuilder.MergeFrom(Interface); + } + input.ReadMessage(subBuilder); + Interface = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintNormalClazz subBuilder = new global::Cfg.BlueprintNormalClazz(); + if (valueCase_ == ValueOneofCase.NormalClazz) { + subBuilder.MergeFrom(NormalClazz); + } + input.ReadMessage(subBuilder); + NormalClazz = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintEnumClazz subBuilder = new global::Cfg.BlueprintEnumClazz(); + if (valueCase_ == ValueOneofCase.EnumClazz) { + subBuilder.MergeFrom(EnumClazz); + } + input.ReadMessage(subBuilder); + EnumClazz = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintMethod()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod(BlueprintMethod other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.AbstraceMethod: + AbstraceMethod = other.AbstraceMethod.Clone(); + break; + case ValueOneofCase.ExternalMethod: + ExternalMethod = other.ExternalMethod.Clone(); + break; + case ValueOneofCase.BlueprintMethod_: + BlueprintMethod_ = other.BlueprintMethod_.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod Clone() { + return new BlueprintMethod(this); + } + + /// Field number for the "AbstraceMethod" field. + public const int AbstraceMethodFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintAbstraceMethod AbstraceMethod { + get { return valueCase_ == ValueOneofCase.AbstraceMethod ? (global::Cfg.BlueprintAbstraceMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.AbstraceMethod; + } + } + + /// Field number for the "ExternalMethod" field. + public const int ExternalMethodFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintExternalMethod ExternalMethod { + get { return valueCase_ == ValueOneofCase.ExternalMethod ? (global::Cfg.BlueprintExternalMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExternalMethod; + } + } + + /// Field number for the "BlueprintMethod" field. + public const int BlueprintMethod_FieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintBlueprintMethod BlueprintMethod_ { + get { return valueCase_ == ValueOneofCase.BlueprintMethod_ ? (global::Cfg.BlueprintBlueprintMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlueprintMethod_; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + AbstraceMethod = 1, + ExternalMethod = 2, + BlueprintMethod_ = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AbstraceMethod, other.AbstraceMethod)) return false; + if (!object.Equals(ExternalMethod, other.ExternalMethod)) return false; + if (!object.Equals(BlueprintMethod_, other.BlueprintMethod_)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.AbstraceMethod) hash ^= AbstraceMethod.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExternalMethod) hash ^= ExternalMethod.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) hash ^= BlueprintMethod_.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + output.WriteRawTag(10); + output.WriteMessage(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + output.WriteRawTag(18); + output.WriteMessage(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + output.WriteRawTag(26); + output.WriteMessage(BlueprintMethod_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + output.WriteRawTag(10); + output.WriteMessage(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + output.WriteRawTag(18); + output.WriteMessage(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + output.WriteRawTag(26); + output.WriteMessage(BlueprintMethod_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlueprintMethod_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintMethod other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.AbstraceMethod: + if (AbstraceMethod == null) { + AbstraceMethod = new global::Cfg.BlueprintAbstraceMethod(); + } + AbstraceMethod.MergeFrom(other.AbstraceMethod); + break; + case ValueOneofCase.ExternalMethod: + if (ExternalMethod == null) { + ExternalMethod = new global::Cfg.BlueprintExternalMethod(); + } + ExternalMethod.MergeFrom(other.ExternalMethod); + break; + case ValueOneofCase.BlueprintMethod_: + if (BlueprintMethod_ == null) { + BlueprintMethod_ = new global::Cfg.BlueprintBlueprintMethod(); + } + BlueprintMethod_.MergeFrom(other.BlueprintMethod_); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BlueprintAbstraceMethod subBuilder = new global::Cfg.BlueprintAbstraceMethod(); + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + subBuilder.MergeFrom(AbstraceMethod); + } + input.ReadMessage(subBuilder); + AbstraceMethod = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintExternalMethod subBuilder = new global::Cfg.BlueprintExternalMethod(); + if (valueCase_ == ValueOneofCase.ExternalMethod) { + subBuilder.MergeFrom(ExternalMethod); + } + input.ReadMessage(subBuilder); + ExternalMethod = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintBlueprintMethod subBuilder = new global::Cfg.BlueprintBlueprintMethod(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + subBuilder.MergeFrom(BlueprintMethod_); + } + input.ReadMessage(subBuilder); + BlueprintMethod_ = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BlueprintAbstraceMethod subBuilder = new global::Cfg.BlueprintAbstraceMethod(); + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + subBuilder.MergeFrom(AbstraceMethod); + } + input.ReadMessage(subBuilder); + AbstraceMethod = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintExternalMethod subBuilder = new global::Cfg.BlueprintExternalMethod(); + if (valueCase_ == ValueOneofCase.ExternalMethod) { + subBuilder.MergeFrom(ExternalMethod); + } + input.ReadMessage(subBuilder); + ExternalMethod = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintBlueprintMethod subBuilder = new global::Cfg.BlueprintBlueprintMethod(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + subBuilder.MergeFrom(BlueprintMethod_); + } + input.ReadMessage(subBuilder); + BlueprintMethod_ = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintParamInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintParamInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo(BlueprintParamInfo other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + type_ = other.type_; + isRef_ = other.isRef_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo Clone() { + return new BlueprintParamInfo(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + type_ = null; + } + + /// Field number for the "is_ref" field. + public const int IsRefFieldNumber = 3; + private readonly static bool IsRefDefaultValue = false; + + private bool isRef_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsRef { + get { if ((_hasBits0 & 1) != 0) { return isRef_; } else { return IsRefDefaultValue; } } + set { + _hasBits0 |= 1; + isRef_ = value; + } + } + /// Gets whether the "is_ref" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsRef { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_ref" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsRef() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintParamInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintParamInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (IsRef != other.IsRef) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasIsRef) hash ^= IsRef.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasIsRef) { + output.WriteRawTag(24); + output.WriteBool(IsRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasIsRef) { + output.WriteRawTag(24); + output.WriteBool(IsRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasIsRef) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintParamInfo other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasIsRef) { + IsRef = other.IsRef; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 24: { + IsRef = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 24: { + IsRef = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintAbstraceMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintAbstraceMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod(BlueprintAbstraceMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod Clone() { + return new BlueprintAbstraceMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintAbstraceMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintAbstraceMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintAbstraceMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintExternalMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintExternalMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod(BlueprintExternalMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod Clone() { + return new BlueprintExternalMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintExternalMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintExternalMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintExternalMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintBlueprintMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintBlueprintMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod(BlueprintBlueprintMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod Clone() { + return new BlueprintBlueprintMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintBlueprintMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintBlueprintMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintBlueprintMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintInterface : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintInterface()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface(BlueprintInterface other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface Clone() { + return new BlueprintInterface(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintInterface); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintInterface other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintInterface other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintNormalClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintNormalClazz()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz(BlueprintNormalClazz other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + isAbstract_ = other.isAbstract_; + fields_ = other.fields_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz Clone() { + return new BlueprintNormalClazz(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + /// Field number for the "is_abstract" field. + public const int IsAbstractFieldNumber = 5; + private readonly static bool IsAbstractDefaultValue = false; + + private bool isAbstract_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAbstract { + get { if ((_hasBits0 & 1) != 0) { return isAbstract_; } else { return IsAbstractDefaultValue; } } + set { + _hasBits0 |= 1; + isAbstract_ = value; + } + } + /// Gets whether the "is_abstract" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsAbstract { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_abstract" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsAbstract() { + _hasBits0 &= ~1; + } + + /// Field number for the "fields" field. + public const int FieldsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_fields_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.BlueprintField.Parser); + private readonly pbc::RepeatedField fields_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fields { + get { return fields_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintNormalClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintNormalClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + if (IsAbstract != other.IsAbstract) return false; + if(!fields_.Equals(other.fields_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + if (HasIsAbstract) hash ^= IsAbstract.GetHashCode(); + hash ^= fields_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + if (HasIsAbstract) { + output.WriteRawTag(40); + output.WriteBool(IsAbstract); + } + fields_.WriteTo(output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + if (HasIsAbstract) { + output.WriteRawTag(40); + output.WriteBool(IsAbstract); + } + fields_.WriteTo(ref output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + if (HasIsAbstract) { + size += 1 + 1; + } + size += fields_.CalculateSize(_repeated_fields_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintNormalClazz other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + if (other.HasIsAbstract) { + IsAbstract = other.IsAbstract; + } + fields_.Add(other.fields_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + case 40: { + IsAbstract = input.ReadBool(); + break; + } + case 50: { + fields_.AddEntriesFrom(input, _repeated_fields_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + case 40: { + IsAbstract = input.ReadBool(); + break; + } + case 50: { + fields_.AddEntriesFrom(ref input, _repeated_fields_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintField : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintField()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField(BlueprintField other) : this() { + name_ = other.name_; + type_ = other.type_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField Clone() { + return new BlueprintField(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + type_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintField); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintField other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintField other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintEnumClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintEnumClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz(BlueprintEnumClazz other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + enums_ = other.enums_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz Clone() { + return new BlueprintEnumClazz(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + /// Field number for the "enums" field. + public const int EnumsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_enums_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintEnumField.Parser); + private readonly pbc::RepeatedField enums_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Enums { + get { return enums_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintEnumClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintEnumClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + if(!enums_.Equals(other.enums_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + hash ^= enums_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + enums_.WriteTo(output, _repeated_enums_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + enums_.WriteTo(ref output, _repeated_enums_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + size += enums_.CalculateSize(_repeated_enums_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintEnumClazz other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + enums_.Add(other.enums_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(input, _repeated_enums_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(ref input, _repeated_enums_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintEnumField : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintEnumField()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField(BlueprintEnumField other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField Clone() { + return new BlueprintEnumField(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintEnumField); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintEnumField other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintEnumField other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusDropInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusDropInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo(BonusDropInfo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + desc_ = other.desc_; + clientShowItems_ = other.clientShowItems_.Clone(); + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo Clone() { + return new BonusDropInfo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "client_show_items" field. + public const int ClientShowItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_clientShowItems_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BonusShowItemInfo.Parser); + private readonly pbc::RepeatedField clientShowItems_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClientShowItems { + get { return clientShowItems_; } + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 4; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusDropInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusDropInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if(!clientShowItems_.Equals(other.clientShowItems_)) return false; + if (!object.Equals(Bonus, other.Bonus)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= clientShowItems_.GetHashCode(); + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + clientShowItems_.WriteTo(output, _repeated_clientShowItems_codec); + if (bonus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Bonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + clientShowItems_.WriteTo(ref output, _repeated_clientShowItems_codec); + if (bonus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Bonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += clientShowItems_.CalculateSize(_repeated_clientShowItems_codec); + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusDropInfo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasDesc) { + Desc = other.Desc; + } + clientShowItems_.Add(other.clientShowItems_); + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + clientShowItems_.AddEntriesFrom(input, _repeated_clientShowItems_codec); + break; + } + case 34: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + clientShowItems_.AddEntriesFrom(ref input, _repeated_clientShowItems_codec); + break; + } + case 34: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusShowItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusShowItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo(BonusShowItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + itemNum_ = other.itemNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo Clone() { + return new BonusShowItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "item_num" field. + public const int ItemNumFieldNumber = 2; + private readonly static long ItemNumDefaultValue = 0L; + + private long itemNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ItemNum { + get { if ((_hasBits0 & 2) != 0) { return itemNum_; } else { return ItemNumDefaultValue; } } + set { + _hasBits0 |= 2; + itemNum_ = value; + } + } + /// Gets whether the "item_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "item_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemNum() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusShowItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusShowItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (ItemNum != other.ItemNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasItemNum) hash ^= ItemNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasItemNum) { + output.WriteRawTag(16); + output.WriteInt64(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasItemNum) { + output.WriteRawTag(16); + output.WriteInt64(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasItemNum) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ItemNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusShowItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasItemNum) { + ItemNum = other.ItemNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + ItemNum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + ItemNum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus(BonusBonus other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.OneItem: + OneItem = other.OneItem.Clone(); + break; + case ValueOneofCase.OneItems: + OneItems = other.OneItems.Clone(); + break; + case ValueOneofCase.Item: + Item = other.Item.Clone(); + break; + case ValueOneofCase.Items: + Items = other.Items.Clone(); + break; + case ValueOneofCase.CoefficientItem: + CoefficientItem = other.CoefficientItem.Clone(); + break; + case ValueOneofCase.WeightItems: + WeightItems = other.WeightItems.Clone(); + break; + case ValueOneofCase.ProbabilityItems: + ProbabilityItems = other.ProbabilityItems.Clone(); + break; + case ValueOneofCase.MultiBonus: + MultiBonus = other.MultiBonus.Clone(); + break; + case ValueOneofCase.ProbabilityBonus: + ProbabilityBonus = other.ProbabilityBonus.Clone(); + break; + case ValueOneofCase.WeightBonus: + WeightBonus = other.WeightBonus.Clone(); + break; + case ValueOneofCase.DropBonus: + DropBonus = other.DropBonus.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus Clone() { + return new BonusBonus(this); + } + + /// Field number for the "OneItem" field. + public const int OneItemFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusOneItem OneItem { + get { return valueCase_ == ValueOneofCase.OneItem ? (global::Cfg.BonusOneItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.OneItem; + } + } + + /// Field number for the "OneItems" field. + public const int OneItemsFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusOneItems OneItems { + get { return valueCase_ == ValueOneofCase.OneItems ? (global::Cfg.BonusOneItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.OneItems; + } + } + + /// Field number for the "Item" field. + public const int ItemFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItem Item { + get { return valueCase_ == ValueOneofCase.Item ? (global::Cfg.BonusItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Item; + } + } + + /// Field number for the "Items" field. + public const int ItemsFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItems Items { + get { return valueCase_ == ValueOneofCase.Items ? (global::Cfg.BonusItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Items; + } + } + + /// Field number for the "CoefficientItem" field. + public const int CoefficientItemFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusCoefficientItem CoefficientItem { + get { return valueCase_ == ValueOneofCase.CoefficientItem ? (global::Cfg.BonusCoefficientItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CoefficientItem; + } + } + + /// Field number for the "WeightItems" field. + public const int WeightItemsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusWeightItems WeightItems { + get { return valueCase_ == ValueOneofCase.WeightItems ? (global::Cfg.BonusWeightItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.WeightItems; + } + } + + /// Field number for the "ProbabilityItems" field. + public const int ProbabilityItemsFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusProbabilityItems ProbabilityItems { + get { return valueCase_ == ValueOneofCase.ProbabilityItems ? (global::Cfg.BonusProbabilityItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ProbabilityItems; + } + } + + /// Field number for the "MultiBonus" field. + public const int MultiBonusFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusMultiBonus MultiBonus { + get { return valueCase_ == ValueOneofCase.MultiBonus ? (global::Cfg.BonusMultiBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiBonus; + } + } + + /// Field number for the "ProbabilityBonus" field. + public const int ProbabilityBonusFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusProbabilityBonus ProbabilityBonus { + get { return valueCase_ == ValueOneofCase.ProbabilityBonus ? (global::Cfg.BonusProbabilityBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ProbabilityBonus; + } + } + + /// Field number for the "WeightBonus" field. + public const int WeightBonusFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusWeightBonus WeightBonus { + get { return valueCase_ == ValueOneofCase.WeightBonus ? (global::Cfg.BonusWeightBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.WeightBonus; + } + } + + /// Field number for the "DropBonus" field. + public const int DropBonusFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusDropBonus DropBonus { + get { return valueCase_ == ValueOneofCase.DropBonus ? (global::Cfg.BonusDropBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DropBonus; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + OneItem = 1, + OneItems = 2, + Item = 3, + Items = 4, + CoefficientItem = 5, + WeightItems = 6, + ProbabilityItems = 7, + MultiBonus = 8, + ProbabilityBonus = 9, + WeightBonus = 10, + DropBonus = 11, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OneItem, other.OneItem)) return false; + if (!object.Equals(OneItems, other.OneItems)) return false; + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(Items, other.Items)) return false; + if (!object.Equals(CoefficientItem, other.CoefficientItem)) return false; + if (!object.Equals(WeightItems, other.WeightItems)) return false; + if (!object.Equals(ProbabilityItems, other.ProbabilityItems)) return false; + if (!object.Equals(MultiBonus, other.MultiBonus)) return false; + if (!object.Equals(ProbabilityBonus, other.ProbabilityBonus)) return false; + if (!object.Equals(WeightBonus, other.WeightBonus)) return false; + if (!object.Equals(DropBonus, other.DropBonus)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.OneItem) hash ^= OneItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.OneItems) hash ^= OneItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.Item) hash ^= Item.GetHashCode(); + if (valueCase_ == ValueOneofCase.Items) hash ^= Items.GetHashCode(); + if (valueCase_ == ValueOneofCase.CoefficientItem) hash ^= CoefficientItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.WeightItems) hash ^= WeightItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) hash ^= ProbabilityItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.MultiBonus) hash ^= MultiBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) hash ^= ProbabilityBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.WeightBonus) hash ^= WeightBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.DropBonus) hash ^= DropBonus.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.OneItem) { + output.WriteRawTag(10); + output.WriteMessage(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + output.WriteRawTag(18); + output.WriteMessage(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(26); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + output.WriteRawTag(34); + output.WriteMessage(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + output.WriteRawTag(42); + output.WriteMessage(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + output.WriteRawTag(50); + output.WriteMessage(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + output.WriteRawTag(58); + output.WriteMessage(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + output.WriteRawTag(66); + output.WriteMessage(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + output.WriteRawTag(74); + output.WriteMessage(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + output.WriteRawTag(82); + output.WriteMessage(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + output.WriteRawTag(90); + output.WriteMessage(DropBonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.OneItem) { + output.WriteRawTag(10); + output.WriteMessage(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + output.WriteRawTag(18); + output.WriteMessage(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(26); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + output.WriteRawTag(34); + output.WriteMessage(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + output.WriteRawTag(42); + output.WriteMessage(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + output.WriteRawTag(50); + output.WriteMessage(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + output.WriteRawTag(58); + output.WriteMessage(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + output.WriteRawTag(66); + output.WriteMessage(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + output.WriteRawTag(74); + output.WriteMessage(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + output.WriteRawTag(82); + output.WriteMessage(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + output.WriteRawTag(90); + output.WriteMessage(DropBonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.OneItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DropBonus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusBonus other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.OneItem: + if (OneItem == null) { + OneItem = new global::Cfg.BonusOneItem(); + } + OneItem.MergeFrom(other.OneItem); + break; + case ValueOneofCase.OneItems: + if (OneItems == null) { + OneItems = new global::Cfg.BonusOneItems(); + } + OneItems.MergeFrom(other.OneItems); + break; + case ValueOneofCase.Item: + if (Item == null) { + Item = new global::Cfg.BonusItem(); + } + Item.MergeFrom(other.Item); + break; + case ValueOneofCase.Items: + if (Items == null) { + Items = new global::Cfg.BonusItems(); + } + Items.MergeFrom(other.Items); + break; + case ValueOneofCase.CoefficientItem: + if (CoefficientItem == null) { + CoefficientItem = new global::Cfg.BonusCoefficientItem(); + } + CoefficientItem.MergeFrom(other.CoefficientItem); + break; + case ValueOneofCase.WeightItems: + if (WeightItems == null) { + WeightItems = new global::Cfg.BonusWeightItems(); + } + WeightItems.MergeFrom(other.WeightItems); + break; + case ValueOneofCase.ProbabilityItems: + if (ProbabilityItems == null) { + ProbabilityItems = new global::Cfg.BonusProbabilityItems(); + } + ProbabilityItems.MergeFrom(other.ProbabilityItems); + break; + case ValueOneofCase.MultiBonus: + if (MultiBonus == null) { + MultiBonus = new global::Cfg.BonusMultiBonus(); + } + MultiBonus.MergeFrom(other.MultiBonus); + break; + case ValueOneofCase.ProbabilityBonus: + if (ProbabilityBonus == null) { + ProbabilityBonus = new global::Cfg.BonusProbabilityBonus(); + } + ProbabilityBonus.MergeFrom(other.ProbabilityBonus); + break; + case ValueOneofCase.WeightBonus: + if (WeightBonus == null) { + WeightBonus = new global::Cfg.BonusWeightBonus(); + } + WeightBonus.MergeFrom(other.WeightBonus); + break; + case ValueOneofCase.DropBonus: + if (DropBonus == null) { + DropBonus = new global::Cfg.BonusDropBonus(); + } + DropBonus.MergeFrom(other.DropBonus); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BonusOneItem subBuilder = new global::Cfg.BonusOneItem(); + if (valueCase_ == ValueOneofCase.OneItem) { + subBuilder.MergeFrom(OneItem); + } + input.ReadMessage(subBuilder); + OneItem = subBuilder; + break; + } + case 18: { + global::Cfg.BonusOneItems subBuilder = new global::Cfg.BonusOneItems(); + if (valueCase_ == ValueOneofCase.OneItems) { + subBuilder.MergeFrom(OneItems); + } + input.ReadMessage(subBuilder); + OneItems = subBuilder; + break; + } + case 26: { + global::Cfg.BonusItem subBuilder = new global::Cfg.BonusItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 34: { + global::Cfg.BonusItems subBuilder = new global::Cfg.BonusItems(); + if (valueCase_ == ValueOneofCase.Items) { + subBuilder.MergeFrom(Items); + } + input.ReadMessage(subBuilder); + Items = subBuilder; + break; + } + case 42: { + global::Cfg.BonusCoefficientItem subBuilder = new global::Cfg.BonusCoefficientItem(); + if (valueCase_ == ValueOneofCase.CoefficientItem) { + subBuilder.MergeFrom(CoefficientItem); + } + input.ReadMessage(subBuilder); + CoefficientItem = subBuilder; + break; + } + case 50: { + global::Cfg.BonusWeightItems subBuilder = new global::Cfg.BonusWeightItems(); + if (valueCase_ == ValueOneofCase.WeightItems) { + subBuilder.MergeFrom(WeightItems); + } + input.ReadMessage(subBuilder); + WeightItems = subBuilder; + break; + } + case 58: { + global::Cfg.BonusProbabilityItems subBuilder = new global::Cfg.BonusProbabilityItems(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + subBuilder.MergeFrom(ProbabilityItems); + } + input.ReadMessage(subBuilder); + ProbabilityItems = subBuilder; + break; + } + case 66: { + global::Cfg.BonusMultiBonus subBuilder = new global::Cfg.BonusMultiBonus(); + if (valueCase_ == ValueOneofCase.MultiBonus) { + subBuilder.MergeFrom(MultiBonus); + } + input.ReadMessage(subBuilder); + MultiBonus = subBuilder; + break; + } + case 74: { + global::Cfg.BonusProbabilityBonus subBuilder = new global::Cfg.BonusProbabilityBonus(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + subBuilder.MergeFrom(ProbabilityBonus); + } + input.ReadMessage(subBuilder); + ProbabilityBonus = subBuilder; + break; + } + case 82: { + global::Cfg.BonusWeightBonus subBuilder = new global::Cfg.BonusWeightBonus(); + if (valueCase_ == ValueOneofCase.WeightBonus) { + subBuilder.MergeFrom(WeightBonus); + } + input.ReadMessage(subBuilder); + WeightBonus = subBuilder; + break; + } + case 90: { + global::Cfg.BonusDropBonus subBuilder = new global::Cfg.BonusDropBonus(); + if (valueCase_ == ValueOneofCase.DropBonus) { + subBuilder.MergeFrom(DropBonus); + } + input.ReadMessage(subBuilder); + DropBonus = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BonusOneItem subBuilder = new global::Cfg.BonusOneItem(); + if (valueCase_ == ValueOneofCase.OneItem) { + subBuilder.MergeFrom(OneItem); + } + input.ReadMessage(subBuilder); + OneItem = subBuilder; + break; + } + case 18: { + global::Cfg.BonusOneItems subBuilder = new global::Cfg.BonusOneItems(); + if (valueCase_ == ValueOneofCase.OneItems) { + subBuilder.MergeFrom(OneItems); + } + input.ReadMessage(subBuilder); + OneItems = subBuilder; + break; + } + case 26: { + global::Cfg.BonusItem subBuilder = new global::Cfg.BonusItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 34: { + global::Cfg.BonusItems subBuilder = new global::Cfg.BonusItems(); + if (valueCase_ == ValueOneofCase.Items) { + subBuilder.MergeFrom(Items); + } + input.ReadMessage(subBuilder); + Items = subBuilder; + break; + } + case 42: { + global::Cfg.BonusCoefficientItem subBuilder = new global::Cfg.BonusCoefficientItem(); + if (valueCase_ == ValueOneofCase.CoefficientItem) { + subBuilder.MergeFrom(CoefficientItem); + } + input.ReadMessage(subBuilder); + CoefficientItem = subBuilder; + break; + } + case 50: { + global::Cfg.BonusWeightItems subBuilder = new global::Cfg.BonusWeightItems(); + if (valueCase_ == ValueOneofCase.WeightItems) { + subBuilder.MergeFrom(WeightItems); + } + input.ReadMessage(subBuilder); + WeightItems = subBuilder; + break; + } + case 58: { + global::Cfg.BonusProbabilityItems subBuilder = new global::Cfg.BonusProbabilityItems(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + subBuilder.MergeFrom(ProbabilityItems); + } + input.ReadMessage(subBuilder); + ProbabilityItems = subBuilder; + break; + } + case 66: { + global::Cfg.BonusMultiBonus subBuilder = new global::Cfg.BonusMultiBonus(); + if (valueCase_ == ValueOneofCase.MultiBonus) { + subBuilder.MergeFrom(MultiBonus); + } + input.ReadMessage(subBuilder); + MultiBonus = subBuilder; + break; + } + case 74: { + global::Cfg.BonusProbabilityBonus subBuilder = new global::Cfg.BonusProbabilityBonus(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + subBuilder.MergeFrom(ProbabilityBonus); + } + input.ReadMessage(subBuilder); + ProbabilityBonus = subBuilder; + break; + } + case 82: { + global::Cfg.BonusWeightBonus subBuilder = new global::Cfg.BonusWeightBonus(); + if (valueCase_ == ValueOneofCase.WeightBonus) { + subBuilder.MergeFrom(WeightBonus); + } + input.ReadMessage(subBuilder); + WeightBonus = subBuilder; + break; + } + case 90: { + global::Cfg.BonusDropBonus subBuilder = new global::Cfg.BonusDropBonus(); + if (valueCase_ == ValueOneofCase.DropBonus) { + subBuilder.MergeFrom(DropBonus); + } + input.ReadMessage(subBuilder); + DropBonus = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusOneItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusOneItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem(BonusOneItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem Clone() { + return new BonusOneItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusOneItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusOneItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusOneItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusOneItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusOneItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[59]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems(BonusOneItems other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems Clone() { + return new BonusOneItems(this); + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusOneItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusOneItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusOneItems other) { + if (other == null) { + return; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem(BonusItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem Clone() { + return new BonusItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private readonly static int AmountDefaultValue = 0; + + private int amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Amount { + get { if ((_hasBits0 & 2) != 0) { return amount_; } else { return AmountDefaultValue; } } + set { + _hasBits0 |= 2; + amount_ = value; + } + } + /// Gets whether the "amount" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAmount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "amount" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAmount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasAmount) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasAmount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasAmount) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems(BonusItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems Clone() { + return new BonusItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusItem.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusCoefficientItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusCoefficientItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem(BonusCoefficientItem other) : this() { + _hasBits0 = other._hasBits0; + bonusId_ = other.bonusId_; + bonusList_ = other.bonusList_ != null ? other.bonusList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem Clone() { + return new BonusCoefficientItem(this); + } + + /// Field number for the "bonus_id" field. + public const int BonusIdFieldNumber = 1; + private readonly static int BonusIdDefaultValue = 0; + + private int bonusId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BonusId { + get { if ((_hasBits0 & 1) != 0) { return bonusId_; } else { return BonusIdDefaultValue; } } + set { + _hasBits0 |= 1; + bonusId_ = value; + } + } + /// Gets whether the "bonus_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBonusId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bonus_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBonusId() { + _hasBits0 &= ~1; + } + + /// Field number for the "bonus_list" field. + public const int BonusListFieldNumber = 2; + private global::Cfg.BonusItems bonusList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItems BonusList { + get { return bonusList_; } + set { + bonusList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusCoefficientItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusCoefficientItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BonusId != other.BonusId) return false; + if (!object.Equals(BonusList, other.BonusList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBonusId) hash ^= BonusId.GetHashCode(); + if (bonusList_ != null) hash ^= BonusList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBonusId) { + output.WriteRawTag(8); + output.WriteInt32(BonusId); + } + if (bonusList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BonusList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBonusId) { + output.WriteRawTag(8); + output.WriteInt32(BonusId); + } + if (bonusList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BonusList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBonusId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BonusId); + } + if (bonusList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BonusList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusCoefficientItem other) { + if (other == null) { + return; + } + if (other.HasBonusId) { + BonusId = other.BonusId; + } + if (other.bonusList_ != null) { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + BonusList.MergeFrom(other.BonusList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BonusId = input.ReadInt32(); + break; + } + case 18: { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + input.ReadMessage(BonusList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BonusId = input.ReadInt32(); + break; + } + case 18: { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + input.ReadMessage(BonusList); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems(BonusWeightItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems Clone() { + return new BonusWeightItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusWeightItemInfo.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo(BonusWeightItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + weight_ = other.weight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo Clone() { + return new BonusWeightItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 3; + private readonly static int WeightDefaultValue = 0; + + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { if ((_hasBits0 & 4) != 0) { return weight_; } else { return WeightDefaultValue; } } + set { + _hasBits0 |= 4; + weight_ = value; + } + } + /// Gets whether the "weight" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWeight { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "weight" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWeight() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (Weight != other.Weight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasWeight) hash ^= Weight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasWeight) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasWeight) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasWeight) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasWeight) { + Weight = other.Weight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems(BonusProbabilityItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems Clone() { + return new BonusProbabilityItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusProbabilityItemInfo.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo(BonusProbabilityItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + probability_ = other.probability_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo Clone() { + return new BonusProbabilityItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "probability" field. + public const int ProbabilityFieldNumber = 3; + private readonly static float ProbabilityDefaultValue = 0F; + + private float probability_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Probability { + get { if ((_hasBits0 & 4) != 0) { return probability_; } else { return ProbabilityDefaultValue; } } + set { + _hasBits0 |= 4; + probability_ = value; + } + } + /// Gets whether the "probability" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProbability { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "probability" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProbability() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Probability, other.Probability)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasProbability) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Probability); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasProbability) { + output.WriteRawTag(29); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasProbability) { + output.WriteRawTag(29); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasProbability) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasProbability) { + Probability = other.Probability; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 29: { + Probability = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 29: { + Probability = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusMultiBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusMultiBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus(BonusMultiBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus Clone() { + return new BonusMultiBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusBonus.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusMultiBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusMultiBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusMultiBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus(BonusProbabilityBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus Clone() { + return new BonusProbabilityBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusProbabilityBonusInfo.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo(BonusProbabilityBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + probability_ = other.probability_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo Clone() { + return new BonusProbabilityBonusInfo(this); + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 1; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + /// Field number for the "probability" field. + public const int ProbabilityFieldNumber = 2; + private readonly static float ProbabilityDefaultValue = 0F; + + private float probability_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Probability { + get { if ((_hasBits0 & 1) != 0) { return probability_; } else { return ProbabilityDefaultValue; } } + set { + _hasBits0 |= 1; + probability_ = value; + } + } + /// Gets whether the "probability" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProbability { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "probability" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProbability() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Bonus, other.Bonus)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Probability, other.Probability)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (HasProbability) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Probability); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasProbability) { + output.WriteRawTag(21); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasProbability) { + output.WriteRawTag(21); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (HasProbability) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityBonusInfo other) { + if (other == null) { + return; + } + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + if (other.HasProbability) { + Probability = other.Probability; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 21: { + Probability = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 21: { + Probability = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus(BonusWeightBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus Clone() { + return new BonusWeightBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusWeightBonusInfo.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[71]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo(BonusWeightBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + weight_ = other.weight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo Clone() { + return new BonusWeightBonusInfo(this); + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 1; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 2; + private readonly static int WeightDefaultValue = 0; + + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { if ((_hasBits0 & 1) != 0) { return weight_; } else { return WeightDefaultValue; } } + set { + _hasBits0 |= 1; + weight_ = value; + } + } + /// Gets whether the "weight" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWeight { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "weight" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWeight() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Bonus, other.Bonus)) return false; + if (Weight != other.Weight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (HasWeight) hash ^= Weight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasWeight) { + output.WriteRawTag(16); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasWeight) { + output.WriteRawTag(16); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (HasWeight) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightBonusInfo other) { + if (other == null) { + return; + } + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + if (other.HasWeight) { + Weight = other.Weight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 16: { + Weight = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 16: { + Weight = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusDropBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusDropBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[72]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus(BonusDropBonus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus Clone() { + return new BonusDropBonus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusDropBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusDropBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusDropBonus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[73]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig(CommonGlobalConfig other) : this() { + _hasBits0 = other._hasBits0; + bagCapacity_ = other.bagCapacity_; + bagCapacitySpecial_ = other.bagCapacitySpecial_; + bagTempExpendableCapacity_ = other.bagTempExpendableCapacity_; + bagTempToolCapacity_ = other.bagTempToolCapacity_; + bagInitCapacity_ = other.bagInitCapacity_; + quickBagCapacity_ = other.quickBagCapacity_; + clothBagCapacity_ = other.clothBagCapacity_; + clothBagInitCapacity_ = other.clothBagInitCapacity_; + clothBagCapacitySpecial_ = other.clothBagCapacitySpecial_; + bagInitItemsDropId_ = other.bagInitItemsDropId_; + mailBoxCapacity_ = other.mailBoxCapacity_; + damageParamC_ = other.damageParamC_; + damageParamE_ = other.damageParamE_; + damageParamF_ = other.damageParamF_; + damageParamD_ = other.damageParamD_; + roleSpeed_ = other.roleSpeed_; + monsterSpeed_ = other.monsterSpeed_; + initEnergy_ = other.initEnergy_; + initViality_ = other.initViality_; + maxViality_ = other.maxViality_; + perVialityRecoveryTime_ = other.perVialityRecoveryTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig Clone() { + return new CommonGlobalConfig(this); + } + + /// Field number for the "bag_capacity" field. + public const int BagCapacityFieldNumber = 1; + private readonly static int BagCapacityDefaultValue = 0; + + private int bagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacity { + get { if ((_hasBits0 & 1) != 0) { return bagCapacity_; } else { return BagCapacityDefaultValue; } } + set { + _hasBits0 |= 1; + bagCapacity_ = value; + } + } + /// Gets whether the "bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacity { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacity() { + _hasBits0 &= ~1; + } + + /// Field number for the "bag_capacity_special" field. + public const int BagCapacitySpecialFieldNumber = 2; + private readonly static int BagCapacitySpecialDefaultValue = 0; + + private int bagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacitySpecial { + get { if ((_hasBits0 & 2) != 0) { return bagCapacitySpecial_; } else { return BagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 2; + bagCapacitySpecial_ = value; + } + } + /// Gets whether the "bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacitySpecial { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacitySpecial() { + _hasBits0 &= ~2; + } + + /// Field number for the "bag_temp_expendable_capacity" field. + public const int BagTempExpendableCapacityFieldNumber = 3; + private readonly static int BagTempExpendableCapacityDefaultValue = 0; + + private int bagTempExpendableCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempExpendableCapacity { + get { if ((_hasBits0 & 4) != 0) { return bagTempExpendableCapacity_; } else { return BagTempExpendableCapacityDefaultValue; } } + set { + _hasBits0 |= 4; + bagTempExpendableCapacity_ = value; + } + } + /// Gets whether the "bag_temp_expendable_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempExpendableCapacity { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "bag_temp_expendable_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempExpendableCapacity() { + _hasBits0 &= ~4; + } + + /// Field number for the "bag_temp_tool_capacity" field. + public const int BagTempToolCapacityFieldNumber = 4; + private readonly static int BagTempToolCapacityDefaultValue = 0; + + private int bagTempToolCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempToolCapacity { + get { if ((_hasBits0 & 8) != 0) { return bagTempToolCapacity_; } else { return BagTempToolCapacityDefaultValue; } } + set { + _hasBits0 |= 8; + bagTempToolCapacity_ = value; + } + } + /// Gets whether the "bag_temp_tool_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempToolCapacity { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bag_temp_tool_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempToolCapacity() { + _hasBits0 &= ~8; + } + + /// Field number for the "bag_init_capacity" field. + public const int BagInitCapacityFieldNumber = 5; + private readonly static int BagInitCapacityDefaultValue = 0; + + private int bagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitCapacity { + get { if ((_hasBits0 & 16) != 0) { return bagInitCapacity_; } else { return BagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 16; + bagInitCapacity_ = value; + } + } + /// Gets whether the "bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitCapacity { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitCapacity() { + _hasBits0 &= ~16; + } + + /// Field number for the "quick_bag_capacity" field. + public const int QuickBagCapacityFieldNumber = 6; + private readonly static int QuickBagCapacityDefaultValue = 0; + + private int quickBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuickBagCapacity { + get { if ((_hasBits0 & 32) != 0) { return quickBagCapacity_; } else { return QuickBagCapacityDefaultValue; } } + set { + _hasBits0 |= 32; + quickBagCapacity_ = value; + } + } + /// Gets whether the "quick_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuickBagCapacity { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "quick_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuickBagCapacity() { + _hasBits0 &= ~32; + } + + /// Field number for the "cloth_bag_capacity" field. + public const int ClothBagCapacityFieldNumber = 7; + private readonly static int ClothBagCapacityDefaultValue = 0; + + private int clothBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacity { + get { if ((_hasBits0 & 64) != 0) { return clothBagCapacity_; } else { return ClothBagCapacityDefaultValue; } } + set { + _hasBits0 |= 64; + clothBagCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacity { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "cloth_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacity() { + _hasBits0 &= ~64; + } + + /// Field number for the "cloth_bag_init_capacity" field. + public const int ClothBagInitCapacityFieldNumber = 8; + private readonly static int ClothBagInitCapacityDefaultValue = 0; + + private int clothBagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagInitCapacity { + get { if ((_hasBits0 & 128) != 0) { return clothBagInitCapacity_; } else { return ClothBagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 128; + clothBagInitCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagInitCapacity { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "cloth_bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagInitCapacity() { + _hasBits0 &= ~128; + } + + /// Field number for the "cloth_bag_capacity_special" field. + public const int ClothBagCapacitySpecialFieldNumber = 9; + private readonly static int ClothBagCapacitySpecialDefaultValue = 0; + + private int clothBagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacitySpecial { + get { if ((_hasBits0 & 256) != 0) { return clothBagCapacitySpecial_; } else { return ClothBagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 256; + clothBagCapacitySpecial_ = value; + } + } + /// Gets whether the "cloth_bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacitySpecial { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "cloth_bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacitySpecial() { + _hasBits0 &= ~256; + } + + /// Field number for the "bag_init_items_drop_id" field. + public const int BagInitItemsDropIdFieldNumber = 10; + private readonly static int BagInitItemsDropIdDefaultValue = 0; + + private int bagInitItemsDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitItemsDropId { + get { if ((_hasBits0 & 512) != 0) { return bagInitItemsDropId_; } else { return BagInitItemsDropIdDefaultValue; } } + set { + _hasBits0 |= 512; + bagInitItemsDropId_ = value; + } + } + /// Gets whether the "bag_init_items_drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitItemsDropId { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "bag_init_items_drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitItemsDropId() { + _hasBits0 &= ~512; + } + + /// Field number for the "mail_box_capacity" field. + public const int MailBoxCapacityFieldNumber = 11; + private readonly static int MailBoxCapacityDefaultValue = 0; + + private int mailBoxCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MailBoxCapacity { + get { if ((_hasBits0 & 1024) != 0) { return mailBoxCapacity_; } else { return MailBoxCapacityDefaultValue; } } + set { + _hasBits0 |= 1024; + mailBoxCapacity_ = value; + } + } + /// Gets whether the "mail_box_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMailBoxCapacity { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "mail_box_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMailBoxCapacity() { + _hasBits0 &= ~1024; + } + + /// Field number for the "damage_param_c" field. + public const int DamageParamCFieldNumber = 12; + private readonly static float DamageParamCDefaultValue = 0F; + + private float damageParamC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamC { + get { if ((_hasBits0 & 2048) != 0) { return damageParamC_; } else { return DamageParamCDefaultValue; } } + set { + _hasBits0 |= 2048; + damageParamC_ = value; + } + } + /// Gets whether the "damage_param_c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamC { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "damage_param_c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamC() { + _hasBits0 &= ~2048; + } + + /// Field number for the "damage_param_e" field. + public const int DamageParamEFieldNumber = 13; + private readonly static float DamageParamEDefaultValue = 0F; + + private float damageParamE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamE { + get { if ((_hasBits0 & 4096) != 0) { return damageParamE_; } else { return DamageParamEDefaultValue; } } + set { + _hasBits0 |= 4096; + damageParamE_ = value; + } + } + /// Gets whether the "damage_param_e" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamE { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "damage_param_e" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamE() { + _hasBits0 &= ~4096; + } + + /// Field number for the "damage_param_f" field. + public const int DamageParamFFieldNumber = 14; + private readonly static float DamageParamFDefaultValue = 0F; + + private float damageParamF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamF { + get { if ((_hasBits0 & 8192) != 0) { return damageParamF_; } else { return DamageParamFDefaultValue; } } + set { + _hasBits0 |= 8192; + damageParamF_ = value; + } + } + /// Gets whether the "damage_param_f" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamF { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "damage_param_f" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamF() { + _hasBits0 &= ~8192; + } + + /// Field number for the "damage_param_d" field. + public const int DamageParamDFieldNumber = 15; + private readonly static float DamageParamDDefaultValue = 0F; + + private float damageParamD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamD { + get { if ((_hasBits0 & 16384) != 0) { return damageParamD_; } else { return DamageParamDDefaultValue; } } + set { + _hasBits0 |= 16384; + damageParamD_ = value; + } + } + /// Gets whether the "damage_param_d" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamD { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "damage_param_d" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamD() { + _hasBits0 &= ~16384; + } + + /// Field number for the "role_speed" field. + public const int RoleSpeedFieldNumber = 16; + private readonly static float RoleSpeedDefaultValue = 0F; + + private float roleSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RoleSpeed { + get { if ((_hasBits0 & 32768) != 0) { return roleSpeed_; } else { return RoleSpeedDefaultValue; } } + set { + _hasBits0 |= 32768; + roleSpeed_ = value; + } + } + /// Gets whether the "role_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleSpeed { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "role_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleSpeed() { + _hasBits0 &= ~32768; + } + + /// Field number for the "monster_speed" field. + public const int MonsterSpeedFieldNumber = 17; + private readonly static float MonsterSpeedDefaultValue = 0F; + + private float monsterSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float MonsterSpeed { + get { if ((_hasBits0 & 65536) != 0) { return monsterSpeed_; } else { return MonsterSpeedDefaultValue; } } + set { + _hasBits0 |= 65536; + monsterSpeed_ = value; + } + } + /// Gets whether the "monster_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMonsterSpeed { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "monster_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMonsterSpeed() { + _hasBits0 &= ~65536; + } + + /// Field number for the "init_energy" field. + public const int InitEnergyFieldNumber = 18; + private readonly static int InitEnergyDefaultValue = 0; + + private int initEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitEnergy { + get { if ((_hasBits0 & 131072) != 0) { return initEnergy_; } else { return InitEnergyDefaultValue; } } + set { + _hasBits0 |= 131072; + initEnergy_ = value; + } + } + /// Gets whether the "init_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitEnergy { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "init_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitEnergy() { + _hasBits0 &= ~131072; + } + + /// Field number for the "init_viality" field. + public const int InitVialityFieldNumber = 19; + private readonly static int InitVialityDefaultValue = 0; + + private int initViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitViality { + get { if ((_hasBits0 & 262144) != 0) { return initViality_; } else { return InitVialityDefaultValue; } } + set { + _hasBits0 |= 262144; + initViality_ = value; + } + } + /// Gets whether the "init_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitViality { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "init_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitViality() { + _hasBits0 &= ~262144; + } + + /// Field number for the "max_viality" field. + public const int MaxVialityFieldNumber = 20; + private readonly static int MaxVialityDefaultValue = 0; + + private int maxViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxViality { + get { if ((_hasBits0 & 524288) != 0) { return maxViality_; } else { return MaxVialityDefaultValue; } } + set { + _hasBits0 |= 524288; + maxViality_ = value; + } + } + /// Gets whether the "max_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxViality { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "max_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxViality() { + _hasBits0 &= ~524288; + } + + /// Field number for the "per_viality_recovery_time" field. + public const int PerVialityRecoveryTimeFieldNumber = 21; + private readonly static int PerVialityRecoveryTimeDefaultValue = 0; + + private int perVialityRecoveryTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerVialityRecoveryTime { + get { if ((_hasBits0 & 1048576) != 0) { return perVialityRecoveryTime_; } else { return PerVialityRecoveryTimeDefaultValue; } } + set { + _hasBits0 |= 1048576; + perVialityRecoveryTime_ = value; + } + } + /// Gets whether the "per_viality_recovery_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPerVialityRecoveryTime { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "per_viality_recovery_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPerVialityRecoveryTime() { + _hasBits0 &= ~1048576; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BagCapacity != other.BagCapacity) return false; + if (BagCapacitySpecial != other.BagCapacitySpecial) return false; + if (BagTempExpendableCapacity != other.BagTempExpendableCapacity) return false; + if (BagTempToolCapacity != other.BagTempToolCapacity) return false; + if (BagInitCapacity != other.BagInitCapacity) return false; + if (QuickBagCapacity != other.QuickBagCapacity) return false; + if (ClothBagCapacity != other.ClothBagCapacity) return false; + if (ClothBagInitCapacity != other.ClothBagInitCapacity) return false; + if (ClothBagCapacitySpecial != other.ClothBagCapacitySpecial) return false; + if (BagInitItemsDropId != other.BagInitItemsDropId) return false; + if (MailBoxCapacity != other.MailBoxCapacity) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamC, other.DamageParamC)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamE, other.DamageParamE)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamF, other.DamageParamF)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamD, other.DamageParamD)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RoleSpeed, other.RoleSpeed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MonsterSpeed, other.MonsterSpeed)) return false; + if (InitEnergy != other.InitEnergy) return false; + if (InitViality != other.InitViality) return false; + if (MaxViality != other.MaxViality) return false; + if (PerVialityRecoveryTime != other.PerVialityRecoveryTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBagCapacity) hash ^= BagCapacity.GetHashCode(); + if (HasBagCapacitySpecial) hash ^= BagCapacitySpecial.GetHashCode(); + if (HasBagTempExpendableCapacity) hash ^= BagTempExpendableCapacity.GetHashCode(); + if (HasBagTempToolCapacity) hash ^= BagTempToolCapacity.GetHashCode(); + if (HasBagInitCapacity) hash ^= BagInitCapacity.GetHashCode(); + if (HasQuickBagCapacity) hash ^= QuickBagCapacity.GetHashCode(); + if (HasClothBagCapacity) hash ^= ClothBagCapacity.GetHashCode(); + if (HasClothBagInitCapacity) hash ^= ClothBagInitCapacity.GetHashCode(); + if (HasClothBagCapacitySpecial) hash ^= ClothBagCapacitySpecial.GetHashCode(); + if (HasBagInitItemsDropId) hash ^= BagInitItemsDropId.GetHashCode(); + if (HasMailBoxCapacity) hash ^= MailBoxCapacity.GetHashCode(); + if (HasDamageParamC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamC); + if (HasDamageParamE) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamE); + if (HasDamageParamF) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamF); + if (HasDamageParamD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamD); + if (HasRoleSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RoleSpeed); + if (HasMonsterSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MonsterSpeed); + if (HasInitEnergy) hash ^= InitEnergy.GetHashCode(); + if (HasInitViality) hash ^= InitViality.GetHashCode(); + if (HasMaxViality) hash ^= MaxViality.GetHashCode(); + if (HasPerVialityRecoveryTime) hash ^= PerVialityRecoveryTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacity); + } + if (HasBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitCapacity); + } + if (HasQuickBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuickBagCapacity); + } + if (HasClothBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MailBoxCapacity); + } + if (HasDamageParamC) { + size += 1 + 4; + } + if (HasDamageParamE) { + size += 1 + 4; + } + if (HasDamageParamF) { + size += 1 + 4; + } + if (HasDamageParamD) { + size += 1 + 4; + } + if (HasRoleSpeed) { + size += 2 + 4; + } + if (HasMonsterSpeed) { + size += 2 + 4; + } + if (HasInitEnergy) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitEnergy); + } + if (HasInitViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitViality); + } + if (HasMaxViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxViality); + } + if (HasPerVialityRecoveryTime) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonGlobalConfig other) { + if (other == null) { + return; + } + if (other.HasBagCapacity) { + BagCapacity = other.BagCapacity; + } + if (other.HasBagCapacitySpecial) { + BagCapacitySpecial = other.BagCapacitySpecial; + } + if (other.HasBagTempExpendableCapacity) { + BagTempExpendableCapacity = other.BagTempExpendableCapacity; + } + if (other.HasBagTempToolCapacity) { + BagTempToolCapacity = other.BagTempToolCapacity; + } + if (other.HasBagInitCapacity) { + BagInitCapacity = other.BagInitCapacity; + } + if (other.HasQuickBagCapacity) { + QuickBagCapacity = other.QuickBagCapacity; + } + if (other.HasClothBagCapacity) { + ClothBagCapacity = other.ClothBagCapacity; + } + if (other.HasClothBagInitCapacity) { + ClothBagInitCapacity = other.ClothBagInitCapacity; + } + if (other.HasClothBagCapacitySpecial) { + ClothBagCapacitySpecial = other.ClothBagCapacitySpecial; + } + if (other.HasBagInitItemsDropId) { + BagInitItemsDropId = other.BagInitItemsDropId; + } + if (other.HasMailBoxCapacity) { + MailBoxCapacity = other.MailBoxCapacity; + } + if (other.HasDamageParamC) { + DamageParamC = other.DamageParamC; + } + if (other.HasDamageParamE) { + DamageParamE = other.DamageParamE; + } + if (other.HasDamageParamF) { + DamageParamF = other.DamageParamF; + } + if (other.HasDamageParamD) { + DamageParamD = other.DamageParamD; + } + if (other.HasRoleSpeed) { + RoleSpeed = other.RoleSpeed; + } + if (other.HasMonsterSpeed) { + MonsterSpeed = other.MonsterSpeed; + } + if (other.HasInitEnergy) { + InitEnergy = other.InitEnergy; + } + if (other.HasInitViality) { + InitViality = other.InitViality; + } + if (other.HasMaxViality) { + MaxViality = other.MaxViality; + } + if (other.HasPerVialityRecoveryTime) { + PerVialityRecoveryTime = other.PerVialityRecoveryTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[74]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo(ErrorErrorInfo other) : this() { + code_ = other.code_; + desc_ = other.desc_; + style_ = other.style_ != null ? other.style_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo Clone() { + return new ErrorErrorInfo(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private readonly static string CodeDefaultValue = ""; + + private string code_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Code { + get { return code_ ?? CodeDefaultValue; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return code_ != null; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + code_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "style" field. + public const int StyleFieldNumber = 3; + private global::Cfg.ErrorErrorStyle style_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyle Style { + get { return style_; } + set { + style_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Desc != other.Desc) return false; + if (!object.Equals(Style, other.Style)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCode) hash ^= Code.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (style_ != null) hash ^= Style.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCode) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (style_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Style); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCode) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (style_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Style); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCode) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (style_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Style); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorInfo other) { + if (other == null) { + return; + } + if (other.HasCode) { + Code = other.Code; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.style_ != null) { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + Style.MergeFrom(other.Style); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Code = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + input.ReadMessage(Style); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Code = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + input.ReadMessage(Style); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[75]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle(ErrorErrorStyle other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.ErrorStyleTip: + ErrorStyleTip = other.ErrorStyleTip.Clone(); + break; + case ValueOneofCase.ErrorStyleMsgbox: + ErrorStyleMsgbox = other.ErrorStyleMsgbox.Clone(); + break; + case ValueOneofCase.ErrorStyleDlgOk: + ErrorStyleDlgOk = other.ErrorStyleDlgOk.Clone(); + break; + case ValueOneofCase.ErrorStyleDlgOkCancel: + ErrorStyleDlgOkCancel = other.ErrorStyleDlgOkCancel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle Clone() { + return new ErrorErrorStyle(this); + } + + /// Field number for the "ErrorStyleTip" field. + public const int ErrorStyleTipFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleTip ErrorStyleTip { + get { return valueCase_ == ValueOneofCase.ErrorStyleTip ? (global::Cfg.ErrorErrorStyleTip) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleTip; + } + } + + /// Field number for the "ErrorStyleMsgbox" field. + public const int ErrorStyleMsgboxFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleMsgbox ErrorStyleMsgbox { + get { return valueCase_ == ValueOneofCase.ErrorStyleMsgbox ? (global::Cfg.ErrorErrorStyleMsgbox) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleMsgbox; + } + } + + /// Field number for the "ErrorStyleDlgOk" field. + public const int ErrorStyleDlgOkFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleDlgOk ErrorStyleDlgOk { + get { return valueCase_ == ValueOneofCase.ErrorStyleDlgOk ? (global::Cfg.ErrorErrorStyleDlgOk) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleDlgOk; + } + } + + /// Field number for the "ErrorStyleDlgOkCancel" field. + public const int ErrorStyleDlgOkCancelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleDlgOkCancel ErrorStyleDlgOkCancel { + get { return valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel ? (global::Cfg.ErrorErrorStyleDlgOkCancel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleDlgOkCancel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + ErrorStyleTip = 1, + ErrorStyleMsgbox = 2, + ErrorStyleDlgOk = 3, + ErrorStyleDlgOkCancel = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ErrorStyleTip, other.ErrorStyleTip)) return false; + if (!object.Equals(ErrorStyleMsgbox, other.ErrorStyleMsgbox)) return false; + if (!object.Equals(ErrorStyleDlgOk, other.ErrorStyleDlgOk)) return false; + if (!object.Equals(ErrorStyleDlgOkCancel, other.ErrorStyleDlgOkCancel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.ErrorStyleTip) hash ^= ErrorStyleTip.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) hash ^= ErrorStyleMsgbox.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) hash ^= ErrorStyleDlgOk.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) hash ^= ErrorStyleDlgOkCancel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + output.WriteRawTag(10); + output.WriteMessage(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + output.WriteRawTag(18); + output.WriteMessage(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + output.WriteRawTag(26); + output.WriteMessage(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + output.WriteRawTag(34); + output.WriteMessage(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + output.WriteRawTag(10); + output.WriteMessage(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + output.WriteRawTag(18); + output.WriteMessage(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + output.WriteRawTag(26); + output.WriteMessage(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + output.WriteRawTag(34); + output.WriteMessage(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyle other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.ErrorStyleTip: + if (ErrorStyleTip == null) { + ErrorStyleTip = new global::Cfg.ErrorErrorStyleTip(); + } + ErrorStyleTip.MergeFrom(other.ErrorStyleTip); + break; + case ValueOneofCase.ErrorStyleMsgbox: + if (ErrorStyleMsgbox == null) { + ErrorStyleMsgbox = new global::Cfg.ErrorErrorStyleMsgbox(); + } + ErrorStyleMsgbox.MergeFrom(other.ErrorStyleMsgbox); + break; + case ValueOneofCase.ErrorStyleDlgOk: + if (ErrorStyleDlgOk == null) { + ErrorStyleDlgOk = new global::Cfg.ErrorErrorStyleDlgOk(); + } + ErrorStyleDlgOk.MergeFrom(other.ErrorStyleDlgOk); + break; + case ValueOneofCase.ErrorStyleDlgOkCancel: + if (ErrorStyleDlgOkCancel == null) { + ErrorStyleDlgOkCancel = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + } + ErrorStyleDlgOkCancel.MergeFrom(other.ErrorStyleDlgOkCancel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ErrorErrorStyleTip subBuilder = new global::Cfg.ErrorErrorStyleTip(); + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + subBuilder.MergeFrom(ErrorStyleTip); + } + input.ReadMessage(subBuilder); + ErrorStyleTip = subBuilder; + break; + } + case 18: { + global::Cfg.ErrorErrorStyleMsgbox subBuilder = new global::Cfg.ErrorErrorStyleMsgbox(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + subBuilder.MergeFrom(ErrorStyleMsgbox); + } + input.ReadMessage(subBuilder); + ErrorStyleMsgbox = subBuilder; + break; + } + case 26: { + global::Cfg.ErrorErrorStyleDlgOk subBuilder = new global::Cfg.ErrorErrorStyleDlgOk(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + subBuilder.MergeFrom(ErrorStyleDlgOk); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOk = subBuilder; + break; + } + case 34: { + global::Cfg.ErrorErrorStyleDlgOkCancel subBuilder = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + subBuilder.MergeFrom(ErrorStyleDlgOkCancel); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOkCancel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ErrorErrorStyleTip subBuilder = new global::Cfg.ErrorErrorStyleTip(); + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + subBuilder.MergeFrom(ErrorStyleTip); + } + input.ReadMessage(subBuilder); + ErrorStyleTip = subBuilder; + break; + } + case 18: { + global::Cfg.ErrorErrorStyleMsgbox subBuilder = new global::Cfg.ErrorErrorStyleMsgbox(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + subBuilder.MergeFrom(ErrorStyleMsgbox); + } + input.ReadMessage(subBuilder); + ErrorStyleMsgbox = subBuilder; + break; + } + case 26: { + global::Cfg.ErrorErrorStyleDlgOk subBuilder = new global::Cfg.ErrorErrorStyleDlgOk(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + subBuilder.MergeFrom(ErrorStyleDlgOk); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOk = subBuilder; + break; + } + case 34: { + global::Cfg.ErrorErrorStyleDlgOkCancel subBuilder = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + subBuilder.MergeFrom(ErrorStyleDlgOkCancel); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOkCancel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleTip : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleTip()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip(ErrorErrorStyleTip other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip Clone() { + return new ErrorErrorStyleTip(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleTip); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleTip other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleTip other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleMsgbox : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleMsgbox()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox(ErrorErrorStyleMsgbox other) : this() { + _hasBits0 = other._hasBits0; + btnName_ = other.btnName_; + operation_ = other.operation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox Clone() { + return new ErrorErrorStyleMsgbox(this); + } + + /// Field number for the "btn_name" field. + public const int BtnNameFieldNumber = 1; + private readonly static string BtnNameDefaultValue = ""; + + private string btnName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BtnName { + get { return btnName_ ?? BtnNameDefaultValue; } + set { + btnName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtnName { + get { return btnName_ != null; } + } + /// Clears the value of the "btn_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtnName() { + btnName_ = null; + } + + /// Field number for the "operation" field. + public const int OperationFieldNumber = 2; + private readonly static global::Cfg.ErrorEOperation OperationDefaultValue = global::Cfg.ErrorEOperation.Logout; + + private global::Cfg.ErrorEOperation operation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorEOperation Operation { + get { if ((_hasBits0 & 1) != 0) { return operation_; } else { return OperationDefaultValue; } } + set { + _hasBits0 |= 1; + operation_ = value; + } + } + /// Gets whether the "operation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOperation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "operation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOperation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleMsgbox); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleMsgbox other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BtnName != other.BtnName) return false; + if (Operation != other.Operation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtnName) hash ^= BtnName.GetHashCode(); + if (HasOperation) hash ^= Operation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (HasOperation) { + output.WriteRawTag(16); + output.WriteEnum((int) Operation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (HasOperation) { + output.WriteRawTag(16); + output.WriteEnum((int) Operation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtnName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BtnName); + } + if (HasOperation) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleMsgbox other) { + if (other == null) { + return; + } + if (other.HasBtnName) { + BtnName = other.BtnName; + } + if (other.HasOperation) { + Operation = other.Operation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + case 16: { + Operation = (global::Cfg.ErrorEOperation) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + case 16: { + Operation = (global::Cfg.ErrorEOperation) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleDlgOk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleDlgOk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk(ErrorErrorStyleDlgOk other) : this() { + btnName_ = other.btnName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk Clone() { + return new ErrorErrorStyleDlgOk(this); + } + + /// Field number for the "btn_name" field. + public const int BtnNameFieldNumber = 1; + private readonly static string BtnNameDefaultValue = ""; + + private string btnName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BtnName { + get { return btnName_ ?? BtnNameDefaultValue; } + set { + btnName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtnName { + get { return btnName_ != null; } + } + /// Clears the value of the "btn_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtnName() { + btnName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleDlgOk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleDlgOk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BtnName != other.BtnName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtnName) hash ^= BtnName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtnName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BtnName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleDlgOk other) { + if (other == null) { + return; + } + if (other.HasBtnName) { + BtnName = other.BtnName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleDlgOkCancel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleDlgOkCancel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel(ErrorErrorStyleDlgOkCancel other) : this() { + btn1Name_ = other.btn1Name_; + btn2Name_ = other.btn2Name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel Clone() { + return new ErrorErrorStyleDlgOkCancel(this); + } + + /// Field number for the "btn1_name" field. + public const int Btn1NameFieldNumber = 1; + private readonly static string Btn1NameDefaultValue = ""; + + private string btn1Name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Btn1Name { + get { return btn1Name_ ?? Btn1NameDefaultValue; } + set { + btn1Name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn1_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtn1Name { + get { return btn1Name_ != null; } + } + /// Clears the value of the "btn1_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtn1Name() { + btn1Name_ = null; + } + + /// Field number for the "btn2_name" field. + public const int Btn2NameFieldNumber = 2; + private readonly static string Btn2NameDefaultValue = ""; + + private string btn2Name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Btn2Name { + get { return btn2Name_ ?? Btn2NameDefaultValue; } + set { + btn2Name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn2_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtn2Name { + get { return btn2Name_ != null; } + } + /// Clears the value of the "btn2_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtn2Name() { + btn2Name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleDlgOkCancel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleDlgOkCancel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Btn1Name != other.Btn1Name) return false; + if (Btn2Name != other.Btn2Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtn1Name) hash ^= Btn1Name.GetHashCode(); + if (HasBtn2Name) hash ^= Btn2Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtn1Name) { + output.WriteRawTag(10); + output.WriteString(Btn1Name); + } + if (HasBtn2Name) { + output.WriteRawTag(18); + output.WriteString(Btn2Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtn1Name) { + output.WriteRawTag(10); + output.WriteString(Btn1Name); + } + if (HasBtn2Name) { + output.WriteRawTag(18); + output.WriteString(Btn2Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtn1Name) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Btn1Name); + } + if (HasBtn2Name) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Btn2Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleDlgOkCancel other) { + if (other == null) { + return; + } + if (other.HasBtn1Name) { + Btn1Name = other.Btn1Name; + } + if (other.HasBtn2Name) { + Btn2Name = other.Btn2Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Btn1Name = input.ReadString(); + break; + } + case 18: { + Btn2Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Btn1Name = input.ReadString(); + break; + } + case 18: { + Btn2Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorCodeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorCodeInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo(ErrorCodeInfo other) : this() { + _hasBits0 = other._hasBits0; + code_ = other.code_; + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo Clone() { + return new ErrorCodeInfo(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private readonly static global::Cfg.ErrorEErrorCode CodeDefaultValue = global::Cfg.ErrorEErrorCode.Ok; + + private global::Cfg.ErrorEErrorCode code_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorEErrorCode Code { + get { if ((_hasBits0 & 1) != 0) { return code_; } else { return CodeDefaultValue; } } + set { + _hasBits0 |= 1; + code_ = value; + } + } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + _hasBits0 &= ~1; + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 2; + private readonly static string KeyDefaultValue = ""; + + private string key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Key { + get { return key_ ?? KeyDefaultValue; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the "key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKey() { + key_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorCodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorCodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Key != other.Key) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCode) hash ^= Code.GetHashCode(); + if (HasKey) hash ^= Key.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCode) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCode) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorCodeInfo other) { + if (other == null) { + return; + } + if (other.HasCode) { + Code = other.Code; + } + if (other.HasKey) { + Key = other.Key; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Code = (global::Cfg.ErrorEErrorCode) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Code = (global::Cfg.ErrorEErrorCode) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem(ItemItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + majorType_ = other.majorType_; + minorType_ = other.minorType_; + maxPileNum_ = other.maxPileNum_; + quality_ = other.quality_; + icon_ = other.icon_; + iconBackgroud_ = other.iconBackgroud_; + iconMask_ = other.iconMask_; + desc_ = other.desc_; + showOrder_ = other.showOrder_; + quantifier_ = other.quantifier_; + showInBag_ = other.showInBag_; + minShowLevel_ = other.minShowLevel_; + batchUsable_ = other.batchUsable_; + progressTimeWhenUse_ = other.progressTimeWhenUse_; + showHintWhenUse_ = other.showHintWhenUse_; + droppable_ = other.droppable_; + price_ = other.price_; + useType_ = other.useType_; + levelUpId_ = other.levelUpId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem Clone() { + return new ItemItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "major_type" field. + public const int MajorTypeFieldNumber = 3; + private readonly static global::Cfg.ItemEMajorType MajorTypeDefaultValue = global::Cfg.ItemEMajorType.Currency; + + private global::Cfg.ItemEMajorType majorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMajorType MajorType { + get { if ((_hasBits0 & 2) != 0) { return majorType_; } else { return MajorTypeDefaultValue; } } + set { + _hasBits0 |= 2; + majorType_ = value; + } + } + /// Gets whether the "major_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMajorType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "major_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMajorType() { + _hasBits0 &= ~2; + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 4; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 4) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 4; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~4; + } + + /// Field number for the "max_pile_num" field. + public const int MaxPileNumFieldNumber = 5; + private readonly static int MaxPileNumDefaultValue = 0; + + private int maxPileNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxPileNum { + get { if ((_hasBits0 & 8) != 0) { return maxPileNum_; } else { return MaxPileNumDefaultValue; } } + set { + _hasBits0 |= 8; + maxPileNum_ = value; + } + } + /// Gets whether the "max_pile_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxPileNum { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "max_pile_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxPileNum() { + _hasBits0 &= ~8; + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 6; + private readonly static global::Cfg.ItemEItemQuality QualityDefaultValue = global::Cfg.ItemEItemQuality.White; + + private global::Cfg.ItemEItemQuality quality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemQuality Quality { + get { if ((_hasBits0 & 16) != 0) { return quality_; } else { return QualityDefaultValue; } } + set { + _hasBits0 |= 16; + quality_ = value; + } + } + /// Gets whether the "quality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuality { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "quality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuality() { + _hasBits0 &= ~16; + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 7; + private readonly static string IconDefaultValue = ""; + + private string icon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_ ?? IconDefaultValue; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIcon { + get { return icon_ != null; } + } + /// Clears the value of the "icon" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIcon() { + icon_ = null; + } + + /// Field number for the "icon_backgroud" field. + public const int IconBackgroudFieldNumber = 8; + private readonly static string IconBackgroudDefaultValue = ""; + + private string iconBackgroud_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBackgroud { + get { return iconBackgroud_ ?? IconBackgroudDefaultValue; } + set { + iconBackgroud_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_backgroud" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconBackgroud { + get { return iconBackgroud_ != null; } + } + /// Clears the value of the "icon_backgroud" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconBackgroud() { + iconBackgroud_ = null; + } + + /// Field number for the "icon_mask" field. + public const int IconMaskFieldNumber = 9; + private readonly static string IconMaskDefaultValue = ""; + + private string iconMask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconMask { + get { return iconMask_ ?? IconMaskDefaultValue; } + set { + iconMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_mask" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconMask { + get { return iconMask_ != null; } + } + /// Clears the value of the "icon_mask" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconMask() { + iconMask_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 10; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "show_order" field. + public const int ShowOrderFieldNumber = 11; + private readonly static int ShowOrderDefaultValue = 0; + + private int showOrder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowOrder { + get { if ((_hasBits0 & 32) != 0) { return showOrder_; } else { return ShowOrderDefaultValue; } } + set { + _hasBits0 |= 32; + showOrder_ = value; + } + } + /// Gets whether the "show_order" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowOrder { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "show_order" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowOrder() { + _hasBits0 &= ~32; + } + + /// Field number for the "quantifier" field. + public const int QuantifierFieldNumber = 12; + private readonly static string QuantifierDefaultValue = ""; + + private string quantifier_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Quantifier { + get { return quantifier_ ?? QuantifierDefaultValue; } + set { + quantifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "quantifier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuantifier { + get { return quantifier_ != null; } + } + /// Clears the value of the "quantifier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuantifier() { + quantifier_ = null; + } + + /// Field number for the "show_in_bag" field. + public const int ShowInBagFieldNumber = 13; + private readonly static bool ShowInBagDefaultValue = false; + + private bool showInBag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShowInBag { + get { if ((_hasBits0 & 64) != 0) { return showInBag_; } else { return ShowInBagDefaultValue; } } + set { + _hasBits0 |= 64; + showInBag_ = value; + } + } + /// Gets whether the "show_in_bag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowInBag { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "show_in_bag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowInBag() { + _hasBits0 &= ~64; + } + + /// Field number for the "min_show_level" field. + public const int MinShowLevelFieldNumber = 14; + private readonly static int MinShowLevelDefaultValue = 0; + + private int minShowLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinShowLevel { + get { if ((_hasBits0 & 128) != 0) { return minShowLevel_; } else { return MinShowLevelDefaultValue; } } + set { + _hasBits0 |= 128; + minShowLevel_ = value; + } + } + /// Gets whether the "min_show_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinShowLevel { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "min_show_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinShowLevel() { + _hasBits0 &= ~128; + } + + /// Field number for the "batch_usable" field. + public const int BatchUsableFieldNumber = 15; + private readonly static bool BatchUsableDefaultValue = false; + + private bool batchUsable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BatchUsable { + get { if ((_hasBits0 & 256) != 0) { return batchUsable_; } else { return BatchUsableDefaultValue; } } + set { + _hasBits0 |= 256; + batchUsable_ = value; + } + } + /// Gets whether the "batch_usable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBatchUsable { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "batch_usable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBatchUsable() { + _hasBits0 &= ~256; + } + + /// Field number for the "progress_time_when_use" field. + public const int ProgressTimeWhenUseFieldNumber = 16; + private readonly static float ProgressTimeWhenUseDefaultValue = 0F; + + private float progressTimeWhenUse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ProgressTimeWhenUse { + get { if ((_hasBits0 & 512) != 0) { return progressTimeWhenUse_; } else { return ProgressTimeWhenUseDefaultValue; } } + set { + _hasBits0 |= 512; + progressTimeWhenUse_ = value; + } + } + /// Gets whether the "progress_time_when_use" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProgressTimeWhenUse { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "progress_time_when_use" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProgressTimeWhenUse() { + _hasBits0 &= ~512; + } + + /// Field number for the "show_hint_when_use" field. + public const int ShowHintWhenUseFieldNumber = 17; + private readonly static bool ShowHintWhenUseDefaultValue = false; + + private bool showHintWhenUse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShowHintWhenUse { + get { if ((_hasBits0 & 1024) != 0) { return showHintWhenUse_; } else { return ShowHintWhenUseDefaultValue; } } + set { + _hasBits0 |= 1024; + showHintWhenUse_ = value; + } + } + /// Gets whether the "show_hint_when_use" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowHintWhenUse { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "show_hint_when_use" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowHintWhenUse() { + _hasBits0 &= ~1024; + } + + /// Field number for the "droppable" field. + public const int DroppableFieldNumber = 18; + private readonly static bool DroppableDefaultValue = false; + + private bool droppable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Droppable { + get { if ((_hasBits0 & 2048) != 0) { return droppable_; } else { return DroppableDefaultValue; } } + set { + _hasBits0 |= 2048; + droppable_ = value; + } + } + /// Gets whether the "droppable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDroppable { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "droppable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDroppable() { + _hasBits0 &= ~2048; + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 19; + private readonly static int PriceDefaultValue = 0; + + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { if ((_hasBits0 & 4096) != 0) { return price_; } else { return PriceDefaultValue; } } + set { + _hasBits0 |= 4096; + price_ = value; + } + } + /// Gets whether the "price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPrice { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPrice() { + _hasBits0 &= ~4096; + } + + /// Field number for the "use_type" field. + public const int UseTypeFieldNumber = 20; + private readonly static global::Cfg.ItemEUseType UseTypeDefaultValue = global::Cfg.ItemEUseType.Manual; + + private global::Cfg.ItemEUseType useType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEUseType UseType { + get { if ((_hasBits0 & 8192) != 0) { return useType_; } else { return UseTypeDefaultValue; } } + set { + _hasBits0 |= 8192; + useType_ = value; + } + } + /// Gets whether the "use_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUseType { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "use_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUseType() { + _hasBits0 &= ~8192; + } + + /// Field number for the "level_up_id" field. + public const int LevelUpIdFieldNumber = 21; + private readonly static int LevelUpIdDefaultValue = 0; + + private int levelUpId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelUpId { + get { if ((_hasBits0 & 16384) != 0) { return levelUpId_; } else { return LevelUpIdDefaultValue; } } + set { + _hasBits0 |= 16384; + levelUpId_ = value; + } + } + /// Gets whether the "level_up_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevelUpId { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "level_up_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevelUpId() { + _hasBits0 &= ~16384; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MajorType != other.MajorType) return false; + if (MinorType != other.MinorType) return false; + if (MaxPileNum != other.MaxPileNum) return false; + if (Quality != other.Quality) return false; + if (Icon != other.Icon) return false; + if (IconBackgroud != other.IconBackgroud) return false; + if (IconMask != other.IconMask) return false; + if (Desc != other.Desc) return false; + if (ShowOrder != other.ShowOrder) return false; + if (Quantifier != other.Quantifier) return false; + if (ShowInBag != other.ShowInBag) return false; + if (MinShowLevel != other.MinShowLevel) return false; + if (BatchUsable != other.BatchUsable) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ProgressTimeWhenUse, other.ProgressTimeWhenUse)) return false; + if (ShowHintWhenUse != other.ShowHintWhenUse) return false; + if (Droppable != other.Droppable) return false; + if (Price != other.Price) return false; + if (UseType != other.UseType) return false; + if (LevelUpId != other.LevelUpId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMajorType) hash ^= MajorType.GetHashCode(); + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasMaxPileNum) hash ^= MaxPileNum.GetHashCode(); + if (HasQuality) hash ^= Quality.GetHashCode(); + if (HasIcon) hash ^= Icon.GetHashCode(); + if (HasIconBackgroud) hash ^= IconBackgroud.GetHashCode(); + if (HasIconMask) hash ^= IconMask.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasShowOrder) hash ^= ShowOrder.GetHashCode(); + if (HasQuantifier) hash ^= Quantifier.GetHashCode(); + if (HasShowInBag) hash ^= ShowInBag.GetHashCode(); + if (HasMinShowLevel) hash ^= MinShowLevel.GetHashCode(); + if (HasBatchUsable) hash ^= BatchUsable.GetHashCode(); + if (HasProgressTimeWhenUse) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ProgressTimeWhenUse); + if (HasShowHintWhenUse) hash ^= ShowHintWhenUse.GetHashCode(); + if (HasDroppable) hash ^= Droppable.GetHashCode(); + if (HasPrice) hash ^= Price.GetHashCode(); + if (HasUseType) hash ^= UseType.GetHashCode(); + if (HasLevelUpId) hash ^= LevelUpId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (HasQuantifier) { + output.WriteRawTag(98); + output.WriteString(Quantifier); + } + if (HasShowInBag) { + output.WriteRawTag(104); + output.WriteBool(ShowInBag); + } + if (HasMinShowLevel) { + output.WriteRawTag(112); + output.WriteInt32(MinShowLevel); + } + if (HasBatchUsable) { + output.WriteRawTag(120); + output.WriteBool(BatchUsable); + } + if (HasProgressTimeWhenUse) { + output.WriteRawTag(133, 1); + output.WriteFloat(ProgressTimeWhenUse); + } + if (HasShowHintWhenUse) { + output.WriteRawTag(136, 1); + output.WriteBool(ShowHintWhenUse); + } + if (HasDroppable) { + output.WriteRawTag(144, 1); + output.WriteBool(Droppable); + } + if (HasPrice) { + output.WriteRawTag(152, 1); + output.WriteInt32(Price); + } + if (HasUseType) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) UseType); + } + if (HasLevelUpId) { + output.WriteRawTag(168, 1); + output.WriteInt32(LevelUpId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (HasQuantifier) { + output.WriteRawTag(98); + output.WriteString(Quantifier); + } + if (HasShowInBag) { + output.WriteRawTag(104); + output.WriteBool(ShowInBag); + } + if (HasMinShowLevel) { + output.WriteRawTag(112); + output.WriteInt32(MinShowLevel); + } + if (HasBatchUsable) { + output.WriteRawTag(120); + output.WriteBool(BatchUsable); + } + if (HasProgressTimeWhenUse) { + output.WriteRawTag(133, 1); + output.WriteFloat(ProgressTimeWhenUse); + } + if (HasShowHintWhenUse) { + output.WriteRawTag(136, 1); + output.WriteBool(ShowHintWhenUse); + } + if (HasDroppable) { + output.WriteRawTag(144, 1); + output.WriteBool(Droppable); + } + if (HasPrice) { + output.WriteRawTag(152, 1); + output.WriteInt32(Price); + } + if (HasUseType) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) UseType); + } + if (HasLevelUpId) { + output.WriteRawTag(168, 1); + output.WriteInt32(LevelUpId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMajorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MajorType); + } + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasMaxPileNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxPileNum); + } + if (HasQuality) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } + if (HasIcon) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (HasIconBackgroud) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBackgroud); + } + if (HasIconMask) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconMask); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasShowOrder) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowOrder); + } + if (HasQuantifier) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Quantifier); + } + if (HasShowInBag) { + size += 1 + 1; + } + if (HasMinShowLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinShowLevel); + } + if (HasBatchUsable) { + size += 1 + 1; + } + if (HasProgressTimeWhenUse) { + size += 2 + 4; + } + if (HasShowHintWhenUse) { + size += 2 + 1; + } + if (HasDroppable) { + size += 2 + 1; + } + if (HasPrice) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (HasUseType) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) UseType); + } + if (HasLevelUpId) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LevelUpId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMajorType) { + MajorType = other.MajorType; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasMaxPileNum) { + MaxPileNum = other.MaxPileNum; + } + if (other.HasQuality) { + Quality = other.Quality; + } + if (other.HasIcon) { + Icon = other.Icon; + } + if (other.HasIconBackgroud) { + IconBackgroud = other.IconBackgroud; + } + if (other.HasIconMask) { + IconMask = other.IconMask; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasShowOrder) { + ShowOrder = other.ShowOrder; + } + if (other.HasQuantifier) { + Quantifier = other.Quantifier; + } + if (other.HasShowInBag) { + ShowInBag = other.ShowInBag; + } + if (other.HasMinShowLevel) { + MinShowLevel = other.MinShowLevel; + } + if (other.HasBatchUsable) { + BatchUsable = other.BatchUsable; + } + if (other.HasProgressTimeWhenUse) { + ProgressTimeWhenUse = other.ProgressTimeWhenUse; + } + if (other.HasShowHintWhenUse) { + ShowHintWhenUse = other.ShowHintWhenUse; + } + if (other.HasDroppable) { + Droppable = other.Droppable; + } + if (other.HasPrice) { + Price = other.Price; + } + if (other.HasUseType) { + UseType = other.UseType; + } + if (other.HasLevelUpId) { + LevelUpId = other.LevelUpId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + case 98: { + Quantifier = input.ReadString(); + break; + } + case 104: { + ShowInBag = input.ReadBool(); + break; + } + case 112: { + MinShowLevel = input.ReadInt32(); + break; + } + case 120: { + BatchUsable = input.ReadBool(); + break; + } + case 133: { + ProgressTimeWhenUse = input.ReadFloat(); + break; + } + case 136: { + ShowHintWhenUse = input.ReadBool(); + break; + } + case 144: { + Droppable = input.ReadBool(); + break; + } + case 152: { + Price = input.ReadInt32(); + break; + } + case 160: { + UseType = (global::Cfg.ItemEUseType) input.ReadEnum(); + break; + } + case 168: { + LevelUpId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + case 98: { + Quantifier = input.ReadString(); + break; + } + case 104: { + ShowInBag = input.ReadBool(); + break; + } + case 112: { + MinShowLevel = input.ReadInt32(); + break; + } + case 120: { + BatchUsable = input.ReadBool(); + break; + } + case 133: { + ProgressTimeWhenUse = input.ReadFloat(); + break; + } + case 136: { + ShowHintWhenUse = input.ReadBool(); + break; + } + case 144: { + Droppable = input.ReadBool(); + break; + } + case 152: { + Price = input.ReadInt32(); + break; + } + case 160: { + UseType = (global::Cfg.ItemEUseType) input.ReadEnum(); + break; + } + case 168: { + LevelUpId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItemFunction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItemFunction()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[82]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction(ItemItemFunction other) : this() { + _hasBits0 = other._hasBits0; + minorType_ = other.minorType_; + funcType_ = other.funcType_; + method_ = other.method_; + closeBagUi_ = other.closeBagUi_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction Clone() { + return new ItemItemFunction(this); + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 1; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 1) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 1; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~1; + } + + /// Field number for the "func_type" field. + public const int FuncTypeFieldNumber = 2; + private readonly static global::Cfg.ItemEItemFunctionType FuncTypeDefaultValue = global::Cfg.ItemEItemFunctionType.ReplaceHandheld; + + private global::Cfg.ItemEItemFunctionType funcType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemFunctionType FuncType { + get { if ((_hasBits0 & 2) != 0) { return funcType_; } else { return FuncTypeDefaultValue; } } + set { + _hasBits0 |= 2; + funcType_ = value; + } + } + /// Gets whether the "func_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFuncType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "func_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFuncType() { + _hasBits0 &= ~2; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 3; + private readonly static string MethodDefaultValue = ""; + + private string method_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_ ?? MethodDefaultValue; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "method" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMethod { + get { return method_ != null; } + } + /// Clears the value of the "method" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMethod() { + method_ = null; + } + + /// Field number for the "close_bag_ui" field. + public const int CloseBagUiFieldNumber = 4; + private readonly static bool CloseBagUiDefaultValue = false; + + private bool closeBagUi_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CloseBagUi { + get { if ((_hasBits0 & 4) != 0) { return closeBagUi_; } else { return CloseBagUiDefaultValue; } } + set { + _hasBits0 |= 4; + closeBagUi_ = value; + } + } + /// Gets whether the "close_bag_ui" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCloseBagUi { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "close_bag_ui" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCloseBagUi() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItemFunction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItemFunction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinorType != other.MinorType) return false; + if (FuncType != other.FuncType) return false; + if (Method != other.Method) return false; + if (CloseBagUi != other.CloseBagUi) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasFuncType) hash ^= FuncType.GetHashCode(); + if (HasMethod) hash ^= Method.GetHashCode(); + if (HasCloseBagUi) hash ^= CloseBagUi.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMinorType) { + output.WriteRawTag(8); + output.WriteEnum((int) MinorType); + } + if (HasFuncType) { + output.WriteRawTag(16); + output.WriteEnum((int) FuncType); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasCloseBagUi) { + output.WriteRawTag(32); + output.WriteBool(CloseBagUi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMinorType) { + output.WriteRawTag(8); + output.WriteEnum((int) MinorType); + } + if (HasFuncType) { + output.WriteRawTag(16); + output.WriteEnum((int) FuncType); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasCloseBagUi) { + output.WriteRawTag(32); + output.WriteBool(CloseBagUi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasFuncType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FuncType); + } + if (HasMethod) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + if (HasCloseBagUi) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItemFunction other) { + if (other == null) { + return; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasFuncType) { + FuncType = other.FuncType; + } + if (other.HasMethod) { + Method = other.Method; + } + if (other.HasCloseBagUi) { + CloseBagUi = other.CloseBagUi; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 16: { + FuncType = (global::Cfg.ItemEItemFunctionType) input.ReadEnum(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 32: { + CloseBagUi = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 16: { + FuncType = (global::Cfg.ItemEItemFunctionType) input.ReadEnum(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 32: { + CloseBagUi = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItemExtra : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItemExtra()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[83]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra(ItemItemExtra other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.TreasureBox: + TreasureBox = other.TreasureBox.Clone(); + break; + case ValueOneofCase.InteractionItem: + InteractionItem = other.InteractionItem.Clone(); + break; + case ValueOneofCase.Clothes: + Clothes = other.Clothes.Clone(); + break; + case ValueOneofCase.DesignDrawing: + DesignDrawing = other.DesignDrawing.Clone(); + break; + case ValueOneofCase.Dymmy: + Dymmy = other.Dymmy.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra Clone() { + return new ItemItemExtra(this); + } + + /// Field number for the "TreasureBox" field. + public const int TreasureBoxFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemTreasureBox TreasureBox { + get { return valueCase_ == ValueOneofCase.TreasureBox ? (global::Cfg.ItemTreasureBox) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TreasureBox; + } + } + + /// Field number for the "InteractionItem" field. + public const int InteractionItemFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemInteractionItem InteractionItem { + get { return valueCase_ == ValueOneofCase.InteractionItem ? (global::Cfg.ItemInteractionItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.InteractionItem; + } + } + + /// Field number for the "Clothes" field. + public const int ClothesFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemClothes Clothes { + get { return valueCase_ == ValueOneofCase.Clothes ? (global::Cfg.ItemClothes) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Clothes; + } + } + + /// Field number for the "DesignDrawing" field. + public const int DesignDrawingFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemDesignDrawing DesignDrawing { + get { return valueCase_ == ValueOneofCase.DesignDrawing ? (global::Cfg.ItemDesignDrawing) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DesignDrawing; + } + } + + /// Field number for the "Dymmy" field. + public const int DymmyFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemDymmy Dymmy { + get { return valueCase_ == ValueOneofCase.Dymmy ? (global::Cfg.ItemDymmy) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Dymmy; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + TreasureBox = 1, + InteractionItem = 2, + Clothes = 3, + DesignDrawing = 4, + Dymmy = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItemExtra); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItemExtra other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TreasureBox, other.TreasureBox)) return false; + if (!object.Equals(InteractionItem, other.InteractionItem)) return false; + if (!object.Equals(Clothes, other.Clothes)) return false; + if (!object.Equals(DesignDrawing, other.DesignDrawing)) return false; + if (!object.Equals(Dymmy, other.Dymmy)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.TreasureBox) hash ^= TreasureBox.GetHashCode(); + if (valueCase_ == ValueOneofCase.InteractionItem) hash ^= InteractionItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.Clothes) hash ^= Clothes.GetHashCode(); + if (valueCase_ == ValueOneofCase.DesignDrawing) hash ^= DesignDrawing.GetHashCode(); + if (valueCase_ == ValueOneofCase.Dymmy) hash ^= Dymmy.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.TreasureBox) { + output.WriteRawTag(10); + output.WriteMessage(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + output.WriteRawTag(18); + output.WriteMessage(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + output.WriteRawTag(26); + output.WriteMessage(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + output.WriteRawTag(34); + output.WriteMessage(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + output.WriteRawTag(42); + output.WriteMessage(Dymmy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.TreasureBox) { + output.WriteRawTag(10); + output.WriteMessage(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + output.WriteRawTag(18); + output.WriteMessage(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + output.WriteRawTag(26); + output.WriteMessage(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + output.WriteRawTag(34); + output.WriteMessage(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + output.WriteRawTag(42); + output.WriteMessage(Dymmy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.TreasureBox) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dymmy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItemExtra other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.TreasureBox: + if (TreasureBox == null) { + TreasureBox = new global::Cfg.ItemTreasureBox(); + } + TreasureBox.MergeFrom(other.TreasureBox); + break; + case ValueOneofCase.InteractionItem: + if (InteractionItem == null) { + InteractionItem = new global::Cfg.ItemInteractionItem(); + } + InteractionItem.MergeFrom(other.InteractionItem); + break; + case ValueOneofCase.Clothes: + if (Clothes == null) { + Clothes = new global::Cfg.ItemClothes(); + } + Clothes.MergeFrom(other.Clothes); + break; + case ValueOneofCase.DesignDrawing: + if (DesignDrawing == null) { + DesignDrawing = new global::Cfg.ItemDesignDrawing(); + } + DesignDrawing.MergeFrom(other.DesignDrawing); + break; + case ValueOneofCase.Dymmy: + if (Dymmy == null) { + Dymmy = new global::Cfg.ItemDymmy(); + } + Dymmy.MergeFrom(other.Dymmy); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ItemTreasureBox subBuilder = new global::Cfg.ItemTreasureBox(); + if (valueCase_ == ValueOneofCase.TreasureBox) { + subBuilder.MergeFrom(TreasureBox); + } + input.ReadMessage(subBuilder); + TreasureBox = subBuilder; + break; + } + case 18: { + global::Cfg.ItemInteractionItem subBuilder = new global::Cfg.ItemInteractionItem(); + if (valueCase_ == ValueOneofCase.InteractionItem) { + subBuilder.MergeFrom(InteractionItem); + } + input.ReadMessage(subBuilder); + InteractionItem = subBuilder; + break; + } + case 26: { + global::Cfg.ItemClothes subBuilder = new global::Cfg.ItemClothes(); + if (valueCase_ == ValueOneofCase.Clothes) { + subBuilder.MergeFrom(Clothes); + } + input.ReadMessage(subBuilder); + Clothes = subBuilder; + break; + } + case 34: { + global::Cfg.ItemDesignDrawing subBuilder = new global::Cfg.ItemDesignDrawing(); + if (valueCase_ == ValueOneofCase.DesignDrawing) { + subBuilder.MergeFrom(DesignDrawing); + } + input.ReadMessage(subBuilder); + DesignDrawing = subBuilder; + break; + } + case 42: { + global::Cfg.ItemDymmy subBuilder = new global::Cfg.ItemDymmy(); + if (valueCase_ == ValueOneofCase.Dymmy) { + subBuilder.MergeFrom(Dymmy); + } + input.ReadMessage(subBuilder); + Dymmy = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ItemTreasureBox subBuilder = new global::Cfg.ItemTreasureBox(); + if (valueCase_ == ValueOneofCase.TreasureBox) { + subBuilder.MergeFrom(TreasureBox); + } + input.ReadMessage(subBuilder); + TreasureBox = subBuilder; + break; + } + case 18: { + global::Cfg.ItemInteractionItem subBuilder = new global::Cfg.ItemInteractionItem(); + if (valueCase_ == ValueOneofCase.InteractionItem) { + subBuilder.MergeFrom(InteractionItem); + } + input.ReadMessage(subBuilder); + InteractionItem = subBuilder; + break; + } + case 26: { + global::Cfg.ItemClothes subBuilder = new global::Cfg.ItemClothes(); + if (valueCase_ == ValueOneofCase.Clothes) { + subBuilder.MergeFrom(Clothes); + } + input.ReadMessage(subBuilder); + Clothes = subBuilder; + break; + } + case 34: { + global::Cfg.ItemDesignDrawing subBuilder = new global::Cfg.ItemDesignDrawing(); + if (valueCase_ == ValueOneofCase.DesignDrawing) { + subBuilder.MergeFrom(DesignDrawing); + } + input.ReadMessage(subBuilder); + DesignDrawing = subBuilder; + break; + } + case 42: { + global::Cfg.ItemDymmy subBuilder = new global::Cfg.ItemDymmy(); + if (valueCase_ == ValueOneofCase.Dymmy) { + subBuilder.MergeFrom(Dymmy); + } + input.ReadMessage(subBuilder); + Dymmy = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTreasureBox : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTreasureBox()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[84]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox(ItemTreasureBox other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + keyItemId_ = other.keyItemId_; + openLevel_ = other.openLevel_ != null ? other.openLevel_.Clone() : null; + useOnObtain_ = other.useOnObtain_; + dropIds_ = other.dropIds_.Clone(); + chooseList_ = other.chooseList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox Clone() { + return new ItemTreasureBox(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "key_item_id" field. + public const int KeyItemIdFieldNumber = 2; + private readonly static int KeyItemIdDefaultValue = 0; + + private int keyItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyItemId { + get { if ((_hasBits0 & 2) != 0) { return keyItemId_; } else { return KeyItemIdDefaultValue; } } + set { + _hasBits0 |= 2; + keyItemId_ = value; + } + } + /// Gets whether the "key_item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyItemId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "key_item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyItemId() { + _hasBits0 &= ~2; + } + + /// Field number for the "open_level" field. + public const int OpenLevelFieldNumber = 3; + private global::Cfg.ConditionMinLevel openLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel OpenLevel { + get { return openLevel_; } + set { + openLevel_ = value; + } + } + + /// Field number for the "use_on_obtain" field. + public const int UseOnObtainFieldNumber = 4; + private readonly static bool UseOnObtainDefaultValue = false; + + private bool useOnObtain_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UseOnObtain { + get { if ((_hasBits0 & 4) != 0) { return useOnObtain_; } else { return UseOnObtainDefaultValue; } } + set { + _hasBits0 |= 4; + useOnObtain_ = value; + } + } + /// Gets whether the "use_on_obtain" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUseOnObtain { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "use_on_obtain" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUseOnObtain() { + _hasBits0 &= ~4; + } + + /// Field number for the "drop_ids" field. + public const int DropIdsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_dropIds_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField dropIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DropIds { + get { return dropIds_; } + } + + /// Field number for the "choose_list" field. + public const int ChooseListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_chooseList_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.ItemChooseOneBonus.Parser); + private readonly pbc::RepeatedField chooseList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChooseList { + get { return chooseList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTreasureBox); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTreasureBox other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (KeyItemId != other.KeyItemId) return false; + if (!object.Equals(OpenLevel, other.OpenLevel)) return false; + if (UseOnObtain != other.UseOnObtain) return false; + if(!dropIds_.Equals(other.dropIds_)) return false; + if(!chooseList_.Equals(other.chooseList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasKeyItemId) hash ^= KeyItemId.GetHashCode(); + if (openLevel_ != null) hash ^= OpenLevel.GetHashCode(); + if (HasUseOnObtain) hash ^= UseOnObtain.GetHashCode(); + hash ^= dropIds_.GetHashCode(); + hash ^= chooseList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasKeyItemId) { + output.WriteRawTag(16); + output.WriteInt32(KeyItemId); + } + if (openLevel_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OpenLevel); + } + if (HasUseOnObtain) { + output.WriteRawTag(32); + output.WriteBool(UseOnObtain); + } + dropIds_.WriteTo(output, _repeated_dropIds_codec); + chooseList_.WriteTo(output, _repeated_chooseList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasKeyItemId) { + output.WriteRawTag(16); + output.WriteInt32(KeyItemId); + } + if (openLevel_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OpenLevel); + } + if (HasUseOnObtain) { + output.WriteRawTag(32); + output.WriteBool(UseOnObtain); + } + dropIds_.WriteTo(ref output, _repeated_dropIds_codec); + chooseList_.WriteTo(ref output, _repeated_chooseList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasKeyItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyItemId); + } + if (openLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OpenLevel); + } + if (HasUseOnObtain) { + size += 1 + 1; + } + size += dropIds_.CalculateSize(_repeated_dropIds_codec); + size += chooseList_.CalculateSize(_repeated_chooseList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTreasureBox other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasKeyItemId) { + KeyItemId = other.KeyItemId; + } + if (other.openLevel_ != null) { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + OpenLevel.MergeFrom(other.OpenLevel); + } + if (other.HasUseOnObtain) { + UseOnObtain = other.UseOnObtain; + } + dropIds_.Add(other.dropIds_); + chooseList_.Add(other.chooseList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + KeyItemId = input.ReadInt32(); + break; + } + case 26: { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + input.ReadMessage(OpenLevel); + break; + } + case 32: { + UseOnObtain = input.ReadBool(); + break; + } + case 42: + case 40: { + dropIds_.AddEntriesFrom(input, _repeated_dropIds_codec); + break; + } + case 50: { + chooseList_.AddEntriesFrom(input, _repeated_chooseList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + KeyItemId = input.ReadInt32(); + break; + } + case 26: { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + input.ReadMessage(OpenLevel); + break; + } + case 32: { + UseOnObtain = input.ReadBool(); + break; + } + case 42: + case 40: { + dropIds_.AddEntriesFrom(ref input, _repeated_dropIds_codec); + break; + } + case 50: { + chooseList_.AddEntriesFrom(ref input, _repeated_chooseList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[85]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition(ConditionCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.TimeRange: + TimeRange = other.TimeRange.Clone(); + break; + case ValueOneofCase.MultiRoleCondition: + MultiRoleCondition = other.MultiRoleCondition.Clone(); + break; + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + case ValueOneofCase.ContainsItem: + ContainsItem = other.ContainsItem.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition Clone() { + return new ConditionCondition(this); + } + + /// Field number for the "TimeRange" field. + public const int TimeRangeFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange TimeRange { + get { return valueCase_ == ValueOneofCase.TimeRange ? (global::Cfg.ConditionTimeRange) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TimeRange; + } + } + + /// Field number for the "MultiRoleCondition" field. + public const int MultiRoleConditionFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMultiRoleCondition MultiRoleCondition { + get { return valueCase_ == ValueOneofCase.MultiRoleCondition ? (global::Cfg.ConditionMultiRoleCondition) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiRoleCondition; + } + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + /// Field number for the "ContainsItem" field. + public const int ContainsItemFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionContainsItem ContainsItem { + get { return valueCase_ == ValueOneofCase.ContainsItem ? (global::Cfg.ConditionContainsItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ContainsItem; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + TimeRange = 1, + MultiRoleCondition = 2, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + ContainsItem = 8, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TimeRange, other.TimeRange)) return false; + if (!object.Equals(MultiRoleCondition, other.MultiRoleCondition)) return false; + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (!object.Equals(ContainsItem, other.ContainsItem)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.TimeRange) hash ^= TimeRange.GetHashCode(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) hash ^= MultiRoleCondition.GetHashCode(); + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.ContainsItem) hash ^= ContainsItem.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.TimeRange) { + output.WriteRawTag(10); + output.WriteMessage(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.TimeRange) { + output.WriteRawTag(10); + output.WriteMessage(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.TimeRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainsItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.TimeRange: + if (TimeRange == null) { + TimeRange = new global::Cfg.ConditionTimeRange(); + } + TimeRange.MergeFrom(other.TimeRange); + break; + case ValueOneofCase.MultiRoleCondition: + if (MultiRoleCondition == null) { + MultiRoleCondition = new global::Cfg.ConditionMultiRoleCondition(); + } + MultiRoleCondition.MergeFrom(other.MultiRoleCondition); + break; + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + case ValueOneofCase.ContainsItem: + if (ContainsItem == null) { + ContainsItem = new global::Cfg.ConditionContainsItem(); + } + ContainsItem.MergeFrom(other.ContainsItem); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ConditionTimeRange subBuilder = new global::Cfg.ConditionTimeRange(); + if (valueCase_ == ValueOneofCase.TimeRange) { + subBuilder.MergeFrom(TimeRange); + } + input.ReadMessage(subBuilder); + TimeRange = subBuilder; + break; + } + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ConditionTimeRange subBuilder = new global::Cfg.ConditionTimeRange(); + if (valueCase_ == ValueOneofCase.TimeRange) { + subBuilder.MergeFrom(TimeRange); + } + input.ReadMessage(subBuilder); + TimeRange = subBuilder; + break; + } + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionTimeRange()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[86]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange(ConditionTimeRange other) : this() { + dateTimeRange_ = other.dateTimeRange_ != null ? other.dateTimeRange_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange Clone() { + return new ConditionTimeRange(this); + } + + /// Field number for the "date_time_range" field. + public const int DateTimeRangeFieldNumber = 1; + private global::Cfg.CommonDateTimeRange dateTimeRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CommonDateTimeRange DateTimeRange { + get { return dateTimeRange_; } + set { + dateTimeRange_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DateTimeRange, other.DateTimeRange)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (dateTimeRange_ != null) hash ^= DateTimeRange.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (dateTimeRange_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DateTimeRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (dateTimeRange_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DateTimeRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (dateTimeRange_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DateTimeRange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionTimeRange other) { + if (other == null) { + return; + } + if (other.dateTimeRange_ != null) { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + DateTimeRange.MergeFrom(other.DateTimeRange); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + input.ReadMessage(DateTimeRange); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + input.ReadMessage(DateTimeRange); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[87]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange(CommonDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange Clone() { + return new CommonDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static int StartTimeDefaultValue = 0; + + private int startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static int EndTimeDefaultValue = 0; + + private int endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[88]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition(ConditionRoleCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.MultiRoleCondition: + MultiRoleCondition = other.MultiRoleCondition.Clone(); + break; + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + case ValueOneofCase.ContainsItem: + ContainsItem = other.ContainsItem.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition Clone() { + return new ConditionRoleCondition(this); + } + + /// Field number for the "MultiRoleCondition" field. + public const int MultiRoleConditionFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMultiRoleCondition MultiRoleCondition { + get { return valueCase_ == ValueOneofCase.MultiRoleCondition ? (global::Cfg.ConditionMultiRoleCondition) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiRoleCondition; + } + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + /// Field number for the "ContainsItem" field. + public const int ContainsItemFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionContainsItem ContainsItem { + get { return valueCase_ == ValueOneofCase.ContainsItem ? (global::Cfg.ConditionContainsItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ContainsItem; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + MultiRoleCondition = 2, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + ContainsItem = 8, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MultiRoleCondition, other.MultiRoleCondition)) return false; + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (!object.Equals(ContainsItem, other.ContainsItem)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.MultiRoleCondition) hash ^= MultiRoleCondition.GetHashCode(); + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.ContainsItem) hash ^= ContainsItem.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainsItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionRoleCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.MultiRoleCondition: + if (MultiRoleCondition == null) { + MultiRoleCondition = new global::Cfg.ConditionMultiRoleCondition(); + } + MultiRoleCondition.MergeFrom(other.MultiRoleCondition); + break; + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + case ValueOneofCase.ContainsItem: + if (ContainsItem == null) { + ContainsItem = new global::Cfg.ConditionContainsItem(); + } + ContainsItem.MergeFrom(other.ContainsItem); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMultiRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMultiRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[89]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition(ConditionMultiRoleCondition other) : this() { + conditions_ = other.conditions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition Clone() { + return new ConditionMultiRoleCondition(this); + } + + /// Field number for the "conditions" field. + public const int ConditionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_conditions_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ConditionRoleCondition.Parser); + private readonly pbc::RepeatedField conditions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Conditions { + get { return conditions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMultiRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMultiRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!conditions_.Equals(other.conditions_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= conditions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + conditions_.WriteTo(output, _repeated_conditions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + conditions_.WriteTo(ref output, _repeated_conditions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += conditions_.CalculateSize(_repeated_conditions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMultiRoleCondition other) { + if (other == null) { + return; + } + conditions_.Add(other.conditions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + conditions_.AddEntriesFrom(input, _repeated_conditions_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + conditions_.AddEntriesFrom(ref input, _repeated_conditions_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionBoolRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionBoolRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[90]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition(ConditionBoolRoleCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition Clone() { + return new ConditionBoolRoleCondition(this); + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionBoolRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionBoolRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionBoolRoleCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionGenderLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionGenderLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[91]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit(ConditionGenderLimit other) : this() { + _hasBits0 = other._hasBits0; + gender_ = other.gender_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit Clone() { + return new ConditionGenderLimit(this); + } + + /// Field number for the "gender" field. + public const int GenderFieldNumber = 1; + private readonly static global::Cfg.RoleEGenderType GenderDefaultValue = global::Cfg.RoleEGenderType.Male; + + private global::Cfg.RoleEGenderType gender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.RoleEGenderType Gender { + get { if ((_hasBits0 & 1) != 0) { return gender_; } else { return GenderDefaultValue; } } + set { + _hasBits0 |= 1; + gender_ = value; + } + } + /// Gets whether the "gender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasGender { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "gender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearGender() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionGenderLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionGenderLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Gender != other.Gender) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasGender) hash ^= Gender.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasGender) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasGender) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasGender) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Gender); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionGenderLimit other) { + if (other == null) { + return; + } + if (other.HasGender) { + Gender = other.Gender; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Gender = (global::Cfg.RoleEGenderType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Gender = (global::Cfg.RoleEGenderType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMinLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMinLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[92]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel(ConditionMinLevel other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel Clone() { + return new ConditionMinLevel(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMinLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMinLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMinLevel other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMaxLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMaxLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[93]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel(ConditionMaxLevel other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel Clone() { + return new ConditionMaxLevel(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMaxLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMaxLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMaxLevel other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMinMaxLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMinMaxLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[94]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel(ConditionMinMaxLevel other) : this() { + _hasBits0 = other._hasBits0; + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel Clone() { + return new ConditionMinMaxLevel(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private readonly static int MinDefaultValue = 0; + + private int min_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Min { + get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } } + set { + _hasBits0 |= 1; + min_ = value; + } + } + /// Gets whether the "min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private readonly static int MaxDefaultValue = 0; + + private int max_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Max { + get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } } + set { + _hasBits0 |= 2; + max_ = value; + } + } + /// Gets whether the "max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMinMaxLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMinMaxLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Min != other.Min) return false; + if (Max != other.Max) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMin) hash ^= Min.GetHashCode(); + if (HasMax) hash ^= Max.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt32(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt32(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt32(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt32(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMin) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Min); + } + if (HasMax) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Max); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMinMaxLevel other) { + if (other == null) { + return; + } + if (other.HasMin) { + Min = other.Min; + } + if (other.HasMax) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Min = input.ReadInt32(); + break; + } + case 16: { + Max = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Min = input.ReadInt32(); + break; + } + case 16: { + Max = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionClothesPropertyScoreGreaterThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionClothesPropertyScoreGreaterThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[95]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan(ConditionClothesPropertyScoreGreaterThan other) : this() { + _hasBits0 = other._hasBits0; + prop_ = other.prop_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan Clone() { + return new ConditionClothesPropertyScoreGreaterThan(this); + } + + /// Field number for the "prop" field. + public const int PropFieldNumber = 1; + private readonly static global::Cfg.ItemEClothesPropertyType PropDefaultValue = global::Cfg.ItemEClothesPropertyType.JianYue; + + private global::Cfg.ItemEClothesPropertyType prop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEClothesPropertyType Prop { + get { if ((_hasBits0 & 1) != 0) { return prop_; } else { return PropDefaultValue; } } + set { + _hasBits0 |= 1; + prop_ = value; + } + } + /// Gets whether the "prop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "prop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProp() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionClothesPropertyScoreGreaterThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionClothesPropertyScoreGreaterThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Prop != other.Prop) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasProp) hash ^= Prop.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasProp) { + output.WriteRawTag(8); + output.WriteEnum((int) Prop); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasProp) { + output.WriteRawTag(8); + output.WriteEnum((int) Prop); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasProp) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Prop); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionClothesPropertyScoreGreaterThan other) { + if (other == null) { + return; + } + if (other.HasProp) { + Prop = other.Prop; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Prop = (global::Cfg.ItemEClothesPropertyType) input.ReadEnum(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Prop = (global::Cfg.ItemEClothesPropertyType) input.ReadEnum(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionContainsItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionContainsItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[96]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem(ConditionContainsItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + reverse_ = other.reverse_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem Clone() { + return new ConditionContainsItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "reverse" field. + public const int ReverseFieldNumber = 3; + private readonly static bool ReverseDefaultValue = false; + + private bool reverse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Reverse { + get { if ((_hasBits0 & 4) != 0) { return reverse_; } else { return ReverseDefaultValue; } } + set { + _hasBits0 |= 4; + reverse_ = value; + } + } + /// Gets whether the "reverse" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverse { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "reverse" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverse() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionContainsItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionContainsItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (Reverse != other.Reverse) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasReverse) hash ^= Reverse.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasReverse) { + output.WriteRawTag(24); + output.WriteBool(Reverse); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasReverse) { + output.WriteRawTag(24); + output.WriteBool(Reverse); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasReverse) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionContainsItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasReverse) { + Reverse = other.Reverse; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Reverse = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Reverse = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemChooseOneBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemChooseOneBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[97]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus(ItemChooseOneBonus other) : this() { + _hasBits0 = other._hasBits0; + dropId_ = other.dropId_; + isUnique_ = other.isUnique_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus Clone() { + return new ItemChooseOneBonus(this); + } + + /// Field number for the "drop_id" field. + public const int DropIdFieldNumber = 1; + private readonly static int DropIdDefaultValue = 0; + + private int dropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropId { + get { if ((_hasBits0 & 1) != 0) { return dropId_; } else { return DropIdDefaultValue; } } + set { + _hasBits0 |= 1; + dropId_ = value; + } + } + /// Gets whether the "drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDropId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDropId() { + _hasBits0 &= ~1; + } + + /// Field number for the "is_unique" field. + public const int IsUniqueFieldNumber = 2; + private readonly static bool IsUniqueDefaultValue = false; + + private bool isUnique_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnique { + get { if ((_hasBits0 & 2) != 0) { return isUnique_; } else { return IsUniqueDefaultValue; } } + set { + _hasBits0 |= 2; + isUnique_ = value; + } + } + /// Gets whether the "is_unique" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsUnique { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_unique" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsUnique() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemChooseOneBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemChooseOneBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DropId != other.DropId) return false; + if (IsUnique != other.IsUnique) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasDropId) hash ^= DropId.GetHashCode(); + if (HasIsUnique) hash ^= IsUnique.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasDropId) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (HasIsUnique) { + output.WriteRawTag(16); + output.WriteBool(IsUnique); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasDropId) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (HasIsUnique) { + output.WriteRawTag(16); + output.WriteBool(IsUnique); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropId); + } + if (HasIsUnique) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemChooseOneBonus other) { + if (other == null) { + return; + } + if (other.HasDropId) { + DropId = other.DropId; + } + if (other.HasIsUnique) { + IsUnique = other.IsUnique; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + IsUnique = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + IsUnique = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemInteractionItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemInteractionItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[98]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem(ItemInteractionItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + attackNum_ = other.attackNum_; + holdingStaticMesh_ = other.holdingStaticMesh_; + holdingStaticMeshMat_ = other.holdingStaticMeshMat_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem Clone() { + return new ItemInteractionItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attack_num" field. + public const int AttackNumFieldNumber = 2; + private readonly static int AttackNumDefaultValue = 0; + + private int attackNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttackNum { + get { if ((_hasBits0 & 2) != 0) { return attackNum_; } else { return AttackNumDefaultValue; } } + set { + _hasBits0 |= 2; + attackNum_ = value; + } + } + /// Gets whether the "attack_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttackNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attack_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttackNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "holding_static_mesh" field. + public const int HoldingStaticMeshFieldNumber = 3; + private readonly static string HoldingStaticMeshDefaultValue = ""; + + private string holdingStaticMesh_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HoldingStaticMesh { + get { return holdingStaticMesh_ ?? HoldingStaticMeshDefaultValue; } + set { + holdingStaticMesh_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "holding_static_mesh" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHoldingStaticMesh { + get { return holdingStaticMesh_ != null; } + } + /// Clears the value of the "holding_static_mesh" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHoldingStaticMesh() { + holdingStaticMesh_ = null; + } + + /// Field number for the "holding_static_mesh_mat" field. + public const int HoldingStaticMeshMatFieldNumber = 4; + private readonly static string HoldingStaticMeshMatDefaultValue = ""; + + private string holdingStaticMeshMat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HoldingStaticMeshMat { + get { return holdingStaticMeshMat_ ?? HoldingStaticMeshMatDefaultValue; } + set { + holdingStaticMeshMat_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "holding_static_mesh_mat" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHoldingStaticMeshMat { + get { return holdingStaticMeshMat_ != null; } + } + /// Clears the value of the "holding_static_mesh_mat" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHoldingStaticMeshMat() { + holdingStaticMeshMat_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemInteractionItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemInteractionItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AttackNum != other.AttackNum) return false; + if (HoldingStaticMesh != other.HoldingStaticMesh) return false; + if (HoldingStaticMeshMat != other.HoldingStaticMeshMat) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAttackNum) hash ^= AttackNum.GetHashCode(); + if (HasHoldingStaticMesh) hash ^= HoldingStaticMesh.GetHashCode(); + if (HasHoldingStaticMeshMat) hash ^= HoldingStaticMeshMat.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttackNum) { + output.WriteRawTag(16); + output.WriteInt32(AttackNum); + } + if (HasHoldingStaticMesh) { + output.WriteRawTag(26); + output.WriteString(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + output.WriteRawTag(34); + output.WriteString(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttackNum) { + output.WriteRawTag(16); + output.WriteInt32(AttackNum); + } + if (HasHoldingStaticMesh) { + output.WriteRawTag(26); + output.WriteString(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + output.WriteRawTag(34); + output.WriteString(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAttackNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttackNum); + } + if (HasHoldingStaticMesh) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemInteractionItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAttackNum) { + AttackNum = other.AttackNum; + } + if (other.HasHoldingStaticMesh) { + HoldingStaticMesh = other.HoldingStaticMesh; + } + if (other.HasHoldingStaticMeshMat) { + HoldingStaticMeshMat = other.HoldingStaticMeshMat; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttackNum = input.ReadInt32(); + break; + } + case 26: { + HoldingStaticMesh = input.ReadString(); + break; + } + case 34: { + HoldingStaticMeshMat = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttackNum = input.ReadInt32(); + break; + } + case 26: { + HoldingStaticMesh = input.ReadString(); + break; + } + case 34: { + HoldingStaticMeshMat = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemClothes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemClothes()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[99]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes(ItemClothes other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + attack_ = other.attack_; + hp_ = other.hp_; + energyLimit_ = other.energyLimit_; + energyResume_ = other.energyResume_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes Clone() { + return new ItemClothes(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attack" field. + public const int AttackFieldNumber = 2; + private readonly static int AttackDefaultValue = 0; + + private int attack_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attack { + get { if ((_hasBits0 & 2) != 0) { return attack_; } else { return AttackDefaultValue; } } + set { + _hasBits0 |= 2; + attack_ = value; + } + } + /// Gets whether the "attack" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttack { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attack" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttack() { + _hasBits0 &= ~2; + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private readonly static long HpDefaultValue = 0L; + + private long hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Hp { + get { if ((_hasBits0 & 4) != 0) { return hp_; } else { return HpDefaultValue; } } + set { + _hasBits0 |= 4; + hp_ = value; + } + } + /// Gets whether the "hp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHp { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "hp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHp() { + _hasBits0 &= ~4; + } + + /// Field number for the "energy_limit" field. + public const int EnergyLimitFieldNumber = 4; + private readonly static int EnergyLimitDefaultValue = 0; + + private int energyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyLimit { + get { if ((_hasBits0 & 8) != 0) { return energyLimit_; } else { return EnergyLimitDefaultValue; } } + set { + _hasBits0 |= 8; + energyLimit_ = value; + } + } + /// Gets whether the "energy_limit" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLimit { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "energy_limit" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLimit() { + _hasBits0 &= ~8; + } + + /// Field number for the "energy_resume" field. + public const int EnergyResumeFieldNumber = 5; + private readonly static int EnergyResumeDefaultValue = 0; + + private int energyResume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyResume { + get { if ((_hasBits0 & 16) != 0) { return energyResume_; } else { return EnergyResumeDefaultValue; } } + set { + _hasBits0 |= 16; + energyResume_ = value; + } + } + /// Gets whether the "energy_resume" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyResume { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "energy_resume" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyResume() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemClothes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemClothes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Attack != other.Attack) return false; + if (Hp != other.Hp) return false; + if (EnergyLimit != other.EnergyLimit) return false; + if (EnergyResume != other.EnergyResume) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAttack) hash ^= Attack.GetHashCode(); + if (HasHp) hash ^= Hp.GetHashCode(); + if (HasEnergyLimit) hash ^= EnergyLimit.GetHashCode(); + if (HasEnergyResume) hash ^= EnergyResume.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttack) { + output.WriteRawTag(16); + output.WriteInt32(Attack); + } + if (HasHp) { + output.WriteRawTag(24); + output.WriteInt64(Hp); + } + if (HasEnergyLimit) { + output.WriteRawTag(32); + output.WriteInt32(EnergyLimit); + } + if (HasEnergyResume) { + output.WriteRawTag(40); + output.WriteInt32(EnergyResume); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttack) { + output.WriteRawTag(16); + output.WriteInt32(Attack); + } + if (HasHp) { + output.WriteRawTag(24); + output.WriteInt64(Hp); + } + if (HasEnergyLimit) { + output.WriteRawTag(32); + output.WriteInt32(EnergyLimit); + } + if (HasEnergyResume) { + output.WriteRawTag(40); + output.WriteInt32(EnergyResume); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAttack) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attack); + } + if (HasHp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Hp); + } + if (HasEnergyLimit) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyLimit); + } + if (HasEnergyResume) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyResume); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemClothes other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAttack) { + Attack = other.Attack; + } + if (other.HasHp) { + Hp = other.Hp; + } + if (other.HasEnergyLimit) { + EnergyLimit = other.EnergyLimit; + } + if (other.HasEnergyResume) { + EnergyResume = other.EnergyResume; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attack = input.ReadInt32(); + break; + } + case 24: { + Hp = input.ReadInt64(); + break; + } + case 32: { + EnergyLimit = input.ReadInt32(); + break; + } + case 40: { + EnergyResume = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attack = input.ReadInt32(); + break; + } + case 24: { + Hp = input.ReadInt64(); + break; + } + case 32: { + EnergyLimit = input.ReadInt32(); + break; + } + case 40: { + EnergyResume = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemDesignDrawing : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemDesignDrawing()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[100]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing(ItemDesignDrawing other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + learnComponentId_ = other.learnComponentId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing Clone() { + return new ItemDesignDrawing(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "learn_component_id" field. + public const int LearnComponentIdFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_learnComponentId_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField learnComponentId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LearnComponentId { + get { return learnComponentId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemDesignDrawing); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemDesignDrawing other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!learnComponentId_.Equals(other.learnComponentId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= learnComponentId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + learnComponentId_.WriteTo(output, _repeated_learnComponentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + learnComponentId_.WriteTo(ref output, _repeated_learnComponentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += learnComponentId_.CalculateSize(_repeated_learnComponentId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemDesignDrawing other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + learnComponentId_.Add(other.learnComponentId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + learnComponentId_.AddEntriesFrom(input, _repeated_learnComponentId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + learnComponentId_.AddEntriesFrom(ref input, _repeated_learnComponentId_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemDymmy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemDymmy()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[101]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy(ItemDymmy other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + cost_ = other.cost_ != null ? other.cost_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy Clone() { + return new ItemDymmy(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "cost" field. + public const int CostFieldNumber = 2; + private global::Cfg.CostCost cost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCost Cost { + get { return cost_; } + set { + cost_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemDymmy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemDymmy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Cost, other.Cost)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (cost_ != null) hash ^= Cost.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (cost_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Cost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (cost_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Cost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (cost_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cost); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemDymmy other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.cost_ != null) { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + Cost.MergeFrom(other.Cost); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + input.ReadMessage(Cost); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + input.ReadMessage(Cost); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCost : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCost()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[102]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost(CostCost other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.CostCurrency: + CostCurrency = other.CostCurrency.Clone(); + break; + case ValueOneofCase.CostCurrencies: + CostCurrencies = other.CostCurrencies.Clone(); + break; + case ValueOneofCase.CostOneItem: + CostOneItem = other.CostOneItem.Clone(); + break; + case ValueOneofCase.CostItem: + CostItem = other.CostItem.Clone(); + break; + case ValueOneofCase.CostItems: + CostItems = other.CostItems.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost Clone() { + return new CostCost(this); + } + + /// Field number for the "CostCurrency" field. + public const int CostCurrencyFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostCurrency CostCurrency { + get { return valueCase_ == ValueOneofCase.CostCurrency ? (global::Cfg.CostCostCurrency) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostCurrency; + } + } + + /// Field number for the "CostCurrencies" field. + public const int CostCurrenciesFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostCurrencies CostCurrencies { + get { return valueCase_ == ValueOneofCase.CostCurrencies ? (global::Cfg.CostCostCurrencies) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostCurrencies; + } + } + + /// Field number for the "CostOneItem" field. + public const int CostOneItemFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostOneItem CostOneItem { + get { return valueCase_ == ValueOneofCase.CostOneItem ? (global::Cfg.CostCostOneItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostOneItem; + } + } + + /// Field number for the "CostItem" field. + public const int CostItemFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostItem CostItem { + get { return valueCase_ == ValueOneofCase.CostItem ? (global::Cfg.CostCostItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostItem; + } + } + + /// Field number for the "CostItems" field. + public const int CostItemsFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostItems CostItems { + get { return valueCase_ == ValueOneofCase.CostItems ? (global::Cfg.CostCostItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostItems; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + CostCurrency = 1, + CostCurrencies = 2, + CostOneItem = 3, + CostItem = 4, + CostItems = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCost); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCost other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CostCurrency, other.CostCurrency)) return false; + if (!object.Equals(CostCurrencies, other.CostCurrencies)) return false; + if (!object.Equals(CostOneItem, other.CostOneItem)) return false; + if (!object.Equals(CostItem, other.CostItem)) return false; + if (!object.Equals(CostItems, other.CostItems)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.CostCurrency) hash ^= CostCurrency.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostCurrencies) hash ^= CostCurrencies.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostOneItem) hash ^= CostOneItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostItem) hash ^= CostItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostItems) hash ^= CostItems.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.CostCurrency) { + output.WriteRawTag(10); + output.WriteMessage(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + output.WriteRawTag(18); + output.WriteMessage(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + output.WriteRawTag(26); + output.WriteMessage(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + output.WriteRawTag(34); + output.WriteMessage(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + output.WriteRawTag(42); + output.WriteMessage(CostItems); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.CostCurrency) { + output.WriteRawTag(10); + output.WriteMessage(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + output.WriteRawTag(18); + output.WriteMessage(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + output.WriteRawTag(26); + output.WriteMessage(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + output.WriteRawTag(34); + output.WriteMessage(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + output.WriteRawTag(42); + output.WriteMessage(CostItems); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.CostCurrency) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostItems); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCost other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.CostCurrency: + if (CostCurrency == null) { + CostCurrency = new global::Cfg.CostCostCurrency(); + } + CostCurrency.MergeFrom(other.CostCurrency); + break; + case ValueOneofCase.CostCurrencies: + if (CostCurrencies == null) { + CostCurrencies = new global::Cfg.CostCostCurrencies(); + } + CostCurrencies.MergeFrom(other.CostCurrencies); + break; + case ValueOneofCase.CostOneItem: + if (CostOneItem == null) { + CostOneItem = new global::Cfg.CostCostOneItem(); + } + CostOneItem.MergeFrom(other.CostOneItem); + break; + case ValueOneofCase.CostItem: + if (CostItem == null) { + CostItem = new global::Cfg.CostCostItem(); + } + CostItem.MergeFrom(other.CostItem); + break; + case ValueOneofCase.CostItems: + if (CostItems == null) { + CostItems = new global::Cfg.CostCostItems(); + } + CostItems.MergeFrom(other.CostItems); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.CostCostCurrency subBuilder = new global::Cfg.CostCostCurrency(); + if (valueCase_ == ValueOneofCase.CostCurrency) { + subBuilder.MergeFrom(CostCurrency); + } + input.ReadMessage(subBuilder); + CostCurrency = subBuilder; + break; + } + case 18: { + global::Cfg.CostCostCurrencies subBuilder = new global::Cfg.CostCostCurrencies(); + if (valueCase_ == ValueOneofCase.CostCurrencies) { + subBuilder.MergeFrom(CostCurrencies); + } + input.ReadMessage(subBuilder); + CostCurrencies = subBuilder; + break; + } + case 26: { + global::Cfg.CostCostOneItem subBuilder = new global::Cfg.CostCostOneItem(); + if (valueCase_ == ValueOneofCase.CostOneItem) { + subBuilder.MergeFrom(CostOneItem); + } + input.ReadMessage(subBuilder); + CostOneItem = subBuilder; + break; + } + case 34: { + global::Cfg.CostCostItem subBuilder = new global::Cfg.CostCostItem(); + if (valueCase_ == ValueOneofCase.CostItem) { + subBuilder.MergeFrom(CostItem); + } + input.ReadMessage(subBuilder); + CostItem = subBuilder; + break; + } + case 42: { + global::Cfg.CostCostItems subBuilder = new global::Cfg.CostCostItems(); + if (valueCase_ == ValueOneofCase.CostItems) { + subBuilder.MergeFrom(CostItems); + } + input.ReadMessage(subBuilder); + CostItems = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.CostCostCurrency subBuilder = new global::Cfg.CostCostCurrency(); + if (valueCase_ == ValueOneofCase.CostCurrency) { + subBuilder.MergeFrom(CostCurrency); + } + input.ReadMessage(subBuilder); + CostCurrency = subBuilder; + break; + } + case 18: { + global::Cfg.CostCostCurrencies subBuilder = new global::Cfg.CostCostCurrencies(); + if (valueCase_ == ValueOneofCase.CostCurrencies) { + subBuilder.MergeFrom(CostCurrencies); + } + input.ReadMessage(subBuilder); + CostCurrencies = subBuilder; + break; + } + case 26: { + global::Cfg.CostCostOneItem subBuilder = new global::Cfg.CostCostOneItem(); + if (valueCase_ == ValueOneofCase.CostOneItem) { + subBuilder.MergeFrom(CostOneItem); + } + input.ReadMessage(subBuilder); + CostOneItem = subBuilder; + break; + } + case 34: { + global::Cfg.CostCostItem subBuilder = new global::Cfg.CostCostItem(); + if (valueCase_ == ValueOneofCase.CostItem) { + subBuilder.MergeFrom(CostItem); + } + input.ReadMessage(subBuilder); + CostItem = subBuilder; + break; + } + case 42: { + global::Cfg.CostCostItems subBuilder = new global::Cfg.CostCostItems(); + if (valueCase_ == ValueOneofCase.CostItems) { + subBuilder.MergeFrom(CostItems); + } + input.ReadMessage(subBuilder); + CostItems = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostCurrency : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostCurrency()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[103]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency(CostCostCurrency other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency Clone() { + return new CostCostCurrency(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static global::Cfg.ItemECurrencyType TypeDefaultValue = global::Cfg.ItemECurrencyType.Diamond; + + private global::Cfg.ItemECurrencyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemECurrencyType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostCurrency); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostCurrency other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Num != other.Num) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostCurrency other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasNum) { + Num = other.Num; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostCurrencies : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostCurrencies()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[104]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies(CostCostCurrencies other) : this() { + currencies_ = other.currencies_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies Clone() { + return new CostCostCurrencies(this); + } + + /// Field number for the "currencies" field. + public const int CurrenciesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_currencies_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CostCostCurrency.Parser); + private readonly pbc::RepeatedField currencies_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Currencies { + get { return currencies_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostCurrencies); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostCurrencies other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!currencies_.Equals(other.currencies_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= currencies_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + currencies_.WriteTo(output, _repeated_currencies_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + currencies_.WriteTo(ref output, _repeated_currencies_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += currencies_.CalculateSize(_repeated_currencies_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostCurrencies other) { + if (other == null) { + return; + } + currencies_.Add(other.currencies_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + currencies_.AddEntriesFrom(input, _repeated_currencies_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + currencies_.AddEntriesFrom(ref input, _repeated_currencies_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostOneItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostOneItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[105]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem(CostCostOneItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem Clone() { + return new CostCostOneItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostOneItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostOneItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostOneItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[106]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem(CostCostItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem Clone() { + return new CostCostItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private readonly static int AmountDefaultValue = 0; + + private int amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Amount { + get { if ((_hasBits0 & 2) != 0) { return amount_; } else { return AmountDefaultValue; } } + set { + _hasBits0 |= 2; + amount_ = value; + } + } + /// Gets whether the "amount" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAmount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "amount" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAmount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasAmount) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasAmount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasAmount) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[107]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems(CostCostItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems Clone() { + return new CostCostItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CostCostItem.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[108]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo(L10nL10NDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo Clone() { + return new L10nL10NDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nL10NDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[109]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo(L10nPatchDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo Clone() { + return new L10nPatchDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nPatchDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailSystemMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailSystemMail()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[110]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail(MailSystemMail other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + title_ = other.title_; + sender_ = other.sender_; + content_ = other.content_; + award_ = other.award_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail Clone() { + return new MailSystemMail(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private readonly static string TitleDefaultValue = ""; + + private string title_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_ ?? TitleDefaultValue; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "title" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTitle { + get { return title_ != null; } + } + /// Clears the value of the "title" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTitle() { + title_ = null; + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 3; + private readonly static string SenderDefaultValue = ""; + + private string sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sender { + get { return sender_ ?? SenderDefaultValue; } + set { + sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSender { + get { return sender_ != null; } + } + /// Clears the value of the "sender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSender() { + sender_ = null; + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 4; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "award" field. + public const int AwardFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_award_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField award_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Award { + get { return award_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailSystemMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailSystemMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Sender != other.Sender) return false; + if (Content != other.Content) return false; + if(!award_.Equals(other.award_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasTitle) hash ^= Title.GetHashCode(); + if (HasSender) hash ^= Sender.GetHashCode(); + if (HasContent) hash ^= Content.GetHashCode(); + hash ^= award_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(output, _repeated_award_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(ref output, _repeated_award_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasTitle) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HasSender) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); + } + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += award_.CalculateSize(_repeated_award_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailSystemMail other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasTitle) { + Title = other.Title; + } + if (other.HasSender) { + Sender = other.Sender; + } + if (other.HasContent) { + Content = other.Content; + } + award_.Add(other.award_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(input, _repeated_award_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(ref input, _repeated_award_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailGlobalMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailGlobalMail()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[111]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail(MailGlobalMail other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + title_ = other.title_; + sender_ = other.sender_; + content_ = other.content_; + award_ = other.award_.Clone(); + allServer_ = other.allServer_; + serverList_ = other.serverList_.Clone(); + platform_ = other.platform_; + channel_ = other.channel_; + minMaxLevel_ = other.minMaxLevel_ != null ? other.minMaxLevel_.Clone() : null; + registerTime_ = other.registerTime_ != null ? other.registerTime_.Clone() : null; + mailTime_ = other.mailTime_ != null ? other.mailTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail Clone() { + return new MailGlobalMail(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private readonly static string TitleDefaultValue = ""; + + private string title_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_ ?? TitleDefaultValue; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "title" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTitle { + get { return title_ != null; } + } + /// Clears the value of the "title" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTitle() { + title_ = null; + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 3; + private readonly static string SenderDefaultValue = ""; + + private string sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sender { + get { return sender_ ?? SenderDefaultValue; } + set { + sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSender { + get { return sender_ != null; } + } + /// Clears the value of the "sender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSender() { + sender_ = null; + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 4; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "award" field. + public const int AwardFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_award_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField award_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Award { + get { return award_; } + } + + /// Field number for the "all_server" field. + public const int AllServerFieldNumber = 6; + private readonly static bool AllServerDefaultValue = false; + + private bool allServer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllServer { + get { if ((_hasBits0 & 2) != 0) { return allServer_; } else { return AllServerDefaultValue; } } + set { + _hasBits0 |= 2; + allServer_ = value; + } + } + /// Gets whether the "all_server" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAllServer { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "all_server" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAllServer() { + _hasBits0 &= ~2; + } + + /// Field number for the "server_list" field. + public const int ServerListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_serverList_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField serverList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServerList { + get { return serverList_; } + } + + /// Field number for the "platform" field. + public const int PlatformFieldNumber = 8; + private readonly static string PlatformDefaultValue = ""; + + private string platform_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Platform { + get { return platform_ ?? PlatformDefaultValue; } + set { + platform_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "platform" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlatform { + get { return platform_ != null; } + } + /// Clears the value of the "platform" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlatform() { + platform_ = null; + } + + /// Field number for the "channel" field. + public const int ChannelFieldNumber = 9; + private readonly static string ChannelDefaultValue = ""; + + private string channel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Channel { + get { return channel_ ?? ChannelDefaultValue; } + set { + channel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "channel" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasChannel { + get { return channel_ != null; } + } + /// Clears the value of the "channel" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearChannel() { + channel_ = null; + } + + /// Field number for the "min_max_level" field. + public const int MinMaxLevelFieldNumber = 10; + private global::Cfg.ConditionMinMaxLevel minMaxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return minMaxLevel_; } + set { + minMaxLevel_ = value; + } + } + + /// Field number for the "register_time" field. + public const int RegisterTimeFieldNumber = 11; + private global::Cfg.ConditionTimeRange registerTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange RegisterTime { + get { return registerTime_; } + set { + registerTime_ = value; + } + } + + /// Field number for the "mail_time" field. + public const int MailTimeFieldNumber = 12; + private global::Cfg.ConditionTimeRange mailTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange MailTime { + get { return mailTime_; } + set { + mailTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailGlobalMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailGlobalMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Sender != other.Sender) return false; + if (Content != other.Content) return false; + if(!award_.Equals(other.award_)) return false; + if (AllServer != other.AllServer) return false; + if(!serverList_.Equals(other.serverList_)) return false; + if (Platform != other.Platform) return false; + if (Channel != other.Channel) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(RegisterTime, other.RegisterTime)) return false; + if (!object.Equals(MailTime, other.MailTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasTitle) hash ^= Title.GetHashCode(); + if (HasSender) hash ^= Sender.GetHashCode(); + if (HasContent) hash ^= Content.GetHashCode(); + hash ^= award_.GetHashCode(); + if (HasAllServer) hash ^= AllServer.GetHashCode(); + hash ^= serverList_.GetHashCode(); + if (HasPlatform) hash ^= Platform.GetHashCode(); + if (HasChannel) hash ^= Channel.GetHashCode(); + if (minMaxLevel_ != null) hash ^= MinMaxLevel.GetHashCode(); + if (registerTime_ != null) hash ^= RegisterTime.GetHashCode(); + if (mailTime_ != null) hash ^= MailTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(output, _repeated_award_codec); + if (HasAllServer) { + output.WriteRawTag(48); + output.WriteBool(AllServer); + } + serverList_.WriteTo(output, _repeated_serverList_codec); + if (HasPlatform) { + output.WriteRawTag(66); + output.WriteString(Platform); + } + if (HasChannel) { + output.WriteRawTag(74); + output.WriteString(Channel); + } + if (minMaxLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MinMaxLevel); + } + if (registerTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RegisterTime); + } + if (mailTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MailTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(ref output, _repeated_award_codec); + if (HasAllServer) { + output.WriteRawTag(48); + output.WriteBool(AllServer); + } + serverList_.WriteTo(ref output, _repeated_serverList_codec); + if (HasPlatform) { + output.WriteRawTag(66); + output.WriteString(Platform); + } + if (HasChannel) { + output.WriteRawTag(74); + output.WriteString(Channel); + } + if (minMaxLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MinMaxLevel); + } + if (registerTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RegisterTime); + } + if (mailTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MailTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasTitle) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HasSender) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); + } + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += award_.CalculateSize(_repeated_award_codec); + if (HasAllServer) { + size += 1 + 1; + } + size += serverList_.CalculateSize(_repeated_serverList_codec); + if (HasPlatform) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Platform); + } + if (HasChannel) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Channel); + } + if (minMaxLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (registerTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegisterTime); + } + if (mailTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MailTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailGlobalMail other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasTitle) { + Title = other.Title; + } + if (other.HasSender) { + Sender = other.Sender; + } + if (other.HasContent) { + Content = other.Content; + } + award_.Add(other.award_); + if (other.HasAllServer) { + AllServer = other.AllServer; + } + serverList_.Add(other.serverList_); + if (other.HasPlatform) { + Platform = other.Platform; + } + if (other.HasChannel) { + Channel = other.Channel; + } + if (other.minMaxLevel_ != null) { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + } + if (other.registerTime_ != null) { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + RegisterTime.MergeFrom(other.RegisterTime); + } + if (other.mailTime_ != null) { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + MailTime.MergeFrom(other.MailTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(input, _repeated_award_codec); + break; + } + case 48: { + AllServer = input.ReadBool(); + break; + } + case 58: + case 56: { + serverList_.AddEntriesFrom(input, _repeated_serverList_codec); + break; + } + case 66: { + Platform = input.ReadString(); + break; + } + case 74: { + Channel = input.ReadString(); + break; + } + case 82: { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + input.ReadMessage(MinMaxLevel); + break; + } + case 90: { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(RegisterTime); + break; + } + case 98: { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(MailTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(ref input, _repeated_award_codec); + break; + } + case 48: { + AllServer = input.ReadBool(); + break; + } + case 58: + case 56: { + serverList_.AddEntriesFrom(ref input, _repeated_serverList_codec); + break; + } + case 66: { + Platform = input.ReadString(); + break; + } + case 74: { + Channel = input.ReadString(); + break; + } + case 82: { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + input.ReadMessage(MinMaxLevel); + break; + } + case 90: { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(RegisterTime); + break; + } + case 98: { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(MailTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleLevelExpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleLevelExpAttr()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[112]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr(RoleLevelExpAttr other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + needExp_ = other.needExp_; + clothesAttrs_ = other.clothesAttrs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr Clone() { + return new RoleLevelExpAttr(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "need_exp" field. + public const int NeedExpFieldNumber = 2; + private readonly static long NeedExpDefaultValue = 0L; + + private long needExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NeedExp { + get { if ((_hasBits0 & 2) != 0) { return needExp_; } else { return NeedExpDefaultValue; } } + set { + _hasBits0 |= 2; + needExp_ = value; + } + } + /// Gets whether the "need_exp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNeedExp { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "need_exp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNeedExp() { + _hasBits0 &= ~2; + } + + /// Field number for the "clothes_attrs" field. + public const int ClothesAttrsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_clothesAttrs_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField clothesAttrs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClothesAttrs { + get { return clothesAttrs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleLevelExpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleLevelExpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + if (NeedExp != other.NeedExp) return false; + if(!clothesAttrs_.Equals(other.clothesAttrs_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (HasNeedExp) hash ^= NeedExp.GetHashCode(); + hash ^= clothesAttrs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (HasNeedExp) { + output.WriteRawTag(16); + output.WriteInt64(NeedExp); + } + clothesAttrs_.WriteTo(output, _repeated_clothesAttrs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (HasNeedExp) { + output.WriteRawTag(16); + output.WriteInt64(NeedExp); + } + clothesAttrs_.WriteTo(ref output, _repeated_clothesAttrs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (HasNeedExp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NeedExp); + } + size += clothesAttrs_.CalculateSize(_repeated_clothesAttrs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleLevelExpAttr other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + if (other.HasNeedExp) { + NeedExp = other.NeedExp; + } + clothesAttrs_.Add(other.clothesAttrs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + case 16: { + NeedExp = input.ReadInt64(); + break; + } + case 26: + case 24: { + clothesAttrs_.AddEntriesFrom(input, _repeated_clothesAttrs_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + case 16: { + NeedExp = input.ReadInt64(); + break; + } + case 26: + case 24: { + clothesAttrs_.AddEntriesFrom(ref input, _repeated_clothesAttrs_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleLevelBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleLevelBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[113]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus(RoleLevelBonus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + distinctBonusInfos_ = other.distinctBonusInfos_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus Clone() { + return new RoleLevelBonus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "distinct_bonus_infos" field. + public const int DistinctBonusInfosFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_distinctBonusInfos_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.RoleDistinctBonusInfos.Parser); + private readonly pbc::RepeatedField distinctBonusInfos_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DistinctBonusInfos { + get { return distinctBonusInfos_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleLevelBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleLevelBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!distinctBonusInfos_.Equals(other.distinctBonusInfos_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= distinctBonusInfos_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + distinctBonusInfos_.WriteTo(output, _repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + distinctBonusInfos_.WriteTo(ref output, _repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += distinctBonusInfos_.CalculateSize(_repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleLevelBonus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + distinctBonusInfos_.Add(other.distinctBonusInfos_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + distinctBonusInfos_.AddEntriesFrom(input, _repeated_distinctBonusInfos_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + distinctBonusInfos_.AddEntriesFrom(ref input, _repeated_distinctBonusInfos_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleDistinctBonusInfos : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleDistinctBonusInfos()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[114]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos(RoleDistinctBonusInfos other) : this() { + _hasBits0 = other._hasBits0; + effectiveLevel_ = other.effectiveLevel_; + bonusInfo_ = other.bonusInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos Clone() { + return new RoleDistinctBonusInfos(this); + } + + /// Field number for the "effective_level" field. + public const int EffectiveLevelFieldNumber = 1; + private readonly static int EffectiveLevelDefaultValue = 0; + + private int effectiveLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectiveLevel { + get { if ((_hasBits0 & 1) != 0) { return effectiveLevel_; } else { return EffectiveLevelDefaultValue; } } + set { + _hasBits0 |= 1; + effectiveLevel_ = value; + } + } + /// Gets whether the "effective_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEffectiveLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "effective_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEffectiveLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "bonus_info" field. + public const int BonusInfoFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_bonusInfo_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.RoleBonusInfo.Parser); + private readonly pbc::RepeatedField bonusInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BonusInfo { + get { return bonusInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleDistinctBonusInfos); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleDistinctBonusInfos other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EffectiveLevel != other.EffectiveLevel) return false; + if(!bonusInfo_.Equals(other.bonusInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasEffectiveLevel) hash ^= EffectiveLevel.GetHashCode(); + hash ^= bonusInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasEffectiveLevel) { + output.WriteRawTag(8); + output.WriteInt32(EffectiveLevel); + } + bonusInfo_.WriteTo(output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasEffectiveLevel) { + output.WriteRawTag(8); + output.WriteInt32(EffectiveLevel); + } + bonusInfo_.WriteTo(ref output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasEffectiveLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectiveLevel); + } + size += bonusInfo_.CalculateSize(_repeated_bonusInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleDistinctBonusInfos other) { + if (other == null) { + return; + } + if (other.HasEffectiveLevel) { + EffectiveLevel = other.EffectiveLevel; + } + bonusInfo_.Add(other.bonusInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + EffectiveLevel = input.ReadInt32(); + break; + } + case 18: { + bonusInfo_.AddEntriesFrom(input, _repeated_bonusInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EffectiveLevel = input.ReadInt32(); + break; + } + case 18: { + bonusInfo_.AddEntriesFrom(ref input, _repeated_bonusInfo_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[115]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo(RoleBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + coefficient_ = other.coefficient_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo Clone() { + return new RoleBonusInfo(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static global::Cfg.ItemECurrencyType TypeDefaultValue = global::Cfg.ItemECurrencyType.Diamond; + + private global::Cfg.ItemECurrencyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemECurrencyType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "coefficient" field. + public const int CoefficientFieldNumber = 2; + private readonly static float CoefficientDefaultValue = 0F; + + private float coefficient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Coefficient { + get { if ((_hasBits0 & 2) != 0) { return coefficient_; } else { return CoefficientDefaultValue; } } + set { + _hasBits0 |= 2; + coefficient_ = value; + } + } + /// Gets whether the "coefficient" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCoefficient { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "coefficient" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCoefficient() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Coefficient, other.Coefficient)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasCoefficient) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Coefficient); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasCoefficient) { + output.WriteRawTag(21); + output.WriteFloat(Coefficient); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasCoefficient) { + output.WriteRawTag(21); + output.WriteFloat(Coefficient); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasCoefficient) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleBonusInfo other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasCoefficient) { + Coefficient = other.Coefficient; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 21: { + Coefficient = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 21: { + Coefficient = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTestTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[116]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag(TagTestTag other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag Clone() { + return new TagTestTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTestTag other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[117]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2(TestDemoType2 other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + x80_ = other.x80_; + x8_ = other.x8_; + x9_ = other.x9_; + x10_ = other.x10_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + s1_ = other.s1_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k5_ = other.k5_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2 Clone() { + return new TestDemoType2(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "x8_0" field. + public const int X80FieldNumber = 8; + private readonly static int X80DefaultValue = 0; + + private int x80_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X80 { + get { if ((_hasBits0 & 128) != 0) { return x80_; } else { return X80DefaultValue; } } + set { + _hasBits0 |= 128; + x80_ = value; + } + } + /// Gets whether the "x8_0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX80 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "x8_0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX80() { + _hasBits0 &= ~128; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 9; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 256) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 256; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~256; + } + + /// Field number for the "x9" field. + public const int X9FieldNumber = 10; + private readonly static long X9DefaultValue = 0L; + + private long x9_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X9 { + get { if ((_hasBits0 & 512) != 0) { return x9_; } else { return X9DefaultValue; } } + set { + _hasBits0 |= 512; + x9_ = value; + } + } + /// Gets whether the "x9" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX9 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "x9" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX9() { + _hasBits0 &= ~512; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 11; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 12; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 13; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 1024) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 1024; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~1024; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 14; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 15; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 16; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 17; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 18; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 19; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 2048) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 2048; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~2048; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 20; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 21; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(170); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k5" field. + public const int K5FieldNumber = 22; + private static readonly pb::FieldCodec _repeated_k5_codec + = pb::FieldCodec.ForInt32(178); + private readonly pbc::RepeatedField k5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K5 { + get { return k5_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 23; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 186); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 24; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(194, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 25; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(202, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (X80 != other.X80) return false; + if (X8 != other.X8) return false; + if (X9 != other.X9) return false; + if (X10 != other.X10) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (S1 != other.S1) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if(!k5_.Equals(other.k5_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasX80) hash ^= X80.GetHashCode(); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX9) hash ^= X9.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= k5_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(77); + output.WriteSFixed32(X8); + } + if (HasX9) { + output.WriteRawTag(81); + output.WriteSFixed64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (v2_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(152, 1); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k5_.WriteTo(output, _repeated_k5_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(77); + output.WriteSFixed32(X8); + } + if (HasX9) { + output.WriteRawTag(81); + output.WriteSFixed64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (v2_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(152, 1); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k5_.WriteTo(ref output, _repeated_k5_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasX80) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X80); + } + if (HasX8) { + size += 1 + 4; + } + if (HasX9) { + size += 1 + 8; + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (v2_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k5_.CalculateSize(_repeated_k5_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType2 other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasX80) { + X80 = other.X80; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX9) { + X9 = other.X9; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k5_.Add(other.k5_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 77: { + X8 = input.ReadSFixed32(); + break; + } + case 81: { + X9 = input.ReadSFixed64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 130: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 138: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 146: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 152: { + T1 = input.ReadInt32(); + break; + } + case 162: + case 160: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 170: + case 168: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 178: + case 176: { + k5_.AddEntriesFrom(input, _repeated_k5_codec); + break; + } + case 186: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 194: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 202: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 77: { + X8 = input.ReadSFixed32(); + break; + } + case 81: { + X9 = input.ReadSFixed64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 130: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 138: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 146: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 152: { + T1 = input.ReadInt32(); + break; + } + case 162: + case 160: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 170: + case 168: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 178: + case 176: { + k5_.AddEntriesFrom(ref input, _repeated_k5_codec); + break; + } + case 186: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 194: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 202: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[118]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1(TestDemoType1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1 Clone() { + return new TestDemoType1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoDynamic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoDynamic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[119]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic(TestDemoDynamic other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + DemoD2 = other.DemoD2.Clone(); + break; + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.DemoD5: + DemoD5 = other.DemoD5.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic Clone() { + return new TestDemoDynamic(this); + } + + /// Field number for the "DemoD2" field. + public const int DemoD2FieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD2 DemoD2 { + get { return valueCase_ == ValueOneofCase.DemoD2 ? (global::Cfg.TestDemoD2) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD2; + } + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "DemoD5" field. + public const int DemoD5FieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD5 DemoD5 { + get { return valueCase_ == ValueOneofCase.DemoD5 ? (global::Cfg.TestDemoD5) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD5; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoD2 = 1, + DemoE1 = 2, + DemoD5 = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoDynamic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoDynamic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoD2, other.DemoD2)) return false; + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(DemoD5, other.DemoD5)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoD2) hash ^= DemoD2.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoD5) hash ^= DemoD5.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(26); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(26); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoD2) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoDynamic other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + if (DemoD2 == null) { + DemoD2 = new global::Cfg.TestDemoD2(); + } + DemoD2.MergeFrom(other.DemoD2); + break; + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.DemoD5: + if (DemoD5 == null) { + DemoD5 = new global::Cfg.TestDemoD5(); + } + DemoD5.MergeFrom(other.DemoD5); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[120]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2(TestDemoD2 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2 Clone() { + return new TestDemoD2(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD2 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[121]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3(TestDemoD3 other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3 Clone() { + return new TestDemoD3(this); + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoE1 = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD3 other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[122]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1(TestDemoE1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1 Clone() { + return new TestDemoE1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 3; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD5 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD5()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[123]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5(TestDemoD5 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5 Clone() { + return new TestDemoD5(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Cfg.TestDateTimeRange time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDateTimeRange Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD5); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD5 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (!object.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD5 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + Time.MergeFrom(other.Time); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[124]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange(TestDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange Clone() { + return new TestDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static int StartTimeDefaultValue = 0; + + private int startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static int EndTimeDefaultValue = 0; + + private int endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[125]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2(TestDemoE2 other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2 Clone() { + return new TestDemoE2(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static bool Y2DefaultValue = false; + + private bool y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE2 other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoSingletonType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoSingletonType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[126]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType(TestDemoSingletonType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + date_ = other.date_ != null ? other.date_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType Clone() { + return new TestDemoSingletonType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 3; + private global::Cfg.TestDemoDynamic date_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic Date { + get { return date_; } + set { + date_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoSingletonType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoSingletonType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(Date, other.Date)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (date_ != null) hash ^= Date.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoSingletonType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + Date.MergeFrom(other.Date); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[127]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList(TestNotIndexList other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList Clone() { + return new TestNotIndexList(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestNotIndexList other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[128]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList(TestMultiUnionIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList Clone() { + return new TestMultiUnionIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiUnionIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[129]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList(TestMultiIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList Clone() { + return new TestMultiIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[130]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord(TestMultiRowRecord other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + oneRows_ = other.oneRows_.Clone(); + multiRows1_ = other.multiRows1_.Clone(); + multiRows2_ = other.multiRows2_.Clone(); + multiRows4_ = other.multiRows4_.Clone(); + multiRows5_ = other.multiRows5_.Clone(); + multiRows6_ = other.multiRows6_.Clone(); + multiRows7_ = other.multiRows7_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord Clone() { + return new TestMultiRowRecord(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "one_rows" field. + public const int OneRowsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_oneRows_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField oneRows_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OneRows { + get { return oneRows_; } + } + + /// Field number for the "multi_rows1" field. + public const int MultiRows1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_multiRows1_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows1 { + get { return multiRows1_; } + } + + /// Field number for the "multi_rows2" field. + public const int MultiRows2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_multiRows2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows2 { + get { return multiRows2_; } + } + + /// Field number for the "multi_rows4" field. + public const int MultiRows4FieldNumber = 6; + private static readonly pbc::MapField.Codec _map_multiRows4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 50); + private readonly pbc::MapField multiRows4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows4 { + get { return multiRows4_; } + } + + /// Field number for the "multi_rows5" field. + public const int MultiRows5FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_multiRows5_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestMultiRowType3.Parser); + private readonly pbc::RepeatedField multiRows5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows5 { + get { return multiRows5_; } + } + + /// Field number for the "multi_rows6" field. + public const int MultiRows6FieldNumber = 8; + private static readonly pbc::MapField.Codec _map_multiRows6_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 66); + private readonly pbc::MapField multiRows6_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows6 { + get { return multiRows6_; } + } + + /// Field number for the "multi_rows7" field. + public const int MultiRows7FieldNumber = 9; + private static readonly pbc::MapField.Codec _map_multiRows7_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 74); + private readonly pbc::MapField multiRows7_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows7 { + get { return multiRows7_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!oneRows_.Equals(other.oneRows_)) return false; + if(!multiRows1_.Equals(other.multiRows1_)) return false; + if(!multiRows2_.Equals(other.multiRows2_)) return false; + if (!MultiRows4.Equals(other.MultiRows4)) return false; + if(!multiRows5_.Equals(other.multiRows5_)) return false; + if (!MultiRows6.Equals(other.MultiRows6)) return false; + if (!MultiRows7.Equals(other.MultiRows7)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + hash ^= oneRows_.GetHashCode(); + hash ^= multiRows1_.GetHashCode(); + hash ^= multiRows2_.GetHashCode(); + hash ^= MultiRows4.GetHashCode(); + hash ^= multiRows5_.GetHashCode(); + hash ^= MultiRows6.GetHashCode(); + hash ^= MultiRows7.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(output, _repeated_oneRows_codec); + multiRows1_.WriteTo(output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(output, _map_multiRows4_codec); + multiRows5_.WriteTo(output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(output, _map_multiRows6_codec); + multiRows7_.WriteTo(output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(ref output, _repeated_oneRows_codec); + multiRows1_.WriteTo(ref output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(ref output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(ref output, _map_multiRows4_codec); + multiRows5_.WriteTo(ref output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(ref output, _map_multiRows6_codec); + multiRows7_.WriteTo(ref output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += oneRows_.CalculateSize(_repeated_oneRows_codec); + size += multiRows1_.CalculateSize(_repeated_multiRows1_codec); + size += multiRows2_.CalculateSize(_repeated_multiRows2_codec); + size += multiRows4_.CalculateSize(_map_multiRows4_codec); + size += multiRows5_.CalculateSize(_repeated_multiRows5_codec); + size += multiRows6_.CalculateSize(_map_multiRows6_codec); + size += multiRows7_.CalculateSize(_map_multiRows7_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowRecord other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + oneRows_.Add(other.oneRows_); + multiRows1_.Add(other.multiRows1_); + multiRows2_.Add(other.multiRows2_); + multiRows4_.Add(other.multiRows4_); + multiRows5_.Add(other.multiRows5_); + multiRows6_.Add(other.multiRows6_); + multiRows7_.Add(other.multiRows7_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(input, _map_multiRows7_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(ref input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(ref input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(ref input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(ref input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(ref input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(ref input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(ref input, _map_multiRows7_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[131]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1(TestMultiRowType1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1 Clone() { + return new TestMultiRowType1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[132]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2(TestMultiRowType2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2 Clone() { + return new TestMultiRowType2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[133]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3(TestMultiRowType3 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3 Clone() { + return new TestMultiRowType3(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType3 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[134]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle(TestMultiRowTitle other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x20_ = other.x20_ != null ? other.x20_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle Clone() { + return new TestMultiRowTitle(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2_0" field. + public const int X20FieldNumber = 4; + private global::Cfg.TestH2 x20_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 X20 { + get { return x20_; } + set { + x20_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(X1, other.X1)) return false; + if (!object.Equals(X20, other.X20)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + if (x20_ != null) hash ^= X20.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + if (x20_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X20); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowTitle other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + if (other.x20_ != null) { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + X20.MergeFrom(other.X20); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[135]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1(TestH1 other) : this() { + _hasBits0 = other._hasBits0; + y2_ = other.y2_ != null ? other.y2_.Clone() : null; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1 Clone() { + return new TestH1(this); + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 1; + private global::Cfg.TestH2 y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 Y2 { + get { return y2_; } + set { + y2_ = value; + } + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 2; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 1) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 1; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Y2, other.Y2)) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (y2_ != null) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (y2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH1 other) { + if (other == null) { + return; + } + if (other.y2_ != null) { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + Y2.MergeFrom(other.Y2); + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[136]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2(TestH2 other) : this() { + _hasBits0 = other._hasBits0; + z2_ = other.z2_; + z3_ = other.z3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2 Clone() { + return new TestH2(this); + } + + /// Field number for the "z2" field. + public const int Z2FieldNumber = 1; + private readonly static int Z2DefaultValue = 0; + + private int z2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z2 { + get { if ((_hasBits0 & 1) != 0) { return z2_; } else { return Z2DefaultValue; } } + set { + _hasBits0 |= 1; + z2_ = value; + } + } + /// Gets whether the "z2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ2 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "z2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ2() { + _hasBits0 &= ~1; + } + + /// Field number for the "z3" field. + public const int Z3FieldNumber = 2; + private readonly static int Z3DefaultValue = 0; + + private int z3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z3 { + get { if ((_hasBits0 & 2) != 0) { return z3_; } else { return Z3DefaultValue; } } + set { + _hasBits0 |= 2; + z3_ = value; + } + } + /// Gets whether the "z3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "z3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ3() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Z2 != other.Z2) return false; + if (Z3 != other.Z3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasZ2) hash ^= Z2.GetHashCode(); + if (HasZ3) hash ^= Z3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasZ2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z2); + } + if (HasZ3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH2 other) { + if (other == null) { + return; + } + if (other.HasZ2) { + Z2 = other.Z2; + } + if (other.HasZ3) { + Z3 = other.Z3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestNull()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[137]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull(TestTestNull other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_ != null ? other.x4_.Clone() : null; + s1_ = other.s1_; + s2_ = other.s2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull Clone() { + return new TestTestNull(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static global::Cfg.TestDemoEnum X2DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestDemoType1 x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private global::Cfg.TestDemoDynamic x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X4 { + get { return x4_; } + set { + x4_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 6; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 7; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (!object.Equals(X3, other.X3)) return false; + if (!object.Equals(X4, other.X4)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + if (x4_ != null) hash ^= X4.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + if (x4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X4); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestNull other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + X3.MergeFrom(other.X3); + } + if (other.x4_ != null) { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + X4.MergeFrom(other.X4); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoPrimitiveTypesTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoPrimitiveTypesTable()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[138]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable(TestDemoPrimitiveTypesTable other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable Clone() { + return new TestDemoPrimitiveTypesTable(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 4) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 4; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~4; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 8) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 8; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 8; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 9; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 10; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 11; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 12; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 13; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoPrimitiveTypesTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoPrimitiveTypesTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt32(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt32(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoPrimitiveTypesTable other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[139]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString(TestTestString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s1_ = other.s1_; + cs1_ = other.cs1_ != null ? other.cs1_.Clone() : null; + cs2_ = other.cs2_ != null ? other.cs2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString Clone() { + return new TestTestString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 2; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "cs1" field. + public const int Cs1FieldNumber = 3; + private global::Cfg.TestCompactString cs1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs1 { + get { return cs1_; } + set { + cs1_ = value; + } + } + + /// Field number for the "cs2" field. + public const int Cs2FieldNumber = 4; + private global::Cfg.TestCompactString cs2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs2 { + get { return cs2_; } + set { + cs2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S1 != other.S1) return false; + if (!object.Equals(Cs1, other.Cs1)) return false; + if (!object.Equals(Cs2, other.Cs2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (cs1_ != null) hash ^= Cs1.GetHashCode(); + if (cs2_ != null) hash ^= Cs2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (cs1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs1); + } + if (cs2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.cs1_ != null) { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + Cs1.MergeFrom(other.Cs1); + } + if (other.cs2_ != null) { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + Cs2.MergeFrom(other.Cs2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompactString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompactString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[140]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString(TestCompactString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s2_ = other.s2_; + s3_ = other.s3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString Clone() { + return new TestCompactString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 2; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "s3" field. + public const int S3FieldNumber = 3; + private readonly static string S3DefaultValue = ""; + + private string s3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S3 { + get { return s3_ ?? S3DefaultValue; } + set { + s3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS3 { + get { return s3_ != null; } + } + /// Clears the value of the "s3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS3() { + s3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompactString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompactString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S2 != other.S2) return false; + if (S3 != other.S3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasS3) hash ^= S3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasS3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompactString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasS3) { + S3 = other.S3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[141]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup(TestDemoGroup other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_ != null ? other.x5_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup Clone() { + return new TestDemoGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 16) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 16; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~16; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private global::Cfg.TestInnerGroup x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestInnerGroup X5 { + get { return x5_; } + set { + x5_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (!object.Equals(X5, other.X5)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (x5_ != null) hash ^= X5.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (x5_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoGroup other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.x5_ != null) { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + X5.MergeFrom(other.X5); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestInnerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestInnerGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[142]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup(TestInnerGroup other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + y4_ = other.y4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup Clone() { + return new TestInnerGroup(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + /// Field number for the "y4" field. + public const int Y4FieldNumber = 4; + private readonly static int Y4DefaultValue = 0; + + private int y4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y4 { + get { if ((_hasBits0 & 8) != 0) { return y4_; } else { return Y4DefaultValue; } } + set { + _hasBits0 |= 8; + y4_ = value; + } + } + /// Gets whether the "y4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "y4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY4() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestInnerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestInnerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + if (Y4 != other.Y4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (HasY4) hash ^= Y4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (HasY4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestInnerGroup other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + if (other.HasY4) { + Y4 = other.Y4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[143]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal(TestTestGlobal other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal Clone() { + return new TestTestGlobal(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestGlobal other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[144]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef(TestTestBeRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef Clone() { + return new TestTestBeRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private readonly static int CountDefaultValue = 0; + + private int count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Count { + get { if ((_hasBits0 & 2) != 0) { return count_; } else { return CountDefaultValue; } } + set { + _hasBits0 |= 2; + count_ = value; + } + } + /// Gets whether the "count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestBeRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasCount) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[145]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef(TestTestRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x12_ = other.x12_; + x2_ = other.x2_; + x3_ = other.x3_; + a1_ = other.a1_.Clone(); + a2_ = other.a2_.Clone(); + b1_ = other.b1_.Clone(); + b2_ = other.b2_.Clone(); + c1_ = other.c1_.Clone(); + c2_ = other.c2_.Clone(); + d1_ = other.d1_.Clone(); + d2_ = other.d2_.Clone(); + e1_ = other.e1_; + e2_ = other.e2_; + e3_ = other.e3_; + f1_ = other.f1_; + f2_ = other.f2_; + f3_ = other.f3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef Clone() { + return new TestTestRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x1_2" field. + public const int X12FieldNumber = 3; + private readonly static int X12DefaultValue = 0; + + private int x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X12 { + get { if ((_hasBits0 & 4) != 0) { return x12_; } else { return X12DefaultValue; } } + set { + _hasBits0 |= 4; + x12_ = value; + } + } + /// Gets whether the "x1_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX12 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x1_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX12() { + _hasBits0 &= ~4; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 8) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 8; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~8; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 16) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 16; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~16; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_a1_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField a1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A1 { + get { return a1_; } + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_a2_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField a2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A2 { + get { return a2_; } + } + + /// Field number for the "b1" field. + public const int B1FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_b1_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField b1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B1 { + get { return b1_; } + } + + /// Field number for the "b2" field. + public const int B2FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_b2_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField b2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B2 { + get { return b2_; } + } + + /// Field number for the "c1" field. + public const int C1FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_c1_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField c1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C1 { + get { return c1_; } + } + + /// Field number for the "c2" field. + public const int C2FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_c2_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField c2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C2 { + get { return c2_; } + } + + /// Field number for the "d1" field. + public const int D1FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_d1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField d1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D1 { + get { return d1_; } + } + + /// Field number for the "d2" field. + public const int D2FieldNumber = 13; + private static readonly pbc::MapField.Codec _map_d2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 106); + private readonly pbc::MapField d2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D2 { + get { return d2_; } + } + + /// Field number for the "e1" field. + public const int E1FieldNumber = 14; + private readonly static int E1DefaultValue = 0; + + private int e1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int E1 { + get { if ((_hasBits0 & 32) != 0) { return e1_; } else { return E1DefaultValue; } } + set { + _hasBits0 |= 32; + e1_ = value; + } + } + /// Gets whether the "e1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE1 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "e1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE1() { + _hasBits0 &= ~32; + } + + /// Field number for the "e2" field. + public const int E2FieldNumber = 15; + private readonly static long E2DefaultValue = 0L; + + private long e2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long E2 { + get { if ((_hasBits0 & 64) != 0) { return e2_; } else { return E2DefaultValue; } } + set { + _hasBits0 |= 64; + e2_ = value; + } + } + /// Gets whether the "e2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE2 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "e2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE2() { + _hasBits0 &= ~64; + } + + /// Field number for the "e3" field. + public const int E3FieldNumber = 16; + private readonly static string E3DefaultValue = ""; + + private string e3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string E3 { + get { return e3_ ?? E3DefaultValue; } + set { + e3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "e3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE3 { + get { return e3_ != null; } + } + /// Clears the value of the "e3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE3() { + e3_ = null; + } + + /// Field number for the "f1" field. + public const int F1FieldNumber = 17; + private readonly static int F1DefaultValue = 0; + + private int f1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int F1 { + get { if ((_hasBits0 & 128) != 0) { return f1_; } else { return F1DefaultValue; } } + set { + _hasBits0 |= 128; + f1_ = value; + } + } + /// Gets whether the "f1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "f1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF1() { + _hasBits0 &= ~128; + } + + /// Field number for the "f2" field. + public const int F2FieldNumber = 18; + private readonly static long F2DefaultValue = 0L; + + private long f2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long F2 { + get { if ((_hasBits0 & 256) != 0) { return f2_; } else { return F2DefaultValue; } } + set { + _hasBits0 |= 256; + f2_ = value; + } + } + /// Gets whether the "f2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF2 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "f2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF2() { + _hasBits0 &= ~256; + } + + /// Field number for the "f3" field. + public const int F3FieldNumber = 19; + private readonly static string F3DefaultValue = ""; + + private string f3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string F3 { + get { return f3_ ?? F3DefaultValue; } + set { + f3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "f3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF3 { + get { return f3_ != null; } + } + /// Clears the value of the "f3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF3() { + f3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X12 != other.X12) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if(!a1_.Equals(other.a1_)) return false; + if(!a2_.Equals(other.a2_)) return false; + if(!b1_.Equals(other.b1_)) return false; + if(!b2_.Equals(other.b2_)) return false; + if(!c1_.Equals(other.c1_)) return false; + if(!c2_.Equals(other.c2_)) return false; + if (!D1.Equals(other.D1)) return false; + if (!D2.Equals(other.D2)) return false; + if (E1 != other.E1) return false; + if (E2 != other.E2) return false; + if (E3 != other.E3) return false; + if (F1 != other.F1) return false; + if (F2 != other.F2) return false; + if (F3 != other.F3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX12) hash ^= X12.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + hash ^= a1_.GetHashCode(); + hash ^= a2_.GetHashCode(); + hash ^= b1_.GetHashCode(); + hash ^= b2_.GetHashCode(); + hash ^= c1_.GetHashCode(); + hash ^= c2_.GetHashCode(); + hash ^= D1.GetHashCode(); + hash ^= D2.GetHashCode(); + if (HasE1) hash ^= E1.GetHashCode(); + if (HasE2) hash ^= E2.GetHashCode(); + if (HasE3) hash ^= E3.GetHashCode(); + if (HasF1) hash ^= F1.GetHashCode(); + if (HasF2) hash ^= F2.GetHashCode(); + if (HasF3) hash ^= F3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + a1_.WriteTo(output, _repeated_a1_codec); + a2_.WriteTo(output, _repeated_a2_codec); + b1_.WriteTo(output, _repeated_b1_codec); + b2_.WriteTo(output, _repeated_b2_codec); + c1_.WriteTo(output, _repeated_c1_codec); + c2_.WriteTo(output, _repeated_c2_codec); + d1_.WriteTo(output, _map_d1_codec); + d2_.WriteTo(output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(112); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(120); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(130, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(136, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(144, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(154, 1); + output.WriteString(F3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + a1_.WriteTo(ref output, _repeated_a1_codec); + a2_.WriteTo(ref output, _repeated_a2_codec); + b1_.WriteTo(ref output, _repeated_b1_codec); + b2_.WriteTo(ref output, _repeated_b2_codec); + c1_.WriteTo(ref output, _repeated_c1_codec); + c2_.WriteTo(ref output, _repeated_c2_codec); + d1_.WriteTo(ref output, _map_d1_codec); + d2_.WriteTo(ref output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(112); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(120); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(130, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(136, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(144, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(154, 1); + output.WriteString(F3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX12) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X12); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + size += a1_.CalculateSize(_repeated_a1_codec); + size += a2_.CalculateSize(_repeated_a2_codec); + size += b1_.CalculateSize(_repeated_b1_codec); + size += b2_.CalculateSize(_repeated_b2_codec); + size += c1_.CalculateSize(_repeated_c1_codec); + size += c2_.CalculateSize(_repeated_c2_codec); + size += d1_.CalculateSize(_map_d1_codec); + size += d2_.CalculateSize(_map_d2_codec); + if (HasE1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(E1); + } + if (HasE2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(E2); + } + if (HasE3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(E3); + } + if (HasF1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(F1); + } + if (HasF2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(F2); + } + if (HasF3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(F3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX12) { + X12 = other.X12; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + a1_.Add(other.a1_); + a2_.Add(other.a2_); + b1_.Add(other.b1_); + b2_.Add(other.b2_); + c1_.Add(other.c1_); + c2_.Add(other.c2_); + d1_.Add(other.d1_); + d2_.Add(other.d2_); + if (other.HasE1) { + E1 = other.E1; + } + if (other.HasE2) { + E2 = other.E2; + } + if (other.HasE3) { + E3 = other.E3; + } + if (other.HasF1) { + F1 = other.F1; + } + if (other.HasF2) { + F2 = other.F2; + } + if (other.HasF3) { + F3 = other.F3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 50: + case 48: { + a1_.AddEntriesFrom(input, _repeated_a1_codec); + break; + } + case 58: + case 56: { + a2_.AddEntriesFrom(input, _repeated_a2_codec); + break; + } + case 66: + case 64: { + b1_.AddEntriesFrom(input, _repeated_b1_codec); + break; + } + case 74: + case 72: { + b2_.AddEntriesFrom(input, _repeated_b2_codec); + break; + } + case 82: + case 80: { + c1_.AddEntriesFrom(input, _repeated_c1_codec); + break; + } + case 90: + case 88: { + c2_.AddEntriesFrom(input, _repeated_c2_codec); + break; + } + case 98: { + d1_.AddEntriesFrom(input, _map_d1_codec); + break; + } + case 106: { + d2_.AddEntriesFrom(input, _map_d2_codec); + break; + } + case 112: { + E1 = input.ReadInt32(); + break; + } + case 120: { + E2 = input.ReadInt64(); + break; + } + case 130: { + E3 = input.ReadString(); + break; + } + case 136: { + F1 = input.ReadInt32(); + break; + } + case 144: { + F2 = input.ReadInt64(); + break; + } + case 154: { + F3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 50: + case 48: { + a1_.AddEntriesFrom(ref input, _repeated_a1_codec); + break; + } + case 58: + case 56: { + a2_.AddEntriesFrom(ref input, _repeated_a2_codec); + break; + } + case 66: + case 64: { + b1_.AddEntriesFrom(ref input, _repeated_b1_codec); + break; + } + case 74: + case 72: { + b2_.AddEntriesFrom(ref input, _repeated_b2_codec); + break; + } + case 82: + case 80: { + c1_.AddEntriesFrom(ref input, _repeated_c1_codec); + break; + } + case 90: + case 88: { + c2_.AddEntriesFrom(ref input, _repeated_c2_codec); + break; + } + case 98: { + d1_.AddEntriesFrom(ref input, _map_d1_codec); + break; + } + case 106: { + d2_.AddEntriesFrom(ref input, _map_d2_codec); + break; + } + case 112: { + E1 = input.ReadInt32(); + break; + } + case 120: { + E2 = input.ReadInt64(); + break; + } + case 130: { + E3 = input.ReadString(); + break; + } + case 136: { + F1 = input.ReadInt32(); + break; + } + case 144: { + F2 = input.ReadInt64(); + break; + } + case 154: { + F3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSize()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[146]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize(TestTestSize other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize Clone() { + return new TestTestSize(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSize other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[147]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet(TestTestSet other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet Clone() { + return new TestTestSet(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt64(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForEnum(40, x => (int) x, x => (global::Cfg.TestDemoEnum) x); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSet other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: + case 40: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: + case 40: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDetectEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDetectEncoding()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[148]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding(TestDetectEncoding other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding Clone() { + return new TestDetectEncoding(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDetectEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDetectEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDetectEncoding other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[149]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel(TestDefineFromExcel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel Clone() { + return new TestDefineFromExcel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestETestQuality X13DefaultValue = global::Cfg.TestETestQuality.A; + + private global::Cfg.TestETestQuality x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestETestQuality X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 8; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 9; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 64) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 64; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~64; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcelOne : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcelOne()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[150]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne(TestDefineFromExcelOne other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + defaultAvatar_ = other.defaultAvatar_; + defaultItem_ = other.defaultItem_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne Clone() { + return new TestDefineFromExcelOne(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + /// Field number for the "default_avatar" field. + public const int DefaultAvatarFieldNumber = 3; + private readonly static string DefaultAvatarDefaultValue = ""; + + private string defaultAvatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DefaultAvatar { + get { return defaultAvatar_ ?? DefaultAvatarDefaultValue; } + set { + defaultAvatar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "default_avatar" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDefaultAvatar { + get { return defaultAvatar_ != null; } + } + /// Clears the value of the "default_avatar" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDefaultAvatar() { + defaultAvatar_ = null; + } + + /// Field number for the "default_item" field. + public const int DefaultItemFieldNumber = 4; + private readonly static string DefaultItemDefaultValue = ""; + + private string defaultItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DefaultItem { + get { return defaultItem_ ?? DefaultItemDefaultValue; } + set { + defaultItem_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "default_item" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDefaultItem { + get { return defaultItem_ != null; } + } + /// Clears the value of the "default_item" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDefaultItem() { + defaultItem_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcelOne); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcelOne other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + if (DefaultAvatar != other.DefaultAvatar) return false; + if (DefaultItem != other.DefaultItem) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (HasDefaultAvatar) hash ^= DefaultAvatar.GetHashCode(); + if (HasDefaultItem) hash ^= DefaultItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (HasDefaultAvatar) { + output.WriteRawTag(26); + output.WriteString(DefaultAvatar); + } + if (HasDefaultItem) { + output.WriteRawTag(34); + output.WriteString(DefaultItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (HasDefaultAvatar) { + output.WriteRawTag(26); + output.WriteString(DefaultAvatar); + } + if (HasDefaultItem) { + output.WriteRawTag(34); + output.WriteString(DefaultItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (HasDefaultAvatar) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultAvatar); + } + if (HasDefaultItem) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcelOne other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + if (other.HasDefaultAvatar) { + DefaultAvatar = other.DefaultAvatar; + } + if (other.HasDefaultItem) { + DefaultItem = other.DefaultItem; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + case 26: { + DefaultAvatar = input.ReadString(); + break; + } + case 34: { + DefaultItem = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + case 26: { + DefaultAvatar = input.ReadString(); + break; + } + case 34: { + DefaultItem = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestIndex()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[151]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex(TestTestIndex other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + eles_ = other.eles_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex Clone() { + return new TestTestIndex(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "eles" field. + public const int ElesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_eles_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestDemoType1.Parser); + private readonly pbc::RepeatedField eles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Eles { + get { return eles_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!eles_.Equals(other.eles_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= eles_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(ref output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += eles_.CalculateSize(_repeated_eles_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestIndex other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + eles_.Add(other.eles_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(input, _repeated_eles_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(ref input, _repeated_eles_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[152]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap(TestTestMap other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap Clone() { + return new TestTestMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pbc::MapField.Codec _map_x1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 18); + private readonly pbc::MapField x1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pbc::MapField.Codec _map_x2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt32(16, 0), 26); + private readonly pbc::MapField x2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pbc::MapField.Codec _map_x3_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 34); + private readonly pbc::MapField x3_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!X1.Equals(other.X1)) return false; + if (!X2.Equals(other.X2)) return false; + if (!X3.Equals(other.X3)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= X1.GetHashCode(); + hash ^= X2.GetHashCode(); + hash ^= X3.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _map_x1_codec); + x2_.WriteTo(output, _map_x2_codec); + x3_.WriteTo(output, _map_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _map_x1_codec); + x2_.WriteTo(ref output, _map_x2_codec); + x3_.WriteTo(ref output, _map_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_map_x1_codec); + size += x2_.CalculateSize(_map_x2_codec); + size += x3_.CalculateSize(_map_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMap other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(ref input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(ref input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[153]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson(TestExcelFromJson other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson Clone() { + return new TestExcelFromJson(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 5; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 6; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 7; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 8; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 9; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 16) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 16; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~16; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 11; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 12; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 13; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 15; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 122); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 16; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(130, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(138, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(66); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + if (x12_ != null) { + output.WriteRawTag(90); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(96); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(106); + output.WriteMessage(X14); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(66); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + if (x12_ != null) { + output.WriteRawTag(90); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(96); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(106); + output.WriteMessage(X14); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJson other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 58: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 66: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 74: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 96: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 106: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 114: + case 112: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 138: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 58: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 66: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 74: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 96: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 106: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 114: + case 112: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 138: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[154]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1(TestCompositeJsonTable1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1 Clone() { + return new TestCompositeJsonTable1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static string XDefaultValue = ""; + + private string x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X { + get { return x_ ?? XDefaultValue; } + set { + x_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return x_ != null; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + x_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[155]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2(TestCompositeJsonTable2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2 Clone() { + return new TestCompositeJsonTable2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[156]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3(TestCompositeJsonTable3 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3 Clone() { + return new TestCompositeJsonTable3(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable3 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[157]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow(TestExcelFromJsonMultiRow other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow Clone() { + return new TestExcelFromJsonMultiRow(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestTestRow.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[158]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow(TestTestRow other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow Clone() { + return new TestTestRow(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static bool YDefaultValue = false; + + private bool y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static string ZDefaultValue = ""; + + private string z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Z { + get { return z_ ?? ZDefaultValue; } + set { + z_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return z_ != null; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + z_ = null; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private global::Cfg.TestTest3 a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestTest3 A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_b_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField b_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B { + get { return b_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + if (!object.Equals(A, other.A)) return false; + if(!b_.Equals(other.b_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + hash ^= b_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(ref output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 1; + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Z); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + size += b_.CalculateSize(_repeated_b_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRow other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + A.MergeFrom(other.A); + } + b_.Add(other.b_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(input, _repeated_b_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(ref input, _repeated_b_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTest3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTest3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[159]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3(TestTest3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3 Clone() { + return new TestTest3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTest3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTest3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTest3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSep()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[160]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep(TestTestSep other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_ != null ? other.x2_.Clone() : null; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_.Clone(); + x5_ = other.x5_.Clone(); + x6_ = other.x6_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep Clone() { + return new TestTestSep(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static string X1DefaultValue = ""; + + private string x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X1 { + get { return x1_ ?? X1DefaultValue; } + set { + x1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return x1_ != null; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + x1_ = null; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private global::Cfg.TestSepBean1 x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestSepBean1 X2 { + get { return x2_; } + set { + x2_ = value; + } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestSepVector x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestSepVector X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestSepVector.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x5_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestSepBean1.Parser); + private readonly pbc::RepeatedField x5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X5 { + get { return x5_; } + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x6_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestSepBean1.Parser); + private readonly pbc::RepeatedField x6_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X6 { + get { return x6_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (!object.Equals(X2, other.X2)) return false; + if (!object.Equals(X3, other.X3)) return false; + if(!x4_.Equals(other.x4_)) return false; + if(!x5_.Equals(other.x5_)) return false; + if(!x6_.Equals(other.x6_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (x2_ != null) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + hash ^= x4_.GetHashCode(); + hash ^= x5_.GetHashCode(); + hash ^= x6_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(18); + output.WriteString(X1); + } + if (x2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + x4_.WriteTo(output, _repeated_x4_codec); + x5_.WriteTo(output, _repeated_x5_codec); + x6_.WriteTo(output, _repeated_x6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(18); + output.WriteString(X1); + } + if (x2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + x4_.WriteTo(ref output, _repeated_x4_codec); + x5_.WriteTo(ref output, _repeated_x5_codec); + x6_.WriteTo(ref output, _repeated_x6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X1); + } + if (x2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + size += x4_.CalculateSize(_repeated_x4_codec); + size += x5_.CalculateSize(_repeated_x5_codec); + size += x6_.CalculateSize(_repeated_x6_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSep other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.x2_ != null) { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + X2.MergeFrom(other.X2); + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + X3.MergeFrom(other.X3); + } + x4_.Add(other.x4_); + x5_.Add(other.x5_); + x6_.Add(other.x6_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X1 = input.ReadString(); + break; + } + case 26: { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + input.ReadMessage(X2); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + input.ReadMessage(X3); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + case 50: { + x5_.AddEntriesFrom(input, _repeated_x5_codec); + break; + } + case 58: { + x6_.AddEntriesFrom(input, _repeated_x6_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X1 = input.ReadString(); + break; + } + case 26: { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + input.ReadMessage(X2); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + input.ReadMessage(X3); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + case 50: { + x5_.AddEntriesFrom(ref input, _repeated_x5_codec); + break; + } + case 58: { + x6_.AddEntriesFrom(ref input, _repeated_x6_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestSepBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSepBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[161]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1(TestSepBean1 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + c_ = other.c_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1 Clone() { + return new TestSepBean1(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + /// Field number for the "c" field. + public const int CFieldNumber = 3; + private readonly static string CDefaultValue = ""; + + private string c_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string C { + get { return c_ ?? CDefaultValue; } + set { + c_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasC { + get { return c_ != null; } + } + /// Clears the value of the "c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearC() { + c_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestSepBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestSepBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + if (C != other.C) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (HasC) hash ^= C.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (HasC) { + output.WriteRawTag(26); + output.WriteString(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (HasC) { + output.WriteRawTag(26); + output.WriteString(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (HasC) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(C); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestSepBean1 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + if (other.HasC) { + C = other.C; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + case 26: { + C = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + case 26: { + C = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestSepVector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSepVector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[162]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector(TestSepVector other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector Clone() { + return new TestSepVector(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static int ZDefaultValue = 0; + + private int z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestSepVector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestSepVector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestSepVector other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + case 24: { + Z = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + case 24: { + Z = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestExternalType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExternalType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[163]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType(TestTestExternalType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + audioType_ = other.audioType_; + color_ = other.color_ != null ? other.color_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType Clone() { + return new TestTestExternalType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "audio_type" field. + public const int AudioTypeFieldNumber = 2; + private readonly static global::Cfg.TestAudioType AudioTypeDefaultValue = global::Cfg.TestAudioType.Unknown; + + private global::Cfg.TestAudioType audioType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestAudioType AudioType { + get { if ((_hasBits0 & 2) != 0) { return audioType_; } else { return AudioTypeDefaultValue; } } + set { + _hasBits0 |= 2; + audioType_ = value; + } + } + /// Gets whether the "audio_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "audio_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioType() { + _hasBits0 &= ~2; + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 3; + private global::Cfg.TestColor color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestColor Color { + get { return color_; } + set { + color_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExternalType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExternalType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AudioType != other.AudioType) return false; + if (!object.Equals(Color, other.Color)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAudioType) hash ^= AudioType.GetHashCode(); + if (color_ != null) hash ^= Color.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (color_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (color_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAudioType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AudioType); + } + if (color_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExternalType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAudioType) { + AudioType = other.AudioType; + } + if (other.color_ != null) { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + Color.MergeFrom(other.Color); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.TestAudioType) input.ReadEnum(); + break; + } + case 26: { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + input.ReadMessage(Color); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.TestAudioType) input.ReadEnum(); + break; + } + case 26: { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + input.ReadMessage(Color); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestColor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestColor()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[164]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor(TestColor other) : this() { + _hasBits0 = other._hasBits0; + r_ = other.r_; + g_ = other.g_; + b_ = other.b_; + a_ = other.a_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor Clone() { + return new TestColor(this); + } + + /// Field number for the "r" field. + public const int RFieldNumber = 1; + private readonly static float RDefaultValue = 0F; + + private float r_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float R { + get { if ((_hasBits0 & 1) != 0) { return r_; } else { return RDefaultValue; } } + set { + _hasBits0 |= 1; + r_ = value; + } + } + /// Gets whether the "r" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasR { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "r" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearR() { + _hasBits0 &= ~1; + } + + /// Field number for the "g" field. + public const int GFieldNumber = 2; + private readonly static float GDefaultValue = 0F; + + private float g_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float G { + get { if ((_hasBits0 & 2) != 0) { return g_; } else { return GDefaultValue; } } + set { + _hasBits0 |= 2; + g_ = value; + } + } + /// Gets whether the "g" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasG { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "g" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearG() { + _hasBits0 &= ~2; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 3; + private readonly static float BDefaultValue = 0F; + + private float b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float B { + get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 4; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~4; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private readonly static float ADefaultValue = 0F; + + private float a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float A { + get { if ((_hasBits0 & 8) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 8; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestColor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestColor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasR) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); + if (HasG) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); + if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); + if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasR) { + size += 1 + 4; + } + if (HasG) { + size += 1 + 4; + } + if (HasB) { + size += 1 + 4; + } + if (HasA) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestColor other) { + if (other == null) { + return; + } + if (other.HasR) { + R = other.R; + } + if (other.HasG) { + G = other.G; + } + if (other.HasB) { + B = other.B; + } + if (other.HasA) { + A = other.A; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[165]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2(TestDefineFromExcel2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2 Clone() { + return new TestDefineFromExcel2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestETestQuality X13DefaultValue = global::Cfg.TestETestQuality.A; + + private global::Cfg.TestETestQuality x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestETestQuality X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 8; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 9; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 64) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 64; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~64; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcel2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestExcelBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExcelBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[166]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1(TestTestExcelBean1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1 Clone() { + return new TestTestExcelBean1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static string X2DefaultValue = ""; + + private string x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X2 { + get { return x2_ ?? X2DefaultValue; } + set { + x2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return x2_ != null; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + x2_ = null; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static float X4DefaultValue = 0F; + + private float x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExcelBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExcelBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X4, other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X4); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExcelBean1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestDesc()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[167]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc(TestTestDesc other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + a1_ = other.a1_; + a2_ = other.a2_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc Clone() { + return new TestTestDesc(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 3; + private readonly static int A1DefaultValue = 0; + + private int a1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A1 { + get { if ((_hasBits0 & 2) != 0) { return a1_; } else { return A1DefaultValue; } } + set { + _hasBits0 |= 2; + a1_ = value; + } + } + /// Gets whether the "a1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "a1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA1() { + _hasBits0 &= ~2; + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 4; + private readonly static int A2DefaultValue = 0; + + private int a2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A2 { + get { if ((_hasBits0 & 4) != 0) { return a2_; } else { return A2DefaultValue; } } + set { + _hasBits0 |= 4; + a2_ = value; + } + } + /// Gets whether the "a2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "a2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 5; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (A1 != other.A1) return false; + if (A2 != other.A2) return false; + if (!object.Equals(X1, other.X1)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasA1) hash ^= A1.GetHashCode(); + if (HasA2) hash ^= A2.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasA1) { + output.WriteRawTag(24); + output.WriteInt32(A1); + } + if (HasA2) { + output.WriteRawTag(32); + output.WriteInt32(A2); + } + if (x1_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X1); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasA1) { + output.WriteRawTag(24); + output.WriteInt32(A1); + } + if (HasA2) { + output.WriteRawTag(32); + output.WriteInt32(A2); + } + if (x1_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X1); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasA1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A1); + } + if (HasA2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A2); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestDesc other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasA1) { + A1 = other.A1; + } + if (other.HasA2) { + A2 = other.A2; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + A1 = input.ReadInt32(); + break; + } + case 32: { + A2 = input.ReadInt32(); + break; + } + case 42: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 50: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 58: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + A1 = input.ReadInt32(); + break; + } + case 32: { + A2 = input.ReadInt32(); + break; + } + case 42: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 50: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 58: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[168]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard(AiTbBlackboard other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard Clone() { + return new AiTbBlackboard(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBlackboard.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBlackboard other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[169]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree(AiTbBehaviorTree other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree Clone() { + return new AiTbBehaviorTree(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBehaviorTree.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBehaviorTree other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintTbClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintTbClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[170]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz(BlueprintTbClazz other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz Clone() { + return new BlueprintTbClazz(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintTbClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintTbClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintTbClazz other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusTbDrop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusTbDrop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[171]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop(BonusTbDrop other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop Clone() { + return new BonusTbDrop(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusDropInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusTbDrop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusTbDrop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusTbDrop other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonTbGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonTbGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[172]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig(CommonTbGlobalConfig other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig Clone() { + return new CommonTbGlobalConfig(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CommonGlobalConfig.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonTbGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonTbGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonTbGlobalConfig other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorTbErrorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorTbErrorInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[173]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo(ErrorTbErrorInfo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo Clone() { + return new ErrorTbErrorInfo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ErrorErrorInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorTbErrorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorTbErrorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorTbErrorInfo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorTbCodeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorTbCodeInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[174]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo(ErrorTbCodeInfo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo Clone() { + return new ErrorTbCodeInfo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ErrorCodeInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorTbCodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorTbCodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorTbCodeInfo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[175]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem(ItemTbItem other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem Clone() { + return new ItemTbItem(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItem.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItem other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItemFunc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItemFunc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[176]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc(ItemTbItemFunc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc Clone() { + return new ItemTbItemFunc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItemFunction.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItemFunc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItemFunc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItemFunc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItemExtra : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItemExtra()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[177]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra(ItemTbItemExtra other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra Clone() { + return new ItemTbItemExtra(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItemExtra.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItemExtra); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItemExtra other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItemExtra other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[178]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo(L10nTbL10NDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo Clone() { + return new L10nTbL10NDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nL10NDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbL10NDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[179]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo(L10nTbPatchDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo Clone() { + return new L10nTbPatchDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nPatchDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbPatchDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailTbSystemMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailTbSystemMail()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[180]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail(MailTbSystemMail other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail Clone() { + return new MailTbSystemMail(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.MailSystemMail.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailTbSystemMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailTbSystemMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailTbSystemMail other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailTbGlobalMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailTbGlobalMail()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[181]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail(MailTbGlobalMail other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail Clone() { + return new MailTbGlobalMail(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.MailGlobalMail.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailTbGlobalMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailTbGlobalMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailTbGlobalMail other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleTbRoleLevelExpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleTbRoleLevelExpAttr()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[182]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr(RoleTbRoleLevelExpAttr other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr Clone() { + return new RoleTbRoleLevelExpAttr(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.RoleLevelExpAttr.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleTbRoleLevelExpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleTbRoleLevelExpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleTbRoleLevelExpAttr other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleTbRoleLevelBonusCoefficient : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleTbRoleLevelBonusCoefficient()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[183]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient(RoleTbRoleLevelBonusCoefficient other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient Clone() { + return new RoleTbRoleLevelBonusCoefficient(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.RoleLevelBonus.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleTbRoleLevelBonusCoefficient); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleTbRoleLevelBonusCoefficient other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleTbRoleLevelBonusCoefficient other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTbTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTbTestTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[184]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag(TagTbTestTag other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag Clone() { + return new TagTbTestTag(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TagTestTag.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTbTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTbTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTbTestTag other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbFullTypes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbFullTypes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[185]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes(TestTbFullTypes other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes Clone() { + return new TestTbFullTypes(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbFullTypes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbFullTypes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbFullTypes other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbSingleton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbSingleton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[186]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton(TestTbSingleton other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton Clone() { + return new TestTbSingleton(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoSingletonType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbSingleton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbSingleton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbSingleton other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[187]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList(TestTbNotIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList Clone() { + return new TestTbNotIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestNotIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbNotIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[188]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList(TestTbMultiUnionIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList Clone() { + return new TestTbMultiUnionIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiUnionIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiUnionIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[189]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList(TestTbMultiIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList Clone() { + return new TestTbMultiIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDataFromMisc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDataFromMisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[190]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc(TestTbDataFromMisc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc Clone() { + return new TestTbDataFromMisc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDataFromMisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDataFromMisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDataFromMisc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[191]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord(TestTbMultiRowRecord other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord Clone() { + return new TestTbMultiRowRecord(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowRecord.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowRecord other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[192]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle(TestTbMultiRowTitle other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle Clone() { + return new TestTbMultiRowTitle(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowTitle.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowTitle other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestNull()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[193]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull(TestTbTestNull other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull Clone() { + return new TestTbTestNull(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestNull.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestNull other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoPrimitive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoPrimitive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[194]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive(TestTbDemoPrimitive other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive Clone() { + return new TestTbDemoPrimitive(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoPrimitiveTypesTable.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoPrimitive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoPrimitive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoPrimitive other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[195]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString(TestTbTestString other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString Clone() { + return new TestTbTestString(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestString.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestString other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[196]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup(TestTbDemoGroup other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup Clone() { + return new TestTbDemoGroup(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_C : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_C()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[197]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C(TestTbDemoGroup_C other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C Clone() { + return new TestTbDemoGroup_C(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_C); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_C other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_C other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_S : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_S()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[198]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S(TestTbDemoGroup_S other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S Clone() { + return new TestTbDemoGroup_S(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_S); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_S other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_S other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_E : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_E()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[199]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E(TestTbDemoGroup_E other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E Clone() { + return new TestTbDemoGroup_E(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_E); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_E other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_E other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[200]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal(TestTbTestGlobal other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal Clone() { + return new TestTbTestGlobal(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestGlobal.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestGlobal other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[201]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef(TestTbTestBeRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef Clone() { + return new TestTbTestBeRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[202]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2(TestTbTestBeRef2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2 Clone() { + return new TestTbTestBeRef2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[203]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef(TestTbTestRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef Clone() { + return new TestTbTestRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSize()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[204]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize(TestTbTestSize other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize Clone() { + return new TestTbTestSize(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSize.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSize other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[205]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet(TestTbTestSet other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet Clone() { + return new TestTbTestSet(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSet.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSet other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDetectCsvEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDetectCsvEncoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[206]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding(TestTbDetectCsvEncoding other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding Clone() { + return new TestTbDetectCsvEncoding(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDetectEncoding.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDetectCsvEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDetectCsvEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDetectCsvEncoding other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[207]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel(TestTbDefineFromExcel other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel Clone() { + return new TestTbDefineFromExcel(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcel.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcelOne : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcelOne()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[208]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne(TestTbDefineFromExcelOne other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne Clone() { + return new TestTbDefineFromExcelOne(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcelOne.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcelOne); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcelOne other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcelOne other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestIndex()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[209]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex(TestTbTestIndex other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex Clone() { + return new TestTbTestIndex(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestIndex.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestIndex other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[210]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap(TestTbTestMap other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap Clone() { + return new TestTbTestMap(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMap.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMap other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[211]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson(TestTbExcelFromJson other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson Clone() { + return new TestTbExcelFromJson(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJson.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJson other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[212]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1(TestTbCompositeJsonTable1 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1 Clone() { + return new TestTbCompositeJsonTable1(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable1 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[213]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2(TestTbCompositeJsonTable2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2 Clone() { + return new TestTbCompositeJsonTable2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[214]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3(TestTbCompositeJsonTable3 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3 Clone() { + return new TestTbCompositeJsonTable3(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable3.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable3 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[215]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow(TestTbExcelFromJsonMultiRow other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow Clone() { + return new TestTbExcelFromJsonMultiRow(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJsonMultiRow.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSep()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[216]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep(TestTbTestSep other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep Clone() { + return new TestTbTestSep(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSep.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSep other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestExternalType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestExternalType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[217]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType(TestTbTestExternalType other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType Clone() { + return new TestTbTestExternalType(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestExternalType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestExternalType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestExternalType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestExternalType other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroupDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroupDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[218]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel(TestTbDemoGroupDefineFromExcel other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel Clone() { + return new TestTbDemoGroupDefineFromExcel(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroupDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroupDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroupDefineFromExcel other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[219]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2(TestTbDefineFromExcel2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2 Clone() { + return new TestTbDefineFromExcel2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcel2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestExcelBean : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestExcelBean()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[220]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean(TestTbTestExcelBean other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean Clone() { + return new TestTbTestExcelBean(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestExcelBean1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestExcelBean); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestExcelBean other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestExcelBean other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[221]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc(TestTbTestDesc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc Clone() { + return new TestTbTestDesc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestDesc.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestDesc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/luban_examples/Projects/Protobuf2_json/Gen/Schema.cs b/luban_examples/Projects/Protobuf2_json/Gen/Schema.cs new file mode 100644 index 00000000..0110196a --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/Gen/Schema.cs @@ -0,0 +1,49554 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Cfg { + + /// Holder for reflection information generated from schema.proto + public static partial class SchemaReflection { + + #region Descriptor + /// File descriptor for schema.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SchemaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxzY2hlbWEucHJvdG8SA2NmZyJEChJUZXN0VGVzdEV4Y2VsQmVhbjESCgoC", + "eDEYASACKAUSCgoCeDIYAiACKAkSCgoCeDMYAyACKAUSCgoCeDQYBCACKAIi", + "ZwoMQWlCbGFja2JvYXJkEgwKBG5hbWUYASACKAkSDAoEZGVzYxgCIAIoCRIT", + "CgtwYXJlbnRfbmFtZRgDIAIoCRImCgRrZXlzGAQgAygLMhQuY2ZnLkFpQmxh", + "Y2tib2FyZEtleUICEAAieAoPQWlCbGFja2JvYXJkS2V5EgwKBG5hbWUYASAC", + "KAkSDAoEZGVzYxgCIAIoCRIRCglpc19zdGF0aWMYAyACKAgSHQoEdHlwZRgE", + "IAIoDjIPLmNmZy5BaUVLZXlUeXBlEhcKD3R5cGVfY2xhc3NfbmFtZRgFIAIo", + "CSJxCg5BaUJlaGF2aW9yVHJlZRIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJ", + "EgwKBGRlc2MYAyACKAkSFQoNYmxhY2tib2FyZF9pZBgEIAIoCRIgCgRyb290", + "GAUgAigLMhIuY2ZnLkFpQ29tcG9zZU5vZGUi1ggKBkFpTm9kZRI1ChFVZVNl", + "dERlZmF1bHRGb2N1cxgBIAEoCzIYLmNmZy5BaVVlU2V0RGVmYXVsdEZvY3Vz", + "SAASOwoURXhlY3V0ZVRpbWVTdGF0aXN0aWMYAiABKAsyGy5jZmcuQWlFeGVj", + "dXRlVGltZVN0YXRpc3RpY0gAEisKDENob29zZVRhcmdldBgDIAEoCzITLmNm", + "Zy5BaUNob29zZVRhcmdldEgAEi8KDktlZXBGYWNlVGFyZ2V0GAQgASgLMhUu", + "Y2ZnLkFpS2VlcEZhY2VUYXJnZXRIABIvCg5HZXRPd25lclBsYXllchgFIAEo", + "CzIVLmNmZy5BaUdldE93bmVyUGxheWVySAASQwoYVXBkYXRlRGFpbHlCZWhh", + "dmlvclByb3BzGAYgASgLMh8uY2ZnLkFpVXBkYXRlRGFpbHlCZWhhdmlvclBy", + "b3BzSAASHwoGVWVMb29wGAcgASgLMg0uY2ZnLkFpVWVMb29wSAASJwoKVWVD", + "b29sZG93bhgIIAEoCzIRLmNmZy5BaVVlQ29vbGRvd25IABIpCgtVZVRpbWVM", + "aW1pdBgJIAEoCzISLmNmZy5BaVVlVGltZUxpbWl0SAASKwoMVWVCbGFja2Jv", + "YXJkGAogASgLMhMuY2ZnLkFpVWVCbGFja2JvYXJkSAASLwoOVWVGb3JjZVN1", + "Y2Nlc3MYCyABKAsyFS5jZmcuQWlVZUZvcmNlU3VjY2Vzc0gAEisKDElzQXRM", + "b2NhdGlvbhgMIAEoCzITLmNmZy5BaUlzQXRMb2NhdGlvbkgAEjMKEERpc3Rh", + "bmNlTGVzc1RoYW4YDSABKAsyFy5jZmcuQWlEaXN0YW5jZUxlc3NUaGFuSAAS", + "IwoIU2VxdWVuY2UYDiABKAsyDy5jZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVj", + "dG9yGA8gASgLMg8uY2ZnLkFpU2VsZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxl", + "bBgQIAEoCzIVLmNmZy5BaVNpbXBsZVBhcmFsbGVsSAASHwoGVWVXYWl0GBEg", + "ASgLMg0uY2ZnLkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUY", + "EiABKAsyGy5jZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVU", + "b1RhcmdldBgTIAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29z", + "ZVNraWxsGBQgASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9S", + "YW5kb21Mb2NhdGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0", + "aW9uSAASLwoOTW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9M", + "b2NhdGlvbkgAEicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1By", + "aW50SABCBwoFdmFsdWUi3AIKCUFpU2VydmljZRI1ChFVZVNldERlZmF1bHRG", + "b2N1cxgBIAEoCzIYLmNmZy5BaVVlU2V0RGVmYXVsdEZvY3VzSAASOwoURXhl", + "Y3V0ZVRpbWVTdGF0aXN0aWMYAiABKAsyGy5jZmcuQWlFeGVjdXRlVGltZVN0", + "YXRpc3RpY0gAEisKDENob29zZVRhcmdldBgDIAEoCzITLmNmZy5BaUNob29z", + "ZVRhcmdldEgAEi8KDktlZXBGYWNlVGFyZ2V0GAQgASgLMhUuY2ZnLkFpS2Vl", + "cEZhY2VUYXJnZXRIABIvCg5HZXRPd25lclBsYXllchgFIAEoCzIVLmNmZy5B", + "aUdldE93bmVyUGxheWVySAASQwoYVXBkYXRlRGFpbHlCZWhhdmlvclByb3Bz", + "GAYgASgLMh8uY2ZnLkFpVXBkYXRlRGFpbHlCZWhhdmlvclByb3BzSABCBwoF", + "dmFsdWUiSgoTQWlVZVNldERlZmF1bHRGb2N1cxIKCgJpZBgBIAIoBRIRCglu", + "b2RlX25hbWUYAiACKAkSFAoMa2V5Ym9hcmRfa2V5GAMgAigJIjcKFkFpRXhl", + "Y3V0ZVRpbWVTdGF0aXN0aWMSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIg", + "AigJIkoKDkFpQ2hvb3NlVGFyZ2V0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFt", + "ZRgCIAIoCRIZChFyZXN1bHRfdGFyZ2V0X2tleRgDIAIoCSJLChBBaUtlZXBG", + "YWNlVGFyZ2V0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIYChB0", + "YXJnZXRfYWN0b3Jfa2V5GAMgAigJIksKEEFpR2V0T3duZXJQbGF5ZXISCgoC", + "aWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhgKEHBsYXllcl9hY3Rvcl9r", + "ZXkYAyACKAkizAIKGkFpVXBkYXRlRGFpbHlCZWhhdmlvclByb3BzEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRITCgtzYXRpZXR5X2tleRgDIAIo", + "CRISCgplbmVyZ3lfa2V5GAQgAigJEhAKCG1vb2Rfa2V5GAUgAigJEiMKG3Nh", + "dGlldHlfbG93ZXJfdGhyZXNob2xkX2tleRgGIAIoCRIjChtzYXRpZXR5X3Vw", + "cGVyX3RocmVzaG9sZF9rZXkYByACKAkSIgoaZW5lcmd5X2xvd2VyX3RocmVz", + "aG9sZF9rZXkYCCACKAkSIgoaZW5lcmd5X3VwcGVyX3RocmVzaG9sZF9rZXkY", + "CSACKAkSIAoYbW9vZF9sb3dlcl90aHJlc2hvbGRfa2V5GAogAigJEiAKGG1v", + "b2RfdXBwZXJfdGhyZXNob2xkX2tleRgLIAIoCSLLAgoLQWlEZWNvcmF0b3IS", + "HwoGVWVMb29wGAcgASgLMg0uY2ZnLkFpVWVMb29wSAASJwoKVWVDb29sZG93", + "bhgIIAEoCzIRLmNmZy5BaVVlQ29vbGRvd25IABIpCgtVZVRpbWVMaW1pdBgJ", + "IAEoCzISLmNmZy5BaVVlVGltZUxpbWl0SAASKwoMVWVCbGFja2JvYXJkGAog", + "ASgLMhMuY2ZnLkFpVWVCbGFja2JvYXJkSAASLwoOVWVGb3JjZVN1Y2Nlc3MY", + "CyABKAsyFS5jZmcuQWlVZUZvcmNlU3VjY2Vzc0gAEisKDElzQXRMb2NhdGlv", + "bhgMIAEoCzITLmNmZy5BaUlzQXRMb2NhdGlvbkgAEjMKEERpc3RhbmNlTGVz", + "c1RoYW4YDSABKAsyFy5jZmcuQWlEaXN0YW5jZUxlc3NUaGFuSABCBwoFdmFs", + "dWUipwEKCEFpVWVMb29wEgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIo", + "CRIuCg9mbG93X2Fib3J0X21vZGUYAyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0", + "TW9kZRIRCgludW1fbG9vcHMYBCACKAUSFQoNaW5maW5pdGVfbG9vcBgFIAIo", + "CBIiChppbmZpbml0ZV9sb29wX3RpbWVvdXRfdGltZRgGIAIoAiJ0CgxBaVVl", + "Q29vbGRvd24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zs", + "b3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlEhUK", + "DWNvb2xkb3duX3RpbWUYBCACKAIicgoNQWlVZVRpbWVMaW1pdBIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMg", + "AigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1vZGUSEgoKbGltaXRfdGltZRgEIAIo", + "AiLYAQoOQWlVZUJsYWNrYm9hcmQSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1l", + "GAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93", + "QWJvcnRNb2RlEjMKD25vdGlmeV9vYnNlcnZlchgEIAIoDjIaLmNmZy5BaUVO", + "b3RpZnlPYnNlcnZlck1vZGUSFgoOYmxhY2tib2FyZF9rZXkYBSACKAkSKgoJ", + "a2V5X3F1ZXJ5GAYgAigLMhcuY2ZnLkFpS2V5UXVlcnlPcGVyYXRvciKSAQoS", + "QWlLZXlRdWVyeU9wZXJhdG9yEh0KBUlzU2V0GAEgASgLMgwuY2ZnLkFpSXNT", + "ZXRIABIjCghJc05vdFNldBgCIAEoCzIPLmNmZy5BaUlzTm90U2V0SAASLwoO", + "QmluYXJ5T3BlcmF0b3IYAyABKAsyFS5jZmcuQWlCaW5hcnlPcGVyYXRvckgA", + "QgcKBXZhbHVlIgkKB0FpSXNTZXQiDAoKQWlJc05vdFNldCJQChBBaUJpbmFy", + "eU9wZXJhdG9yEh4KBG9wZXIYASACKA4yEC5jZmcuQWlFT3BlcmF0b3ISHAoE", + "ZGF0YRgCIAIoCzIOLmNmZy5BaUtleURhdGEi0AEKCUFpS2V5RGF0YRIrCgxG", + "bG9hdEtleURhdGEYASABKAsyEy5jZmcuQWlGbG9hdEtleURhdGFIABInCgpJ", + "bnRLZXlEYXRhGAIgASgLMhEuY2ZnLkFpSW50S2V5RGF0YUgAEi0KDVN0cmlu", + "Z0tleURhdGEYAyABKAsyFC5jZmcuQWlTdHJpbmdLZXlEYXRhSAASNQoRQmxh", + "Y2tib2FyZEtleURhdGEYBCABKAsyGC5jZmcuQWlCbGFja2JvYXJkS2V5RGF0", + "YUgAQgcKBXZhbHVlIh8KDkFpRmxvYXRLZXlEYXRhEg0KBXZhbHVlGAEgAigC", + "Ih0KDEFpSW50S2V5RGF0YRINCgV2YWx1ZRgBIAIoBSIgCg9BaVN0cmluZ0tl", + "eURhdGESDQoFdmFsdWUYASACKAkiJAoTQWlCbGFja2JvYXJkS2V5RGF0YRIN", + "CgV2YWx1ZRgBIAIoCSJhChBBaVVlRm9yY2VTdWNjZXNzEgoKAmlkGAEgAigF", + "EhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9mbG93X2Fib3J0X21vZGUYAyACKA4y", + "FS5jZmcuQWlFRmxvd0Fib3J0TW9kZSKrAQoOQWlJc0F0TG9jYXRpb24SCgoC", + "aWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9k", + "ZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlEhkKEWFjY2VwdGFibGVf", + "cmFkaXVzGAQgAigCEhQKDGtleWJvYXJkX2tleRgFIAIoCRIZChFpbnZlcnNl", + "X2NvbmRpdGlvbhgGIAIoCCK1AQoSQWlEaXN0YW5jZUxlc3NUaGFuEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9mbG93X2Fib3J0X21vZGUY", + "AyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0TW9kZRISCgphY3RvcjFfa2V5GAQg", + "AigJEhIKCmFjdG9yMl9rZXkYBSACKAkSEAoIZGlzdGFuY2UYBiACKAISFgoO", + "cmV2ZXJzZV9yZXN1bHQYByACKAgi3QMKCkFpRmxvd05vZGUSIwoIU2VxdWVu", + "Y2UYDiABKAsyDy5jZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVjdG9yGA8gASgL", + "Mg8uY2ZnLkFpU2VsZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxlbBgQIAEoCzIV", + "LmNmZy5BaVNpbXBsZVBhcmFsbGVsSAASHwoGVWVXYWl0GBEgASgLMg0uY2Zn", + "LkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUYEiABKAsyGy5j", + "ZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVUb1RhcmdldBgT", + "IAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29zZVNraWxsGBQg", + "ASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9SYW5kb21Mb2Nh", + "dGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0aW9uSAASLwoO", + "TW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9Mb2NhdGlvbkgA", + "EicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1ByaW50SABCBwoF", + "dmFsdWUikwEKDUFpQ29tcG9zZU5vZGUSIwoIU2VxdWVuY2UYDiABKAsyDy5j", + "ZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVjdG9yGA8gASgLMg8uY2ZnLkFpU2Vs", + "ZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxlbBgQIAEoCzIVLmNmZy5BaVNpbXBs", + "ZVBhcmFsbGVsSABCBwoFdmFsdWUiogEKCkFpU2VxdWVuY2USCgoCaWQYASAC", + "KAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5j", + "ZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFp", + "U2VydmljZUICEAASJQoIY2hpbGRyZW4YBSADKAsyDy5jZmcuQWlGbG93Tm9k", + "ZUICEAAiogEKCkFpU2VsZWN0b3ISCgoCaWQYASACKAUSEQoJbm9kZV9uYW1l", + "GAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JC", + "AhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASJQoI", + "Y2hpbGRyZW4YBSADKAsyDy5jZmcuQWlGbG93Tm9kZUICEAAi9AEKEEFpU2lt", + "cGxlUGFyYWxsZWwSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigK", + "CmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNl", + "cnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASJwoLZmluaXNoX21v", + "ZGUYBSACKA4yEi5jZmcuQWlFRmluaXNoTW9kZRIeCgltYWluX3Rhc2sYBiAC", + "KAsyCy5jZmcuQWlUYXNrEigKD2JhY2tncm91bmRfbm9kZRgHIAIoCzIPLmNm", + "Zy5BaUZsb3dOb2RlIt4CCgZBaVRhc2sSHwoGVWVXYWl0GBEgASgLMg0uY2Zn", + "LkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUYEiABKAsyGy5j", + "ZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVUb1RhcmdldBgT", + "IAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29zZVNraWxsGBQg", + "ASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9SYW5kb21Mb2Nh", + "dGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0aW9uSAASLwoO", + "TW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9Mb2NhdGlvbkgA", + "EicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1ByaW50SABCBwoF", + "dmFsdWUiwwEKCEFpVWVXYWl0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgC", + "IAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAuY2ZnLkFpRGVjb3JhdG9yQgIQ", + "ABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5BaVNlcnZpY2VCAhAAEhsKE2ln", + "bm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSEQoJd2FpdF90aW1lGAYgAigCEhgK", + "EHJhbmRvbV9kZXZpYXRpb24YByACKAIivAEKFkFpVWVXYWl0QmxhY2tib2Fy", + "ZFRpbWUSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29y", + "YXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2Vz", + "GAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3RhcnRf", + "c2VsZhgFIAIoCBIWCg5ibGFja2JvYXJkX2tleRgGIAIoCSLRAQoOQWlNb3Zl", + "VG9UYXJnZXQSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRl", + "Y29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZp", + "Y2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3Rh", + "cnRfc2VsZhgFIAIoCBIYChB0YXJnZXRfYWN0b3Jfa2V5GAYgAigJEhkKEWFj", + "Y2VwdGFibGVfcmFkaXVzGAcgAigCItIBCg1BaUNob29zZVNraWxsEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygL", + "MhAuY2ZnLkFpRGVjb3JhdG9yQgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNm", + "Zy5BaVNlcnZpY2VCAhAAEhsKE2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgS", + "GAoQdGFyZ2V0X2FjdG9yX2tleRgGIAIoCRIbChNyZXN1bHRfc2tpbGxfaWRf", + "a2V5GAcgAigJItEBChZBaU1vdmVUb1JhbmRvbUxvY2F0aW9uEgoKAmlkGAEg", + "AigFEhEKCW5vZGVfbmFtZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAu", + "Y2ZnLkFpRGVjb3JhdG9yQgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5B", + "aVNlcnZpY2VCAhAAEhsKE2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSGwoT", + "b3JpZ2luX3Bvc2l0aW9uX2tleRgGIAIoCRIOCgZyYWRpdXMYByACKAIiuQEK", + "EEFpTW92ZVRvTG9jYXRpb24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIg", + "AigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAA", + "EiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdu", + "b3JlX3Jlc3RhcnRfc2VsZhgFIAIoCBIZChFhY2NlcHRhYmxlX3JhZGl1cxgG", + "IAIoAiKoAQoMQWlEZWJ1Z1ByaW50EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFt", + "ZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAuY2ZnLkFpRGVjb3JhdG9y", + "QgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5BaVNlcnZpY2VCAhAAEhsK", + "E2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSDAoEdGV4dBgGIAIoCSLPBAoS", + "Q29tbW9uR2xvYmFsQ29uZmlnEhQKDGJhZ19jYXBhY2l0eRgBIAIoBRIcChRi", + "YWdfY2FwYWNpdHlfc3BlY2lhbBgCIAIoBRIkChxiYWdfdGVtcF9leHBlbmRh", + "YmxlX2NhcGFjaXR5GAMgAigFEh4KFmJhZ190ZW1wX3Rvb2xfY2FwYWNpdHkY", + "BCACKAUSGQoRYmFnX2luaXRfY2FwYWNpdHkYBSACKAUSGgoScXVpY2tfYmFn", + "X2NhcGFjaXR5GAYgAigFEhoKEmNsb3RoX2JhZ19jYXBhY2l0eRgHIAIoBRIf", + "ChdjbG90aF9iYWdfaW5pdF9jYXBhY2l0eRgIIAIoBRIiChpjbG90aF9iYWdf", + "Y2FwYWNpdHlfc3BlY2lhbBgJIAIoBRIeChZiYWdfaW5pdF9pdGVtc19kcm9w", + "X2lkGAogASgFEhkKEW1haWxfYm94X2NhcGFjaXR5GAsgAigFEhYKDmRhbWFn", + "ZV9wYXJhbV9jGAwgAigCEhYKDmRhbWFnZV9wYXJhbV9lGA0gAigCEhYKDmRh", + "bWFnZV9wYXJhbV9mGA4gAigCEhYKDmRhbWFnZV9wYXJhbV9kGA8gAigCEhIK", + "CnJvbGVfc3BlZWQYECACKAISFQoNbW9uc3Rlcl9zcGVlZBgRIAIoAhITCgtp", + "bml0X2VuZXJneRgSIAIoBRIUCgxpbml0X3ZpYWxpdHkYEyACKAUSEwoLbWF4", + "X3ZpYWxpdHkYFCACKAUSIQoZcGVyX3ZpYWxpdHlfcmVjb3ZlcnlfdGltZRgV", + "IAIoBSKPAgoISXRlbUl0ZW0SCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIn", + "CgptYWpvcl90eXBlGAMgAigOMhMuY2ZnLkl0ZW1FTWFqb3JUeXBlEicKCm1p", + "bm9yX3R5cGUYBCACKA4yEy5jZmcuSXRlbUVNaW5vclR5cGUSFAoMbWF4X3Bp", + "bGVfbnVtGAUgAigFEiYKB3F1YWxpdHkYBiACKA4yFS5jZmcuSXRlbUVJdGVt", + "UXVhbGl0eRIMCgRpY29uGAcgAigJEhYKDmljb25fYmFja2dyb3VkGAggAigJ", + "EhEKCWljb25fbWFzaxgJIAIoCRIMCgRkZXNjGAogAigJEhIKCnNob3dfb3Jk", + "ZXIYCyACKAUiKAoMTDEwbkwxME5EZW1vEgoKAmlkGAEgAigFEgwKBHRleHQY", + "AiACKAkiKgoNTDEwblBhdGNoRGVtbxIKCgJpZBgBIAIoBRINCgV2YWx1ZRgC", + "IAIoBSInCgpUYWdUZXN0VGFnEgoKAmlkGAEgAigFEg0KBXZhbHVlGAIgAigJ", + "It0DCg1UZXN0RGVtb1R5cGUyEgoKAng0GAEgAigFEgoKAngxGAIgAigIEgoK", + "AngyGAMgAigFEgoKAngzGAQgAigFEgoKAng1GAUgAigDEgoKAng2GAYgAigC", + "EgoKAng3GAcgAigBEgwKBHg4XzAYCCACKAUSCgoCeDgYCSACKAUSCgoCeDkY", + "CiACKAMSCwoDeDEwGAsgAigJEh8KA3gxMhgMIAIoCzISLmNmZy5UZXN0RGVt", + "b1R5cGUxEh4KA3gxMxgNIAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0", + "GA4gAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgPIAIoCRIKCgJ0", + "MRgQIAIoAxIOCgJrMRgRIAMoBUICEAESDgoCazIYEiADKAVCAhABEg4KAms1", + "GBMgAygFQgIQARImCgJrOBgUIAMoCzIaLmNmZy5UZXN0RGVtb1R5cGUyLks4", + "RW50cnkSHwoCazkYFSADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASJQoDazE1", + "GBYgAygLMhQuY2ZnLlRlc3REZW1vRHluYW1pY0ICEAAaKQoHSzhFbnRyeRIL", + "CgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIhsKDVRlc3REZW1vVHlw", + "ZTESCgoCeDEYASACKAUirwEKD1Rlc3REZW1vRHluYW1pYxIhCgZEZW1vRDIY", + "ASABKAsyDy5jZmcuVGVzdERlbW9EMkgAEiEKBkRlbW9FMRgCIAEoCzIPLmNm", + "Zy5UZXN0RGVtb0UxSAASKgoIUm9sZUluZm8YAyABKAsyFi5jZmcuVGVzdExv", + "Z2luUm9sZUluZm9IABIhCgZEZW1vRDUYBCABKAsyDy5jZmcuVGVzdERlbW9E", + "NUgAQgcKBXZhbHVlIiQKClRlc3REZW1vRDISCgoCeDEYASACKAUSCgoCeDIY", + "AiACKAUiZAoKVGVzdERlbW9EMxIhCgZEZW1vRTEYAiABKAsyDy5jZmcuVGVz", + "dERlbW9FMUgAEioKCFJvbGVJbmZvGAMgASgLMhYuY2ZnLlRlc3RMb2dpblJv", + "bGVJbmZvSABCBwoFdmFsdWUiMAoKVGVzdERlbW9FMRIKCgJ4MRgBIAIoBRIK", + "CgJ4MxgCIAIoBRIKCgJ4NBgDIAIoBSI8ChFUZXN0TG9naW5Sb2xlSW5mbxIK", + "CgJ4MRgBIAIoBRIKCgJ4MxgCIAIoBRIPCgdyb2xlX2lkGAMgAigDIj4KClRl", + "c3REZW1vRDUSCgoCeDEYASACKAUSJAoEdGltZRgCIAIoCzIWLmNmZy5UZXN0", + "RGF0ZVRpbWVSYW5nZSI5ChFUZXN0RGF0ZVRpbWVSYW5nZRISCgpzdGFydF90", + "aW1lGAEgAigDEhAKCGVuZF90aW1lGAIgAigDIiQKClRlc3REZW1vRTISCgoC", + "eTEYASABKAUSCgoCeTIYAiACKAgiVQoVVGVzdERlbW9TaW5nbGV0b25UeXBl", + "EgoKAmlkGAEgAigFEgwKBG5hbWUYAiACKAkSIgoEZGF0ZRgDIAIoCzIULmNm", + "Zy5UZXN0RGVtb0R5bmFtaWMiKAoQVGVzdE5vdEluZGV4TGlzdBIJCgF4GAEg", + "AigFEgkKAXkYAiACKAUiWwoXVGVzdE11bHRpVW5pb25JbmRleExpc3QSCwoD", + "aWQxGAEgAigFEgsKA2lkMhgCIAIoAxILCgNpZDMYAyACKAkSCwoDbnVtGAQg", + "AigFEgwKBGRlc2MYBSACKAkiVgoSVGVzdE11bHRpSW5kZXhMaXN0EgsKA2lk", + "MRgBIAIoBRILCgNpZDIYAiACKAMSCwoDaWQzGAMgAigJEgsKA251bRgEIAIo", + "BRIMCgRkZXNjGAUgAigJIvIEChJUZXN0TXVsdGlSb3dSZWNvcmQSCgoCaWQY", + "ASACKAUSDAoEbmFtZRgCIAIoCRIsCghvbmVfcm93cxgDIAMoCzIWLmNmZy5U", + "ZXN0TXVsdGlSb3dUeXBlMUICEAASLwoLbXVsdGlfcm93czEYBCADKAsyFi5j", + "ZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAEi8KC211bHRpX3Jvd3MyGAUgAygL", + "MhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUxQgIQABI8CgttdWx0aV9yb3dzNBgG", + "IAMoCzInLmNmZy5UZXN0TXVsdGlSb3dSZWNvcmQuTXVsdGlSb3dzNEVudHJ5", + "Ei8KC211bHRpX3Jvd3M1GAcgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUz", + "QgIQABI8CgttdWx0aV9yb3dzNhgIIAMoCzInLmNmZy5UZXN0TXVsdGlSb3dS", + "ZWNvcmQuTXVsdGlSb3dzNkVudHJ5EjwKC211bHRpX3Jvd3M3GAkgAygLMicu", + "Y2ZnLlRlc3RNdWx0aVJvd1JlY29yZC5NdWx0aVJvd3M3RW50cnkaSQoPTXVs", + "dGlSb3dzNEVudHJ5EgsKA2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIWLmNm", + "Zy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaSQoPTXVsdGlSb3dzNkVudHJ5EgsK", + "A2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIWLmNmZy5UZXN0TXVsdGlSb3dU", + "eXBlMjoCOAEaMQoPTXVsdGlSb3dzN0VudHJ5EgsKA2tleRgBIAEoBRINCgV2", + "YWx1ZRgCIAEoBToCOAEiKgoRVGVzdE11bHRpUm93VHlwZTESCgoCaWQYASAC", + "KAUSCQoBeBgCIAIoBSI1ChFUZXN0TXVsdGlSb3dUeXBlMhIKCgJpZBgBIAIo", + "BRIJCgF4GAIgAigFEgkKAXkYAyACKAIiSgoRVGVzdE11bHRpUm93VHlwZTMS", + "CgoCaWQYASACKAUSKQoFaXRlbXMYAiADKAsyFi5jZmcuVGVzdE11bHRpUm93", + "VHlwZTFCAhAAImwKE1Rlc3RUZXN0TXVsdGlDb2x1bW4SCgoCaWQYASACKAUS", + "FwoBYRgCIAIoCzIMLmNmZy5UZXN0Rm9vEhcKAWIYAyACKAsyDC5jZmcuVGVz", + "dEZvbxIXCgFjGAQgAigLMgwuY2ZnLlRlc3RGb28iLQoHVGVzdEZvbxIKCgJ5", + "MRgBIAIoBRIKCgJ5MhgCIAIoBRIKCgJ5MxgDIAIoBSK4AQoRVGVzdE11bHRp", + "Um93VGl0bGUSCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIXCgJ4MRgDIAIo", + "CzILLmNmZy5UZXN0SDESGQoEeDJfMBgEIAEoCzILLmNmZy5UZXN0SDISGwoC", + "eDIYBSADKAsyCy5jZmcuVGVzdEgyQgIQABIbCgJ4MxgGIAMoCzILLmNmZy5U", + "ZXN0SDJCAhAAEhsKAng0GAcgAygLMgsuY2ZnLlRlc3RIMkICEAAiLQoGVGVz", + "dEgxEhcKAnkyGAEgAigLMgsuY2ZnLlRlc3RIMhIKCgJ5MxgCIAIoBSIgCgZU", + "ZXN0SDISCgoCejIYASACKAUSCgoCejMYAiACKAUinwEKDFRlc3RUZXN0TnVs", + "bBIKCgJpZBgBIAIoBRIKCgJ4MRgCIAEoBRIdCgJ4MhgDIAEoDjIRLmNmZy5U", + "ZXN0RGVtb0VudW0SHgoCeDMYBCABKAsyEi5jZmcuVGVzdERlbW9UeXBlMRIg", + "CgJ4NBgFIAEoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWMSCgoCczEYBiABKAkS", + "CgoCczIYByABKAki4wEKG1Rlc3REZW1vUHJpbWl0aXZlVHlwZXNUYWJsZRIK", + "CgJ4MRgBIAIoCBIKCgJ4MhgCIAIoBRIKCgJ4MxgDIAIoBRIKCgJ4NBgEIAIo", + "BRIKCgJ4NRgFIAIoAxIKCgJ4NhgGIAIoAhIKCgJ4NxgHIAIoARIKCgJzMRgI", + "IAIoCRIKCgJzMhgJIAIoCRIYCgJ2MhgKIAIoCzIMLmNmZy52ZWN0b3IyEhgK", + "AnYzGAsgAigLMgwuY2ZnLnZlY3RvcjMSGAoCdjQYDCACKAsyDC5jZmcudmVj", + "dG9yNBIKCgJ0MRgNIAIoAyIfCgd2ZWN0b3IyEgkKAXgYASACKAISCQoBeRgC", + "IAIoAiIqCgd2ZWN0b3IzEgkKAXgYASACKAISCQoBeRgCIAIoAhIJCgF6GAMg", + "AigCIjUKB3ZlY3RvcjQSCQoBeBgBIAIoAhIJCgF5GAIgAigCEgkKAXoYAyAC", + "KAISCQoBdxgEIAIoAiJyCg5UZXN0VGVzdFN0cmluZxIKCgJpZBgBIAIoBRIK", + "CgJzMRgCIAIoCRIjCgNjczEYAyACKAsyFi5jZmcuVGVzdENvbXBhY3RTdHJp", + "bmcSIwoDY3MyGAQgAigLMhYuY2ZnLlRlc3RDb21wYWN0U3RyaW5nIjcKEVRl", + "c3RDb21wYWN0U3RyaW5nEgoKAmlkGAEgAigFEgoKAnMyGAIgAigJEgoKAnMz", + "GAMgAigJImwKDVRlc3REZW1vR3JvdXASCgoCaWQYASACKAUSCgoCeDEYAiAC", + "KAUSCgoCeDIYAyACKAUSCgoCeDMYBCACKAUSCgoCeDQYBSACKAUSHwoCeDUY", + "BiACKAsyEy5jZmcuVGVzdElubmVyR3JvdXAiQAoOVGVzdElubmVyR3JvdXAS", + "CgoCeTEYASACKAUSCgoCeTIYAiACKAUSCgoCeTMYAyACKAUSCgoCeTQYBCAC", + "KAUiOwoOVGVzdFRlc3RHbG9iYWwSFAoMdW5sb2NrX2VxdWlwGAEgAigFEhMK", + "C3VubG9ja19oZXJvGAIgAigFIioKDVRlc3RUZXN0QmVSZWYSCgoCaWQYASAC", + "KAUSDQoFY291bnQYAiACKAUixgMKC1Rlc3RUZXN0UmVmEgoKAmlkGAEgAigF", + "EgoKAngxGAIgAigFEgwKBHgxXzIYAyACKAUSCgoCeDIYBCACKAUSCgoCeDMY", + "BSACKAUSCgoCeDQYBiACKAUSDgoCYTEYByADKAVCAhABEg4KAmEyGAggAygF", + "QgIQARIOCgJiMRgJIAMoBUICEAESDgoCYjIYCiADKAVCAhABEg4KAmMxGAsg", + "AygFQgIQARIOCgJjMhgMIAMoBUICEAESJAoCZDEYDSADKAsyGC5jZmcuVGVz", + "dFRlc3RSZWYuRDFFbnRyeRIkCgJkMhgOIAMoCzIYLmNmZy5UZXN0VGVzdFJl", + "Zi5EMkVudHJ5EgoKAmUxGA8gAigFEgoKAmUyGBAgAigDEgoKAmUzGBEgAigJ", + "EgoKAmYxGBIgAigFEgoKAmYyGBMgAigDEgoKAmYzGBQgAigJEiMKAnMxGBUg", + "AigLMhcuY2ZnLlRlc3RSZWZEeW5hbWljQmFzZRopCgdEMUVudHJ5EgsKA2tl", + "eRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaKQoHRDJFbnRyeRILCgNrZXkY", + "ASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIkIKElRlc3RSZWZEeW5hbWljQmFz", + "ZRIjCgdSZWZCZWFuGAEgASgLMhAuY2ZnLlRlc3RSZWZCZWFuSABCBwoFdmFs", + "dWUiKQoLVGVzdFJlZkJlYW4SCQoBeBgBIAIoBRIPCgNhcnIYAiADKAVCAhAB", + "IpwBCgxUZXN0VGVzdFNpemUSCgoCaWQYASACKAUSDgoCeDEYAiADKAVCAhAB", + "Eg4KAngyGAMgAygFQgIQARIOCgJ4MxgEIAMoBUICEAESJQoCeDQYBSADKAsy", + "GS5jZmcuVGVzdFRlc3RTaXplLlg0RW50cnkaKQoHWDRFbnRyeRILCgNrZXkY", + "ASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIngKC1Rlc3RUZXN0U2V0EgoKAmlk", + "GAEgAigFEgoKAngwGAIgAigJEg4KAngxGAMgAygFQgIQARIOCgJ4MhgEIAMo", + "A0ICEAESDgoCeDMYBSADKAlCAhAAEiEKAng0GAYgAygOMhEuY2ZnLlRlc3RE", + "ZW1vRW51bUICEAAiLgoSVGVzdERldGVjdEVuY29kaW5nEgoKAmlkGAEgAigF", + "EgwKBG5hbWUYAiACKAkiiAEKDFRlc3RJdGVtQmFzZRIdCgRJdGVtGAEgASgL", + "Mg0uY2ZnLlRlc3RJdGVtSAASJwoJRXF1aXBtZW50GAIgASgLMhIuY2ZnLlRl", + "c3RFcXVpcG1lbnRIABInCglEZWNvcmF0b3IYAyABKAsyEi5jZmcuVGVzdERl", + "Y29yYXRvckgAQgcKBXZhbHVlIk4KCFRlc3RJdGVtEgoKAmlkGAEgAigFEgwK", + "BG5hbWUYAiACKAkSDAoEZGVzYxgDIAIoCRILCgNudW0YBCACKAUSDQoFcHJp", + "Y2UYBSACKAUiZwoNVGVzdEVxdWlwbWVudBIKCgJpZBgBIAIoBRIMCgRuYW1l", + "GAIgAigJEgwKBGRlc2MYAyACKAkSHwoEYXR0chgEIAIoDjIRLmNmZy5UZXN0", + "RGVtb0VudW0SDQoFdmFsdWUYBSACKAUiSQoNVGVzdERlY29yYXRvchIKCgJp", + "ZBgBIAIoBRIMCgRuYW1lGAIgAigJEgwKBGRlc2MYAyACKAkSEAoIZHVyYXRp", + "b24YBCACKAUiQQoNVGVzdFRlc3RJbmRleBIKCgJpZBgBIAIoBRIkCgRlbGVz", + "GAIgAygLMhIuY2ZnLlRlc3REZW1vVHlwZTFCAhAAIt0CCgtUZXN0VGVzdE1h", + "cBIKCgJpZBgBIAIoBRIkCgJ4MRgCIAMoCzIYLmNmZy5UZXN0VGVzdE1hcC5Y", + "MUVudHJ5EiQKAngyGAMgAygLMhguY2ZnLlRlc3RUZXN0TWFwLlgyRW50cnkS", + "JAoCeDMYBCADKAsyGC5jZmcuVGVzdFRlc3RNYXAuWDNFbnRyeRIkCgJ4NBgF", + "IAMoCzIYLmNmZy5UZXN0VGVzdE1hcC5YNEVudHJ5GikKB1gxRW50cnkSCwoD", + "a2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ARopCgdYMkVudHJ5EgsKA2tl", + "eRgBIAEoAxINCgV2YWx1ZRgCIAEoBToCOAEaKQoHWDNFbnRyeRILCgNrZXkY", + "ASABKAkSDQoFdmFsdWUYAiABKAU6AjgBGikKB1g0RW50cnkSCwoDa2V5GAEg", + "ASgFEg0KBXZhbHVlGAIgASgFOgI4ASL6AgoRVGVzdEV4Y2VsRnJvbUpzb24S", + "CgoCeDQYASACKAUSCgoCeDEYAiACKAgSCgoCeDUYAyACKAMSCgoCeDYYBCAC", + "KAISCgoCczEYBSACKAkSCgoCczIYBiACKAkSCgoCdDEYByACKAMSHwoDeDEy", + "GAggAigLMhIuY2ZnLlRlc3REZW1vVHlwZTESHgoDeDEzGAkgAigOMhEuY2Zn", + "LlRlc3REZW1vRW51bRIhCgN4MTQYCiACKAsyFC5jZmcuVGVzdERlbW9EeW5h", + "bWljEg4KAmsxGAsgAygFQgIQARIqCgJrOBgMIAMoCzIeLmNmZy5UZXN0RXhj", + "ZWxGcm9tSnNvbi5LOEVudHJ5Eh8KAms5GA0gAygLMg8uY2ZnLlRlc3REZW1v", + "RTJCAhAAEiUKA2sxNRgOIAMoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWNCAhAA", + "GikKB0s4RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASIw", + "ChdUZXN0Q29tcG9zaXRlSnNvblRhYmxlMRIKCgJpZBgBIAIoBRIJCgF4GAIg", + "AigJIjAKF1Rlc3RDb21wb3NpdGVKc29uVGFibGUyEgoKAmlkGAEgAigFEgkK", + "AXkYAiACKAUiLwoXVGVzdENvbXBvc2l0ZUpzb25UYWJsZTMSCQoBYRgBIAIo", + "BRIJCgFiGAIgAigFIlcKGVRlc3RFeGNlbEZyb21Kc29uTXVsdGlSb3cSCgoC", + "aWQYASACKAUSCQoBeBgCIAIoBRIjCgVpdGVtcxgDIAMoCzIQLmNmZy5UZXN0", + "VGVzdFJvd0ICEAAiWAoLVGVzdFRlc3RSb3cSCQoBeBgBIAIoBRIJCgF5GAIg", + "AigIEgkKAXoYAyACKAkSGQoBYRgEIAIoCzIOLmNmZy5UZXN0VGVzdDMSDQoB", + "YhgFIAMoBUICEAEiIQoJVGVzdFRlc3QzEgkKAXgYASACKAUSCQoBeRgCIAIo", + "BSKdAQoYVGVzdFRlc3RTY3JpcHRhYmxlT2JqZWN0EgoKAmlkGAEgAigFEgwK", + "BGRlc2MYAiACKAkSDAoEcmF0ZRgDIAIoAhILCgNudW0YBCACKAUSGAoCdjIY", + "BSACKAsyDC5jZmcudmVjdG9yMhIYCgJ2MxgGIAIoCzIMLmNmZy52ZWN0b3Iz", + "EhgKAnY0GAcgAigLMgwuY2ZnLnZlY3RvcjQiWgoOVGVzdFRlc3RNYXBwZXIS", + "CgoCaWQYASACKAUSIgoKYXVkaW9fdHlwZRgCIAIoDjIOLmNmZy5BdWRpb1R5", + "cGUSGAoCdjIYAyACKAsyDC5jZmcudmVjdG9yMiLYAwoQRGVmaW5lRnJvbUV4", + "Y2VsMhIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIoCBIKCgJ4NRgDIAIoAxIKCgJ4", + "NhgEIAIoAhIKCgJ4OBgFIAIoBRILCgN4MTAYBiACKAkSHgoDeDEzGAcgAigO", + "MhEuY2ZnLlRlc3REZW1vRW51bRIgCgV4MTNfMhgIIAIoDjIRLmNmZy5UZXN0", + "RGVtb0ZsYWcSIQoDeDE0GAkgAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIb", + "CgN4MTUYCiACKAsyDi5jZmcuVGVzdFNoYXBlEhgKAnYyGAsgAigLMgwuY2Zn", + "LnZlY3RvcjISCgoCdDEYDCACKAMSDgoCazEYDSADKAVCAhABEg4KAmsyGA4g", + "AygFQgIQARIpCgJrOBgPIAMoCzIdLmNmZy5EZWZpbmVGcm9tRXhjZWwyLks4", + "RW50cnkSHwoCazkYECADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASHQoDazEw", + "GBEgAygLMgwuY2ZnLnZlY3RvcjNCAhAAEh0KA2sxMRgSIAMoCzIMLmNmZy52", + "ZWN0b3I0QgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgC", + "IAEoBToCOAEiYQoJVGVzdFNoYXBlEiEKBkNpcmNsZRgBIAEoCzIPLmNmZy5U", + "ZXN0Q2lyY2xlSAASKAoJUmVjdGFuZ2xlGAIgASgLMhMuY2ZnLlRlc3QyUmVj", + "dGFuZ2xlSABCBwoFdmFsdWUiHAoKVGVzdENpcmNsZRIOCgZyYWRpdXMYASAC", + "KAIiLwoOVGVzdDJSZWN0YW5nbGUSDQoFd2lkdGgYASACKAISDgoGaGVpZ2h0", + "GAIgAigCIjoKDkFpVGJCbGFja2JvYXJkEigKCWRhdGFfbGlzdBgBIAMoCzIR", + "LmNmZy5BaUJsYWNrYm9hcmRCAhAAIj4KEEFpVGJCZWhhdmlvclRyZWUSKgoJ", + "ZGF0YV9saXN0GAEgAygLMhMuY2ZnLkFpQmVoYXZpb3JUcmVlQgIQACJGChRD", + "b21tb25UYkdsb2JhbENvbmZpZxIuCglkYXRhX2xpc3QYASADKAsyFy5jZmcu", + "Q29tbW9uR2xvYmFsQ29uZmlnQgIQACIyCgpJdGVtVGJJdGVtEiQKCWRhdGFf", + "bGlzdBgBIAMoCzINLmNmZy5JdGVtSXRlbUICEAAiOgoOTDEwblRiTDEwTkRl", + "bW8SKAoJZGF0YV9saXN0GAEgAygLMhEuY2ZnLkwxMG5MMTBORGVtb0ICEAAi", + "PAoPTDEwblRiUGF0Y2hEZW1vEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5M", + "MTBuUGF0Y2hEZW1vQgIQACI2CgxUYWdUYlRlc3RUYWcSJgoJZGF0YV9saXN0", + "GAEgAygLMg8uY2ZnLlRhZ1Rlc3RUYWdCAhAAIjwKD1Rlc3RUYkZ1bGxUeXBl", + "cxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9UeXBlMkICEAAi", + "RAoPVGVzdFRiU2luZ2xldG9uEjEKCWRhdGFfbGlzdBgBIAMoCzIaLmNmZy5U", + "ZXN0RGVtb1NpbmdsZXRvblR5cGVCAhAAIkIKElRlc3RUYk5vdEluZGV4TGlz", + "dBIsCglkYXRhX2xpc3QYASADKAsyFS5jZmcuVGVzdE5vdEluZGV4TGlzdEIC", + "EAAiUAoZVGVzdFRiTXVsdGlVbmlvbkluZGV4TGlzdBIzCglkYXRhX2xpc3QY", + "ASADKAsyHC5jZmcuVGVzdE11bHRpVW5pb25JbmRleExpc3RCAhAAIkYKFFRl", + "c3RUYk11bHRpSW5kZXhMaXN0Ei4KCWRhdGFfbGlzdBgBIAMoCzIXLmNmZy5U", + "ZXN0TXVsdGlJbmRleExpc3RCAhAAIj8KElRlc3RUYkRhdGFGcm9tTWlzYxIp", + "CglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9UeXBlMkICEAAiRgoU", + "VGVzdFRiTXVsdGlSb3dSZWNvcmQSLgoJZGF0YV9saXN0GAEgAygLMhcuY2Zn", + "LlRlc3RNdWx0aVJvd1JlY29yZEICEAAiSAoVVGVzdFRiVGVzdE11bHRpQ29s", + "dW1uEi8KCWRhdGFfbGlzdBgBIAMoCzIYLmNmZy5UZXN0VGVzdE11bHRpQ29s", + "dW1uQgIQACJEChNUZXN0VGJNdWx0aVJvd1RpdGxlEi0KCWRhdGFfbGlzdBgB", + "IAMoCzIWLmNmZy5UZXN0TXVsdGlSb3dUaXRsZUICEAAiOgoOVGVzdFRiVGVz", + "dE51bGwSKAoJZGF0YV9saXN0GAEgAygLMhEuY2ZnLlRlc3RUZXN0TnVsbEIC", + "EAAiTgoTVGVzdFRiRGVtb1ByaW1pdGl2ZRI3CglkYXRhX2xpc3QYASADKAsy", + "IC5jZmcuVGVzdERlbW9QcmltaXRpdmVUeXBlc1RhYmxlQgIQACI+ChBUZXN0", + "VGJUZXN0U3RyaW5nEioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5UZXN0VGVz", + "dFN0cmluZ0ICEAAiPAoPVGVzdFRiRGVtb0dyb3VwEikKCWRhdGFfbGlzdBgB", + "IAMoCzISLmNmZy5UZXN0RGVtb0dyb3VwQgIQACI+ChFUZXN0VGJEZW1vR3Jv", + "dXBfQxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9Hcm91cEIC", + "EAAiPgoRVGVzdFRiRGVtb0dyb3VwX1MSKQoJZGF0YV9saXN0GAEgAygLMhIu", + "Y2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4KEVRlc3RUYkRlbW9Hcm91cF9FEikK", + "CWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0RGVtb0dyb3VwQgIQACI+ChBU", + "ZXN0VGJUZXN0R2xvYmFsEioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5UZXN0", + "VGVzdEdsb2JhbEICEAAiPAoPVGVzdFRiVGVzdEJlUmVmEikKCWRhdGFfbGlz", + "dBgBIAMoCzISLmNmZy5UZXN0VGVzdEJlUmVmQgIQACI9ChBUZXN0VGJUZXN0", + "QmVSZWYyEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0VGVzdEJlUmVm", + "QgIQACI4Cg1UZXN0VGJUZXN0UmVmEicKCWRhdGFfbGlzdBgBIAMoCzIQLmNm", + "Zy5UZXN0VGVzdFJlZkICEAAiOgoOVGVzdFRiVGVzdFNpemUSKAoJZGF0YV9s", + "aXN0GAEgAygLMhEuY2ZnLlRlc3RUZXN0U2l6ZUICEAAiOAoNVGVzdFRiVGVz", + "dFNldBInCglkYXRhX2xpc3QYASADKAsyEC5jZmcuVGVzdFRlc3RTZXRCAhAA", + "IkkKF1Rlc3RUYkRldGVjdENzdkVuY29kaW5nEi4KCWRhdGFfbGlzdBgBIAMo", + "CzIXLmNmZy5UZXN0RGV0ZWN0RW5jb2RpbmdCAhAAIjcKC1Rlc3RUYkl0ZW0y", + "EigKCWRhdGFfbGlzdBgBIAMoCzIRLmNmZy5UZXN0SXRlbUJhc2VCAhAAIjwK", + "D1Rlc3RUYlRlc3RJbmRleBIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVz", + "dFRlc3RJbmRleEICEAAiOAoNVGVzdFRiVGVzdE1hcBInCglkYXRhX2xpc3QY", + "ASADKAsyEC5jZmcuVGVzdFRlc3RNYXBCAhAAIkQKE1Rlc3RUYkV4Y2VsRnJv", + "bUpzb24SLQoJZGF0YV9saXN0GAEgAygLMhYuY2ZnLlRlc3RFeGNlbEZyb21K", + "c29uQgIQACJQChlUZXN0VGJDb21wb3NpdGVKc29uVGFibGUxEjMKCWRhdGFf", + "bGlzdBgBIAMoCzIcLmNmZy5UZXN0Q29tcG9zaXRlSnNvblRhYmxlMUICEAAi", + "UAoZVGVzdFRiQ29tcG9zaXRlSnNvblRhYmxlMhIzCglkYXRhX2xpc3QYASAD", + "KAsyHC5jZmcuVGVzdENvbXBvc2l0ZUpzb25UYWJsZTJCAhAAIlAKGVRlc3RU", + "YkNvbXBvc2l0ZUpzb25UYWJsZTMSMwoJZGF0YV9saXN0GAEgAygLMhwuY2Zn", + "LlRlc3RDb21wb3NpdGVKc29uVGFibGUzQgIQACJUChtUZXN0VGJFeGNlbEZy", + "b21Kc29uTXVsdGlSb3cSNQoJZGF0YV9saXN0GAEgAygLMh4uY2ZnLlRlc3RF", + "eGNlbEZyb21Kc29uTXVsdGlSb3dCAhAAIlIKGlRlc3RUYlRlc3RTY3JpcHRh", + "YmxlT2JqZWN0EjQKCWRhdGFfbGlzdBgBIAMoCzIdLmNmZy5UZXN0VGVzdFNj", + "cmlwdGFibGVPYmplY3RCAhAAIj4KEFRlc3RUYlRlc3RNYXBwZXISKgoJZGF0", + "YV9saXN0GAEgAygLMhMuY2ZnLlRlc3RUZXN0TWFwcGVyQgIQACJGChZUZXN0", + "VGJEZWZpbmVGcm9tRXhjZWwyEiwKCWRhdGFfbGlzdBgBIAMoCzIVLmNmZy5E", + "ZWZpbmVGcm9tRXhjZWwyQgIQACo9CgtBaUVFeGVjdXRvchIWChJBaUVFeGVj", + "dXRvcl9DTElFTlQQABIWChJBaUVFeGVjdXRvcl9TRVJWRVIQASroAQoKQWlF", + "S2V5VHlwZRITCg9BaUVLZXlUeXBlX0JPT0wQARISCg5BaUVLZXlUeXBlX0lO", + "VBACEhQKEEFpRUtleVR5cGVfRkxPQVQQAxIVChFBaUVLZXlUeXBlX1NUUklO", + "RxAEEhUKEUFpRUtleVR5cGVfVkVDVE9SEAUSFgoSQWlFS2V5VHlwZV9ST1RB", + "VE9SEAYSEwoPQWlFS2V5VHlwZV9OQU1FEAcSFAoQQWlFS2V5VHlwZV9DTEFT", + "UxAIEhMKD0FpRUtleVR5cGVfRU5VTRAJEhUKEUFpRUtleVR5cGVfT0JKRUNU", + "EAoqiAEKEEFpRUZsb3dBYm9ydE1vZGUSGQoVQWlFRmxvd0Fib3J0TW9kZV9O", + "T05FEAASIwofQWlFRmxvd0Fib3J0TW9kZV9MT1dFUl9QUklPUklUWRABEhkK", + "FUFpRUZsb3dBYm9ydE1vZGVfU0VMRhACEhkKFUFpRUZsb3dBYm9ydE1vZGVf", + "Qk9USBADKkcKDUFpRUZpbmlzaE1vZGUSGwoXQWlFRmluaXNoTW9kZV9JTU1F", + "RElBVEUQABIZChVBaUVGaW5pc2hNb2RlX0RFTEFZRUQQASpuChVBaUVOb3Rp", + "ZnlPYnNlcnZlck1vZGUSKQolQWlFTm90aWZ5T2JzZXJ2ZXJNb2RlX09OX1ZB", + "TFVFX0NIQU5HRRAAEioKJkFpRU5vdGlmeU9ic2VydmVyTW9kZV9PTl9SRVNV", + "TFRfQ0hBTkdFEAEqlQIKC0FpRU9wZXJhdG9yEhsKF0FpRU9wZXJhdG9yX0lT", + "X0VRVUFMX1RPEAASHwobQWlFT3BlcmF0b3JfSVNfTk9UX0VRVUFMX1RPEAES", + "HAoYQWlFT3BlcmF0b3JfSVNfTEVTU19USEFOEAISKAokQWlFT3BlcmF0b3Jf", + "SVNfTEVTU19USEFOX09SX0VRVUFMX1RPEAMSHQoZQWlFT3BlcmF0b3JfSVNf", + "R1JFQVRfVEhBThAEEikKJUFpRU9wZXJhdG9yX0lTX0dSRUFUX1RIQU5fT1Jf", + "RVFVQUxfVE8QBRIYChRBaUVPcGVyYXRvcl9DT05UQUlOUxAGEhwKGEFpRU9w", + "ZXJhdG9yX05PVF9DT05UQUlOUxAHKkkKCUF1ZGlvVHlwZRIVChFBdWRpb1R5", + "cGVfVU5LTk9XThAAEhEKDUF1ZGlvVHlwZV9BQ0MQARISCg5BdWRpb1R5cGVf", + "QUlGRhACKk4KE0NvbW1vbkVCb29sT3BlcmF0b3ISGwoXQ29tbW9uRUJvb2xP", + "cGVyYXRvcl9BTkQQABIaChZDb21tb25FQm9vbE9wZXJhdG9yX09SEAEqnwEK", + "EEl0ZW1FSXRlbVF1YWxpdHkSGgoWSXRlbUVJdGVtUXVhbGl0eV9XSElURRAA", + "EhoKFkl0ZW1FSXRlbVF1YWxpdHlfR1JFRU4QARIZChVJdGVtRUl0ZW1RdWFs", + "aXR5X0JMVUUQAhIbChdJdGVtRUl0ZW1RdWFsaXR5X1BVUlBMRRADEhsKF0l0", + "ZW1FSXRlbVF1YWxpdHlfR09MREVOEAQqqgEKEUl0ZW1FQ3VycmVuY3lUeXBl", + "Eh0KGUl0ZW1FQ3VycmVuY3lUeXBlX0RJQU1PTkQQARIaChZJdGVtRUN1cnJl", + "bmN5VHlwZV9HT0xEEAISHAoYSXRlbUVDdXJyZW5jeVR5cGVfU0lMVkVSEAMS", + "GQoVSXRlbUVDdXJyZW5jeVR5cGVfRVhQEAQSIQodSXRlbUVDdXJyZW5jeVR5", + "cGVfUE9XRVJfUE9JTlQQBSrbAgoOSXRlbUVNYWpvclR5cGUSGwoXSXRlbUVN", + "YWpvclR5cGVfQ1VSUkVOQ1kQARIYChRJdGVtRU1ham9yVHlwZV9DTE9USBAC", + "EhgKFEl0ZW1FTWFqb3JUeXBlX1FVRVNUEAMSHgoaSXRlbUVNYWpvclR5cGVf", + "Q09OU1VNQUJMRVMQBBIfChtJdGVtRU1ham9yVHlwZV9UUkVBU1VSRV9CT1gQ", + "BRIoCiRJdGVtRU1ham9yVHlwZV9BQ0hJRVZFTUVOVF9BTkRfVElUTEUQBhId", + "ChlJdGVtRU1ham9yVHlwZV9IRUFEX0ZSQU1FEAcSGAoUSXRlbUVNYWpvclR5", + "cGVfVk9JQ0UQCBIZChVJdGVtRU1ham9yVHlwZV9BQ1RJT04QCRIcChhJdGVt", + "RU1ham9yVHlwZV9FWFBBTlNJT04QChIbChdJdGVtRU1ham9yVHlwZV9NQVRF", + "UklBTBALKo8MCg5JdGVtRU1pbm9yVHlwZRIaChZJdGVtRU1pbm9yVHlwZV9E", + "SUFNT05EEGUSFwoTSXRlbUVNaW5vclR5cGVfR09MRBBmEhkKFUl0ZW1FTWlu", + "b3JUeXBlX1NJTFZFUhBnEhYKEkl0ZW1FTWlub3JUeXBlX0VYUBBoEh4KGkl0", + "ZW1FTWlub3JUeXBlX1BPV0VSX1BPSU5UEGkSHgoZSXRlbUVNaW5vclR5cGVf", + "SEFJUl9TVFlMRRDSARIYChNJdGVtRU1pbm9yVHlwZV9DT0FUENwBEiAKG0l0", + "ZW1FTWlub3JUeXBlX1VQUEVSX0pBQ0tFVBDmARIcChdJdGVtRU1pbm9yVHlw", + "ZV9UUk9VU0VSUxDxARIZChRJdGVtRU1pbm9yVHlwZV9TS0lSVBDyARIZChRJ", + "dGVtRU1pbm9yVHlwZV9TT0NLUxD6ARIZChRJdGVtRU1pbm9yVHlwZV9TSE9F", + "UxCEAhIiCh1JdGVtRU1pbm9yVHlwZV9IQUlSX0FDQ0VTU09SWRCPAhIXChJJ", + "dGVtRU1pbm9yVHlwZV9IQVQQkAISGwoWSXRlbUVNaW5vclR5cGVfRUFSUklO", + "RxCRAhIcChdJdGVtRU1pbm9yVHlwZV9ORUNLTEFDRRCSAhIcChdJdGVtRU1p", + "bm9yVHlwZV9CUkFDRUxFVBCTAhIeChlJdGVtRU1pbm9yVHlwZV9IQUlSX0NM", + "QVNQEJQCEhkKFEl0ZW1FTWlub3JUeXBlX0dMT1ZFEJUCEiMKHkl0ZW1FTWlu", + "b3JUeXBlX0hBTkRIRUxEX09CSkVDVBCWAhIbChZJdGVtRU1pbm9yVHlwZV9T", + "UEVDSUFMEJcCEiEKHEl0ZW1FTWlub3JUeXBlX0JBU0VfQ09TTUVUSUMQmQIS", + "JAofSXRlbUVNaW5vclR5cGVfRVlFQlJPV19DT1NNRVRJQxCaAhIbChZJdGVt", + "RU1pbm9yVHlwZV9FWUVMQVNIEJsCEisKJkl0ZW1FTWlub3JUeXBlX0NPU01F", + "VElDX0NPTlRBQ1RfTEVOU0VTEJwCEiAKG0l0ZW1FTWlub3JUeXBlX0xJUF9D", + "T1NNRVRJQxCdAhIeChlJdGVtRU1pbm9yVHlwZV9TS0lOX0NPTE9SEJ4CEiMK", + "Hkl0ZW1FTWlub3JUeXBlX09ORV9QSUVDRV9EUkVTUxCiAhIoCiNJdGVtRU1p", + "bm9yVHlwZV9TV0lUQ0hfQ0xPVEhFU19TQ0VORRCjAhIZChRJdGVtRU1pbm9y", + "VHlwZV9RVUVTVBCtAhIYChNJdGVtRU1pbm9yVHlwZV9DQVNUEJEDEhkKFEl0", + "ZW1FTWlub3JUeXBlX1NXT1JEEKUDEh0KGEl0ZW1FTWlub3JUeXBlX0JPV19B", + "UlJPVxCmAxIZChRJdGVtRU1pbm9yVHlwZV9XQU5EUxCnAxIgChtJdGVtRU1p", + "bm9yVHlwZV9TUEVDSUFMX1RPT0wQqAMSGAoTSXRlbUVNaW5vclR5cGVfRk9P", + "RBCTAxIgChtJdGVtRU1pbm9yVHlwZV9UUkVBU1VSRV9CT1gQ9QMSFwoSSXRl", + "bUVNaW5vclR5cGVfS0VZEPYDEi0KKEl0ZW1FTWlub3JUeXBlX01VTFRJX0NI", + "T09TRV9UUkVBU1VSRV9CT1gQ9wMSHwoaSXRlbUVNaW5vclR5cGVfQUNISUVW", + "RU1FTlQQ2QQSGQoUSXRlbUVNaW5vclR5cGVfVElUTEUQ2gQSIAobSXRlbUVN", + "aW5vclR5cGVfQVZBVEFSX0ZSQU1FEL0FEhkKFEl0ZW1FTWlub3JUeXBlX1ZP", + "SUNFEKEGEh0KGEl0ZW1FTWlub3JUeXBlX0lETEVfUE9TRRCFBxIeChlJdGVt", + "RU1pbm9yVHlwZV9QSE9UT19QT1NFEIYHEhcKEkl0ZW1FTWlub3JUeXBlX0JB", + "RxDpBxIjCh5JdGVtRU1pbm9yVHlwZV9GUklFTkRfQ0FQQUNJVFkQ6gcSKQok", + "SXRlbUVNaW5vclR5cGVfQ09OU1RSVUNUSU9OX01BVEVSSUFMEM0IEiIKHUl0", + "ZW1FTWlub3JUeXBlX0RFU0lHTl9EUkFXSU5HEM4IKqMDChxJdGVtRUNsb3Ro", + "ZXJzU3RhclF1YWxpdHlUeXBlEiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0", + "eVR5cGVfT05FEAESJAogSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9U", + "V08QAhImCiJJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBlX1RIUkVFEAMS", + "JQohSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9GT1VSEAQSJQohSXRl", + "bUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9GSVZFEAUSJAogSXRlbUVDbG90", + "aGVyc1N0YXJRdWFsaXR5VHlwZV9TSVgQBhImCiJJdGVtRUNsb3RoZXJzU3Rh", + "clF1YWxpdHlUeXBlX1NFVkVOEAcSJgoiSXRlbUVDbG90aGVyc1N0YXJRdWFs", + "aXR5VHlwZV9FSUdIVBAIEiUKIUl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5", + "cGVfTklORRAJEiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfVEVO", + "EAoqTwoQSXRlbUVDbG90aGVyc1RhZxIeChpJdGVtRUNsb3RoZXJzVGFnX0ZB", + "TkdfU0hBSRABEhsKF0l0ZW1FQ2xvdGhlcnNUYWdfV1VfWkhFEAIqPgoMSXRl", + "bUVVc2VUeXBlEhcKE0l0ZW1FVXNlVHlwZV9NQU5VQUwQABIVChFJdGVtRVVz", + "ZVR5cGVfQVVUTxABKtACChhJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGUSIgoe", + "SXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0NIRVNUEAASIQodSXRlbUVDbG90", + "aGVzSGlkZVBhcnRUeXBlX0hFQUQQARIoCiRJdGVtRUNsb3RoZXNIaWRlUGFy", + "dFR5cGVfU1BJTkVfVVBQRVIQAhIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5", + "cGVfU1BJTkVfTE9XRVIQAxIgChxJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVf", + "SElQEAQSJgoiSXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0xFR19VUFBFUhAF", + "EicKI0l0ZW1FQ2xvdGhlc0hpZGVQYXJ0VHlwZV9MRUdfTUlERExFEAYSJgoi", + "SXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0xFR19MT1dFUhAHKpsDChhJdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGUSJQohSXRlbUVDbG90aGVzUHJvcGVydHlU", + "eXBlX0pJQU5fWVVFEAESIwofSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0hV", + "QV9MSRACEiIKHkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9LRV9BSRADEiYK", + "Ikl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9DSEVOR19TSFUQBBIjCh9JdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGVfSFVPX1BPEAUSIwofSXRlbUVDbG90aGVz", + "UHJvcGVydHlUeXBlX1lPVV9ZQRAGEiYKIkl0ZW1FQ2xvdGhlc1Byb3BlcnR5", + "VHlwZV9RSU5HX0NIVU4QBxIlCiFJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVf", + "WElOR19HQU4QCBInCiNJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVfUUlOR19M", + "SUFORxAJEiUKIUl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9CQU9fTlVBThAK", + "KnUKDFRlc3REZW1vRW51bRIVChFUZXN0RGVtb0VudW1fTk9ORRAAEhIKDlRl", + "c3REZW1vRW51bV9BEAESEgoOVGVzdERlbW9FbnVtX0IQAhISCg5UZXN0RGVt", + "b0VudW1fQxAEEhIKDlRlc3REZW1vRW51bV9EEAUqXgoMVGVzdERlbW9GbGFn", + "EhIKDlRlc3REZW1vRmxhZ19BEAESEgoOVGVzdERlbW9GbGFnX0IQAhISCg5U", + "ZXN0RGVtb0ZsYWdfQxAEEhIKDlRlc3REZW1vRmxhZ19EEAgqRwoPVGVzdEVU", + "ZXN0VWVUeXBlEhkKFVRlc3RFVGVzdFVlVHlwZV9XSElURRAAEhkKFVRlc3RF", + "VGVzdFVlVHlwZV9CTEFDSxABKj4KElRlc3RFVGVzdEVtcHR5RW51bRIoCiRU", + "ZXN0RVRlc3RFbXB0eUVudW1fRU1QVFlfUExBQ0VIT0xERVIQACp+ChNUZXN0", + "RVRlc3RFbXB0eUVudW0yEicKIlRlc3RFVGVzdEVtcHR5RW51bTJfU01BTExf", + "VEhBTl8yNTYQ/wESHgoZVGVzdEVUZXN0RW1wdHlFbnVtMl9YXzI1NhCAAhIe", + "ChlUZXN0RVRlc3RFbXB0eUVudW0yX1hfMjU3EIECKnIKEFRlc3RFVGVzdFF1", + "YWxpdHkSFgoSVGVzdEVUZXN0UXVhbGl0eV9BEAESFgoSVGVzdEVUZXN0UXVh", + "bGl0eV9CEAISFgoSVGVzdEVUZXN0UXVhbGl0eV9DEAMSFgoSVGVzdEVUZXN0", + "UXVhbGl0eV9EEAQqlwEKDlRlc3RBY2Nlc3NGbGFnEhgKFFRlc3RBY2Nlc3NG", + "bGFnX1dSSVRFEAESFwoTVGVzdEFjY2Vzc0ZsYWdfUkVBRBACEhsKF1Rlc3RB", + "Y2Nlc3NGbGFnX1RSVU5DQVRFEAQSFgoSVGVzdEFjY2Vzc0ZsYWdfTkVXEAgS", + "HQoZVGVzdEFjY2Vzc0ZsYWdfUkVBRF9XUklURRAD")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Cfg.AiEExecutor), typeof(global::Cfg.AiEKeyType), typeof(global::Cfg.AiEFlowAbortMode), typeof(global::Cfg.AiEFinishMode), typeof(global::Cfg.AiENotifyObserverMode), typeof(global::Cfg.AiEOperator), typeof(global::Cfg.AudioType), typeof(global::Cfg.CommonEBoolOperator), typeof(global::Cfg.ItemEItemQuality), typeof(global::Cfg.ItemECurrencyType), typeof(global::Cfg.ItemEMajorType), typeof(global::Cfg.ItemEMinorType), typeof(global::Cfg.ItemEClothersStarQualityType), typeof(global::Cfg.ItemEClothersTag), typeof(global::Cfg.ItemEUseType), typeof(global::Cfg.ItemEClothesHidePartType), typeof(global::Cfg.ItemEClothesPropertyType), typeof(global::Cfg.TestDemoEnum), typeof(global::Cfg.TestDemoFlag), typeof(global::Cfg.TestETestUeType), typeof(global::Cfg.TestETestEmptyEnum), typeof(global::Cfg.TestETestEmptyEnum2), typeof(global::Cfg.TestETestQuality), typeof(global::Cfg.TestAccessFlag), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExcelBean1), global::Cfg.TestTestExcelBean1.Parser, new[]{ "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboard), global::Cfg.AiBlackboard.Parser, new[]{ "Name", "Desc", "ParentName", "Keys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKey), global::Cfg.AiBlackboardKey.Parser, new[]{ "Name", "Desc", "IsStatic", "Type", "TypeClassName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBehaviorTree), global::Cfg.AiBehaviorTree.Parser, new[]{ "Id", "Name", "Desc", "BlackboardId", "Root" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiNode), global::Cfg.AiNode.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps", "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan", "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiService), global::Cfg.AiService.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeSetDefaultFocus), global::Cfg.AiUeSetDefaultFocus.Parser, new[]{ "Id", "NodeName", "KeyboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiExecuteTimeStatistic), global::Cfg.AiExecuteTimeStatistic.Parser, new[]{ "Id", "NodeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseTarget), global::Cfg.AiChooseTarget.Parser, new[]{ "Id", "NodeName", "ResultTargetKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeepFaceTarget), global::Cfg.AiKeepFaceTarget.Parser, new[]{ "Id", "NodeName", "TargetActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiGetOwnerPlayer), global::Cfg.AiGetOwnerPlayer.Parser, new[]{ "Id", "NodeName", "PlayerActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUpdateDailyBehaviorProps), global::Cfg.AiUpdateDailyBehaviorProps.Parser, new[]{ "Id", "NodeName", "SatietyKey", "EnergyKey", "MoodKey", "SatietyLowerThresholdKey", "SatietyUpperThresholdKey", "EnergyLowerThresholdKey", "EnergyUpperThresholdKey", "MoodLowerThresholdKey", "MoodUpperThresholdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDecorator), global::Cfg.AiDecorator.Parser, new[]{ "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeLoop), global::Cfg.AiUeLoop.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NumLoops", "InfiniteLoop", "InfiniteLoopTimeoutTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeCooldown), global::Cfg.AiUeCooldown.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "CooldownTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeTimeLimit), global::Cfg.AiUeTimeLimit.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "LimitTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeBlackboard), global::Cfg.AiUeBlackboard.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NotifyObserver", "BlackboardKey", "KeyQuery" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyQueryOperator), global::Cfg.AiKeyQueryOperator.Parser, new[]{ "IsSet", "IsNotSet", "BinaryOperator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsSet), global::Cfg.AiIsSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsNotSet), global::Cfg.AiIsNotSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBinaryOperator), global::Cfg.AiBinaryOperator.Parser, new[]{ "Oper", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyData), global::Cfg.AiKeyData.Parser, new[]{ "FloatKeyData", "IntKeyData", "StringKeyData", "BlackboardKeyData" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFloatKeyData), global::Cfg.AiFloatKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIntKeyData), global::Cfg.AiIntKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiStringKeyData), global::Cfg.AiStringKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKeyData), global::Cfg.AiBlackboardKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeForceSuccess), global::Cfg.AiUeForceSuccess.Parser, new[]{ "Id", "NodeName", "FlowAbortMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsAtLocation), global::Cfg.AiIsAtLocation.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "AcceptableRadius", "KeyboardKey", "InverseCondition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDistanceLessThan), global::Cfg.AiDistanceLessThan.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "Actor1Key", "Actor2Key", "Distance", "ReverseResult" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFlowNode), global::Cfg.AiFlowNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiComposeNode), global::Cfg.AiComposeNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSequence), global::Cfg.AiSequence.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSelector), global::Cfg.AiSelector.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSimpleParallel), global::Cfg.AiSimpleParallel.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "FinishMode", "MainTask", "BackgroundNode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTask), global::Cfg.AiTask.Parser, new[]{ "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWait), global::Cfg.AiUeWait.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "WaitTime", "RandomDeviation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWaitBlackboardTime), global::Cfg.AiUeWaitBlackboardTime.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "BlackboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToTarget), global::Cfg.AiMoveToTarget.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseSkill), global::Cfg.AiChooseSkill.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "ResultSkillIdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToRandomLocation), global::Cfg.AiMoveToRandomLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "OriginPositionKey", "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToLocation), global::Cfg.AiMoveToLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDebugPrint), global::Cfg.AiDebugPrint.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonGlobalConfig), global::Cfg.CommonGlobalConfig.Parser, new[]{ "BagCapacity", "BagCapacitySpecial", "BagTempExpendableCapacity", "BagTempToolCapacity", "BagInitCapacity", "QuickBagCapacity", "ClothBagCapacity", "ClothBagInitCapacity", "ClothBagCapacitySpecial", "BagInitItemsDropId", "MailBoxCapacity", "DamageParamC", "DamageParamE", "DamageParamF", "DamageParamD", "RoleSpeed", "MonsterSpeed", "InitEnergy", "InitViality", "MaxViality", "PerVialityRecoveryTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItem), global::Cfg.ItemItem.Parser, new[]{ "Id", "Name", "MajorType", "MinorType", "MaxPileNum", "Quality", "Icon", "IconBackgroud", "IconMask", "Desc", "ShowOrder" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nL10NDemo), global::Cfg.L10nL10NDemo.Parser, new[]{ "Id", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nPatchDemo), global::Cfg.L10nPatchDemo.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTestTag), global::Cfg.TagTestTag.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType2), global::Cfg.TestDemoType2.Parser, new[]{ "X4", "X1", "X2", "X3", "X5", "X6", "X7", "X80", "X8", "X9", "X10", "X12", "X13", "X14", "S1", "T1", "K1", "K2", "K5", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType1), global::Cfg.TestDemoType1.Parser, new[]{ "X1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoDynamic), global::Cfg.TestDemoDynamic.Parser, new[]{ "DemoD2", "DemoE1", "RoleInfo", "DemoD5" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD2), global::Cfg.TestDemoD2.Parser, new[]{ "X1", "X2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD3), global::Cfg.TestDemoD3.Parser, new[]{ "DemoE1", "RoleInfo" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE1), global::Cfg.TestDemoE1.Parser, new[]{ "X1", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestLoginRoleInfo), global::Cfg.TestLoginRoleInfo.Parser, new[]{ "X1", "X3", "RoleId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD5), global::Cfg.TestDemoD5.Parser, new[]{ "X1", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDateTimeRange), global::Cfg.TestDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE2), global::Cfg.TestDemoE2.Parser, new[]{ "Y1", "Y2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoSingletonType), global::Cfg.TestDemoSingletonType.Parser, new[]{ "Id", "Name", "Date" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestNotIndexList), global::Cfg.TestNotIndexList.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiUnionIndexList), global::Cfg.TestMultiUnionIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiIndexList), global::Cfg.TestMultiIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowRecord), global::Cfg.TestMultiRowRecord.Parser, new[]{ "Id", "Name", "OneRows", "MultiRows1", "MultiRows2", "MultiRows4", "MultiRows5", "MultiRows6", "MultiRows7" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType1), global::Cfg.TestMultiRowType1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType2), global::Cfg.TestMultiRowType2.Parser, new[]{ "Id", "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType3), global::Cfg.TestMultiRowType3.Parser, new[]{ "Id", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMultiColumn), global::Cfg.TestTestMultiColumn.Parser, new[]{ "Id", "A", "B", "C" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestFoo), global::Cfg.TestFoo.Parser, new[]{ "Y1", "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowTitle), global::Cfg.TestMultiRowTitle.Parser, new[]{ "Id", "Name", "X1", "X20", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH1), global::Cfg.TestH1.Parser, new[]{ "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH2), global::Cfg.TestH2.Parser, new[]{ "Z2", "Z3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestNull), global::Cfg.TestTestNull.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "S1", "S2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoPrimitiveTypesTable), global::Cfg.TestDemoPrimitiveTypesTable.Parser, new[]{ "X1", "X2", "X3", "X4", "X5", "X6", "X7", "S1", "S2", "V2", "V3", "V4", "T1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector2), global::Cfg.vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector3), global::Cfg.vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector4), global::Cfg.vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestString), global::Cfg.TestTestString.Parser, new[]{ "Id", "S1", "Cs1", "Cs2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompactString), global::Cfg.TestCompactString.Parser, new[]{ "Id", "S2", "S3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoGroup), global::Cfg.TestDemoGroup.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestInnerGroup), global::Cfg.TestInnerGroup.Parser, new[]{ "Y1", "Y2", "Y3", "Y4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestGlobal), global::Cfg.TestTestGlobal.Parser, new[]{ "UnlockEquip", "UnlockHero" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestBeRef), global::Cfg.TestTestBeRef.Parser, new[]{ "Id", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRef), global::Cfg.TestTestRef.Parser, new[]{ "Id", "X1", "X12", "X2", "X3", "X4", "A1", "A2", "B1", "B2", "C1", "C2", "D1", "D2", "E1", "E2", "E3", "F1", "F2", "F3", "S1" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestRefDynamicBase), global::Cfg.TestRefDynamicBase.Parser, new[]{ "RefBean" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestRefBean), global::Cfg.TestRefBean.Parser, new[]{ "X", "Arr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSize), global::Cfg.TestTestSize.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSet), global::Cfg.TestTestSet.Parser, new[]{ "Id", "X0", "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDetectEncoding), global::Cfg.TestDetectEncoding.Parser, new[]{ "Id", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestItemBase), global::Cfg.TestItemBase.Parser, new[]{ "Item", "Equipment", "Decorator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestItem), global::Cfg.TestItem.Parser, new[]{ "Id", "Name", "Desc", "Num", "Price" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestEquipment), global::Cfg.TestEquipment.Parser, new[]{ "Id", "Name", "Desc", "Attr", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDecorator), global::Cfg.TestDecorator.Parser, new[]{ "Id", "Name", "Desc", "Duration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestIndex), global::Cfg.TestTestIndex.Parser, new[]{ "Id", "Eles" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMap), global::Cfg.TestTestMap.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJson), global::Cfg.TestExcelFromJson.Parser, new[]{ "X4", "X1", "X5", "X6", "S1", "S2", "T1", "X12", "X13", "X14", "K1", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable1), global::Cfg.TestCompositeJsonTable1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable2), global::Cfg.TestCompositeJsonTable2.Parser, new[]{ "Id", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable3), global::Cfg.TestCompositeJsonTable3.Parser, new[]{ "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJsonMultiRow), global::Cfg.TestExcelFromJsonMultiRow.Parser, new[]{ "Id", "X", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRow), global::Cfg.TestTestRow.Parser, new[]{ "X", "Y", "Z", "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTest3), global::Cfg.TestTest3.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestScriptableObject), global::Cfg.TestTestScriptableObject.Parser, new[]{ "Id", "Desc", "Rate", "Num", "V2", "V3", "V4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMapper), global::Cfg.TestTestMapper.Parser, new[]{ "Id", "AudioType", "V2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.DefineFromExcel2), global::Cfg.DefineFromExcel2.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X132", "X14", "X15", "V2", "T1", "K1", "K2", "K8", "K9", "K10", "K11" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestShape), global::Cfg.TestShape.Parser, new[]{ "Circle", "Rectangle" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCircle), global::Cfg.TestCircle.Parser, new[]{ "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Test2Rectangle), global::Cfg.Test2Rectangle.Parser, new[]{ "Width", "Height" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBlackboard), global::Cfg.AiTbBlackboard.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBehaviorTree), global::Cfg.AiTbBehaviorTree.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonTbGlobalConfig), global::Cfg.CommonTbGlobalConfig.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItem), global::Cfg.ItemTbItem.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbL10NDemo), global::Cfg.L10nTbL10NDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbPatchDemo), global::Cfg.L10nTbPatchDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTbTestTag), global::Cfg.TagTbTestTag.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbFullTypes), global::Cfg.TestTbFullTypes.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbSingleton), global::Cfg.TestTbSingleton.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbNotIndexList), global::Cfg.TestTbNotIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiUnionIndexList), global::Cfg.TestTbMultiUnionIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiIndexList), global::Cfg.TestTbMultiIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDataFromMisc), global::Cfg.TestTbDataFromMisc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowRecord), global::Cfg.TestTbMultiRowRecord.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMultiColumn), global::Cfg.TestTbTestMultiColumn.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowTitle), global::Cfg.TestTbMultiRowTitle.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestNull), global::Cfg.TestTbTestNull.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoPrimitive), global::Cfg.TestTbDemoPrimitive.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestString), global::Cfg.TestTbTestString.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup), global::Cfg.TestTbDemoGroup.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_C), global::Cfg.TestTbDemoGroup_C.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_S), global::Cfg.TestTbDemoGroup_S.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_E), global::Cfg.TestTbDemoGroup_E.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestGlobal), global::Cfg.TestTbTestGlobal.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef), global::Cfg.TestTbTestBeRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef2), global::Cfg.TestTbTestBeRef2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestRef), global::Cfg.TestTbTestRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSize), global::Cfg.TestTbTestSize.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSet), global::Cfg.TestTbTestSet.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDetectCsvEncoding), global::Cfg.TestTbDetectCsvEncoding.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbItem2), global::Cfg.TestTbItem2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestIndex), global::Cfg.TestTbTestIndex.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMap), global::Cfg.TestTbTestMap.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJson), global::Cfg.TestTbExcelFromJson.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable1), global::Cfg.TestTbCompositeJsonTable1.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable2), global::Cfg.TestTbCompositeJsonTable2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable3), global::Cfg.TestTbCompositeJsonTable3.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJsonMultiRow), global::Cfg.TestTbExcelFromJsonMultiRow.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestScriptableObject), global::Cfg.TestTbTestScriptableObject.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMapper), global::Cfg.TestTbTestMapper.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel2), global::Cfg.TestTbDefineFromExcel2.Parser, new[]{ "DataList" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum AiEExecutor { + [pbr::OriginalName("AiEExecutor_CLIENT")] Client = 0, + [pbr::OriginalName("AiEExecutor_SERVER")] Server = 1, + } + + public enum AiEKeyType { + [pbr::OriginalName("AiEKeyType_BOOL")] Bool = 1, + [pbr::OriginalName("AiEKeyType_INT")] Int = 2, + [pbr::OriginalName("AiEKeyType_FLOAT")] Float = 3, + [pbr::OriginalName("AiEKeyType_STRING")] String = 4, + [pbr::OriginalName("AiEKeyType_VECTOR")] Vector = 5, + [pbr::OriginalName("AiEKeyType_ROTATOR")] Rotator = 6, + [pbr::OriginalName("AiEKeyType_NAME")] Name = 7, + [pbr::OriginalName("AiEKeyType_CLASS")] Class = 8, + [pbr::OriginalName("AiEKeyType_ENUM")] Enum = 9, + [pbr::OriginalName("AiEKeyType_OBJECT")] Object = 10, + } + + public enum AiEFlowAbortMode { + [pbr::OriginalName("AiEFlowAbortMode_NONE")] None = 0, + [pbr::OriginalName("AiEFlowAbortMode_LOWER_PRIORITY")] LowerPriority = 1, + [pbr::OriginalName("AiEFlowAbortMode_SELF")] Self = 2, + [pbr::OriginalName("AiEFlowAbortMode_BOTH")] Both = 3, + } + + public enum AiEFinishMode { + [pbr::OriginalName("AiEFinishMode_IMMEDIATE")] Immediate = 0, + [pbr::OriginalName("AiEFinishMode_DELAYED")] Delayed = 1, + } + + public enum AiENotifyObserverMode { + [pbr::OriginalName("AiENotifyObserverMode_ON_VALUE_CHANGE")] OnValueChange = 0, + [pbr::OriginalName("AiENotifyObserverMode_ON_RESULT_CHANGE")] OnResultChange = 1, + } + + public enum AiEOperator { + [pbr::OriginalName("AiEOperator_IS_EQUAL_TO")] IsEqualTo = 0, + [pbr::OriginalName("AiEOperator_IS_NOT_EQUAL_TO")] IsNotEqualTo = 1, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN")] IsLessThan = 2, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN_OR_EQUAL_TO")] IsLessThanOrEqualTo = 3, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN")] IsGreatThan = 4, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO")] IsGreatThanOrEqualTo = 5, + [pbr::OriginalName("AiEOperator_CONTAINS")] Contains = 6, + [pbr::OriginalName("AiEOperator_NOT_CONTAINS")] NotContains = 7, + } + + public enum AudioType { + [pbr::OriginalName("AudioType_UNKNOWN")] Unknown = 0, + [pbr::OriginalName("AudioType_ACC")] Acc = 1, + [pbr::OriginalName("AudioType_AIFF")] Aiff = 2, + } + + public enum CommonEBoolOperator { + [pbr::OriginalName("CommonEBoolOperator_AND")] And = 0, + [pbr::OriginalName("CommonEBoolOperator_OR")] Or = 1, + } + + public enum ItemEItemQuality { + [pbr::OriginalName("ItemEItemQuality_WHITE")] White = 0, + [pbr::OriginalName("ItemEItemQuality_GREEN")] Green = 1, + [pbr::OriginalName("ItemEItemQuality_BLUE")] Blue = 2, + [pbr::OriginalName("ItemEItemQuality_PURPLE")] Purple = 3, + [pbr::OriginalName("ItemEItemQuality_GOLDEN")] Golden = 4, + } + + public enum ItemECurrencyType { + [pbr::OriginalName("ItemECurrencyType_DIAMOND")] Diamond = 1, + [pbr::OriginalName("ItemECurrencyType_GOLD")] Gold = 2, + [pbr::OriginalName("ItemECurrencyType_SILVER")] Silver = 3, + [pbr::OriginalName("ItemECurrencyType_EXP")] Exp = 4, + [pbr::OriginalName("ItemECurrencyType_POWER_POINT")] PowerPoint = 5, + } + + public enum ItemEMajorType { + [pbr::OriginalName("ItemEMajorType_CURRENCY")] Currency = 1, + [pbr::OriginalName("ItemEMajorType_CLOTH")] Cloth = 2, + [pbr::OriginalName("ItemEMajorType_QUEST")] Quest = 3, + [pbr::OriginalName("ItemEMajorType_CONSUMABLES")] Consumables = 4, + [pbr::OriginalName("ItemEMajorType_TREASURE_BOX")] TreasureBox = 5, + [pbr::OriginalName("ItemEMajorType_ACHIEVEMENT_AND_TITLE")] AchievementAndTitle = 6, + [pbr::OriginalName("ItemEMajorType_HEAD_FRAME")] HeadFrame = 7, + [pbr::OriginalName("ItemEMajorType_VOICE")] Voice = 8, + [pbr::OriginalName("ItemEMajorType_ACTION")] Action = 9, + [pbr::OriginalName("ItemEMajorType_EXPANSION")] Expansion = 10, + [pbr::OriginalName("ItemEMajorType_MATERIAL")] Material = 11, + } + + public enum ItemEMinorType { + [pbr::OriginalName("ItemEMinorType_DIAMOND")] Diamond = 101, + [pbr::OriginalName("ItemEMinorType_GOLD")] Gold = 102, + [pbr::OriginalName("ItemEMinorType_SILVER")] Silver = 103, + [pbr::OriginalName("ItemEMinorType_EXP")] Exp = 104, + [pbr::OriginalName("ItemEMinorType_POWER_POINT")] PowerPoint = 105, + [pbr::OriginalName("ItemEMinorType_HAIR_STYLE")] HairStyle = 210, + [pbr::OriginalName("ItemEMinorType_COAT")] Coat = 220, + [pbr::OriginalName("ItemEMinorType_UPPER_JACKET")] UpperJacket = 230, + [pbr::OriginalName("ItemEMinorType_TROUSERS")] Trousers = 241, + [pbr::OriginalName("ItemEMinorType_SKIRT")] Skirt = 242, + [pbr::OriginalName("ItemEMinorType_SOCKS")] Socks = 250, + [pbr::OriginalName("ItemEMinorType_SHOES")] Shoes = 260, + [pbr::OriginalName("ItemEMinorType_HAIR_ACCESSORY")] HairAccessory = 271, + [pbr::OriginalName("ItemEMinorType_HAT")] Hat = 272, + [pbr::OriginalName("ItemEMinorType_EARRING")] Earring = 273, + [pbr::OriginalName("ItemEMinorType_NECKLACE")] Necklace = 274, + [pbr::OriginalName("ItemEMinorType_BRACELET")] Bracelet = 275, + [pbr::OriginalName("ItemEMinorType_HAIR_CLASP")] HairClasp = 276, + [pbr::OriginalName("ItemEMinorType_GLOVE")] Glove = 277, + [pbr::OriginalName("ItemEMinorType_HANDHELD_OBJECT")] HandheldObject = 278, + [pbr::OriginalName("ItemEMinorType_SPECIAL")] Special = 279, + [pbr::OriginalName("ItemEMinorType_BASE_COSMETIC")] BaseCosmetic = 281, + [pbr::OriginalName("ItemEMinorType_EYEBROW_COSMETIC")] EyebrowCosmetic = 282, + [pbr::OriginalName("ItemEMinorType_EYELASH")] Eyelash = 283, + [pbr::OriginalName("ItemEMinorType_COSMETIC_CONTACT_LENSES")] CosmeticContactLenses = 284, + [pbr::OriginalName("ItemEMinorType_LIP_COSMETIC")] LipCosmetic = 285, + [pbr::OriginalName("ItemEMinorType_SKIN_COLOR")] SkinColor = 286, + [pbr::OriginalName("ItemEMinorType_ONE_PIECE_DRESS")] OnePieceDress = 290, + [pbr::OriginalName("ItemEMinorType_SWITCH_CLOTHES_SCENE")] SwitchClothesScene = 291, + [pbr::OriginalName("ItemEMinorType_QUEST")] Quest = 301, + [pbr::OriginalName("ItemEMinorType_CAST")] Cast = 401, + [pbr::OriginalName("ItemEMinorType_SWORD")] Sword = 421, + [pbr::OriginalName("ItemEMinorType_BOW_ARROW")] BowArrow = 422, + [pbr::OriginalName("ItemEMinorType_WANDS")] Wands = 423, + [pbr::OriginalName("ItemEMinorType_SPECIAL_TOOL")] SpecialTool = 424, + [pbr::OriginalName("ItemEMinorType_FOOD")] Food = 403, + [pbr::OriginalName("ItemEMinorType_TREASURE_BOX")] TreasureBox = 501, + [pbr::OriginalName("ItemEMinorType_KEY")] Key = 502, + [pbr::OriginalName("ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX")] MultiChooseTreasureBox = 503, + [pbr::OriginalName("ItemEMinorType_ACHIEVEMENT")] Achievement = 601, + [pbr::OriginalName("ItemEMinorType_TITLE")] Title = 602, + [pbr::OriginalName("ItemEMinorType_AVATAR_FRAME")] AvatarFrame = 701, + [pbr::OriginalName("ItemEMinorType_VOICE")] Voice = 801, + [pbr::OriginalName("ItemEMinorType_IDLE_POSE")] IdlePose = 901, + [pbr::OriginalName("ItemEMinorType_PHOTO_POSE")] PhotoPose = 902, + [pbr::OriginalName("ItemEMinorType_BAG")] Bag = 1001, + [pbr::OriginalName("ItemEMinorType_FRIEND_CAPACITY")] FriendCapacity = 1002, + [pbr::OriginalName("ItemEMinorType_CONSTRUCTION_MATERIAL")] ConstructionMaterial = 1101, + [pbr::OriginalName("ItemEMinorType_DESIGN_DRAWING")] DesignDrawing = 1102, + } + + public enum ItemEClothersStarQualityType { + [pbr::OriginalName("ItemEClothersStarQualityType_ONE")] One = 1, + [pbr::OriginalName("ItemEClothersStarQualityType_TWO")] Two = 2, + [pbr::OriginalName("ItemEClothersStarQualityType_THREE")] Three = 3, + [pbr::OriginalName("ItemEClothersStarQualityType_FOUR")] Four = 4, + [pbr::OriginalName("ItemEClothersStarQualityType_FIVE")] Five = 5, + [pbr::OriginalName("ItemEClothersStarQualityType_SIX")] Six = 6, + [pbr::OriginalName("ItemEClothersStarQualityType_SEVEN")] Seven = 7, + [pbr::OriginalName("ItemEClothersStarQualityType_EIGHT")] Eight = 8, + [pbr::OriginalName("ItemEClothersStarQualityType_NINE")] Nine = 9, + [pbr::OriginalName("ItemEClothersStarQualityType_TEN")] Ten = 10, + } + + public enum ItemEClothersTag { + [pbr::OriginalName("ItemEClothersTag_FANG_SHAI")] FangShai = 1, + [pbr::OriginalName("ItemEClothersTag_WU_ZHE")] WuZhe = 2, + } + + public enum ItemEUseType { + [pbr::OriginalName("ItemEUseType_MANUAL")] Manual = 0, + [pbr::OriginalName("ItemEUseType_AUTO")] Auto = 1, + } + + public enum ItemEClothesHidePartType { + [pbr::OriginalName("ItemEClothesHidePartType_CHEST")] Chest = 0, + [pbr::OriginalName("ItemEClothesHidePartType_HEAD")] Head = 1, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_UPPER")] SpineUpper = 2, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_LOWER")] SpineLower = 3, + [pbr::OriginalName("ItemEClothesHidePartType_HIP")] Hip = 4, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_UPPER")] LegUpper = 5, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_MIDDLE")] LegMiddle = 6, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_LOWER")] LegLower = 7, + } + + public enum ItemEClothesPropertyType { + [pbr::OriginalName("ItemEClothesPropertyType_JIAN_YUE")] JianYue = 1, + [pbr::OriginalName("ItemEClothesPropertyType_HUA_LI")] HuaLi = 2, + [pbr::OriginalName("ItemEClothesPropertyType_KE_AI")] KeAi = 3, + [pbr::OriginalName("ItemEClothesPropertyType_CHENG_SHU")] ChengShu = 4, + [pbr::OriginalName("ItemEClothesPropertyType_HUO_PO")] HuoPo = 5, + [pbr::OriginalName("ItemEClothesPropertyType_YOU_YA")] YouYa = 6, + [pbr::OriginalName("ItemEClothesPropertyType_QING_CHUN")] QingChun = 7, + [pbr::OriginalName("ItemEClothesPropertyType_XING_GAN")] XingGan = 8, + [pbr::OriginalName("ItemEClothesPropertyType_QING_LIANG")] QingLiang = 9, + [pbr::OriginalName("ItemEClothesPropertyType_BAO_NUAN")] BaoNuan = 10, + } + + public enum TestDemoEnum { + [pbr::OriginalName("TestDemoEnum_NONE")] None = 0, + [pbr::OriginalName("TestDemoEnum_A")] A = 1, + [pbr::OriginalName("TestDemoEnum_B")] B = 2, + [pbr::OriginalName("TestDemoEnum_C")] C = 4, + [pbr::OriginalName("TestDemoEnum_D")] D = 5, + } + + public enum TestDemoFlag { + [pbr::OriginalName("TestDemoFlag_A")] A = 1, + [pbr::OriginalName("TestDemoFlag_B")] B = 2, + [pbr::OriginalName("TestDemoFlag_C")] C = 4, + [pbr::OriginalName("TestDemoFlag_D")] D = 8, + } + + public enum TestETestUeType { + [pbr::OriginalName("TestETestUeType_WHITE")] White = 0, + [pbr::OriginalName("TestETestUeType_BLACK")] Black = 1, + } + + public enum TestETestEmptyEnum { + [pbr::OriginalName("TestETestEmptyEnum_EMPTY_PLACEHOLDER")] EmptyPlaceholder = 0, + } + + public enum TestETestEmptyEnum2 { + [pbr::OriginalName("TestETestEmptyEnum2_SMALL_THAN_256")] SmallThan256 = 255, + [pbr::OriginalName("TestETestEmptyEnum2_X_256")] X256 = 256, + [pbr::OriginalName("TestETestEmptyEnum2_X_257")] X257 = 257, + } + + public enum TestETestQuality { + [pbr::OriginalName("TestETestQuality_A")] A = 1, + [pbr::OriginalName("TestETestQuality_B")] B = 2, + [pbr::OriginalName("TestETestQuality_C")] C = 3, + [pbr::OriginalName("TestETestQuality_D")] D = 4, + } + + public enum TestAccessFlag { + [pbr::OriginalName("TestAccessFlag_WRITE")] Write = 1, + [pbr::OriginalName("TestAccessFlag_READ")] Read = 2, + [pbr::OriginalName("TestAccessFlag_TRUNCATE")] Truncate = 4, + [pbr::OriginalName("TestAccessFlag_NEW")] New = 8, + [pbr::OriginalName("TestAccessFlag_READ_WRITE")] ReadWrite = 3, + } + + #endregion + + #region Messages + public sealed partial class TestTestExcelBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExcelBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1(TestTestExcelBean1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1 Clone() { + return new TestTestExcelBean1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static string X2DefaultValue = ""; + + private string x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X2 { + get { return x2_ ?? X2DefaultValue; } + set { + x2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return x2_ != null; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + x2_ = null; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static float X4DefaultValue = 0F; + + private float x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExcelBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExcelBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X4, other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X4); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExcelBean1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard(AiBlackboard other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parentName_ = other.parentName_; + keys_ = other.keys_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard Clone() { + return new AiBlackboard(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parent_name" field. + public const int ParentNameFieldNumber = 3; + private readonly static string ParentNameDefaultValue = ""; + + private string parentName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParentName { + get { return parentName_ ?? ParentNameDefaultValue; } + set { + parentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "parent_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParentName { + get { return parentName_ != null; } + } + /// Clears the value of the "parent_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParentName() { + parentName_ = null; + } + + /// Field number for the "keys" field. + public const int KeysFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_keys_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiBlackboardKey.Parser); + private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Keys { + get { return keys_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ParentName != other.ParentName) return false; + if(!keys_.Equals(other.keys_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasParentName) hash ^= ParentName.GetHashCode(); + hash ^= keys_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(ref output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasParentName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentName); + } + size += keys_.CalculateSize(_repeated_keys_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboard other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasParentName) { + ParentName = other.ParentName; + } + keys_.Add(other.keys_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(input, _repeated_keys_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey(AiBlackboardKey other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + type_ = other.type_; + typeClassName_ = other.typeClassName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey Clone() { + return new AiBlackboardKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private readonly static global::Cfg.AiEKeyType TypeDefaultValue = global::Cfg.AiEKeyType.Bool; + + private global::Cfg.AiEKeyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEKeyType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "type_class_name" field. + public const int TypeClassNameFieldNumber = 5; + private readonly static string TypeClassNameDefaultValue = ""; + + private string typeClassName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TypeClassName { + get { return typeClassName_ ?? TypeClassNameDefaultValue; } + set { + typeClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type_class_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTypeClassName { + get { return typeClassName_ != null; } + } + /// Clears the value of the "type_class_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTypeClassName() { + typeClassName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (Type != other.Type) return false; + if (TypeClassName != other.TypeClassName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTypeClassName) hash ^= TypeClassName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasTypeClassName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeClassName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKey other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasTypeClassName) { + TypeClassName = other.TypeClassName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree(AiBehaviorTree other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + blackboardId_ = other.blackboardId_; + root_ = other.root_ != null ? other.root_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree Clone() { + return new AiBehaviorTree(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "blackboard_id" field. + public const int BlackboardIdFieldNumber = 4; + private readonly static string BlackboardIdDefaultValue = ""; + + private string blackboardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardId { + get { return blackboardId_ ?? BlackboardIdDefaultValue; } + set { + blackboardId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardId { + get { return blackboardId_ != null; } + } + /// Clears the value of the "blackboard_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardId() { + blackboardId_ = null; + } + + /// Field number for the "root" field. + public const int RootFieldNumber = 5; + private global::Cfg.AiComposeNode root_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiComposeNode Root { + get { return root_; } + set { + root_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (BlackboardId != other.BlackboardId) return false; + if (!object.Equals(Root, other.Root)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasBlackboardId) hash ^= BlackboardId.GetHashCode(); + if (root_ != null) hash ^= Root.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasBlackboardId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardId); + } + if (root_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Root); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBehaviorTree other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasBlackboardId) { + BlackboardId = other.BlackboardId; + } + if (other.root_ != null) { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + Root.MergeFrom(other.Root); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode(AiNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode Clone() { + return new AiNode(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiService : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiService()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService(AiService other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService Clone() { + return new AiService(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiService); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiService other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiService other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeSetDefaultFocus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeSetDefaultFocus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus(AiUeSetDefaultFocus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + keyboardKey_ = other.keyboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus Clone() { + return new AiUeSetDefaultFocus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 3; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeSetDefaultFocus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeSetDefaultFocus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (KeyboardKey != other.KeyboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeSetDefaultFocus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiExecuteTimeStatistic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiExecuteTimeStatistic()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic(AiExecuteTimeStatistic other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic Clone() { + return new AiExecuteTimeStatistic(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiExecuteTimeStatistic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiExecuteTimeStatistic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiExecuteTimeStatistic other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget(AiChooseTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + resultTargetKey_ = other.resultTargetKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget Clone() { + return new AiChooseTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "result_target_key" field. + public const int ResultTargetKeyFieldNumber = 3; + private readonly static string ResultTargetKeyDefaultValue = ""; + + private string resultTargetKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultTargetKey { + get { return resultTargetKey_ ?? ResultTargetKeyDefaultValue; } + set { + resultTargetKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_target_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultTargetKey { + get { return resultTargetKey_ != null; } + } + /// Clears the value of the "result_target_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultTargetKey() { + resultTargetKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (ResultTargetKey != other.ResultTargetKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasResultTargetKey) hash ^= ResultTargetKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasResultTargetKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultTargetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasResultTargetKey) { + ResultTargetKey = other.ResultTargetKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeepFaceTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeepFaceTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget(AiKeepFaceTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + targetActorKey_ = other.targetActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget Clone() { + return new AiKeepFaceTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 3; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeepFaceTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeepFaceTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (TargetActorKey != other.TargetActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeepFaceTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiGetOwnerPlayer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiGetOwnerPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer(AiGetOwnerPlayer other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + playerActorKey_ = other.playerActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer Clone() { + return new AiGetOwnerPlayer(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "player_actor_key" field. + public const int PlayerActorKeyFieldNumber = 3; + private readonly static string PlayerActorKeyDefaultValue = ""; + + private string playerActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayerActorKey { + get { return playerActorKey_ ?? PlayerActorKeyDefaultValue; } + set { + playerActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "player_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerActorKey { + get { return playerActorKey_ != null; } + } + /// Clears the value of the "player_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerActorKey() { + playerActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiGetOwnerPlayer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiGetOwnerPlayer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (PlayerActorKey != other.PlayerActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasPlayerActorKey) hash ^= PlayerActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasPlayerActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiGetOwnerPlayer other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasPlayerActorKey) { + PlayerActorKey = other.PlayerActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUpdateDailyBehaviorProps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUpdateDailyBehaviorProps()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps(AiUpdateDailyBehaviorProps other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + satietyKey_ = other.satietyKey_; + energyKey_ = other.energyKey_; + moodKey_ = other.moodKey_; + satietyLowerThresholdKey_ = other.satietyLowerThresholdKey_; + satietyUpperThresholdKey_ = other.satietyUpperThresholdKey_; + energyLowerThresholdKey_ = other.energyLowerThresholdKey_; + energyUpperThresholdKey_ = other.energyUpperThresholdKey_; + moodLowerThresholdKey_ = other.moodLowerThresholdKey_; + moodUpperThresholdKey_ = other.moodUpperThresholdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps Clone() { + return new AiUpdateDailyBehaviorProps(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "satiety_key" field. + public const int SatietyKeyFieldNumber = 3; + private readonly static string SatietyKeyDefaultValue = ""; + + private string satietyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyKey { + get { return satietyKey_ ?? SatietyKeyDefaultValue; } + set { + satietyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyKey { + get { return satietyKey_ != null; } + } + /// Clears the value of the "satiety_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyKey() { + satietyKey_ = null; + } + + /// Field number for the "energy_key" field. + public const int EnergyKeyFieldNumber = 4; + private readonly static string EnergyKeyDefaultValue = ""; + + private string energyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyKey { + get { return energyKey_ ?? EnergyKeyDefaultValue; } + set { + energyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyKey { + get { return energyKey_ != null; } + } + /// Clears the value of the "energy_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyKey() { + energyKey_ = null; + } + + /// Field number for the "mood_key" field. + public const int MoodKeyFieldNumber = 5; + private readonly static string MoodKeyDefaultValue = ""; + + private string moodKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodKey { + get { return moodKey_ ?? MoodKeyDefaultValue; } + set { + moodKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodKey { + get { return moodKey_ != null; } + } + /// Clears the value of the "mood_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodKey() { + moodKey_ = null; + } + + /// Field number for the "satiety_lower_threshold_key" field. + public const int SatietyLowerThresholdKeyFieldNumber = 6; + private readonly static string SatietyLowerThresholdKeyDefaultValue = ""; + + private string satietyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ ?? SatietyLowerThresholdKeyDefaultValue; } + set { + satietyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ != null; } + } + /// Clears the value of the "satiety_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyLowerThresholdKey() { + satietyLowerThresholdKey_ = null; + } + + /// Field number for the "satiety_upper_threshold_key" field. + public const int SatietyUpperThresholdKeyFieldNumber = 7; + private readonly static string SatietyUpperThresholdKeyDefaultValue = ""; + + private string satietyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ ?? SatietyUpperThresholdKeyDefaultValue; } + set { + satietyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ != null; } + } + /// Clears the value of the "satiety_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyUpperThresholdKey() { + satietyUpperThresholdKey_ = null; + } + + /// Field number for the "energy_lower_threshold_key" field. + public const int EnergyLowerThresholdKeyFieldNumber = 8; + private readonly static string EnergyLowerThresholdKeyDefaultValue = ""; + + private string energyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ ?? EnergyLowerThresholdKeyDefaultValue; } + set { + energyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ != null; } + } + /// Clears the value of the "energy_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLowerThresholdKey() { + energyLowerThresholdKey_ = null; + } + + /// Field number for the "energy_upper_threshold_key" field. + public const int EnergyUpperThresholdKeyFieldNumber = 9; + private readonly static string EnergyUpperThresholdKeyDefaultValue = ""; + + private string energyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ ?? EnergyUpperThresholdKeyDefaultValue; } + set { + energyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ != null; } + } + /// Clears the value of the "energy_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyUpperThresholdKey() { + energyUpperThresholdKey_ = null; + } + + /// Field number for the "mood_lower_threshold_key" field. + public const int MoodLowerThresholdKeyFieldNumber = 10; + private readonly static string MoodLowerThresholdKeyDefaultValue = ""; + + private string moodLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodLowerThresholdKey { + get { return moodLowerThresholdKey_ ?? MoodLowerThresholdKeyDefaultValue; } + set { + moodLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodLowerThresholdKey { + get { return moodLowerThresholdKey_ != null; } + } + /// Clears the value of the "mood_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodLowerThresholdKey() { + moodLowerThresholdKey_ = null; + } + + /// Field number for the "mood_upper_threshold_key" field. + public const int MoodUpperThresholdKeyFieldNumber = 11; + private readonly static string MoodUpperThresholdKeyDefaultValue = ""; + + private string moodUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodUpperThresholdKey { + get { return moodUpperThresholdKey_ ?? MoodUpperThresholdKeyDefaultValue; } + set { + moodUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodUpperThresholdKey { + get { return moodUpperThresholdKey_ != null; } + } + /// Clears the value of the "mood_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodUpperThresholdKey() { + moodUpperThresholdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUpdateDailyBehaviorProps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUpdateDailyBehaviorProps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (SatietyKey != other.SatietyKey) return false; + if (EnergyKey != other.EnergyKey) return false; + if (MoodKey != other.MoodKey) return false; + if (SatietyLowerThresholdKey != other.SatietyLowerThresholdKey) return false; + if (SatietyUpperThresholdKey != other.SatietyUpperThresholdKey) return false; + if (EnergyLowerThresholdKey != other.EnergyLowerThresholdKey) return false; + if (EnergyUpperThresholdKey != other.EnergyUpperThresholdKey) return false; + if (MoodLowerThresholdKey != other.MoodLowerThresholdKey) return false; + if (MoodUpperThresholdKey != other.MoodUpperThresholdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasSatietyKey) hash ^= SatietyKey.GetHashCode(); + if (HasEnergyKey) hash ^= EnergyKey.GetHashCode(); + if (HasMoodKey) hash ^= MoodKey.GetHashCode(); + if (HasSatietyLowerThresholdKey) hash ^= SatietyLowerThresholdKey.GetHashCode(); + if (HasSatietyUpperThresholdKey) hash ^= SatietyUpperThresholdKey.GetHashCode(); + if (HasEnergyLowerThresholdKey) hash ^= EnergyLowerThresholdKey.GetHashCode(); + if (HasEnergyUpperThresholdKey) hash ^= EnergyUpperThresholdKey.GetHashCode(); + if (HasMoodLowerThresholdKey) hash ^= MoodLowerThresholdKey.GetHashCode(); + if (HasMoodUpperThresholdKey) hash ^= MoodUpperThresholdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasSatietyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyKey); + } + if (HasEnergyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyKey); + } + if (HasMoodKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUpdateDailyBehaviorProps other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasSatietyKey) { + SatietyKey = other.SatietyKey; + } + if (other.HasEnergyKey) { + EnergyKey = other.EnergyKey; + } + if (other.HasMoodKey) { + MoodKey = other.MoodKey; + } + if (other.HasSatietyLowerThresholdKey) { + SatietyLowerThresholdKey = other.SatietyLowerThresholdKey; + } + if (other.HasSatietyUpperThresholdKey) { + SatietyUpperThresholdKey = other.SatietyUpperThresholdKey; + } + if (other.HasEnergyLowerThresholdKey) { + EnergyLowerThresholdKey = other.EnergyLowerThresholdKey; + } + if (other.HasEnergyUpperThresholdKey) { + EnergyUpperThresholdKey = other.EnergyUpperThresholdKey; + } + if (other.HasMoodLowerThresholdKey) { + MoodLowerThresholdKey = other.MoodLowerThresholdKey; + } + if (other.HasMoodUpperThresholdKey) { + MoodUpperThresholdKey = other.MoodUpperThresholdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDecorator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator(AiDecorator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator Clone() { + return new AiDecorator(this); + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDecorator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeLoop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeLoop()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop(AiUeLoop other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + numLoops_ = other.numLoops_; + infiniteLoop_ = other.infiniteLoop_; + infiniteLoopTimeoutTime_ = other.infiniteLoopTimeoutTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop Clone() { + return new AiUeLoop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "num_loops" field. + public const int NumLoopsFieldNumber = 4; + private readonly static int NumLoopsDefaultValue = 0; + + private int numLoops_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumLoops { + get { if ((_hasBits0 & 4) != 0) { return numLoops_; } else { return NumLoopsDefaultValue; } } + set { + _hasBits0 |= 4; + numLoops_ = value; + } + } + /// Gets whether the "num_loops" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumLoops { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num_loops" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumLoops() { + _hasBits0 &= ~4; + } + + /// Field number for the "infinite_loop" field. + public const int InfiniteLoopFieldNumber = 5; + private readonly static bool InfiniteLoopDefaultValue = false; + + private bool infiniteLoop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InfiniteLoop { + get { if ((_hasBits0 & 8) != 0) { return infiniteLoop_; } else { return InfiniteLoopDefaultValue; } } + set { + _hasBits0 |= 8; + infiniteLoop_ = value; + } + } + /// Gets whether the "infinite_loop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoop { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "infinite_loop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoop() { + _hasBits0 &= ~8; + } + + /// Field number for the "infinite_loop_timeout_time" field. + public const int InfiniteLoopTimeoutTimeFieldNumber = 6; + private readonly static float InfiniteLoopTimeoutTimeDefaultValue = 0F; + + private float infiniteLoopTimeoutTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float InfiniteLoopTimeoutTime { + get { if ((_hasBits0 & 16) != 0) { return infiniteLoopTimeoutTime_; } else { return InfiniteLoopTimeoutTimeDefaultValue; } } + set { + _hasBits0 |= 16; + infiniteLoopTimeoutTime_ = value; + } + } + /// Gets whether the "infinite_loop_timeout_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoopTimeoutTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "infinite_loop_timeout_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoopTimeoutTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeLoop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeLoop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NumLoops != other.NumLoops) return false; + if (InfiniteLoop != other.InfiniteLoop) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfiniteLoopTimeoutTime, other.InfiniteLoopTimeoutTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNumLoops) hash ^= NumLoops.GetHashCode(); + if (HasInfiniteLoop) hash ^= InfiniteLoop.GetHashCode(); + if (HasInfiniteLoopTimeoutTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfiniteLoopTimeoutTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNumLoops) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumLoops); + } + if (HasInfiniteLoop) { + size += 1 + 1; + } + if (HasInfiniteLoopTimeoutTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeLoop other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNumLoops) { + NumLoops = other.NumLoops; + } + if (other.HasInfiniteLoop) { + InfiniteLoop = other.InfiniteLoop; + } + if (other.HasInfiniteLoopTimeoutTime) { + InfiniteLoopTimeoutTime = other.InfiniteLoopTimeoutTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeCooldown : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeCooldown()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown(AiUeCooldown other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + cooldownTime_ = other.cooldownTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown Clone() { + return new AiUeCooldown(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "cooldown_time" field. + public const int CooldownTimeFieldNumber = 4; + private readonly static float CooldownTimeDefaultValue = 0F; + + private float cooldownTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CooldownTime { + get { if ((_hasBits0 & 4) != 0) { return cooldownTime_; } else { return CooldownTimeDefaultValue; } } + set { + _hasBits0 |= 4; + cooldownTime_ = value; + } + } + /// Gets whether the "cooldown_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCooldownTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cooldown_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCooldownTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeCooldown); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeCooldown other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CooldownTime, other.CooldownTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasCooldownTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CooldownTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasCooldownTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeCooldown other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasCooldownTime) { + CooldownTime = other.CooldownTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeTimeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeTimeLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit(AiUeTimeLimit other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + limitTime_ = other.limitTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit Clone() { + return new AiUeTimeLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 4; + private readonly static float LimitTimeDefaultValue = 0F; + + private float limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LimitTime { + get { if ((_hasBits0 & 4) != 0) { return limitTime_; } else { return LimitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + limitTime_ = value; + } + } + /// Gets whether the "limit_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLimitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "limit_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLimitTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeTimeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeTimeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LimitTime, other.LimitTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasLimitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LimitTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasLimitTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeTimeLimit other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasLimitTime) { + LimitTime = other.LimitTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeBlackboard()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard(AiUeBlackboard other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + notifyObserver_ = other.notifyObserver_; + blackboardKey_ = other.blackboardKey_; + keyQuery_ = other.keyQuery_ != null ? other.keyQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard Clone() { + return new AiUeBlackboard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "notify_observer" field. + public const int NotifyObserverFieldNumber = 4; + private readonly static global::Cfg.AiENotifyObserverMode NotifyObserverDefaultValue = global::Cfg.AiENotifyObserverMode.OnValueChange; + + private global::Cfg.AiENotifyObserverMode notifyObserver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiENotifyObserverMode NotifyObserver { + get { if ((_hasBits0 & 4) != 0) { return notifyObserver_; } else { return NotifyObserverDefaultValue; } } + set { + _hasBits0 |= 4; + notifyObserver_ = value; + } + } + /// Gets whether the "notify_observer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNotifyObserver { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "notify_observer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNotifyObserver() { + _hasBits0 &= ~4; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 5; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + /// Field number for the "key_query" field. + public const int KeyQueryFieldNumber = 6; + private global::Cfg.AiKeyQueryOperator keyQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyQueryOperator KeyQuery { + get { return keyQuery_; } + set { + keyQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NotifyObserver != other.NotifyObserver) return false; + if (BlackboardKey != other.BlackboardKey) return false; + if (!object.Equals(KeyQuery, other.KeyQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNotifyObserver) hash ^= NotifyObserver.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (keyQuery_ != null) hash ^= KeyQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNotifyObserver) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NotifyObserver); + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (keyQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeBlackboard other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNotifyObserver) { + NotifyObserver = other.NotifyObserver; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + if (other.keyQuery_ != null) { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + KeyQuery.MergeFrom(other.KeyQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyQueryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyQueryOperator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator(AiKeyQueryOperator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + IsSet = other.IsSet.Clone(); + break; + case ValueOneofCase.IsNotSet: + IsNotSet = other.IsNotSet.Clone(); + break; + case ValueOneofCase.BinaryOperator: + BinaryOperator = other.BinaryOperator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator Clone() { + return new AiKeyQueryOperator(this); + } + + /// Field number for the "IsSet" field. + public const int IsSetFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsSet IsSet { + get { return valueCase_ == ValueOneofCase.IsSet ? (global::Cfg.AiIsSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsSet; + } + } + + /// Field number for the "IsNotSet" field. + public const int IsNotSetFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsNotSet IsNotSet { + get { return valueCase_ == ValueOneofCase.IsNotSet ? (global::Cfg.AiIsNotSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsNotSet; + } + } + + /// Field number for the "BinaryOperator" field. + public const int BinaryOperatorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBinaryOperator BinaryOperator { + get { return valueCase_ == ValueOneofCase.BinaryOperator ? (global::Cfg.AiBinaryOperator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BinaryOperator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + IsSet = 1, + IsNotSet = 2, + BinaryOperator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyQueryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyQueryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IsSet, other.IsSet)) return false; + if (!object.Equals(IsNotSet, other.IsNotSet)) return false; + if (!object.Equals(BinaryOperator, other.BinaryOperator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.IsSet) hash ^= IsSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsNotSet) hash ^= IsNotSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.BinaryOperator) hash ^= BinaryOperator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.IsSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryOperator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyQueryOperator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + if (IsSet == null) { + IsSet = new global::Cfg.AiIsSet(); + } + IsSet.MergeFrom(other.IsSet); + break; + case ValueOneofCase.IsNotSet: + if (IsNotSet == null) { + IsNotSet = new global::Cfg.AiIsNotSet(); + } + IsNotSet.MergeFrom(other.IsNotSet); + break; + case ValueOneofCase.BinaryOperator: + if (BinaryOperator == null) { + BinaryOperator = new global::Cfg.AiBinaryOperator(); + } + BinaryOperator.MergeFrom(other.BinaryOperator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet(AiIsSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet Clone() { + return new AiIsSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiIsNotSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsNotSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet(AiIsNotSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet Clone() { + return new AiIsNotSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsNotSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsNotSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsNotSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiBinaryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBinaryOperator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator(AiBinaryOperator other) : this() { + _hasBits0 = other._hasBits0; + oper_ = other.oper_; + data_ = other.data_ != null ? other.data_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator Clone() { + return new AiBinaryOperator(this); + } + + /// Field number for the "oper" field. + public const int OperFieldNumber = 1; + private readonly static global::Cfg.AiEOperator OperDefaultValue = global::Cfg.AiEOperator.IsEqualTo; + + private global::Cfg.AiEOperator oper_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEOperator Oper { + get { if ((_hasBits0 & 1) != 0) { return oper_; } else { return OperDefaultValue; } } + set { + _hasBits0 |= 1; + oper_ = value; + } + } + /// Gets whether the "oper" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOper { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "oper" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOper() { + _hasBits0 &= ~1; + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private global::Cfg.AiKeyData data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyData Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBinaryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBinaryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Oper != other.Oper) return false; + if (!object.Equals(Data, other.Data)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasOper) hash ^= Oper.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasOper) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Oper); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBinaryOperator other) { + if (other == null) { + return; + } + if (other.HasOper) { + Oper = other.Oper; + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + Data.MergeFrom(other.Data); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData(AiKeyData other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + FloatKeyData = other.FloatKeyData.Clone(); + break; + case ValueOneofCase.IntKeyData: + IntKeyData = other.IntKeyData.Clone(); + break; + case ValueOneofCase.StringKeyData: + StringKeyData = other.StringKeyData.Clone(); + break; + case ValueOneofCase.BlackboardKeyData: + BlackboardKeyData = other.BlackboardKeyData.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData Clone() { + return new AiKeyData(this); + } + + /// Field number for the "FloatKeyData" field. + public const int FloatKeyDataFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFloatKeyData FloatKeyData { + get { return valueCase_ == ValueOneofCase.FloatKeyData ? (global::Cfg.AiFloatKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.FloatKeyData; + } + } + + /// Field number for the "IntKeyData" field. + public const int IntKeyDataFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIntKeyData IntKeyData { + get { return valueCase_ == ValueOneofCase.IntKeyData ? (global::Cfg.AiIntKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IntKeyData; + } + } + + /// Field number for the "StringKeyData" field. + public const int StringKeyDataFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiStringKeyData StringKeyData { + get { return valueCase_ == ValueOneofCase.StringKeyData ? (global::Cfg.AiStringKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.StringKeyData; + } + } + + /// Field number for the "BlackboardKeyData" field. + public const int BlackboardKeyDataFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBlackboardKeyData BlackboardKeyData { + get { return valueCase_ == ValueOneofCase.BlackboardKeyData ? (global::Cfg.AiBlackboardKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlackboardKeyData; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + FloatKeyData = 1, + IntKeyData = 2, + StringKeyData = 3, + BlackboardKeyData = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FloatKeyData, other.FloatKeyData)) return false; + if (!object.Equals(IntKeyData, other.IntKeyData)) return false; + if (!object.Equals(StringKeyData, other.StringKeyData)) return false; + if (!object.Equals(BlackboardKeyData, other.BlackboardKeyData)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.FloatKeyData) hash ^= FloatKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.IntKeyData) hash ^= IntKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.StringKeyData) hash ^= StringKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) hash ^= BlackboardKeyData.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.FloatKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlackboardKeyData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyData other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + if (FloatKeyData == null) { + FloatKeyData = new global::Cfg.AiFloatKeyData(); + } + FloatKeyData.MergeFrom(other.FloatKeyData); + break; + case ValueOneofCase.IntKeyData: + if (IntKeyData == null) { + IntKeyData = new global::Cfg.AiIntKeyData(); + } + IntKeyData.MergeFrom(other.IntKeyData); + break; + case ValueOneofCase.StringKeyData: + if (StringKeyData == null) { + StringKeyData = new global::Cfg.AiStringKeyData(); + } + StringKeyData.MergeFrom(other.StringKeyData); + break; + case ValueOneofCase.BlackboardKeyData: + if (BlackboardKeyData == null) { + BlackboardKeyData = new global::Cfg.AiBlackboardKeyData(); + } + BlackboardKeyData.MergeFrom(other.BlackboardKeyData); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFloatKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFloatKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData(AiFloatKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData Clone() { + return new AiFloatKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static float ValueDefaultValue = 0F; + + private float value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFloatKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFloatKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFloatKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIntKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIntKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData(AiIntKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData Clone() { + return new AiIntKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIntKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIntKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIntKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiStringKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiStringKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData(AiStringKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData Clone() { + return new AiStringKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiStringKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiStringKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiStringKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData(AiBlackboardKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData Clone() { + return new AiBlackboardKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeForceSuccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeForceSuccess()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess(AiUeForceSuccess other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess Clone() { + return new AiUeForceSuccess(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeForceSuccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeForceSuccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeForceSuccess other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsAtLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsAtLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation(AiIsAtLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + acceptableRadius_ = other.acceptableRadius_; + keyboardKey_ = other.keyboardKey_; + inverseCondition_ = other.inverseCondition_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation Clone() { + return new AiIsAtLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 4; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 5; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + /// Field number for the "inverse_condition" field. + public const int InverseConditionFieldNumber = 6; + private readonly static bool InverseConditionDefaultValue = false; + + private bool inverseCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InverseCondition { + get { if ((_hasBits0 & 8) != 0) { return inverseCondition_; } else { return InverseConditionDefaultValue; } } + set { + _hasBits0 |= 8; + inverseCondition_ = value; + } + } + /// Gets whether the "inverse_condition" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInverseCondition { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "inverse_condition" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInverseCondition() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsAtLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsAtLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + if (KeyboardKey != other.KeyboardKey) return false; + if (InverseCondition != other.InverseCondition) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (HasInverseCondition) hash ^= InverseCondition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (HasInverseCondition) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsAtLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + if (other.HasInverseCondition) { + InverseCondition = other.InverseCondition; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDistanceLessThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDistanceLessThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan(AiDistanceLessThan other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + actor1Key_ = other.actor1Key_; + actor2Key_ = other.actor2Key_; + distance_ = other.distance_; + reverseResult_ = other.reverseResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan Clone() { + return new AiDistanceLessThan(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "actor1_key" field. + public const int Actor1KeyFieldNumber = 4; + private readonly static string Actor1KeyDefaultValue = ""; + + private string actor1Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor1Key { + get { return actor1Key_ ?? Actor1KeyDefaultValue; } + set { + actor1Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor1_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor1Key { + get { return actor1Key_ != null; } + } + /// Clears the value of the "actor1_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor1Key() { + actor1Key_ = null; + } + + /// Field number for the "actor2_key" field. + public const int Actor2KeyFieldNumber = 5; + private readonly static string Actor2KeyDefaultValue = ""; + + private string actor2Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor2Key { + get { return actor2Key_ ?? Actor2KeyDefaultValue; } + set { + actor2Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor2_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor2Key { + get { return actor2Key_ != null; } + } + /// Clears the value of the "actor2_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor2Key() { + actor2Key_ = null; + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 6; + private readonly static float DistanceDefaultValue = 0F; + + private float distance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Distance { + get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } + set { + _hasBits0 |= 4; + distance_ = value; + } + } + /// Gets whether the "distance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "distance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistance() { + _hasBits0 &= ~4; + } + + /// Field number for the "reverse_result" field. + public const int ReverseResultFieldNumber = 7; + private readonly static bool ReverseResultDefaultValue = false; + + private bool reverseResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReverseResult { + get { if ((_hasBits0 & 8) != 0) { return reverseResult_; } else { return ReverseResultDefaultValue; } } + set { + _hasBits0 |= 8; + reverseResult_ = value; + } + } + /// Gets whether the "reverse_result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverseResult { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "reverse_result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverseResult() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDistanceLessThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDistanceLessThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (Actor1Key != other.Actor1Key) return false; + if (Actor2Key != other.Actor2Key) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; + if (ReverseResult != other.ReverseResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasActor1Key) hash ^= Actor1Key.GetHashCode(); + if (HasActor2Key) hash ^= Actor2Key.GetHashCode(); + if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); + if (HasReverseResult) hash ^= ReverseResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasActor1Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor1Key); + } + if (HasActor2Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor2Key); + } + if (HasDistance) { + size += 1 + 4; + } + if (HasReverseResult) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDistanceLessThan other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasActor1Key) { + Actor1Key = other.Actor1Key; + } + if (other.HasActor2Key) { + Actor2Key = other.Actor2Key; + } + if (other.HasDistance) { + Distance = other.Distance; + } + if (other.HasReverseResult) { + ReverseResult = other.ReverseResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFlowNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFlowNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode(AiFlowNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode Clone() { + return new AiFlowNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFlowNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFlowNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFlowNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiComposeNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiComposeNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode(AiComposeNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode Clone() { + return new AiComposeNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiComposeNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiComposeNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiComposeNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSequence()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence(AiSequence other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence Clone() { + return new AiSequence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSequence other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSelector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSelector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector(AiSelector other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector Clone() { + return new AiSelector(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSelector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSelector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSelector other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSimpleParallel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSimpleParallel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel(AiSimpleParallel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + finishMode_ = other.finishMode_; + mainTask_ = other.mainTask_ != null ? other.mainTask_.Clone() : null; + backgroundNode_ = other.backgroundNode_ != null ? other.backgroundNode_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel Clone() { + return new AiSimpleParallel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "finish_mode" field. + public const int FinishModeFieldNumber = 5; + private readonly static global::Cfg.AiEFinishMode FinishModeDefaultValue = global::Cfg.AiEFinishMode.Immediate; + + private global::Cfg.AiEFinishMode finishMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFinishMode FinishMode { + get { if ((_hasBits0 & 2) != 0) { return finishMode_; } else { return FinishModeDefaultValue; } } + set { + _hasBits0 |= 2; + finishMode_ = value; + } + } + /// Gets whether the "finish_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFinishMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "finish_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFinishMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "main_task" field. + public const int MainTaskFieldNumber = 6; + private global::Cfg.AiTask mainTask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiTask MainTask { + get { return mainTask_; } + set { + mainTask_ = value; + } + } + + /// Field number for the "background_node" field. + public const int BackgroundNodeFieldNumber = 7; + private global::Cfg.AiFlowNode backgroundNode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFlowNode BackgroundNode { + get { return backgroundNode_; } + set { + backgroundNode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSimpleParallel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSimpleParallel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (FinishMode != other.FinishMode) return false; + if (!object.Equals(MainTask, other.MainTask)) return false; + if (!object.Equals(BackgroundNode, other.BackgroundNode)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasFinishMode) hash ^= FinishMode.GetHashCode(); + if (mainTask_ != null) hash ^= MainTask.GetHashCode(); + if (backgroundNode_ != null) hash ^= BackgroundNode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasFinishMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinishMode); + } + if (mainTask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainTask); + } + if (backgroundNode_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundNode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSimpleParallel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasFinishMode) { + FinishMode = other.FinishMode; + } + if (other.mainTask_ != null) { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + MainTask.MergeFrom(other.MainTask); + } + if (other.backgroundNode_ != null) { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + BackgroundNode.MergeFrom(other.BackgroundNode); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTask : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTask()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask(AiTask other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask Clone() { + return new AiTask(this); + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTask); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTask other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTask other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWait : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWait()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait(AiUeWait other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + waitTime_ = other.waitTime_; + randomDeviation_ = other.randomDeviation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait Clone() { + return new AiUeWait(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "wait_time" field. + public const int WaitTimeFieldNumber = 6; + private readonly static float WaitTimeDefaultValue = 0F; + + private float waitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WaitTime { + get { if ((_hasBits0 & 4) != 0) { return waitTime_; } else { return WaitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + waitTime_ = value; + } + } + /// Gets whether the "wait_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWaitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "wait_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWaitTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "random_deviation" field. + public const int RandomDeviationFieldNumber = 7; + private readonly static float RandomDeviationDefaultValue = 0F; + + private float randomDeviation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RandomDeviation { + get { if ((_hasBits0 & 8) != 0) { return randomDeviation_; } else { return RandomDeviationDefaultValue; } } + set { + _hasBits0 |= 8; + randomDeviation_ = value; + } + } + /// Gets whether the "random_deviation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRandomDeviation { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "random_deviation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRandomDeviation() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWait); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWait other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WaitTime, other.WaitTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RandomDeviation, other.RandomDeviation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasWaitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WaitTime); + if (HasRandomDeviation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RandomDeviation); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasWaitTime) { + size += 1 + 4; + } + if (HasRandomDeviation) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWait other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasWaitTime) { + WaitTime = other.WaitTime; + } + if (other.HasRandomDeviation) { + RandomDeviation = other.RandomDeviation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWaitBlackboardTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWaitBlackboardTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime(AiUeWaitBlackboardTime other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + blackboardKey_ = other.blackboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime Clone() { + return new AiUeWaitBlackboardTime(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 6; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWaitBlackboardTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWaitBlackboardTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (BlackboardKey != other.BlackboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWaitBlackboardTime other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget(AiMoveToTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget Clone() { + return new AiMoveToTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseSkill()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill(AiChooseSkill other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + resultSkillIdKey_ = other.resultSkillIdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill Clone() { + return new AiChooseSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "result_skill_id_key" field. + public const int ResultSkillIdKeyFieldNumber = 7; + private readonly static string ResultSkillIdKeyDefaultValue = ""; + + private string resultSkillIdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultSkillIdKey { + get { return resultSkillIdKey_ ?? ResultSkillIdKeyDefaultValue; } + set { + resultSkillIdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_skill_id_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultSkillIdKey { + get { return resultSkillIdKey_ != null; } + } + /// Clears the value of the "result_skill_id_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultSkillIdKey() { + resultSkillIdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (ResultSkillIdKey != other.ResultSkillIdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasResultSkillIdKey) hash ^= ResultSkillIdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasResultSkillIdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultSkillIdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseSkill other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasResultSkillIdKey) { + ResultSkillIdKey = other.ResultSkillIdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToRandomLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToRandomLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation(AiMoveToRandomLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + originPositionKey_ = other.originPositionKey_; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation Clone() { + return new AiMoveToRandomLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "origin_position_key" field. + public const int OriginPositionKeyFieldNumber = 6; + private readonly static string OriginPositionKeyDefaultValue = ""; + + private string originPositionKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OriginPositionKey { + get { return originPositionKey_ ?? OriginPositionKeyDefaultValue; } + set { + originPositionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "origin_position_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOriginPositionKey { + get { return originPositionKey_ != null; } + } + /// Clears the value of the "origin_position_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOriginPositionKey() { + originPositionKey_ = null; + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 7; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 4) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 4; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToRandomLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToRandomLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (OriginPositionKey != other.OriginPositionKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasOriginPositionKey) hash ^= OriginPositionKey.GetHashCode(); + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasOriginPositionKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginPositionKey); + } + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToRandomLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasOriginPositionKey) { + OriginPositionKey = other.OriginPositionKey; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation(AiMoveToLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation Clone() { + return new AiMoveToLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 6; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasAcceptableRadius) { + output.WriteRawTag(53); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasAcceptableRadius) { + output.WriteRawTag(53); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDebugPrint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDebugPrint()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint(AiDebugPrint other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint Clone() { + return new AiDebugPrint(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 6; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDebugPrint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDebugPrint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDebugPrint other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig(CommonGlobalConfig other) : this() { + _hasBits0 = other._hasBits0; + bagCapacity_ = other.bagCapacity_; + bagCapacitySpecial_ = other.bagCapacitySpecial_; + bagTempExpendableCapacity_ = other.bagTempExpendableCapacity_; + bagTempToolCapacity_ = other.bagTempToolCapacity_; + bagInitCapacity_ = other.bagInitCapacity_; + quickBagCapacity_ = other.quickBagCapacity_; + clothBagCapacity_ = other.clothBagCapacity_; + clothBagInitCapacity_ = other.clothBagInitCapacity_; + clothBagCapacitySpecial_ = other.clothBagCapacitySpecial_; + bagInitItemsDropId_ = other.bagInitItemsDropId_; + mailBoxCapacity_ = other.mailBoxCapacity_; + damageParamC_ = other.damageParamC_; + damageParamE_ = other.damageParamE_; + damageParamF_ = other.damageParamF_; + damageParamD_ = other.damageParamD_; + roleSpeed_ = other.roleSpeed_; + monsterSpeed_ = other.monsterSpeed_; + initEnergy_ = other.initEnergy_; + initViality_ = other.initViality_; + maxViality_ = other.maxViality_; + perVialityRecoveryTime_ = other.perVialityRecoveryTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig Clone() { + return new CommonGlobalConfig(this); + } + + /// Field number for the "bag_capacity" field. + public const int BagCapacityFieldNumber = 1; + private readonly static int BagCapacityDefaultValue = 0; + + private int bagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacity { + get { if ((_hasBits0 & 1) != 0) { return bagCapacity_; } else { return BagCapacityDefaultValue; } } + set { + _hasBits0 |= 1; + bagCapacity_ = value; + } + } + /// Gets whether the "bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacity { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacity() { + _hasBits0 &= ~1; + } + + /// Field number for the "bag_capacity_special" field. + public const int BagCapacitySpecialFieldNumber = 2; + private readonly static int BagCapacitySpecialDefaultValue = 0; + + private int bagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacitySpecial { + get { if ((_hasBits0 & 2) != 0) { return bagCapacitySpecial_; } else { return BagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 2; + bagCapacitySpecial_ = value; + } + } + /// Gets whether the "bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacitySpecial { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacitySpecial() { + _hasBits0 &= ~2; + } + + /// Field number for the "bag_temp_expendable_capacity" field. + public const int BagTempExpendableCapacityFieldNumber = 3; + private readonly static int BagTempExpendableCapacityDefaultValue = 0; + + private int bagTempExpendableCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempExpendableCapacity { + get { if ((_hasBits0 & 4) != 0) { return bagTempExpendableCapacity_; } else { return BagTempExpendableCapacityDefaultValue; } } + set { + _hasBits0 |= 4; + bagTempExpendableCapacity_ = value; + } + } + /// Gets whether the "bag_temp_expendable_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempExpendableCapacity { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "bag_temp_expendable_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempExpendableCapacity() { + _hasBits0 &= ~4; + } + + /// Field number for the "bag_temp_tool_capacity" field. + public const int BagTempToolCapacityFieldNumber = 4; + private readonly static int BagTempToolCapacityDefaultValue = 0; + + private int bagTempToolCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempToolCapacity { + get { if ((_hasBits0 & 8) != 0) { return bagTempToolCapacity_; } else { return BagTempToolCapacityDefaultValue; } } + set { + _hasBits0 |= 8; + bagTempToolCapacity_ = value; + } + } + /// Gets whether the "bag_temp_tool_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempToolCapacity { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bag_temp_tool_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempToolCapacity() { + _hasBits0 &= ~8; + } + + /// Field number for the "bag_init_capacity" field. + public const int BagInitCapacityFieldNumber = 5; + private readonly static int BagInitCapacityDefaultValue = 0; + + private int bagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitCapacity { + get { if ((_hasBits0 & 16) != 0) { return bagInitCapacity_; } else { return BagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 16; + bagInitCapacity_ = value; + } + } + /// Gets whether the "bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitCapacity { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitCapacity() { + _hasBits0 &= ~16; + } + + /// Field number for the "quick_bag_capacity" field. + public const int QuickBagCapacityFieldNumber = 6; + private readonly static int QuickBagCapacityDefaultValue = 0; + + private int quickBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuickBagCapacity { + get { if ((_hasBits0 & 32) != 0) { return quickBagCapacity_; } else { return QuickBagCapacityDefaultValue; } } + set { + _hasBits0 |= 32; + quickBagCapacity_ = value; + } + } + /// Gets whether the "quick_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuickBagCapacity { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "quick_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuickBagCapacity() { + _hasBits0 &= ~32; + } + + /// Field number for the "cloth_bag_capacity" field. + public const int ClothBagCapacityFieldNumber = 7; + private readonly static int ClothBagCapacityDefaultValue = 0; + + private int clothBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacity { + get { if ((_hasBits0 & 64) != 0) { return clothBagCapacity_; } else { return ClothBagCapacityDefaultValue; } } + set { + _hasBits0 |= 64; + clothBagCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacity { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "cloth_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacity() { + _hasBits0 &= ~64; + } + + /// Field number for the "cloth_bag_init_capacity" field. + public const int ClothBagInitCapacityFieldNumber = 8; + private readonly static int ClothBagInitCapacityDefaultValue = 0; + + private int clothBagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagInitCapacity { + get { if ((_hasBits0 & 128) != 0) { return clothBagInitCapacity_; } else { return ClothBagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 128; + clothBagInitCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagInitCapacity { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "cloth_bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagInitCapacity() { + _hasBits0 &= ~128; + } + + /// Field number for the "cloth_bag_capacity_special" field. + public const int ClothBagCapacitySpecialFieldNumber = 9; + private readonly static int ClothBagCapacitySpecialDefaultValue = 0; + + private int clothBagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacitySpecial { + get { if ((_hasBits0 & 256) != 0) { return clothBagCapacitySpecial_; } else { return ClothBagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 256; + clothBagCapacitySpecial_ = value; + } + } + /// Gets whether the "cloth_bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacitySpecial { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "cloth_bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacitySpecial() { + _hasBits0 &= ~256; + } + + /// Field number for the "bag_init_items_drop_id" field. + public const int BagInitItemsDropIdFieldNumber = 10; + private readonly static int BagInitItemsDropIdDefaultValue = 0; + + private int bagInitItemsDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitItemsDropId { + get { if ((_hasBits0 & 512) != 0) { return bagInitItemsDropId_; } else { return BagInitItemsDropIdDefaultValue; } } + set { + _hasBits0 |= 512; + bagInitItemsDropId_ = value; + } + } + /// Gets whether the "bag_init_items_drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitItemsDropId { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "bag_init_items_drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitItemsDropId() { + _hasBits0 &= ~512; + } + + /// Field number for the "mail_box_capacity" field. + public const int MailBoxCapacityFieldNumber = 11; + private readonly static int MailBoxCapacityDefaultValue = 0; + + private int mailBoxCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MailBoxCapacity { + get { if ((_hasBits0 & 1024) != 0) { return mailBoxCapacity_; } else { return MailBoxCapacityDefaultValue; } } + set { + _hasBits0 |= 1024; + mailBoxCapacity_ = value; + } + } + /// Gets whether the "mail_box_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMailBoxCapacity { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "mail_box_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMailBoxCapacity() { + _hasBits0 &= ~1024; + } + + /// Field number for the "damage_param_c" field. + public const int DamageParamCFieldNumber = 12; + private readonly static float DamageParamCDefaultValue = 0F; + + private float damageParamC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamC { + get { if ((_hasBits0 & 2048) != 0) { return damageParamC_; } else { return DamageParamCDefaultValue; } } + set { + _hasBits0 |= 2048; + damageParamC_ = value; + } + } + /// Gets whether the "damage_param_c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamC { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "damage_param_c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamC() { + _hasBits0 &= ~2048; + } + + /// Field number for the "damage_param_e" field. + public const int DamageParamEFieldNumber = 13; + private readonly static float DamageParamEDefaultValue = 0F; + + private float damageParamE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamE { + get { if ((_hasBits0 & 4096) != 0) { return damageParamE_; } else { return DamageParamEDefaultValue; } } + set { + _hasBits0 |= 4096; + damageParamE_ = value; + } + } + /// Gets whether the "damage_param_e" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamE { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "damage_param_e" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamE() { + _hasBits0 &= ~4096; + } + + /// Field number for the "damage_param_f" field. + public const int DamageParamFFieldNumber = 14; + private readonly static float DamageParamFDefaultValue = 0F; + + private float damageParamF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamF { + get { if ((_hasBits0 & 8192) != 0) { return damageParamF_; } else { return DamageParamFDefaultValue; } } + set { + _hasBits0 |= 8192; + damageParamF_ = value; + } + } + /// Gets whether the "damage_param_f" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamF { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "damage_param_f" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamF() { + _hasBits0 &= ~8192; + } + + /// Field number for the "damage_param_d" field. + public const int DamageParamDFieldNumber = 15; + private readonly static float DamageParamDDefaultValue = 0F; + + private float damageParamD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamD { + get { if ((_hasBits0 & 16384) != 0) { return damageParamD_; } else { return DamageParamDDefaultValue; } } + set { + _hasBits0 |= 16384; + damageParamD_ = value; + } + } + /// Gets whether the "damage_param_d" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamD { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "damage_param_d" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamD() { + _hasBits0 &= ~16384; + } + + /// Field number for the "role_speed" field. + public const int RoleSpeedFieldNumber = 16; + private readonly static float RoleSpeedDefaultValue = 0F; + + private float roleSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RoleSpeed { + get { if ((_hasBits0 & 32768) != 0) { return roleSpeed_; } else { return RoleSpeedDefaultValue; } } + set { + _hasBits0 |= 32768; + roleSpeed_ = value; + } + } + /// Gets whether the "role_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleSpeed { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "role_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleSpeed() { + _hasBits0 &= ~32768; + } + + /// Field number for the "monster_speed" field. + public const int MonsterSpeedFieldNumber = 17; + private readonly static float MonsterSpeedDefaultValue = 0F; + + private float monsterSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float MonsterSpeed { + get { if ((_hasBits0 & 65536) != 0) { return monsterSpeed_; } else { return MonsterSpeedDefaultValue; } } + set { + _hasBits0 |= 65536; + monsterSpeed_ = value; + } + } + /// Gets whether the "monster_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMonsterSpeed { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "monster_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMonsterSpeed() { + _hasBits0 &= ~65536; + } + + /// Field number for the "init_energy" field. + public const int InitEnergyFieldNumber = 18; + private readonly static int InitEnergyDefaultValue = 0; + + private int initEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitEnergy { + get { if ((_hasBits0 & 131072) != 0) { return initEnergy_; } else { return InitEnergyDefaultValue; } } + set { + _hasBits0 |= 131072; + initEnergy_ = value; + } + } + /// Gets whether the "init_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitEnergy { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "init_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitEnergy() { + _hasBits0 &= ~131072; + } + + /// Field number for the "init_viality" field. + public const int InitVialityFieldNumber = 19; + private readonly static int InitVialityDefaultValue = 0; + + private int initViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitViality { + get { if ((_hasBits0 & 262144) != 0) { return initViality_; } else { return InitVialityDefaultValue; } } + set { + _hasBits0 |= 262144; + initViality_ = value; + } + } + /// Gets whether the "init_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitViality { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "init_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitViality() { + _hasBits0 &= ~262144; + } + + /// Field number for the "max_viality" field. + public const int MaxVialityFieldNumber = 20; + private readonly static int MaxVialityDefaultValue = 0; + + private int maxViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxViality { + get { if ((_hasBits0 & 524288) != 0) { return maxViality_; } else { return MaxVialityDefaultValue; } } + set { + _hasBits0 |= 524288; + maxViality_ = value; + } + } + /// Gets whether the "max_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxViality { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "max_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxViality() { + _hasBits0 &= ~524288; + } + + /// Field number for the "per_viality_recovery_time" field. + public const int PerVialityRecoveryTimeFieldNumber = 21; + private readonly static int PerVialityRecoveryTimeDefaultValue = 0; + + private int perVialityRecoveryTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerVialityRecoveryTime { + get { if ((_hasBits0 & 1048576) != 0) { return perVialityRecoveryTime_; } else { return PerVialityRecoveryTimeDefaultValue; } } + set { + _hasBits0 |= 1048576; + perVialityRecoveryTime_ = value; + } + } + /// Gets whether the "per_viality_recovery_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPerVialityRecoveryTime { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "per_viality_recovery_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPerVialityRecoveryTime() { + _hasBits0 &= ~1048576; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BagCapacity != other.BagCapacity) return false; + if (BagCapacitySpecial != other.BagCapacitySpecial) return false; + if (BagTempExpendableCapacity != other.BagTempExpendableCapacity) return false; + if (BagTempToolCapacity != other.BagTempToolCapacity) return false; + if (BagInitCapacity != other.BagInitCapacity) return false; + if (QuickBagCapacity != other.QuickBagCapacity) return false; + if (ClothBagCapacity != other.ClothBagCapacity) return false; + if (ClothBagInitCapacity != other.ClothBagInitCapacity) return false; + if (ClothBagCapacitySpecial != other.ClothBagCapacitySpecial) return false; + if (BagInitItemsDropId != other.BagInitItemsDropId) return false; + if (MailBoxCapacity != other.MailBoxCapacity) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamC, other.DamageParamC)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamE, other.DamageParamE)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamF, other.DamageParamF)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamD, other.DamageParamD)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RoleSpeed, other.RoleSpeed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MonsterSpeed, other.MonsterSpeed)) return false; + if (InitEnergy != other.InitEnergy) return false; + if (InitViality != other.InitViality) return false; + if (MaxViality != other.MaxViality) return false; + if (PerVialityRecoveryTime != other.PerVialityRecoveryTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBagCapacity) hash ^= BagCapacity.GetHashCode(); + if (HasBagCapacitySpecial) hash ^= BagCapacitySpecial.GetHashCode(); + if (HasBagTempExpendableCapacity) hash ^= BagTempExpendableCapacity.GetHashCode(); + if (HasBagTempToolCapacity) hash ^= BagTempToolCapacity.GetHashCode(); + if (HasBagInitCapacity) hash ^= BagInitCapacity.GetHashCode(); + if (HasQuickBagCapacity) hash ^= QuickBagCapacity.GetHashCode(); + if (HasClothBagCapacity) hash ^= ClothBagCapacity.GetHashCode(); + if (HasClothBagInitCapacity) hash ^= ClothBagInitCapacity.GetHashCode(); + if (HasClothBagCapacitySpecial) hash ^= ClothBagCapacitySpecial.GetHashCode(); + if (HasBagInitItemsDropId) hash ^= BagInitItemsDropId.GetHashCode(); + if (HasMailBoxCapacity) hash ^= MailBoxCapacity.GetHashCode(); + if (HasDamageParamC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamC); + if (HasDamageParamE) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamE); + if (HasDamageParamF) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamF); + if (HasDamageParamD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamD); + if (HasRoleSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RoleSpeed); + if (HasMonsterSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MonsterSpeed); + if (HasInitEnergy) hash ^= InitEnergy.GetHashCode(); + if (HasInitViality) hash ^= InitViality.GetHashCode(); + if (HasMaxViality) hash ^= MaxViality.GetHashCode(); + if (HasPerVialityRecoveryTime) hash ^= PerVialityRecoveryTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacity); + } + if (HasBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitCapacity); + } + if (HasQuickBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuickBagCapacity); + } + if (HasClothBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MailBoxCapacity); + } + if (HasDamageParamC) { + size += 1 + 4; + } + if (HasDamageParamE) { + size += 1 + 4; + } + if (HasDamageParamF) { + size += 1 + 4; + } + if (HasDamageParamD) { + size += 1 + 4; + } + if (HasRoleSpeed) { + size += 2 + 4; + } + if (HasMonsterSpeed) { + size += 2 + 4; + } + if (HasInitEnergy) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitEnergy); + } + if (HasInitViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitViality); + } + if (HasMaxViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxViality); + } + if (HasPerVialityRecoveryTime) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonGlobalConfig other) { + if (other == null) { + return; + } + if (other.HasBagCapacity) { + BagCapacity = other.BagCapacity; + } + if (other.HasBagCapacitySpecial) { + BagCapacitySpecial = other.BagCapacitySpecial; + } + if (other.HasBagTempExpendableCapacity) { + BagTempExpendableCapacity = other.BagTempExpendableCapacity; + } + if (other.HasBagTempToolCapacity) { + BagTempToolCapacity = other.BagTempToolCapacity; + } + if (other.HasBagInitCapacity) { + BagInitCapacity = other.BagInitCapacity; + } + if (other.HasQuickBagCapacity) { + QuickBagCapacity = other.QuickBagCapacity; + } + if (other.HasClothBagCapacity) { + ClothBagCapacity = other.ClothBagCapacity; + } + if (other.HasClothBagInitCapacity) { + ClothBagInitCapacity = other.ClothBagInitCapacity; + } + if (other.HasClothBagCapacitySpecial) { + ClothBagCapacitySpecial = other.ClothBagCapacitySpecial; + } + if (other.HasBagInitItemsDropId) { + BagInitItemsDropId = other.BagInitItemsDropId; + } + if (other.HasMailBoxCapacity) { + MailBoxCapacity = other.MailBoxCapacity; + } + if (other.HasDamageParamC) { + DamageParamC = other.DamageParamC; + } + if (other.HasDamageParamE) { + DamageParamE = other.DamageParamE; + } + if (other.HasDamageParamF) { + DamageParamF = other.DamageParamF; + } + if (other.HasDamageParamD) { + DamageParamD = other.DamageParamD; + } + if (other.HasRoleSpeed) { + RoleSpeed = other.RoleSpeed; + } + if (other.HasMonsterSpeed) { + MonsterSpeed = other.MonsterSpeed; + } + if (other.HasInitEnergy) { + InitEnergy = other.InitEnergy; + } + if (other.HasInitViality) { + InitViality = other.InitViality; + } + if (other.HasMaxViality) { + MaxViality = other.MaxViality; + } + if (other.HasPerVialityRecoveryTime) { + PerVialityRecoveryTime = other.PerVialityRecoveryTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem(ItemItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + majorType_ = other.majorType_; + minorType_ = other.minorType_; + maxPileNum_ = other.maxPileNum_; + quality_ = other.quality_; + icon_ = other.icon_; + iconBackgroud_ = other.iconBackgroud_; + iconMask_ = other.iconMask_; + desc_ = other.desc_; + showOrder_ = other.showOrder_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem Clone() { + return new ItemItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "major_type" field. + public const int MajorTypeFieldNumber = 3; + private readonly static global::Cfg.ItemEMajorType MajorTypeDefaultValue = global::Cfg.ItemEMajorType.Currency; + + private global::Cfg.ItemEMajorType majorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMajorType MajorType { + get { if ((_hasBits0 & 2) != 0) { return majorType_; } else { return MajorTypeDefaultValue; } } + set { + _hasBits0 |= 2; + majorType_ = value; + } + } + /// Gets whether the "major_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMajorType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "major_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMajorType() { + _hasBits0 &= ~2; + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 4; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 4) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 4; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~4; + } + + /// Field number for the "max_pile_num" field. + public const int MaxPileNumFieldNumber = 5; + private readonly static int MaxPileNumDefaultValue = 0; + + private int maxPileNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxPileNum { + get { if ((_hasBits0 & 8) != 0) { return maxPileNum_; } else { return MaxPileNumDefaultValue; } } + set { + _hasBits0 |= 8; + maxPileNum_ = value; + } + } + /// Gets whether the "max_pile_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxPileNum { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "max_pile_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxPileNum() { + _hasBits0 &= ~8; + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 6; + private readonly static global::Cfg.ItemEItemQuality QualityDefaultValue = global::Cfg.ItemEItemQuality.White; + + private global::Cfg.ItemEItemQuality quality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemQuality Quality { + get { if ((_hasBits0 & 16) != 0) { return quality_; } else { return QualityDefaultValue; } } + set { + _hasBits0 |= 16; + quality_ = value; + } + } + /// Gets whether the "quality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuality { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "quality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuality() { + _hasBits0 &= ~16; + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 7; + private readonly static string IconDefaultValue = ""; + + private string icon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_ ?? IconDefaultValue; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIcon { + get { return icon_ != null; } + } + /// Clears the value of the "icon" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIcon() { + icon_ = null; + } + + /// Field number for the "icon_backgroud" field. + public const int IconBackgroudFieldNumber = 8; + private readonly static string IconBackgroudDefaultValue = ""; + + private string iconBackgroud_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBackgroud { + get { return iconBackgroud_ ?? IconBackgroudDefaultValue; } + set { + iconBackgroud_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_backgroud" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconBackgroud { + get { return iconBackgroud_ != null; } + } + /// Clears the value of the "icon_backgroud" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconBackgroud() { + iconBackgroud_ = null; + } + + /// Field number for the "icon_mask" field. + public const int IconMaskFieldNumber = 9; + private readonly static string IconMaskDefaultValue = ""; + + private string iconMask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconMask { + get { return iconMask_ ?? IconMaskDefaultValue; } + set { + iconMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_mask" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconMask { + get { return iconMask_ != null; } + } + /// Clears the value of the "icon_mask" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconMask() { + iconMask_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 10; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "show_order" field. + public const int ShowOrderFieldNumber = 11; + private readonly static int ShowOrderDefaultValue = 0; + + private int showOrder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowOrder { + get { if ((_hasBits0 & 32) != 0) { return showOrder_; } else { return ShowOrderDefaultValue; } } + set { + _hasBits0 |= 32; + showOrder_ = value; + } + } + /// Gets whether the "show_order" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowOrder { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "show_order" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowOrder() { + _hasBits0 &= ~32; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MajorType != other.MajorType) return false; + if (MinorType != other.MinorType) return false; + if (MaxPileNum != other.MaxPileNum) return false; + if (Quality != other.Quality) return false; + if (Icon != other.Icon) return false; + if (IconBackgroud != other.IconBackgroud) return false; + if (IconMask != other.IconMask) return false; + if (Desc != other.Desc) return false; + if (ShowOrder != other.ShowOrder) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMajorType) hash ^= MajorType.GetHashCode(); + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasMaxPileNum) hash ^= MaxPileNum.GetHashCode(); + if (HasQuality) hash ^= Quality.GetHashCode(); + if (HasIcon) hash ^= Icon.GetHashCode(); + if (HasIconBackgroud) hash ^= IconBackgroud.GetHashCode(); + if (HasIconMask) hash ^= IconMask.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasShowOrder) hash ^= ShowOrder.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMajorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MajorType); + } + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasMaxPileNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxPileNum); + } + if (HasQuality) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } + if (HasIcon) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (HasIconBackgroud) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBackgroud); + } + if (HasIconMask) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconMask); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasShowOrder) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowOrder); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMajorType) { + MajorType = other.MajorType; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasMaxPileNum) { + MaxPileNum = other.MaxPileNum; + } + if (other.HasQuality) { + Quality = other.Quality; + } + if (other.HasIcon) { + Icon = other.Icon; + } + if (other.HasIconBackgroud) { + IconBackgroud = other.IconBackgroud; + } + if (other.HasIconMask) { + IconMask = other.IconMask; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasShowOrder) { + ShowOrder = other.ShowOrder; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo(L10nL10NDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo Clone() { + return new L10nL10NDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nL10NDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo(L10nPatchDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo Clone() { + return new L10nPatchDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nPatchDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTestTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag(TagTestTag other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag Clone() { + return new TagTestTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTestTag other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2(TestDemoType2 other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + x80_ = other.x80_; + x8_ = other.x8_; + x9_ = other.x9_; + x10_ = other.x10_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + s1_ = other.s1_; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k5_ = other.k5_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2 Clone() { + return new TestDemoType2(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "x8_0" field. + public const int X80FieldNumber = 8; + private readonly static int X80DefaultValue = 0; + + private int x80_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X80 { + get { if ((_hasBits0 & 128) != 0) { return x80_; } else { return X80DefaultValue; } } + set { + _hasBits0 |= 128; + x80_ = value; + } + } + /// Gets whether the "x8_0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX80 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "x8_0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX80() { + _hasBits0 &= ~128; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 9; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 256) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 256; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~256; + } + + /// Field number for the "x9" field. + public const int X9FieldNumber = 10; + private readonly static long X9DefaultValue = 0L; + + private long x9_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X9 { + get { if ((_hasBits0 & 512) != 0) { return x9_; } else { return X9DefaultValue; } } + set { + _hasBits0 |= 512; + x9_ = value; + } + } + /// Gets whether the "x9" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX9 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "x9" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX9() { + _hasBits0 &= ~512; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 11; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 12; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 13; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 1024) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 1024; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~1024; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 14; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 15; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 16; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 2048) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 2048; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~2048; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 18; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(146); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k5" field. + public const int K5FieldNumber = 19; + private static readonly pb::FieldCodec _repeated_k5_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField k5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K5 { + get { return k5_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 20; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 162); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 21; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(170, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 22; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(178, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (X80 != other.X80) return false; + if (X8 != other.X8) return false; + if (X9 != other.X9) return false; + if (X10 != other.X10) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (S1 != other.S1) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if(!k5_.Equals(other.k5_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasX80) hash ^= X80.GetHashCode(); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX9) hash ^= X9.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= k5_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(72); + output.WriteInt32(X8); + } + if (HasX9) { + output.WriteRawTag(80); + output.WriteInt64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (HasT1) { + output.WriteRawTag(128, 1); + output.WriteInt64(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k5_.WriteTo(output, _repeated_k5_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(72); + output.WriteInt32(X8); + } + if (HasX9) { + output.WriteRawTag(80); + output.WriteInt64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (HasT1) { + output.WriteRawTag(128, 1); + output.WriteInt64(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k5_.WriteTo(ref output, _repeated_k5_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasX80) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X80); + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX9) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X9); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasT1) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k5_.CalculateSize(_repeated_k5_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType2 other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasX80) { + X80 = other.X80; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX9) { + X9 = other.X9; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k5_.Add(other.k5_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 72: { + X8 = input.ReadInt32(); + break; + } + case 80: { + X9 = input.ReadInt64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 128: { + T1 = input.ReadInt64(); + break; + } + case 138: + case 136: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 146: + case 144: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 154: + case 152: { + k5_.AddEntriesFrom(input, _repeated_k5_codec); + break; + } + case 162: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 170: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 178: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 72: { + X8 = input.ReadInt32(); + break; + } + case 80: { + X9 = input.ReadInt64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 128: { + T1 = input.ReadInt64(); + break; + } + case 138: + case 136: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 146: + case 144: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 154: + case 152: { + k5_.AddEntriesFrom(ref input, _repeated_k5_codec); + break; + } + case 162: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 170: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 178: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1(TestDemoType1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1 Clone() { + return new TestDemoType1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoDynamic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoDynamic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic(TestDemoDynamic other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + DemoD2 = other.DemoD2.Clone(); + break; + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.RoleInfo: + RoleInfo = other.RoleInfo.Clone(); + break; + case ValueOneofCase.DemoD5: + DemoD5 = other.DemoD5.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic Clone() { + return new TestDemoDynamic(this); + } + + /// Field number for the "DemoD2" field. + public const int DemoD2FieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD2 DemoD2 { + get { return valueCase_ == ValueOneofCase.DemoD2 ? (global::Cfg.TestDemoD2) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD2; + } + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "RoleInfo" field. + public const int RoleInfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestLoginRoleInfo RoleInfo { + get { return valueCase_ == ValueOneofCase.RoleInfo ? (global::Cfg.TestLoginRoleInfo) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RoleInfo; + } + } + + /// Field number for the "DemoD5" field. + public const int DemoD5FieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD5 DemoD5 { + get { return valueCase_ == ValueOneofCase.DemoD5 ? (global::Cfg.TestDemoD5) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD5; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoD2 = 1, + DemoE1 = 2, + RoleInfo = 3, + DemoD5 = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoDynamic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoDynamic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoD2, other.DemoD2)) return false; + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(RoleInfo, other.RoleInfo)) return false; + if (!object.Equals(DemoD5, other.DemoD5)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoD2) hash ^= DemoD2.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.RoleInfo) hash ^= RoleInfo.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoD5) hash ^= DemoD5.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(34); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(34); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoD2) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoDynamic other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + if (DemoD2 == null) { + DemoD2 = new global::Cfg.TestDemoD2(); + } + DemoD2.MergeFrom(other.DemoD2); + break; + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.RoleInfo: + if (RoleInfo == null) { + RoleInfo = new global::Cfg.TestLoginRoleInfo(); + } + RoleInfo.MergeFrom(other.RoleInfo); + break; + case ValueOneofCase.DemoD5: + if (DemoD5 == null) { + DemoD5 = new global::Cfg.TestDemoD5(); + } + DemoD5.MergeFrom(other.DemoD5); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + case 34: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + case 34: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2(TestDemoD2 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2 Clone() { + return new TestDemoD2(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD2 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3(TestDemoD3 other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.RoleInfo: + RoleInfo = other.RoleInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3 Clone() { + return new TestDemoD3(this); + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "RoleInfo" field. + public const int RoleInfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestLoginRoleInfo RoleInfo { + get { return valueCase_ == ValueOneofCase.RoleInfo ? (global::Cfg.TestLoginRoleInfo) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RoleInfo; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoE1 = 2, + RoleInfo = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(RoleInfo, other.RoleInfo)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.RoleInfo) hash ^= RoleInfo.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD3 other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.RoleInfo: + if (RoleInfo == null) { + RoleInfo = new global::Cfg.TestLoginRoleInfo(); + } + RoleInfo.MergeFrom(other.RoleInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1(TestDemoE1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1 Clone() { + return new TestDemoE1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 3; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestLoginRoleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestLoginRoleInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo(TestLoginRoleInfo other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + roleId_ = other.roleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo Clone() { + return new TestLoginRoleInfo(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "role_id" field. + public const int RoleIdFieldNumber = 3; + private readonly static long RoleIdDefaultValue = 0L; + + private long roleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long RoleId { + get { if ((_hasBits0 & 4) != 0) { return roleId_; } else { return RoleIdDefaultValue; } } + set { + _hasBits0 |= 4; + roleId_ = value; + } + } + /// Gets whether the "role_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "role_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleId() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestLoginRoleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestLoginRoleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (RoleId != other.RoleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasRoleId) hash ^= RoleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasRoleId) { + output.WriteRawTag(24); + output.WriteInt64(RoleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasRoleId) { + output.WriteRawTag(24); + output.WriteInt64(RoleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasRoleId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestLoginRoleInfo other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasRoleId) { + RoleId = other.RoleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + RoleId = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + RoleId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD5 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD5()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5(TestDemoD5 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5 Clone() { + return new TestDemoD5(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Cfg.TestDateTimeRange time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDateTimeRange Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD5); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD5 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (!object.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD5 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + Time.MergeFrom(other.Time); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange(TestDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange Clone() { + return new TestDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static long StartTimeDefaultValue = 0L; + + private long startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static long EndTimeDefaultValue = 0L; + + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2(TestDemoE2 other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2 Clone() { + return new TestDemoE2(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static bool Y2DefaultValue = false; + + private bool y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE2 other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoSingletonType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoSingletonType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType(TestDemoSingletonType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + date_ = other.date_ != null ? other.date_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType Clone() { + return new TestDemoSingletonType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 3; + private global::Cfg.TestDemoDynamic date_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic Date { + get { return date_; } + set { + date_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoSingletonType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoSingletonType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(Date, other.Date)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (date_ != null) hash ^= Date.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoSingletonType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + Date.MergeFrom(other.Date); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList(TestNotIndexList other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList Clone() { + return new TestNotIndexList(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestNotIndexList other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[59]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList(TestMultiUnionIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList Clone() { + return new TestMultiUnionIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiUnionIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList(TestMultiIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList Clone() { + return new TestMultiIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord(TestMultiRowRecord other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + oneRows_ = other.oneRows_.Clone(); + multiRows1_ = other.multiRows1_.Clone(); + multiRows2_ = other.multiRows2_.Clone(); + multiRows4_ = other.multiRows4_.Clone(); + multiRows5_ = other.multiRows5_.Clone(); + multiRows6_ = other.multiRows6_.Clone(); + multiRows7_ = other.multiRows7_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord Clone() { + return new TestMultiRowRecord(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "one_rows" field. + public const int OneRowsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_oneRows_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField oneRows_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OneRows { + get { return oneRows_; } + } + + /// Field number for the "multi_rows1" field. + public const int MultiRows1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_multiRows1_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows1 { + get { return multiRows1_; } + } + + /// Field number for the "multi_rows2" field. + public const int MultiRows2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_multiRows2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows2 { + get { return multiRows2_; } + } + + /// Field number for the "multi_rows4" field. + public const int MultiRows4FieldNumber = 6; + private static readonly pbc::MapField.Codec _map_multiRows4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 50); + private readonly pbc::MapField multiRows4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows4 { + get { return multiRows4_; } + } + + /// Field number for the "multi_rows5" field. + public const int MultiRows5FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_multiRows5_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestMultiRowType3.Parser); + private readonly pbc::RepeatedField multiRows5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows5 { + get { return multiRows5_; } + } + + /// Field number for the "multi_rows6" field. + public const int MultiRows6FieldNumber = 8; + private static readonly pbc::MapField.Codec _map_multiRows6_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 66); + private readonly pbc::MapField multiRows6_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows6 { + get { return multiRows6_; } + } + + /// Field number for the "multi_rows7" field. + public const int MultiRows7FieldNumber = 9; + private static readonly pbc::MapField.Codec _map_multiRows7_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 74); + private readonly pbc::MapField multiRows7_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows7 { + get { return multiRows7_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!oneRows_.Equals(other.oneRows_)) return false; + if(!multiRows1_.Equals(other.multiRows1_)) return false; + if(!multiRows2_.Equals(other.multiRows2_)) return false; + if (!MultiRows4.Equals(other.MultiRows4)) return false; + if(!multiRows5_.Equals(other.multiRows5_)) return false; + if (!MultiRows6.Equals(other.MultiRows6)) return false; + if (!MultiRows7.Equals(other.MultiRows7)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + hash ^= oneRows_.GetHashCode(); + hash ^= multiRows1_.GetHashCode(); + hash ^= multiRows2_.GetHashCode(); + hash ^= MultiRows4.GetHashCode(); + hash ^= multiRows5_.GetHashCode(); + hash ^= MultiRows6.GetHashCode(); + hash ^= MultiRows7.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(output, _repeated_oneRows_codec); + multiRows1_.WriteTo(output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(output, _map_multiRows4_codec); + multiRows5_.WriteTo(output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(output, _map_multiRows6_codec); + multiRows7_.WriteTo(output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(ref output, _repeated_oneRows_codec); + multiRows1_.WriteTo(ref output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(ref output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(ref output, _map_multiRows4_codec); + multiRows5_.WriteTo(ref output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(ref output, _map_multiRows6_codec); + multiRows7_.WriteTo(ref output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += oneRows_.CalculateSize(_repeated_oneRows_codec); + size += multiRows1_.CalculateSize(_repeated_multiRows1_codec); + size += multiRows2_.CalculateSize(_repeated_multiRows2_codec); + size += multiRows4_.CalculateSize(_map_multiRows4_codec); + size += multiRows5_.CalculateSize(_repeated_multiRows5_codec); + size += multiRows6_.CalculateSize(_map_multiRows6_codec); + size += multiRows7_.CalculateSize(_map_multiRows7_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowRecord other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + oneRows_.Add(other.oneRows_); + multiRows1_.Add(other.multiRows1_); + multiRows2_.Add(other.multiRows2_); + multiRows4_.MergeFrom(other.multiRows4_); + multiRows5_.Add(other.multiRows5_); + multiRows6_.MergeFrom(other.multiRows6_); + multiRows7_.MergeFrom(other.multiRows7_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(input, _map_multiRows7_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(ref input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(ref input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(ref input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(ref input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(ref input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(ref input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(ref input, _map_multiRows7_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1(TestMultiRowType1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1 Clone() { + return new TestMultiRowType1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2(TestMultiRowType2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2 Clone() { + return new TestMultiRowType2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3(TestMultiRowType3 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3 Clone() { + return new TestMultiRowType3(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType3 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMultiColumn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMultiColumn()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn(TestTestMultiColumn other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_ != null ? other.b_.Clone() : null; + c_ = other.c_ != null ? other.c_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn Clone() { + return new TestTestMultiColumn(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 2; + private global::Cfg.TestFoo a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 3; + private global::Cfg.TestFoo b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo B { + get { return b_; } + set { + b_ = value; + } + } + + /// Field number for the "c" field. + public const int CFieldNumber = 4; + private global::Cfg.TestFoo c_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo C { + get { return c_; } + set { + c_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMultiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMultiColumn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(A, other.A)) return false; + if (!object.Equals(B, other.B)) return false; + if (!object.Equals(C, other.C)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + if (b_ != null) hash ^= B.GetHashCode(); + if (c_ != null) hash ^= C.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (a_ != null) { + output.WriteRawTag(18); + output.WriteMessage(A); + } + if (b_ != null) { + output.WriteRawTag(26); + output.WriteMessage(B); + } + if (c_ != null) { + output.WriteRawTag(34); + output.WriteMessage(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (a_ != null) { + output.WriteRawTag(18); + output.WriteMessage(A); + } + if (b_ != null) { + output.WriteRawTag(26); + output.WriteMessage(B); + } + if (c_ != null) { + output.WriteRawTag(34); + output.WriteMessage(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + if (b_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(B); + } + if (c_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(C); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMultiColumn other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + A.MergeFrom(other.A); + } + if (other.b_ != null) { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + B.MergeFrom(other.B); + } + if (other.c_ != null) { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + C.MergeFrom(other.C); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + input.ReadMessage(A); + break; + } + case 26: { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + input.ReadMessage(B); + break; + } + case 34: { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + input.ReadMessage(C); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + input.ReadMessage(A); + break; + } + case 26: { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + input.ReadMessage(B); + break; + } + case 34: { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + input.ReadMessage(C); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestFoo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestFoo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo(TestFoo other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo Clone() { + return new TestFoo(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestFoo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestFoo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestFoo other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle(TestMultiRowTitle other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x20_ = other.x20_ != null ? other.x20_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle Clone() { + return new TestMultiRowTitle(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2_0" field. + public const int X20FieldNumber = 4; + private global::Cfg.TestH2 x20_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 X20 { + get { return x20_; } + set { + x20_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(X1, other.X1)) return false; + if (!object.Equals(X20, other.X20)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + if (x20_ != null) hash ^= X20.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + if (x20_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X20); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowTitle other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + if (other.x20_ != null) { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + X20.MergeFrom(other.X20); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1(TestH1 other) : this() { + _hasBits0 = other._hasBits0; + y2_ = other.y2_ != null ? other.y2_.Clone() : null; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1 Clone() { + return new TestH1(this); + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 1; + private global::Cfg.TestH2 y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 Y2 { + get { return y2_; } + set { + y2_ = value; + } + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 2; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 1) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 1; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Y2, other.Y2)) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (y2_ != null) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (y2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH1 other) { + if (other == null) { + return; + } + if (other.y2_ != null) { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + Y2.MergeFrom(other.Y2); + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2(TestH2 other) : this() { + _hasBits0 = other._hasBits0; + z2_ = other.z2_; + z3_ = other.z3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2 Clone() { + return new TestH2(this); + } + + /// Field number for the "z2" field. + public const int Z2FieldNumber = 1; + private readonly static int Z2DefaultValue = 0; + + private int z2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z2 { + get { if ((_hasBits0 & 1) != 0) { return z2_; } else { return Z2DefaultValue; } } + set { + _hasBits0 |= 1; + z2_ = value; + } + } + /// Gets whether the "z2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ2 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "z2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ2() { + _hasBits0 &= ~1; + } + + /// Field number for the "z3" field. + public const int Z3FieldNumber = 2; + private readonly static int Z3DefaultValue = 0; + + private int z3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z3 { + get { if ((_hasBits0 & 2) != 0) { return z3_; } else { return Z3DefaultValue; } } + set { + _hasBits0 |= 2; + z3_ = value; + } + } + /// Gets whether the "z3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "z3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ3() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Z2 != other.Z2) return false; + if (Z3 != other.Z3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasZ2) hash ^= Z2.GetHashCode(); + if (HasZ3) hash ^= Z3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasZ2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z2); + } + if (HasZ3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH2 other) { + if (other == null) { + return; + } + if (other.HasZ2) { + Z2 = other.Z2; + } + if (other.HasZ3) { + Z3 = other.Z3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestNull()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull(TestTestNull other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_ != null ? other.x4_.Clone() : null; + s1_ = other.s1_; + s2_ = other.s2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull Clone() { + return new TestTestNull(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static global::Cfg.TestDemoEnum X2DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestDemoType1 x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private global::Cfg.TestDemoDynamic x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X4 { + get { return x4_; } + set { + x4_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 6; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 7; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (!object.Equals(X3, other.X3)) return false; + if (!object.Equals(X4, other.X4)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + if (x4_ != null) hash ^= X4.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + if (x4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X4); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestNull other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + X3.MergeFrom(other.X3); + } + if (other.x4_ != null) { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + X4.MergeFrom(other.X4); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoPrimitiveTypesTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoPrimitiveTypesTable()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[71]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable(TestDemoPrimitiveTypesTable other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable Clone() { + return new TestDemoPrimitiveTypesTable(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 4) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 4; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~4; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 8) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 8; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 8; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 9; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 10; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 11; + private global::Cfg.vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 12; + private global::Cfg.vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 13; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoPrimitiveTypesTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoPrimitiveTypesTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt64(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt64(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoPrimitiveTypesTable other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[72]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2(vector2 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2 Clone() { + return new vector2(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector2 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[73]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3(vector3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3 Clone() { + return new vector3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector4 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector4()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[74]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4(vector4 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + w_ = other.w_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4 Clone() { + return new vector4(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + /// Field number for the "w" field. + public const int WFieldNumber = 4; + private readonly static float WDefaultValue = 0F; + + private float w_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float W { + get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } + set { + _hasBits0 |= 8; + w_ = value; + } + } + /// Gets whether the "w" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasW { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "w" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearW() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector4); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector4 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (HasW) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector4 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.HasW) { + W = other.W; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[75]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString(TestTestString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s1_ = other.s1_; + cs1_ = other.cs1_ != null ? other.cs1_.Clone() : null; + cs2_ = other.cs2_ != null ? other.cs2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString Clone() { + return new TestTestString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 2; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "cs1" field. + public const int Cs1FieldNumber = 3; + private global::Cfg.TestCompactString cs1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs1 { + get { return cs1_; } + set { + cs1_ = value; + } + } + + /// Field number for the "cs2" field. + public const int Cs2FieldNumber = 4; + private global::Cfg.TestCompactString cs2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs2 { + get { return cs2_; } + set { + cs2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S1 != other.S1) return false; + if (!object.Equals(Cs1, other.Cs1)) return false; + if (!object.Equals(Cs2, other.Cs2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (cs1_ != null) hash ^= Cs1.GetHashCode(); + if (cs2_ != null) hash ^= Cs2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (cs1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs1); + } + if (cs2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.cs1_ != null) { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + Cs1.MergeFrom(other.Cs1); + } + if (other.cs2_ != null) { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + Cs2.MergeFrom(other.Cs2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompactString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompactString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString(TestCompactString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s2_ = other.s2_; + s3_ = other.s3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString Clone() { + return new TestCompactString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 2; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "s3" field. + public const int S3FieldNumber = 3; + private readonly static string S3DefaultValue = ""; + + private string s3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S3 { + get { return s3_ ?? S3DefaultValue; } + set { + s3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS3 { + get { return s3_ != null; } + } + /// Clears the value of the "s3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS3() { + s3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompactString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompactString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S2 != other.S2) return false; + if (S3 != other.S3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasS3) hash ^= S3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasS3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompactString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasS3) { + S3 = other.S3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup(TestDemoGroup other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_ != null ? other.x5_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup Clone() { + return new TestDemoGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 16) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 16; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~16; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private global::Cfg.TestInnerGroup x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestInnerGroup X5 { + get { return x5_; } + set { + x5_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (!object.Equals(X5, other.X5)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (x5_ != null) hash ^= X5.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (x5_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoGroup other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.x5_ != null) { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + X5.MergeFrom(other.X5); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestInnerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestInnerGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup(TestInnerGroup other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + y4_ = other.y4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup Clone() { + return new TestInnerGroup(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + /// Field number for the "y4" field. + public const int Y4FieldNumber = 4; + private readonly static int Y4DefaultValue = 0; + + private int y4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y4 { + get { if ((_hasBits0 & 8) != 0) { return y4_; } else { return Y4DefaultValue; } } + set { + _hasBits0 |= 8; + y4_ = value; + } + } + /// Gets whether the "y4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "y4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY4() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestInnerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestInnerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + if (Y4 != other.Y4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (HasY4) hash ^= Y4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (HasY4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestInnerGroup other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + if (other.HasY4) { + Y4 = other.Y4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal(TestTestGlobal other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal Clone() { + return new TestTestGlobal(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestGlobal other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef(TestTestBeRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef Clone() { + return new TestTestBeRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private readonly static int CountDefaultValue = 0; + + private int count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Count { + get { if ((_hasBits0 & 2) != 0) { return count_; } else { return CountDefaultValue; } } + set { + _hasBits0 |= 2; + count_ = value; + } + } + /// Gets whether the "count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestBeRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasCount) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef(TestTestRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x12_ = other.x12_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + a1_ = other.a1_.Clone(); + a2_ = other.a2_.Clone(); + b1_ = other.b1_.Clone(); + b2_ = other.b2_.Clone(); + c1_ = other.c1_.Clone(); + c2_ = other.c2_.Clone(); + d1_ = other.d1_.Clone(); + d2_ = other.d2_.Clone(); + e1_ = other.e1_; + e2_ = other.e2_; + e3_ = other.e3_; + f1_ = other.f1_; + f2_ = other.f2_; + f3_ = other.f3_; + s1_ = other.s1_ != null ? other.s1_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef Clone() { + return new TestTestRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x1_2" field. + public const int X12FieldNumber = 3; + private readonly static int X12DefaultValue = 0; + + private int x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X12 { + get { if ((_hasBits0 & 4) != 0) { return x12_; } else { return X12DefaultValue; } } + set { + _hasBits0 |= 4; + x12_ = value; + } + } + /// Gets whether the "x1_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX12 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x1_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX12() { + _hasBits0 &= ~4; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 8) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 8; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~8; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 16) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 16; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~16; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 6; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 32) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 32; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~32; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_a1_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField a1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A1 { + get { return a1_; } + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_a2_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField a2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A2 { + get { return a2_; } + } + + /// Field number for the "b1" field. + public const int B1FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_b1_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField b1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B1 { + get { return b1_; } + } + + /// Field number for the "b2" field. + public const int B2FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_b2_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField b2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B2 { + get { return b2_; } + } + + /// Field number for the "c1" field. + public const int C1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_c1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField c1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C1 { + get { return c1_; } + } + + /// Field number for the "c2" field. + public const int C2FieldNumber = 12; + private static readonly pb::FieldCodec _repeated_c2_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField c2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C2 { + get { return c2_; } + } + + /// Field number for the "d1" field. + public const int D1FieldNumber = 13; + private static readonly pbc::MapField.Codec _map_d1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 106); + private readonly pbc::MapField d1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D1 { + get { return d1_; } + } + + /// Field number for the "d2" field. + public const int D2FieldNumber = 14; + private static readonly pbc::MapField.Codec _map_d2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 114); + private readonly pbc::MapField d2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D2 { + get { return d2_; } + } + + /// Field number for the "e1" field. + public const int E1FieldNumber = 15; + private readonly static int E1DefaultValue = 0; + + private int e1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int E1 { + get { if ((_hasBits0 & 64) != 0) { return e1_; } else { return E1DefaultValue; } } + set { + _hasBits0 |= 64; + e1_ = value; + } + } + /// Gets whether the "e1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "e1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE1() { + _hasBits0 &= ~64; + } + + /// Field number for the "e2" field. + public const int E2FieldNumber = 16; + private readonly static long E2DefaultValue = 0L; + + private long e2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long E2 { + get { if ((_hasBits0 & 128) != 0) { return e2_; } else { return E2DefaultValue; } } + set { + _hasBits0 |= 128; + e2_ = value; + } + } + /// Gets whether the "e2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE2 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "e2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE2() { + _hasBits0 &= ~128; + } + + /// Field number for the "e3" field. + public const int E3FieldNumber = 17; + private readonly static string E3DefaultValue = ""; + + private string e3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string E3 { + get { return e3_ ?? E3DefaultValue; } + set { + e3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "e3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE3 { + get { return e3_ != null; } + } + /// Clears the value of the "e3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE3() { + e3_ = null; + } + + /// Field number for the "f1" field. + public const int F1FieldNumber = 18; + private readonly static int F1DefaultValue = 0; + + private int f1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int F1 { + get { if ((_hasBits0 & 256) != 0) { return f1_; } else { return F1DefaultValue; } } + set { + _hasBits0 |= 256; + f1_ = value; + } + } + /// Gets whether the "f1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF1 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "f1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF1() { + _hasBits0 &= ~256; + } + + /// Field number for the "f2" field. + public const int F2FieldNumber = 19; + private readonly static long F2DefaultValue = 0L; + + private long f2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long F2 { + get { if ((_hasBits0 & 512) != 0) { return f2_; } else { return F2DefaultValue; } } + set { + _hasBits0 |= 512; + f2_ = value; + } + } + /// Gets whether the "f2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF2 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "f2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF2() { + _hasBits0 &= ~512; + } + + /// Field number for the "f3" field. + public const int F3FieldNumber = 20; + private readonly static string F3DefaultValue = ""; + + private string f3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string F3 { + get { return f3_ ?? F3DefaultValue; } + set { + f3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "f3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF3 { + get { return f3_ != null; } + } + /// Clears the value of the "f3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF3() { + f3_ = null; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 21; + private global::Cfg.TestRefDynamicBase s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestRefDynamicBase S1 { + get { return s1_; } + set { + s1_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X12 != other.X12) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if(!a1_.Equals(other.a1_)) return false; + if(!a2_.Equals(other.a2_)) return false; + if(!b1_.Equals(other.b1_)) return false; + if(!b2_.Equals(other.b2_)) return false; + if(!c1_.Equals(other.c1_)) return false; + if(!c2_.Equals(other.c2_)) return false; + if (!D1.Equals(other.D1)) return false; + if (!D2.Equals(other.D2)) return false; + if (E1 != other.E1) return false; + if (E2 != other.E2) return false; + if (E3 != other.E3) return false; + if (F1 != other.F1) return false; + if (F2 != other.F2) return false; + if (F3 != other.F3) return false; + if (!object.Equals(S1, other.S1)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX12) hash ^= X12.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + hash ^= a1_.GetHashCode(); + hash ^= a2_.GetHashCode(); + hash ^= b1_.GetHashCode(); + hash ^= b2_.GetHashCode(); + hash ^= c1_.GetHashCode(); + hash ^= c2_.GetHashCode(); + hash ^= D1.GetHashCode(); + hash ^= D2.GetHashCode(); + if (HasE1) hash ^= E1.GetHashCode(); + if (HasE2) hash ^= E2.GetHashCode(); + if (HasE3) hash ^= E3.GetHashCode(); + if (HasF1) hash ^= F1.GetHashCode(); + if (HasF2) hash ^= F2.GetHashCode(); + if (HasF3) hash ^= F3.GetHashCode(); + if (s1_ != null) hash ^= S1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(48); + output.WriteInt32(X4); + } + a1_.WriteTo(output, _repeated_a1_codec); + a2_.WriteTo(output, _repeated_a2_codec); + b1_.WriteTo(output, _repeated_b1_codec); + b2_.WriteTo(output, _repeated_b2_codec); + c1_.WriteTo(output, _repeated_c1_codec); + c2_.WriteTo(output, _repeated_c2_codec); + d1_.WriteTo(output, _map_d1_codec); + d2_.WriteTo(output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(120); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(128, 1); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(138, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(144, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(152, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(162, 1); + output.WriteString(F3); + } + if (s1_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(S1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(48); + output.WriteInt32(X4); + } + a1_.WriteTo(ref output, _repeated_a1_codec); + a2_.WriteTo(ref output, _repeated_a2_codec); + b1_.WriteTo(ref output, _repeated_b1_codec); + b2_.WriteTo(ref output, _repeated_b2_codec); + c1_.WriteTo(ref output, _repeated_c1_codec); + c2_.WriteTo(ref output, _repeated_c2_codec); + d1_.WriteTo(ref output, _map_d1_codec); + d2_.WriteTo(ref output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(120); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(128, 1); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(138, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(144, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(152, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(162, 1); + output.WriteString(F3); + } + if (s1_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(S1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX12) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X12); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + size += a1_.CalculateSize(_repeated_a1_codec); + size += a2_.CalculateSize(_repeated_a2_codec); + size += b1_.CalculateSize(_repeated_b1_codec); + size += b2_.CalculateSize(_repeated_b2_codec); + size += c1_.CalculateSize(_repeated_c1_codec); + size += c2_.CalculateSize(_repeated_c2_codec); + size += d1_.CalculateSize(_map_d1_codec); + size += d2_.CalculateSize(_map_d2_codec); + if (HasE1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(E1); + } + if (HasE2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(E2); + } + if (HasE3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(E3); + } + if (HasF1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(F1); + } + if (HasF2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(F2); + } + if (HasF3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(F3); + } + if (s1_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(S1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX12) { + X12 = other.X12; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + a1_.Add(other.a1_); + a2_.Add(other.a2_); + b1_.Add(other.b1_); + b2_.Add(other.b2_); + c1_.Add(other.c1_); + c2_.Add(other.c2_); + d1_.MergeFrom(other.d1_); + d2_.MergeFrom(other.d2_); + if (other.HasE1) { + E1 = other.E1; + } + if (other.HasE2) { + E2 = other.E2; + } + if (other.HasE3) { + E3 = other.E3; + } + if (other.HasF1) { + F1 = other.F1; + } + if (other.HasF2) { + F2 = other.F2; + } + if (other.HasF3) { + F3 = other.F3; + } + if (other.s1_ != null) { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + S1.MergeFrom(other.S1); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 48: { + X4 = input.ReadInt32(); + break; + } + case 58: + case 56: { + a1_.AddEntriesFrom(input, _repeated_a1_codec); + break; + } + case 66: + case 64: { + a2_.AddEntriesFrom(input, _repeated_a2_codec); + break; + } + case 74: + case 72: { + b1_.AddEntriesFrom(input, _repeated_b1_codec); + break; + } + case 82: + case 80: { + b2_.AddEntriesFrom(input, _repeated_b2_codec); + break; + } + case 90: + case 88: { + c1_.AddEntriesFrom(input, _repeated_c1_codec); + break; + } + case 98: + case 96: { + c2_.AddEntriesFrom(input, _repeated_c2_codec); + break; + } + case 106: { + d1_.AddEntriesFrom(input, _map_d1_codec); + break; + } + case 114: { + d2_.AddEntriesFrom(input, _map_d2_codec); + break; + } + case 120: { + E1 = input.ReadInt32(); + break; + } + case 128: { + E2 = input.ReadInt64(); + break; + } + case 138: { + E3 = input.ReadString(); + break; + } + case 144: { + F1 = input.ReadInt32(); + break; + } + case 152: { + F2 = input.ReadInt64(); + break; + } + case 162: { + F3 = input.ReadString(); + break; + } + case 170: { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + input.ReadMessage(S1); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 48: { + X4 = input.ReadInt32(); + break; + } + case 58: + case 56: { + a1_.AddEntriesFrom(ref input, _repeated_a1_codec); + break; + } + case 66: + case 64: { + a2_.AddEntriesFrom(ref input, _repeated_a2_codec); + break; + } + case 74: + case 72: { + b1_.AddEntriesFrom(ref input, _repeated_b1_codec); + break; + } + case 82: + case 80: { + b2_.AddEntriesFrom(ref input, _repeated_b2_codec); + break; + } + case 90: + case 88: { + c1_.AddEntriesFrom(ref input, _repeated_c1_codec); + break; + } + case 98: + case 96: { + c2_.AddEntriesFrom(ref input, _repeated_c2_codec); + break; + } + case 106: { + d1_.AddEntriesFrom(ref input, _map_d1_codec); + break; + } + case 114: { + d2_.AddEntriesFrom(ref input, _map_d2_codec); + break; + } + case 120: { + E1 = input.ReadInt32(); + break; + } + case 128: { + E2 = input.ReadInt64(); + break; + } + case 138: { + E3 = input.ReadString(); + break; + } + case 144: { + F1 = input.ReadInt32(); + break; + } + case 152: { + F2 = input.ReadInt64(); + break; + } + case 162: { + F3 = input.ReadString(); + break; + } + case 170: { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + input.ReadMessage(S1); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestRefDynamicBase : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestRefDynamicBase()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[82]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase(TestRefDynamicBase other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.RefBean: + RefBean = other.RefBean.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase Clone() { + return new TestRefDynamicBase(this); + } + + /// Field number for the "RefBean" field. + public const int RefBeanFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestRefBean RefBean { + get { return valueCase_ == ValueOneofCase.RefBean ? (global::Cfg.TestRefBean) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RefBean; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + RefBean = 1, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestRefDynamicBase); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestRefDynamicBase other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RefBean, other.RefBean)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.RefBean) hash ^= RefBean.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.RefBean) { + output.WriteRawTag(10); + output.WriteMessage(RefBean); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.RefBean) { + output.WriteRawTag(10); + output.WriteMessage(RefBean); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.RefBean) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RefBean); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestRefDynamicBase other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.RefBean: + if (RefBean == null) { + RefBean = new global::Cfg.TestRefBean(); + } + RefBean.MergeFrom(other.RefBean); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestRefBean subBuilder = new global::Cfg.TestRefBean(); + if (valueCase_ == ValueOneofCase.RefBean) { + subBuilder.MergeFrom(RefBean); + } + input.ReadMessage(subBuilder); + RefBean = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestRefBean subBuilder = new global::Cfg.TestRefBean(); + if (valueCase_ == ValueOneofCase.RefBean) { + subBuilder.MergeFrom(RefBean); + } + input.ReadMessage(subBuilder); + RefBean = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestRefBean : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestRefBean()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[83]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean(TestRefBean other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + arr_ = other.arr_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean Clone() { + return new TestRefBean(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "arr" field. + public const int ArrFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_arr_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField arr_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Arr { + get { return arr_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestRefBean); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestRefBean other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if(!arr_.Equals(other.arr_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + hash ^= arr_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + arr_.WriteTo(output, _repeated_arr_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + arr_.WriteTo(ref output, _repeated_arr_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += arr_.CalculateSize(_repeated_arr_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestRefBean other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + arr_.Add(other.arr_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 18: + case 16: { + arr_.AddEntriesFrom(input, _repeated_arr_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 18: + case 16: { + arr_.AddEntriesFrom(ref input, _repeated_arr_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSize()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[84]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize(TestTestSize other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize Clone() { + return new TestTestSize(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSize other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.MergeFrom(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[85]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet(TestTestSet other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x0_ = other.x0_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet Clone() { + return new TestTestSet(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x0" field. + public const int X0FieldNumber = 2; + private readonly static string X0DefaultValue = ""; + + private string x0_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X0 { + get { return x0_ ?? X0DefaultValue; } + set { + x0_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX0 { + get { return x0_ != null; } + } + /// Clears the value of the "x0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX0() { + x0_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt64(34); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForEnum(48, x => (int) x, x => (global::Cfg.TestDemoEnum) x); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X0 != other.X0) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX0) hash ^= X0.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX0) { + output.WriteRawTag(18); + output.WriteString(X0); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX0) { + output.WriteRawTag(18); + output.WriteString(X0); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X0); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSet other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX0) { + X0 = other.X0; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X0 = input.ReadString(); + break; + } + case 26: + case 24: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 34: + case 32: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 42: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 50: + case 48: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X0 = input.ReadString(); + break; + } + case 26: + case 24: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 34: + case 32: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 42: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 50: + case 48: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDetectEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDetectEncoding()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[86]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding(TestDetectEncoding other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding Clone() { + return new TestDetectEncoding(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDetectEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDetectEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDetectEncoding other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestItemBase : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestItemBase()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[87]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase(TestItemBase other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Item: + Item = other.Item.Clone(); + break; + case ValueOneofCase.Equipment: + Equipment = other.Equipment.Clone(); + break; + case ValueOneofCase.Decorator: + Decorator = other.Decorator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase Clone() { + return new TestItemBase(this); + } + + /// Field number for the "Item" field. + public const int ItemFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestItem Item { + get { return valueCase_ == ValueOneofCase.Item ? (global::Cfg.TestItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Item; + } + } + + /// Field number for the "Equipment" field. + public const int EquipmentFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestEquipment Equipment { + get { return valueCase_ == ValueOneofCase.Equipment ? (global::Cfg.TestEquipment) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Equipment; + } + } + + /// Field number for the "Decorator" field. + public const int DecoratorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDecorator Decorator { + get { return valueCase_ == ValueOneofCase.Decorator ? (global::Cfg.TestDecorator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Decorator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Item = 1, + Equipment = 2, + Decorator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestItemBase); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestItemBase other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(Equipment, other.Equipment)) return false; + if (!object.Equals(Decorator, other.Decorator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Item) hash ^= Item.GetHashCode(); + if (valueCase_ == ValueOneofCase.Equipment) hash ^= Equipment.GetHashCode(); + if (valueCase_ == ValueOneofCase.Decorator) hash ^= Decorator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + output.WriteRawTag(18); + output.WriteMessage(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + output.WriteRawTag(26); + output.WriteMessage(Decorator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + output.WriteRawTag(18); + output.WriteMessage(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + output.WriteRawTag(26); + output.WriteMessage(Decorator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Decorator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestItemBase other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Item: + if (Item == null) { + Item = new global::Cfg.TestItem(); + } + Item.MergeFrom(other.Item); + break; + case ValueOneofCase.Equipment: + if (Equipment == null) { + Equipment = new global::Cfg.TestEquipment(); + } + Equipment.MergeFrom(other.Equipment); + break; + case ValueOneofCase.Decorator: + if (Decorator == null) { + Decorator = new global::Cfg.TestDecorator(); + } + Decorator.MergeFrom(other.Decorator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestItem subBuilder = new global::Cfg.TestItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 18: { + global::Cfg.TestEquipment subBuilder = new global::Cfg.TestEquipment(); + if (valueCase_ == ValueOneofCase.Equipment) { + subBuilder.MergeFrom(Equipment); + } + input.ReadMessage(subBuilder); + Equipment = subBuilder; + break; + } + case 26: { + global::Cfg.TestDecorator subBuilder = new global::Cfg.TestDecorator(); + if (valueCase_ == ValueOneofCase.Decorator) { + subBuilder.MergeFrom(Decorator); + } + input.ReadMessage(subBuilder); + Decorator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestItem subBuilder = new global::Cfg.TestItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 18: { + global::Cfg.TestEquipment subBuilder = new global::Cfg.TestEquipment(); + if (valueCase_ == ValueOneofCase.Equipment) { + subBuilder.MergeFrom(Equipment); + } + input.ReadMessage(subBuilder); + Equipment = subBuilder; + break; + } + case 26: { + global::Cfg.TestDecorator subBuilder = new global::Cfg.TestDecorator(); + if (valueCase_ == ValueOneofCase.Decorator) { + subBuilder.MergeFrom(Decorator); + } + input.ReadMessage(subBuilder); + Decorator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[88]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem(TestItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + num_ = other.num_; + price_ = other.price_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem Clone() { + return new TestItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 5; + private readonly static int PriceDefaultValue = 0; + + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { if ((_hasBits0 & 4) != 0) { return price_; } else { return PriceDefaultValue; } } + set { + _hasBits0 |= 4; + price_ = value; + } + } + /// Gets whether the "price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPrice { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPrice() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Num != other.Num) return false; + if (Price != other.Price) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasPrice) hash ^= Price.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasPrice) { + output.WriteRawTag(40); + output.WriteInt32(Price); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasPrice) { + output.WriteRawTag(40); + output.WriteInt32(Price); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasPrice) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasPrice) { + Price = other.Price; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 40: { + Price = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 40: { + Price = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestEquipment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestEquipment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[89]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment(TestEquipment other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + attr_ = other.attr_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment Clone() { + return new TestEquipment(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "attr" field. + public const int AttrFieldNumber = 4; + private readonly static global::Cfg.TestDemoEnum AttrDefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum attr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum Attr { + get { if ((_hasBits0 & 2) != 0) { return attr_; } else { return AttrDefaultValue; } } + set { + _hasBits0 |= 2; + attr_ = value; + } + } + /// Gets whether the "attr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttr { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttr() { + _hasBits0 &= ~2; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 5; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 4) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 4; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestEquipment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestEquipment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Attr != other.Attr) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasAttr) hash ^= Attr.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasAttr) { + output.WriteRawTag(32); + output.WriteEnum((int) Attr); + } + if (HasValue) { + output.WriteRawTag(40); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasAttr) { + output.WriteRawTag(32); + output.WriteEnum((int) Attr); + } + if (HasValue) { + output.WriteRawTag(40); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasAttr) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Attr); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestEquipment other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasAttr) { + Attr = other.Attr; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Attr = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 40: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Attr = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 40: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDecorator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[90]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator(TestDecorator other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + duration_ = other.duration_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator Clone() { + return new TestDecorator(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 4; + private readonly static int DurationDefaultValue = 0; + + private int duration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Duration { + get { if ((_hasBits0 & 2) != 0) { return duration_; } else { return DurationDefaultValue; } } + set { + _hasBits0 |= 2; + duration_ = value; + } + } + /// Gets whether the "duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDuration { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDuration() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Duration != other.Duration) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasDuration) hash ^= Duration.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasDuration) { + output.WriteRawTag(32); + output.WriteInt32(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasDuration) { + output.WriteRawTag(32); + output.WriteInt32(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasDuration) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Duration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDecorator other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasDuration) { + Duration = other.Duration; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Duration = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Duration = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestIndex()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[91]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex(TestTestIndex other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + eles_ = other.eles_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex Clone() { + return new TestTestIndex(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "eles" field. + public const int ElesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_eles_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestDemoType1.Parser); + private readonly pbc::RepeatedField eles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Eles { + get { return eles_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!eles_.Equals(other.eles_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= eles_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(ref output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += eles_.CalculateSize(_repeated_eles_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestIndex other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + eles_.Add(other.eles_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(input, _repeated_eles_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(ref input, _repeated_eles_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[92]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap(TestTestMap other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap Clone() { + return new TestTestMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pbc::MapField.Codec _map_x1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 18); + private readonly pbc::MapField x1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pbc::MapField.Codec _map_x2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt32(16, 0), 26); + private readonly pbc::MapField x2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pbc::MapField.Codec _map_x3_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 34); + private readonly pbc::MapField x3_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!X1.Equals(other.X1)) return false; + if (!X2.Equals(other.X2)) return false; + if (!X3.Equals(other.X3)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= X1.GetHashCode(); + hash ^= X2.GetHashCode(); + hash ^= X3.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _map_x1_codec); + x2_.WriteTo(output, _map_x2_codec); + x3_.WriteTo(output, _map_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _map_x1_codec); + x2_.WriteTo(ref output, _map_x2_codec); + x3_.WriteTo(ref output, _map_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_map_x1_codec); + size += x2_.CalculateSize(_map_x2_codec); + size += x3_.CalculateSize(_map_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMap other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.MergeFrom(other.x1_); + x2_.MergeFrom(other.x2_); + x3_.MergeFrom(other.x3_); + x4_.MergeFrom(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(ref input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(ref input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[93]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson(TestExcelFromJson other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + s1_ = other.s1_; + s2_ = other.s2_; + t1_ = other.t1_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson Clone() { + return new TestExcelFromJson(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 5; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 6; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 7; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 16) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 16; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~16; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 8; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 9; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 10; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(114, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (T1 != other.T1) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (HasT1) { + output.WriteRawTag(56); + output.WriteInt64(T1); + } + if (x12_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(72); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X14); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (HasT1) { + output.WriteRawTag(56); + output.WriteInt64(T1); + } + if (x12_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(72); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X14); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJson other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasT1) { + T1 = other.T1; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + k1_.Add(other.k1_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 56: { + T1 = input.ReadInt64(); + break; + } + case 66: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 72: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 82: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 114: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 56: { + T1 = input.ReadInt64(); + break; + } + case 66: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 72: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 82: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 114: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[94]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1(TestCompositeJsonTable1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1 Clone() { + return new TestCompositeJsonTable1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static string XDefaultValue = ""; + + private string x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X { + get { return x_ ?? XDefaultValue; } + set { + x_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return x_ != null; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + x_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[95]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2(TestCompositeJsonTable2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2 Clone() { + return new TestCompositeJsonTable2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[96]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3(TestCompositeJsonTable3 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3 Clone() { + return new TestCompositeJsonTable3(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable3 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[97]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow(TestExcelFromJsonMultiRow other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow Clone() { + return new TestExcelFromJsonMultiRow(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestTestRow.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[98]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow(TestTestRow other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow Clone() { + return new TestTestRow(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static bool YDefaultValue = false; + + private bool y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static string ZDefaultValue = ""; + + private string z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Z { + get { return z_ ?? ZDefaultValue; } + set { + z_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return z_ != null; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + z_ = null; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private global::Cfg.TestTest3 a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestTest3 A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_b_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField b_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B { + get { return b_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + if (!object.Equals(A, other.A)) return false; + if(!b_.Equals(other.b_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + hash ^= b_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(ref output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 1; + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Z); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + size += b_.CalculateSize(_repeated_b_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRow other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + A.MergeFrom(other.A); + } + b_.Add(other.b_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(input, _repeated_b_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(ref input, _repeated_b_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTest3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTest3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[99]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3(TestTest3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3 Clone() { + return new TestTest3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTest3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTest3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTest3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestScriptableObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestScriptableObject()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[100]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject(TestTestScriptableObject other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + desc_ = other.desc_; + rate_ = other.rate_; + num_ = other.num_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject Clone() { + return new TestTestScriptableObject(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 3; + private readonly static float RateDefaultValue = 0F; + + private float rate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Rate { + get { if ((_hasBits0 & 2) != 0) { return rate_; } else { return RateDefaultValue; } } + set { + _hasBits0 |= 2; + rate_ = value; + } + } + /// Gets whether the "rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRate { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRate() { + _hasBits0 &= ~2; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 5; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 6; + private global::Cfg.vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 7; + private global::Cfg.vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestScriptableObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestScriptableObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rate, other.Rate)) return false; + if (Num != other.Num) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rate); + if (HasNum) hash ^= Num.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasRate) { + output.WriteRawTag(29); + output.WriteFloat(Rate); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (v2_ != null) { + output.WriteRawTag(42); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(50); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasRate) { + output.WriteRawTag(29); + output.WriteFloat(Rate); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (v2_ != null) { + output.WriteRawTag(42); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(50); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasRate) { + size += 1 + 4; + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestScriptableObject other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasRate) { + Rate = other.Rate; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + V4.MergeFrom(other.V4); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 29: { + Rate = input.ReadFloat(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 50: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 58: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 29: { + Rate = input.ReadFloat(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 50: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 58: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMapper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMapper()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[101]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper(TestTestMapper other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + audioType_ = other.audioType_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper Clone() { + return new TestTestMapper(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "audio_type" field. + public const int AudioTypeFieldNumber = 2; + private readonly static global::Cfg.AudioType AudioTypeDefaultValue = global::Cfg.AudioType.Unknown; + + private global::Cfg.AudioType audioType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AudioType AudioType { + get { if ((_hasBits0 & 2) != 0) { return audioType_; } else { return AudioTypeDefaultValue; } } + set { + _hasBits0 |= 2; + audioType_ = value; + } + } + /// Gets whether the "audio_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "audio_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioType() { + _hasBits0 &= ~2; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 3; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMapper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMapper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AudioType != other.AudioType) return false; + if (!object.Equals(V2, other.V2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAudioType) hash ^= AudioType.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (v2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(V2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (v2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(V2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAudioType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AudioType); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMapper other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAudioType) { + AudioType = other.AudioType; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.AudioType) input.ReadEnum(); + break; + } + case 26: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.AudioType) input.ReadEnum(); + break; + } + case 26: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + } + } + } + #endif + + } + + public sealed partial class DefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[102]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2(DefineFromExcel2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x132_ = other.x132_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + x15_ = other.x15_ != null ? other.x15_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k10_ = other.k10_.Clone(); + k11_ = other.k11_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2 Clone() { + return new DefineFromExcel2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x13_2" field. + public const int X132FieldNumber = 8; + private readonly static global::Cfg.TestDemoFlag X132DefaultValue = global::Cfg.TestDemoFlag.A; + + private global::Cfg.TestDemoFlag x132_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoFlag X132 { + get { if ((_hasBits0 & 64) != 0) { return x132_; } else { return X132DefaultValue; } } + set { + _hasBits0 |= 64; + x132_ = value; + } + } + /// Gets whether the "x13_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX132 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x13_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX132() { + _hasBits0 &= ~64; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 9; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "x15" field. + public const int X15FieldNumber = 10; + private global::Cfg.TestShape x15_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestShape X15 { + get { return x15_; } + set { + x15_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 11; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 12; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 15; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 122); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 16; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(130, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k10" field. + public const int K10FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k10_codec + = pb::FieldCodec.ForMessage(138, global::Cfg.vector3.Parser); + private readonly pbc::RepeatedField k10_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K10 { + get { return k10_; } + } + + /// Field number for the "k11" field. + public const int K11FieldNumber = 18; + private static readonly pb::FieldCodec _repeated_k11_codec + = pb::FieldCodec.ForMessage(146, global::Cfg.vector4.Parser); + private readonly pbc::RepeatedField k11_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K11 { + get { return k11_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (X132 != other.X132) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(X15, other.X15)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k10_.Equals(other.k10_)) return false; + if(!k11_.Equals(other.k11_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (HasX132) hash ^= X132.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (x15_ != null) hash ^= X15.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k10_.GetHashCode(); + hash ^= k11_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (HasX132) { + output.WriteRawTag(64); + output.WriteEnum((int) X132); + } + if (x14_ != null) { + output.WriteRawTag(74); + output.WriteMessage(X14); + } + if (x15_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X15); + } + if (v2_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(96); + output.WriteInt64(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k10_.WriteTo(output, _repeated_k10_codec); + k11_.WriteTo(output, _repeated_k11_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (HasX132) { + output.WriteRawTag(64); + output.WriteEnum((int) X132); + } + if (x14_ != null) { + output.WriteRawTag(74); + output.WriteMessage(X14); + } + if (x15_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X15); + } + if (v2_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(96); + output.WriteInt64(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k10_.WriteTo(ref output, _repeated_k10_codec); + k11_.WriteTo(ref output, _repeated_k11_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (HasX132) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X132); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (x15_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X15); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k10_.CalculateSize(_repeated_k10_codec); + size += k11_.CalculateSize(_repeated_k11_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DefineFromExcel2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.HasX132) { + X132 = other.X132; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.x15_ != null) { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + X15.MergeFrom(other.X15); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k10_.Add(other.k10_); + k11_.Add(other.k11_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 64: { + X132 = (global::Cfg.TestDemoFlag) input.ReadEnum(); + break; + } + case 74: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 82: { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + input.ReadMessage(X15); + break; + } + case 90: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 96: { + T1 = input.ReadInt64(); + break; + } + case 106: + case 104: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 114: + case 112: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 138: { + k10_.AddEntriesFrom(input, _repeated_k10_codec); + break; + } + case 146: { + k11_.AddEntriesFrom(input, _repeated_k11_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 64: { + X132 = (global::Cfg.TestDemoFlag) input.ReadEnum(); + break; + } + case 74: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 82: { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + input.ReadMessage(X15); + break; + } + case 90: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 96: { + T1 = input.ReadInt64(); + break; + } + case 106: + case 104: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 114: + case 112: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 138: { + k10_.AddEntriesFrom(ref input, _repeated_k10_codec); + break; + } + case 146: { + k11_.AddEntriesFrom(ref input, _repeated_k11_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestShape : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestShape()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[103]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape(TestShape other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Circle: + Circle = other.Circle.Clone(); + break; + case ValueOneofCase.Rectangle: + Rectangle = other.Rectangle.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape Clone() { + return new TestShape(this); + } + + /// Field number for the "Circle" field. + public const int CircleFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCircle Circle { + get { return valueCase_ == ValueOneofCase.Circle ? (global::Cfg.TestCircle) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Circle; + } + } + + /// Field number for the "Rectangle" field. + public const int RectangleFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Test2Rectangle Rectangle { + get { return valueCase_ == ValueOneofCase.Rectangle ? (global::Cfg.Test2Rectangle) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Rectangle; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Circle = 1, + Rectangle = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestShape); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestShape other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Circle, other.Circle)) return false; + if (!object.Equals(Rectangle, other.Rectangle)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Circle) hash ^= Circle.GetHashCode(); + if (valueCase_ == ValueOneofCase.Rectangle) hash ^= Rectangle.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Circle) { + output.WriteRawTag(10); + output.WriteMessage(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + output.WriteRawTag(18); + output.WriteMessage(Rectangle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Circle) { + output.WriteRawTag(10); + output.WriteMessage(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + output.WriteRawTag(18); + output.WriteMessage(Rectangle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Circle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rectangle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestShape other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Circle: + if (Circle == null) { + Circle = new global::Cfg.TestCircle(); + } + Circle.MergeFrom(other.Circle); + break; + case ValueOneofCase.Rectangle: + if (Rectangle == null) { + Rectangle = new global::Cfg.Test2Rectangle(); + } + Rectangle.MergeFrom(other.Rectangle); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestCircle subBuilder = new global::Cfg.TestCircle(); + if (valueCase_ == ValueOneofCase.Circle) { + subBuilder.MergeFrom(Circle); + } + input.ReadMessage(subBuilder); + Circle = subBuilder; + break; + } + case 18: { + global::Cfg.Test2Rectangle subBuilder = new global::Cfg.Test2Rectangle(); + if (valueCase_ == ValueOneofCase.Rectangle) { + subBuilder.MergeFrom(Rectangle); + } + input.ReadMessage(subBuilder); + Rectangle = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestCircle subBuilder = new global::Cfg.TestCircle(); + if (valueCase_ == ValueOneofCase.Circle) { + subBuilder.MergeFrom(Circle); + } + input.ReadMessage(subBuilder); + Circle = subBuilder; + break; + } + case 18: { + global::Cfg.Test2Rectangle subBuilder = new global::Cfg.Test2Rectangle(); + if (valueCase_ == ValueOneofCase.Rectangle) { + subBuilder.MergeFrom(Rectangle); + } + input.ReadMessage(subBuilder); + Rectangle = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCircle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCircle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[104]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle(TestCircle other) : this() { + _hasBits0 = other._hasBits0; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle Clone() { + return new TestCircle(this); + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 1; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 1) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 1; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCircle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCircle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasRadius) { + output.WriteRawTag(13); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasRadius) { + output.WriteRawTag(13); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCircle other) { + if (other == null) { + return; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Test2Rectangle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Test2Rectangle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[105]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle(Test2Rectangle other) : this() { + _hasBits0 = other._hasBits0; + width_ = other.width_; + height_ = other.height_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle Clone() { + return new Test2Rectangle(this); + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private readonly static float WidthDefaultValue = 0F; + + private float width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Width { + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 1; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private readonly static float HeightDefaultValue = 0F; + + private float height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Height { + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 2; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Test2Rectangle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Test2Rectangle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); + if (HasHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasWidth) { + output.WriteRawTag(13); + output.WriteFloat(Width); + } + if (HasHeight) { + output.WriteRawTag(21); + output.WriteFloat(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasWidth) { + output.WriteRawTag(13); + output.WriteFloat(Width); + } + if (HasHeight) { + output.WriteRawTag(21); + output.WriteFloat(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasWidth) { + size += 1 + 4; + } + if (HasHeight) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Test2Rectangle other) { + if (other == null) { + return; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Width = input.ReadFloat(); + break; + } + case 21: { + Height = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Width = input.ReadFloat(); + break; + } + case 21: { + Height = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[106]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard(AiTbBlackboard other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard Clone() { + return new AiTbBlackboard(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBlackboard.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBlackboard other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[107]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree(AiTbBehaviorTree other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree Clone() { + return new AiTbBehaviorTree(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBehaviorTree.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBehaviorTree other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonTbGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonTbGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[108]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig(CommonTbGlobalConfig other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig Clone() { + return new CommonTbGlobalConfig(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CommonGlobalConfig.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonTbGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonTbGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonTbGlobalConfig other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[109]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem(ItemTbItem other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem Clone() { + return new ItemTbItem(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItem.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItem other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[110]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo(L10nTbL10NDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo Clone() { + return new L10nTbL10NDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nL10NDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbL10NDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[111]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo(L10nTbPatchDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo Clone() { + return new L10nTbPatchDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nPatchDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbPatchDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTbTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTbTestTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[112]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag(TagTbTestTag other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag Clone() { + return new TagTbTestTag(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TagTestTag.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTbTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTbTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTbTestTag other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbFullTypes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbFullTypes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[113]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes(TestTbFullTypes other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes Clone() { + return new TestTbFullTypes(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbFullTypes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbFullTypes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbFullTypes other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbSingleton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbSingleton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[114]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton(TestTbSingleton other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton Clone() { + return new TestTbSingleton(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoSingletonType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbSingleton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbSingleton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbSingleton other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[115]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList(TestTbNotIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList Clone() { + return new TestTbNotIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestNotIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbNotIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[116]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList(TestTbMultiUnionIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList Clone() { + return new TestTbMultiUnionIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiUnionIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiUnionIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[117]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList(TestTbMultiIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList Clone() { + return new TestTbMultiIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDataFromMisc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDataFromMisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[118]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc(TestTbDataFromMisc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc Clone() { + return new TestTbDataFromMisc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDataFromMisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDataFromMisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDataFromMisc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[119]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord(TestTbMultiRowRecord other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord Clone() { + return new TestTbMultiRowRecord(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowRecord.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowRecord other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMultiColumn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMultiColumn()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[120]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn(TestTbTestMultiColumn other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn Clone() { + return new TestTbTestMultiColumn(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMultiColumn.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMultiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMultiColumn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMultiColumn other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[121]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle(TestTbMultiRowTitle other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle Clone() { + return new TestTbMultiRowTitle(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowTitle.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowTitle other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestNull()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[122]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull(TestTbTestNull other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull Clone() { + return new TestTbTestNull(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestNull.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestNull other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoPrimitive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoPrimitive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[123]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive(TestTbDemoPrimitive other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive Clone() { + return new TestTbDemoPrimitive(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoPrimitiveTypesTable.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoPrimitive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoPrimitive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoPrimitive other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[124]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString(TestTbTestString other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString Clone() { + return new TestTbTestString(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestString.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestString other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[125]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup(TestTbDemoGroup other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup Clone() { + return new TestTbDemoGroup(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_C : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_C()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[126]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C(TestTbDemoGroup_C other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C Clone() { + return new TestTbDemoGroup_C(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_C); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_C other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_C other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_S : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_S()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[127]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S(TestTbDemoGroup_S other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S Clone() { + return new TestTbDemoGroup_S(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_S); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_S other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_S other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_E : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_E()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[128]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E(TestTbDemoGroup_E other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E Clone() { + return new TestTbDemoGroup_E(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_E); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_E other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_E other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[129]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal(TestTbTestGlobal other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal Clone() { + return new TestTbTestGlobal(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestGlobal.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestGlobal other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[130]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef(TestTbTestBeRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef Clone() { + return new TestTbTestBeRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[131]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2(TestTbTestBeRef2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2 Clone() { + return new TestTbTestBeRef2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[132]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef(TestTbTestRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef Clone() { + return new TestTbTestRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSize()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[133]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize(TestTbTestSize other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize Clone() { + return new TestTbTestSize(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSize.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSize other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[134]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet(TestTbTestSet other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet Clone() { + return new TestTbTestSet(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSet.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSet other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDetectCsvEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDetectCsvEncoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[135]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding(TestTbDetectCsvEncoding other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding Clone() { + return new TestTbDetectCsvEncoding(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDetectEncoding.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDetectCsvEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDetectCsvEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDetectCsvEncoding other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbItem2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbItem2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[136]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2(TestTbItem2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2 Clone() { + return new TestTbItem2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestItemBase.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbItem2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbItem2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbItem2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestIndex()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[137]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex(TestTbTestIndex other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex Clone() { + return new TestTbTestIndex(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestIndex.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestIndex other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[138]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap(TestTbTestMap other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap Clone() { + return new TestTbTestMap(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMap.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMap other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[139]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson(TestTbExcelFromJson other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson Clone() { + return new TestTbExcelFromJson(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJson.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJson other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[140]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1(TestTbCompositeJsonTable1 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1 Clone() { + return new TestTbCompositeJsonTable1(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable1 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[141]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2(TestTbCompositeJsonTable2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2 Clone() { + return new TestTbCompositeJsonTable2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[142]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3(TestTbCompositeJsonTable3 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3 Clone() { + return new TestTbCompositeJsonTable3(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable3.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable3 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[143]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow(TestTbExcelFromJsonMultiRow other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow Clone() { + return new TestTbExcelFromJsonMultiRow(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJsonMultiRow.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestScriptableObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestScriptableObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[144]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject(TestTbTestScriptableObject other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject Clone() { + return new TestTbTestScriptableObject(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestScriptableObject.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestScriptableObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestScriptableObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestScriptableObject other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMapper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMapper()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[145]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper(TestTbTestMapper other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper Clone() { + return new TestTbTestMapper(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMapper.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMapper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMapper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMapper other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[146]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2(TestTbDefineFromExcel2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2 Clone() { + return new TestTbDefineFromExcel2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.DefineFromExcel2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/luban_examples/Projects/Protobuf2_json/Program.cs b/luban_examples/Projects/Protobuf2_json/Program.cs new file mode 100644 index 00000000..cdce2ef1 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/Program.cs @@ -0,0 +1,76 @@ + +using Google.Protobuf; + +class Program +{ + + + public static void Main(string[] args) + { + // See https://aka.ms/new-console-template for more information + Console.WriteLine("Hello, World!"); + + + + TestFullTypes(); + + TestNullable(); + } + + private static void TestNullable() + { + var file = "../../../pb_datas/test_tbtestnull.bytes"; + + var bytes = File.ReadAllBytes(file); + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + var tbTestNull = Cfg.TestTbTestNull.Parser.ParseFrom(File.OpenRead(file)); + + Console.WriteLine(tbTestNull); + } + + private static void TestFullTypes() + { + //var bytes = File.ReadAllBytes("../../../pb_datas/item_tbitem.pb"); + + //Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + //var tbItem = Cfg.ItemTbItem.Parser.ParseFrom(File.OpenRead("../../../pb_datas/item_tbitem.pb")); + + //Console.WriteLine(tbItem); + + var file = "../../../pb_datas/test_tbfulltypes.bytes"; + + var bytes = File.ReadAllBytes(file); + + //var ft = new Cfg.TestDemoType2(); + //ft.X4 = 1; + //ft.X14 = new Cfg.TestDemoDynamic(); + //ft.X14.DemoD2 = new Cfg.TestDemoD2() + //{ + // X1 = 1, + // X2 = 2 + //}; + + + //var mm = new MemoryStream(); + //var cos = new CodedOutputStream(mm); + + //ft.WriteTo(cos); + //cos.Flush(); + + //mm.Seek(0, SeekOrigin.Begin); + + //var b2 = new byte[mm.Length]; + //mm.Read(b2, 0, (int)mm.Length); + + //Console.WriteLine(string.Join(',', b2.Select(b => b.ToString()))); + + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + var tbFullTypes = Cfg.TestTbFullTypes.Parser.ParseFrom(File.OpenRead(file)); + + Console.WriteLine(tbFullTypes); + } +} + + + + diff --git a/luban_examples/Projects/Protobuf2_json/ProtobufProj.csproj b/luban_examples/Projects/Protobuf2_json/ProtobufProj.csproj new file mode 100644 index 00000000..4573a52e --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/ProtobufProj.csproj @@ -0,0 +1,26 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Protobuf2_json/ProtobufProj.sln b/luban_examples/Projects/Protobuf2_json/ProtobufProj.sln new file mode 100644 index 00000000..84987b91 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/ProtobufProj.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31912.275 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProtobufProj", "ProtobufProj.csproj", "{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CED486A9-FCBD-414B-B917-4EF26E03EC5B} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Protobuf2_json/bytes/ai_tbbehaviortree.bytes b/luban_examples/Projects/Protobuf2_json/bytes/ai_tbbehaviortree.bytes new file mode 100644 index 00000000..bef52bac Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/ai_tbbehaviortree.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/ai_tbblackboard.bytes b/luban_examples/Projects/Protobuf2_json/bytes/ai_tbblackboard.bytes new file mode 100644 index 00000000..8d0d220f Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/ai_tbblackboard.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/common_tbglobalconfig.bytes b/luban_examples/Projects/Protobuf2_json/bytes/common_tbglobalconfig.bytes new file mode 100644 index 00000000..d9a8dcd6 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/common_tbglobalconfig.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/item_tbitem.bytes b/luban_examples/Projects/Protobuf2_json/bytes/item_tbitem.bytes new file mode 100644 index 00000000..46c9e0d3 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/item_tbitem.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/l10n_tbl10ndemo.bytes b/luban_examples/Projects/Protobuf2_json/bytes/l10n_tbl10ndemo.bytes new file mode 100644 index 00000000..86753292 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/l10n_tbl10ndemo.bytes @@ -0,0 +1,17 @@ + + + /apple + + /apple + + /apple + +/apple + +/apple + +/apple + +/apple + +/apple \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/l10n_tbpatchdemo.bytes b/luban_examples/Projects/Protobuf2_json/bytes/l10n_tbpatchdemo.bytes new file mode 100644 index 00000000..e0b6d08d --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/l10n_tbpatchdemo.bytes @@ -0,0 +1,9 @@ + +  +  +  + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/tag_tbtesttag.bytes b/luban_examples/Projects/Protobuf2_json/bytes/tag_tbtesttag.bytes new file mode 100644 index 00000000..02bdc449 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/tag_tbtesttag.bytes @@ -0,0 +1,29 @@ + + 导出 +any + test + +d导出 + +导出 + +导出 + +导出 + +导出 + + 测试 + + +测试 + any + + 导出 + + 导出 +hany +ftest + export +any + test \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable1.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable1.bytes new file mode 100644 index 00000000..2f999cff --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable1.bytes @@ -0,0 +1,5 @@ + +aaa1 +xx2 +  aaa11 + xx12 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable2.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable2.bytes new file mode 100644 index 00000000..6f292300 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable2.bytes @@ -0,0 +1,3 @@ + +d + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable3.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable3.bytes new file mode 100644 index 00000000..804d07a9 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbcompositejsontable3.bytes @@ -0,0 +1,2 @@ + +o \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdatafrommisc.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdatafrommisc.bytes new file mode 100644 index 00000000..c132b925 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdatafrommisc.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdefinefromexcel2.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdefinefromexcel2.bytes new file mode 100644 index 00000000..2ed61719 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdefinefromexcel2.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_c.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_c.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_c.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_e.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_e.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_e.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_s.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_s.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemogroup_s.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemoprimitive.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemoprimitive.bytes new file mode 100644 index 00000000..e610a780 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdemoprimitive.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbdetectcsvencoding.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdetectcsvencoding.bytes new file mode 100644 index 00000000..d05a79d4 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbdetectcsvencoding.bytes @@ -0,0 +1,13 @@ + + 测试编码 +还果园国要 +工枯加盟仍 +  测试编码 + 还果园国要 + 工枯加盟仍 + 测试编码 + 还果园国要 +!工枯加盟仍 + 测试编码 +还果园国要 +工枯加盟仍 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbexcelfromjson.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbexcelfromjson.bytes new file mode 100644 index 00000000..591f5d2d Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbexcelfromjson.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbexcelfromjsonmultirow.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbexcelfromjsonmultirow.bytes new file mode 100644 index 00000000..a9d1f030 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbexcelfromjsonmultirow.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbfulltypes.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbfulltypes.bytes new file mode 100644 index 00000000..5aeccdb0 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbfulltypes.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbitem2.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbitem2.bytes new file mode 100644 index 00000000..aff5d4a2 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbitem2.bytes @@ -0,0 +1,13 @@ + +ݸ 道具1道具1 d( +ݸ 道具2道具1 ( + 装备1装备1 (d +" 装备2 +装备2好 ( + 耳环耳环 d + 耳环耳环 d +!ݸ 道具10道具10 d( + +" 装备20 装备好 ( + + 帽子帽子 d \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultiindexlist.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultiindexlist.bytes new file mode 100644 index 00000000..c782a27a --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultiindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab3 *desc3 +ab4 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultirowrecord.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultirowrecord.bytes new file mode 100644 index 00000000..101bcaa7 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultirowrecord.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultirowtitle.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultirowtitle.bytes new file mode 100644 index 00000000..03763341 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultirowtitle.bytes @@ -0,0 +1,5 @@ + +;xxx +**22:  :: ! +C yyy +  "*  * 2  2 :pq:z{: \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultiunionindexlist.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultiunionindexlist.bytes new file mode 100644 index 00000000..1adf52ec --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbmultiunionindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab1 *desc3 +ab1 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbnotindexlist.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbnotindexlist.bytes new file mode 100644 index 00000000..bc5b3e49 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbnotindexlist.bytes @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbsingleton.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbsingleton.bytes new file mode 100644 index 00000000..ca1f4c25 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbsingleton.bytes @@ -0,0 +1,2 @@ + +#key_name" ھ \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestberef.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestberef.bytes new file mode 100644 index 00000000..dbf12607 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestberef.bytes @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + +  + + + diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestberef2.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestberef2.bytes new file mode 100644 index 00000000..57b70d64 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestberef2.bytes @@ -0,0 +1,20 @@ + +  + +  + +  + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestglobal.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestglobal.bytes new file mode 100644 index 00000000..fc7f5643 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestglobal.bytes @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestindex.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestindex.bytes new file mode 100644 index 00000000..0d4bd1d6 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestindex.bytes @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmap.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmap.bytes new file mode 100644 index 00000000..6127220b --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmap.bytes @@ -0,0 +1,4 @@ + +8" +aaa" +bbb** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmapper.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmapper.bytes new file mode 100644 index 00000000..dd2f03cf Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmapper.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmulticolumn.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmulticolumn.bytes new file mode 100644 index 00000000..00b03f37 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestmulticolumn.bytes @@ -0,0 +1,3 @@ + +" ! +" ! \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestnull.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestnull.bytes new file mode 100644 index 00000000..6fd0826b Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestnull.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestref.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestref.bytes new file mode 100644 index 00000000..403c6a53 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestref.bytes @@ -0,0 +1,7 @@ + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZ b jjrrx ab5 ab5 + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestscriptableobject.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestscriptableobject.bytes new file mode 100644 index 00000000..cd397970 Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestscriptableobject.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestset.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestset.bytes new file mode 100644 index 00000000..fdb89222 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestset.bytes @@ -0,0 +1,3 @@ + +ab"*ab*cd00 +cd"*ab*cd0 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestsize.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestsize.bytes new file mode 100644 index 00000000..cbeca07e --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/bytes/test_tbtestsize.bytes @@ -0,0 +1,2 @@ + +"** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/bytes/test_tbteststring.bytes b/luban_examples/Projects/Protobuf2_json/bytes/test_tbteststring.bytes new file mode 100644 index 00000000..392ce38e Binary files /dev/null and b/luban_examples/Projects/Protobuf2_json/bytes/test_tbteststring.bytes differ diff --git a/luban_examples/Projects/Protobuf2_json/gen_pb_code.bat b/luban_examples/Projects/Protobuf2_json/gen_pb_code.bat new file mode 100644 index 00000000..81a5baec --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/gen_pb_code.bat @@ -0,0 +1,5 @@ + + +protoc\bin\protoc -I=pb_schemas --csharp_out=Gen pb_schemas\schema.proto + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/gen_pb_schema_data.bat b/luban_examples/Projects/Protobuf2_json/gen_pb_schema_data.bat new file mode 100644 index 00000000..d4e2c525 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/gen_pb_schema_data.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c protobuf2 ^ + -d protobuf-json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=pb_schemas ^ + -x outputDataDir=pb_datas ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/ai_tbbehaviortree.json b/luban_examples/Projects/Protobuf2_json/pb_datas/ai_tbbehaviortree.json new file mode 100644 index 00000000..baeee017 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/ai_tbbehaviortree.json @@ -0,0 +1,49 @@ +{ + "data_list": [ + { + "id": 10002, + "name": "random move", + "desc": "demo behaviour tree haha", + "blackboard_id": "demo", + "root": { + "@type": "AiSequence", + "id": 1, + "node_name": "test", + "decorators": [ + { + "@type": "AiUeLoop", + "id": 3, + "node_name": "", + "flow_abort_mode": 2, + "num_loops": 0, + "infinite_loop": true, + "infinite_loop_timeout_time": -1 + } + ], + "services": [], + "children": [ + { + "@type": "AiUeWait", + "id": 30, + "node_name": "", + "decorators": [], + "services": [], + "ignore_restart_self": false, + "wait_time": 1, + "random_deviation": 0.5 + }, + { + "@type": "AiMoveToRandomLocation", + "id": 75, + "node_name": "", + "decorators": [], + "services": [], + "ignore_restart_self": false, + "origin_position_key": "x5", + "radius": 30 + } + ] + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/ai_tbblackboard.json b/luban_examples/Projects/Protobuf2_json/pb_datas/ai_tbblackboard.json new file mode 100644 index 00000000..33c17a9c --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/ai_tbblackboard.json @@ -0,0 +1,130 @@ +{ + "data_list": [ + { + "name": "attack_or_patrol", + "desc": "demo hahaha", + "parent_name": "", + "keys": [ + { + "name": "OriginPosition", + "desc": "", + "is_static": false, + "type": 5, + "type_class_name": "" + }, + { + "name": "TargetActor", + "desc": "x2 haha", + "is_static": false, + "type": 10, + "type_class_name": "" + }, + { + "name": "AcceptableRadius", + "desc": "x3 haha", + "is_static": false, + "type": 3, + "type_class_name": "" + }, + { + "name": "CurChooseSkillId", + "desc": "x4 haha", + "is_static": false, + "type": 2, + "type_class_name": "" + } + ] + }, + { + "name": "demo", + "desc": "demo hahaha", + "parent_name": "demo_parent", + "keys": [ + { + "name": "x1", + "desc": "x1 haha", + "is_static": false, + "type": 1, + "type_class_name": "" + }, + { + "name": "x2", + "desc": "x2 haha", + "is_static": false, + "type": 2, + "type_class_name": "" + }, + { + "name": "x3", + "desc": "x3 haha", + "is_static": false, + "type": 3, + "type_class_name": "" + }, + { + "name": "x4", + "desc": "x4 haha", + "is_static": false, + "type": 4, + "type_class_name": "" + }, + { + "name": "x5", + "desc": "x5 haha", + "is_static": false, + "type": 5, + "type_class_name": "" + }, + { + "name": "x6", + "desc": "x6 haha", + "is_static": false, + "type": 6, + "type_class_name": "" + }, + { + "name": "x7", + "desc": "x7 haha", + "is_static": false, + "type": 7, + "type_class_name": "" + }, + { + "name": "x8", + "desc": "x8 haha", + "is_static": false, + "type": 8, + "type_class_name": "" + }, + { + "name": "x9", + "desc": "x9 haha", + "is_static": false, + "type": 9, + "type_class_name": "ABC" + }, + { + "name": "x10", + "desc": "x10 haha", + "is_static": false, + "type": 10, + "type_class_name": "OBJECT" + } + ] + }, + { + "name": "demo_parent", + "desc": "demo parent", + "parent_name": "", + "keys": [ + { + "name": "v1", + "desc": "v1 haha", + "is_static": false, + "type": 1, + "type_class_name": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/common_tbglobalconfig.json b/luban_examples/Projects/Protobuf2_json/pb_datas/common_tbglobalconfig.json new file mode 100644 index 00000000..172b1532 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/common_tbglobalconfig.json @@ -0,0 +1,18 @@ +{ + "data_list": [ + { + "x1": 1101001101, + "x2": 150, + "x3": 500, + "x4": 50, + "x5": 10, + "x6": 4, + "x7": [ + 1, + 2, + 3, + 4 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/item_tbitem.json b/luban_examples/Projects/Protobuf2_json/pb_datas/item_tbitem.json new file mode 100644 index 00000000..c51fed8b --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/item_tbitem.json @@ -0,0 +1,164 @@ +{ + "data_list": [ + { + "id": 1, + "name": "钻石", + "minor_type": 101, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "rmb兑换的主要货币", + "show_order": 1 + }, + { + "id": 2, + "name": "金币", + "minor_type": 102, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "主要的高级流通代币", + "show_order": 2 + }, + { + "id": 3, + "name": "银币", + "minor_type": 103, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "主要的流通代币", + "show_order": 3 + }, + { + "id": 4, + "name": "经验", + "minor_type": 104, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "人物升级需要的经验", + "show_order": 4 + }, + { + "id": 5, + "name": "能量点", + "minor_type": 105, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "人物变身需要的能量点", + "show_order": 5 + }, + { + "id": 1020100001, + "name": "初始发型", + "minor_type": 210, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始发型", + "show_order": 6 + }, + { + "id": 1020200001, + "name": "初始外套", + "minor_type": 220, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始外套", + "show_order": 7 + }, + { + "id": 1020300001, + "name": "初始上衣", + "minor_type": 230, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始上衣", + "show_order": 8 + }, + { + "id": 1020400001, + "name": "初始裤子", + "minor_type": 242, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始下装", + "show_order": 9 + }, + { + "id": 1020500001, + "name": "初始袜子", + "minor_type": 250, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始袜子", + "show_order": 10 + }, + { + "id": 1020600001, + "name": "初始鞋子", + "minor_type": 260, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始鞋子", + "show_order": 11 + }, + { + "id": 1020700001, + "name": "初始发饰", + "minor_type": 271, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始发饰", + "show_order": 12 + }, + { + "id": 1022490000, + "name": "测试数据-包子", + "minor_type": 403, + "quality": 2, + "icon_backgroud": "", + "icon_mask": "", + "desc": "包子", + "show_order": 29 + }, + { + "id": 1022490001, + "name": "测试数据-铲子", + "minor_type": 424, + "quality": 3, + "icon_backgroud": "", + "icon_mask": "", + "desc": "一把铲子", + "show_order": 30 + }, + { + "id": 1021490001, + "name": "测试数据-不要动", + "minor_type": 278, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始手持物", + "show_order": 19 + }, + { + "id": 1022490002, + "name": "测试数据-不要动", + "minor_type": 290, + "quality": 2, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始套装", + "show_order": 26 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/l10n_tbl10ndemo.json b/luban_examples/Projects/Protobuf2_json/pb_datas/l10n_tbl10ndemo.json new file mode 100644 index 00000000..4fda391e --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/l10n_tbl10ndemo.json @@ -0,0 +1,36 @@ +{ + "data_list": [ + { + "id": 11, + "text": "/apple" + }, + { + "id": 12, + "text": "/apple" + }, + { + "id": 13, + "text": "/apple" + }, + { + "id": 14, + "text": "/apple" + }, + { + "id": 15, + "text": "/apple" + }, + { + "id": 16, + "text": "/apple" + }, + { + "id": 17, + "text": "/apple" + }, + { + "id": 18, + "text": "/apple" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/l10n_tbpatchdemo.json b/luban_examples/Projects/Protobuf2_json/pb_datas/l10n_tbpatchdemo.json new file mode 100644 index 00000000..211d1031 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/l10n_tbpatchdemo.json @@ -0,0 +1,36 @@ +{ + "data_list": [ + { + "id": 11, + "value": 1 + }, + { + "id": 12, + "value": 2 + }, + { + "id": 13, + "value": 3 + }, + { + "id": 14, + "value": 4 + }, + { + "id": 15, + "value": 5 + }, + { + "id": 16, + "value": 6 + }, + { + "id": 17, + "value": 7 + }, + { + "id": 18, + "value": 8 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/tag_tbtesttag.json b/luban_examples/Projects/Protobuf2_json/pb_datas/tag_tbtesttag.json new file mode 100644 index 00000000..20956995 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/tag_tbtesttag.json @@ -0,0 +1,76 @@ +{ + "data_list": [ + { + "id": 2001, + "value": "导出" + }, + { + "id": 2004, + "value": "any" + }, + { + "id": 2003, + "value": "test" + }, + { + "id": 100, + "value": "导出" + }, + { + "id": 1, + "value": "导出" + }, + { + "id": 2, + "value": "导出" + }, + { + "id": 6, + "value": "导出" + }, + { + "id": 7, + "value": "导出" + }, + { + "id": 9, + "value": "测试" + }, + { + "id": 10, + "value": "测试" + }, + { + "id": 11, + "value": "any" + }, + { + "id": 12, + "value": "导出" + }, + { + "id": 13, + "value": "导出" + }, + { + "id": 104, + "value": "any" + }, + { + "id": 102, + "value": "test" + }, + { + "id": 3001, + "value": "export" + }, + { + "id": 3004, + "value": "any" + }, + { + "id": 3003, + "value": "test" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable1.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable1.json new file mode 100644 index 00000000..a95f35c6 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable1.json @@ -0,0 +1,20 @@ +{ + "data_list": [ + { + "id": 1, + "x": "aaa1" + }, + { + "id": 2, + "x": "xx2" + }, + { + "id": 11, + "x": "aaa11" + }, + { + "id": 12, + "x": "xx12" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable2.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable2.json new file mode 100644 index 00000000..2da35ca2 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable2.json @@ -0,0 +1,12 @@ +{ + "data_list": [ + { + "id": 1, + "y": 100 + }, + { + "id": 3, + "y": 300 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable3.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable3.json new file mode 100644 index 00000000..4294f41b --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbcompositejsontable3.json @@ -0,0 +1,8 @@ +{ + "data_list": [ + { + "a": 111, + "b": 222 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdatafrommisc.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdatafrommisc.json new file mode 100644 index 00000000..eca99010 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdatafrommisc.json @@ -0,0 +1,382 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/def", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 11, + "x1": true, + "x2": 4, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1112232.43123, + "x8_0": 123, + "x8": 112233, + "x9": 112334, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 1, + 2 + ], + "k5": [ + 1, + 2 + ], + "k8": [ + [ + "2", + 10 + ], + [ + "3", + 30 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 2, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 12, + "x1": true, + "x2": 4, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1112232.43123, + "x8_0": 123, + "x8": 112233, + "x9": 112334, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 1, + 2 + ], + "k5": [ + 1, + 2 + ], + "k8": [ + [ + "2", + 10 + ], + [ + "3", + 30 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 40, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 22, + "x1": false, + "x2": 2, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1122, + "x8_0": 13, + "x8": 12, + "x9": 123, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 5, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 3 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 3 + ], + "k8": [ + [ + "2", + 10 + ], + [ + "3", + 12 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 10, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 3 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdefinefromexcel2.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdefinefromexcel2.json new file mode 100644 index 00000000..9eb95a3b --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdefinefromexcel2.json @@ -0,0 +1,820 @@ +{ + "data_list": [ + { + "id": 10000, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 3, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "TestCircle", + "radius": 1 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 3 + }, + { + "x": 2, + "y": 3, + "z": 4 + }, + { + "x": 1, + "y": 2, + "z": 4 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 4 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 5 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + } + ] + }, + { + "id": 10001, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 5, + "x10": "huang", + "x13": 1, + "x13_2": 3, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 20 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 4 + }, + { + "x": 2, + "y": 3, + "z": 5 + }, + { + "x": 1, + "y": 2, + "z": 5 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 5 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + } + ] + }, + { + "id": 10002, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 6, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 21 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 5 + }, + { + "x": 2, + "y": 3, + "z": 6 + }, + { + "x": 1, + "y": 2, + "z": 6 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + } + ] + }, + { + "id": 10003, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 3, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 22 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 933732549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 6 + }, + { + "x": 2, + "y": 3, + "z": 7 + }, + { + "x": 1, + "y": 2, + "z": 7 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + } + ] + }, + { + "id": 10004, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 4, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 23 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 7 + }, + { + "x": 2, + "y": 3, + "z": 8 + }, + { + "x": 1, + "y": 2, + "z": 8 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + } + ] + }, + { + "id": 10005, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 5, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 24 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 8 + }, + { + "x": 2, + "y": 3, + "z": 9 + }, + { + "x": 1, + "y": 2, + "z": 9 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + } + ] + }, + { + "id": 10006, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 6, + "x10": "", + "x13": 2, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 25 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 9 + }, + { + "x": 2, + "y": 3, + "z": 10 + }, + { + "x": 1, + "y": 2, + "z": 10 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + } + ] + }, + { + "id": 10007, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 4, + "x10": "xxx", + "x13": 2, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 26 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 10 + }, + { + "x": 2, + "y": 3, + "z": 11 + }, + { + "x": 1, + "y": 2, + "z": 11 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 13 + } + ] + }, + { + "id": 10008, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 3, + "x10": "xxx", + "x13": 2, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 27 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 11 + }, + { + "x": 2, + "y": 3, + "z": 12 + }, + { + "x": 1, + "y": 2, + "z": 12 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 13 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 14 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdemogroup.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdemogroup.json new file mode 100644 index 00000000..14b72fa2 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdemogroup.json @@ -0,0 +1,28 @@ +{ + "data_list": [ + { + "id": 1, + "x5": { + "y1": 10 + } + }, + { + "id": 2, + "x5": { + "y1": 10 + } + }, + { + "id": 3, + "x5": { + "y1": 10 + } + }, + { + "id": 4, + "x5": { + "y1": 10 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdemoprimitive.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdemoprimitive.json new file mode 100644 index 00000000..b0618828 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdemoprimitive.json @@ -0,0 +1,112 @@ +{ + "data_list": [ + { + "x1": false, + "x2": 1, + "x3": 2, + "x4": 3, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "hello", + "s2": "/apple", + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 2, + "y": 3, + "z": 4 + }, + "v4": { + "x": 4, + "y": 5, + "z": 6, + "w": 7 + }, + "t1": 946742700 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 4, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "world", + "s2": "/apple", + "v2": { + "x": 2, + "y": 3 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.4 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.7, + "w": 8.8 + }, + "t1": 946829099 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 5, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "nihao", + "s2": "/apple", + "v2": { + "x": 4, + "y": 5 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.5 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.8, + "w": 9.9 + }, + "t1": 946915499 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 6, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "shijie", + "s2": "/apple", + "v2": { + "x": 6, + "y": 7 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.6 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.9, + "w": 123 + }, + "t1": 947001899 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdetectcsvencoding.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdetectcsvencoding.json new file mode 100644 index 00000000..0224eedd --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbdetectcsvencoding.json @@ -0,0 +1,52 @@ +{ + "data_list": [ + { + "id": 21, + "name": "测试编码" + }, + { + "id": 22, + "name": "还果园国要" + }, + { + "id": 23, + "name": "工枯加盟仍" + }, + { + "id": 11, + "name": "测试编码" + }, + { + "id": 12, + "name": "还果园国要" + }, + { + "id": 13, + "name": "工枯加盟仍" + }, + { + "id": 31, + "name": "测试编码" + }, + { + "id": 32, + "name": "还果园国要" + }, + { + "id": 33, + "name": "工枯加盟仍" + }, + { + "id": 1, + "name": "测试编码" + }, + { + "id": 2, + "name": "还果园国要" + }, + { + "id": 3, + "name": "工枯加盟仍" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbexcelfromjson.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbexcelfromjson.json new file mode 100644 index 00000000..c8aec118 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbexcelfromjson.json @@ -0,0 +1,163 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + } + ] + }, + { + "x4": 2, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + } + ] + }, + { + "x4": 3, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbexcelfromjsonmultirow.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbexcelfromjsonmultirow.json new file mode 100644 index 00000000..f6927d6e --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbexcelfromjsonmultirow.json @@ -0,0 +1,83 @@ +{ + "data_list": [ + { + "id": 1, + "x": 5, + "items": [ + { + "x": 1, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 100 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 2, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] + }, + { + "id": 2, + "x": 9, + "items": [ + { + "x": 2, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 11 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 4, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + }, + { + "x": 5, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbfulltypes.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbfulltypes.json new file mode 100644 index 00000000..a39e4486 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbfulltypes.json @@ -0,0 +1,869 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x2": 5, + "x3": 1, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas[10000]", + "x12": { + "x1": 1988 + }, + "x13": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 3 + } + ] + }, + { + "x4": 2, + "x1": false, + "x2": 0, + "x3": 2, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 3, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 4 + } + ] + }, + { + "x4": 3, + "x1": false, + "x2": 0, + "x3": 3, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 4, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 5 + } + ] + }, + { + "x4": 4, + "x1": false, + "x2": 5, + "x3": 4, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 933732549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 5, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 6 + } + ] + }, + { + "x4": 5, + "x1": false, + "x2": 5, + "x3": 6, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas[20000]", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 6, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 7 + } + ] + }, + { + "x4": 6, + "x1": true, + "x2": 5, + "x3": 7, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 7, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 8 + } + ] + }, + { + "x4": 7, + "x1": true, + "x2": 5, + "x3": 8, + "x5": 1213123, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 8, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 9 + } + ] + }, + { + "x4": 8, + "x1": true, + "x2": 5, + "x3": 9, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 9, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 10 + } + ] + }, + { + "x4": 9, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 10, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 11 + } + ] + }, + { + "x4": 10, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1989 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 3 + }, + "s1": "/apple", + "t1": 935460550, + "k1": [ + 1, + 2, + 4 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 5 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 11, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 12 + } + ] + }, + { + "x4": 12, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1990 + }, + "x13": 2, + "x14": { + "@type": "TestLoginRoleInfo", + "x1": 1, + "x3": 4, + "role_id": 10000 + }, + "s1": "/apple", + "t1": 935460551, + "k1": [ + 1, + 2, + 5 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 6 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 12, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 13 + } + ] + }, + { + "x4": 30, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1991 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 5 + }, + "s1": "/apple", + "t1": 935460552, + "k1": [ + 1, + 2, + 6 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 7 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 13, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 14 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbitem2.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbitem2.json new file mode 100644 index 00000000..153b6944 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbitem2.json @@ -0,0 +1,73 @@ +{ + "data_list": [ + { + "@type": "TestItem", + "id": 1001, + "name": "道具1", + "desc": "道具1", + "num": 100, + "price": 15 + }, + { + "@type": "TestItem", + "id": 1002, + "name": "道具2", + "desc": "道具1", + "num": 20, + "price": 30 + }, + { + "@type": "TestEquipment", + "id": 2001, + "name": "装备1", + "desc": "装备1", + "attr": 1, + "value": 100 + }, + { + "@type": "TestEquipment", + "id": 2002, + "name": "装备2", + "desc": "装备2好", + "attr": 2, + "value": 15 + }, + { + "@type": "TestDecorator", + "id": 3001, + "name": "耳环", + "desc": "耳环", + "duration": 100 + }, + { + "@type": "TestDecorator", + "id": 3002, + "name": "耳环", + "desc": "耳环", + "duration": 100 + }, + { + "@type": "TestItem", + "id": 1010, + "name": "道具10", + "desc": "道具10", + "num": 100, + "price": 10 + }, + { + "@type": "TestEquipment", + "id": 2010, + "name": "装备20", + "desc": "装备好", + "attr": 4, + "value": 10 + }, + { + "@type": "TestDecorator", + "id": 3010, + "name": "帽子", + "desc": "帽子", + "duration": 100 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultiindexlist.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultiindexlist.json new file mode 100644 index 00000000..acd219d0 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultiindexlist.json @@ -0,0 +1,81 @@ +{ + "data_list": [ + { + "id1": 1, + "id2": 1, + "id3": "ab1", + "num": 1, + "desc": "desc1" + }, + { + "id1": 2, + "id2": 3, + "id3": "ab2", + "num": 2, + "desc": "desc2" + }, + { + "id1": 3, + "id2": 5, + "id3": "ab3", + "num": 3, + "desc": "desc3" + }, + { + "id1": 4, + "id2": 7, + "id3": "ab4", + "num": 4, + "desc": "desc4" + }, + { + "id1": 5, + "id2": 9, + "id3": "ab5", + "num": 5, + "desc": "desc5" + }, + { + "id1": 6, + "id2": 11, + "id3": "ab6", + "num": 6, + "desc": "desc6" + }, + { + "id1": 7, + "id2": 13, + "id3": "ab7", + "num": 7, + "desc": "desc7" + }, + { + "id1": 8, + "id2": 15, + "id3": "ab8", + "num": 8, + "desc": "desc8" + }, + { + "id1": 9, + "id2": 17, + "id3": "ab9", + "num": 9, + "desc": "desc9" + }, + { + "id1": 10, + "id2": 19, + "id3": "ab10", + "num": 10, + "desc": "desc10" + }, + { + "id1": 11, + "id2": 21, + "id3": "ab11", + "num": 11, + "desc": "desc11" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultirowrecord.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultirowrecord.json new file mode 100644 index 00000000..baee84b5 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultirowrecord.json @@ -0,0 +1,334 @@ +{ + "data_list": [ + { + "id": 1, + "name": "xxx", + "one_rows": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows1": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows2": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows4": [ + [ + "1", + { + "id": 1, + "x": 2, + "y": 3 + } + ] + ], + "multi_rows5": [ + { + "id": 1, + "items": [ + { + "id": 100, + "x": 1 + } + ] + } + ], + "multi_rows6": [], + "multi_rows7": [ + [ + "1", + 10 + ], + [ + "2", + 10 + ], + [ + "3", + 30 + ], + [ + "4", + 40 + ] + ] + }, + { + "id": 2, + "name": "xxx", + "one_rows": [ + { + "id": 2, + "x": 4 + } + ], + "multi_rows1": [ + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + } + ], + "multi_rows2": [ + { + "id": 3, + "x": 4 + }, + { + "id": 3, + "x": 4 + } + ], + "multi_rows4": [ + [ + "2", + { + "id": 4, + "x": 5, + "y": 4 + } + ] + ], + "multi_rows5": [ + { + "id": 2, + "items": [ + { + "id": 100, + "x": 1 + }, + { + "id": 200, + "x": 2 + } + ] + }, + { + "id": 3, + "items": [ + { + "id": 300, + "x": 3 + } + ] + }, + { + "id": 4, + "items": [ + { + "id": 400, + "x": 4 + }, + { + "id": 500, + "x": 5 + }, + { + "id": 600, + "x": 6 + } + ] + } + ], + "multi_rows6": [ + [ + "2", + { + "id": 2, + "x": 2, + "y": 2 + } + ], + [ + "22", + { + "id": 22, + "x": 22, + "y": 22 + } + ], + [ + "222", + { + "id": 3, + "x": 3, + "y": 3 + } + ], + [ + "2222", + { + "id": 4, + "x": 4, + "y": 4 + } + ] + ], + "multi_rows7": [ + [ + "1", + 100 + ], + [ + "2", + 200 + ] + ] + }, + { + "id": 3, + "name": "ds", + "one_rows": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows1": [ + { + "id": 1, + "x": 2 + }, + { + "id": 2, + "x": 4 + } + ], + "multi_rows2": [ + { + "id": 3, + "x": 4 + }, + { + "id": 3, + "x": 4 + } + ], + "multi_rows4": [ + [ + "1", + { + "id": 1, + "x": 2, + "y": 3 + } + ], + [ + "2", + { + "id": 4, + "x": 5, + "y": 4 + } + ], + [ + "3", + { + "id": 4, + "x": 5, + "y": 4 + } + ] + ], + "multi_rows5": [ + { + "id": 5, + "items": [ + { + "id": 100, + "x": 1 + }, + { + "id": 200, + "x": 2 + }, + { + "id": 300, + "x": 3 + }, + { + "id": 400, + "x": 4 + } + ] + } + ], + "multi_rows6": [ + [ + "1", + { + "id": 2, + "x": 3, + "y": 4 + } + ], + [ + "10", + { + "id": 20, + "x": 3, + "y": 40 + } + ], + [ + "100", + { + "id": 200, + "x": 4, + "y": 400 + } + ], + [ + "1000", + { + "id": 2000, + "x": 5, + "y": 4000 + } + ] + ], + "multi_rows7": [ + [ + "1", + 1 + ], + [ + "2", + 2 + ], + [ + "4", + 4 + ] + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultirowtitle.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultirowtitle.json new file mode 100644 index 00000000..cc85b730 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultirowtitle.json @@ -0,0 +1,98 @@ +{ + "data_list": [ + { + "id": 1, + "name": "xxx", + "x1": { + "y2": { + "z2": 2, + "z3": 3 + }, + "y3": 4 + }, + "x2": [ + { + "z2": 1, + "z3": 2 + }, + { + "z2": 3, + "z3": 4 + } + ], + "x3": [ + { + "z2": 1, + "z3": 2 + }, + { + "z2": 3, + "z3": 4 + } + ], + "x4": [ + { + "z2": 12, + "z3": 13 + }, + { + "z2": 22, + "z3": 23 + }, + { + "z2": 32, + "z3": 33 + } + ] + }, + { + "id": 11, + "name": "yyy", + "x1": { + "y2": { + "z2": 12, + "z3": 13 + }, + "y3": 14 + }, + "x2_0": { + "z2": 1, + "z3": 2 + }, + "x2": [ + { + "z2": 11, + "z3": 12 + }, + { + "z2": 13, + "z3": 14 + } + ], + "x3": [ + { + "z2": 11, + "z3": 12 + }, + { + "z2": 13, + "z3": 14 + } + ], + "x4": [ + { + "z2": 112, + "z3": 113 + }, + { + "z2": 122, + "z3": 123 + }, + { + "z2": 132, + "z3": 133 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultiunionindexlist.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultiunionindexlist.json new file mode 100644 index 00000000..6c0d6549 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbmultiunionindexlist.json @@ -0,0 +1,81 @@ +{ + "data_list": [ + { + "id1": 1, + "id2": 1, + "id3": "ab1", + "num": 1, + "desc": "desc1" + }, + { + "id1": 1, + "id2": 1, + "id3": "ab2", + "num": 2, + "desc": "desc2" + }, + { + "id1": 1, + "id2": 5, + "id3": "ab1", + "num": 3, + "desc": "desc3" + }, + { + "id1": 4, + "id2": 5, + "id3": "ab1", + "num": 4, + "desc": "desc4" + }, + { + "id1": 5, + "id2": 9, + "id3": "ab5", + "num": 5, + "desc": "desc5" + }, + { + "id1": 6, + "id2": 11, + "id3": "ab6", + "num": 6, + "desc": "desc6" + }, + { + "id1": 7, + "id2": 13, + "id3": "ab7", + "num": 7, + "desc": "desc7" + }, + { + "id1": 8, + "id2": 15, + "id3": "ab8", + "num": 8, + "desc": "desc8" + }, + { + "id1": 9, + "id2": 17, + "id3": "ab9", + "num": 9, + "desc": "desc9" + }, + { + "id1": 10, + "id2": 19, + "id3": "ab10", + "num": 10, + "desc": "desc10" + }, + { + "id1": 11, + "id2": 21, + "id3": "ab11", + "num": 11, + "desc": "desc11" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbnotindexlist.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbnotindexlist.json new file mode 100644 index 00000000..ffda7157 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbnotindexlist.json @@ -0,0 +1,24 @@ +{ + "data_list": [ + { + "x": 1, + "y": 2 + }, + { + "x": 1, + "y": 2 + }, + { + "x": 2, + "y": 3 + }, + { + "x": 3, + "y": 4 + }, + { + "x": 2, + "y": 3 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbsingleton.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbsingleton.json new file mode 100644 index 00000000..a6821cc8 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbsingleton.json @@ -0,0 +1,16 @@ +{ + "data_list": [ + { + "id": 5, + "name": "key_name", + "date": { + "@type": "TestDemoD5", + "x1": 1, + "time": { + "start_time": 398966400, + "end_time": 936806400 + } + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestberef.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestberef.json new file mode 100644 index 00000000..af631a82 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestberef.json @@ -0,0 +1,44 @@ +{ + "data_list": [ + { + "id": 1, + "count": 10 + }, + { + "id": 2, + "count": 10 + }, + { + "id": 3, + "count": 10 + }, + { + "id": 4, + "count": 10 + }, + { + "id": 5, + "count": 10 + }, + { + "id": 6, + "count": 10 + }, + { + "id": 7, + "count": 10 + }, + { + "id": 8, + "count": 10 + }, + { + "id": 9, + "count": 10 + }, + { + "id": 10, + "count": 10 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestberef2.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestberef2.json new file mode 100644 index 00000000..0886c622 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestberef2.json @@ -0,0 +1,44 @@ +{ + "data_list": [ + { + "id": 11, + "count": 10 + }, + { + "id": 12, + "count": 10 + }, + { + "id": 13, + "count": 10 + }, + { + "id": 14, + "count": 10 + }, + { + "id": 15, + "count": 10 + }, + { + "id": 16, + "count": 10 + }, + { + "id": 17, + "count": 10 + }, + { + "id": 18, + "count": 10 + }, + { + "id": 19, + "count": 10 + }, + { + "id": 20, + "count": 10 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestglobal.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestglobal.json new file mode 100644 index 00000000..45d0f4e6 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestglobal.json @@ -0,0 +1,8 @@ +{ + "data_list": [ + { + "unlock_equip": 10, + "unlock_hero": 20 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestindex.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestindex.json new file mode 100644 index 00000000..69c7dab2 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestindex.json @@ -0,0 +1,84 @@ +{ + "data_list": [ + { + "id": 1, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 2, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 3, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 4, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmap.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmap.json new file mode 100644 index 00000000..36caa53b --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmap.json @@ -0,0 +1,47 @@ +{ + "data_list": [ + { + "id": 1, + "x1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "x2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "x3": [ + [ + "\"aaa\"", + 1 + ], + [ + "\"bbb\"", + 2 + ] + ], + "x4": [ + [ + "1", + 1 + ], + [ + "2", + 20 + ] + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmapper.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmapper.json new file mode 100644 index 00000000..a009e49c --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmapper.json @@ -0,0 +1,20 @@ +{ + "data_list": [ + { + "id": 1, + "audio_type": 1, + "v2": { + "x": 1, + "y": 2 + } + }, + { + "id": 2, + "audio_type": 1, + "v2": { + "x": 1, + "y": 3 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmulticolumn.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmulticolumn.json new file mode 100644 index 00000000..751a636d --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestmulticolumn.json @@ -0,0 +1,40 @@ +{ + "data_list": [ + { + "id": 1, + "a": { + "y1": 1, + "y2": 2, + "y3": 3 + }, + "b": { + "y1": 21, + "y2": 221, + "y3": 23 + }, + "c": { + "y1": 31, + "y2": 32, + "y3": 33 + } + }, + { + "id": 2, + "a": { + "y1": 1, + "y2": 2, + "y3": 3 + }, + "b": { + "y1": 21, + "y2": 221, + "y3": 23 + }, + "c": { + "y1": 31, + "y2": 32, + "y3": 33 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestnull.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestnull.json new file mode 100644 index 00000000..c0afe376 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestnull.json @@ -0,0 +1,92 @@ +{ + "data_list": [ + { + "id": 10 + }, + { + "id": 11 + }, + { + "id": 12, + "x1": 1, + "x2": 1, + "x3": { + "x1": 1 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + }, + "s1": "asf", + "s2": "/abc" + }, + { + "id": 20 + }, + { + "id": 21 + }, + { + "id": 22, + "x1": 1, + "x2": 2, + "x3": { + "x1": 3 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "asfs", + "s2": "/abc" + }, + { + "id": 30, + "x1": 1, + "x2": 1, + "x3": { + "x1": 1 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 22 + }, + "s1": "/apple", + "s2": "/apple" + }, + { + "id": 31 + }, + { + "id": 1 + }, + { + "id": 2, + "x1": 1, + "x2": 1, + "x3": { + "x1": 3 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "s2": "/apple" + }, + { + "id": 3, + "s1": "", + "s2": "" + }, + { + "id": 4, + "s1": "/apple", + "s2": "/apple" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestref.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestref.json new file mode 100644 index 00000000..83e4694c --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestref.json @@ -0,0 +1,205 @@ +{ + "data_list": [ + { + "id": 1, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 1, + "x4": 3001, + "a1": [ + 1, + 2 + ], + "a2": [ + 2, + 3 + ], + "b1": [ + 3, + 4 + ], + "b2": [ + 4, + 5 + ], + "c1": [ + 5, + 6, + 7 + ], + "c2": [ + 6, + 7 + ], + "d1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "d2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1": { + "@type": "TestRefBean", + "x": 1, + "arr": [ + 1, + 4 + ] + } + }, + { + "id": 2, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 20, + "x4": 3001, + "a1": [ + 1, + 3 + ], + "a2": [ + 2, + 4 + ], + "b1": [ + 3, + 5 + ], + "b2": [ + 4, + 6 + ], + "c1": [ + 5, + 6, + 8 + ], + "c2": [ + 6, + 8 + ], + "d1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "d2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1": { + "@type": "TestRefBean", + "x": 1, + "arr": [ + 1, + 3 + ] + } + }, + { + "id": 3, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 19, + "x4": 3001, + "a1": [ + 1, + 4 + ], + "a2": [ + 2, + 5 + ], + "b1": [ + 3, + 6 + ], + "b2": [ + 4, + 7 + ], + "c1": [ + 5, + 6, + 9 + ], + "c2": [ + 6, + 9 + ], + "d1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "d2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1": { + "@type": "TestRefBean", + "x": 1, + "arr": [ + 2, + 3 + ] + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestscriptableobject.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestscriptableobject.json new file mode 100644 index 00000000..54b2a2d2 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestscriptableobject.json @@ -0,0 +1,46 @@ +{ + "data_list": [ + { + "id": 1, + "desc": "aaaa", + "rate": 0.45, + "num": 12131, + "v2": { + "x": 1, + "y": 1 + }, + "v3": { + "x": 2, + "y": 2, + "z": 2 + }, + "v4": { + "x": 3, + "y": 3, + "z": 4, + "w": 4 + } + }, + { + "id": 2, + "desc": "bbbbb", + "rate": 0.8, + "num": 1111, + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 1, + "y": 2, + "z": 3 + }, + "v4": { + "x": 1, + "y": 2, + "z": 3, + "w": 4 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestset.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestset.json new file mode 100644 index 00000000..9de8d951 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestset.json @@ -0,0 +1,45 @@ +{ + "data_list": [ + { + "id": 1, + "x0": "ab", + "x1": [ + 1, + 2, + 3 + ], + "x2": [ + 2, + 3, + 4 + ], + "x3": [ + "ab", + "cd" + ], + "x4": [ + 1, + 2 + ] + }, + { + "id": 2, + "x0": "cd", + "x1": [ + 1, + 2 + ], + "x2": [ + 2, + 3 + ], + "x3": [ + "ab", + "cd" + ], + "x4": [ + 1 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestsize.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestsize.json new file mode 100644 index 00000000..0413fef8 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbtestsize.json @@ -0,0 +1,29 @@ +{ + "data_list": [ + { + "id": 1, + "x1": [ + 1, + 2 + ], + "x2": [ + 3, + 4 + ], + "x3": [ + 5, + 6 + ], + "x4": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbteststring.json b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbteststring.json new file mode 100644 index 00000000..72d51f67 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_datas/test_tbteststring.json @@ -0,0 +1,79 @@ +{ + "data_list": [ + { + "id": "\\a", + "s1": "asfas", + "s2": "aaa\nbbb", + "cs1": { + "id": 1, + "s2": "asf", + "s3": "aaa" + }, + "cs2": { + "id": 1, + "s2": "asf", + "s3": "aaa" + } + }, + { + "id": "2", + "s1": "aaa\\nbbb", + "s2": "aaa\t\tbbb", + "cs1": { + "id": 2, + "s2": "", + "s3": "bbb" + }, + "cs2": { + "id": 2, + "s2": "", + "s3": "bbb" + } + }, + { + "id": "3", + "s1": "升级到10级\"\"", + "s2": "cccc", + "cs1": { + "id": 3, + "s2": "asdfas", + "s3": "" + }, + "cs2": { + "id": 3, + "s2": "asdfas", + "s3": "" + } + }, + { + "id": "4", + "s1": "\\abc", + "s2": "", + "cs1": { + "id": 4, + "s2": "", + "s3": "" + }, + "cs2": { + "id": 4, + "s2": "", + "s3": "" + } + }, + { + "id": "5", + "s1": "升级到10级\nabc", + "s2": "", + "cs1": { + "id": 3, + "s2": "asdfas", + "s3": "" + }, + "cs2": { + "id": 3, + "s2": "asdfas", + "s3": "" + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf2_json/pb_schemas/schema.proto b/luban_examples/Projects/Protobuf2_json/pb_schemas/schema.proto new file mode 100644 index 00000000..1f24c480 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/pb_schemas/schema.proto @@ -0,0 +1,1054 @@ +syntax = "proto2"; + +package cfg; + +enum AiEExecutor { + AiEExecutor_CLIENT = 0; + AiEExecutor_SERVER = 1; +} +enum AiEKeyType { + AiEKeyType_BOOL = 1; + AiEKeyType_INT = 2; + AiEKeyType_FLOAT = 3; + AiEKeyType_STRING = 4; + AiEKeyType_VECTOR = 5; + AiEKeyType_ROTATOR = 6; + AiEKeyType_NAME = 7; + AiEKeyType_CLASS = 8; + AiEKeyType_ENUM = 9; + AiEKeyType_OBJECT = 10; +} +enum AiEFlowAbortMode { + AiEFlowAbortMode_NONE = 0; + AiEFlowAbortMode_LOWER_PRIORITY = 1; + AiEFlowAbortMode_SELF = 2; + AiEFlowAbortMode_BOTH = 3; +} +enum AiEFinishMode { + AiEFinishMode_IMMEDIATE = 0; + AiEFinishMode_DELAYED = 1; +} +enum AiENotifyObserverMode { + AiENotifyObserverMode_ON_VALUE_CHANGE = 0; + AiENotifyObserverMode_ON_RESULT_CHANGE = 1; +} +enum AiEOperator { + AiEOperator_IS_EQUAL_TO = 0; + AiEOperator_IS_NOT_EQUAL_TO = 1; + AiEOperator_IS_LESS_THAN = 2; + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3; + AiEOperator_IS_GREAT_THAN = 4; + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5; + AiEOperator_CONTAINS = 6; + AiEOperator_NOT_CONTAINS = 7; +} +enum AudioType { + AudioType_UNKNOWN = 0; + AudioType_ACC = 1; + AudioType_AIFF = 2; +} +enum CommonEBoolOperator { + CommonEBoolOperator_AND = 0; + CommonEBoolOperator_OR = 1; +} +enum ItemEItemQuality { + ItemEItemQuality_WHITE = 0; + ItemEItemQuality_GREEN = 1; + ItemEItemQuality_BLUE = 2; + ItemEItemQuality_PURPLE = 3; + ItemEItemQuality_GOLDEN = 4; +} +enum ItemECurrencyType { + ItemECurrencyType_DIAMOND = 1; + ItemECurrencyType_GOLD = 2; + ItemECurrencyType_SILVER = 3; + ItemECurrencyType_EXP = 4; + ItemECurrencyType_POWER_POINT = 5; +} +enum ItemEMajorType { + ItemEMajorType_CURRENCY = 1; + ItemEMajorType_CLOTH = 2; + ItemEMajorType_QUEST = 3; + ItemEMajorType_CONSUMABLES = 4; + ItemEMajorType_TREASURE_BOX = 5; + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6; + ItemEMajorType_HEAD_FRAME = 7; + ItemEMajorType_VOICE = 8; + ItemEMajorType_ACTION = 9; + ItemEMajorType_EXPANSION = 10; + ItemEMajorType_MATERIAL = 11; +} +enum ItemEMinorType { + ItemEMinorType_DIAMOND = 101; + ItemEMinorType_GOLD = 102; + ItemEMinorType_SILVER = 103; + ItemEMinorType_EXP = 104; + ItemEMinorType_POWER_POINT = 105; + ItemEMinorType_HAIR_STYLE = 210; + ItemEMinorType_COAT = 220; + ItemEMinorType_UPPER_JACKET = 230; + ItemEMinorType_TROUSERS = 241; + ItemEMinorType_SKIRT = 242; + ItemEMinorType_SOCKS = 250; + ItemEMinorType_SHOES = 260; + ItemEMinorType_HAIR_ACCESSORY = 271; + ItemEMinorType_HAT = 272; + ItemEMinorType_EARRING = 273; + ItemEMinorType_NECKLACE = 274; + ItemEMinorType_BRACELET = 275; + ItemEMinorType_HAIR_CLASP = 276; + ItemEMinorType_GLOVE = 277; + ItemEMinorType_HANDHELD_OBJECT = 278; + ItemEMinorType_SPECIAL = 279; + ItemEMinorType_BASE_COSMETIC = 281; + ItemEMinorType_EYEBROW_COSMETIC = 282; + ItemEMinorType_EYELASH = 283; + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284; + ItemEMinorType_LIP_COSMETIC = 285; + ItemEMinorType_SKIN_COLOR = 286; + ItemEMinorType_ONE_PIECE_DRESS = 290; + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291; + ItemEMinorType_QUEST = 301; + ItemEMinorType_CAST = 401; + ItemEMinorType_SWORD = 421; + ItemEMinorType_BOW_ARROW = 422; + ItemEMinorType_WANDS = 423; + ItemEMinorType_SPECIAL_TOOL = 424; + ItemEMinorType_FOOD = 403; + ItemEMinorType_TREASURE_BOX = 501; + ItemEMinorType_KEY = 502; + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503; + ItemEMinorType_ACHIEVEMENT = 601; + ItemEMinorType_TITLE = 602; + ItemEMinorType_AVATAR_FRAME = 701; + ItemEMinorType_VOICE = 801; + ItemEMinorType_IDLE_POSE = 901; + ItemEMinorType_PHOTO_POSE = 902; + ItemEMinorType_BAG = 1001; + ItemEMinorType_FRIEND_CAPACITY = 1002; + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101; + ItemEMinorType_DESIGN_DRAWING = 1102; +} +enum ItemEClothersStarQualityType { + ItemEClothersStarQualityType_ONE = 1; + ItemEClothersStarQualityType_TWO = 2; + ItemEClothersStarQualityType_THREE = 3; + ItemEClothersStarQualityType_FOUR = 4; + ItemEClothersStarQualityType_FIVE = 5; + ItemEClothersStarQualityType_SIX = 6; + ItemEClothersStarQualityType_SEVEN = 7; + ItemEClothersStarQualityType_EIGHT = 8; + ItemEClothersStarQualityType_NINE = 9; + ItemEClothersStarQualityType_TEN = 10; +} +enum ItemEClothersTag { + ItemEClothersTag_FANG_SHAI = 1; + ItemEClothersTag_WU_ZHE = 2; +} +enum ItemEUseType { + ItemEUseType_MANUAL = 0; + ItemEUseType_AUTO = 1; +} +enum ItemEClothesHidePartType { + ItemEClothesHidePartType_CHEST = 0; + ItemEClothesHidePartType_HEAD = 1; + ItemEClothesHidePartType_SPINE_UPPER = 2; + ItemEClothesHidePartType_SPINE_LOWER = 3; + ItemEClothesHidePartType_HIP = 4; + ItemEClothesHidePartType_LEG_UPPER = 5; + ItemEClothesHidePartType_LEG_MIDDLE = 6; + ItemEClothesHidePartType_LEG_LOWER = 7; +} +enum ItemEClothesPropertyType { + ItemEClothesPropertyType_JIAN_YUE = 1; + ItemEClothesPropertyType_HUA_LI = 2; + ItemEClothesPropertyType_KE_AI = 3; + ItemEClothesPropertyType_CHENG_SHU = 4; + ItemEClothesPropertyType_HUO_PO = 5; + ItemEClothesPropertyType_YOU_YA = 6; + ItemEClothesPropertyType_QING_CHUN = 7; + ItemEClothesPropertyType_XING_GAN = 8; + ItemEClothesPropertyType_QING_LIANG = 9; + ItemEClothesPropertyType_BAO_NUAN = 10; +} +enum TestDemoEnum { + TestDemoEnum_NONE = 0; + TestDemoEnum_A = 1; + TestDemoEnum_B = 2; + TestDemoEnum_C = 4; + TestDemoEnum_D = 5; +} +enum TestDemoFlag { + TestDemoFlag_A = 1; + TestDemoFlag_B = 2; + TestDemoFlag_C = 4; + TestDemoFlag_D = 8; +} +enum TestETestUeType { + TestETestUeType_WHITE = 0; + TestETestUeType_BLACK = 1; +} +enum TestETestEmptyEnum { + + TestETestEmptyEnum_EMPTY_PLACEHOLDER = 0; +} +enum TestETestEmptyEnum2 { + TestETestEmptyEnum2_SMALL_THAN_256 = 255; + TestETestEmptyEnum2_X_256 = 256; + TestETestEmptyEnum2_X_257 = 257; +} +enum TestETestQuality { + TestETestQuality_A = 1; + TestETestQuality_B = 2; + TestETestQuality_C = 3; + TestETestQuality_D = 4; +} +enum TestAccessFlag { + TestAccessFlag_WRITE = 1; + TestAccessFlag_READ = 2; + TestAccessFlag_TRUNCATE = 4; + TestAccessFlag_NEW = 8; + TestAccessFlag_READ_WRITE = 3; +} + +message AiBlackboard { + required string name = 1 ; + required string desc = 2 ; + required string parent_name = 3 ; + repeated AiBlackboardKey keys = 4 [packed = false]; +} +message AiBlackboardKey { + required string name = 1 ; + required string desc = 2 ; + required bool is_static = 3 ; + required AiEKeyType type = 4 ; + required string type_class_name = 5 ; +} +message AiBehaviorTree { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required string blackboard_id = 4 ; + required AiComposeNode root = 5 ; +} +message AiNode { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiService { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + } +} +message AiUeSetDefaultFocus { + required int32 id = 1 ; + required string node_name = 2 ; + required string keyboard_key = 3 ; +} +message AiExecuteTimeStatistic { + required int32 id = 1 ; + required string node_name = 2 ; +} +message AiChooseTarget { + required int32 id = 1 ; + required string node_name = 2 ; + required string result_target_key = 3 ; +} +message AiKeepFaceTarget { + required int32 id = 1 ; + required string node_name = 2 ; + required string target_actor_key = 3 ; +} +message AiGetOwnerPlayer { + required int32 id = 1 ; + required string node_name = 2 ; + required string player_actor_key = 3 ; +} +message AiUpdateDailyBehaviorProps { + required int32 id = 1 ; + required string node_name = 2 ; + required string satiety_key = 3 ; + required string energy_key = 4 ; + required string mood_key = 5 ; + required string satiety_lower_threshold_key = 6 ; + required string satiety_upper_threshold_key = 7 ; + required string energy_lower_threshold_key = 8 ; + required string energy_upper_threshold_key = 9 ; + required string mood_lower_threshold_key = 10 ; + required string mood_upper_threshold_key = 11 ; +} +message AiDecorator { + oneof value { + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + } +} +message AiUeLoop { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required int32 num_loops = 4 ; + required bool infinite_loop = 5 ; + required float infinite_loop_timeout_time = 6 ; +} +message AiUeCooldown { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required float cooldown_time = 4 ; +} +message AiUeTimeLimit { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required float limit_time = 4 ; +} +message AiUeBlackboard { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required AiENotifyObserverMode notify_observer = 4 ; + required string blackboard_key = 5 ; + required AiKeyQueryOperator key_query = 6 ; +} +message AiKeyQueryOperator { + oneof value { + AiIsSet IsSet = 1; + AiIsNotSet IsNotSet = 2; + AiBinaryOperator BinaryOperator = 3; + } +} +message AiIsSet { +} +message AiIsNotSet { +} +message AiBinaryOperator { + required AiEOperator oper = 1 ; + required AiKeyData data = 2 ; +} +message AiKeyData { + oneof value { + AiFloatKeyData FloatKeyData = 1; + AiIntKeyData IntKeyData = 2; + AiStringKeyData StringKeyData = 3; + AiBlackboardKeyData BlackboardKeyData = 4; + } +} +message AiFloatKeyData { + required float value = 1 ; +} +message AiIntKeyData { + required int32 value = 1 ; +} +message AiStringKeyData { + required string value = 1 ; +} +message AiBlackboardKeyData { + required string value = 1 ; +} +message AiUeForceSuccess { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; +} +message AiIsAtLocation { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required float acceptable_radius = 4 ; + required string keyboard_key = 5 ; + required bool inverse_condition = 6 ; +} +message AiDistanceLessThan { + required int32 id = 1 ; + required string node_name = 2 ; + required AiEFlowAbortMode flow_abort_mode = 3 ; + required string actor1_key = 4 ; + required string actor2_key = 5 ; + required float distance = 6 ; + required bool reverse_result = 7 ; +} +message AiFlowNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiComposeNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + } +} +message AiSequence { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSelector { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSimpleParallel { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required AiEFinishMode finish_mode = 5 ; + required AiTask main_task = 6 ; + required AiFlowNode background_node = 7 ; +} +message AiTask { + oneof value { + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiUeWait { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required float wait_time = 6 ; + required float random_deviation = 7 ; +} +message AiUeWaitBlackboardTime { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string blackboard_key = 6 ; +} +message AiMoveToTarget { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string target_actor_key = 6 ; + required float acceptable_radius = 7 ; +} +message AiChooseSkill { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string target_actor_key = 6 ; + required string result_skill_id_key = 7 ; +} +message AiMoveToRandomLocation { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string origin_position_key = 6 ; + required float radius = 7 ; +} +message AiMoveToLocation { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required float acceptable_radius = 6 ; +} +message AiDebugPrint { + required int32 id = 1 ; + required string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + required bool ignore_restart_self = 5 ; + required string text = 6 ; +} +message CommonGlobalConfig { + required int32 x1 = 1 ; + required int32 x2 = 2 ; + required int32 x3 = 3 ; + required int32 x4 = 4 ; + required int32 x5 = 5 ; + required int32 x6 = 6 ; + repeated int32 x7 = 7 [packed = true]; +} +message ItemItem { + required int32 id = 1 ; + required string name = 2 ; + required ItemEMinorType minor_type = 4 ; + required ItemEItemQuality quality = 6 ; + required string icon_backgroud = 8 ; + required string icon_mask = 9 ; + required string desc = 10 ; + required int32 show_order = 11 ; +} +message L10nL10NDemo { + required int32 id = 1 ; + required string text = 2 ; +} +message L10nPatchDemo { + required int32 id = 1 ; + required int32 value = 2 ; +} +message TagTestTag { + required int32 id = 1 ; + required string value = 2 ; +} +message TestDemoType2 { + required int32 x4 = 1 ; + required bool x1 = 2 ; + required int32 x2 = 3 ; + required int32 x3 = 4 ; + required int64 x5 = 5 ; + required float x6 = 6 ; + required double x7 = 7 ; + required int32 x8_0 = 8 ; + required int32 x8 = 9 ; + required int64 x9 = 10 ; + required string x10 = 11 ; + required TestDemoType1 x12 = 12 ; + required TestDemoEnum x13 = 13 ; + required TestDemoDynamic x14 = 14 ; + required string s1 = 15 ; + required int64 t1 = 16 ; + repeated int32 k1 = 17 [packed = true]; + repeated int32 k2 = 18 [packed = true]; + repeated int32 k5 = 19 [packed = true]; + map k8 = 20 ; + repeated TestDemoE2 k9 = 21 [packed = false]; + repeated TestDemoDynamic k15 = 22 [packed = false]; +} +message TestDemoType1 { + required int32 x1 = 1 ; +} +message TestDemoDynamic { + oneof value { + TestDemoD2 DemoD2 = 1; + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + TestDemoD5 DemoD5 = 4; + } +} +message TestDemoD2 { + required int32 x1 = 1 ; + required int32 x2 = 2 ; +} +message TestDemoD3 { + oneof value { + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + } +} +message TestDemoE1 { + required int32 x1 = 1 ; + required int32 x3 = 2 ; + required int32 x4 = 3 ; +} +message TestLoginRoleInfo { + required int32 x1 = 1 ; + required int32 x3 = 2 ; + required int64 role_id = 3 ; +} +message TestDemoD5 { + required int32 x1 = 1 ; + required TestDateTimeRange time = 2 ; +} +message TestDateTimeRange { + required int64 start_time = 1 ; + required int64 end_time = 2 ; +} +message TestDemoE2 { + optional int32 y1 = 1 ; + required bool y2 = 2 ; +} +message TestDemoSingletonType { + required int32 id = 1 ; + required string name = 2 ; + required TestDemoDynamic date = 3 ; +} +message TestNotIndexList { + required int32 x = 1 ; + required int32 y = 2 ; +} +message TestMultiUnionIndexList { + required int32 id1 = 1 ; + required int64 id2 = 2 ; + required string id3 = 3 ; + required int32 num = 4 ; + required string desc = 5 ; +} +message TestMultiIndexList { + required int32 id1 = 1 ; + required int64 id2 = 2 ; + required string id3 = 3 ; + required int32 num = 4 ; + required string desc = 5 ; +} +message TestMultiRowRecord { + required int32 id = 1 ; + required string name = 2 ; + repeated TestMultiRowType1 one_rows = 3 [packed = false]; + repeated TestMultiRowType1 multi_rows1 = 4 [packed = false]; + repeated TestMultiRowType1 multi_rows2 = 5 [packed = false]; + map multi_rows4 = 6 ; + repeated TestMultiRowType3 multi_rows5 = 7 [packed = false]; + map multi_rows6 = 8 ; + map multi_rows7 = 9 ; +} +message TestMultiRowType1 { + required int32 id = 1 ; + required int32 x = 2 ; +} +message TestMultiRowType2 { + required int32 id = 1 ; + required int32 x = 2 ; + required float y = 3 ; +} +message TestMultiRowType3 { + required int32 id = 1 ; + repeated TestMultiRowType1 items = 2 [packed = false]; +} +message TestTestMultiColumn { + required int32 id = 1 ; + required TestFoo a = 2 ; + required TestFoo b = 3 ; + required TestFoo c = 4 ; +} +message TestFoo { + required int32 y1 = 1 ; + required int32 y2 = 2 ; + required int32 y3 = 3 ; +} +message TestMultiRowTitle { + required int32 id = 1 ; + required string name = 2 ; + required TestH1 x1 = 3 ; + optional TestH2 x2_0 = 4 ; + repeated TestH2 x2 = 5 [packed = false]; + repeated TestH2 x3 = 6 [packed = false]; + repeated TestH2 x4 = 7 [packed = false]; +} +message TestH1 { + required TestH2 y2 = 1 ; + required int32 y3 = 2 ; +} +message TestH2 { + required int32 z2 = 1 ; + required int32 z3 = 2 ; +} +message TestTestNull { + required int32 id = 1 ; + optional int32 x1 = 2 ; + optional TestDemoEnum x2 = 3 ; + optional TestDemoType1 x3 = 4 ; + optional TestDemoDynamic x4 = 5 ; + optional string s1 = 6 ; + optional string s2 = 7 ; +} +message TestDemoPrimitiveTypesTable { + required bool x1 = 1 ; + required int32 x2 = 2 ; + required int32 x3 = 3 ; + required int32 x4 = 4 ; + required int64 x5 = 5 ; + required float x6 = 6 ; + required double x7 = 7 ; + required string s1 = 8 ; + required string s2 = 9 ; + required vec2 v2 = 10 ; + required vec3 v3 = 11 ; + required vec4 v4 = 12 ; + required int64 t1 = 13 ; +} +message vec2 { + required float x = 1 ; + required float y = 2 ; +} +message vec3 { + required float x = 1 ; + required float y = 2 ; + required float z = 3 ; +} +message vec4 { + required float x = 1 ; + required float y = 2 ; + required float z = 3 ; + required float w = 4 ; +} +message TestTestString { + required string id = 1 ; + required string s1 = 2 ; + required string s2 = 3 ; + required TestCompactString cs1 = 4 ; + required TestCompactString cs2 = 5 ; +} +message TestCompactString { + required int32 id = 1 ; + required string s2 = 2 ; + required string s3 = 3 ; +} +message TestDemoGroup { + required int32 id = 1 ; + required TestInnerGroup x5 = 6 ; +} +message TestInnerGroup { + required int32 y1 = 1 ; +} +message TestTestGlobal { + required int32 unlock_equip = 1 ; + required int32 unlock_hero = 2 ; +} +message TestTestBeRef { + required int32 id = 1 ; + required int32 count = 2 ; +} +message TestTestRef { + required int32 id = 1 ; + required int32 x1 = 2 ; + required int32 x1_2 = 3 ; + required int32 x2 = 4 ; + required int32 x3 = 5 ; + required int32 x4 = 6 ; + repeated int32 a1 = 7 [packed = true]; + repeated int32 a2 = 8 [packed = true]; + repeated int32 b1 = 9 [packed = true]; + repeated int32 b2 = 10 [packed = true]; + repeated int32 c1 = 11 [packed = true]; + repeated int32 c2 = 12 [packed = true]; + map d1 = 13 ; + map d2 = 14 ; + required int32 e1 = 15 ; + required int64 e2 = 16 ; + required string e3 = 17 ; + required int32 f1 = 18 ; + required int64 f2 = 19 ; + required string f3 = 20 ; + required TestRefDynamicBase s1 = 21 ; +} +message TestRefDynamicBase { + oneof value { + TestRefBean RefBean = 1; + } +} +message TestRefBean { + required int32 x = 1 ; + repeated int32 arr = 2 [packed = true]; +} +message TestTestSize { + required int32 id = 1 ; + repeated int32 x1 = 2 [packed = true]; + repeated int32 x2 = 3 [packed = true]; + repeated int32 x3 = 4 [packed = true]; + map x4 = 5 ; +} +message TestTestSet { + required int32 id = 1 ; + required string x0 = 2 ; + repeated int32 x1 = 3 [packed = true]; + repeated int64 x2 = 4 [packed = true]; + repeated string x3 = 5 [packed = false]; + repeated TestDemoEnum x4 = 6 [packed = false]; +} +message TestDetectEncoding { + required int32 id = 1 ; + required string name = 2 ; +} +message TestItemBase { + oneof value { + TestItem Item = 1; + TestEquipment Equipment = 2; + TestDecorator Decorator = 3; + } +} +message TestItem { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required int32 num = 4 ; + required int32 price = 5 ; +} +message TestEquipment { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required TestDemoEnum attr = 4 ; + required int32 value = 5 ; +} +message TestDecorator { + required int32 id = 1 ; + required string name = 2 ; + required string desc = 3 ; + required int32 duration = 4 ; +} +message TestTestIndex { + required int32 id = 1 ; + repeated TestDemoType1 eles = 2 [packed = false]; +} +message TestTestMap { + required int32 id = 1 ; + map x1 = 2 ; + map x2 = 3 ; + map x3 = 4 ; + map x4 = 5 ; +} +message TestExcelFromJson { + required int32 x4 = 1 ; + required bool x1 = 2 ; + required int64 x5 = 3 ; + required float x6 = 4 ; + required string s1 = 5 ; + required string s2 = 6 ; + required int64 t1 = 7 ; + required TestDemoType1 x12 = 8 ; + required TestDemoEnum x13 = 9 ; + required TestDemoDynamic x14 = 10 ; + repeated int32 k1 = 11 [packed = true]; + map k8 = 12 ; + repeated TestDemoE2 k9 = 13 [packed = false]; + repeated TestDemoDynamic k15 = 14 [packed = false]; +} +message TestCompositeJsonTable1 { + required int32 id = 1 ; + required string x = 2 ; +} +message TestCompositeJsonTable2 { + required int32 id = 1 ; + required int32 y = 2 ; +} +message TestCompositeJsonTable3 { + required int32 a = 1 ; + required int32 b = 2 ; +} +message TestExcelFromJsonMultiRow { + required int32 id = 1 ; + required int32 x = 2 ; + repeated TestTestRow items = 3 [packed = false]; +} +message TestTestRow { + required int32 x = 1 ; + required bool y = 2 ; + required string z = 3 ; + required TestTest3 a = 4 ; + repeated int32 b = 5 [packed = true]; +} +message TestTest3 { + required int32 x = 1 ; + required int32 y = 2 ; +} +message TestTestScriptableObject { + required int32 id = 1 ; + required string desc = 2 ; + required float rate = 3 ; + required int32 num = 4 ; + required vec2 v2 = 5 ; + required vec3 v3 = 6 ; + required vec4 v4 = 7 ; +} +message TestTestMapper { + required int32 id = 1 ; + required AudioType audio_type = 2 ; + required vec2 v2 = 3 ; +} +message DefineFromExcel2 { + required int32 id = 1 ; + required bool x1 = 2 ; + required int64 x5 = 3 ; + required float x6 = 4 ; + required int32 x8 = 5 ; + required string x10 = 6 ; + required TestDemoEnum x13 = 7 ; + required TestDemoFlag x13_2 = 8 ; + required TestDemoDynamic x14 = 9 ; + required TestShape x15 = 10 ; + required vec2 v2 = 11 ; + required int64 t1 = 12 ; + repeated int32 k1 = 13 [packed = true]; + repeated int32 k2 = 14 [packed = true]; + map k8 = 15 ; + repeated TestDemoE2 k9 = 16 [packed = false]; + repeated vec3 k10 = 17 [packed = false]; + repeated vec4 k11 = 18 [packed = false]; +} +message TestShape { + oneof value { + TestCircle Circle = 1; + Test2Rectangle Rectangle = 2; + } +} +message TestCircle { + required float radius = 1 ; +} +message Test2Rectangle { + required float width = 1 ; + required float height = 2 ; +} + +message AiTbBlackboard { + repeated AiBlackboard data_list = 1 [packed = false]; +} +message AiTbBehaviorTree { + repeated AiBehaviorTree data_list = 1 [packed = false]; +} +message CommonTbGlobalConfig { + repeated CommonGlobalConfig data_list = 1 [packed = false]; +} +message ItemTbItem { + repeated ItemItem data_list = 1 [packed = false]; +} +message L10nTbL10NDemo { + repeated L10nL10NDemo data_list = 1 [packed = false]; +} +message L10nTbPatchDemo { + repeated L10nPatchDemo data_list = 1 [packed = false]; +} +message TagTbTestTag { + repeated TagTestTag data_list = 1 [packed = false]; +} +message TestTbFullTypes { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbSingleton { + repeated TestDemoSingletonType data_list = 1 [packed = false]; +} +message TestTbNotIndexList { + repeated TestNotIndexList data_list = 1 [packed = false]; +} +message TestTbMultiUnionIndexList { + repeated TestMultiUnionIndexList data_list = 1 [packed = false]; +} +message TestTbMultiIndexList { + repeated TestMultiIndexList data_list = 1 [packed = false]; +} +message TestTbDataFromMisc { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbMultiRowRecord { + repeated TestMultiRowRecord data_list = 1 [packed = false]; +} +message TestTbTestMultiColumn { + repeated TestTestMultiColumn data_list = 1 [packed = false]; +} +message TestTbMultiRowTitle { + repeated TestMultiRowTitle data_list = 1 [packed = false]; +} +message TestTbTestNull { + repeated TestTestNull data_list = 1 [packed = false]; +} +message TestTbDemoPrimitive { + repeated TestDemoPrimitiveTypesTable data_list = 1 [packed = false]; +} +message TestTbTestString { + repeated TestTestString data_list = 1 [packed = false]; +} +message TestTbDemoGroup { + repeated TestDemoGroup data_list = 1 [packed = false]; +} +message TestTbTestGlobal { + repeated TestTestGlobal data_list = 1 [packed = false]; +} +message TestTbTestBeRef { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestBeRef2 { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestRef { + repeated TestTestRef data_list = 1 [packed = false]; +} +message TestTbTestSize { + repeated TestTestSize data_list = 1 [packed = false]; +} +message TestTbTestSet { + repeated TestTestSet data_list = 1 [packed = false]; +} +message TestTbDetectCsvEncoding { + repeated TestDetectEncoding data_list = 1 [packed = false]; +} +message TestTbItem2 { + repeated TestItemBase data_list = 1 [packed = false]; +} +message TestTbTestIndex { + repeated TestTestIndex data_list = 1 [packed = false]; +} +message TestTbTestMap { + repeated TestTestMap data_list = 1 [packed = false]; +} +message TestTbExcelFromJson { + repeated TestExcelFromJson data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable1 { + repeated TestCompositeJsonTable1 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable2 { + repeated TestCompositeJsonTable2 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable3 { + repeated TestCompositeJsonTable3 data_list = 1 [packed = false]; +} +message TestTbExcelFromJsonMultiRow { + repeated TestExcelFromJsonMultiRow data_list = 1 [packed = false]; +} +message TestTbTestScriptableObject { + repeated TestTestScriptableObject data_list = 1 [packed = false]; +} +message TestTbTestMapper { + repeated TestTestMapper data_list = 1 [packed = false]; +} +message TestTbDefineFromExcel2 { + repeated DefineFromExcel2 data_list = 1 [packed = false]; +} + + diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/any.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/any.proto new file mode 100644 index 00000000..eff44e50 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/any.proto @@ -0,0 +1,162 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/known/anypb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "AnyProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// `Any` contains an arbitrary serialized protocol buffer message along with a +// URL that describes the type of the serialized message. +// +// Protobuf library provides support to pack/unpack Any values in the form +// of utility functions or additional generated methods of the Any type. +// +// Example 1: Pack and unpack a message in C++. +// +// Foo foo = ...; +// Any any; +// any.PackFrom(foo); +// ... +// if (any.UnpackTo(&foo)) { +// ... +// } +// +// Example 2: Pack and unpack a message in Java. +// +// Foo foo = ...; +// Any any = Any.pack(foo); +// ... +// if (any.is(Foo.class)) { +// foo = any.unpack(Foo.class); +// } +// // or ... +// if (any.isSameTypeAs(Foo.getDefaultInstance())) { +// foo = any.unpack(Foo.getDefaultInstance()); +// } +// +// Example 3: Pack and unpack a message in Python. +// +// foo = Foo(...) +// any = Any() +// any.Pack(foo) +// ... +// if any.Is(Foo.DESCRIPTOR): +// any.Unpack(foo) +// ... +// +// Example 4: Pack and unpack a message in Go +// +// foo := &pb.Foo{...} +// any, err := anypb.New(foo) +// if err != nil { +// ... +// } +// ... +// foo := &pb.Foo{} +// if err := any.UnmarshalTo(foo); err != nil { +// ... +// } +// +// The pack methods provided by protobuf library will by default use +// 'type.googleapis.com/full.type.name' as the type URL and the unpack +// methods only use the fully qualified type name after the last '/' +// in the type URL, for example "foo.bar.com/x/y.z" will yield type +// name "y.z". +// +// JSON +// ==== +// The JSON representation of an `Any` value uses the regular +// representation of the deserialized, embedded message, with an +// additional field `@type` which contains the type URL. Example: +// +// package google.profile; +// message Person { +// string first_name = 1; +// string last_name = 2; +// } +// +// { +// "@type": "type.googleapis.com/google.profile.Person", +// "firstName": , +// "lastName": +// } +// +// If the embedded message type is well-known and has a custom JSON +// representation, that representation will be embedded adding a field +// `value` which holds the custom JSON in addition to the `@type` +// field. Example (for message [google.protobuf.Duration][]): +// +// { +// "@type": "type.googleapis.com/google.protobuf.Duration", +// "value": "1.212s" +// } +// +message Any { + // A URL/resource name that uniquely identifies the type of the serialized + // protocol buffer message. This string must contain at least + // one "/" character. The last segment of the URL's path must represent + // the fully qualified name of the type (as in + // `path/google.protobuf.Duration`). The name should be in a canonical form + // (e.g., leading "." is not accepted). + // + // In practice, teams usually precompile into the binary all types that they + // expect it to use in the context of Any. However, for URLs which use the + // scheme `http`, `https`, or no scheme, one can optionally set up a type + // server that maps type URLs to message definitions as follows: + // + // * If no scheme is provided, `https` is assumed. + // * An HTTP GET on the URL must yield a [google.protobuf.Type][] + // value in binary format, or produce an error. + // * Applications are allowed to cache lookup results based on the + // URL, or have them precompiled into a binary to avoid any + // lookup. Therefore, binary compatibility needs to be preserved + // on changes to types. (Use versioned type names to manage + // breaking changes.) + // + // Note: this functionality is not currently available in the official + // protobuf release, and it is not used for type URLs beginning with + // type.googleapis.com. As of May 2023, there are no widely used type server + // implementations and no plans to implement one. + // + // Schemes other than `http`, `https` (or the empty scheme) might be + // used with implementation specific semantics. + // + string type_url = 1; + + // Must be a valid serialized protocol buffer of the above specified type. + bytes value = 2; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/api.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/api.proto new file mode 100644 index 00000000..42223516 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/api.proto @@ -0,0 +1,207 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +import "google/protobuf/source_context.proto"; +import "google/protobuf/type.proto"; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "ApiProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/apipb"; + +// Api is a light-weight descriptor for an API Interface. +// +// Interfaces are also described as "protocol buffer services" in some contexts, +// such as by the "service" keyword in a .proto file, but they are different +// from API Services, which represent a concrete implementation of an interface +// as opposed to simply a description of methods and bindings. They are also +// sometimes simply referred to as "APIs" in other contexts, such as the name of +// this message itself. See https://cloud.google.com/apis/design/glossary for +// detailed terminology. +message Api { + // The fully qualified name of this interface, including package name + // followed by the interface's simple name. + string name = 1; + + // The methods of this interface, in unspecified order. + repeated Method methods = 2; + + // Any metadata attached to the interface. + repeated Option options = 3; + + // A version string for this interface. If specified, must have the form + // `major-version.minor-version`, as in `1.10`. If the minor version is + // omitted, it defaults to zero. If the entire version field is empty, the + // major version is derived from the package name, as outlined below. If the + // field is not empty, the version in the package name will be verified to be + // consistent with what is provided here. + // + // The versioning schema uses [semantic + // versioning](http://semver.org) where the major version number + // indicates a breaking change and the minor version an additive, + // non-breaking change. Both version numbers are signals to users + // what to expect from different versions, and should be carefully + // chosen based on the product plan. + // + // The major version is also reflected in the package name of the + // interface, which must end in `v`, as in + // `google.feature.v1`. For major versions 0 and 1, the suffix can + // be omitted. Zero major versions must only be used for + // experimental, non-GA interfaces. + // + string version = 4; + + // Source context for the protocol buffer service represented by this + // message. + SourceContext source_context = 5; + + // Included interfaces. See [Mixin][]. + repeated Mixin mixins = 6; + + // The source syntax of the service. + Syntax syntax = 7; +} + +// Method represents a method of an API interface. +message Method { + // The simple name of this method. + string name = 1; + + // A URL of the input message type. + string request_type_url = 2; + + // If true, the request is streamed. + bool request_streaming = 3; + + // The URL of the output message type. + string response_type_url = 4; + + // If true, the response is streamed. + bool response_streaming = 5; + + // Any metadata attached to the method. + repeated Option options = 6; + + // The source syntax of this method. + Syntax syntax = 7; +} + +// Declares an API Interface to be included in this interface. The including +// interface must redeclare all the methods from the included interface, but +// documentation and options are inherited as follows: +// +// - If after comment and whitespace stripping, the documentation +// string of the redeclared method is empty, it will be inherited +// from the original method. +// +// - Each annotation belonging to the service config (http, +// visibility) which is not set in the redeclared method will be +// inherited. +// +// - If an http annotation is inherited, the path pattern will be +// modified as follows. Any version prefix will be replaced by the +// version of the including interface plus the [root][] path if +// specified. +// +// Example of a simple mixin: +// +// package google.acl.v1; +// service AccessControl { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v1/{resource=**}:getAcl"; +// } +// } +// +// package google.storage.v2; +// service Storage { +// rpc GetAcl(GetAclRequest) returns (Acl); +// +// // Get a data record. +// rpc GetData(GetDataRequest) returns (Data) { +// option (google.api.http).get = "/v2/{resource=**}"; +// } +// } +// +// Example of a mixin configuration: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// +// The mixin construct implies that all methods in `AccessControl` are +// also declared with same name and request/response types in +// `Storage`. A documentation generator or annotation processor will +// see the effective `Storage.GetAcl` method after inherting +// documentation and annotations as follows: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/{resource=**}:getAcl"; +// } +// ... +// } +// +// Note how the version in the path pattern changed from `v1` to `v2`. +// +// If the `root` field in the mixin is specified, it should be a +// relative path under which inherited HTTP paths are placed. Example: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// root: acls +// +// This implies the following inherited HTTP annotation: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; +// } +// ... +// } +message Mixin { + // The fully qualified name of the interface which is included. + string name = 1; + + // If non-empty specifies a path under which inherited HTTP paths + // are rooted. + string root = 2; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/compiler/plugin.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/compiler/plugin.proto new file mode 100644 index 00000000..1a809868 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/compiler/plugin.proto @@ -0,0 +1,191 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// +// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is +// just a program that reads a CodeGeneratorRequest from stdin and writes a +// CodeGeneratorResponse to stdout. +// +// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead +// of dealing with the raw protocol defined here. +// +// A plugin executable needs only to be placed somewhere in the path. The +// plugin should be named "protoc-gen-$NAME", and will then be used when the +// flag "--${NAME}_out" is passed to protoc. + +syntax = "proto2"; + +package google.protobuf.compiler; +option java_package = "com.google.protobuf.compiler"; +option java_outer_classname = "PluginProtos"; + +option csharp_namespace = "Google.Protobuf.Compiler"; +option go_package = "google.golang.org/protobuf/types/pluginpb"; + +import "google/protobuf/descriptor.proto"; + +// The version number of protocol compiler. +message Version { + optional int32 major = 1; + optional int32 minor = 2; + optional int32 patch = 3; + // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should + // be empty for mainline stable releases. + optional string suffix = 4; +} + +// An encoded CodeGeneratorRequest is written to the plugin's stdin. +message CodeGeneratorRequest { + // The .proto files that were explicitly listed on the command-line. The + // code generator should generate code only for these files. Each file's + // descriptor will be included in proto_file, below. + repeated string file_to_generate = 1; + + // The generator parameter passed on the command-line. + optional string parameter = 2; + + // FileDescriptorProtos for all files in files_to_generate and everything + // they import. The files will appear in topological order, so each file + // appears before any file that imports it. + // + // Note: the files listed in files_to_generate will include runtime-retention + // options only, but all other files will include source-retention options. + // The source_file_descriptors field below is available in case you need + // source-retention options for files_to_generate. + // + // protoc guarantees that all proto_files will be written after + // the fields above, even though this is not technically guaranteed by the + // protobuf wire format. This theoretically could allow a plugin to stream + // in the FileDescriptorProtos and handle them one by one rather than read + // the entire set into memory at once. However, as of this writing, this + // is not similarly optimized on protoc's end -- it will store all fields in + // memory at once before sending them to the plugin. + // + // Type names of fields and extensions in the FileDescriptorProto are always + // fully qualified. + repeated FileDescriptorProto proto_file = 15; + + // File descriptors with all options, including source-retention options. + // These descriptors are only provided for the files listed in + // files_to_generate. + repeated FileDescriptorProto source_file_descriptors = 17; + + // The version number of protocol compiler. + optional Version compiler_version = 3; +} + +// The plugin writes an encoded CodeGeneratorResponse to stdout. +message CodeGeneratorResponse { + // Error message. If non-empty, code generation failed. The plugin process + // should exit with status code zero even if it reports an error in this way. + // + // This should be used to indicate errors in .proto files which prevent the + // code generator from generating correct code. Errors which indicate a + // problem in protoc itself -- such as the input CodeGeneratorRequest being + // unparseable -- should be reported by writing a message to stderr and + // exiting with a non-zero status code. + optional string error = 1; + + // A bitmask of supported features that the code generator supports. + // This is a bitwise "or" of values from the Feature enum. + optional uint64 supported_features = 2; + + // Sync with code_generator.h. + enum Feature { + FEATURE_NONE = 0; + FEATURE_PROTO3_OPTIONAL = 1; + FEATURE_SUPPORTS_EDITIONS = 2; + } + + // Represents a single generated file. + message File { + // The file name, relative to the output directory. The name must not + // contain "." or ".." components and must be relative, not be absolute (so, + // the file cannot lie outside the output directory). "/" must be used as + // the path separator, not "\". + // + // If the name is omitted, the content will be appended to the previous + // file. This allows the generator to break large files into small chunks, + // and allows the generated text to be streamed back to protoc so that large + // files need not reside completely in memory at one time. Note that as of + // this writing protoc does not optimize for this -- it will read the entire + // CodeGeneratorResponse before writing files to disk. + optional string name = 1; + + // If non-empty, indicates that the named file should already exist, and the + // content here is to be inserted into that file at a defined insertion + // point. This feature allows a code generator to extend the output + // produced by another code generator. The original generator may provide + // insertion points by placing special annotations in the file that look + // like: + // @@protoc_insertion_point(NAME) + // The annotation can have arbitrary text before and after it on the line, + // which allows it to be placed in a comment. NAME should be replaced with + // an identifier naming the point -- this is what other generators will use + // as the insertion_point. Code inserted at this point will be placed + // immediately above the line containing the insertion point (thus multiple + // insertions to the same point will come out in the order they were added). + // The double-@ is intended to make it unlikely that the generated code + // could contain things that look like insertion points by accident. + // + // For example, the C++ code generator places the following line in the + // .pb.h files that it generates: + // // @@protoc_insertion_point(namespace_scope) + // This line appears within the scope of the file's package namespace, but + // outside of any particular class. Another plugin can then specify the + // insertion_point "namespace_scope" to generate additional classes or + // other declarations that should be placed in this scope. + // + // Note that if the line containing the insertion point begins with + // whitespace, the same whitespace will be added to every line of the + // inserted text. This is useful for languages like Python, where + // indentation matters. In these languages, the insertion point comment + // should be indented the same amount as any inserted code will need to be + // in order to work correctly in that context. + // + // The code generator that generates the initial file and the one which + // inserts into it must both run as part of a single invocation of protoc. + // Code generators are executed in the order in which they appear on the + // command line. + // + // If |insertion_point| is present, |name| must also be present. + optional string insertion_point = 2; + + // The file contents. + optional string content = 15; + + // Information describing the file content being inserted. If an insertion + // point is used, this information will be appropriately offset and inserted + // into the code generation metadata for the generated files. + optional GeneratedCodeInfo generated_code_info = 16; + } + repeated File file = 15; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/descriptor.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/descriptor.proto new file mode 100644 index 00000000..5f148224 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/descriptor.proto @@ -0,0 +1,1157 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). + +syntax = "proto2"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/descriptorpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DescriptorProtos"; +option csharp_namespace = "Google.Protobuf.Reflection"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; + +// descriptor.proto must be optimized for speed because reflection-based +// algorithms don't work during bootstrapping. +option optimize_for = SPEED; + +// The protocol compiler can output a FileDescriptorSet containing the .proto +// files it parses. +message FileDescriptorSet { + repeated FileDescriptorProto file = 1; +} + +// Describes a complete .proto file. +message FileDescriptorProto { + optional string name = 1; // file name, relative to root of source tree + optional string package = 2; // e.g. "foo", "foo.bar", etc. + + // Names of files imported by this file. + repeated string dependency = 3; + // Indexes of the public imported files in the dependency list above. + repeated int32 public_dependency = 10; + // Indexes of the weak imported files in the dependency list. + // For Google-internal migration only. Do not use. + repeated int32 weak_dependency = 11; + + // All top-level definitions in this file. + repeated DescriptorProto message_type = 4; + repeated EnumDescriptorProto enum_type = 5; + repeated ServiceDescriptorProto service = 6; + repeated FieldDescriptorProto extension = 7; + + optional FileOptions options = 8; + + // This field contains optional information about the original source code. + // You may safely remove this entire field without harming runtime + // functionality of the descriptors -- the information is needed only by + // development tools. + optional SourceCodeInfo source_code_info = 9; + + // The syntax of the proto file. + // The supported values are "proto2", "proto3", and "editions". + // + // If `edition` is present, this value must be "editions". + optional string syntax = 12; + + // The edition of the proto file, which is an opaque string. + optional string edition = 13; +} + +// Describes a message type. +message DescriptorProto { + optional string name = 1; + + repeated FieldDescriptorProto field = 2; + repeated FieldDescriptorProto extension = 6; + + repeated DescriptorProto nested_type = 3; + repeated EnumDescriptorProto enum_type = 4; + + message ExtensionRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Exclusive. + + optional ExtensionRangeOptions options = 3; + } + repeated ExtensionRange extension_range = 5; + + repeated OneofDescriptorProto oneof_decl = 8; + + optional MessageOptions options = 7; + + // Range of reserved tag numbers. Reserved tag numbers may not be used by + // fields or extension ranges in the same message. Reserved ranges may + // not overlap. + message ReservedRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Exclusive. + } + repeated ReservedRange reserved_range = 9; + // Reserved field names, which may not be used by fields in the same message. + // A given name may only be reserved once. + repeated string reserved_name = 10; +} + +message ExtensionRangeOptions { + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + message Declaration { + // The extension number declared within the extension range. + optional int32 number = 1; + + // The fully-qualified name of the extension field. There must be a leading + // dot in front of the full name. + optional string full_name = 2; + + // The fully-qualified type name of the extension field. Unlike + // Metadata.type, Declaration.type must have a leading dot for messages + // and enums. + optional string type = 3; + + // If true, indicates that the number is reserved in the extension range, + // and any extension field with the number will fail to compile. Set this + // when a declared extension field is deleted. + optional bool reserved = 5; + + // If true, indicates that the extension must be defined as repeated. + // Otherwise the extension must be defined as optional. + optional bool repeated = 6; + + reserved 4; // removed is_repeated + } + + // For external users: DO NOT USE. We are in the process of open sourcing + // extension declaration and executing internal cleanups before it can be + // used externally. + repeated Declaration declaration = 2 [retention = RETENTION_SOURCE]; + + // Any features defined in the specific edition. + optional FeatureSet features = 50; + + // The verification state of the extension range. + enum VerificationState { + // All the extensions of the range must be declared. + DECLARATION = 0; + UNVERIFIED = 1; + } + + // The verification state of the range. + // TODO(b/278783756): flip the default to DECLARATION once all empty ranges + // are marked as UNVERIFIED. + optional VerificationState verification = 3 [default = UNVERIFIED]; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +// Describes a field within a message. +message FieldDescriptorProto { + enum Type { + // 0 is reserved for errors. + // Order is weird for historical reasons. + TYPE_DOUBLE = 1; + TYPE_FLOAT = 2; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + // negative values are likely. + TYPE_INT64 = 3; + TYPE_UINT64 = 4; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + // negative values are likely. + TYPE_INT32 = 5; + TYPE_FIXED64 = 6; + TYPE_FIXED32 = 7; + TYPE_BOOL = 8; + TYPE_STRING = 9; + // Tag-delimited aggregate. + // Group type is deprecated and not supported in proto3. However, Proto3 + // implementations should still be able to parse the group wire format and + // treat group fields as unknown fields. + TYPE_GROUP = 10; + TYPE_MESSAGE = 11; // Length-delimited aggregate. + + // New in version 2. + TYPE_BYTES = 12; + TYPE_UINT32 = 13; + TYPE_ENUM = 14; + TYPE_SFIXED32 = 15; + TYPE_SFIXED64 = 16; + TYPE_SINT32 = 17; // Uses ZigZag encoding. + TYPE_SINT64 = 18; // Uses ZigZag encoding. + } + + enum Label { + // 0 is reserved for errors + LABEL_OPTIONAL = 1; + LABEL_REQUIRED = 2; + LABEL_REPEATED = 3; + } + + optional string name = 1; + optional int32 number = 3; + optional Label label = 4; + + // If type_name is set, this need not be set. If both this and type_name + // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + optional Type type = 5; + + // For message and enum types, this is the name of the type. If the name + // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + // rules are used to find the type (i.e. first the nested types within this + // message are searched, then within the parent, on up to the root + // namespace). + optional string type_name = 6; + + // For extensions, this is the name of the type being extended. It is + // resolved in the same manner as type_name. + optional string extendee = 2; + + // For numeric types, contains the original text representation of the value. + // For booleans, "true" or "false". + // For strings, contains the default text contents (not escaped in any way). + // For bytes, contains the C escaped value. All bytes >= 128 are escaped. + optional string default_value = 7; + + // If set, gives the index of a oneof in the containing type's oneof_decl + // list. This field is a member of that oneof. + optional int32 oneof_index = 9; + + // JSON name of this field. The value is set by protocol compiler. If the + // user has set a "json_name" option on this field, that option's value + // will be used. Otherwise, it's deduced from the field's name by converting + // it to camelCase. + optional string json_name = 10; + + optional FieldOptions options = 8; + + // If true, this is a proto3 "optional". When a proto3 field is optional, it + // tracks presence regardless of field type. + // + // When proto3_optional is true, this field must be belong to a oneof to + // signal to old proto3 clients that presence is tracked for this field. This + // oneof is known as a "synthetic" oneof, and this field must be its sole + // member (each proto3 optional field gets its own synthetic oneof). Synthetic + // oneofs exist in the descriptor only, and do not generate any API. Synthetic + // oneofs must be ordered after all "real" oneofs. + // + // For message fields, proto3_optional doesn't create any semantic change, + // since non-repeated message fields always track presence. However it still + // indicates the semantic detail of whether the user wrote "optional" or not. + // This can be useful for round-tripping the .proto file. For consistency we + // give message fields a synthetic oneof also, even though it is not required + // to track presence. This is especially important because the parser can't + // tell if a field is a message or an enum, so it must always create a + // synthetic oneof. + // + // Proto2 optional fields do not set this flag, because they already indicate + // optional with `LABEL_OPTIONAL`. + optional bool proto3_optional = 17; +} + +// Describes a oneof. +message OneofDescriptorProto { + optional string name = 1; + optional OneofOptions options = 2; +} + +// Describes an enum type. +message EnumDescriptorProto { + optional string name = 1; + + repeated EnumValueDescriptorProto value = 2; + + optional EnumOptions options = 3; + + // Range of reserved numeric values. Reserved values may not be used by + // entries in the same enum. Reserved ranges may not overlap. + // + // Note that this is distinct from DescriptorProto.ReservedRange in that it + // is inclusive such that it can appropriately represent the entire int32 + // domain. + message EnumReservedRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Inclusive. + } + + // Range of reserved numeric values. Reserved numeric values may not be used + // by enum values in the same enum declaration. Reserved ranges may not + // overlap. + repeated EnumReservedRange reserved_range = 4; + + // Reserved enum value names, which may not be reused. A given name may only + // be reserved once. + repeated string reserved_name = 5; +} + +// Describes a value within an enum. +message EnumValueDescriptorProto { + optional string name = 1; + optional int32 number = 2; + + optional EnumValueOptions options = 3; +} + +// Describes a service. +message ServiceDescriptorProto { + optional string name = 1; + repeated MethodDescriptorProto method = 2; + + optional ServiceOptions options = 3; +} + +// Describes a method of a service. +message MethodDescriptorProto { + optional string name = 1; + + // Input and output type names. These are resolved in the same way as + // FieldDescriptorProto.type_name, but must refer to a message type. + optional string input_type = 2; + optional string output_type = 3; + + optional MethodOptions options = 4; + + // Identifies if client streams multiple client messages + optional bool client_streaming = 5 [default = false]; + // Identifies if server streams multiple server messages + optional bool server_streaming = 6 [default = false]; +} + +// =================================================================== +// Options + +// Each of the definitions above may have "options" attached. These are +// just annotations which may cause code to be generated slightly differently +// or may contain hints for code that manipulates protocol messages. +// +// Clients may define custom options as extensions of the *Options messages. +// These extensions may not yet be known at parsing time, so the parser cannot +// store the values in them. Instead it stores them in a field in the *Options +// message called uninterpreted_option. This field must have the same name +// across all *Options messages. We then use this field to populate the +// extensions when we build a descriptor, at which point all protos have been +// parsed and so all extensions are known. +// +// Extension numbers for custom options may be chosen as follows: +// * For options which will only be used within a single application or +// organization, or for experimental options, use field numbers 50000 +// through 99999. It is up to you to ensure that you do not use the +// same number for multiple options. +// * For options which will be published and used publicly by multiple +// independent entities, e-mail protobuf-global-extension-registry@google.com +// to reserve extension numbers. Simply provide your project name (e.g. +// Objective-C plugin) and your project website (if available) -- there's no +// need to explain how you intend to use them. Usually you only need one +// extension number. You can declare multiple options with only one extension +// number by putting them in a sub-message. See the Custom Options section of +// the docs for examples: +// https://developers.google.com/protocol-buffers/docs/proto#options +// If this turns out to be popular, a web service will be set up +// to automatically assign option numbers. + +message FileOptions { + + // Sets the Java package where classes generated from this .proto will be + // placed. By default, the proto package is used, but this is often + // inappropriate because proto packages do not normally start with backwards + // domain names. + optional string java_package = 1; + + // Controls the name of the wrapper Java class generated for the .proto file. + // That class will always contain the .proto file's getDescriptor() method as + // well as any top-level extensions defined in the .proto file. + // If java_multiple_files is disabled, then all the other classes from the + // .proto file will be nested inside the single wrapper outer class. + optional string java_outer_classname = 8; + + // If enabled, then the Java code generator will generate a separate .java + // file for each top-level message, enum, and service defined in the .proto + // file. Thus, these types will *not* be nested inside the wrapper class + // named by java_outer_classname. However, the wrapper class will still be + // generated to contain the file's getDescriptor() method as well as any + // top-level extensions defined in the file. + optional bool java_multiple_files = 10 [default = false]; + + // This option does nothing. + optional bool java_generate_equals_and_hash = 20 [deprecated=true]; + + // If set true, then the Java2 code generator will generate code that + // throws an exception whenever an attempt is made to assign a non-UTF-8 + // byte sequence to a string field. + // Message reflection will do the same. + // However, an extension field still accepts non-UTF-8 byte sequences. + // This option has no effect on when used with the lite runtime. + optional bool java_string_check_utf8 = 27 [default = false]; + + // Generated classes can be optimized for speed or code size. + enum OptimizeMode { + SPEED = 1; // Generate complete code for parsing, serialization, + // etc. + CODE_SIZE = 2; // Use ReflectionOps to implement these methods. + LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. + } + optional OptimizeMode optimize_for = 9 [default = SPEED]; + + // Sets the Go package where structs generated from this .proto will be + // placed. If omitted, the Go package will be derived from the following: + // - The basename of the package import path, if provided. + // - Otherwise, the package statement in the .proto file, if present. + // - Otherwise, the basename of the .proto file, without extension. + optional string go_package = 11; + + // Should generic services be generated in each language? "Generic" services + // are not specific to any particular RPC system. They are generated by the + // main code generators in each language (without additional plugins). + // Generic services were the only kind of service generation supported by + // early versions of google.protobuf. + // + // Generic services are now considered deprecated in favor of using plugins + // that generate code specific to your particular RPC system. Therefore, + // these default to false. Old code which depends on generic services should + // explicitly set them to true. + optional bool cc_generic_services = 16 [default = false]; + optional bool java_generic_services = 17 [default = false]; + optional bool py_generic_services = 18 [default = false]; + optional bool php_generic_services = 42 [default = false]; + + // Is this file deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for everything in the file, or it will be completely ignored; in the very + // least, this is a formalization for deprecating files. + optional bool deprecated = 23 [default = false]; + + // Enables the use of arenas for the proto messages in this file. This applies + // only to generated classes for C++. + optional bool cc_enable_arenas = 31 [default = true]; + + // Sets the objective c class prefix which is prepended to all objective c + // generated classes from this .proto. There is no default. + optional string objc_class_prefix = 36; + + // Namespace for generated classes; defaults to the package. + optional string csharp_namespace = 37; + + // By default Swift generators will take the proto package and CamelCase it + // replacing '.' with underscore and use that to prefix the types/symbols + // defined. When this options is provided, they will use this value instead + // to prefix the types/symbols defined. + optional string swift_prefix = 39; + + // Sets the php class prefix which is prepended to all php generated classes + // from this .proto. Default is empty. + optional string php_class_prefix = 40; + + // Use this option to change the namespace of php generated classes. Default + // is empty. When this option is empty, the package name will be used for + // determining the namespace. + optional string php_namespace = 41; + + // Use this option to change the namespace of php generated metadata classes. + // Default is empty. When this option is empty, the proto file name will be + // used for determining the namespace. + optional string php_metadata_namespace = 44; + + // Use this option to change the package of ruby generated classes. Default + // is empty. When this option is not set, the package name will be used for + // determining the ruby package. + optional string ruby_package = 45; + + // Any features defined in the specific edition. + optional FeatureSet features = 50; + + // The parser stores options it doesn't recognize here. + // See the documentation for the "Options" section above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. + // See the documentation for the "Options" section above. + extensions 1000 to max; + + reserved 38; +} + +message MessageOptions { + // Set true to use the old proto1 MessageSet wire format for extensions. + // This is provided for backwards-compatibility with the MessageSet wire + // format. You should not use this for any other reason: It's less + // efficient, has fewer features, and is more complicated. + // + // The message must be defined exactly as follows: + // message Foo { + // option message_set_wire_format = true; + // extensions 4 to max; + // } + // Note that the message cannot have any defined fields; MessageSets only + // have extensions. + // + // All extensions of your type must be singular messages; e.g. they cannot + // be int32s, enums, or repeated messages. + // + // Because this is an option, the above two restrictions are not enforced by + // the protocol compiler. + optional bool message_set_wire_format = 1 [default = false]; + + // Disables the generation of the standard "descriptor()" accessor, which can + // conflict with a field of the same name. This is meant to make migration + // from proto1 easier; new code should avoid fields named "descriptor". + optional bool no_standard_descriptor_accessor = 2 [default = false]; + + // Is this message deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the message, or it will be completely ignored; in the very least, + // this is a formalization for deprecating messages. + optional bool deprecated = 3 [default = false]; + + reserved 4, 5, 6; + + // NOTE: Do not set the option in .proto files. Always use the maps syntax + // instead. The option should only be implicitly set by the proto compiler + // parser. + // + // Whether the message is an automatically generated map entry type for the + // maps field. + // + // For maps fields: + // map map_field = 1; + // The parsed descriptor looks like: + // message MapFieldEntry { + // option map_entry = true; + // optional KeyType key = 1; + // optional ValueType value = 2; + // } + // repeated MapFieldEntry map_field = 1; + // + // Implementations may choose not to generate the map_entry=true message, but + // use a native map in the target language to hold the keys and values. + // The reflection APIs in such implementations still need to work as + // if the field is a repeated message field. + optional bool map_entry = 7; + + reserved 8; // javalite_serializable + reserved 9; // javanano_as_lite + + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // + // This should only be used as a temporary measure against broken builds due + // to the change in behavior for JSON field name conflicts. + // + // TODO(b/261750190) This is legacy behavior we plan to remove once downstream + // teams have had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 12; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message FieldOptions { + // The ctype option instructs the C++ code generator to use a different + // representation of the field than it normally would. See the specific + // options below. This option is only implemented to support use of + // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of + // type "bytes" in the open source release -- sorry, we'll try to include + // other types in a future version! + optional CType ctype = 1 [default = STRING]; + enum CType { + // Default mode. + STRING = 0; + + // The option [ctype=CORD] may be applied to a non-repeated field of type + // "bytes". It indicates that in C++, the data should be stored in a Cord + // instead of a string. For very large strings, this may reduce memory + // fragmentation. It may also allow better performance when parsing from a + // Cord, or when parsing with aliasing enabled, as the parsed Cord may then + // alias the original buffer. + CORD = 1; + + STRING_PIECE = 2; + } + // The packed option can be enabled for repeated primitive fields to enable + // a more efficient representation on the wire. Rather than repeatedly + // writing the tag and type for each element, the entire array is encoded as + // a single length-delimited blob. In proto3, only explicit setting it to + // false will avoid using packed encoding. + optional bool packed = 2; + + // The jstype option determines the JavaScript type used for values of the + // field. The option is permitted only for 64 bit integral and fixed types + // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + // is represented as JavaScript string, which avoids loss of precision that + // can happen when a large value is converted to a floating point JavaScript. + // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + // use the JavaScript "number" type. The behavior of the default option + // JS_NORMAL is implementation dependent. + // + // This option is an enum to permit additional types to be added, e.g. + // goog.math.Integer. + optional JSType jstype = 6 [default = JS_NORMAL]; + enum JSType { + // Use the default type. + JS_NORMAL = 0; + + // Use JavaScript strings. + JS_STRING = 1; + + // Use JavaScript numbers. + JS_NUMBER = 2; + } + + // Should this field be parsed lazily? Lazy applies only to message-type + // fields. It means that when the outer message is initially parsed, the + // inner message's contents will not be parsed but instead stored in encoded + // form. The inner message will actually be parsed when it is first accessed. + // + // This is only a hint. Implementations are free to choose whether to use + // eager or lazy parsing regardless of the value of this option. However, + // setting this option true suggests that the protocol author believes that + // using lazy parsing on this field is worth the additional bookkeeping + // overhead typically needed to implement it. + // + // This option does not affect the public interface of any generated code; + // all method signatures remain the same. Furthermore, thread-safety of the + // interface is not affected by this option; const methods remain safe to + // call from multiple threads concurrently, while non-const methods continue + // to require exclusive access. + // + // Note that implementations may choose not to check required fields within + // a lazy sub-message. That is, calling IsInitialized() on the outer message + // may return true even if the inner message has missing required fields. + // This is necessary because otherwise the inner message would have to be + // parsed in order to perform the check, defeating the purpose of lazy + // parsing. An implementation which chooses not to check required fields + // must be consistent about it. That is, for any particular sub-message, the + // implementation must either *always* check its required fields, or *never* + // check its required fields, regardless of whether or not the message has + // been parsed. + // + // As of May 2022, lazy verifies the contents of the byte stream during + // parsing. An invalid byte stream will cause the overall parsing to fail. + optional bool lazy = 5 [default = false]; + + // unverified_lazy does no correctness checks on the byte stream. This should + // only be used where lazy with verification is prohibitive for performance + // reasons. + optional bool unverified_lazy = 15 [default = false]; + + // Is this field deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for accessors, or it will be completely ignored; in the very least, this + // is a formalization for deprecating fields. + optional bool deprecated = 3 [default = false]; + + // For Google-internal migration only. Do not use. + optional bool weak = 10 [default = false]; + + // Indicate that the field value should not be printed out when using debug + // formats, e.g. when the field contains sensitive credentials. + optional bool debug_redact = 16 [default = false]; + + // If set to RETENTION_SOURCE, the option will be omitted from the binary. + // Note: as of January 2023, support for this is in progress and does not yet + // have an effect (b/264593489). + enum OptionRetention { + RETENTION_UNKNOWN = 0; + RETENTION_RUNTIME = 1; + RETENTION_SOURCE = 2; + } + + optional OptionRetention retention = 17; + + // This indicates the types of entities that the field may apply to when used + // as an option. If it is unset, then the field may be freely used as an + // option on any kind of entity. Note: as of January 2023, support for this is + // in progress and does not yet have an effect (b/264593489). + enum OptionTargetType { + TARGET_TYPE_UNKNOWN = 0; + TARGET_TYPE_FILE = 1; + TARGET_TYPE_EXTENSION_RANGE = 2; + TARGET_TYPE_MESSAGE = 3; + TARGET_TYPE_FIELD = 4; + TARGET_TYPE_ONEOF = 5; + TARGET_TYPE_ENUM = 6; + TARGET_TYPE_ENUM_ENTRY = 7; + TARGET_TYPE_SERVICE = 8; + TARGET_TYPE_METHOD = 9; + } + + repeated OptionTargetType targets = 19; + + message EditionDefault { + optional string edition = 1; + optional string value = 2; // Textproto value. + } + repeated EditionDefault edition_defaults = 20; + + // Any features defined in the specific edition. + optional FeatureSet features = 21; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; + + reserved 4; // removed jtype + reserved 18; // reserve target, target_obsolete_do_not_use +} + +message OneofOptions { + // Any features defined in the specific edition. + optional FeatureSet features = 1; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumOptions { + + // Set this option to true to allow mapping different tag names to the same + // value. + optional bool allow_alias = 2; + + // Is this enum deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum, or it will be completely ignored; in the very least, this + // is a formalization for deprecating enums. + optional bool deprecated = 3 [default = false]; + + reserved 5; // javanano_as_lite + + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // TODO(b/261750190) Remove this legacy behavior once downstream teams have + // had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 7; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumValueOptions { + // Is this enum value deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum value, or it will be completely ignored; in the very least, + // this is a formalization for deprecating enum values. + optional bool deprecated = 1 [default = false]; + + // Any features defined in the specific edition. + optional FeatureSet features = 2; + + // Indicate that fields annotated with this enum value should not be printed + // out when using debug formats, e.g. when the field contains sensitive + // credentials. + optional bool debug_redact = 3 [default = false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message ServiceOptions { + + // Any features defined in the specific edition. + optional FeatureSet features = 34; + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this service deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the service, or it will be completely ignored; in the very least, + // this is a formalization for deprecating services. + optional bool deprecated = 33 [default = false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message MethodOptions { + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this method deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the method, or it will be completely ignored; in the very least, + // this is a formalization for deprecating methods. + optional bool deprecated = 33 [default = false]; + + // Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + // or neither? HTTP based RPC implementation may choose GET verb for safe + // methods, and PUT verb for idempotent methods instead of the default POST. + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0; + NO_SIDE_EFFECTS = 1; // implies idempotent + IDEMPOTENT = 2; // idempotent, but may have side effects + } + optional IdempotencyLevel idempotency_level = 34 + [default = IDEMPOTENCY_UNKNOWN]; + + // Any features defined in the specific edition. + optional FeatureSet features = 35; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +// A message representing a option the parser does not recognize. This only +// appears in options protos created by the compiler::Parser class. +// DescriptorPool resolves these when building Descriptor objects. Therefore, +// options protos in descriptor objects (e.g. returned by Descriptor::options(), +// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +// in them. +message UninterpretedOption { + // The name of the uninterpreted option. Each string represents a segment in + // a dot-separated name. is_extension is true iff a segment represents an + // extension (denoted with parentheses in options specs in .proto files). + // E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents + // "foo.(bar.baz).moo". + message NamePart { + required string name_part = 1; + required bool is_extension = 2; + } + repeated NamePart name = 2; + + // The value of the uninterpreted option, in whatever type the tokenizer + // identified it as during parsing. Exactly one of these should be set. + optional string identifier_value = 3; + optional uint64 positive_int_value = 4; + optional int64 negative_int_value = 5; + optional double double_value = 6; + optional bytes string_value = 7; + optional string aggregate_value = 8; +} + +// =================================================================== +// Features + +// TODO(b/274655146) Enums in C++ gencode (and potentially other languages) are +// not well scoped. This means that each of the feature enums below can clash +// with each other. The short names we've chosen maximize call-site +// readability, but leave us very open to this scenario. A future feature will +// be designed and implemented to handle this, hopefully before we ever hit a +// conflict here. +message FeatureSet { + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0; + EXPLICIT = 1; + IMPLICIT = 2; + LEGACY_REQUIRED = 3; + } + optional FieldPresence field_presence = 1 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "EXPLICIT" } + ]; + + enum EnumType { + ENUM_TYPE_UNKNOWN = 0; + OPEN = 1; + CLOSED = 2; + } + optional EnumType enum_type = 2 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "OPEN" } + ]; + + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0; + PACKED = 1; + EXPANDED = 2; + } + optional RepeatedFieldEncoding repeated_field_encoding = 3 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "PACKED" } + ]; + + enum StringFieldValidation { + STRING_FIELD_VALIDATION_UNKNOWN = 0; + MANDATORY = 1; + HINT = 2; + NONE = 3; + } + optional StringFieldValidation string_field_validation = 4 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "MANDATORY" } + ]; + + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0; + LENGTH_PREFIXED = 1; + DELIMITED = 2; + } + optional MessageEncoding message_encoding = 5 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "LENGTH_PREFIXED" } + ]; + + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0; + ALLOW = 1; + LEGACY_BEST_EFFORT = 2; + } + optional JsonFormat json_format = 6 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_MESSAGE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "ALLOW" } + ]; + + optional FeatureSet raw_features = 999 [targets = TARGET_TYPE_UNKNOWN]; + + extensions 1000; // for Protobuf C++ + extensions 1001; // for Protobuf Java + + extensions 9995 to 9999; // For internal testing +} + +// =================================================================== +// Optional source code info + +// Encapsulates information about the original source file from which a +// FileDescriptorProto was generated. +message SourceCodeInfo { + // A Location identifies a piece of source code in a .proto file which + // corresponds to a particular definition. This information is intended + // to be useful to IDEs, code indexers, documentation generators, and similar + // tools. + // + // For example, say we have a file like: + // message Foo { + // optional string foo = 1; + // } + // Let's look at just the field definition: + // optional string foo = 1; + // ^ ^^ ^^ ^ ^^^ + // a bc de f ghi + // We have the following locations: + // span path represents + // [a,i) [ 4, 0, 2, 0 ] The whole field definition. + // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + // + // Notes: + // - A location may refer to a repeated field itself (i.e. not to any + // particular index within it). This is used whenever a set of elements are + // logically enclosed in a single code segment. For example, an entire + // extend block (possibly containing multiple extension definitions) will + // have an outer location whose path refers to the "extensions" repeated + // field without an index. + // - Multiple locations may have the same path. This happens when a single + // logical declaration is spread out across multiple places. The most + // obvious example is the "extend" block again -- there may be multiple + // extend blocks in the same scope, each of which will have the same path. + // - A location's span is not always a subset of its parent's span. For + // example, the "extendee" of an extension declaration appears at the + // beginning of the "extend" block and is shared by all extensions within + // the block. + // - Just because a location's span is a subset of some other location's span + // does not mean that it is a descendant. For example, a "group" defines + // both a type and a field in a single declaration. Thus, the locations + // corresponding to the type and field and their components will overlap. + // - Code which tries to interpret locations should probably be designed to + // ignore those that it doesn't understand, as more types of locations could + // be recorded in the future. + repeated Location location = 1; + message Location { + // Identifies which part of the FileDescriptorProto was defined at this + // location. + // + // Each element is a field number or an index. They form a path from + // the root FileDescriptorProto to the place where the definition occurs. + // For example, this path: + // [ 4, 3, 2, 7, 1 ] + // refers to: + // file.message_type(3) // 4, 3 + // .field(7) // 2, 7 + // .name() // 1 + // This is because FileDescriptorProto.message_type has field number 4: + // repeated DescriptorProto message_type = 4; + // and DescriptorProto.field has field number 2: + // repeated FieldDescriptorProto field = 2; + // and FieldDescriptorProto.name has field number 1: + // optional string name = 1; + // + // Thus, the above path gives the location of a field name. If we removed + // the last element: + // [ 4, 3, 2, 7 ] + // this path refers to the whole field declaration (from the beginning + // of the label to the terminating semicolon). + repeated int32 path = 1 [packed = true]; + + // Always has exactly three or four elements: start line, start column, + // end line (optional, otherwise assumed same as start line), end column. + // These are packed into a single field for efficiency. Note that line + // and column numbers are zero-based -- typically you will want to add + // 1 to each before displaying to a user. + repeated int32 span = 2 [packed = true]; + + // If this SourceCodeInfo represents a complete declaration, these are any + // comments appearing before and after the declaration which appear to be + // attached to the declaration. + // + // A series of line comments appearing on consecutive lines, with no other + // tokens appearing on those lines, will be treated as a single comment. + // + // leading_detached_comments will keep paragraphs of comments that appear + // before (but not connected to) the current element. Each paragraph, + // separated by empty lines, will be one comment element in the repeated + // field. + // + // Only the comment content is provided; comment markers (e.g. //) are + // stripped out. For block comments, leading whitespace and an asterisk + // will be stripped from the beginning of each line other than the first. + // Newlines are included in the output. + // + // Examples: + // + // optional int32 foo = 1; // Comment attached to foo. + // // Comment attached to bar. + // optional int32 bar = 2; + // + // optional string baz = 3; + // // Comment attached to baz. + // // Another line attached to baz. + // + // // Comment attached to moo. + // // + // // Another line attached to moo. + // optional double moo = 4; + // + // // Detached comment for corge. This is not leading or trailing comments + // // to moo or corge because there are blank lines separating it from + // // both. + // + // // Detached comment for corge paragraph 2. + // + // optional string corge = 5; + // /* Block comment attached + // * to corge. Leading asterisks + // * will be removed. */ + // /* Block comment attached to + // * grault. */ + // optional int32 grault = 6; + // + // // ignored detached comments. + optional string leading_comments = 3; + optional string trailing_comments = 4; + repeated string leading_detached_comments = 6; + } +} + +// Describes the relationship between generated code and its original source +// file. A GeneratedCodeInfo message is associated with only one generated +// source file, but may contain references to different source .proto files. +message GeneratedCodeInfo { + // An Annotation connects some span of text in generated code to an element + // of its generating .proto file. + repeated Annotation annotation = 1; + message Annotation { + // Identifies the element in the original source .proto file. This field + // is formatted the same as SourceCodeInfo.Location.path. + repeated int32 path = 1 [packed = true]; + + // Identifies the filesystem path to the original source .proto. + optional string source_file = 2; + + // Identifies the starting offset in bytes in the generated code + // that relates to the identified object. + optional int32 begin = 3; + + // Identifies the ending offset in bytes in the generated code that + // relates to the identified object. The end offset should be one past + // the last relevant byte (so the length of the text = end - begin). + optional int32 end = 4; + + // Represents the identified object's effect on the element in the original + // .proto file. + enum Semantic { + // There is no effect or the effect is indescribable. + NONE = 0; + // The element is set or otherwise mutated. + SET = 1; + // An alias to the element is returned. + ALIAS = 2; + } + optional Semantic semantic = 5; + } +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/duration.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/duration.proto new file mode 100644 index 00000000..41f40c22 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/duration.proto @@ -0,0 +1,115 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/durationpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DurationProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Duration represents a signed, fixed-length span of time represented +// as a count of seconds and fractions of seconds at nanosecond +// resolution. It is independent of any calendar and concepts like "day" +// or "month". It is related to Timestamp in that the difference between +// two Timestamp values is a Duration and it can be added or subtracted +// from a Timestamp. Range is approximately +-10,000 years. +// +// # Examples +// +// Example 1: Compute Duration from two Timestamps in pseudo code. +// +// Timestamp start = ...; +// Timestamp end = ...; +// Duration duration = ...; +// +// duration.seconds = end.seconds - start.seconds; +// duration.nanos = end.nanos - start.nanos; +// +// if (duration.seconds < 0 && duration.nanos > 0) { +// duration.seconds += 1; +// duration.nanos -= 1000000000; +// } else if (duration.seconds > 0 && duration.nanos < 0) { +// duration.seconds -= 1; +// duration.nanos += 1000000000; +// } +// +// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +// +// Timestamp start = ...; +// Duration duration = ...; +// Timestamp end = ...; +// +// end.seconds = start.seconds + duration.seconds; +// end.nanos = start.nanos + duration.nanos; +// +// if (end.nanos < 0) { +// end.seconds -= 1; +// end.nanos += 1000000000; +// } else if (end.nanos >= 1000000000) { +// end.seconds += 1; +// end.nanos -= 1000000000; +// } +// +// Example 3: Compute Duration from datetime.timedelta in Python. +// +// td = datetime.timedelta(days=3, minutes=10) +// duration = Duration() +// duration.FromTimedelta(td) +// +// # JSON Mapping +// +// In JSON format, the Duration type is encoded as a string rather than an +// object, where the string ends in the suffix "s" (indicating seconds) and +// is preceded by the number of seconds, with nanoseconds expressed as +// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +// microsecond should be expressed in JSON format as "3.000001s". +// +message Duration { + // Signed seconds of the span of time. Must be from -315,576,000,000 + // to +315,576,000,000 inclusive. Note: these bounds are computed from: + // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + int64 seconds = 1; + + // Signed fractions of a second at nanosecond resolution of the span + // of time. Durations less than one second are represented with a 0 + // `seconds` field and a positive or negative `nanos` field. For durations + // of one second or more, a non-zero value for the `nanos` field must be + // of the same sign as the `seconds` field. Must be from -999,999,999 + // to +999,999,999 inclusive. + int32 nanos = 2; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/empty.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/empty.proto new file mode 100644 index 00000000..b87c89dc --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/empty.proto @@ -0,0 +1,51 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/known/emptypb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "EmptyProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option cc_enable_arenas = true; + +// A generic empty message that you can re-use to avoid defining duplicated +// empty messages in your APIs. A typical example is to use it as the request +// or the response type of an API method. For instance: +// +// service Foo { +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +// } +// +message Empty {} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/field_mask.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/field_mask.proto new file mode 100644 index 00000000..b28334b9 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/field_mask.proto @@ -0,0 +1,245 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "FieldMaskProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb"; +option cc_enable_arenas = true; + +// `FieldMask` represents a set of symbolic field paths, for example: +// +// paths: "f.a" +// paths: "f.b.d" +// +// Here `f` represents a field in some root message, `a` and `b` +// fields in the message found in `f`, and `d` a field found in the +// message in `f.b`. +// +// Field masks are used to specify a subset of fields that should be +// returned by a get operation or modified by an update operation. +// Field masks also have a custom JSON encoding (see below). +// +// # Field Masks in Projections +// +// When used in the context of a projection, a response message or +// sub-message is filtered by the API to only contain those fields as +// specified in the mask. For example, if the mask in the previous +// example is applied to a response message as follows: +// +// f { +// a : 22 +// b { +// d : 1 +// x : 2 +// } +// y : 13 +// } +// z: 8 +// +// The result will not contain specific values for fields x,y and z +// (their value will be set to the default, and omitted in proto text +// output): +// +// +// f { +// a : 22 +// b { +// d : 1 +// } +// } +// +// A repeated field is not allowed except at the last position of a +// paths string. +// +// If a FieldMask object is not present in a get operation, the +// operation applies to all fields (as if a FieldMask of all fields +// had been specified). +// +// Note that a field mask does not necessarily apply to the +// top-level response message. In case of a REST get operation, the +// field mask applies directly to the response, but in case of a REST +// list operation, the mask instead applies to each individual message +// in the returned resource list. In case of a REST custom method, +// other definitions may be used. Where the mask applies will be +// clearly documented together with its declaration in the API. In +// any case, the effect on the returned resource/resources is required +// behavior for APIs. +// +// # Field Masks in Update Operations +// +// A field mask in update operations specifies which fields of the +// targeted resource are going to be updated. The API is required +// to only change the values of the fields as specified in the mask +// and leave the others untouched. If a resource is passed in to +// describe the updated values, the API ignores the values of all +// fields not covered by the mask. +// +// If a repeated field is specified for an update operation, new values will +// be appended to the existing repeated field in the target resource. Note that +// a repeated field is only allowed in the last position of a `paths` string. +// +// If a sub-message is specified in the last position of the field mask for an +// update operation, then new value will be merged into the existing sub-message +// in the target resource. +// +// For example, given the target message: +// +// f { +// b { +// d: 1 +// x: 2 +// } +// c: [1] +// } +// +// And an update message: +// +// f { +// b { +// d: 10 +// } +// c: [2] +// } +// +// then if the field mask is: +// +// paths: ["f.b", "f.c"] +// +// then the result will be: +// +// f { +// b { +// d: 10 +// x: 2 +// } +// c: [1, 2] +// } +// +// An implementation may provide options to override this default behavior for +// repeated and message fields. +// +// In order to reset a field's value to the default, the field must +// be in the mask and set to the default value in the provided resource. +// Hence, in order to reset all fields of a resource, provide a default +// instance of the resource and set all fields in the mask, or do +// not provide a mask as described below. +// +// If a field mask is not present on update, the operation applies to +// all fields (as if a field mask of all fields has been specified). +// Note that in the presence of schema evolution, this may mean that +// fields the client does not know and has therefore not filled into +// the request will be reset to their default. If this is unwanted +// behavior, a specific service may require a client to always specify +// a field mask, producing an error if not. +// +// As with get operations, the location of the resource which +// describes the updated values in the request message depends on the +// operation kind. In any case, the effect of the field mask is +// required to be honored by the API. +// +// ## Considerations for HTTP REST +// +// The HTTP kind of an update operation which uses a field mask must +// be set to PATCH instead of PUT in order to satisfy HTTP semantics +// (PUT must only be used for full updates). +// +// # JSON Encoding of Field Masks +// +// In JSON, a field mask is encoded as a single string where paths are +// separated by a comma. Fields name in each path are converted +// to/from lower-camel naming conventions. +// +// As an example, consider the following message declarations: +// +// message Profile { +// User user = 1; +// Photo photo = 2; +// } +// message User { +// string display_name = 1; +// string address = 2; +// } +// +// In proto a field mask for `Profile` may look as such: +// +// mask { +// paths: "user.display_name" +// paths: "photo" +// } +// +// In JSON, the same mask is represented as below: +// +// { +// mask: "user.displayName,photo" +// } +// +// # Field Masks and Oneof Fields +// +// Field masks treat fields in oneofs just as regular fields. Consider the +// following message: +// +// message SampleMessage { +// oneof test_oneof { +// string name = 4; +// SubMessage sub_message = 9; +// } +// } +// +// The field mask can be: +// +// mask { +// paths: "name" +// } +// +// Or: +// +// mask { +// paths: "sub_message" +// } +// +// Note that oneof type names ("test_oneof" in this case) cannot be used in +// paths. +// +// ## Field Mask Verification +// +// The implementation of any API method which has a FieldMask type field in the +// request should verify the included field paths, and return an +// `INVALID_ARGUMENT` error if any path is unmappable. +message FieldMask { + // The set of field mask paths. + repeated string paths = 1; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/source_context.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/source_context.proto new file mode 100644 index 00000000..135f50fe --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/source_context.proto @@ -0,0 +1,48 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "SourceContextProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb"; + +// `SourceContext` represents information about the source of a +// protobuf element, like the file in which it is defined. +message SourceContext { + // The path-qualified name of the .proto file that contained the associated + // protobuf element. For example: `"google/protobuf/source_context.proto"`. + string file_name = 1; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/struct.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/struct.proto new file mode 100644 index 00000000..1bf0c1ad --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/struct.proto @@ -0,0 +1,95 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/structpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "StructProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// `Struct` represents a structured data value, consisting of fields +// which map to dynamically typed values. In some languages, `Struct` +// might be supported by a native representation. For example, in +// scripting languages like JS a struct is represented as an +// object. The details of that representation are described together +// with the proto support for the language. +// +// The JSON representation for `Struct` is JSON object. +message Struct { + // Unordered map of dynamically typed values. + map fields = 1; +} + +// `Value` represents a dynamically typed value which can be either +// null, a number, a string, a boolean, a recursive struct value, or a +// list of values. A producer of value is expected to set one of these +// variants. Absence of any variant indicates an error. +// +// The JSON representation for `Value` is JSON value. +message Value { + // The kind of value. + oneof kind { + // Represents a null value. + NullValue null_value = 1; + // Represents a double value. + double number_value = 2; + // Represents a string value. + string string_value = 3; + // Represents a boolean value. + bool bool_value = 4; + // Represents a structured value. + Struct struct_value = 5; + // Represents a repeated `Value`. + ListValue list_value = 6; + } +} + +// `NullValue` is a singleton enumeration to represent the null value for the +// `Value` type union. +// +// The JSON representation for `NullValue` is JSON `null`. +enum NullValue { + // Null value. + NULL_VALUE = 0; +} + +// `ListValue` is a wrapper around a repeated field of values. +// +// The JSON representation for `ListValue` is JSON array. +message ListValue { + // Repeated field of dynamically typed values. + repeated Value values = 1; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/timestamp.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/timestamp.proto new file mode 100644 index 00000000..fd0bc07d --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/timestamp.proto @@ -0,0 +1,144 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/timestamppb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TimestampProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +// second table is needed for interpretation, using a [24-hour linear +// smear](https://developers.google.com/time/smear). +// +// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +// restricting to that range, we ensure that we can convert to and from [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +// +// # Examples +// +// Example 1: Compute Timestamp from POSIX `time()`. +// +// Timestamp timestamp; +// timestamp.set_seconds(time(NULL)); +// timestamp.set_nanos(0); +// +// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +// +// struct timeval tv; +// gettimeofday(&tv, NULL); +// +// Timestamp timestamp; +// timestamp.set_seconds(tv.tv_sec); +// timestamp.set_nanos(tv.tv_usec * 1000); +// +// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +// +// FILETIME ft; +// GetSystemTimeAsFileTime(&ft); +// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +// +// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +// Timestamp timestamp; +// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +// +// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +// +// long millis = System.currentTimeMillis(); +// +// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +// .setNanos((int) ((millis % 1000) * 1000000)).build(); +// +// Example 5: Compute Timestamp from Java `Instant.now()`. +// +// Instant now = Instant.now(); +// +// Timestamp timestamp = +// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) +// .setNanos(now.getNano()).build(); +// +// Example 6: Compute Timestamp from current time in Python. +// +// timestamp = Timestamp() +// timestamp.GetCurrentTime() +// +// # JSON Mapping +// +// In JSON format, the Timestamp type is encoded as a string in the +// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +// where {year} is always expressed using four digits while {month}, {day}, +// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +// is required. A proto3 JSON serializer should always use UTC (as indicated by +// "Z") when printing the Timestamp type and a proto3 JSON parser should be +// able to accept both UTC and other timezones (as indicated by an offset). +// +// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +// 01:30 UTC on January 15, 2017. +// +// In JavaScript, one can convert a Date object to this format using the +// standard +// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +// method. In Python, a standard `datetime.datetime` object can be converted +// to this format using +// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() +// ) to obtain a formatter capable of generating timestamps in this format. +// +message Timestamp { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + int64 seconds = 1; + + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + int32 nanos = 2; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/type.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/type.proto new file mode 100644 index 00000000..48cb11e7 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/type.proto @@ -0,0 +1,193 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +import "google/protobuf/any.proto"; +import "google/protobuf/source_context.proto"; + +option cc_enable_arenas = true; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TypeProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/typepb"; + +// A protocol buffer message type. +message Type { + // The fully qualified message name. + string name = 1; + // The list of fields. + repeated Field fields = 2; + // The list of types appearing in `oneof` definitions in this type. + repeated string oneofs = 3; + // The protocol buffer options. + repeated Option options = 4; + // The source context. + SourceContext source_context = 5; + // The source syntax. + Syntax syntax = 6; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 7; +} + +// A single field of a message type. +message Field { + // Basic field types. + enum Kind { + // Field type unknown. + TYPE_UNKNOWN = 0; + // Field type double. + TYPE_DOUBLE = 1; + // Field type float. + TYPE_FLOAT = 2; + // Field type int64. + TYPE_INT64 = 3; + // Field type uint64. + TYPE_UINT64 = 4; + // Field type int32. + TYPE_INT32 = 5; + // Field type fixed64. + TYPE_FIXED64 = 6; + // Field type fixed32. + TYPE_FIXED32 = 7; + // Field type bool. + TYPE_BOOL = 8; + // Field type string. + TYPE_STRING = 9; + // Field type group. Proto2 syntax only, and deprecated. + TYPE_GROUP = 10; + // Field type message. + TYPE_MESSAGE = 11; + // Field type bytes. + TYPE_BYTES = 12; + // Field type uint32. + TYPE_UINT32 = 13; + // Field type enum. + TYPE_ENUM = 14; + // Field type sfixed32. + TYPE_SFIXED32 = 15; + // Field type sfixed64. + TYPE_SFIXED64 = 16; + // Field type sint32. + TYPE_SINT32 = 17; + // Field type sint64. + TYPE_SINT64 = 18; + } + + // Whether a field is optional, required, or repeated. + enum Cardinality { + // For fields with unknown cardinality. + CARDINALITY_UNKNOWN = 0; + // For optional fields. + CARDINALITY_OPTIONAL = 1; + // For required fields. Proto2 syntax only. + CARDINALITY_REQUIRED = 2; + // For repeated fields. + CARDINALITY_REPEATED = 3; + } + + // The field type. + Kind kind = 1; + // The field cardinality. + Cardinality cardinality = 2; + // The field number. + int32 number = 3; + // The field name. + string name = 4; + // The field type URL, without the scheme, for message or enumeration + // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. + string type_url = 6; + // The index of the field type in `Type.oneofs`, for message or enumeration + // types. The first type has index 1; zero means the type is not in the list. + int32 oneof_index = 7; + // Whether to use alternative packed wire representation. + bool packed = 8; + // The protocol buffer options. + repeated Option options = 9; + // The field JSON name. + string json_name = 10; + // The string value of the default value of this field. Proto2 syntax only. + string default_value = 11; +} + +// Enum type definition. +message Enum { + // Enum type name. + string name = 1; + // Enum value definitions. + repeated EnumValue enumvalue = 2; + // Protocol buffer options. + repeated Option options = 3; + // The source context. + SourceContext source_context = 4; + // The source syntax. + Syntax syntax = 5; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 6; +} + +// Enum value definition. +message EnumValue { + // Enum value name. + string name = 1; + // Enum value number. + int32 number = 2; + // Protocol buffer options. + repeated Option options = 3; +} + +// A protocol buffer option, which can be attached to a message, field, +// enumeration, etc. +message Option { + // The option's name. For protobuf built-in options (options defined in + // descriptor.proto), this is the short name. For example, `"map_entry"`. + // For custom options, it should be the fully-qualified name. For example, + // `"google.api.http"`. + string name = 1; + // The option's value packed in an Any message. If the value is a primitive, + // the corresponding wrapper type defined in google/protobuf/wrappers.proto + // should be used. If the value is an enum, it should be stored as an int32 + // value using the google.protobuf.Int32Value type. + Any value = 2; +} + +// The syntax in which a protocol buffer element is defined. +enum Syntax { + // Syntax `proto2`. + SYNTAX_PROTO2 = 0; + // Syntax `proto3`. + SYNTAX_PROTO3 = 1; + // Syntax `editions`. + SYNTAX_EDITIONS = 2; +} diff --git a/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/wrappers.proto b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/wrappers.proto new file mode 100644 index 00000000..1959fa55 --- /dev/null +++ b/luban_examples/Projects/Protobuf2_json/protoc/include/google/protobuf/wrappers.proto @@ -0,0 +1,123 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "WrappersProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// Wrapper message for `double`. +// +// The JSON representation for `DoubleValue` is JSON number. +message DoubleValue { + // The double value. + double value = 1; +} + +// Wrapper message for `float`. +// +// The JSON representation for `FloatValue` is JSON number. +message FloatValue { + // The float value. + float value = 1; +} + +// Wrapper message for `int64`. +// +// The JSON representation for `Int64Value` is JSON string. +message Int64Value { + // The int64 value. + int64 value = 1; +} + +// Wrapper message for `uint64`. +// +// The JSON representation for `UInt64Value` is JSON string. +message UInt64Value { + // The uint64 value. + uint64 value = 1; +} + +// Wrapper message for `int32`. +// +// The JSON representation for `Int32Value` is JSON number. +message Int32Value { + // The int32 value. + int32 value = 1; +} + +// Wrapper message for `uint32`. +// +// The JSON representation for `UInt32Value` is JSON number. +message UInt32Value { + // The uint32 value. + uint32 value = 1; +} + +// Wrapper message for `bool`. +// +// The JSON representation for `BoolValue` is JSON `true` and `false`. +message BoolValue { + // The bool value. + bool value = 1; +} + +// Wrapper message for `string`. +// +// The JSON representation for `StringValue` is JSON string. +message StringValue { + // The string value. + string value = 1; +} + +// Wrapper message for `bytes`. +// +// The JSON representation for `BytesValue` is JSON string. +message BytesValue { + // The bytes value. + bytes value = 1; +} diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/ai_tbbehaviortree.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/ai_tbbehaviortree.bytes new file mode 100644 index 00000000..05981387 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/ai_tbbehaviortree.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/ai_tbblackboard.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/ai_tbblackboard.bytes new file mode 100644 index 00000000..0c4e0daa Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/ai_tbblackboard.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/common_tbglobalconfig.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/common_tbglobalconfig.bytes new file mode 100644 index 00000000..3ceba751 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/common_tbglobalconfig.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/item_tbitem.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/item_tbitem.bytes new file mode 100644 index 00000000..cc6e9b53 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/item_tbitem.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/l10n_tbl10ndemo.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/l10n_tbl10ndemo.bytes new file mode 100644 index 00000000..af28a4aa Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/l10n_tbl10ndemo.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/l10n_tbpatchdemo.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/l10n_tbpatchdemo.bytes new file mode 100644 index 00000000..1deb664d Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/l10n_tbpatchdemo.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/tag_tbtesttag.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/tag_tbtesttag.bytes new file mode 100644 index 00000000..26112a8e Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/tag_tbtesttag.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable1.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable1.bytes new file mode 100644 index 00000000..459c2a12 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable1.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable2.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable2.bytes new file mode 100644 index 00000000..51a02be7 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable2.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable3.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable3.bytes new file mode 100644 index 00000000..985d6e23 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbcompositejsontable3.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdatafrommisc.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdatafrommisc.bytes new file mode 100644 index 00000000..82c968b5 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdatafrommisc.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdefinefromexcel2.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdefinefromexcel2.bytes new file mode 100644 index 00000000..4d56dc34 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdefinefromexcel2.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup.bytes new file mode 100644 index 00000000..0aa567c3 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_c.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_c.bytes new file mode 100644 index 00000000..0aa567c3 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_c.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_e.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_e.bytes new file mode 100644 index 00000000..0aa567c3 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_e.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_s.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_s.bytes new file mode 100644 index 00000000..0aa567c3 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemogroup_s.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemoprimitive.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemoprimitive.bytes new file mode 100644 index 00000000..be7a66d0 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdemoprimitive.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdetectcsvencoding.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdetectcsvencoding.bytes new file mode 100644 index 00000000..24781476 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbdetectcsvencoding.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbexcelfromjson.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbexcelfromjson.bytes new file mode 100644 index 00000000..ff770909 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbexcelfromjson.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbexcelfromjsonmultirow.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbexcelfromjsonmultirow.bytes new file mode 100644 index 00000000..95cee4ca Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbexcelfromjsonmultirow.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbfulltypes.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbfulltypes.bytes new file mode 100644 index 00000000..6f0cf944 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbfulltypes.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbitem2.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbitem2.bytes new file mode 100644 index 00000000..69afd6ed Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbitem2.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultiindexlist.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultiindexlist.bytes new file mode 100644 index 00000000..84adf48c Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultiindexlist.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultirowrecord.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultirowrecord.bytes new file mode 100644 index 00000000..6bbc18ed Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultirowrecord.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultirowtitle.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultirowtitle.bytes new file mode 100644 index 00000000..e69d923b Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultirowtitle.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultiunionindexlist.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultiunionindexlist.bytes new file mode 100644 index 00000000..613af74d Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbmultiunionindexlist.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbnotindexlist.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbnotindexlist.bytes new file mode 100644 index 00000000..9c8a28af Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbnotindexlist.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbsingleton.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbsingleton.bytes new file mode 100644 index 00000000..ad3a4a0c Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbsingleton.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestberef.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestberef.bytes new file mode 100644 index 00000000..11992b32 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestberef.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestberef2.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestberef2.bytes new file mode 100644 index 00000000..fbd674ac Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestberef2.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestglobal.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestglobal.bytes new file mode 100644 index 00000000..9101be6f Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestglobal.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestindex.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestindex.bytes new file mode 100644 index 00000000..ee6b13e0 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestindex.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmap.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmap.bytes new file mode 100644 index 00000000..e55becf8 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmap.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmapper.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmapper.bytes new file mode 100644 index 00000000..6637fc8a Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmapper.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmulticolumn.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmulticolumn.bytes new file mode 100644 index 00000000..cb530752 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestmulticolumn.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestnull.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestnull.bytes new file mode 100644 index 00000000..fb895606 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestnull.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestref.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestref.bytes new file mode 100644 index 00000000..55d0e6a1 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestref.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestscriptableobject.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestscriptableobject.bytes new file mode 100644 index 00000000..281d36c4 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestscriptableobject.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestset.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestset.bytes new file mode 100644 index 00000000..1cbf3839 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestset.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestsize.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestsize.bytes new file mode 100644 index 00000000..0a290d34 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbtestsize.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/bytes/test_tbteststring.bytes b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbteststring.bytes new file mode 100644 index 00000000..5de88ec7 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/bytes/test_tbteststring.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/gen_pb_code.bat b/luban_examples/Projects/Protobuf3_bin/gen_pb_code.bat new file mode 100644 index 00000000..81a5baec --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/gen_pb_code.bat @@ -0,0 +1,5 @@ + + +protoc\bin\protoc -I=pb_schemas --csharp_out=Gen pb_schemas\schema.proto + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/gen_pb_schema_data.bat b/luban_examples/Projects/Protobuf3_bin/gen_pb_schema_data.bat new file mode 100644 index 00000000..e9a4afc7 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/gen_pb_schema_data.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c protobuf3 ^ + -d protobuf-bin ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=pb_schemas ^ + -x outputDataDir=pb_datas ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/ai_tbbehaviortree.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/ai_tbbehaviortree.bytes new file mode 100644 index 00000000..bef52bac Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/ai_tbbehaviortree.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/ai_tbblackboard.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/ai_tbblackboard.bytes new file mode 100644 index 00000000..8d0d220f Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/ai_tbblackboard.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/common_tbglobalconfig.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/common_tbglobalconfig.bytes new file mode 100644 index 00000000..ddf1f125 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/common_tbglobalconfig.bytes @@ -0,0 +1,3 @@ + + 2( +0: \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/item_tbitem.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/item_tbitem.bytes new file mode 100644 index 00000000..24db176d Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/item_tbitem.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/l10n_tbl10ndemo.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/l10n_tbl10ndemo.bytes new file mode 100644 index 00000000..86753292 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/l10n_tbl10ndemo.bytes @@ -0,0 +1,17 @@ + + + /apple + + /apple + + /apple + +/apple + +/apple + +/apple + +/apple + +/apple \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/l10n_tbpatchdemo.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/l10n_tbpatchdemo.bytes new file mode 100644 index 00000000..e0b6d08d --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/l10n_tbpatchdemo.bytes @@ -0,0 +1,9 @@ + +  +  +  + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/tag_tbtesttag.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/tag_tbtesttag.bytes new file mode 100644 index 00000000..02bdc449 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/tag_tbtesttag.bytes @@ -0,0 +1,29 @@ + + 导出 +any + test + +d导出 + +导出 + +导出 + +导出 + +导出 + + 测试 + + +测试 + any + + 导出 + + 导出 +hany +ftest + export +any + test \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable1.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable1.bytes new file mode 100644 index 00000000..2f999cff --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable1.bytes @@ -0,0 +1,5 @@ + +aaa1 +xx2 +  aaa11 + xx12 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable2.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable2.bytes new file mode 100644 index 00000000..6f292300 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable2.bytes @@ -0,0 +1,3 @@ + +d + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable3.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable3.bytes new file mode 100644 index 00000000..804d07a9 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbcompositejsontable3.bytes @@ -0,0 +1,2 @@ + +o \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdatafrommisc.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdatafrommisc.bytes new file mode 100644 index 00000000..c132b925 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdatafrommisc.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdefinefromexcel2.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdefinefromexcel2.bytes new file mode 100644 index 00000000..2ed61719 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdefinefromexcel2.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdemogroup.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdemogroup.bytes new file mode 100644 index 00000000..91d9c9e4 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdemogroup.bytes @@ -0,0 +1,8 @@ + +2 + +2 + +2 + +2 diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdemoprimitive.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdemoprimitive.bytes new file mode 100644 index 00000000..e610a780 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdemoprimitive.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdetectcsvencoding.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdetectcsvencoding.bytes new file mode 100644 index 00000000..d05a79d4 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbdetectcsvencoding.bytes @@ -0,0 +1,13 @@ + + 测试编码 +还果园国要 +工枯加盟仍 +  测试编码 + 还果园国要 + 工枯加盟仍 + 测试编码 + 还果园国要 +!工枯加盟仍 + 测试编码 +还果园国要 +工枯加盟仍 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbexcelfromjson.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbexcelfromjson.bytes new file mode 100644 index 00000000..591f5d2d Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbexcelfromjson.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbexcelfromjsonmultirow.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbexcelfromjsonmultirow.bytes new file mode 100644 index 00000000..a9d1f030 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbexcelfromjsonmultirow.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbfulltypes.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbfulltypes.bytes new file mode 100644 index 00000000..5aeccdb0 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbfulltypes.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbitem2.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbitem2.bytes new file mode 100644 index 00000000..aff5d4a2 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbitem2.bytes @@ -0,0 +1,13 @@ + +ݸ 道具1道具1 d( +ݸ 道具2道具1 ( + 装备1装备1 (d +" 装备2 +装备2好 ( + 耳环耳环 d + 耳环耳环 d +!ݸ 道具10道具10 d( + +" 装备20 装备好 ( + + 帽子帽子 d \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultiindexlist.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultiindexlist.bytes new file mode 100644 index 00000000..c782a27a --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultiindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab3 *desc3 +ab4 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultirowrecord.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultirowrecord.bytes new file mode 100644 index 00000000..101bcaa7 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultirowrecord.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultirowtitle.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultirowtitle.bytes new file mode 100644 index 00000000..03763341 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultirowtitle.bytes @@ -0,0 +1,5 @@ + +;xxx +**22:  :: ! +C yyy +  "*  * 2  2 :pq:z{: \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultiunionindexlist.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultiunionindexlist.bytes new file mode 100644 index 00000000..1adf52ec --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbmultiunionindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab1 *desc3 +ab1 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbnotindexlist.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbnotindexlist.bytes new file mode 100644 index 00000000..bc5b3e49 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbnotindexlist.bytes @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbsingleton.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbsingleton.bytes new file mode 100644 index 00000000..ca1f4c25 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbsingleton.bytes @@ -0,0 +1,2 @@ + +#key_name" ھ \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestberef.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestberef.bytes new file mode 100644 index 00000000..dbf12607 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestberef.bytes @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + +  + + + diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestberef2.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestberef2.bytes new file mode 100644 index 00000000..57b70d64 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestberef2.bytes @@ -0,0 +1,20 @@ + +  + +  + +  + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestglobal.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestglobal.bytes new file mode 100644 index 00000000..fc7f5643 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestglobal.bytes @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestindex.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestindex.bytes new file mode 100644 index 00000000..0d4bd1d6 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestindex.bytes @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmap.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmap.bytes new file mode 100644 index 00000000..6127220b --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmap.bytes @@ -0,0 +1,4 @@ + +8" +aaa" +bbb** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmapper.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmapper.bytes new file mode 100644 index 00000000..dd2f03cf Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmapper.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmulticolumn.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmulticolumn.bytes new file mode 100644 index 00000000..00b03f37 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestmulticolumn.bytes @@ -0,0 +1,3 @@ + +" ! +" ! \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestnull.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestnull.bytes new file mode 100644 index 00000000..6fd0826b Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestnull.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestref.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestref.bytes new file mode 100644 index 00000000..403c6a53 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestref.bytes @@ -0,0 +1,7 @@ + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZ b jjrrx ab5 ab5 + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestscriptableobject.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestscriptableobject.bytes new file mode 100644 index 00000000..cd397970 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestscriptableobject.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestset.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestset.bytes new file mode 100644 index 00000000..fdb89222 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestset.bytes @@ -0,0 +1,3 @@ + +ab"*ab*cd00 +cd"*ab*cd0 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestsize.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestsize.bytes new file mode 100644 index 00000000..cbeca07e --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbtestsize.bytes @@ -0,0 +1,2 @@ + +"** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbteststring.bytes b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbteststring.bytes new file mode 100644 index 00000000..0eb51118 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_bin/pb_datas/test_tbteststring.bytes differ diff --git a/luban_examples/Projects/Protobuf3_bin/pb_schemas/schema.proto b/luban_examples/Projects/Protobuf3_bin/pb_schemas/schema.proto new file mode 100644 index 00000000..a457b9df --- /dev/null +++ b/luban_examples/Projects/Protobuf3_bin/pb_schemas/schema.proto @@ -0,0 +1,1054 @@ +syntax = "proto3"; + +package cfg; + +enum AiEExecutor { + AiEExecutor_CLIENT = 0; + AiEExecutor_SERVER = 1; +} +enum AiEKeyType { + AiEKeyType_BOOL = 1; + AiEKeyType_INT = 2; + AiEKeyType_FLOAT = 3; + AiEKeyType_STRING = 4; + AiEKeyType_VECTOR = 5; + AiEKeyType_ROTATOR = 6; + AiEKeyType_NAME = 7; + AiEKeyType_CLASS = 8; + AiEKeyType_ENUM = 9; + AiEKeyType_OBJECT = 10; +} +enum AiEFlowAbortMode { + AiEFlowAbortMode_NONE = 0; + AiEFlowAbortMode_LOWER_PRIORITY = 1; + AiEFlowAbortMode_SELF = 2; + AiEFlowAbortMode_BOTH = 3; +} +enum AiEFinishMode { + AiEFinishMode_IMMEDIATE = 0; + AiEFinishMode_DELAYED = 1; +} +enum AiENotifyObserverMode { + AiENotifyObserverMode_ON_VALUE_CHANGE = 0; + AiENotifyObserverMode_ON_RESULT_CHANGE = 1; +} +enum AiEOperator { + AiEOperator_IS_EQUAL_TO = 0; + AiEOperator_IS_NOT_EQUAL_TO = 1; + AiEOperator_IS_LESS_THAN = 2; + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3; + AiEOperator_IS_GREAT_THAN = 4; + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5; + AiEOperator_CONTAINS = 6; + AiEOperator_NOT_CONTAINS = 7; +} +enum AudioType { + AudioType_UNKNOWN = 0; + AudioType_ACC = 1; + AudioType_AIFF = 2; +} +enum CommonEBoolOperator { + CommonEBoolOperator_AND = 0; + CommonEBoolOperator_OR = 1; +} +enum ItemEItemQuality { + ItemEItemQuality_WHITE = 0; + ItemEItemQuality_GREEN = 1; + ItemEItemQuality_BLUE = 2; + ItemEItemQuality_PURPLE = 3; + ItemEItemQuality_GOLDEN = 4; +} +enum ItemECurrencyType { + ItemECurrencyType_DIAMOND = 1; + ItemECurrencyType_GOLD = 2; + ItemECurrencyType_SILVER = 3; + ItemECurrencyType_EXP = 4; + ItemECurrencyType_POWER_POINT = 5; +} +enum ItemEMajorType { + ItemEMajorType_CURRENCY = 1; + ItemEMajorType_CLOTH = 2; + ItemEMajorType_QUEST = 3; + ItemEMajorType_CONSUMABLES = 4; + ItemEMajorType_TREASURE_BOX = 5; + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6; + ItemEMajorType_HEAD_FRAME = 7; + ItemEMajorType_VOICE = 8; + ItemEMajorType_ACTION = 9; + ItemEMajorType_EXPANSION = 10; + ItemEMajorType_MATERIAL = 11; +} +enum ItemEMinorType { + ItemEMinorType_DIAMOND = 101; + ItemEMinorType_GOLD = 102; + ItemEMinorType_SILVER = 103; + ItemEMinorType_EXP = 104; + ItemEMinorType_POWER_POINT = 105; + ItemEMinorType_HAIR_STYLE = 210; + ItemEMinorType_COAT = 220; + ItemEMinorType_UPPER_JACKET = 230; + ItemEMinorType_TROUSERS = 241; + ItemEMinorType_SKIRT = 242; + ItemEMinorType_SOCKS = 250; + ItemEMinorType_SHOES = 260; + ItemEMinorType_HAIR_ACCESSORY = 271; + ItemEMinorType_HAT = 272; + ItemEMinorType_EARRING = 273; + ItemEMinorType_NECKLACE = 274; + ItemEMinorType_BRACELET = 275; + ItemEMinorType_HAIR_CLASP = 276; + ItemEMinorType_GLOVE = 277; + ItemEMinorType_HANDHELD_OBJECT = 278; + ItemEMinorType_SPECIAL = 279; + ItemEMinorType_BASE_COSMETIC = 281; + ItemEMinorType_EYEBROW_COSMETIC = 282; + ItemEMinorType_EYELASH = 283; + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284; + ItemEMinorType_LIP_COSMETIC = 285; + ItemEMinorType_SKIN_COLOR = 286; + ItemEMinorType_ONE_PIECE_DRESS = 290; + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291; + ItemEMinorType_QUEST = 301; + ItemEMinorType_CAST = 401; + ItemEMinorType_SWORD = 421; + ItemEMinorType_BOW_ARROW = 422; + ItemEMinorType_WANDS = 423; + ItemEMinorType_SPECIAL_TOOL = 424; + ItemEMinorType_FOOD = 403; + ItemEMinorType_TREASURE_BOX = 501; + ItemEMinorType_KEY = 502; + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503; + ItemEMinorType_ACHIEVEMENT = 601; + ItemEMinorType_TITLE = 602; + ItemEMinorType_AVATAR_FRAME = 701; + ItemEMinorType_VOICE = 801; + ItemEMinorType_IDLE_POSE = 901; + ItemEMinorType_PHOTO_POSE = 902; + ItemEMinorType_BAG = 1001; + ItemEMinorType_FRIEND_CAPACITY = 1002; + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101; + ItemEMinorType_DESIGN_DRAWING = 1102; +} +enum ItemEClothersStarQualityType { + ItemEClothersStarQualityType_ONE = 1; + ItemEClothersStarQualityType_TWO = 2; + ItemEClothersStarQualityType_THREE = 3; + ItemEClothersStarQualityType_FOUR = 4; + ItemEClothersStarQualityType_FIVE = 5; + ItemEClothersStarQualityType_SIX = 6; + ItemEClothersStarQualityType_SEVEN = 7; + ItemEClothersStarQualityType_EIGHT = 8; + ItemEClothersStarQualityType_NINE = 9; + ItemEClothersStarQualityType_TEN = 10; +} +enum ItemEClothersTag { + ItemEClothersTag_FANG_SHAI = 1; + ItemEClothersTag_WU_ZHE = 2; +} +enum ItemEUseType { + ItemEUseType_MANUAL = 0; + ItemEUseType_AUTO = 1; +} +enum ItemEClothesHidePartType { + ItemEClothesHidePartType_CHEST = 0; + ItemEClothesHidePartType_HEAD = 1; + ItemEClothesHidePartType_SPINE_UPPER = 2; + ItemEClothesHidePartType_SPINE_LOWER = 3; + ItemEClothesHidePartType_HIP = 4; + ItemEClothesHidePartType_LEG_UPPER = 5; + ItemEClothesHidePartType_LEG_MIDDLE = 6; + ItemEClothesHidePartType_LEG_LOWER = 7; +} +enum ItemEClothesPropertyType { + ItemEClothesPropertyType_JIAN_YUE = 1; + ItemEClothesPropertyType_HUA_LI = 2; + ItemEClothesPropertyType_KE_AI = 3; + ItemEClothesPropertyType_CHENG_SHU = 4; + ItemEClothesPropertyType_HUO_PO = 5; + ItemEClothesPropertyType_YOU_YA = 6; + ItemEClothesPropertyType_QING_CHUN = 7; + ItemEClothesPropertyType_XING_GAN = 8; + ItemEClothesPropertyType_QING_LIANG = 9; + ItemEClothesPropertyType_BAO_NUAN = 10; +} +enum TestDemoEnum { + TestDemoEnum_NONE = 0; + TestDemoEnum_A = 1; + TestDemoEnum_B = 2; + TestDemoEnum_C = 4; + TestDemoEnum_D = 5; +} +enum TestDemoFlag { + TestDemoFlag_A = 1; + TestDemoFlag_B = 2; + TestDemoFlag_C = 4; + TestDemoFlag_D = 8; +} +enum TestETestUeType { + TestETestUeType_WHITE = 0; + TestETestUeType_BLACK = 1; +} +enum TestETestEmptyEnum { + + TestETestEmptyEnum_EMPTY_PLACEHOLDER = 0; +} +enum TestETestEmptyEnum2 { + TestETestEmptyEnum2_SMALL_THAN_256 = 255; + TestETestEmptyEnum2_X_256 = 256; + TestETestEmptyEnum2_X_257 = 257; +} +enum TestETestQuality { + TestETestQuality_A = 1; + TestETestQuality_B = 2; + TestETestQuality_C = 3; + TestETestQuality_D = 4; +} +enum TestAccessFlag { + TestAccessFlag_WRITE = 1; + TestAccessFlag_READ = 2; + TestAccessFlag_TRUNCATE = 4; + TestAccessFlag_NEW = 8; + TestAccessFlag_READ_WRITE = 3; +} + +message AiBlackboard { + string name = 1 ; + string desc = 2 ; + string parent_name = 3 ; + repeated AiBlackboardKey keys = 4 [packed = false]; +} +message AiBlackboardKey { + string name = 1 ; + string desc = 2 ; + bool is_static = 3 ; + AiEKeyType type = 4 ; + string type_class_name = 5 ; +} +message AiBehaviorTree { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + string blackboard_id = 4 ; + AiComposeNode root = 5 ; +} +message AiNode { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiService { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + } +} +message AiUeSetDefaultFocus { + int32 id = 1 ; + string node_name = 2 ; + string keyboard_key = 3 ; +} +message AiExecuteTimeStatistic { + int32 id = 1 ; + string node_name = 2 ; +} +message AiChooseTarget { + int32 id = 1 ; + string node_name = 2 ; + string result_target_key = 3 ; +} +message AiKeepFaceTarget { + int32 id = 1 ; + string node_name = 2 ; + string target_actor_key = 3 ; +} +message AiGetOwnerPlayer { + int32 id = 1 ; + string node_name = 2 ; + string player_actor_key = 3 ; +} +message AiUpdateDailyBehaviorProps { + int32 id = 1 ; + string node_name = 2 ; + string satiety_key = 3 ; + string energy_key = 4 ; + string mood_key = 5 ; + string satiety_lower_threshold_key = 6 ; + string satiety_upper_threshold_key = 7 ; + string energy_lower_threshold_key = 8 ; + string energy_upper_threshold_key = 9 ; + string mood_lower_threshold_key = 10 ; + string mood_upper_threshold_key = 11 ; +} +message AiDecorator { + oneof value { + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + } +} +message AiUeLoop { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + int32 num_loops = 4 ; + bool infinite_loop = 5 ; + float infinite_loop_timeout_time = 6 ; +} +message AiUeCooldown { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + float cooldown_time = 4 ; +} +message AiUeTimeLimit { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + float limit_time = 4 ; +} +message AiUeBlackboard { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + AiENotifyObserverMode notify_observer = 4 ; + string blackboard_key = 5 ; + AiKeyQueryOperator key_query = 6 ; +} +message AiKeyQueryOperator { + oneof value { + AiIsSet IsSet = 1; + AiIsNotSet IsNotSet = 2; + AiBinaryOperator BinaryOperator = 3; + } +} +message AiIsSet { +} +message AiIsNotSet { +} +message AiBinaryOperator { + AiEOperator oper = 1 ; + AiKeyData data = 2 ; +} +message AiKeyData { + oneof value { + AiFloatKeyData FloatKeyData = 1; + AiIntKeyData IntKeyData = 2; + AiStringKeyData StringKeyData = 3; + AiBlackboardKeyData BlackboardKeyData = 4; + } +} +message AiFloatKeyData { + float value = 1 ; +} +message AiIntKeyData { + int32 value = 1 ; +} +message AiStringKeyData { + string value = 1 ; +} +message AiBlackboardKeyData { + string value = 1 ; +} +message AiUeForceSuccess { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; +} +message AiIsAtLocation { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + float acceptable_radius = 4 ; + string keyboard_key = 5 ; + bool inverse_condition = 6 ; +} +message AiDistanceLessThan { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + string actor1_key = 4 ; + string actor2_key = 5 ; + float distance = 6 ; + bool reverse_result = 7 ; +} +message AiFlowNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiComposeNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + } +} +message AiSequence { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSelector { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSimpleParallel { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + AiEFinishMode finish_mode = 5 ; + AiTask main_task = 6 ; + AiFlowNode background_node = 7 ; +} +message AiTask { + oneof value { + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiUeWait { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + float wait_time = 6 ; + float random_deviation = 7 ; +} +message AiUeWaitBlackboardTime { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string blackboard_key = 6 ; +} +message AiMoveToTarget { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string target_actor_key = 6 ; + float acceptable_radius = 7 ; +} +message AiChooseSkill { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string target_actor_key = 6 ; + string result_skill_id_key = 7 ; +} +message AiMoveToRandomLocation { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string origin_position_key = 6 ; + float radius = 7 ; +} +message AiMoveToLocation { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + float acceptable_radius = 6 ; +} +message AiDebugPrint { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string text = 6 ; +} +message CommonGlobalConfig { + int32 x1 = 1 ; + int32 x2 = 2 ; + int32 x3 = 3 ; + int32 x4 = 4 ; + int32 x5 = 5 ; + int32 x6 = 6 ; + repeated int32 x7 = 7 [packed = true]; +} +message ItemItem { + int32 id = 1 ; + string name = 2 ; + ItemEMinorType minor_type = 4 ; + ItemEItemQuality quality = 6 ; + string icon_backgroud = 8 ; + string icon_mask = 9 ; + string desc = 10 ; + int32 show_order = 11 ; +} +message L10nL10NDemo { + int32 id = 1 ; + string text = 2 ; +} +message L10nPatchDemo { + int32 id = 1 ; + int32 value = 2 ; +} +message TagTestTag { + int32 id = 1 ; + string value = 2 ; +} +message TestDemoType2 { + int32 x4 = 1 ; + bool x1 = 2 ; + int32 x2 = 3 ; + int32 x3 = 4 ; + int64 x5 = 5 ; + float x6 = 6 ; + double x7 = 7 ; + int32 x8_0 = 8 ; + int32 x8 = 9 ; + int64 x9 = 10 ; + string x10 = 11 ; + TestDemoType1 x12 = 12 ; + TestDemoEnum x13 = 13 ; + TestDemoDynamic x14 = 14 ; + string s1 = 15 ; + int64 t1 = 16 ; + repeated int32 k1 = 17 [packed = true]; + repeated int32 k2 = 18 [packed = true]; + repeated int32 k5 = 19 [packed = true]; + map k8 = 20 ; + repeated TestDemoE2 k9 = 21 [packed = false]; + repeated TestDemoDynamic k15 = 22 [packed = false]; +} +message TestDemoType1 { + int32 x1 = 1 ; +} +message TestDemoDynamic { + oneof value { + TestDemoD2 DemoD2 = 1; + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + TestDemoD5 DemoD5 = 4; + } +} +message TestDemoD2 { + int32 x1 = 1 ; + int32 x2 = 2 ; +} +message TestDemoD3 { + oneof value { + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + } +} +message TestDemoE1 { + int32 x1 = 1 ; + int32 x3 = 2 ; + int32 x4 = 3 ; +} +message TestLoginRoleInfo { + int32 x1 = 1 ; + int32 x3 = 2 ; + int64 role_id = 3 ; +} +message TestDemoD5 { + int32 x1 = 1 ; + TestDateTimeRange time = 2 ; +} +message TestDateTimeRange { + int64 start_time = 1 ; + int64 end_time = 2 ; +} +message TestDemoE2 { + optional int32 y1 = 1 ; + bool y2 = 2 ; +} +message TestDemoSingletonType { + int32 id = 1 ; + string name = 2 ; + TestDemoDynamic date = 3 ; +} +message TestNotIndexList { + int32 x = 1 ; + int32 y = 2 ; +} +message TestMultiUnionIndexList { + int32 id1 = 1 ; + int64 id2 = 2 ; + string id3 = 3 ; + int32 num = 4 ; + string desc = 5 ; +} +message TestMultiIndexList { + int32 id1 = 1 ; + int64 id2 = 2 ; + string id3 = 3 ; + int32 num = 4 ; + string desc = 5 ; +} +message TestMultiRowRecord { + int32 id = 1 ; + string name = 2 ; + repeated TestMultiRowType1 one_rows = 3 [packed = false]; + repeated TestMultiRowType1 multi_rows1 = 4 [packed = false]; + repeated TestMultiRowType1 multi_rows2 = 5 [packed = false]; + map multi_rows4 = 6 ; + repeated TestMultiRowType3 multi_rows5 = 7 [packed = false]; + map multi_rows6 = 8 ; + map multi_rows7 = 9 ; +} +message TestMultiRowType1 { + int32 id = 1 ; + int32 x = 2 ; +} +message TestMultiRowType2 { + int32 id = 1 ; + int32 x = 2 ; + float y = 3 ; +} +message TestMultiRowType3 { + int32 id = 1 ; + repeated TestMultiRowType1 items = 2 [packed = false]; +} +message TestTestMultiColumn { + int32 id = 1 ; + TestFoo a = 2 ; + TestFoo b = 3 ; + TestFoo c = 4 ; +} +message TestFoo { + int32 y1 = 1 ; + int32 y2 = 2 ; + int32 y3 = 3 ; +} +message TestMultiRowTitle { + int32 id = 1 ; + string name = 2 ; + TestH1 x1 = 3 ; + optional TestH2 x2_0 = 4 ; + repeated TestH2 x2 = 5 [packed = false]; + repeated TestH2 x3 = 6 [packed = false]; + repeated TestH2 x4 = 7 [packed = false]; +} +message TestH1 { + TestH2 y2 = 1 ; + int32 y3 = 2 ; +} +message TestH2 { + int32 z2 = 1 ; + int32 z3 = 2 ; +} +message TestTestNull { + int32 id = 1 ; + optional int32 x1 = 2 ; + optional TestDemoEnum x2 = 3 ; + optional TestDemoType1 x3 = 4 ; + optional TestDemoDynamic x4 = 5 ; + optional string s1 = 6 ; + optional string s2 = 7 ; +} +message TestDemoPrimitiveTypesTable { + bool x1 = 1 ; + int32 x2 = 2 ; + int32 x3 = 3 ; + int32 x4 = 4 ; + int64 x5 = 5 ; + float x6 = 6 ; + double x7 = 7 ; + string s1 = 8 ; + string s2 = 9 ; + vec2 v2 = 10 ; + vec3 v3 = 11 ; + vec4 v4 = 12 ; + int64 t1 = 13 ; +} +message vec2 { + float x = 1 ; + float y = 2 ; +} +message vec3 { + float x = 1 ; + float y = 2 ; + float z = 3 ; +} +message vec4 { + float x = 1 ; + float y = 2 ; + float z = 3 ; + float w = 4 ; +} +message TestTestString { + string id = 1 ; + string s1 = 2 ; + string s2 = 3 ; + TestCompactString cs1 = 4 ; + TestCompactString cs2 = 5 ; +} +message TestCompactString { + int32 id = 1 ; + string s2 = 2 ; + string s3 = 3 ; +} +message TestDemoGroup { + int32 id = 1 ; + TestInnerGroup x5 = 6 ; +} +message TestInnerGroup { + int32 y1 = 1 ; +} +message TestTestGlobal { + int32 unlock_equip = 1 ; + int32 unlock_hero = 2 ; +} +message TestTestBeRef { + int32 id = 1 ; + int32 count = 2 ; +} +message TestTestRef { + int32 id = 1 ; + int32 x1 = 2 ; + int32 x1_2 = 3 ; + int32 x2 = 4 ; + int32 x3 = 5 ; + int32 x4 = 6 ; + repeated int32 a1 = 7 [packed = true]; + repeated int32 a2 = 8 [packed = true]; + repeated int32 b1 = 9 [packed = true]; + repeated int32 b2 = 10 [packed = true]; + repeated int32 c1 = 11 [packed = true]; + repeated int32 c2 = 12 [packed = true]; + map d1 = 13 ; + map d2 = 14 ; + int32 e1 = 15 ; + int64 e2 = 16 ; + string e3 = 17 ; + int32 f1 = 18 ; + int64 f2 = 19 ; + string f3 = 20 ; + TestRefDynamicBase s1 = 21 ; +} +message TestRefDynamicBase { + oneof value { + TestRefBean RefBean = 1; + } +} +message TestRefBean { + int32 x = 1 ; + repeated int32 arr = 2 [packed = true]; +} +message TestTestSize { + int32 id = 1 ; + repeated int32 x1 = 2 [packed = true]; + repeated int32 x2 = 3 [packed = true]; + repeated int32 x3 = 4 [packed = true]; + map x4 = 5 ; +} +message TestTestSet { + int32 id = 1 ; + string x0 = 2 ; + repeated int32 x1 = 3 [packed = true]; + repeated int64 x2 = 4 [packed = true]; + repeated string x3 = 5 [packed = false]; + repeated TestDemoEnum x4 = 6 [packed = false]; +} +message TestDetectEncoding { + int32 id = 1 ; + string name = 2 ; +} +message TestItemBase { + oneof value { + TestItem Item = 1; + TestEquipment Equipment = 2; + TestDecorator Decorator = 3; + } +} +message TestItem { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + int32 num = 4 ; + int32 price = 5 ; +} +message TestEquipment { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + TestDemoEnum attr = 4 ; + int32 value = 5 ; +} +message TestDecorator { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + int32 duration = 4 ; +} +message TestTestIndex { + int32 id = 1 ; + repeated TestDemoType1 eles = 2 [packed = false]; +} +message TestTestMap { + int32 id = 1 ; + map x1 = 2 ; + map x2 = 3 ; + map x3 = 4 ; + map x4 = 5 ; +} +message TestExcelFromJson { + int32 x4 = 1 ; + bool x1 = 2 ; + int64 x5 = 3 ; + float x6 = 4 ; + string s1 = 5 ; + string s2 = 6 ; + int64 t1 = 7 ; + TestDemoType1 x12 = 8 ; + TestDemoEnum x13 = 9 ; + TestDemoDynamic x14 = 10 ; + repeated int32 k1 = 11 [packed = true]; + map k8 = 12 ; + repeated TestDemoE2 k9 = 13 [packed = false]; + repeated TestDemoDynamic k15 = 14 [packed = false]; +} +message TestCompositeJsonTable1 { + int32 id = 1 ; + string x = 2 ; +} +message TestCompositeJsonTable2 { + int32 id = 1 ; + int32 y = 2 ; +} +message TestCompositeJsonTable3 { + int32 a = 1 ; + int32 b = 2 ; +} +message TestExcelFromJsonMultiRow { + int32 id = 1 ; + int32 x = 2 ; + repeated TestTestRow items = 3 [packed = false]; +} +message TestTestRow { + int32 x = 1 ; + bool y = 2 ; + string z = 3 ; + TestTest3 a = 4 ; + repeated int32 b = 5 [packed = true]; +} +message TestTest3 { + int32 x = 1 ; + int32 y = 2 ; +} +message TestTestScriptableObject { + int32 id = 1 ; + string desc = 2 ; + float rate = 3 ; + int32 num = 4 ; + vec2 v2 = 5 ; + vec3 v3 = 6 ; + vec4 v4 = 7 ; +} +message TestTestMapper { + int32 id = 1 ; + AudioType audio_type = 2 ; + vec2 v2 = 3 ; +} +message DefineFromExcel2 { + int32 id = 1 ; + bool x1 = 2 ; + int64 x5 = 3 ; + float x6 = 4 ; + int32 x8 = 5 ; + string x10 = 6 ; + TestDemoEnum x13 = 7 ; + TestDemoFlag x13_2 = 8 ; + TestDemoDynamic x14 = 9 ; + TestShape x15 = 10 ; + vec2 v2 = 11 ; + int64 t1 = 12 ; + repeated int32 k1 = 13 [packed = true]; + repeated int32 k2 = 14 [packed = true]; + map k8 = 15 ; + repeated TestDemoE2 k9 = 16 [packed = false]; + repeated vec3 k10 = 17 [packed = false]; + repeated vec4 k11 = 18 [packed = false]; +} +message TestShape { + oneof value { + TestCircle Circle = 1; + Test2Rectangle Rectangle = 2; + } +} +message TestCircle { + float radius = 1 ; +} +message Test2Rectangle { + float width = 1 ; + float height = 2 ; +} + +message AiTbBlackboard { + repeated AiBlackboard data_list = 1 [packed = false]; +} +message AiTbBehaviorTree { + repeated AiBehaviorTree data_list = 1 [packed = false]; +} +message CommonTbGlobalConfig { + repeated CommonGlobalConfig data_list = 1 [packed = false]; +} +message ItemTbItem { + repeated ItemItem data_list = 1 [packed = false]; +} +message L10nTbL10NDemo { + repeated L10nL10NDemo data_list = 1 [packed = false]; +} +message L10nTbPatchDemo { + repeated L10nPatchDemo data_list = 1 [packed = false]; +} +message TagTbTestTag { + repeated TagTestTag data_list = 1 [packed = false]; +} +message TestTbFullTypes { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbSingleton { + repeated TestDemoSingletonType data_list = 1 [packed = false]; +} +message TestTbNotIndexList { + repeated TestNotIndexList data_list = 1 [packed = false]; +} +message TestTbMultiUnionIndexList { + repeated TestMultiUnionIndexList data_list = 1 [packed = false]; +} +message TestTbMultiIndexList { + repeated TestMultiIndexList data_list = 1 [packed = false]; +} +message TestTbDataFromMisc { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbMultiRowRecord { + repeated TestMultiRowRecord data_list = 1 [packed = false]; +} +message TestTbTestMultiColumn { + repeated TestTestMultiColumn data_list = 1 [packed = false]; +} +message TestTbMultiRowTitle { + repeated TestMultiRowTitle data_list = 1 [packed = false]; +} +message TestTbTestNull { + repeated TestTestNull data_list = 1 [packed = false]; +} +message TestTbDemoPrimitive { + repeated TestDemoPrimitiveTypesTable data_list = 1 [packed = false]; +} +message TestTbTestString { + repeated TestTestString data_list = 1 [packed = false]; +} +message TestTbDemoGroup { + repeated TestDemoGroup data_list = 1 [packed = false]; +} +message TestTbTestGlobal { + repeated TestTestGlobal data_list = 1 [packed = false]; +} +message TestTbTestBeRef { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestBeRef2 { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestRef { + repeated TestTestRef data_list = 1 [packed = false]; +} +message TestTbTestSize { + repeated TestTestSize data_list = 1 [packed = false]; +} +message TestTbTestSet { + repeated TestTestSet data_list = 1 [packed = false]; +} +message TestTbDetectCsvEncoding { + repeated TestDetectEncoding data_list = 1 [packed = false]; +} +message TestTbItem2 { + repeated TestItemBase data_list = 1 [packed = false]; +} +message TestTbTestIndex { + repeated TestTestIndex data_list = 1 [packed = false]; +} +message TestTbTestMap { + repeated TestTestMap data_list = 1 [packed = false]; +} +message TestTbExcelFromJson { + repeated TestExcelFromJson data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable1 { + repeated TestCompositeJsonTable1 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable2 { + repeated TestCompositeJsonTable2 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable3 { + repeated TestCompositeJsonTable3 data_list = 1 [packed = false]; +} +message TestTbExcelFromJsonMultiRow { + repeated TestExcelFromJsonMultiRow data_list = 1 [packed = false]; +} +message TestTbTestScriptableObject { + repeated TestTestScriptableObject data_list = 1 [packed = false]; +} +message TestTbTestMapper { + repeated TestTestMapper data_list = 1 [packed = false]; +} +message TestTbDefineFromExcel2 { + repeated DefineFromExcel2 data_list = 1 [packed = false]; +} + + diff --git a/luban_examples/Projects/Protobuf3_json/Gen/Config.cs b/luban_examples/Projects/Protobuf3_json/Gen/Config.cs new file mode 100644 index 00000000..835ecc86 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/Gen/Config.cs @@ -0,0 +1,71737 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: config.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Cfg { + + /// Holder for reflection information generated from config.proto + public static partial class ConfigReflection { + + #region Descriptor + /// File descriptor for config.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgxjb25maWcucHJvdG8SA2NmZyIfCgdWZWN0b3IyEgkKAXgYASACKAISCQoB", + "eRgCIAIoAiIqCgdWZWN0b3IzEgkKAXgYASACKAISCQoBeRgCIAIoAhIJCgF6", + "GAMgAigCIjUKB1ZlY3RvcjQSCQoBeBgBIAIoAhIJCgF5GAIgAigCEgkKAXoY", + "AyACKAISCQoBdxgEIAIoAiJnCgxBaUJsYWNrYm9hcmQSDAoEbmFtZRgBIAIo", + "CRIMCgRkZXNjGAIgAigJEhMKC3BhcmVudF9uYW1lGAMgAigJEiYKBGtleXMY", + "BCADKAsyFC5jZmcuQWlCbGFja2JvYXJkS2V5QgIQACJ4Cg9BaUJsYWNrYm9h", + "cmRLZXkSDAoEbmFtZRgBIAIoCRIMCgRkZXNjGAIgAigJEhEKCWlzX3N0YXRp", + "YxgDIAIoCBIdCgR0eXBlGAQgAigOMg8uY2ZnLkFpRUtleVR5cGUSFwoPdHlw", + "ZV9jbGFzc19uYW1lGAUgAigJInEKDkFpQmVoYXZpb3JUcmVlEgoKAmlkGAEg", + "AigFEgwKBG5hbWUYAiACKAkSDAoEZGVzYxgDIAIoCRIVCg1ibGFja2JvYXJk", + "X2lkGAQgAigJEiAKBHJvb3QYBSACKAsyEi5jZmcuQWlDb21wb3NlTm9kZSLW", + "CAoGQWlOb2RlEjUKEVVlU2V0RGVmYXVsdEZvY3VzGAEgASgLMhguY2ZnLkFp", + "VWVTZXREZWZhdWx0Rm9jdXNIABI7ChRFeGVjdXRlVGltZVN0YXRpc3RpYxgC", + "IAEoCzIbLmNmZy5BaUV4ZWN1dGVUaW1lU3RhdGlzdGljSAASKwoMQ2hvb3Nl", + "VGFyZ2V0GAMgASgLMhMuY2ZnLkFpQ2hvb3NlVGFyZ2V0SAASLwoOS2VlcEZh", + "Y2VUYXJnZXQYBCABKAsyFS5jZmcuQWlLZWVwRmFjZVRhcmdldEgAEi8KDkdl", + "dE93bmVyUGxheWVyGAUgASgLMhUuY2ZnLkFpR2V0T3duZXJQbGF5ZXJIABJD", + "ChhVcGRhdGVEYWlseUJlaGF2aW9yUHJvcHMYBiABKAsyHy5jZmcuQWlVcGRh", + "dGVEYWlseUJlaGF2aW9yUHJvcHNIABIfCgZVZUxvb3AYByABKAsyDS5jZmcu", + "QWlVZUxvb3BIABInCgpVZUNvb2xkb3duGAggASgLMhEuY2ZnLkFpVWVDb29s", + "ZG93bkgAEikKC1VlVGltZUxpbWl0GAkgASgLMhIuY2ZnLkFpVWVUaW1lTGlt", + "aXRIABIrCgxVZUJsYWNrYm9hcmQYCiABKAsyEy5jZmcuQWlVZUJsYWNrYm9h", + "cmRIABIvCg5VZUZvcmNlU3VjY2VzcxgLIAEoCzIVLmNmZy5BaVVlRm9yY2VT", + "dWNjZXNzSAASKwoMSXNBdExvY2F0aW9uGAwgASgLMhMuY2ZnLkFpSXNBdExv", + "Y2F0aW9uSAASMwoQRGlzdGFuY2VMZXNzVGhhbhgNIAEoCzIXLmNmZy5BaURp", + "c3RhbmNlTGVzc1RoYW5IABIjCghTZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNl", + "cXVlbmNlSAASIwoIU2VsZWN0b3IYDyABKAsyDy5jZmcuQWlTZWxlY3RvckgA", + "Ei8KDlNpbXBsZVBhcmFsbGVsGBAgASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxs", + "ZWxIABIfCgZVZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdh", + "aXRCbGFja2JvYXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9h", + "cmRUaW1lSAASKwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRv", + "VGFyZ2V0SAASKQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VT", + "a2lsbEgAEjsKFE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFp", + "TW92ZVRvUmFuZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEo", + "CzIVLmNmZy5BaU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEo", + "CzIRLmNmZy5BaURlYnVnUHJpbnRIAEIHCgV2YWx1ZSLcAgoJQWlTZXJ2aWNl", + "EjUKEVVlU2V0RGVmYXVsdEZvY3VzGAEgASgLMhguY2ZnLkFpVWVTZXREZWZh", + "dWx0Rm9jdXNIABI7ChRFeGVjdXRlVGltZVN0YXRpc3RpYxgCIAEoCzIbLmNm", + "Zy5BaUV4ZWN1dGVUaW1lU3RhdGlzdGljSAASKwoMQ2hvb3NlVGFyZ2V0GAMg", + "ASgLMhMuY2ZnLkFpQ2hvb3NlVGFyZ2V0SAASLwoOS2VlcEZhY2VUYXJnZXQY", + "BCABKAsyFS5jZmcuQWlLZWVwRmFjZVRhcmdldEgAEi8KDkdldE93bmVyUGxh", + "eWVyGAUgASgLMhUuY2ZnLkFpR2V0T3duZXJQbGF5ZXJIABJDChhVcGRhdGVE", + "YWlseUJlaGF2aW9yUHJvcHMYBiABKAsyHy5jZmcuQWlVcGRhdGVEYWlseUJl", + "aGF2aW9yUHJvcHNIAEIHCgV2YWx1ZSJKChNBaVVlU2V0RGVmYXVsdEZvY3Vz", + "EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIUCgxrZXlib2FyZF9r", + "ZXkYAyACKAkiNwoWQWlFeGVjdXRlVGltZVN0YXRpc3RpYxIKCgJpZBgBIAIo", + "BRIRCglub2RlX25hbWUYAiACKAkiSgoOQWlDaG9vc2VUYXJnZXQSCgoCaWQY", + "ASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhkKEXJlc3VsdF90YXJnZXRfa2V5", + "GAMgAigJIksKEEFpS2VlcEZhY2VUYXJnZXQSCgoCaWQYASACKAUSEQoJbm9k", + "ZV9uYW1lGAIgAigJEhgKEHRhcmdldF9hY3Rvcl9rZXkYAyACKAkiSwoQQWlH", + "ZXRPd25lclBsYXllchIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkS", + "GAoQcGxheWVyX2FjdG9yX2tleRgDIAIoCSLMAgoaQWlVcGRhdGVEYWlseUJl", + "aGF2aW9yUHJvcHMSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhMK", + "C3NhdGlldHlfa2V5GAMgAigJEhIKCmVuZXJneV9rZXkYBCACKAkSEAoIbW9v", + "ZF9rZXkYBSACKAkSIwobc2F0aWV0eV9sb3dlcl90aHJlc2hvbGRfa2V5GAYg", + "AigJEiMKG3NhdGlldHlfdXBwZXJfdGhyZXNob2xkX2tleRgHIAIoCRIiChpl", + "bmVyZ3lfbG93ZXJfdGhyZXNob2xkX2tleRgIIAIoCRIiChplbmVyZ3lfdXBw", + "ZXJfdGhyZXNob2xkX2tleRgJIAIoCRIgChhtb29kX2xvd2VyX3RocmVzaG9s", + "ZF9rZXkYCiACKAkSIAoYbW9vZF91cHBlcl90aHJlc2hvbGRfa2V5GAsgAigJ", + "IssCCgtBaURlY29yYXRvchIfCgZVZUxvb3AYByABKAsyDS5jZmcuQWlVZUxv", + "b3BIABInCgpVZUNvb2xkb3duGAggASgLMhEuY2ZnLkFpVWVDb29sZG93bkgA", + "EikKC1VlVGltZUxpbWl0GAkgASgLMhIuY2ZnLkFpVWVUaW1lTGltaXRIABIr", + "CgxVZUJsYWNrYm9hcmQYCiABKAsyEy5jZmcuQWlVZUJsYWNrYm9hcmRIABIv", + "Cg5VZUZvcmNlU3VjY2VzcxgLIAEoCzIVLmNmZy5BaVVlRm9yY2VTdWNjZXNz", + "SAASKwoMSXNBdExvY2F0aW9uGAwgASgLMhMuY2ZnLkFpSXNBdExvY2F0aW9u", + "SAASMwoQRGlzdGFuY2VMZXNzVGhhbhgNIAEoCzIXLmNmZy5BaURpc3RhbmNl", + "TGVzc1RoYW5IAEIHCgV2YWx1ZSKnAQoIQWlVZUxvb3ASCgoCaWQYASACKAUS", + "EQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIV", + "LmNmZy5BaUVGbG93QWJvcnRNb2RlEhEKCW51bV9sb29wcxgEIAIoBRIVCg1p", + "bmZpbml0ZV9sb29wGAUgAigIEiIKGmluZmluaXRlX2xvb3BfdGltZW91dF90", + "aW1lGAYgAigCInQKDEFpVWVDb29sZG93bhIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMgAigOMhUuY2ZnLkFp", + "RUZsb3dBYm9ydE1vZGUSFQoNY29vbGRvd25fdGltZRgEIAIoAiJyCg1BaVVl", + "VGltZUxpbWl0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9m", + "bG93X2Fib3J0X21vZGUYAyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0TW9kZRIS", + "CgpsaW1pdF90aW1lGAQgAigCItgBCg5BaVVlQmxhY2tib2FyZBIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMg", + "AigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1vZGUSMwoPbm90aWZ5X29ic2VydmVy", + "GAQgAigOMhouY2ZnLkFpRU5vdGlmeU9ic2VydmVyTW9kZRIWCg5ibGFja2Jv", + "YXJkX2tleRgFIAIoCRIqCglrZXlfcXVlcnkYBiACKAsyFy5jZmcuQWlLZXlR", + "dWVyeU9wZXJhdG9yIpIBChJBaUtleVF1ZXJ5T3BlcmF0b3ISHQoFSXNTZXQY", + "ASABKAsyDC5jZmcuQWlJc1NldEgAEiMKCElzTm90U2V0GAIgASgLMg8uY2Zn", + "LkFpSXNOb3RTZXRIABIvCg5CaW5hcnlPcGVyYXRvchgDIAEoCzIVLmNmZy5B", + "aUJpbmFyeU9wZXJhdG9ySABCBwoFdmFsdWUiCQoHQWlJc1NldCIMCgpBaUlz", + "Tm90U2V0IlAKEEFpQmluYXJ5T3BlcmF0b3ISHgoEb3BlchgBIAIoDjIQLmNm", + "Zy5BaUVPcGVyYXRvchIcCgRkYXRhGAIgAigLMg4uY2ZnLkFpS2V5RGF0YSLQ", + "AQoJQWlLZXlEYXRhEisKDEZsb2F0S2V5RGF0YRgBIAEoCzITLmNmZy5BaUZs", + "b2F0S2V5RGF0YUgAEicKCkludEtleURhdGEYAiABKAsyES5jZmcuQWlJbnRL", + "ZXlEYXRhSAASLQoNU3RyaW5nS2V5RGF0YRgDIAEoCzIULmNmZy5BaVN0cmlu", + "Z0tleURhdGFIABI1ChFCbGFja2JvYXJkS2V5RGF0YRgEIAEoCzIYLmNmZy5B", + "aUJsYWNrYm9hcmRLZXlEYXRhSABCBwoFdmFsdWUiHwoOQWlGbG9hdEtleURh", + "dGESDQoFdmFsdWUYASACKAIiHQoMQWlJbnRLZXlEYXRhEg0KBXZhbHVlGAEg", + "AigFIiAKD0FpU3RyaW5nS2V5RGF0YRINCgV2YWx1ZRgBIAIoCSIkChNBaUJs", + "YWNrYm9hcmRLZXlEYXRhEg0KBXZhbHVlGAEgAigJImEKEEFpVWVGb3JjZVN1", + "Y2Nlc3MSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3df", + "YWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlIqsBCg5B", + "aUlzQXRMb2NhdGlvbhIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkS", + "LgoPZmxvd19hYm9ydF9tb2RlGAMgAigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1v", + "ZGUSGQoRYWNjZXB0YWJsZV9yYWRpdXMYBCACKAISFAoMa2V5Ym9hcmRfa2V5", + "GAUgAigJEhkKEWludmVyc2VfY29uZGl0aW9uGAYgAigIIrUBChJBaURpc3Rh", + "bmNlTGVzc1RoYW4SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4K", + "D2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2Rl", + "EhIKCmFjdG9yMV9rZXkYBCACKAkSEgoKYWN0b3IyX2tleRgFIAIoCRIQCghk", + "aXN0YW5jZRgGIAIoAhIWCg5yZXZlcnNlX3Jlc3VsdBgHIAIoCCLdAwoKQWlG", + "bG93Tm9kZRIjCghTZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNlcXVlbmNlSAAS", + "IwoIU2VsZWN0b3IYDyABKAsyDy5jZmcuQWlTZWxlY3RvckgAEi8KDlNpbXBs", + "ZVBhcmFsbGVsGBAgASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxsZWxIABIfCgZV", + "ZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdhaXRCbGFja2Jv", + "YXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9hcmRUaW1lSAAS", + "KwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRvVGFyZ2V0SAAS", + "KQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VTa2lsbEgAEjsK", + "FE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFpTW92ZVRvUmFu", + "ZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEoCzIVLmNmZy5B", + "aU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEoCzIRLmNmZy5B", + "aURlYnVnUHJpbnRIAEIHCgV2YWx1ZSKTAQoNQWlDb21wb3NlTm9kZRIjCghT", + "ZXF1ZW5jZRgOIAEoCzIPLmNmZy5BaVNlcXVlbmNlSAASIwoIU2VsZWN0b3IY", + "DyABKAsyDy5jZmcuQWlTZWxlY3RvckgAEi8KDlNpbXBsZVBhcmFsbGVsGBAg", + "ASgLMhUuY2ZnLkFpU2ltcGxlUGFyYWxsZWxIAEIHCgV2YWx1ZSKiAQoKQWlT", + "ZXF1ZW5jZRIKCgJpZBgBIAIoBRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVj", + "b3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29yYXRvckICEAASJAoIc2Vydmlj", + "ZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQABIlCghjaGlsZHJlbhgFIAMo", + "CzIPLmNmZy5BaUZsb3dOb2RlQgIQACKiAQoKQWlTZWxlY3RvchIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQ", + "LmNmZy5BaURlY29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcu", + "QWlTZXJ2aWNlQgIQABIlCghjaGlsZHJlbhgFIAMoCzIPLmNmZy5BaUZsb3dO", + "b2RlQgIQACL0AQoQQWlTaW1wbGVQYXJhbGxlbBIKCgJpZBgBIAIoBRIRCglu", + "b2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURl", + "Y29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNl", + "QgIQABInCgtmaW5pc2hfbW9kZRgFIAIoDjISLmNmZy5BaUVGaW5pc2hNb2Rl", + "Eh4KCW1haW5fdGFzaxgGIAIoCzILLmNmZy5BaVRhc2sSKAoPYmFja2dyb3Vu", + "ZF9ub2RlGAcgAigLMg8uY2ZnLkFpRmxvd05vZGUi3gIKBkFpVGFzaxIfCgZV", + "ZVdhaXQYESABKAsyDS5jZmcuQWlVZVdhaXRIABI7ChRVZVdhaXRCbGFja2Jv", + "YXJkVGltZRgSIAEoCzIbLmNmZy5BaVVlV2FpdEJsYWNrYm9hcmRUaW1lSAAS", + "KwoMTW92ZVRvVGFyZ2V0GBMgASgLMhMuY2ZnLkFpTW92ZVRvVGFyZ2V0SAAS", + "KQoLQ2hvb3NlU2tpbGwYFCABKAsyEi5jZmcuQWlDaG9vc2VTa2lsbEgAEjsK", + "FE1vdmVUb1JhbmRvbUxvY2F0aW9uGBUgASgLMhsuY2ZnLkFpTW92ZVRvUmFu", + "ZG9tTG9jYXRpb25IABIvCg5Nb3ZlVG9Mb2NhdGlvbhgWIAEoCzIVLmNmZy5B", + "aU1vdmVUb0xvY2F0aW9uSAASJwoKRGVidWdQcmludBgXIAEoCzIRLmNmZy5B", + "aURlYnVnUHJpbnRIAEIHCgV2YWx1ZSLDAQoIQWlVZVdhaXQSCgoCaWQYASAC", + "KAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5j", + "ZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFp", + "U2VydmljZUICEAASGwoTaWdub3JlX3Jlc3RhcnRfc2VsZhgFIAIoCBIRCgl3", + "YWl0X3RpbWUYBiACKAISGAoQcmFuZG9tX2RldmlhdGlvbhgHIAIoAiK8AQoW", + "QWlVZVdhaXRCbGFja2JvYXJkVGltZRIKCgJpZBgBIAIoBRIRCglub2RlX25h", + "bWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29yYXRv", + "ckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQABIb", + "ChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEhYKDmJsYWNrYm9hcmRfa2V5", + "GAYgAigJItEBCg5BaU1vdmVUb1RhcmdldBIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29y", + "YXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQ", + "ABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEhgKEHRhcmdldF9hY3Rv", + "cl9rZXkYBiACKAkSGQoRYWNjZXB0YWJsZV9yYWRpdXMYByACKAIi0gEKDUFp", + "Q2hvb3NlU2tpbGwSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigK", + "CmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNl", + "cnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jl", + "c3RhcnRfc2VsZhgFIAIoCBIYChB0YXJnZXRfYWN0b3Jfa2V5GAYgAigJEhsK", + "E3Jlc3VsdF9za2lsbF9pZF9rZXkYByACKAki0QEKFkFpTW92ZVRvUmFuZG9t", + "TG9jYXRpb24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRl", + "Y29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZp", + "Y2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3Rh", + "cnRfc2VsZhgFIAIoCBIbChNvcmlnaW5fcG9zaXRpb25fa2V5GAYgAigJEg4K", + "BnJhZGl1cxgHIAIoAiLZAQoQQWlNb3ZlVG9Mb2NhdGlvbhIKCgJpZBgBIAIo", + "BRIRCglub2RlX25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNm", + "Zy5BaURlY29yYXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlT", + "ZXJ2aWNlQgIQABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEh4KCGxv", + "Y2F0aW9uGAYgAigLMgwuY2ZnLlZlY3RvcjMSGQoRYWNjZXB0YWJsZV9yYWRp", + "dXMYByACKAIiqAEKDEFpRGVidWdQcmludBIKCgJpZBgBIAIoBRIRCglub2Rl", + "X25hbWUYAiACKAkSKAoKZGVjb3JhdG9ycxgDIAMoCzIQLmNmZy5BaURlY29y", + "YXRvckICEAASJAoIc2VydmljZXMYBCADKAsyDi5jZmcuQWlTZXJ2aWNlQgIQ", + "ABIbChNpZ25vcmVfcmVzdGFydF9zZWxmGAUgAigIEgwKBHRleHQYBiACKAki", + "pwEKDkJsdWVwcmludENsYXp6EiwKCUludGVyZmFjZRgBIAEoCzIXLmNmZy5C", + "bHVlcHJpbnRJbnRlcmZhY2VIABIwCgtOb3JtYWxDbGF6ehgCIAEoCzIZLmNm", + "Zy5CbHVlcHJpbnROb3JtYWxDbGF6ekgAEiwKCUVudW1DbGF6ehgDIAEoCzIX", + "LmNmZy5CbHVlcHJpbnRFbnVtQ2xhenpIAEIHCgV2YWx1ZSLEAQoPQmx1ZXBy", + "aW50TWV0aG9kEjYKDkFic3RyYWNlTWV0aG9kGAEgASgLMhwuY2ZnLkJsdWVw", + "cmludEFic3RyYWNlTWV0aG9kSAASNgoORXh0ZXJuYWxNZXRob2QYAiABKAsy", + "HC5jZmcuQmx1ZXByaW50RXh0ZXJuYWxNZXRob2RIABI4Cg9CbHVlcHJpbnRN", + "ZXRob2QYAyABKAsyHS5jZmcuQmx1ZXByaW50Qmx1ZXByaW50TWV0aG9kSABC", + "BwoFdmFsdWUiQAoSQmx1ZXByaW50UGFyYW1JbmZvEgwKBG5hbWUYASACKAkS", + "DAoEdHlwZRgCIAIoCRIOCgZpc19yZWYYAyACKAgijgEKF0JsdWVwcmludEFi", + "c3RyYWNlTWV0aG9kEgwKBG5hbWUYASACKAkSDAoEZGVzYxgCIAIoCRIRCglp", + "c19zdGF0aWMYAyACKAgSEwoLcmV0dXJuX3R5cGUYBCACKAkSLwoKcGFyYW1l", + "dGVycxgFIAMoCzIXLmNmZy5CbHVlcHJpbnRQYXJhbUluZm9CAhAAIo4BChdC", + "bHVlcHJpbnRFeHRlcm5hbE1ldGhvZBIMCgRuYW1lGAEgAigJEgwKBGRlc2MY", + "AiACKAkSEQoJaXNfc3RhdGljGAMgAigIEhMKC3JldHVybl90eXBlGAQgAigJ", + "Ei8KCnBhcmFtZXRlcnMYBSADKAsyFy5jZmcuQmx1ZXByaW50UGFyYW1JbmZv", + "QgIQACKPAQoYQmx1ZXByaW50Qmx1ZXByaW50TWV0aG9kEgwKBG5hbWUYASAC", + "KAkSDAoEZGVzYxgCIAIoCRIRCglpc19zdGF0aWMYAyACKAgSEwoLcmV0dXJu", + "X3R5cGUYBCACKAkSLwoKcGFyYW1ldGVycxgFIAMoCzIXLmNmZy5CbHVlcHJp", + "bnRQYXJhbUluZm9CAhAAIoUBChJCbHVlcHJpbnRJbnRlcmZhY2USDAoEbmFt", + "ZRgBIAIoCRIMCgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5jZmcu", + "Qmx1ZXByaW50Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcuQmx1", + "ZXByaW50TWV0aG9kQgIQACLFAQoUQmx1ZXByaW50Tm9ybWFsQ2xhenoSDAoE", + "bmFtZRgBIAIoCRIMCgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5j", + "ZmcuQmx1ZXByaW50Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcu", + "Qmx1ZXByaW50TWV0aG9kQgIQABITCgtpc19hYnN0cmFjdBgFIAIoCBInCgZm", + "aWVsZHMYBiADKAsyEy5jZmcuQmx1ZXByaW50RmllbGRCAhAAIjoKDkJsdWVw", + "cmludEZpZWxkEgwKBG5hbWUYASACKAkSDAoEdHlwZRgCIAIoCRIMCgRkZXNj", + "GAMgAigJIrEBChJCbHVlcHJpbnRFbnVtQ2xhenoSDAoEbmFtZRgBIAIoCRIM", + "CgRkZXNjGAIgAigJEigKB3BhcmVudHMYAyADKAsyEy5jZmcuQmx1ZXByaW50", + "Q2xhenpCAhAAEikKB21ldGhvZHMYBCADKAsyFC5jZmcuQmx1ZXByaW50TWV0", + "aG9kQgIQABIqCgVlbnVtcxgFIAMoCzIXLmNmZy5CbHVlcHJpbnRFbnVtRmll", + "bGRCAhAAIjEKEkJsdWVwcmludEVudW1GaWVsZBIMCgRuYW1lGAEgAigJEg0K", + "BXZhbHVlGAIgAigFIoABCg1Cb251c0Ryb3BJbmZvEgoKAmlkGAEgAigFEgwK", + "BGRlc2MYAiACKAkSNQoRY2xpZW50X3Nob3dfaXRlbXMYAyADKAsyFi5jZmcu", + "Qm9udXNTaG93SXRlbUluZm9CAhAAEh4KBWJvbnVzGAQgAigLMg8uY2ZnLkJv", + "bnVzQm9udXMiNgoRQm9udXNTaG93SXRlbUluZm8SDwoHaXRlbV9pZBgBIAIo", + "BRIQCghpdGVtX251bRgCIAIoAyL9AwoKQm9udXNCb251cxIkCgdPbmVJdGVt", + "GAEgASgLMhEuY2ZnLkJvbnVzT25lSXRlbUgAEiYKCE9uZUl0ZW1zGAIgASgL", + "MhIuY2ZnLkJvbnVzT25lSXRlbXNIABIeCgRJdGVtGAMgASgLMg4uY2ZnLkJv", + "bnVzSXRlbUgAEiAKBUl0ZW1zGAQgASgLMg8uY2ZnLkJvbnVzSXRlbXNIABI0", + "Cg9Db2VmZmljaWVudEl0ZW0YBSABKAsyGS5jZmcuQm9udXNDb2VmZmljaWVu", + "dEl0ZW1IABIsCgtXZWlnaHRJdGVtcxgGIAEoCzIVLmNmZy5Cb251c1dlaWdo", + "dEl0ZW1zSAASNgoQUHJvYmFiaWxpdHlJdGVtcxgHIAEoCzIaLmNmZy5Cb251", + "c1Byb2JhYmlsaXR5SXRlbXNIABIqCgpNdWx0aUJvbnVzGAggASgLMhQuY2Zn", + "LkJvbnVzTXVsdGlCb251c0gAEjYKEFByb2JhYmlsaXR5Qm9udXMYCSABKAsy", + "Gi5jZmcuQm9udXNQcm9iYWJpbGl0eUJvbnVzSAASLAoLV2VpZ2h0Qm9udXMY", + "CiABKAsyFS5jZmcuQm9udXNXZWlnaHRCb251c0gAEigKCURyb3BCb251cxgL", + "IAEoCzITLmNmZy5Cb251c0Ryb3BCb251c0gAQgcKBXZhbHVlIh8KDEJvbnVz", + "T25lSXRlbRIPCgdpdGVtX2lkGAEgAigFIiIKDUJvbnVzT25lSXRlbXMSEQoF", + "aXRlbXMYASADKAVCAhABIiwKCUJvbnVzSXRlbRIPCgdpdGVtX2lkGAEgAigF", + "Eg4KBmFtb3VudBgCIAIoBSIzCgpCb251c0l0ZW1zEiUKCWl0ZW1fbGlzdBgB", + "IAMoCzIOLmNmZy5Cb251c0l0ZW1CAhAAIk0KFEJvbnVzQ29lZmZpY2llbnRJ", + "dGVtEhAKCGJvbnVzX2lkGAEgAigFEiMKCmJvbnVzX2xpc3QYAiACKAsyDy5j", + "ZmcuQm9udXNJdGVtcyJDChBCb251c1dlaWdodEl0ZW1zEi8KCWl0ZW1fbGlz", + "dBgBIAMoCzIYLmNmZy5Cb251c1dlaWdodEl0ZW1JbmZvQgIQACJDChNCb251", + "c1dlaWdodEl0ZW1JbmZvEg8KB2l0ZW1faWQYASACKAUSCwoDbnVtGAIgAigF", + "Eg4KBndlaWdodBgDIAIoBSJNChVCb251c1Byb2JhYmlsaXR5SXRlbXMSNAoJ", + "aXRlbV9saXN0GAEgAygLMh0uY2ZnLkJvbnVzUHJvYmFiaWxpdHlJdGVtSW5m", + "b0ICEAAiTQoYQm9udXNQcm9iYWJpbGl0eUl0ZW1JbmZvEg8KB2l0ZW1faWQY", + "ASACKAUSCwoDbnVtGAIgAigFEhMKC3Byb2JhYmlsaXR5GAMgAigCIjcKD0Jv", + "bnVzTXVsdGlCb251cxIkCgdib251c2VzGAEgAygLMg8uY2ZnLkJvbnVzQm9u", + "dXNCAhAAIkwKFUJvbnVzUHJvYmFiaWxpdHlCb251cxIzCgdib251c2VzGAEg", + "AygLMh4uY2ZnLkJvbnVzUHJvYmFiaWxpdHlCb251c0luZm9CAhAAIlAKGUJv", + "bnVzUHJvYmFiaWxpdHlCb251c0luZm8SHgoFYm9udXMYASACKAsyDy5jZmcu", + "Qm9udXNCb251cxITCgtwcm9iYWJpbGl0eRgCIAIoAiJCChBCb251c1dlaWdo", + "dEJvbnVzEi4KB2JvbnVzZXMYASADKAsyGS5jZmcuQm9udXNXZWlnaHRCb251", + "c0luZm9CAhAAIkYKFEJvbnVzV2VpZ2h0Qm9udXNJbmZvEh4KBWJvbnVzGAEg", + "AigLMg8uY2ZnLkJvbnVzQm9udXMSDgoGd2VpZ2h0GAIgAigFIhwKDkJvbnVz", + "RHJvcEJvbnVzEgoKAmlkGAEgAigFIs8EChJDb21tb25HbG9iYWxDb25maWcS", + "FAoMYmFnX2NhcGFjaXR5GAEgAigFEhwKFGJhZ19jYXBhY2l0eV9zcGVjaWFs", + "GAIgAigFEiQKHGJhZ190ZW1wX2V4cGVuZGFibGVfY2FwYWNpdHkYAyACKAUS", + "HgoWYmFnX3RlbXBfdG9vbF9jYXBhY2l0eRgEIAIoBRIZChFiYWdfaW5pdF9j", + "YXBhY2l0eRgFIAIoBRIaChJxdWlja19iYWdfY2FwYWNpdHkYBiACKAUSGgoS", + "Y2xvdGhfYmFnX2NhcGFjaXR5GAcgAigFEh8KF2Nsb3RoX2JhZ19pbml0X2Nh", + "cGFjaXR5GAggAigFEiIKGmNsb3RoX2JhZ19jYXBhY2l0eV9zcGVjaWFsGAkg", + "AigFEh4KFmJhZ19pbml0X2l0ZW1zX2Ryb3BfaWQYCiABKAUSGQoRbWFpbF9i", + "b3hfY2FwYWNpdHkYCyACKAUSFgoOZGFtYWdlX3BhcmFtX2MYDCACKAISFgoO", + "ZGFtYWdlX3BhcmFtX2UYDSACKAISFgoOZGFtYWdlX3BhcmFtX2YYDiACKAIS", + "FgoOZGFtYWdlX3BhcmFtX2QYDyACKAISEgoKcm9sZV9zcGVlZBgQIAIoAhIV", + "Cg1tb25zdGVyX3NwZWVkGBEgAigCEhMKC2luaXRfZW5lcmd5GBIgAigFEhQK", + "DGluaXRfdmlhbGl0eRgTIAIoBRITCgttYXhfdmlhbGl0eRgUIAIoBRIhChlw", + "ZXJfdmlhbGl0eV9yZWNvdmVyeV90aW1lGBUgAigFIlEKDkVycm9yRXJyb3JJ", + "bmZvEgwKBGNvZGUYASACKAkSDAoEZGVzYxgCIAIoCRIjCgVzdHlsZRgDIAIo", + "CzIULmNmZy5FcnJvckVycm9yU3R5bGUi/AEKD0Vycm9yRXJyb3JTdHlsZRIw", + "Cg1FcnJvclN0eWxlVGlwGAEgASgLMhcuY2ZnLkVycm9yRXJyb3JTdHlsZVRp", + "cEgAEjYKEEVycm9yU3R5bGVNc2dib3gYAiABKAsyGi5jZmcuRXJyb3JFcnJv", + "clN0eWxlTXNnYm94SAASNAoPRXJyb3JTdHlsZURsZ09rGAMgASgLMhkuY2Zn", + "LkVycm9yRXJyb3JTdHlsZURsZ09rSAASQAoVRXJyb3JTdHlsZURsZ09rQ2Fu", + "Y2VsGAQgASgLMh8uY2ZnLkVycm9yRXJyb3JTdHlsZURsZ09rQ2FuY2VsSABC", + "BwoFdmFsdWUiFAoSRXJyb3JFcnJvclN0eWxlVGlwIlIKFUVycm9yRXJyb3JT", + "dHlsZU1zZ2JveBIQCghidG5fbmFtZRgBIAIoCRInCglvcGVyYXRpb24YAiAC", + "KA4yFC5jZmcuRXJyb3JFT3BlcmF0aW9uIigKFEVycm9yRXJyb3JTdHlsZURs", + "Z09rEhAKCGJ0bl9uYW1lGAEgAigJIkIKGkVycm9yRXJyb3JTdHlsZURsZ09r", + "Q2FuY2VsEhEKCWJ0bjFfbmFtZRgBIAIoCRIRCglidG4yX25hbWUYAiACKAki", + "QAoNRXJyb3JDb2RlSW5mbxIiCgRjb2RlGAEgAigOMhQuY2ZnLkVycm9yRUVy", + "cm9yQ29kZRILCgNrZXkYAiACKAki/gMKCEl0ZW1JdGVtEgoKAmlkGAEgAigF", + "EgwKBG5hbWUYAiACKAkSJwoKbWFqb3JfdHlwZRgDIAIoDjITLmNmZy5JdGVt", + "RU1ham9yVHlwZRInCgptaW5vcl90eXBlGAQgAigOMhMuY2ZnLkl0ZW1FTWlu", + "b3JUeXBlEhQKDG1heF9waWxlX251bRgFIAIoBRImCgdxdWFsaXR5GAYgAigO", + "MhUuY2ZnLkl0ZW1FSXRlbVF1YWxpdHkSDAoEaWNvbhgHIAIoCRIWCg5pY29u", + "X2JhY2tncm91ZBgIIAIoCRIRCglpY29uX21hc2sYCSACKAkSDAoEZGVzYxgK", + "IAIoCRISCgpzaG93X29yZGVyGAsgAigFEhIKCnF1YW50aWZpZXIYDCACKAkS", + "EwoLc2hvd19pbl9iYWcYDSACKAgSFgoObWluX3Nob3dfbGV2ZWwYDiACKAUS", + "FAoMYmF0Y2hfdXNhYmxlGA8gAigIEh4KFnByb2dyZXNzX3RpbWVfd2hlbl91", + "c2UYECACKAISGgoSc2hvd19oaW50X3doZW5fdXNlGBEgAigIEhEKCWRyb3Bw", + "YWJsZRgSIAIoCBINCgVwcmljZRgTIAEoBRIjCgh1c2VfdHlwZRgUIAIoDjIR", + "LmNmZy5JdGVtRVVzZVR5cGUSEwoLbGV2ZWxfdXBfaWQYFSABKAUikAEKEEl0", + "ZW1JdGVtRnVuY3Rpb24SJwoKbWlub3JfdHlwZRgBIAIoDjITLmNmZy5JdGVt", + "RU1pbm9yVHlwZRItCglmdW5jX3R5cGUYAiACKA4yGi5jZmcuSXRlbUVJdGVt", + "RnVuY3Rpb25UeXBlEg4KBm1ldGhvZBgDIAIoCRIUCgxjbG9zZV9iYWdfdWkY", + "BCACKAgi8QEKDUl0ZW1JdGVtRXh0cmESKwoLVHJlYXN1cmVCb3gYASABKAsy", + "FC5jZmcuSXRlbVRyZWFzdXJlQm94SAASMwoPSW50ZXJhY3Rpb25JdGVtGAIg", + "ASgLMhguY2ZnLkl0ZW1JbnRlcmFjdGlvbkl0ZW1IABIjCgdDbG90aGVzGAMg", + "ASgLMhAuY2ZnLkl0ZW1DbG90aGVzSAASLwoNRGVzaWduRHJhd2luZxgEIAEo", + "CzIWLmNmZy5JdGVtRGVzaWduRHJhd2luZ0gAEh8KBUR5bW15GAUgASgLMg4u", + "Y2ZnLkl0ZW1EeW1teUgAQgcKBXZhbHVlIr0BCg9JdGVtVHJlYXN1cmVCb3gS", + "CgoCaWQYASACKAUSEwoLa2V5X2l0ZW1faWQYAiABKAUSKgoKb3Blbl9sZXZl", + "bBgDIAIoCzIWLmNmZy5Db25kaXRpb25NaW5MZXZlbBIVCg11c2Vfb25fb2J0", + "YWluGAQgAigIEhQKCGRyb3BfaWRzGAUgAygFQgIQARIwCgtjaG9vc2VfbGlz", + "dBgGIAMoCzIXLmNmZy5JdGVtQ2hvb3NlT25lQm9udXNCAhAAItUDChJDb25k", + "aXRpb25Db25kaXRpb24SLAoJVGltZVJhbmdlGAEgASgLMhcuY2ZnLkNvbmRp", + "dGlvblRpbWVSYW5nZUgAEj4KEk11bHRpUm9sZUNvbmRpdGlvbhgCIAEoCzIg", + "LmNmZy5Db25kaXRpb25NdWx0aVJvbGVDb25kaXRpb25IABIwCgtHZW5kZXJM", + "aW1pdBgDIAEoCzIZLmNmZy5Db25kaXRpb25HZW5kZXJMaW1pdEgAEioKCE1p", + "bkxldmVsGAQgASgLMhYuY2ZnLkNvbmRpdGlvbk1pbkxldmVsSAASKgoITWF4", + "TGV2ZWwYBSABKAsyFi5jZmcuQ29uZGl0aW9uTWF4TGV2ZWxIABIwCgtNaW5N", + "YXhMZXZlbBgGIAEoCzIZLmNmZy5Db25kaXRpb25NaW5NYXhMZXZlbEgAElgK", + "H0Nsb3RoZXNQcm9wZXJ0eVNjb3JlR3JlYXRlclRoYW4YByABKAsyLS5jZmcu", + "Q29uZGl0aW9uQ2xvdGhlc1Byb3BlcnR5U2NvcmVHcmVhdGVyVGhhbkgAEjIK", + "DENvbnRhaW5zSXRlbRgIIAEoCzIaLmNmZy5Db25kaXRpb25Db250YWluc0l0", + "ZW1IAEIHCgV2YWx1ZSJHChJDb25kaXRpb25UaW1lUmFuZ2USMQoPZGF0ZV90", + "aW1lX3JhbmdlGAEgAigLMhguY2ZnLkNvbW1vbkRhdGVUaW1lUmFuZ2UiOwoT", + "Q29tbW9uRGF0ZVRpbWVSYW5nZRISCgpzdGFydF90aW1lGAEgASgFEhAKCGVu", + "ZF90aW1lGAIgASgFIqsDChZDb25kaXRpb25Sb2xlQ29uZGl0aW9uEj4KEk11", + "bHRpUm9sZUNvbmRpdGlvbhgCIAEoCzIgLmNmZy5Db25kaXRpb25NdWx0aVJv", + "bGVDb25kaXRpb25IABIwCgtHZW5kZXJMaW1pdBgDIAEoCzIZLmNmZy5Db25k", + "aXRpb25HZW5kZXJMaW1pdEgAEioKCE1pbkxldmVsGAQgASgLMhYuY2ZnLkNv", + "bmRpdGlvbk1pbkxldmVsSAASKgoITWF4TGV2ZWwYBSABKAsyFi5jZmcuQ29u", + "ZGl0aW9uTWF4TGV2ZWxIABIwCgtNaW5NYXhMZXZlbBgGIAEoCzIZLmNmZy5D", + "b25kaXRpb25NaW5NYXhMZXZlbEgAElgKH0Nsb3RoZXNQcm9wZXJ0eVNjb3Jl", + "R3JlYXRlclRoYW4YByABKAsyLS5jZmcuQ29uZGl0aW9uQ2xvdGhlc1Byb3Bl", + "cnR5U2NvcmVHcmVhdGVyVGhhbkgAEjIKDENvbnRhaW5zSXRlbRgIIAEoCzIa", + "LmNmZy5Db25kaXRpb25Db250YWluc0l0ZW1IAEIHCgV2YWx1ZSJSChtDb25k", + "aXRpb25NdWx0aVJvbGVDb25kaXRpb24SMwoKY29uZGl0aW9ucxgBIAMoCzIb", + "LmNmZy5Db25kaXRpb25Sb2xlQ29uZGl0aW9uQgIQACK7AgoaQ29uZGl0aW9u", + "Qm9vbFJvbGVDb25kaXRpb24SMAoLR2VuZGVyTGltaXQYAyABKAsyGS5jZmcu", + "Q29uZGl0aW9uR2VuZGVyTGltaXRIABIqCghNaW5MZXZlbBgEIAEoCzIWLmNm", + "Zy5Db25kaXRpb25NaW5MZXZlbEgAEioKCE1heExldmVsGAUgASgLMhYuY2Zn", + "LkNvbmRpdGlvbk1heExldmVsSAASMAoLTWluTWF4TGV2ZWwYBiABKAsyGS5j", + "ZmcuQ29uZGl0aW9uTWluTWF4TGV2ZWxIABJYCh9DbG90aGVzUHJvcGVydHlT", + "Y29yZUdyZWF0ZXJUaGFuGAcgASgLMi0uY2ZnLkNvbmRpdGlvbkNsb3RoZXNQ", + "cm9wZXJ0eVNjb3JlR3JlYXRlclRoYW5IAEIHCgV2YWx1ZSI8ChRDb25kaXRp", + "b25HZW5kZXJMaW1pdBIkCgZnZW5kZXIYASACKA4yFC5jZmcuUm9sZUVHZW5k", + "ZXJUeXBlIiIKEUNvbmRpdGlvbk1pbkxldmVsEg0KBWxldmVsGAEgAigFIiIK", + "EUNvbmRpdGlvbk1heExldmVsEg0KBWxldmVsGAEgAigFIjAKFENvbmRpdGlv", + "bk1pbk1heExldmVsEgsKA21pbhgBIAIoBRILCgNtYXgYAiACKAUiZgooQ29u", + "ZGl0aW9uQ2xvdGhlc1Byb3BlcnR5U2NvcmVHcmVhdGVyVGhhbhIrCgRwcm9w", + "GAEgAigOMh0uY2ZnLkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZRINCgV2YWx1", + "ZRgCIAIoBSJGChVDb25kaXRpb25Db250YWluc0l0ZW0SDwoHaXRlbV9pZBgB", + "IAIoBRILCgNudW0YAiACKAUSDwoHcmV2ZXJzZRgDIAIoCCI4ChJJdGVtQ2hv", + "b3NlT25lQm9udXMSDwoHZHJvcF9pZBgBIAIoBRIRCglpc191bmlxdWUYAiAC", + "KAgicwoTSXRlbUludGVyYWN0aW9uSXRlbRIKCgJpZBgBIAIoBRISCgphdHRh", + "Y2tfbnVtGAIgASgFEhsKE2hvbGRpbmdfc3RhdGljX21lc2gYAyACKAkSHwoX", + "aG9sZGluZ19zdGF0aWNfbWVzaF9tYXQYBCACKAkiYgoLSXRlbUNsb3RoZXMS", + "CgoCaWQYASACKAUSDgoGYXR0YWNrGAIgAigFEgoKAmhwGAMgAigDEhQKDGVu", + "ZXJneV9saW1pdBgEIAIoBRIVCg1lbmVyZ3lfcmVzdW1lGAUgAigFIj8KEUl0", + "ZW1EZXNpZ25EcmF3aW5nEgoKAmlkGAEgAigFEh4KEmxlYXJuX2NvbXBvbmVu", + "dF9pZBgCIAMoBUICEAEiNAoJSXRlbUR5bW15EgoKAmlkGAEgAigFEhsKBGNv", + "c3QYAiACKAsyDS5jZmcuQ29zdENvc3Qi8gEKCENvc3RDb3N0Ei0KDENvc3RD", + "dXJyZW5jeRgBIAEoCzIVLmNmZy5Db3N0Q29zdEN1cnJlbmN5SAASMQoOQ29z", + "dEN1cnJlbmNpZXMYAiABKAsyFy5jZmcuQ29zdENvc3RDdXJyZW5jaWVzSAAS", + "KwoLQ29zdE9uZUl0ZW0YAyABKAsyFC5jZmcuQ29zdENvc3RPbmVJdGVtSAAS", + "JQoIQ29zdEl0ZW0YBCABKAsyES5jZmcuQ29zdENvc3RJdGVtSAASJwoJQ29z", + "dEl0ZW1zGAUgASgLMhIuY2ZnLkNvc3RDb3N0SXRlbXNIAEIHCgV2YWx1ZSJF", + "ChBDb3N0Q29zdEN1cnJlbmN5EiQKBHR5cGUYASACKA4yFi5jZmcuSXRlbUVD", + "dXJyZW5jeVR5cGUSCwoDbnVtGAIgAigFIkMKEkNvc3RDb3N0Q3VycmVuY2ll", + "cxItCgpjdXJyZW5jaWVzGAEgAygLMhUuY2ZnLkNvc3RDb3N0Q3VycmVuY3lC", + "AhAAIiIKD0Nvc3RDb3N0T25lSXRlbRIPCgdpdGVtX2lkGAEgAigFIi8KDENv", + "c3RDb3N0SXRlbRIPCgdpdGVtX2lkGAEgAigFEg4KBmFtb3VudBgCIAIoBSI5", + "Cg1Db3N0Q29zdEl0ZW1zEigKCWl0ZW1fbGlzdBgBIAMoCzIRLmNmZy5Db3N0", + "Q29zdEl0ZW1CAhAAIigKDEwxMG5MMTBORGVtbxIKCgJpZBgBIAIoBRIMCgR0", + "ZXh0GAIgAigJIioKDUwxMG5QYXRjaERlbW8SCgoCaWQYASACKAUSDQoFdmFs", + "dWUYAiACKAUiXwoOTWFpbFN5c3RlbU1haWwSCgoCaWQYASACKAUSDQoFdGl0", + "bGUYAiACKAkSDgoGc2VuZGVyGAMgAigJEg8KB2NvbnRlbnQYBCACKAkSEQoF", + "YXdhcmQYBSADKAVCAhABIr0CCg5NYWlsR2xvYmFsTWFpbBIKCgJpZBgBIAIo", + "BRINCgV0aXRsZRgCIAIoCRIOCgZzZW5kZXIYAyACKAkSDwoHY29udGVudBgE", + "IAIoCRIRCgVhd2FyZBgFIAMoBUICEAESEgoKYWxsX3NlcnZlchgGIAIoCBIX", + "CgtzZXJ2ZXJfbGlzdBgHIAMoBUICEAESEAoIcGxhdGZvcm0YCCACKAkSDwoH", + "Y2hhbm5lbBgJIAIoCRIwCg1taW5fbWF4X2xldmVsGAogAigLMhkuY2ZnLkNv", + "bmRpdGlvbk1pbk1heExldmVsEi4KDXJlZ2lzdGVyX3RpbWUYCyACKAsyFy5j", + "ZmcuQ29uZGl0aW9uVGltZVJhbmdlEioKCW1haWxfdGltZRgMIAIoCzIXLmNm", + "Zy5Db25kaXRpb25UaW1lUmFuZ2UiTgoQUm9sZUxldmVsRXhwQXR0chINCgVs", + "ZXZlbBgBIAIoBRIQCghuZWVkX2V4cBgCIAIoAxIZCg1jbG90aGVzX2F0dHJz", + "GAMgAygFQgIQASJbCg5Sb2xlTGV2ZWxCb251cxIKCgJpZBgBIAIoBRI9ChRk", + "aXN0aW5jdF9ib251c19pbmZvcxgCIAMoCzIbLmNmZy5Sb2xlRGlzdGluY3RC", + "b251c0luZm9zQgIQACJdChZSb2xlRGlzdGluY3RCb251c0luZm9zEhcKD2Vm", + "ZmVjdGl2ZV9sZXZlbBgBIAIoBRIqCgpib251c19pbmZvGAIgAygLMhIuY2Zn", + "LlJvbGVCb251c0luZm9CAhAAIkoKDVJvbGVCb251c0luZm8SJAoEdHlwZRgB", + "IAIoDjIWLmNmZy5JdGVtRUN1cnJlbmN5VHlwZRITCgtjb2VmZmljaWVudBgC", + "IAIoAiInCgpUYWdUZXN0VGFnEgoKAmlkGAEgAigFEg0KBXZhbHVlGAIgAigJ", + "IqsECg1UZXN0RGVtb1R5cGUyEgoKAng0GAEgAigFEgoKAngxGAIgAigIEgoK", + "AngyGAMgAigFEgoKAngzGAQgAigFEgoKAng1GAUgAigDEgoKAng2GAYgAigC", + "EgoKAng3GAcgAigBEgwKBHg4XzAYCCACKAUSCgoCeDgYCSACKA8SCgoCeDkY", + "CiACKBASCwoDeDEwGAsgAigJEh8KA3gxMhgMIAIoCzISLmNmZy5UZXN0RGVt", + "b1R5cGUxEh4KA3gxMxgNIAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0", + "GA4gAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgPIAIoCRIYCgJ2", + "MhgQIAIoCzIMLmNmZy5WZWN0b3IyEhgKAnYzGBEgAigLMgwuY2ZnLlZlY3Rv", + "cjMSGAoCdjQYEiACKAsyDC5jZmcuVmVjdG9yNBIKCgJ0MRgTIAIoBRIOCgJr", + "MRgUIAMoBUICEAESDgoCazIYFSADKAVCAhABEg4KAms1GBYgAygFQgIQARIm", + "CgJrOBgXIAMoCzIaLmNmZy5UZXN0RGVtb1R5cGUyLks4RW50cnkSHwoCazkY", + "GCADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASJQoDazE1GBkgAygLMhQuY2Zn", + "LlRlc3REZW1vRHluYW1pY0ICEAAaKQoHSzhFbnRyeRILCgNrZXkYASABKAUS", + "DQoFdmFsdWUYAiABKAU6AjgBIhsKDVRlc3REZW1vVHlwZTESCgoCeDEYASAC", + "KAUigwEKD1Rlc3REZW1vRHluYW1pYxIhCgZEZW1vRDIYASABKAsyDy5jZmcu", + "VGVzdERlbW9EMkgAEiEKBkRlbW9FMRgCIAEoCzIPLmNmZy5UZXN0RGVtb0Ux", + "SAASIQoGRGVtb0Q1GAMgASgLMg8uY2ZnLlRlc3REZW1vRDVIAEIHCgV2YWx1", + "ZSIkCgpUZXN0RGVtb0QyEgoKAngxGAEgAigFEgoKAngyGAIgAigFIjgKClRl", + "c3REZW1vRDMSIQoGRGVtb0UxGAIgASgLMg8uY2ZnLlRlc3REZW1vRTFIAEIH", + "CgV2YWx1ZSIwCgpUZXN0RGVtb0UxEgoKAngxGAEgAigFEgoKAngzGAIgAigF", + "EgoKAng0GAMgAigFIj4KClRlc3REZW1vRDUSCgoCeDEYASACKAUSJAoEdGlt", + "ZRgCIAIoCzIWLmNmZy5UZXN0RGF0ZVRpbWVSYW5nZSI5ChFUZXN0RGF0ZVRp", + "bWVSYW5nZRISCgpzdGFydF90aW1lGAEgAigFEhAKCGVuZF90aW1lGAIgAigF", + "IiQKClRlc3REZW1vRTISCgoCeTEYASABKAUSCgoCeTIYAiACKAgiVQoVVGVz", + "dERlbW9TaW5nbGV0b25UeXBlEgoKAmlkGAEgAigFEgwKBG5hbWUYAiACKAkS", + "IgoEZGF0ZRgDIAIoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWMiKAoQVGVzdE5v", + "dEluZGV4TGlzdBIJCgF4GAEgAigFEgkKAXkYAiACKAUiWwoXVGVzdE11bHRp", + "VW5pb25JbmRleExpc3QSCwoDaWQxGAEgAigFEgsKA2lkMhgCIAIoAxILCgNp", + "ZDMYAyACKAkSCwoDbnVtGAQgAigFEgwKBGRlc2MYBSACKAkiVgoSVGVzdE11", + "bHRpSW5kZXhMaXN0EgsKA2lkMRgBIAIoBRILCgNpZDIYAiACKAMSCwoDaWQz", + "GAMgAigJEgsKA251bRgEIAIoBRIMCgRkZXNjGAUgAigJIvIEChJUZXN0TXVs", + "dGlSb3dSZWNvcmQSCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIsCghvbmVf", + "cm93cxgDIAMoCzIWLmNmZy5UZXN0TXVsdGlSb3dUeXBlMUICEAASLwoLbXVs", + "dGlfcm93czEYBCADKAsyFi5jZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAEi8K", + "C211bHRpX3Jvd3MyGAUgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUxQgIQ", + "ABI8CgttdWx0aV9yb3dzNBgGIAMoCzInLmNmZy5UZXN0TXVsdGlSb3dSZWNv", + "cmQuTXVsdGlSb3dzNEVudHJ5Ei8KC211bHRpX3Jvd3M1GAcgAygLMhYuY2Zn", + "LlRlc3RNdWx0aVJvd1R5cGUzQgIQABI8CgttdWx0aV9yb3dzNhgIIAMoCzIn", + "LmNmZy5UZXN0TXVsdGlSb3dSZWNvcmQuTXVsdGlSb3dzNkVudHJ5EjwKC211", + "bHRpX3Jvd3M3GAkgAygLMicuY2ZnLlRlc3RNdWx0aVJvd1JlY29yZC5NdWx0", + "aVJvd3M3RW50cnkaSQoPTXVsdGlSb3dzNEVudHJ5EgsKA2tleRgBIAEoBRIl", + "CgV2YWx1ZRgCIAEoCzIWLmNmZy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaSQoP", + "TXVsdGlSb3dzNkVudHJ5EgsKA2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIW", + "LmNmZy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaMQoPTXVsdGlSb3dzN0VudHJ5", + "EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEiKgoRVGVzdE11bHRp", + "Um93VHlwZTESCgoCaWQYASACKAUSCQoBeBgCIAIoBSI1ChFUZXN0TXVsdGlS", + "b3dUeXBlMhIKCgJpZBgBIAIoBRIJCgF4GAIgAigFEgkKAXkYAyACKAIiSgoR", + "VGVzdE11bHRpUm93VHlwZTMSCgoCaWQYASACKAUSKQoFaXRlbXMYAiADKAsy", + "Fi5jZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAIrgBChFUZXN0TXVsdGlSb3dU", + "aXRsZRIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJEhcKAngxGAMgAigLMgsu", + "Y2ZnLlRlc3RIMRIZCgR4Ml8wGAQgASgLMgsuY2ZnLlRlc3RIMhIbCgJ4MhgF", + "IAMoCzILLmNmZy5UZXN0SDJCAhAAEhsKAngzGAYgAygLMgsuY2ZnLlRlc3RI", + "MkICEAASGwoCeDQYByADKAsyCy5jZmcuVGVzdEgyQgIQACItCgZUZXN0SDES", + "FwoCeTIYASACKAsyCy5jZmcuVGVzdEgyEgoKAnkzGAIgAigFIiAKBlRlc3RI", + "MhIKCgJ6MhgBIAIoBRIKCgJ6MxgCIAIoBSKfAQoMVGVzdFRlc3ROdWxsEgoK", + "AmlkGAEgAigFEgoKAngxGAIgASgFEh0KAngyGAMgASgOMhEuY2ZnLlRlc3RE", + "ZW1vRW51bRIeCgJ4MxgEIAEoCzISLmNmZy5UZXN0RGVtb1R5cGUxEiAKAng0", + "GAUgASgLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgGIAEoCRIKCgJz", + "MhgHIAEoCSLjAQobVGVzdERlbW9QcmltaXRpdmVUeXBlc1RhYmxlEgoKAngx", + "GAEgAigIEgoKAngyGAIgAigFEgoKAngzGAMgAigFEgoKAng0GAQgAigFEgoK", + "Ang1GAUgAigDEgoKAng2GAYgAigCEgoKAng3GAcgAigBEgoKAnMxGAggAigJ", + "EgoKAnMyGAkgAigJEhgKAnYyGAogAigLMgwuY2ZnLlZlY3RvcjISGAoCdjMY", + "CyACKAsyDC5jZmcuVmVjdG9yMxIYCgJ2NBgMIAIoCzIMLmNmZy5WZWN0b3I0", + "EgoKAnQxGA0gAigFInIKDlRlc3RUZXN0U3RyaW5nEgoKAmlkGAEgAigFEgoK", + "AnMxGAIgAigJEiMKA2NzMRgDIAIoCzIWLmNmZy5UZXN0Q29tcGFjdFN0cmlu", + "ZxIjCgNjczIYBCACKAsyFi5jZmcuVGVzdENvbXBhY3RTdHJpbmciNwoRVGVz", + "dENvbXBhY3RTdHJpbmcSCgoCaWQYASACKAUSCgoCczIYAiACKAkSCgoCczMY", + "AyACKAkibAoNVGVzdERlbW9Hcm91cBIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIo", + "BRIKCgJ4MhgDIAIoBRIKCgJ4MxgEIAIoBRIKCgJ4NBgFIAIoBRIfCgJ4NRgG", + "IAIoCzITLmNmZy5UZXN0SW5uZXJHcm91cCJACg5UZXN0SW5uZXJHcm91cBIK", + "CgJ5MRgBIAIoBRIKCgJ5MhgCIAIoBRIKCgJ5MxgDIAIoBRIKCgJ5NBgEIAIo", + "BSI7Cg5UZXN0VGVzdEdsb2JhbBIUCgx1bmxvY2tfZXF1aXAYASACKAUSEwoL", + "dW5sb2NrX2hlcm8YAiACKAUiKgoNVGVzdFRlc3RCZVJlZhIKCgJpZBgBIAIo", + "BRINCgVjb3VudBgCIAIoBSKVAwoLVGVzdFRlc3RSZWYSCgoCaWQYASACKAUS", + "CgoCeDEYAiACKAUSDAoEeDFfMhgDIAIoBRIKCgJ4MhgEIAIoBRIKCgJ4MxgF", + "IAIoBRIOCgJhMRgGIAMoBUICEAESDgoCYTIYByADKAVCAhABEg4KAmIxGAgg", + "AygFQgIQARIOCgJiMhgJIAMoBUICEAESDgoCYzEYCiADKAVCAhABEg4KAmMy", + "GAsgAygFQgIQARIkCgJkMRgMIAMoCzIYLmNmZy5UZXN0VGVzdFJlZi5EMUVu", + "dHJ5EiQKAmQyGA0gAygLMhguY2ZnLlRlc3RUZXN0UmVmLkQyRW50cnkSCgoC", + "ZTEYDiACKAUSCgoCZTIYDyACKAMSCgoCZTMYECACKAkSCgoCZjEYESACKAUS", + "CgoCZjIYEiACKAMSCgoCZjMYEyACKAkaKQoHRDFFbnRyeRILCgNrZXkYASAB", + "KAUSDQoFdmFsdWUYAiABKAU6AjgBGikKB0QyRW50cnkSCwoDa2V5GAEgASgF", + "Eg0KBXZhbHVlGAIgASgFOgI4ASKcAQoMVGVzdFRlc3RTaXplEgoKAmlkGAEg", + "AigFEg4KAngxGAIgAygFQgIQARIOCgJ4MhgDIAMoBUICEAESDgoCeDMYBCAD", + "KAVCAhABEiUKAng0GAUgAygLMhkuY2ZnLlRlc3RUZXN0U2l6ZS5YNEVudHJ5", + "GikKB1g0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASJs", + "CgtUZXN0VGVzdFNldBIKCgJpZBgBIAIoBRIOCgJ4MRgCIAMoBUICEAESDgoC", + "eDIYAyADKANCAhABEg4KAngzGAQgAygJQgIQABIhCgJ4NBgFIAMoDjIRLmNm", + "Zy5UZXN0RGVtb0VudW1CAhAAIi4KElRlc3REZXRlY3RFbmNvZGluZxIKCgJp", + "ZBgBIAIoBRIMCgRuYW1lGAIgAigJItUCChNUZXN0RGVmaW5lRnJvbUV4Y2Vs", + "EgoKAmlkGAEgAigFEgoKAngxGAIgAigIEgoKAng1GAMgAigDEgoKAng2GAQg", + "AigCEgoKAng4GAUgAigFEgsKA3gxMBgGIAIoCRIiCgN4MTMYByACKA4yFS5j", + "ZmcuVGVzdEVUZXN0UXVhbGl0eRIhCgN4MTQYCCACKAsyFC5jZmcuVGVzdERl", + "bW9EeW5hbWljEhgKAnYyGAkgAigLMgwuY2ZnLlZlY3RvcjISCgoCdDEYCiAC", + "KAUSDgoCazEYCyADKAVCAhABEiwKAms4GAwgAygLMiAuY2ZnLlRlc3REZWZp", + "bmVGcm9tRXhjZWwuSzhFbnRyeRIfCgJrORgNIAMoCzIPLmNmZy5UZXN0RGVt", + "b0UyQgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo", + "BToCOAEicQoWVGVzdERlZmluZUZyb21FeGNlbE9uZRIUCgx1bmxvY2tfZXF1", + "aXAYASACKAUSEwoLdW5sb2NrX2hlcm8YAiACKAUSFgoOZGVmYXVsdF9hdmF0", + "YXIYAyACKAkSFAoMZGVmYXVsdF9pdGVtGAQgAigJIkEKDVRlc3RUZXN0SW5k", + "ZXgSCgoCaWQYASACKAUSJAoEZWxlcxgCIAMoCzISLmNmZy5UZXN0RGVtb1R5", + "cGUxQgIQACLdAgoLVGVzdFRlc3RNYXASCgoCaWQYASACKAUSJAoCeDEYAiAD", + "KAsyGC5jZmcuVGVzdFRlc3RNYXAuWDFFbnRyeRIkCgJ4MhgDIAMoCzIYLmNm", + "Zy5UZXN0VGVzdE1hcC5YMkVudHJ5EiQKAngzGAQgAygLMhguY2ZnLlRlc3RU", + "ZXN0TWFwLlgzRW50cnkSJAoCeDQYBSADKAsyGC5jZmcuVGVzdFRlc3RNYXAu", + "WDRFbnRyeRopCgdYMUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo", + "BToCOAEaKQoHWDJFbnRyeRILCgNrZXkYASABKAMSDQoFdmFsdWUYAiABKAU6", + "AjgBGikKB1gzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4", + "ARopCgdYNEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEi", + "yAMKEVRlc3RFeGNlbEZyb21Kc29uEgoKAng0GAEgAigFEgoKAngxGAIgAigI", + "EgoKAng1GAMgAigDEgoKAng2GAQgAigCEgoKAnMxGAUgAigJEgoKAnMyGAYg", + "AigJEhgKAnYyGAcgAigLMgwuY2ZnLlZlY3RvcjISGAoCdjMYCCACKAsyDC5j", + "ZmcuVmVjdG9yMxIYCgJ2NBgJIAIoCzIMLmNmZy5WZWN0b3I0EgoKAnQxGAog", + "AigFEh8KA3gxMhgLIAIoCzISLmNmZy5UZXN0RGVtb1R5cGUxEh4KA3gxMxgM", + "IAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0GA0gAigLMhQuY2ZnLlRl", + "c3REZW1vRHluYW1pYxIOCgJrMRgOIAMoBUICEAESKgoCazgYDyADKAsyHi5j", + "ZmcuVGVzdEV4Y2VsRnJvbUpzb24uSzhFbnRyeRIfCgJrORgQIAMoCzIPLmNm", + "Zy5UZXN0RGVtb0UyQgIQABIlCgNrMTUYESADKAsyFC5jZmcuVGVzdERlbW9E", + "eW5hbWljQgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgC", + "IAEoBToCOAEiMAoXVGVzdENvbXBvc2l0ZUpzb25UYWJsZTESCgoCaWQYASAC", + "KAUSCQoBeBgCIAIoCSIwChdUZXN0Q29tcG9zaXRlSnNvblRhYmxlMhIKCgJp", + "ZBgBIAIoBRIJCgF5GAIgAigFIi8KF1Rlc3RDb21wb3NpdGVKc29uVGFibGUz", + "EgkKAWEYASACKAUSCQoBYhgCIAIoBSJXChlUZXN0RXhjZWxGcm9tSnNvbk11", + "bHRpUm93EgoKAmlkGAEgAigFEgkKAXgYAiACKAUSIwoFaXRlbXMYAyADKAsy", + "EC5jZmcuVGVzdFRlc3RSb3dCAhAAIlgKC1Rlc3RUZXN0Um93EgkKAXgYASAC", + "KAUSCQoBeRgCIAIoCBIJCgF6GAMgAigJEhkKAWEYBCACKAsyDi5jZmcuVGVz", + "dFRlc3QzEg0KAWIYBSADKAVCAhABIiEKCVRlc3RUZXN0MxIJCgF4GAEgAigF", + "EgkKAXkYAiACKAUizgEKC1Rlc3RUZXN0U2VwEgoKAmlkGAEgAigFEgoKAngx", + "GAIgAigJEh0KAngyGAMgAigLMhEuY2ZnLlRlc3RTZXBCZWFuMRIeCgJ4MxgE", + "IAIoCzISLmNmZy5UZXN0U2VwVmVjdG9yEiIKAng0GAUgAygLMhIuY2ZnLlRl", + "c3RTZXBWZWN0b3JCAhAAEiEKAng1GAYgAygLMhEuY2ZnLlRlc3RTZXBCZWFu", + "MUICEAASIQoCeDYYByADKAsyES5jZmcuVGVzdFNlcEJlYW4xQgIQACIvCgxU", + "ZXN0U2VwQmVhbjESCQoBYRgBIAIoBRIJCgFiGAIgAigFEgkKAWMYAyACKAki", + "MAoNVGVzdFNlcFZlY3RvchIJCgF4GAEgAigFEgkKAXkYAiACKAUSCQoBehgD", + "IAIoBSJpChRUZXN0VGVzdEV4dGVybmFsVHlwZRIKCgJpZBgBIAIoBRImCgph", + "dWRpb190eXBlGAIgAigOMhIuY2ZnLlRlc3RBdWRpb1R5cGUSHQoFY29sb3IY", + "AyACKAsyDi5jZmcuVGVzdENvbG9yIjcKCVRlc3RDb2xvchIJCgFyGAEgAigC", + "EgkKAWcYAiACKAISCQoBYhgDIAIoAhIJCgFhGAQgAigCItcCChRUZXN0RGVm", + "aW5lRnJvbUV4Y2VsMhIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIoCBIKCgJ4NRgD", + "IAIoAxIKCgJ4NhgEIAIoAhIKCgJ4OBgFIAIoBRILCgN4MTAYBiACKAkSIgoD", + "eDEzGAcgAigOMhUuY2ZnLlRlc3RFVGVzdFF1YWxpdHkSIQoDeDE0GAggAigL", + "MhQuY2ZnLlRlc3REZW1vRHluYW1pYxIYCgJ2MhgJIAIoCzIMLmNmZy5WZWN0", + "b3IyEgoKAnQxGAogAigFEg4KAmsxGAsgAygFQgIQARItCgJrOBgMIAMoCzIh", + "LmNmZy5UZXN0RGVmaW5lRnJvbUV4Y2VsMi5LOEVudHJ5Eh8KAms5GA0gAygL", + "Mg8uY2ZnLlRlc3REZW1vRTJCAhAAGikKB0s4RW50cnkSCwoDa2V5GAEgASgF", + "Eg0KBXZhbHVlGAIgASgFOgI4ASJEChJUZXN0VGVzdEV4Y2VsQmVhbjESCgoC", + "eDEYASACKAUSCgoCeDIYAiACKAkSCgoCeDMYAyACKAUSCgoCeDQYBCACKAIi", + "kwEKDFRlc3RUZXN0RGVzYxIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJEgoK", + "AmExGAMgAigFEgoKAmEyGAQgAigFEhcKAngxGAUgAigLMgsuY2ZnLlRlc3RI", + "MRIbCgJ4MhgGIAMoCzILLmNmZy5UZXN0SDJCAhAAEhsKAngzGAcgAygLMgsu", + "Y2ZnLlRlc3RIMkICEAAiOgoOQWlUYkJsYWNrYm9hcmQSKAoJZGF0YV9saXN0", + "GAEgAygLMhEuY2ZnLkFpQmxhY2tib2FyZEICEAAiPgoQQWlUYkJlaGF2aW9y", + "VHJlZRIqCglkYXRhX2xpc3QYASADKAsyEy5jZmcuQWlCZWhhdmlvclRyZWVC", + "AhAAIj4KEEJsdWVwcmludFRiQ2xhenoSKgoJZGF0YV9saXN0GAEgAygLMhMu", + "Y2ZnLkJsdWVwcmludENsYXp6QgIQACI4CgtCb251c1RiRHJvcBIpCglkYXRh", + "X2xpc3QYASADKAsyEi5jZmcuQm9udXNEcm9wSW5mb0ICEAAiRgoUQ29tbW9u", + "VGJHbG9iYWxDb25maWcSLgoJZGF0YV9saXN0GAEgAygLMhcuY2ZnLkNvbW1v", + "bkdsb2JhbENvbmZpZ0ICEAAiPgoQRXJyb3JUYkVycm9ySW5mbxIqCglkYXRh", + "X2xpc3QYASADKAsyEy5jZmcuRXJyb3JFcnJvckluZm9CAhAAIjwKD0Vycm9y", + "VGJDb2RlSW5mbxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuRXJyb3JDb2Rl", + "SW5mb0ICEAAiMgoKSXRlbVRiSXRlbRIkCglkYXRhX2xpc3QYASADKAsyDS5j", + "ZmcuSXRlbUl0ZW1CAhAAIj4KDkl0ZW1UYkl0ZW1GdW5jEiwKCWRhdGFfbGlz", + "dBgBIAMoCzIVLmNmZy5JdGVtSXRlbUZ1bmN0aW9uQgIQACI8Cg9JdGVtVGJJ", + "dGVtRXh0cmESKQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLkl0ZW1JdGVtRXh0", + "cmFCAhAAIjoKDkwxMG5UYkwxME5EZW1vEigKCWRhdGFfbGlzdBgBIAMoCzIR", + "LmNmZy5MMTBuTDEwTkRlbW9CAhAAIjwKD0wxMG5UYlBhdGNoRGVtbxIpCglk", + "YXRhX2xpc3QYASADKAsyEi5jZmcuTDEwblBhdGNoRGVtb0ICEAAiPgoQTWFp", + "bFRiU3lzdGVtTWFpbBIqCglkYXRhX2xpc3QYASADKAsyEy5jZmcuTWFpbFN5", + "c3RlbU1haWxCAhAAIj4KEE1haWxUYkdsb2JhbE1haWwSKgoJZGF0YV9saXN0", + "GAEgAygLMhMuY2ZnLk1haWxHbG9iYWxNYWlsQgIQACJGChZSb2xlVGJSb2xl", + "TGV2ZWxFeHBBdHRyEiwKCWRhdGFfbGlzdBgBIAMoCzIVLmNmZy5Sb2xlTGV2", + "ZWxFeHBBdHRyQgIQACJNCh9Sb2xlVGJSb2xlTGV2ZWxCb251c0NvZWZmaWNp", + "ZW50EioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5Sb2xlTGV2ZWxCb251c0IC", + "EAAiNgoMVGFnVGJUZXN0VGFnEiYKCWRhdGFfbGlzdBgBIAMoCzIPLmNmZy5U", + "YWdUZXN0VGFnQgIQACI8Cg9UZXN0VGJGdWxsVHlwZXMSKQoJZGF0YV9saXN0", + "GAEgAygLMhIuY2ZnLlRlc3REZW1vVHlwZTJCAhAAIkQKD1Rlc3RUYlNpbmds", + "ZXRvbhIxCglkYXRhX2xpc3QYASADKAsyGi5jZmcuVGVzdERlbW9TaW5nbGV0", + "b25UeXBlQgIQACJCChJUZXN0VGJOb3RJbmRleExpc3QSLAoJZGF0YV9saXN0", + "GAEgAygLMhUuY2ZnLlRlc3ROb3RJbmRleExpc3RCAhAAIlAKGVRlc3RUYk11", + "bHRpVW5pb25JbmRleExpc3QSMwoJZGF0YV9saXN0GAEgAygLMhwuY2ZnLlRl", + "c3RNdWx0aVVuaW9uSW5kZXhMaXN0QgIQACJGChRUZXN0VGJNdWx0aUluZGV4", + "TGlzdBIuCglkYXRhX2xpc3QYASADKAsyFy5jZmcuVGVzdE11bHRpSW5kZXhM", + "aXN0QgIQACI/ChJUZXN0VGJEYXRhRnJvbU1pc2MSKQoJZGF0YV9saXN0GAEg", + "AygLMhIuY2ZnLlRlc3REZW1vVHlwZTJCAhAAIkYKFFRlc3RUYk11bHRpUm93", + "UmVjb3JkEi4KCWRhdGFfbGlzdBgBIAMoCzIXLmNmZy5UZXN0TXVsdGlSb3dS", + "ZWNvcmRCAhAAIkQKE1Rlc3RUYk11bHRpUm93VGl0bGUSLQoJZGF0YV9saXN0", + "GAEgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1RpdGxlQgIQACI6Cg5UZXN0VGJU", + "ZXN0TnVsbBIoCglkYXRhX2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3ROdWxs", + "QgIQACJOChNUZXN0VGJEZW1vUHJpbWl0aXZlEjcKCWRhdGFfbGlzdBgBIAMo", + "CzIgLmNmZy5UZXN0RGVtb1ByaW1pdGl2ZVR5cGVzVGFibGVCAhAAIj4KEFRl", + "c3RUYlRlc3RTdHJpbmcSKgoJZGF0YV9saXN0GAEgAygLMhMuY2ZnLlRlc3RU", + "ZXN0U3RyaW5nQgIQACI8Cg9UZXN0VGJEZW1vR3JvdXASKQoJZGF0YV9saXN0", + "GAEgAygLMhIuY2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4KEVRlc3RUYkRlbW9H", + "cm91cF9DEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0RGVtb0dyb3Vw", + "QgIQACI+ChFUZXN0VGJEZW1vR3JvdXBfUxIpCglkYXRhX2xpc3QYASADKAsy", + "Ei5jZmcuVGVzdERlbW9Hcm91cEICEAAiPgoRVGVzdFRiRGVtb0dyb3VwX0US", + "KQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4K", + "EFRlc3RUYlRlc3RHbG9iYWwSKgoJZGF0YV9saXN0GAEgAygLMhMuY2ZnLlRl", + "c3RUZXN0R2xvYmFsQgIQACI8Cg9UZXN0VGJUZXN0QmVSZWYSKQoJZGF0YV9s", + "aXN0GAEgAygLMhIuY2ZnLlRlc3RUZXN0QmVSZWZCAhAAIj0KEFRlc3RUYlRl", + "c3RCZVJlZjISKQoJZGF0YV9saXN0GAEgAygLMhIuY2ZnLlRlc3RUZXN0QmVS", + "ZWZCAhAAIjgKDVRlc3RUYlRlc3RSZWYSJwoJZGF0YV9saXN0GAEgAygLMhAu", + "Y2ZnLlRlc3RUZXN0UmVmQgIQACI6Cg5UZXN0VGJUZXN0U2l6ZRIoCglkYXRh", + "X2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3RTaXplQgIQACI4Cg1UZXN0VGJU", + "ZXN0U2V0EicKCWRhdGFfbGlzdBgBIAMoCzIQLmNmZy5UZXN0VGVzdFNldEIC", + "EAAiSQoXVGVzdFRiRGV0ZWN0Q3N2RW5jb2RpbmcSLgoJZGF0YV9saXN0GAEg", + "AygLMhcuY2ZnLlRlc3REZXRlY3RFbmNvZGluZ0ICEAAiSAoVVGVzdFRiRGVm", + "aW5lRnJvbUV4Y2VsEi8KCWRhdGFfbGlzdBgBIAMoCzIYLmNmZy5UZXN0RGVm", + "aW5lRnJvbUV4Y2VsQgIQACJOChhUZXN0VGJEZWZpbmVGcm9tRXhjZWxPbmUS", + "MgoJZGF0YV9saXN0GAEgAygLMhsuY2ZnLlRlc3REZWZpbmVGcm9tRXhjZWxP", + "bmVCAhAAIjwKD1Rlc3RUYlRlc3RJbmRleBIpCglkYXRhX2xpc3QYASADKAsy", + "Ei5jZmcuVGVzdFRlc3RJbmRleEICEAAiOAoNVGVzdFRiVGVzdE1hcBInCglk", + "YXRhX2xpc3QYASADKAsyEC5jZmcuVGVzdFRlc3RNYXBCAhAAIkQKE1Rlc3RU", + "YkV4Y2VsRnJvbUpzb24SLQoJZGF0YV9saXN0GAEgAygLMhYuY2ZnLlRlc3RF", + "eGNlbEZyb21Kc29uQgIQACJQChlUZXN0VGJDb21wb3NpdGVKc29uVGFibGUx", + "EjMKCWRhdGFfbGlzdBgBIAMoCzIcLmNmZy5UZXN0Q29tcG9zaXRlSnNvblRh", + "YmxlMUICEAAiUAoZVGVzdFRiQ29tcG9zaXRlSnNvblRhYmxlMhIzCglkYXRh", + "X2xpc3QYASADKAsyHC5jZmcuVGVzdENvbXBvc2l0ZUpzb25UYWJsZTJCAhAA", + "IlAKGVRlc3RUYkNvbXBvc2l0ZUpzb25UYWJsZTMSMwoJZGF0YV9saXN0GAEg", + "AygLMhwuY2ZnLlRlc3RDb21wb3NpdGVKc29uVGFibGUzQgIQACJUChtUZXN0", + "VGJFeGNlbEZyb21Kc29uTXVsdGlSb3cSNQoJZGF0YV9saXN0GAEgAygLMh4u", + "Y2ZnLlRlc3RFeGNlbEZyb21Kc29uTXVsdGlSb3dCAhAAIjgKDVRlc3RUYlRl", + "c3RTZXASJwoJZGF0YV9saXN0GAEgAygLMhAuY2ZnLlRlc3RUZXN0U2VwQgIQ", + "ACJKChZUZXN0VGJUZXN0RXh0ZXJuYWxUeXBlEjAKCWRhdGFfbGlzdBgBIAMo", + "CzIZLmNmZy5UZXN0VGVzdEV4dGVybmFsVHlwZUICEAAiSwoeVGVzdFRiRGVt", + "b0dyb3VwRGVmaW5lRnJvbUV4Y2VsEikKCWRhdGFfbGlzdBgBIAMoCzISLmNm", + "Zy5UZXN0RGVtb0dyb3VwQgIQACJKChZUZXN0VGJEZWZpbmVGcm9tRXhjZWwy", + "EjAKCWRhdGFfbGlzdBgBIAMoCzIZLmNmZy5UZXN0RGVmaW5lRnJvbUV4Y2Vs", + "MkICEAAiRQoTVGVzdFRiVGVzdEV4Y2VsQmVhbhIuCglkYXRhX2xpc3QYASAD", + "KAsyFy5jZmcuVGVzdFRlc3RFeGNlbEJlYW4xQgIQACI6Cg5UZXN0VGJUZXN0", + "RGVzYxIoCglkYXRhX2xpc3QYASADKAsyES5jZmcuVGVzdFRlc3REZXNjQgIQ", + "ACo9CgtBaUVFeGVjdXRvchIWChJBaUVFeGVjdXRvcl9DTElFTlQQABIWChJB", + "aUVFeGVjdXRvcl9TRVJWRVIQASroAQoKQWlFS2V5VHlwZRITCg9BaUVLZXlU", + "eXBlX0JPT0wQARISCg5BaUVLZXlUeXBlX0lOVBACEhQKEEFpRUtleVR5cGVf", + "RkxPQVQQAxIVChFBaUVLZXlUeXBlX1NUUklORxAEEhUKEUFpRUtleVR5cGVf", + "VkVDVE9SEAUSFgoSQWlFS2V5VHlwZV9ST1RBVE9SEAYSEwoPQWlFS2V5VHlw", + "ZV9OQU1FEAcSFAoQQWlFS2V5VHlwZV9DTEFTUxAIEhMKD0FpRUtleVR5cGVf", + "RU5VTRAJEhUKEUFpRUtleVR5cGVfT0JKRUNUEAoqiAEKEEFpRUZsb3dBYm9y", + "dE1vZGUSGQoVQWlFRmxvd0Fib3J0TW9kZV9OT05FEAASIwofQWlFRmxvd0Fi", + "b3J0TW9kZV9MT1dFUl9QUklPUklUWRABEhkKFUFpRUZsb3dBYm9ydE1vZGVf", + "U0VMRhACEhkKFUFpRUZsb3dBYm9ydE1vZGVfQk9USBADKkcKDUFpRUZpbmlz", + "aE1vZGUSGwoXQWlFRmluaXNoTW9kZV9JTU1FRElBVEUQABIZChVBaUVGaW5p", + "c2hNb2RlX0RFTEFZRUQQASpuChVBaUVOb3RpZnlPYnNlcnZlck1vZGUSKQol", + "QWlFTm90aWZ5T2JzZXJ2ZXJNb2RlX09OX1ZBTFVFX0NIQU5HRRAAEioKJkFp", + "RU5vdGlmeU9ic2VydmVyTW9kZV9PTl9SRVNVTFRfQ0hBTkdFEAEqlQIKC0Fp", + "RU9wZXJhdG9yEhsKF0FpRU9wZXJhdG9yX0lTX0VRVUFMX1RPEAASHwobQWlF", + "T3BlcmF0b3JfSVNfTk9UX0VRVUFMX1RPEAESHAoYQWlFT3BlcmF0b3JfSVNf", + "TEVTU19USEFOEAISKAokQWlFT3BlcmF0b3JfSVNfTEVTU19USEFOX09SX0VR", + "VUFMX1RPEAMSHQoZQWlFT3BlcmF0b3JfSVNfR1JFQVRfVEhBThAEEikKJUFp", + "RU9wZXJhdG9yX0lTX0dSRUFUX1RIQU5fT1JfRVFVQUxfVE8QBRIYChRBaUVP", + "cGVyYXRvcl9DT05UQUlOUxAGEhwKGEFpRU9wZXJhdG9yX05PVF9DT05UQUlO", + "UxAHKk4KE0NvbW1vbkVCb29sT3BlcmF0b3ISGwoXQ29tbW9uRUJvb2xPcGVy", + "YXRvcl9BTkQQABIaChZDb21tb25FQm9vbE9wZXJhdG9yX09SEAEqSgoPRXJy", + "b3JFT3BlcmF0aW9uEhoKFkVycm9yRU9wZXJhdGlvbl9MT0dPVVQQABIbChdF", + "cnJvckVPcGVyYXRpb25fUkVTVEFSVBABKt8bCg9FcnJvckVFcnJvckNvZGUS", + "FgoSRXJyb3JFRXJyb3JDb2RlX09LEAASJQohRXJyb3JFRXJyb3JDb2RlX1NF", + "UlZFUl9OT1RfRVhJU1RTEAESIwofRXJyb3JFRXJyb3JDb2RlX0hBU19CSU5E", + "X1NFUlZFUhACEh0KGUVycm9yRUVycm9yQ29kZV9BVVRIX0ZBSUwQAxIjCh9F", + "cnJvckVFcnJvckNvZGVfTk9UX0JJTkRfU0VSVkVSEAQSJgoiRXJyb3JFRXJy", + "b3JDb2RlX1NFUlZFUl9BQ0NFU1NfRkFJTBAFEiEKHUVycm9yRUVycm9yQ29k", + "ZV9FWEFNUExFX0ZMQVNIEAYSIgoeRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVf", + "TVNHQk9YEAcSIgoeRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVfRExHX09LEAgS", + "KQolRXJyb3JFRXJyb3JDb2RlX0VYQU1QTEVfRExHX09LX0NBTkNFTBAJEjEK", + "LUVycm9yRUVycm9yQ29kZV9ST0xFX0NSRUFURV9OQU1FX0lOVkFMSURfQ0hB", + "UhBkEioKJkVycm9yRUVycm9yQ29kZV9ST0xFX0NSRUFURV9OQU1FX0VNUFRZ", + "EGUSNgoyRXJyb3JFRXJyb3JDb2RlX1JPTEVfQ1JFQVRFX05BTUVfRVhDRUVE", + "X01BWF9MRU5HVEgQZhIuCipFcnJvckVFcnJvckNvZGVfUk9MRV9DUkVBVEVf", + "Uk9MRV9MSVNUX0ZVTEwQZxIyCi5FcnJvckVFcnJvckNvZGVfUk9MRV9DUkVB", + "VEVfSU5WQUxJRF9QUk9GRVNTSU9OEGgSLgoqRXJyb3JFRXJyb3JDb2RlX1JP", + "TEVfQ1JFQVRFX0lOVkFMSURfR0VOREVSEGkSKgomRXJyb3JFRXJyb3JDb2Rl", + "X1JPTEVfTk9UX09XTkVEX0JZX1VTRVIQahIpCiVFcnJvckVFcnJvckNvZGVf", + "Uk9MRV9MRVZFTF9OT1RfQVJSSVZFEGsSIgodRXJyb3JFRXJyb3JDb2RlX1BB", + "UkFNX0lMTEVHQUwQyAESJwoiRXJyb3JFRXJyb3JDb2RlX1RFTVBfQkFHX05P", + "VF9FTVBUWRDJARIlCiBFcnJvckVFcnJvckNvZGVfSVRFTV9DQU5fTk9UX1VT", + "RRDKARIoCiNFcnJvckVFcnJvckNvZGVfQ1VSUkVOQ1lfTk9UX0VOT1VHSBDL", + "ARIgChtFcnJvckVFcnJvckNvZGVfQkFHX0lTX0ZVTEwQzAESJAofRXJyb3JF", + "RXJyb3JDb2RlX0lURU1fTk9UX0VOT1VHSBDNARIgChtFcnJvckVFcnJvckNv", + "ZGVfSVRFTV9JTl9CQUcQzgESJQogRXJyb3JFRXJyb3JDb2RlX0dFTkRFUl9O", + "T1RfTUFUQ0gQrAISIgodRXJyb3JFRXJyb3JDb2RlX0xFVkVMX1RPT19MT1cQ", + "rQISIwoeRXJyb3JFRXJyb3JDb2RlX0xFVkVMX1RPT19ISUdIEK4CEiEKHEVy", + "cm9yRUVycm9yQ29kZV9FWENFRURfTElNSVQQrwISHgoZRXJyb3JFRXJyb3JD", + "b2RlX09WRVJfVElNRRCwAhIhChxFcnJvckVFcnJvckNvZGVfU0VSVkVSX0VS", + "Uk9SELECEiYKIUVycm9yRUVycm9yQ29kZV9TS0lMTF9OT1RfSU5fTElTVBCQ", + "AxInCiJFcnJvckVFcnJvckNvZGVfU0tJTExfTk9UX0NPT0xET1dOEJEDEisK", + "JkVycm9yRUVycm9yQ29kZV9TS0lMTF9UQVJHRVRfTk9UX0VYSVNUEJIDEioK", + "JUVycm9yRUVycm9yQ29kZV9TS0lMTF9BTk9USEVSX0NBU1RJTkcQkwMSKgol", + "RXJyb3JFRXJyb3JDb2RlX1NLSUxMX09VVF9PRl9ESVNUQU5DRRCUAxIwCitF", + "cnJvckVFcnJvckNvZGVfU0tJTExfVEFSR0VUX0NBTVBfTk9UX01BVENIEJUD", + "EiwKJ0Vycm9yRUVycm9yQ29kZV9TS0lMTF9JTlZBTElEX0RJUkVDVElPThCW", + "AxIuCilFcnJvckVFcnJvckNvZGVfU0tJTExfTk9UX0lOX1NFTEVDVF9TSEFQ", + "RRCXAxIsCidFcnJvckVFcnJvckNvZGVfU0tJTExfRU5FUkdZX05PVF9FTk9V", + "R0gQmAMSLAonRXJyb3JFRXJyb3JDb2RlX0RJQUxPR19OT0RFX05PVF9DSE9P", + "U0VOEPQDEiYKIUVycm9yRUVycm9yQ29kZV9ESUFMT0dfTk9UX0ZJTklTSBD1", + "AxImCiFFcnJvckVFcnJvckNvZGVfRElBTE9HX0hBU19GSU5JU0gQ9gMSLQoo", + "RXJyb3JFRXJyb3JDb2RlX1FVRVNUX1NUQUdFX05PVF9GSU5JU0hFRBD3AxIk", + "Ch9FcnJvckVFcnJvckNvZGVfUVVFU1RfTk9UX0RPSU5HEPgDEioKJUVycm9y", + "RUVycm9yQ29kZV9RVUVTVF9TVEFHRV9OT1RfRE9JTkcQ+QMSJwoiRXJyb3JF", + "RXJyb3JDb2RlX1FVRVNUX0hBU19BQ0NFUFRFRBD6AxIpCiRFcnJvckVFcnJv", + "ckNvZGVfTUFQX09CSkVDVF9OT1RfRVhJU1QQ2AQSPQo4RXJyb3JFRXJyb3JD", + "b2RlX0lOVEVSQUNUSU9OX09CSkVDVF9OT1RfU1VQUE9SVF9PUEVSQVRJT04Q", + "2QQSIgodRXJyb3JFRXJyb3JDb2RlX0hBU19OT1RfRVFVSVAQ2gQSMAorRXJy", + "b3JFRXJyb3JDb2RlX0hBTkRIRUxEX0VRVUlQX0lEX05PVF9NQVRDSBDbBBIq", + "CiVFcnJvckVFcnJvckNvZGVfTk9UX0FWQUlMQUJMRV9TVUlUX0lEENwEEi0K", + "KEVycm9yRUVycm9yQ29kZV9OT19JTlRFUkFDVElPTl9DT01QT05FTlQQ3QQS", + "IwoeRXJyb3JFRXJyb3JDb2RlX0hBU19JTlRFUkFDVEVEEN4EEicKIkVycm9y", + "RUVycm9yQ29kZV9WSUFMSVRZX05PVF9FTk9VR0gQ3wQSLQooRXJyb3JFRXJy", + "b3JDb2RlX1BMQVlFUl9TRVNTSU9OX05PVF9FWElTVBDgBBI5CjRFcnJvckVF", + "cnJvckNvZGVfUExBWUVSX1NFU1NJT05fV09STERfUExBWUVSX05PVF9JTklU", + "EOEEEiIKHUVycm9yRUVycm9yQ29kZV9NQVBfTk9UX0VYSVNUEOIEEiQKH0Vy", + "cm9yRUVycm9yQ29kZV9NQUlMX1RZUEVfRVJST1IQvAUSJAofRXJyb3JFRXJy", + "b3JDb2RlX01BSUxfTk9UX0VYSVRTVBC9BRImCiFFcnJvckVFcnJvckNvZGVf", + "TUFJTF9IQVZFX0RFTEVURUQQvgUSLQooRXJyb3JFRXJyb3JDb2RlX01BSUxf", + "QVdBUkRfSEFWRV9SRUNFSVZFRBC/BRIsCidFcnJvckVFcnJvckNvZGVfTUFJ", + "TF9PUEVSQVRFX1RZUEVfRVJST1IQwAUSLAonRXJyb3JFRXJyb3JDb2RlX01B", + "SUxfQ09ORElUSU9OX05PVF9NRUVUEMEFEiUKIEVycm9yRUVycm9yQ29kZV9N", + "QUlMX1NUQVRFX0VSUk9SEMIFEiIKHUVycm9yRUVycm9yQ29kZV9NQUlMX05P", + "X0FXQVJEEMMFEiUKIEVycm9yRUVycm9yQ29kZV9NQUlMX0JPWF9JU19GVUxM", + "EMQFEi8KKkVycm9yRUVycm9yQ29kZV9QUk9QX1NDT1JFX05PVF9CSUdHRVJf", + "VEhBThCgBhIlCiBFcnJvckVFcnJvckNvZGVfTk9UX1dFQVJfQ0xPVEhFUxCh", + "BhIiCh1FcnJvckVFcnJvckNvZGVfTk9UX1dFQVJfU1VJVBCiBhIkCh9FcnJv", + "ckVFcnJvckNvZGVfU1VJVF9OT1RfVU5MT0NLEIQHEi4KKUVycm9yRUVycm9y", + "Q29kZV9TVUlUX0NPTVBPTkVOVF9OT1RfVU5MT0NLEIUHEiUKIEVycm9yRUVy", + "cm9yQ29kZV9TVUlUX1NUQVRFX0VSUk9SEIYHEi8KKkVycm9yRUVycm9yQ29k", + "ZV9TVUlUX0NPTVBPTkVOVF9TVEFURV9FUlJPUhCHBxIxCixFcnJvckVFcnJv", + "ckNvZGVfU1VJVF9DT01QT05FTlRfTk9fTkVFRF9MRUFSThCIBxImCiFFcnJv", + "ckVFcnJvckNvZGVfU1RPUkVfTk9UX0VOQUJMRUQQ6AcSJgohRXJyb3JFRXJy", + "b3JDb2RlX1NIRUxGX05PVF9FTkFCTEVEEOkHEiYKIUVycm9yRUVycm9yQ29k", + "ZV9HT09EU19OT1RfRU5BQkxFRBDqBxItCihFcnJvckVFcnJvckNvZGVfR09P", + "RFNfTk9UX0lOX0NVUl9SRUZSRVNIEOsHEhoKFUVycm9yRUVycm9yQ29kZV9S", + "RVRSWRDMCBIhChxFcnJvckVFcnJvckNvZGVfTk9UX0NPT0xET1dOEM0IEiIK", + "HUVycm9yRUVycm9yQ29kZV9TRUxGSUVfVU5MT0NLELAJEioKJUVycm9yRUVy", + "cm9yQ29kZV9TRUxGSUVfQUxSRUFEWV9VTkxPQ0sQsQkSJwoiRXJyb3JFRXJy", + "b3JDb2RlX1NFTEZJRV9MQUNLX1NUQVJUUxCyCRImCiFFcnJvckVFcnJvckNv", + "ZGVfU0VMRklFX0hBRF9SRVdBUkQQswkqnwEKEEl0ZW1FSXRlbVF1YWxpdHkS", + "GgoWSXRlbUVJdGVtUXVhbGl0eV9XSElURRAAEhoKFkl0ZW1FSXRlbVF1YWxp", + "dHlfR1JFRU4QARIZChVJdGVtRUl0ZW1RdWFsaXR5X0JMVUUQAhIbChdJdGVt", + "RUl0ZW1RdWFsaXR5X1BVUlBMRRADEhsKF0l0ZW1FSXRlbVF1YWxpdHlfR09M", + "REVOEAQqqgEKEUl0ZW1FQ3VycmVuY3lUeXBlEh0KGUl0ZW1FQ3VycmVuY3lU", + "eXBlX0RJQU1PTkQQARIaChZJdGVtRUN1cnJlbmN5VHlwZV9HT0xEEAISHAoY", + "SXRlbUVDdXJyZW5jeVR5cGVfU0lMVkVSEAMSGQoVSXRlbUVDdXJyZW5jeVR5", + "cGVfRVhQEAQSIQodSXRlbUVDdXJyZW5jeVR5cGVfUE9XRVJfUE9JTlQQBSrb", + "AgoOSXRlbUVNYWpvclR5cGUSGwoXSXRlbUVNYWpvclR5cGVfQ1VSUkVOQ1kQ", + "ARIYChRJdGVtRU1ham9yVHlwZV9DTE9USBACEhgKFEl0ZW1FTWFqb3JUeXBl", + "X1FVRVNUEAMSHgoaSXRlbUVNYWpvclR5cGVfQ09OU1VNQUJMRVMQBBIfChtJ", + "dGVtRU1ham9yVHlwZV9UUkVBU1VSRV9CT1gQBRIoCiRJdGVtRU1ham9yVHlw", + "ZV9BQ0hJRVZFTUVOVF9BTkRfVElUTEUQBhIdChlJdGVtRU1ham9yVHlwZV9I", + "RUFEX0ZSQU1FEAcSGAoUSXRlbUVNYWpvclR5cGVfVk9JQ0UQCBIZChVJdGVt", + "RU1ham9yVHlwZV9BQ1RJT04QCRIcChhJdGVtRU1ham9yVHlwZV9FWFBBTlNJ", + "T04QChIbChdJdGVtRU1ham9yVHlwZV9NQVRFUklBTBALKo8MCg5JdGVtRU1p", + "bm9yVHlwZRIaChZJdGVtRU1pbm9yVHlwZV9ESUFNT05EEGUSFwoTSXRlbUVN", + "aW5vclR5cGVfR09MRBBmEhkKFUl0ZW1FTWlub3JUeXBlX1NJTFZFUhBnEhYK", + "Ekl0ZW1FTWlub3JUeXBlX0VYUBBoEh4KGkl0ZW1FTWlub3JUeXBlX1BPV0VS", + "X1BPSU5UEGkSHgoZSXRlbUVNaW5vclR5cGVfSEFJUl9TVFlMRRDSARIYChNJ", + "dGVtRU1pbm9yVHlwZV9DT0FUENwBEiAKG0l0ZW1FTWlub3JUeXBlX1VQUEVS", + "X0pBQ0tFVBDmARIcChdJdGVtRU1pbm9yVHlwZV9UUk9VU0VSUxDxARIZChRJ", + "dGVtRU1pbm9yVHlwZV9TS0lSVBDyARIZChRJdGVtRU1pbm9yVHlwZV9TT0NL", + "UxD6ARIZChRJdGVtRU1pbm9yVHlwZV9TSE9FUxCEAhIiCh1JdGVtRU1pbm9y", + "VHlwZV9IQUlSX0FDQ0VTU09SWRCPAhIXChJJdGVtRU1pbm9yVHlwZV9IQVQQ", + "kAISGwoWSXRlbUVNaW5vclR5cGVfRUFSUklORxCRAhIcChdJdGVtRU1pbm9y", + "VHlwZV9ORUNLTEFDRRCSAhIcChdJdGVtRU1pbm9yVHlwZV9CUkFDRUxFVBCT", + "AhIeChlJdGVtRU1pbm9yVHlwZV9IQUlSX0NMQVNQEJQCEhkKFEl0ZW1FTWlu", + "b3JUeXBlX0dMT1ZFEJUCEiMKHkl0ZW1FTWlub3JUeXBlX0hBTkRIRUxEX09C", + "SkVDVBCWAhIbChZJdGVtRU1pbm9yVHlwZV9TUEVDSUFMEJcCEiEKHEl0ZW1F", + "TWlub3JUeXBlX0JBU0VfQ09TTUVUSUMQmQISJAofSXRlbUVNaW5vclR5cGVf", + "RVlFQlJPV19DT1NNRVRJQxCaAhIbChZJdGVtRU1pbm9yVHlwZV9FWUVMQVNI", + "EJsCEisKJkl0ZW1FTWlub3JUeXBlX0NPU01FVElDX0NPTlRBQ1RfTEVOU0VT", + "EJwCEiAKG0l0ZW1FTWlub3JUeXBlX0xJUF9DT1NNRVRJQxCdAhIeChlJdGVt", + "RU1pbm9yVHlwZV9TS0lOX0NPTE9SEJ4CEiMKHkl0ZW1FTWlub3JUeXBlX09O", + "RV9QSUVDRV9EUkVTUxCiAhIoCiNJdGVtRU1pbm9yVHlwZV9TV0lUQ0hfQ0xP", + "VEhFU19TQ0VORRCjAhIZChRJdGVtRU1pbm9yVHlwZV9RVUVTVBCtAhIYChNJ", + "dGVtRU1pbm9yVHlwZV9DQVNUEJEDEhkKFEl0ZW1FTWlub3JUeXBlX1NXT1JE", + "EKUDEh0KGEl0ZW1FTWlub3JUeXBlX0JPV19BUlJPVxCmAxIZChRJdGVtRU1p", + "bm9yVHlwZV9XQU5EUxCnAxIgChtJdGVtRU1pbm9yVHlwZV9TUEVDSUFMX1RP", + "T0wQqAMSGAoTSXRlbUVNaW5vclR5cGVfRk9PRBCTAxIgChtJdGVtRU1pbm9y", + "VHlwZV9UUkVBU1VSRV9CT1gQ9QMSFwoSSXRlbUVNaW5vclR5cGVfS0VZEPYD", + "Ei0KKEl0ZW1FTWlub3JUeXBlX01VTFRJX0NIT09TRV9UUkVBU1VSRV9CT1gQ", + "9wMSHwoaSXRlbUVNaW5vclR5cGVfQUNISUVWRU1FTlQQ2QQSGQoUSXRlbUVN", + "aW5vclR5cGVfVElUTEUQ2gQSIAobSXRlbUVNaW5vclR5cGVfQVZBVEFSX0ZS", + "QU1FEL0FEhkKFEl0ZW1FTWlub3JUeXBlX1ZPSUNFEKEGEh0KGEl0ZW1FTWlu", + "b3JUeXBlX0lETEVfUE9TRRCFBxIeChlJdGVtRU1pbm9yVHlwZV9QSE9UT19Q", + "T1NFEIYHEhcKEkl0ZW1FTWlub3JUeXBlX0JBRxDpBxIjCh5JdGVtRU1pbm9y", + "VHlwZV9GUklFTkRfQ0FQQUNJVFkQ6gcSKQokSXRlbUVNaW5vclR5cGVfQ09O", + "U1RSVUNUSU9OX01BVEVSSUFMEM0IEiIKHUl0ZW1FTWlub3JUeXBlX0RFU0lH", + "Tl9EUkFXSU5HEM4IKqMDChxJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBl", + "EiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfT05FEAESJAogSXRl", + "bUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9UV08QAhImCiJJdGVtRUNsb3Ro", + "ZXJzU3RhclF1YWxpdHlUeXBlX1RIUkVFEAMSJQohSXRlbUVDbG90aGVyc1N0", + "YXJRdWFsaXR5VHlwZV9GT1VSEAQSJQohSXRlbUVDbG90aGVyc1N0YXJRdWFs", + "aXR5VHlwZV9GSVZFEAUSJAogSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlw", + "ZV9TSVgQBhImCiJJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBlX1NFVkVO", + "EAcSJgoiSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9FSUdIVBAIEiUK", + "IUl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfTklORRAJEiQKIEl0ZW1F", + "Q2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfVEVOEAoqTwoQSXRlbUVDbG90aGVy", + "c1RhZxIeChpJdGVtRUNsb3RoZXJzVGFnX0ZBTkdfU0hBSRABEhsKF0l0ZW1F", + "Q2xvdGhlcnNUYWdfV1VfWkhFEAIqPgoMSXRlbUVVc2VUeXBlEhcKE0l0ZW1F", + "VXNlVHlwZV9NQU5VQUwQABIVChFJdGVtRVVzZVR5cGVfQVVUTxABKtACChhJ", + "dGVtRUNsb3RoZXNIaWRlUGFydFR5cGUSIgoeSXRlbUVDbG90aGVzSGlkZVBh", + "cnRUeXBlX0NIRVNUEAASIQodSXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0hF", + "QUQQARIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfU1BJTkVfVVBQRVIQ", + "AhIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfU1BJTkVfTE9XRVIQAxIg", + "ChxJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVfSElQEAQSJgoiSXRlbUVDbG90", + "aGVzSGlkZVBhcnRUeXBlX0xFR19VUFBFUhAFEicKI0l0ZW1FQ2xvdGhlc0hp", + "ZGVQYXJ0VHlwZV9MRUdfTUlERExFEAYSJgoiSXRlbUVDbG90aGVzSGlkZVBh", + "cnRUeXBlX0xFR19MT1dFUhAHKpsDChhJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5", + "cGUSJQohSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0pJQU5fWVVFEAESIwof", + "SXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0hVQV9MSRACEiIKHkl0ZW1FQ2xv", + "dGhlc1Byb3BlcnR5VHlwZV9LRV9BSRADEiYKIkl0ZW1FQ2xvdGhlc1Byb3Bl", + "cnR5VHlwZV9DSEVOR19TSFUQBBIjCh9JdGVtRUNsb3RoZXNQcm9wZXJ0eVR5", + "cGVfSFVPX1BPEAUSIwofSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX1lPVV9Z", + "QRAGEiYKIkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9RSU5HX0NIVU4QBxIl", + "CiFJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVfWElOR19HQU4QCBInCiNJdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGVfUUlOR19MSUFORxAJEiUKIUl0ZW1FQ2xv", + "dGhlc1Byb3BlcnR5VHlwZV9CQU9fTlVBThAKKnEKFUl0ZW1FSXRlbUZ1bmN0", + "aW9uVHlwZRIqCiZJdGVtRUl0ZW1GdW5jdGlvblR5cGVfUkVQTEFDRV9IQU5E", + "SEVMRBAAEiwKKEl0ZW1FSXRlbUZ1bmN0aW9uVHlwZV9VU0VfREVTSUdOX0RS", + "QVdJTkcQASqLAQoPTGltaXRFTmFtZXNwYWNlEiUKIUxpbWl0RU5hbWVzcGFj", + "ZV9JVEVNX0RBSUxZX09CVEFJThABEiYKIkxpbWl0RU5hbWVzcGFjZV9UUkVB", + "U1VSRV9EQUlMWV9VU0UQAhIpCiVMaW1pdEVOYW1lc3BhY2VfU1RPUkVfR09P", + "RFNfTElNSVRfQlVZEAMqQwoNTWFpbEVNYWlsVHlwZRIYChRNYWlsRU1haWxU", + "eXBlX0dMT0JBTBAAEhgKFE1haWxFTWFpbFR5cGVfU1lTVEVNEAEqRwoPUm9s", + "ZUVHZW5kZXJUeXBlEhgKFFJvbGVFR2VuZGVyVHlwZV9NQUxFEAESGgoWUm9s", + "ZUVHZW5kZXJUeXBlX0ZFTUFMRRACKjYKD1JvbGVFUHJvZmVzc2lvbhIjCh9S", + "b2xlRVByb2Zlc3Npb25fVEVTVF9QUk9GRVNTSU9OEAEqXgoMVGVzdERlbW9F", + "bnVtEhIKDlRlc3REZW1vRW51bV9BEAESEgoOVGVzdERlbW9FbnVtX0IQAhIS", + "Cg5UZXN0RGVtb0VudW1fQxAEEhIKDlRlc3REZW1vRW51bV9EEAUqSgoMVGVz", + "dERlbW9GbGFnEhIKDlRlc3REZW1vRmxhZ19BEAESEgoOVGVzdERlbW9GbGFn", + "X0IQAhISCg5UZXN0RGVtb0ZsYWdfRBADKkcKD1Rlc3RFVGVzdFVlVHlwZRIZ", + "ChVUZXN0RVRlc3RVZVR5cGVfV0hJVEUQABIZChVUZXN0RVRlc3RVZVR5cGVf", + "QkxBQ0sQASo+ChJUZXN0RVRlc3RFbXB0eUVudW0SKAokVGVzdEVUZXN0RW1w", + "dHlFbnVtX0VNUFRZX1BMQUNFSE9MREVSEAAqfgoTVGVzdEVUZXN0RW1wdHlF", + "bnVtMhInCiJUZXN0RVRlc3RFbXB0eUVudW0yX1NNQUxMX1RIQU5fMjU2EP8B", + "Eh4KGVRlc3RFVGVzdEVtcHR5RW51bTJfWF8yNTYQgAISHgoZVGVzdEVUZXN0", + "RW1wdHlFbnVtMl9YXzI1NxCBAipZCg1UZXN0QXVkaW9UeXBlEhkKFVRlc3RB", + "dWRpb1R5cGVfVU5LTk9XThAAEhUKEVRlc3RBdWRpb1R5cGVfQUNDEAESFgoS", + "VGVzdEF1ZGlvVHlwZV9BSUZGEAIqcgoQVGVzdEVUZXN0UXVhbGl0eRIWChJU", + "ZXN0RVRlc3RRdWFsaXR5X0EQARIWChJUZXN0RVRlc3RRdWFsaXR5X0IQAhIW", + "ChJUZXN0RVRlc3RRdWFsaXR5X0MQAxIWChJUZXN0RVRlc3RRdWFsaXR5X0QQ", + "BCqXAQoOVGVzdEFjY2Vzc0ZsYWcSGAoUVGVzdEFjY2Vzc0ZsYWdfV1JJVEUQ", + "ARIXChNUZXN0QWNjZXNzRmxhZ19SRUFEEAISGwoXVGVzdEFjY2Vzc0ZsYWdf", + "VFJVTkNBVEUQBBIWChJUZXN0QWNjZXNzRmxhZ19ORVcQCBIdChlUZXN0QWNj", + "ZXNzRmxhZ19SRUFEX1dSSVRFEAM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Cfg.AiEExecutor), typeof(global::Cfg.AiEKeyType), typeof(global::Cfg.AiEFlowAbortMode), typeof(global::Cfg.AiEFinishMode), typeof(global::Cfg.AiENotifyObserverMode), typeof(global::Cfg.AiEOperator), typeof(global::Cfg.CommonEBoolOperator), typeof(global::Cfg.ErrorEOperation), typeof(global::Cfg.ErrorEErrorCode), typeof(global::Cfg.ItemEItemQuality), typeof(global::Cfg.ItemECurrencyType), typeof(global::Cfg.ItemEMajorType), typeof(global::Cfg.ItemEMinorType), typeof(global::Cfg.ItemEClothersStarQualityType), typeof(global::Cfg.ItemEClothersTag), typeof(global::Cfg.ItemEUseType), typeof(global::Cfg.ItemEClothesHidePartType), typeof(global::Cfg.ItemEClothesPropertyType), typeof(global::Cfg.ItemEItemFunctionType), typeof(global::Cfg.LimitENamespace), typeof(global::Cfg.MailEMailType), typeof(global::Cfg.RoleEGenderType), typeof(global::Cfg.RoleEProfession), typeof(global::Cfg.TestDemoEnum), typeof(global::Cfg.TestDemoFlag), typeof(global::Cfg.TestETestUeType), typeof(global::Cfg.TestETestEmptyEnum), typeof(global::Cfg.TestETestEmptyEnum2), typeof(global::Cfg.TestAudioType), typeof(global::Cfg.TestETestQuality), typeof(global::Cfg.TestAccessFlag), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector2), global::Cfg.Vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector3), global::Cfg.Vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Vector4), global::Cfg.Vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboard), global::Cfg.AiBlackboard.Parser, new[]{ "Name", "Desc", "ParentName", "Keys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKey), global::Cfg.AiBlackboardKey.Parser, new[]{ "Name", "Desc", "IsStatic", "Type", "TypeClassName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBehaviorTree), global::Cfg.AiBehaviorTree.Parser, new[]{ "Id", "Name", "Desc", "BlackboardId", "Root" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiNode), global::Cfg.AiNode.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps", "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan", "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiService), global::Cfg.AiService.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeSetDefaultFocus), global::Cfg.AiUeSetDefaultFocus.Parser, new[]{ "Id", "NodeName", "KeyboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiExecuteTimeStatistic), global::Cfg.AiExecuteTimeStatistic.Parser, new[]{ "Id", "NodeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseTarget), global::Cfg.AiChooseTarget.Parser, new[]{ "Id", "NodeName", "ResultTargetKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeepFaceTarget), global::Cfg.AiKeepFaceTarget.Parser, new[]{ "Id", "NodeName", "TargetActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiGetOwnerPlayer), global::Cfg.AiGetOwnerPlayer.Parser, new[]{ "Id", "NodeName", "PlayerActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUpdateDailyBehaviorProps), global::Cfg.AiUpdateDailyBehaviorProps.Parser, new[]{ "Id", "NodeName", "SatietyKey", "EnergyKey", "MoodKey", "SatietyLowerThresholdKey", "SatietyUpperThresholdKey", "EnergyLowerThresholdKey", "EnergyUpperThresholdKey", "MoodLowerThresholdKey", "MoodUpperThresholdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDecorator), global::Cfg.AiDecorator.Parser, new[]{ "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeLoop), global::Cfg.AiUeLoop.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NumLoops", "InfiniteLoop", "InfiniteLoopTimeoutTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeCooldown), global::Cfg.AiUeCooldown.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "CooldownTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeTimeLimit), global::Cfg.AiUeTimeLimit.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "LimitTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeBlackboard), global::Cfg.AiUeBlackboard.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NotifyObserver", "BlackboardKey", "KeyQuery" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyQueryOperator), global::Cfg.AiKeyQueryOperator.Parser, new[]{ "IsSet", "IsNotSet", "BinaryOperator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsSet), global::Cfg.AiIsSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsNotSet), global::Cfg.AiIsNotSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBinaryOperator), global::Cfg.AiBinaryOperator.Parser, new[]{ "Oper", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyData), global::Cfg.AiKeyData.Parser, new[]{ "FloatKeyData", "IntKeyData", "StringKeyData", "BlackboardKeyData" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFloatKeyData), global::Cfg.AiFloatKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIntKeyData), global::Cfg.AiIntKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiStringKeyData), global::Cfg.AiStringKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKeyData), global::Cfg.AiBlackboardKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeForceSuccess), global::Cfg.AiUeForceSuccess.Parser, new[]{ "Id", "NodeName", "FlowAbortMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsAtLocation), global::Cfg.AiIsAtLocation.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "AcceptableRadius", "KeyboardKey", "InverseCondition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDistanceLessThan), global::Cfg.AiDistanceLessThan.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "Actor1Key", "Actor2Key", "Distance", "ReverseResult" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFlowNode), global::Cfg.AiFlowNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiComposeNode), global::Cfg.AiComposeNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSequence), global::Cfg.AiSequence.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSelector), global::Cfg.AiSelector.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSimpleParallel), global::Cfg.AiSimpleParallel.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "FinishMode", "MainTask", "BackgroundNode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTask), global::Cfg.AiTask.Parser, new[]{ "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWait), global::Cfg.AiUeWait.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "WaitTime", "RandomDeviation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWaitBlackboardTime), global::Cfg.AiUeWaitBlackboardTime.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "BlackboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToTarget), global::Cfg.AiMoveToTarget.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseSkill), global::Cfg.AiChooseSkill.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "ResultSkillIdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToRandomLocation), global::Cfg.AiMoveToRandomLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "OriginPositionKey", "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToLocation), global::Cfg.AiMoveToLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Location", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDebugPrint), global::Cfg.AiDebugPrint.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintClazz), global::Cfg.BlueprintClazz.Parser, new[]{ "Interface", "NormalClazz", "EnumClazz" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintMethod), global::Cfg.BlueprintMethod.Parser, new[]{ "AbstraceMethod", "ExternalMethod", "BlueprintMethod_" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintParamInfo), global::Cfg.BlueprintParamInfo.Parser, new[]{ "Name", "Type", "IsRef" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintAbstraceMethod), global::Cfg.BlueprintAbstraceMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintExternalMethod), global::Cfg.BlueprintExternalMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintBlueprintMethod), global::Cfg.BlueprintBlueprintMethod.Parser, new[]{ "Name", "Desc", "IsStatic", "ReturnType", "Parameters" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintInterface), global::Cfg.BlueprintInterface.Parser, new[]{ "Name", "Desc", "Parents", "Methods" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintNormalClazz), global::Cfg.BlueprintNormalClazz.Parser, new[]{ "Name", "Desc", "Parents", "Methods", "IsAbstract", "Fields" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintField), global::Cfg.BlueprintField.Parser, new[]{ "Name", "Type", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintEnumClazz), global::Cfg.BlueprintEnumClazz.Parser, new[]{ "Name", "Desc", "Parents", "Methods", "Enums" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintEnumField), global::Cfg.BlueprintEnumField.Parser, new[]{ "Name", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusDropInfo), global::Cfg.BonusDropInfo.Parser, new[]{ "Id", "Desc", "ClientShowItems", "Bonus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusShowItemInfo), global::Cfg.BonusShowItemInfo.Parser, new[]{ "ItemId", "ItemNum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusBonus), global::Cfg.BonusBonus.Parser, new[]{ "OneItem", "OneItems", "Item", "Items", "CoefficientItem", "WeightItems", "ProbabilityItems", "MultiBonus", "ProbabilityBonus", "WeightBonus", "DropBonus" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusOneItem), global::Cfg.BonusOneItem.Parser, new[]{ "ItemId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusOneItems), global::Cfg.BonusOneItems.Parser, new[]{ "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusItem), global::Cfg.BonusItem.Parser, new[]{ "ItemId", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusItems), global::Cfg.BonusItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusCoefficientItem), global::Cfg.BonusCoefficientItem.Parser, new[]{ "BonusId", "BonusList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightItems), global::Cfg.BonusWeightItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightItemInfo), global::Cfg.BonusWeightItemInfo.Parser, new[]{ "ItemId", "Num", "Weight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityItems), global::Cfg.BonusProbabilityItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityItemInfo), global::Cfg.BonusProbabilityItemInfo.Parser, new[]{ "ItemId", "Num", "Probability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusMultiBonus), global::Cfg.BonusMultiBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityBonus), global::Cfg.BonusProbabilityBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusProbabilityBonusInfo), global::Cfg.BonusProbabilityBonusInfo.Parser, new[]{ "Bonus", "Probability" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightBonus), global::Cfg.BonusWeightBonus.Parser, new[]{ "Bonuses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusWeightBonusInfo), global::Cfg.BonusWeightBonusInfo.Parser, new[]{ "Bonus", "Weight" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusDropBonus), global::Cfg.BonusDropBonus.Parser, new[]{ "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonGlobalConfig), global::Cfg.CommonGlobalConfig.Parser, new[]{ "BagCapacity", "BagCapacitySpecial", "BagTempExpendableCapacity", "BagTempToolCapacity", "BagInitCapacity", "QuickBagCapacity", "ClothBagCapacity", "ClothBagInitCapacity", "ClothBagCapacitySpecial", "BagInitItemsDropId", "MailBoxCapacity", "DamageParamC", "DamageParamE", "DamageParamF", "DamageParamD", "RoleSpeed", "MonsterSpeed", "InitEnergy", "InitViality", "MaxViality", "PerVialityRecoveryTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorInfo), global::Cfg.ErrorErrorInfo.Parser, new[]{ "Code", "Desc", "Style" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyle), global::Cfg.ErrorErrorStyle.Parser, new[]{ "ErrorStyleTip", "ErrorStyleMsgbox", "ErrorStyleDlgOk", "ErrorStyleDlgOkCancel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleTip), global::Cfg.ErrorErrorStyleTip.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleMsgbox), global::Cfg.ErrorErrorStyleMsgbox.Parser, new[]{ "BtnName", "Operation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleDlgOk), global::Cfg.ErrorErrorStyleDlgOk.Parser, new[]{ "BtnName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorErrorStyleDlgOkCancel), global::Cfg.ErrorErrorStyleDlgOkCancel.Parser, new[]{ "Btn1Name", "Btn2Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorCodeInfo), global::Cfg.ErrorCodeInfo.Parser, new[]{ "Code", "Key" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItem), global::Cfg.ItemItem.Parser, new[]{ "Id", "Name", "MajorType", "MinorType", "MaxPileNum", "Quality", "Icon", "IconBackgroud", "IconMask", "Desc", "ShowOrder", "Quantifier", "ShowInBag", "MinShowLevel", "BatchUsable", "ProgressTimeWhenUse", "ShowHintWhenUse", "Droppable", "Price", "UseType", "LevelUpId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItemFunction), global::Cfg.ItemItemFunction.Parser, new[]{ "MinorType", "FuncType", "Method", "CloseBagUi" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItemExtra), global::Cfg.ItemItemExtra.Parser, new[]{ "TreasureBox", "InteractionItem", "Clothes", "DesignDrawing", "Dymmy" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTreasureBox), global::Cfg.ItemTreasureBox.Parser, new[]{ "Id", "KeyItemId", "OpenLevel", "UseOnObtain", "DropIds", "ChooseList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionCondition), global::Cfg.ConditionCondition.Parser, new[]{ "TimeRange", "MultiRoleCondition", "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan", "ContainsItem" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionTimeRange), global::Cfg.ConditionTimeRange.Parser, new[]{ "DateTimeRange" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonDateTimeRange), global::Cfg.CommonDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionRoleCondition), global::Cfg.ConditionRoleCondition.Parser, new[]{ "MultiRoleCondition", "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan", "ContainsItem" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMultiRoleCondition), global::Cfg.ConditionMultiRoleCondition.Parser, new[]{ "Conditions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionBoolRoleCondition), global::Cfg.ConditionBoolRoleCondition.Parser, new[]{ "GenderLimit", "MinLevel", "MaxLevel", "MinMaxLevel", "ClothesPropertyScoreGreaterThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionGenderLimit), global::Cfg.ConditionGenderLimit.Parser, new[]{ "Gender" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMinLevel), global::Cfg.ConditionMinLevel.Parser, new[]{ "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMaxLevel), global::Cfg.ConditionMaxLevel.Parser, new[]{ "Level" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionMinMaxLevel), global::Cfg.ConditionMinMaxLevel.Parser, new[]{ "Min", "Max" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionClothesPropertyScoreGreaterThan), global::Cfg.ConditionClothesPropertyScoreGreaterThan.Parser, new[]{ "Prop", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ConditionContainsItem), global::Cfg.ConditionContainsItem.Parser, new[]{ "ItemId", "Num", "Reverse" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemChooseOneBonus), global::Cfg.ItemChooseOneBonus.Parser, new[]{ "DropId", "IsUnique" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemInteractionItem), global::Cfg.ItemInteractionItem.Parser, new[]{ "Id", "AttackNum", "HoldingStaticMesh", "HoldingStaticMeshMat" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemClothes), global::Cfg.ItemClothes.Parser, new[]{ "Id", "Attack", "Hp", "EnergyLimit", "EnergyResume" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemDesignDrawing), global::Cfg.ItemDesignDrawing.Parser, new[]{ "Id", "LearnComponentId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemDymmy), global::Cfg.ItemDymmy.Parser, new[]{ "Id", "Cost" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCost), global::Cfg.CostCost.Parser, new[]{ "CostCurrency", "CostCurrencies", "CostOneItem", "CostItem", "CostItems" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostCurrency), global::Cfg.CostCostCurrency.Parser, new[]{ "Type", "Num" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostCurrencies), global::Cfg.CostCostCurrencies.Parser, new[]{ "Currencies" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostOneItem), global::Cfg.CostCostOneItem.Parser, new[]{ "ItemId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostItem), global::Cfg.CostCostItem.Parser, new[]{ "ItemId", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CostCostItems), global::Cfg.CostCostItems.Parser, new[]{ "ItemList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nL10NDemo), global::Cfg.L10nL10NDemo.Parser, new[]{ "Id", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nPatchDemo), global::Cfg.L10nPatchDemo.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailSystemMail), global::Cfg.MailSystemMail.Parser, new[]{ "Id", "Title", "Sender", "Content", "Award" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailGlobalMail), global::Cfg.MailGlobalMail.Parser, new[]{ "Id", "Title", "Sender", "Content", "Award", "AllServer", "ServerList", "Platform", "Channel", "MinMaxLevel", "RegisterTime", "MailTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleLevelExpAttr), global::Cfg.RoleLevelExpAttr.Parser, new[]{ "Level", "NeedExp", "ClothesAttrs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleLevelBonus), global::Cfg.RoleLevelBonus.Parser, new[]{ "Id", "DistinctBonusInfos" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleDistinctBonusInfos), global::Cfg.RoleDistinctBonusInfos.Parser, new[]{ "EffectiveLevel", "BonusInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleBonusInfo), global::Cfg.RoleBonusInfo.Parser, new[]{ "Type", "Coefficient" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTestTag), global::Cfg.TagTestTag.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType2), global::Cfg.TestDemoType2.Parser, new[]{ "X4", "X1", "X2", "X3", "X5", "X6", "X7", "X80", "X8", "X9", "X10", "X12", "X13", "X14", "S1", "V2", "V3", "V4", "T1", "K1", "K2", "K5", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType1), global::Cfg.TestDemoType1.Parser, new[]{ "X1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoDynamic), global::Cfg.TestDemoDynamic.Parser, new[]{ "DemoD2", "DemoE1", "DemoD5" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD2), global::Cfg.TestDemoD2.Parser, new[]{ "X1", "X2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD3), global::Cfg.TestDemoD3.Parser, new[]{ "DemoE1" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE1), global::Cfg.TestDemoE1.Parser, new[]{ "X1", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD5), global::Cfg.TestDemoD5.Parser, new[]{ "X1", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDateTimeRange), global::Cfg.TestDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE2), global::Cfg.TestDemoE2.Parser, new[]{ "Y1", "Y2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoSingletonType), global::Cfg.TestDemoSingletonType.Parser, new[]{ "Id", "Name", "Date" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestNotIndexList), global::Cfg.TestNotIndexList.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiUnionIndexList), global::Cfg.TestMultiUnionIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiIndexList), global::Cfg.TestMultiIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowRecord), global::Cfg.TestMultiRowRecord.Parser, new[]{ "Id", "Name", "OneRows", "MultiRows1", "MultiRows2", "MultiRows4", "MultiRows5", "MultiRows6", "MultiRows7" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType1), global::Cfg.TestMultiRowType1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType2), global::Cfg.TestMultiRowType2.Parser, new[]{ "Id", "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType3), global::Cfg.TestMultiRowType3.Parser, new[]{ "Id", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowTitle), global::Cfg.TestMultiRowTitle.Parser, new[]{ "Id", "Name", "X1", "X20", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH1), global::Cfg.TestH1.Parser, new[]{ "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH2), global::Cfg.TestH2.Parser, new[]{ "Z2", "Z3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestNull), global::Cfg.TestTestNull.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "S1", "S2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoPrimitiveTypesTable), global::Cfg.TestDemoPrimitiveTypesTable.Parser, new[]{ "X1", "X2", "X3", "X4", "X5", "X6", "X7", "S1", "S2", "V2", "V3", "V4", "T1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestString), global::Cfg.TestTestString.Parser, new[]{ "Id", "S1", "Cs1", "Cs2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompactString), global::Cfg.TestCompactString.Parser, new[]{ "Id", "S2", "S3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoGroup), global::Cfg.TestDemoGroup.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestInnerGroup), global::Cfg.TestInnerGroup.Parser, new[]{ "Y1", "Y2", "Y3", "Y4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestGlobal), global::Cfg.TestTestGlobal.Parser, new[]{ "UnlockEquip", "UnlockHero" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestBeRef), global::Cfg.TestTestBeRef.Parser, new[]{ "Id", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRef), global::Cfg.TestTestRef.Parser, new[]{ "Id", "X1", "X12", "X2", "X3", "A1", "A2", "B1", "B2", "C1", "C2", "D1", "D2", "E1", "E2", "E3", "F1", "F2", "F3" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSize), global::Cfg.TestTestSize.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSet), global::Cfg.TestTestSet.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDetectEncoding), global::Cfg.TestDetectEncoding.Parser, new[]{ "Id", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcel), global::Cfg.TestDefineFromExcel.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X14", "V2", "T1", "K1", "K8", "K9" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcelOne), global::Cfg.TestDefineFromExcelOne.Parser, new[]{ "UnlockEquip", "UnlockHero", "DefaultAvatar", "DefaultItem" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestIndex), global::Cfg.TestTestIndex.Parser, new[]{ "Id", "Eles" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMap), global::Cfg.TestTestMap.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJson), global::Cfg.TestExcelFromJson.Parser, new[]{ "X4", "X1", "X5", "X6", "S1", "S2", "V2", "V3", "V4", "T1", "X12", "X13", "X14", "K1", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable1), global::Cfg.TestCompositeJsonTable1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable2), global::Cfg.TestCompositeJsonTable2.Parser, new[]{ "Id", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable3), global::Cfg.TestCompositeJsonTable3.Parser, new[]{ "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJsonMultiRow), global::Cfg.TestExcelFromJsonMultiRow.Parser, new[]{ "Id", "X", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRow), global::Cfg.TestTestRow.Parser, new[]{ "X", "Y", "Z", "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTest3), global::Cfg.TestTest3.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSep), global::Cfg.TestTestSep.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5", "X6" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestSepBean1), global::Cfg.TestSepBean1.Parser, new[]{ "A", "B", "C" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestSepVector), global::Cfg.TestSepVector.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExternalType), global::Cfg.TestTestExternalType.Parser, new[]{ "Id", "AudioType", "Color" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestColor), global::Cfg.TestColor.Parser, new[]{ "R", "G", "B", "A" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDefineFromExcel2), global::Cfg.TestDefineFromExcel2.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X14", "V2", "T1", "K1", "K8", "K9" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExcelBean1), global::Cfg.TestTestExcelBean1.Parser, new[]{ "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestDesc), global::Cfg.TestTestDesc.Parser, new[]{ "Id", "Name", "A1", "A2", "X1", "X2", "X3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBlackboard), global::Cfg.AiTbBlackboard.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBehaviorTree), global::Cfg.AiTbBehaviorTree.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BlueprintTbClazz), global::Cfg.BlueprintTbClazz.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.BonusTbDrop), global::Cfg.BonusTbDrop.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonTbGlobalConfig), global::Cfg.CommonTbGlobalConfig.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorTbErrorInfo), global::Cfg.ErrorTbErrorInfo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ErrorTbCodeInfo), global::Cfg.ErrorTbCodeInfo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItem), global::Cfg.ItemTbItem.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItemFunc), global::Cfg.ItemTbItemFunc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItemExtra), global::Cfg.ItemTbItemExtra.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbL10NDemo), global::Cfg.L10nTbL10NDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbPatchDemo), global::Cfg.L10nTbPatchDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailTbSystemMail), global::Cfg.MailTbSystemMail.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.MailTbGlobalMail), global::Cfg.MailTbGlobalMail.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleTbRoleLevelExpAttr), global::Cfg.RoleTbRoleLevelExpAttr.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.RoleTbRoleLevelBonusCoefficient), global::Cfg.RoleTbRoleLevelBonusCoefficient.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTbTestTag), global::Cfg.TagTbTestTag.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbFullTypes), global::Cfg.TestTbFullTypes.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbSingleton), global::Cfg.TestTbSingleton.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbNotIndexList), global::Cfg.TestTbNotIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiUnionIndexList), global::Cfg.TestTbMultiUnionIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiIndexList), global::Cfg.TestTbMultiIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDataFromMisc), global::Cfg.TestTbDataFromMisc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowRecord), global::Cfg.TestTbMultiRowRecord.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowTitle), global::Cfg.TestTbMultiRowTitle.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestNull), global::Cfg.TestTbTestNull.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoPrimitive), global::Cfg.TestTbDemoPrimitive.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestString), global::Cfg.TestTbTestString.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup), global::Cfg.TestTbDemoGroup.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_C), global::Cfg.TestTbDemoGroup_C.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_S), global::Cfg.TestTbDemoGroup_S.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_E), global::Cfg.TestTbDemoGroup_E.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestGlobal), global::Cfg.TestTbTestGlobal.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef), global::Cfg.TestTbTestBeRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef2), global::Cfg.TestTbTestBeRef2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestRef), global::Cfg.TestTbTestRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSize), global::Cfg.TestTbTestSize.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSet), global::Cfg.TestTbTestSet.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDetectCsvEncoding), global::Cfg.TestTbDetectCsvEncoding.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel), global::Cfg.TestTbDefineFromExcel.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcelOne), global::Cfg.TestTbDefineFromExcelOne.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestIndex), global::Cfg.TestTbTestIndex.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMap), global::Cfg.TestTbTestMap.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJson), global::Cfg.TestTbExcelFromJson.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable1), global::Cfg.TestTbCompositeJsonTable1.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable2), global::Cfg.TestTbCompositeJsonTable2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable3), global::Cfg.TestTbCompositeJsonTable3.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJsonMultiRow), global::Cfg.TestTbExcelFromJsonMultiRow.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSep), global::Cfg.TestTbTestSep.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestExternalType), global::Cfg.TestTbTestExternalType.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroupDefineFromExcel), global::Cfg.TestTbDemoGroupDefineFromExcel.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel2), global::Cfg.TestTbDefineFromExcel2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestExcelBean), global::Cfg.TestTbTestExcelBean.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestDesc), global::Cfg.TestTbTestDesc.Parser, new[]{ "DataList" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum AiEExecutor { + [pbr::OriginalName("AiEExecutor_CLIENT")] Client = 0, + [pbr::OriginalName("AiEExecutor_SERVER")] Server = 1, + } + + public enum AiEKeyType { + [pbr::OriginalName("AiEKeyType_BOOL")] Bool = 1, + [pbr::OriginalName("AiEKeyType_INT")] Int = 2, + [pbr::OriginalName("AiEKeyType_FLOAT")] Float = 3, + [pbr::OriginalName("AiEKeyType_STRING")] String = 4, + [pbr::OriginalName("AiEKeyType_VECTOR")] Vector = 5, + [pbr::OriginalName("AiEKeyType_ROTATOR")] Rotator = 6, + [pbr::OriginalName("AiEKeyType_NAME")] Name = 7, + [pbr::OriginalName("AiEKeyType_CLASS")] Class = 8, + [pbr::OriginalName("AiEKeyType_ENUM")] Enum = 9, + [pbr::OriginalName("AiEKeyType_OBJECT")] Object = 10, + } + + public enum AiEFlowAbortMode { + [pbr::OriginalName("AiEFlowAbortMode_NONE")] None = 0, + [pbr::OriginalName("AiEFlowAbortMode_LOWER_PRIORITY")] LowerPriority = 1, + [pbr::OriginalName("AiEFlowAbortMode_SELF")] Self = 2, + [pbr::OriginalName("AiEFlowAbortMode_BOTH")] Both = 3, + } + + public enum AiEFinishMode { + [pbr::OriginalName("AiEFinishMode_IMMEDIATE")] Immediate = 0, + [pbr::OriginalName("AiEFinishMode_DELAYED")] Delayed = 1, + } + + public enum AiENotifyObserverMode { + [pbr::OriginalName("AiENotifyObserverMode_ON_VALUE_CHANGE")] OnValueChange = 0, + [pbr::OriginalName("AiENotifyObserverMode_ON_RESULT_CHANGE")] OnResultChange = 1, + } + + public enum AiEOperator { + [pbr::OriginalName("AiEOperator_IS_EQUAL_TO")] IsEqualTo = 0, + [pbr::OriginalName("AiEOperator_IS_NOT_EQUAL_TO")] IsNotEqualTo = 1, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN")] IsLessThan = 2, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN_OR_EQUAL_TO")] IsLessThanOrEqualTo = 3, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN")] IsGreatThan = 4, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO")] IsGreatThanOrEqualTo = 5, + [pbr::OriginalName("AiEOperator_CONTAINS")] Contains = 6, + [pbr::OriginalName("AiEOperator_NOT_CONTAINS")] NotContains = 7, + } + + public enum CommonEBoolOperator { + [pbr::OriginalName("CommonEBoolOperator_AND")] And = 0, + [pbr::OriginalName("CommonEBoolOperator_OR")] Or = 1, + } + + public enum ErrorEOperation { + [pbr::OriginalName("ErrorEOperation_LOGOUT")] Logout = 0, + [pbr::OriginalName("ErrorEOperation_RESTART")] Restart = 1, + } + + public enum ErrorEErrorCode { + [pbr::OriginalName("ErrorEErrorCode_OK")] Ok = 0, + [pbr::OriginalName("ErrorEErrorCode_SERVER_NOT_EXISTS")] ServerNotExists = 1, + [pbr::OriginalName("ErrorEErrorCode_HAS_BIND_SERVER")] HasBindServer = 2, + [pbr::OriginalName("ErrorEErrorCode_AUTH_FAIL")] AuthFail = 3, + [pbr::OriginalName("ErrorEErrorCode_NOT_BIND_SERVER")] NotBindServer = 4, + [pbr::OriginalName("ErrorEErrorCode_SERVER_ACCESS_FAIL")] ServerAccessFail = 5, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_FLASH")] ExampleFlash = 6, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_MSGBOX")] ExampleMsgbox = 7, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_DLG_OK")] ExampleDlgOk = 8, + [pbr::OriginalName("ErrorEErrorCode_EXAMPLE_DLG_OK_CANCEL")] ExampleDlgOkCancel = 9, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_INVALID_CHAR")] RoleCreateNameInvalidChar = 100, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_EMPTY")] RoleCreateNameEmpty = 101, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_NAME_EXCEED_MAX_LENGTH")] RoleCreateNameExceedMaxLength = 102, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_ROLE_LIST_FULL")] RoleCreateRoleListFull = 103, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_INVALID_PROFESSION")] RoleCreateInvalidProfession = 104, + [pbr::OriginalName("ErrorEErrorCode_ROLE_CREATE_INVALID_GENDER")] RoleCreateInvalidGender = 105, + [pbr::OriginalName("ErrorEErrorCode_ROLE_NOT_OWNED_BY_USER")] RoleNotOwnedByUser = 106, + [pbr::OriginalName("ErrorEErrorCode_ROLE_LEVEL_NOT_ARRIVE")] RoleLevelNotArrive = 107, + [pbr::OriginalName("ErrorEErrorCode_PARAM_ILLEGAL")] ParamIllegal = 200, + [pbr::OriginalName("ErrorEErrorCode_TEMP_BAG_NOT_EMPTY")] TempBagNotEmpty = 201, + [pbr::OriginalName("ErrorEErrorCode_ITEM_CAN_NOT_USE")] ItemCanNotUse = 202, + [pbr::OriginalName("ErrorEErrorCode_CURRENCY_NOT_ENOUGH")] CurrencyNotEnough = 203, + [pbr::OriginalName("ErrorEErrorCode_BAG_IS_FULL")] BagIsFull = 204, + [pbr::OriginalName("ErrorEErrorCode_ITEM_NOT_ENOUGH")] ItemNotEnough = 205, + [pbr::OriginalName("ErrorEErrorCode_ITEM_IN_BAG")] ItemInBag = 206, + [pbr::OriginalName("ErrorEErrorCode_GENDER_NOT_MATCH")] GenderNotMatch = 300, + [pbr::OriginalName("ErrorEErrorCode_LEVEL_TOO_LOW")] LevelTooLow = 301, + [pbr::OriginalName("ErrorEErrorCode_LEVEL_TOO_HIGH")] LevelTooHigh = 302, + [pbr::OriginalName("ErrorEErrorCode_EXCEED_LIMIT")] ExceedLimit = 303, + [pbr::OriginalName("ErrorEErrorCode_OVER_TIME")] OverTime = 304, + [pbr::OriginalName("ErrorEErrorCode_SERVER_ERROR")] ServerError = 305, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_IN_LIST")] SkillNotInList = 400, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_COOLDOWN")] SkillNotCooldown = 401, + [pbr::OriginalName("ErrorEErrorCode_SKILL_TARGET_NOT_EXIST")] SkillTargetNotExist = 402, + [pbr::OriginalName("ErrorEErrorCode_SKILL_ANOTHER_CASTING")] SkillAnotherCasting = 403, + [pbr::OriginalName("ErrorEErrorCode_SKILL_OUT_OF_DISTANCE")] SkillOutOfDistance = 404, + [pbr::OriginalName("ErrorEErrorCode_SKILL_TARGET_CAMP_NOT_MATCH")] SkillTargetCampNotMatch = 405, + [pbr::OriginalName("ErrorEErrorCode_SKILL_INVALID_DIRECTION")] SkillInvalidDirection = 406, + [pbr::OriginalName("ErrorEErrorCode_SKILL_NOT_IN_SELECT_SHAPE")] SkillNotInSelectShape = 407, + [pbr::OriginalName("ErrorEErrorCode_SKILL_ENERGY_NOT_ENOUGH")] SkillEnergyNotEnough = 408, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_NODE_NOT_CHOOSEN")] DialogNodeNotChoosen = 500, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_NOT_FINISH")] DialogNotFinish = 501, + [pbr::OriginalName("ErrorEErrorCode_DIALOG_HAS_FINISH")] DialogHasFinish = 502, + [pbr::OriginalName("ErrorEErrorCode_QUEST_STAGE_NOT_FINISHED")] QuestStageNotFinished = 503, + [pbr::OriginalName("ErrorEErrorCode_QUEST_NOT_DOING")] QuestNotDoing = 504, + [pbr::OriginalName("ErrorEErrorCode_QUEST_STAGE_NOT_DOING")] QuestStageNotDoing = 505, + [pbr::OriginalName("ErrorEErrorCode_QUEST_HAS_ACCEPTED")] QuestHasAccepted = 506, + [pbr::OriginalName("ErrorEErrorCode_MAP_OBJECT_NOT_EXIST")] MapObjectNotExist = 600, + [pbr::OriginalName("ErrorEErrorCode_INTERACTION_OBJECT_NOT_SUPPORT_OPERATION")] InteractionObjectNotSupportOperation = 601, + [pbr::OriginalName("ErrorEErrorCode_HAS_NOT_EQUIP")] HasNotEquip = 602, + [pbr::OriginalName("ErrorEErrorCode_HANDHELD_EQUIP_ID_NOT_MATCH")] HandheldEquipIdNotMatch = 603, + [pbr::OriginalName("ErrorEErrorCode_NOT_AVAILABLE_SUIT_ID")] NotAvailableSuitId = 604, + [pbr::OriginalName("ErrorEErrorCode_NO_INTERACTION_COMPONENT")] NoInteractionComponent = 605, + [pbr::OriginalName("ErrorEErrorCode_HAS_INTERACTED")] HasInteracted = 606, + [pbr::OriginalName("ErrorEErrorCode_VIALITY_NOT_ENOUGH")] VialityNotEnough = 607, + [pbr::OriginalName("ErrorEErrorCode_PLAYER_SESSION_NOT_EXIST")] PlayerSessionNotExist = 608, + [pbr::OriginalName("ErrorEErrorCode_PLAYER_SESSION_WORLD_PLAYER_NOT_INIT")] PlayerSessionWorldPlayerNotInit = 609, + [pbr::OriginalName("ErrorEErrorCode_MAP_NOT_EXIST")] MapNotExist = 610, + [pbr::OriginalName("ErrorEErrorCode_MAIL_TYPE_ERROR")] MailTypeError = 700, + [pbr::OriginalName("ErrorEErrorCode_MAIL_NOT_EXITST")] MailNotExitst = 701, + [pbr::OriginalName("ErrorEErrorCode_MAIL_HAVE_DELETED")] MailHaveDeleted = 702, + [pbr::OriginalName("ErrorEErrorCode_MAIL_AWARD_HAVE_RECEIVED")] MailAwardHaveReceived = 703, + [pbr::OriginalName("ErrorEErrorCode_MAIL_OPERATE_TYPE_ERROR")] MailOperateTypeError = 704, + [pbr::OriginalName("ErrorEErrorCode_MAIL_CONDITION_NOT_MEET")] MailConditionNotMeet = 705, + [pbr::OriginalName("ErrorEErrorCode_MAIL_STATE_ERROR")] MailStateError = 706, + [pbr::OriginalName("ErrorEErrorCode_MAIL_NO_AWARD")] MailNoAward = 707, + [pbr::OriginalName("ErrorEErrorCode_MAIL_BOX_IS_FULL")] MailBoxIsFull = 708, + [pbr::OriginalName("ErrorEErrorCode_PROP_SCORE_NOT_BIGGER_THAN")] PropScoreNotBiggerThan = 800, + [pbr::OriginalName("ErrorEErrorCode_NOT_WEAR_CLOTHES")] NotWearClothes = 801, + [pbr::OriginalName("ErrorEErrorCode_NOT_WEAR_SUIT")] NotWearSuit = 802, + [pbr::OriginalName("ErrorEErrorCode_SUIT_NOT_UNLOCK")] SuitNotUnlock = 900, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_NOT_UNLOCK")] SuitComponentNotUnlock = 901, + [pbr::OriginalName("ErrorEErrorCode_SUIT_STATE_ERROR")] SuitStateError = 902, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_STATE_ERROR")] SuitComponentStateError = 903, + [pbr::OriginalName("ErrorEErrorCode_SUIT_COMPONENT_NO_NEED_LEARN")] SuitComponentNoNeedLearn = 904, + [pbr::OriginalName("ErrorEErrorCode_STORE_NOT_ENABLED")] StoreNotEnabled = 1000, + [pbr::OriginalName("ErrorEErrorCode_SHELF_NOT_ENABLED")] ShelfNotEnabled = 1001, + [pbr::OriginalName("ErrorEErrorCode_GOODS_NOT_ENABLED")] GoodsNotEnabled = 1002, + [pbr::OriginalName("ErrorEErrorCode_GOODS_NOT_IN_CUR_REFRESH")] GoodsNotInCurRefresh = 1003, + [pbr::OriginalName("ErrorEErrorCode_RETRY")] Retry = 1100, + [pbr::OriginalName("ErrorEErrorCode_NOT_COOLDOWN")] NotCooldown = 1101, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_UNLOCK")] SelfieUnlock = 1200, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_ALREADY_UNLOCK")] SelfieAlreadyUnlock = 1201, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_LACK_STARTS")] SelfieLackStarts = 1202, + [pbr::OriginalName("ErrorEErrorCode_SELFIE_HAD_REWARD")] SelfieHadReward = 1203, + } + + public enum ItemEItemQuality { + [pbr::OriginalName("ItemEItemQuality_WHITE")] White = 0, + [pbr::OriginalName("ItemEItemQuality_GREEN")] Green = 1, + [pbr::OriginalName("ItemEItemQuality_BLUE")] Blue = 2, + [pbr::OriginalName("ItemEItemQuality_PURPLE")] Purple = 3, + [pbr::OriginalName("ItemEItemQuality_GOLDEN")] Golden = 4, + } + + public enum ItemECurrencyType { + [pbr::OriginalName("ItemECurrencyType_DIAMOND")] Diamond = 1, + [pbr::OriginalName("ItemECurrencyType_GOLD")] Gold = 2, + [pbr::OriginalName("ItemECurrencyType_SILVER")] Silver = 3, + [pbr::OriginalName("ItemECurrencyType_EXP")] Exp = 4, + [pbr::OriginalName("ItemECurrencyType_POWER_POINT")] PowerPoint = 5, + } + + public enum ItemEMajorType { + [pbr::OriginalName("ItemEMajorType_CURRENCY")] Currency = 1, + [pbr::OriginalName("ItemEMajorType_CLOTH")] Cloth = 2, + [pbr::OriginalName("ItemEMajorType_QUEST")] Quest = 3, + [pbr::OriginalName("ItemEMajorType_CONSUMABLES")] Consumables = 4, + [pbr::OriginalName("ItemEMajorType_TREASURE_BOX")] TreasureBox = 5, + [pbr::OriginalName("ItemEMajorType_ACHIEVEMENT_AND_TITLE")] AchievementAndTitle = 6, + [pbr::OriginalName("ItemEMajorType_HEAD_FRAME")] HeadFrame = 7, + [pbr::OriginalName("ItemEMajorType_VOICE")] Voice = 8, + [pbr::OriginalName("ItemEMajorType_ACTION")] Action = 9, + [pbr::OriginalName("ItemEMajorType_EXPANSION")] Expansion = 10, + [pbr::OriginalName("ItemEMajorType_MATERIAL")] Material = 11, + } + + public enum ItemEMinorType { + [pbr::OriginalName("ItemEMinorType_DIAMOND")] Diamond = 101, + [pbr::OriginalName("ItemEMinorType_GOLD")] Gold = 102, + [pbr::OriginalName("ItemEMinorType_SILVER")] Silver = 103, + [pbr::OriginalName("ItemEMinorType_EXP")] Exp = 104, + [pbr::OriginalName("ItemEMinorType_POWER_POINT")] PowerPoint = 105, + [pbr::OriginalName("ItemEMinorType_HAIR_STYLE")] HairStyle = 210, + [pbr::OriginalName("ItemEMinorType_COAT")] Coat = 220, + [pbr::OriginalName("ItemEMinorType_UPPER_JACKET")] UpperJacket = 230, + [pbr::OriginalName("ItemEMinorType_TROUSERS")] Trousers = 241, + [pbr::OriginalName("ItemEMinorType_SKIRT")] Skirt = 242, + [pbr::OriginalName("ItemEMinorType_SOCKS")] Socks = 250, + [pbr::OriginalName("ItemEMinorType_SHOES")] Shoes = 260, + [pbr::OriginalName("ItemEMinorType_HAIR_ACCESSORY")] HairAccessory = 271, + [pbr::OriginalName("ItemEMinorType_HAT")] Hat = 272, + [pbr::OriginalName("ItemEMinorType_EARRING")] Earring = 273, + [pbr::OriginalName("ItemEMinorType_NECKLACE")] Necklace = 274, + [pbr::OriginalName("ItemEMinorType_BRACELET")] Bracelet = 275, + [pbr::OriginalName("ItemEMinorType_HAIR_CLASP")] HairClasp = 276, + [pbr::OriginalName("ItemEMinorType_GLOVE")] Glove = 277, + [pbr::OriginalName("ItemEMinorType_HANDHELD_OBJECT")] HandheldObject = 278, + [pbr::OriginalName("ItemEMinorType_SPECIAL")] Special = 279, + [pbr::OriginalName("ItemEMinorType_BASE_COSMETIC")] BaseCosmetic = 281, + [pbr::OriginalName("ItemEMinorType_EYEBROW_COSMETIC")] EyebrowCosmetic = 282, + [pbr::OriginalName("ItemEMinorType_EYELASH")] Eyelash = 283, + [pbr::OriginalName("ItemEMinorType_COSMETIC_CONTACT_LENSES")] CosmeticContactLenses = 284, + [pbr::OriginalName("ItemEMinorType_LIP_COSMETIC")] LipCosmetic = 285, + [pbr::OriginalName("ItemEMinorType_SKIN_COLOR")] SkinColor = 286, + [pbr::OriginalName("ItemEMinorType_ONE_PIECE_DRESS")] OnePieceDress = 290, + [pbr::OriginalName("ItemEMinorType_SWITCH_CLOTHES_SCENE")] SwitchClothesScene = 291, + [pbr::OriginalName("ItemEMinorType_QUEST")] Quest = 301, + [pbr::OriginalName("ItemEMinorType_CAST")] Cast = 401, + [pbr::OriginalName("ItemEMinorType_SWORD")] Sword = 421, + [pbr::OriginalName("ItemEMinorType_BOW_ARROW")] BowArrow = 422, + [pbr::OriginalName("ItemEMinorType_WANDS")] Wands = 423, + [pbr::OriginalName("ItemEMinorType_SPECIAL_TOOL")] SpecialTool = 424, + [pbr::OriginalName("ItemEMinorType_FOOD")] Food = 403, + [pbr::OriginalName("ItemEMinorType_TREASURE_BOX")] TreasureBox = 501, + [pbr::OriginalName("ItemEMinorType_KEY")] Key = 502, + [pbr::OriginalName("ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX")] MultiChooseTreasureBox = 503, + [pbr::OriginalName("ItemEMinorType_ACHIEVEMENT")] Achievement = 601, + [pbr::OriginalName("ItemEMinorType_TITLE")] Title = 602, + [pbr::OriginalName("ItemEMinorType_AVATAR_FRAME")] AvatarFrame = 701, + [pbr::OriginalName("ItemEMinorType_VOICE")] Voice = 801, + [pbr::OriginalName("ItemEMinorType_IDLE_POSE")] IdlePose = 901, + [pbr::OriginalName("ItemEMinorType_PHOTO_POSE")] PhotoPose = 902, + [pbr::OriginalName("ItemEMinorType_BAG")] Bag = 1001, + [pbr::OriginalName("ItemEMinorType_FRIEND_CAPACITY")] FriendCapacity = 1002, + [pbr::OriginalName("ItemEMinorType_CONSTRUCTION_MATERIAL")] ConstructionMaterial = 1101, + [pbr::OriginalName("ItemEMinorType_DESIGN_DRAWING")] DesignDrawing = 1102, + } + + public enum ItemEClothersStarQualityType { + [pbr::OriginalName("ItemEClothersStarQualityType_ONE")] One = 1, + [pbr::OriginalName("ItemEClothersStarQualityType_TWO")] Two = 2, + [pbr::OriginalName("ItemEClothersStarQualityType_THREE")] Three = 3, + [pbr::OriginalName("ItemEClothersStarQualityType_FOUR")] Four = 4, + [pbr::OriginalName("ItemEClothersStarQualityType_FIVE")] Five = 5, + [pbr::OriginalName("ItemEClothersStarQualityType_SIX")] Six = 6, + [pbr::OriginalName("ItemEClothersStarQualityType_SEVEN")] Seven = 7, + [pbr::OriginalName("ItemEClothersStarQualityType_EIGHT")] Eight = 8, + [pbr::OriginalName("ItemEClothersStarQualityType_NINE")] Nine = 9, + [pbr::OriginalName("ItemEClothersStarQualityType_TEN")] Ten = 10, + } + + public enum ItemEClothersTag { + [pbr::OriginalName("ItemEClothersTag_FANG_SHAI")] FangShai = 1, + [pbr::OriginalName("ItemEClothersTag_WU_ZHE")] WuZhe = 2, + } + + public enum ItemEUseType { + [pbr::OriginalName("ItemEUseType_MANUAL")] Manual = 0, + [pbr::OriginalName("ItemEUseType_AUTO")] Auto = 1, + } + + public enum ItemEClothesHidePartType { + [pbr::OriginalName("ItemEClothesHidePartType_CHEST")] Chest = 0, + [pbr::OriginalName("ItemEClothesHidePartType_HEAD")] Head = 1, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_UPPER")] SpineUpper = 2, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_LOWER")] SpineLower = 3, + [pbr::OriginalName("ItemEClothesHidePartType_HIP")] Hip = 4, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_UPPER")] LegUpper = 5, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_MIDDLE")] LegMiddle = 6, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_LOWER")] LegLower = 7, + } + + public enum ItemEClothesPropertyType { + [pbr::OriginalName("ItemEClothesPropertyType_JIAN_YUE")] JianYue = 1, + [pbr::OriginalName("ItemEClothesPropertyType_HUA_LI")] HuaLi = 2, + [pbr::OriginalName("ItemEClothesPropertyType_KE_AI")] KeAi = 3, + [pbr::OriginalName("ItemEClothesPropertyType_CHENG_SHU")] ChengShu = 4, + [pbr::OriginalName("ItemEClothesPropertyType_HUO_PO")] HuoPo = 5, + [pbr::OriginalName("ItemEClothesPropertyType_YOU_YA")] YouYa = 6, + [pbr::OriginalName("ItemEClothesPropertyType_QING_CHUN")] QingChun = 7, + [pbr::OriginalName("ItemEClothesPropertyType_XING_GAN")] XingGan = 8, + [pbr::OriginalName("ItemEClothesPropertyType_QING_LIANG")] QingLiang = 9, + [pbr::OriginalName("ItemEClothesPropertyType_BAO_NUAN")] BaoNuan = 10, + } + + public enum ItemEItemFunctionType { + [pbr::OriginalName("ItemEItemFunctionType_REPLACE_HANDHELD")] ReplaceHandheld = 0, + [pbr::OriginalName("ItemEItemFunctionType_USE_DESIGN_DRAWING")] UseDesignDrawing = 1, + } + + public enum LimitENamespace { + [pbr::OriginalName("LimitENamespace_ITEM_DAILY_OBTAIN")] ItemDailyObtain = 1, + [pbr::OriginalName("LimitENamespace_TREASURE_DAILY_USE")] TreasureDailyUse = 2, + [pbr::OriginalName("LimitENamespace_STORE_GOODS_LIMIT_BUY")] StoreGoodsLimitBuy = 3, + } + + public enum MailEMailType { + [pbr::OriginalName("MailEMailType_GLOBAL")] Global = 0, + [pbr::OriginalName("MailEMailType_SYSTEM")] System = 1, + } + + public enum RoleEGenderType { + [pbr::OriginalName("RoleEGenderType_MALE")] Male = 1, + [pbr::OriginalName("RoleEGenderType_FEMALE")] Female = 2, + } + + public enum RoleEProfession { + [pbr::OriginalName("RoleEProfession_TEST_PROFESSION")] TestProfession = 1, + } + + public enum TestDemoEnum { + [pbr::OriginalName("TestDemoEnum_A")] A = 1, + [pbr::OriginalName("TestDemoEnum_B")] B = 2, + [pbr::OriginalName("TestDemoEnum_C")] C = 4, + [pbr::OriginalName("TestDemoEnum_D")] D = 5, + } + + public enum TestDemoFlag { + [pbr::OriginalName("TestDemoFlag_A")] A = 1, + [pbr::OriginalName("TestDemoFlag_B")] B = 2, + [pbr::OriginalName("TestDemoFlag_D")] D = 3, + } + + public enum TestETestUeType { + [pbr::OriginalName("TestETestUeType_WHITE")] White = 0, + [pbr::OriginalName("TestETestUeType_BLACK")] Black = 1, + } + + public enum TestETestEmptyEnum { + [pbr::OriginalName("TestETestEmptyEnum_EMPTY_PLACEHOLDER")] EmptyPlaceholder = 0, + } + + public enum TestETestEmptyEnum2 { + [pbr::OriginalName("TestETestEmptyEnum2_SMALL_THAN_256")] SmallThan256 = 255, + [pbr::OriginalName("TestETestEmptyEnum2_X_256")] X256 = 256, + [pbr::OriginalName("TestETestEmptyEnum2_X_257")] X257 = 257, + } + + public enum TestAudioType { + [pbr::OriginalName("TestAudioType_UNKNOWN")] Unknown = 0, + [pbr::OriginalName("TestAudioType_ACC")] Acc = 1, + [pbr::OriginalName("TestAudioType_AIFF")] Aiff = 2, + } + + public enum TestETestQuality { + [pbr::OriginalName("TestETestQuality_A")] A = 1, + [pbr::OriginalName("TestETestQuality_B")] B = 2, + [pbr::OriginalName("TestETestQuality_C")] C = 3, + [pbr::OriginalName("TestETestQuality_D")] D = 4, + } + + public enum TestAccessFlag { + [pbr::OriginalName("TestAccessFlag_WRITE")] Write = 1, + [pbr::OriginalName("TestAccessFlag_READ")] Read = 2, + [pbr::OriginalName("TestAccessFlag_TRUNCATE")] Truncate = 4, + [pbr::OriginalName("TestAccessFlag_NEW")] New = 8, + [pbr::OriginalName("TestAccessFlag_READ_WRITE")] ReadWrite = 3, + } + + #endregion + + #region Messages + /// + /// luban internal types begin + /// + public sealed partial class Vector2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2(Vector2 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2 Clone() { + return new Vector2(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector2 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3(Vector3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3 Clone() { + return new Vector3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector4 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector4()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4(Vector4 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + w_ = other.w_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4 Clone() { + return new Vector4(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + /// Field number for the "w" field. + public const int WFieldNumber = 4; + private readonly static float WDefaultValue = 0F; + + private float w_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float W { + get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } + set { + _hasBits0 |= 8; + w_ = value; + } + } + /// Gets whether the "w" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasW { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "w" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearW() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector4); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector4 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (HasW) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector4 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.HasW) { + W = other.W; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard(AiBlackboard other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parentName_ = other.parentName_; + keys_ = other.keys_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard Clone() { + return new AiBlackboard(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parent_name" field. + public const int ParentNameFieldNumber = 3; + private readonly static string ParentNameDefaultValue = ""; + + private string parentName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParentName { + get { return parentName_ ?? ParentNameDefaultValue; } + set { + parentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "parent_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParentName { + get { return parentName_ != null; } + } + /// Clears the value of the "parent_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParentName() { + parentName_ = null; + } + + /// Field number for the "keys" field. + public const int KeysFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_keys_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiBlackboardKey.Parser); + private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Keys { + get { return keys_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ParentName != other.ParentName) return false; + if(!keys_.Equals(other.keys_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasParentName) hash ^= ParentName.GetHashCode(); + hash ^= keys_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(ref output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasParentName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentName); + } + size += keys_.CalculateSize(_repeated_keys_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboard other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasParentName) { + ParentName = other.ParentName; + } + keys_.Add(other.keys_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(input, _repeated_keys_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey(AiBlackboardKey other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + type_ = other.type_; + typeClassName_ = other.typeClassName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey Clone() { + return new AiBlackboardKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private readonly static global::Cfg.AiEKeyType TypeDefaultValue = global::Cfg.AiEKeyType.Bool; + + private global::Cfg.AiEKeyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEKeyType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "type_class_name" field. + public const int TypeClassNameFieldNumber = 5; + private readonly static string TypeClassNameDefaultValue = ""; + + private string typeClassName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TypeClassName { + get { return typeClassName_ ?? TypeClassNameDefaultValue; } + set { + typeClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type_class_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTypeClassName { + get { return typeClassName_ != null; } + } + /// Clears the value of the "type_class_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTypeClassName() { + typeClassName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (Type != other.Type) return false; + if (TypeClassName != other.TypeClassName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTypeClassName) hash ^= TypeClassName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasTypeClassName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeClassName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKey other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasTypeClassName) { + TypeClassName = other.TypeClassName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree(AiBehaviorTree other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + blackboardId_ = other.blackboardId_; + root_ = other.root_ != null ? other.root_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree Clone() { + return new AiBehaviorTree(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "blackboard_id" field. + public const int BlackboardIdFieldNumber = 4; + private readonly static string BlackboardIdDefaultValue = ""; + + private string blackboardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardId { + get { return blackboardId_ ?? BlackboardIdDefaultValue; } + set { + blackboardId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardId { + get { return blackboardId_ != null; } + } + /// Clears the value of the "blackboard_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardId() { + blackboardId_ = null; + } + + /// Field number for the "root" field. + public const int RootFieldNumber = 5; + private global::Cfg.AiComposeNode root_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiComposeNode Root { + get { return root_; } + set { + root_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (BlackboardId != other.BlackboardId) return false; + if (!object.Equals(Root, other.Root)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasBlackboardId) hash ^= BlackboardId.GetHashCode(); + if (root_ != null) hash ^= Root.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasBlackboardId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardId); + } + if (root_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Root); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBehaviorTree other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasBlackboardId) { + BlackboardId = other.BlackboardId; + } + if (other.root_ != null) { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + Root.MergeFrom(other.Root); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode(AiNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode Clone() { + return new AiNode(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiService : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiService()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService(AiService other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService Clone() { + return new AiService(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiService); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiService other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiService other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeSetDefaultFocus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeSetDefaultFocus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus(AiUeSetDefaultFocus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + keyboardKey_ = other.keyboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus Clone() { + return new AiUeSetDefaultFocus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 3; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeSetDefaultFocus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeSetDefaultFocus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (KeyboardKey != other.KeyboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeSetDefaultFocus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiExecuteTimeStatistic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiExecuteTimeStatistic()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic(AiExecuteTimeStatistic other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic Clone() { + return new AiExecuteTimeStatistic(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiExecuteTimeStatistic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiExecuteTimeStatistic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiExecuteTimeStatistic other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget(AiChooseTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + resultTargetKey_ = other.resultTargetKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget Clone() { + return new AiChooseTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "result_target_key" field. + public const int ResultTargetKeyFieldNumber = 3; + private readonly static string ResultTargetKeyDefaultValue = ""; + + private string resultTargetKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultTargetKey { + get { return resultTargetKey_ ?? ResultTargetKeyDefaultValue; } + set { + resultTargetKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_target_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultTargetKey { + get { return resultTargetKey_ != null; } + } + /// Clears the value of the "result_target_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultTargetKey() { + resultTargetKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (ResultTargetKey != other.ResultTargetKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasResultTargetKey) hash ^= ResultTargetKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasResultTargetKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultTargetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasResultTargetKey) { + ResultTargetKey = other.ResultTargetKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeepFaceTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeepFaceTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget(AiKeepFaceTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + targetActorKey_ = other.targetActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget Clone() { + return new AiKeepFaceTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 3; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeepFaceTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeepFaceTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (TargetActorKey != other.TargetActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeepFaceTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiGetOwnerPlayer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiGetOwnerPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer(AiGetOwnerPlayer other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + playerActorKey_ = other.playerActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer Clone() { + return new AiGetOwnerPlayer(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "player_actor_key" field. + public const int PlayerActorKeyFieldNumber = 3; + private readonly static string PlayerActorKeyDefaultValue = ""; + + private string playerActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayerActorKey { + get { return playerActorKey_ ?? PlayerActorKeyDefaultValue; } + set { + playerActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "player_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerActorKey { + get { return playerActorKey_ != null; } + } + /// Clears the value of the "player_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerActorKey() { + playerActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiGetOwnerPlayer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiGetOwnerPlayer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (PlayerActorKey != other.PlayerActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasPlayerActorKey) hash ^= PlayerActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasPlayerActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiGetOwnerPlayer other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasPlayerActorKey) { + PlayerActorKey = other.PlayerActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUpdateDailyBehaviorProps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUpdateDailyBehaviorProps()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps(AiUpdateDailyBehaviorProps other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + satietyKey_ = other.satietyKey_; + energyKey_ = other.energyKey_; + moodKey_ = other.moodKey_; + satietyLowerThresholdKey_ = other.satietyLowerThresholdKey_; + satietyUpperThresholdKey_ = other.satietyUpperThresholdKey_; + energyLowerThresholdKey_ = other.energyLowerThresholdKey_; + energyUpperThresholdKey_ = other.energyUpperThresholdKey_; + moodLowerThresholdKey_ = other.moodLowerThresholdKey_; + moodUpperThresholdKey_ = other.moodUpperThresholdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps Clone() { + return new AiUpdateDailyBehaviorProps(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "satiety_key" field. + public const int SatietyKeyFieldNumber = 3; + private readonly static string SatietyKeyDefaultValue = ""; + + private string satietyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyKey { + get { return satietyKey_ ?? SatietyKeyDefaultValue; } + set { + satietyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyKey { + get { return satietyKey_ != null; } + } + /// Clears the value of the "satiety_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyKey() { + satietyKey_ = null; + } + + /// Field number for the "energy_key" field. + public const int EnergyKeyFieldNumber = 4; + private readonly static string EnergyKeyDefaultValue = ""; + + private string energyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyKey { + get { return energyKey_ ?? EnergyKeyDefaultValue; } + set { + energyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyKey { + get { return energyKey_ != null; } + } + /// Clears the value of the "energy_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyKey() { + energyKey_ = null; + } + + /// Field number for the "mood_key" field. + public const int MoodKeyFieldNumber = 5; + private readonly static string MoodKeyDefaultValue = ""; + + private string moodKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodKey { + get { return moodKey_ ?? MoodKeyDefaultValue; } + set { + moodKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodKey { + get { return moodKey_ != null; } + } + /// Clears the value of the "mood_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodKey() { + moodKey_ = null; + } + + /// Field number for the "satiety_lower_threshold_key" field. + public const int SatietyLowerThresholdKeyFieldNumber = 6; + private readonly static string SatietyLowerThresholdKeyDefaultValue = ""; + + private string satietyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ ?? SatietyLowerThresholdKeyDefaultValue; } + set { + satietyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ != null; } + } + /// Clears the value of the "satiety_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyLowerThresholdKey() { + satietyLowerThresholdKey_ = null; + } + + /// Field number for the "satiety_upper_threshold_key" field. + public const int SatietyUpperThresholdKeyFieldNumber = 7; + private readonly static string SatietyUpperThresholdKeyDefaultValue = ""; + + private string satietyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ ?? SatietyUpperThresholdKeyDefaultValue; } + set { + satietyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ != null; } + } + /// Clears the value of the "satiety_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyUpperThresholdKey() { + satietyUpperThresholdKey_ = null; + } + + /// Field number for the "energy_lower_threshold_key" field. + public const int EnergyLowerThresholdKeyFieldNumber = 8; + private readonly static string EnergyLowerThresholdKeyDefaultValue = ""; + + private string energyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ ?? EnergyLowerThresholdKeyDefaultValue; } + set { + energyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ != null; } + } + /// Clears the value of the "energy_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLowerThresholdKey() { + energyLowerThresholdKey_ = null; + } + + /// Field number for the "energy_upper_threshold_key" field. + public const int EnergyUpperThresholdKeyFieldNumber = 9; + private readonly static string EnergyUpperThresholdKeyDefaultValue = ""; + + private string energyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ ?? EnergyUpperThresholdKeyDefaultValue; } + set { + energyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ != null; } + } + /// Clears the value of the "energy_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyUpperThresholdKey() { + energyUpperThresholdKey_ = null; + } + + /// Field number for the "mood_lower_threshold_key" field. + public const int MoodLowerThresholdKeyFieldNumber = 10; + private readonly static string MoodLowerThresholdKeyDefaultValue = ""; + + private string moodLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodLowerThresholdKey { + get { return moodLowerThresholdKey_ ?? MoodLowerThresholdKeyDefaultValue; } + set { + moodLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodLowerThresholdKey { + get { return moodLowerThresholdKey_ != null; } + } + /// Clears the value of the "mood_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodLowerThresholdKey() { + moodLowerThresholdKey_ = null; + } + + /// Field number for the "mood_upper_threshold_key" field. + public const int MoodUpperThresholdKeyFieldNumber = 11; + private readonly static string MoodUpperThresholdKeyDefaultValue = ""; + + private string moodUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodUpperThresholdKey { + get { return moodUpperThresholdKey_ ?? MoodUpperThresholdKeyDefaultValue; } + set { + moodUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodUpperThresholdKey { + get { return moodUpperThresholdKey_ != null; } + } + /// Clears the value of the "mood_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodUpperThresholdKey() { + moodUpperThresholdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUpdateDailyBehaviorProps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUpdateDailyBehaviorProps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (SatietyKey != other.SatietyKey) return false; + if (EnergyKey != other.EnergyKey) return false; + if (MoodKey != other.MoodKey) return false; + if (SatietyLowerThresholdKey != other.SatietyLowerThresholdKey) return false; + if (SatietyUpperThresholdKey != other.SatietyUpperThresholdKey) return false; + if (EnergyLowerThresholdKey != other.EnergyLowerThresholdKey) return false; + if (EnergyUpperThresholdKey != other.EnergyUpperThresholdKey) return false; + if (MoodLowerThresholdKey != other.MoodLowerThresholdKey) return false; + if (MoodUpperThresholdKey != other.MoodUpperThresholdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasSatietyKey) hash ^= SatietyKey.GetHashCode(); + if (HasEnergyKey) hash ^= EnergyKey.GetHashCode(); + if (HasMoodKey) hash ^= MoodKey.GetHashCode(); + if (HasSatietyLowerThresholdKey) hash ^= SatietyLowerThresholdKey.GetHashCode(); + if (HasSatietyUpperThresholdKey) hash ^= SatietyUpperThresholdKey.GetHashCode(); + if (HasEnergyLowerThresholdKey) hash ^= EnergyLowerThresholdKey.GetHashCode(); + if (HasEnergyUpperThresholdKey) hash ^= EnergyUpperThresholdKey.GetHashCode(); + if (HasMoodLowerThresholdKey) hash ^= MoodLowerThresholdKey.GetHashCode(); + if (HasMoodUpperThresholdKey) hash ^= MoodUpperThresholdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasSatietyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyKey); + } + if (HasEnergyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyKey); + } + if (HasMoodKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUpdateDailyBehaviorProps other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasSatietyKey) { + SatietyKey = other.SatietyKey; + } + if (other.HasEnergyKey) { + EnergyKey = other.EnergyKey; + } + if (other.HasMoodKey) { + MoodKey = other.MoodKey; + } + if (other.HasSatietyLowerThresholdKey) { + SatietyLowerThresholdKey = other.SatietyLowerThresholdKey; + } + if (other.HasSatietyUpperThresholdKey) { + SatietyUpperThresholdKey = other.SatietyUpperThresholdKey; + } + if (other.HasEnergyLowerThresholdKey) { + EnergyLowerThresholdKey = other.EnergyLowerThresholdKey; + } + if (other.HasEnergyUpperThresholdKey) { + EnergyUpperThresholdKey = other.EnergyUpperThresholdKey; + } + if (other.HasMoodLowerThresholdKey) { + MoodLowerThresholdKey = other.MoodLowerThresholdKey; + } + if (other.HasMoodUpperThresholdKey) { + MoodUpperThresholdKey = other.MoodUpperThresholdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDecorator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator(AiDecorator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator Clone() { + return new AiDecorator(this); + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDecorator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeLoop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeLoop()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop(AiUeLoop other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + numLoops_ = other.numLoops_; + infiniteLoop_ = other.infiniteLoop_; + infiniteLoopTimeoutTime_ = other.infiniteLoopTimeoutTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop Clone() { + return new AiUeLoop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "num_loops" field. + public const int NumLoopsFieldNumber = 4; + private readonly static int NumLoopsDefaultValue = 0; + + private int numLoops_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumLoops { + get { if ((_hasBits0 & 4) != 0) { return numLoops_; } else { return NumLoopsDefaultValue; } } + set { + _hasBits0 |= 4; + numLoops_ = value; + } + } + /// Gets whether the "num_loops" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumLoops { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num_loops" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumLoops() { + _hasBits0 &= ~4; + } + + /// Field number for the "infinite_loop" field. + public const int InfiniteLoopFieldNumber = 5; + private readonly static bool InfiniteLoopDefaultValue = false; + + private bool infiniteLoop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InfiniteLoop { + get { if ((_hasBits0 & 8) != 0) { return infiniteLoop_; } else { return InfiniteLoopDefaultValue; } } + set { + _hasBits0 |= 8; + infiniteLoop_ = value; + } + } + /// Gets whether the "infinite_loop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoop { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "infinite_loop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoop() { + _hasBits0 &= ~8; + } + + /// Field number for the "infinite_loop_timeout_time" field. + public const int InfiniteLoopTimeoutTimeFieldNumber = 6; + private readonly static float InfiniteLoopTimeoutTimeDefaultValue = 0F; + + private float infiniteLoopTimeoutTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float InfiniteLoopTimeoutTime { + get { if ((_hasBits0 & 16) != 0) { return infiniteLoopTimeoutTime_; } else { return InfiniteLoopTimeoutTimeDefaultValue; } } + set { + _hasBits0 |= 16; + infiniteLoopTimeoutTime_ = value; + } + } + /// Gets whether the "infinite_loop_timeout_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoopTimeoutTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "infinite_loop_timeout_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoopTimeoutTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeLoop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeLoop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NumLoops != other.NumLoops) return false; + if (InfiniteLoop != other.InfiniteLoop) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfiniteLoopTimeoutTime, other.InfiniteLoopTimeoutTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNumLoops) hash ^= NumLoops.GetHashCode(); + if (HasInfiniteLoop) hash ^= InfiniteLoop.GetHashCode(); + if (HasInfiniteLoopTimeoutTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfiniteLoopTimeoutTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNumLoops) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumLoops); + } + if (HasInfiniteLoop) { + size += 1 + 1; + } + if (HasInfiniteLoopTimeoutTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeLoop other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNumLoops) { + NumLoops = other.NumLoops; + } + if (other.HasInfiniteLoop) { + InfiniteLoop = other.InfiniteLoop; + } + if (other.HasInfiniteLoopTimeoutTime) { + InfiniteLoopTimeoutTime = other.InfiniteLoopTimeoutTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeCooldown : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeCooldown()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown(AiUeCooldown other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + cooldownTime_ = other.cooldownTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown Clone() { + return new AiUeCooldown(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "cooldown_time" field. + public const int CooldownTimeFieldNumber = 4; + private readonly static float CooldownTimeDefaultValue = 0F; + + private float cooldownTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CooldownTime { + get { if ((_hasBits0 & 4) != 0) { return cooldownTime_; } else { return CooldownTimeDefaultValue; } } + set { + _hasBits0 |= 4; + cooldownTime_ = value; + } + } + /// Gets whether the "cooldown_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCooldownTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cooldown_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCooldownTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeCooldown); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeCooldown other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CooldownTime, other.CooldownTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasCooldownTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CooldownTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasCooldownTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeCooldown other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasCooldownTime) { + CooldownTime = other.CooldownTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeTimeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeTimeLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit(AiUeTimeLimit other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + limitTime_ = other.limitTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit Clone() { + return new AiUeTimeLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 4; + private readonly static float LimitTimeDefaultValue = 0F; + + private float limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LimitTime { + get { if ((_hasBits0 & 4) != 0) { return limitTime_; } else { return LimitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + limitTime_ = value; + } + } + /// Gets whether the "limit_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLimitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "limit_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLimitTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeTimeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeTimeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LimitTime, other.LimitTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasLimitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LimitTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasLimitTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeTimeLimit other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasLimitTime) { + LimitTime = other.LimitTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeBlackboard()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard(AiUeBlackboard other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + notifyObserver_ = other.notifyObserver_; + blackboardKey_ = other.blackboardKey_; + keyQuery_ = other.keyQuery_ != null ? other.keyQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard Clone() { + return new AiUeBlackboard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "notify_observer" field. + public const int NotifyObserverFieldNumber = 4; + private readonly static global::Cfg.AiENotifyObserverMode NotifyObserverDefaultValue = global::Cfg.AiENotifyObserverMode.OnValueChange; + + private global::Cfg.AiENotifyObserverMode notifyObserver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiENotifyObserverMode NotifyObserver { + get { if ((_hasBits0 & 4) != 0) { return notifyObserver_; } else { return NotifyObserverDefaultValue; } } + set { + _hasBits0 |= 4; + notifyObserver_ = value; + } + } + /// Gets whether the "notify_observer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNotifyObserver { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "notify_observer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNotifyObserver() { + _hasBits0 &= ~4; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 5; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + /// Field number for the "key_query" field. + public const int KeyQueryFieldNumber = 6; + private global::Cfg.AiKeyQueryOperator keyQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyQueryOperator KeyQuery { + get { return keyQuery_; } + set { + keyQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NotifyObserver != other.NotifyObserver) return false; + if (BlackboardKey != other.BlackboardKey) return false; + if (!object.Equals(KeyQuery, other.KeyQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNotifyObserver) hash ^= NotifyObserver.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (keyQuery_ != null) hash ^= KeyQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNotifyObserver) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NotifyObserver); + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (keyQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeBlackboard other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNotifyObserver) { + NotifyObserver = other.NotifyObserver; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + if (other.keyQuery_ != null) { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + KeyQuery.MergeFrom(other.KeyQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyQueryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyQueryOperator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator(AiKeyQueryOperator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + IsSet = other.IsSet.Clone(); + break; + case ValueOneofCase.IsNotSet: + IsNotSet = other.IsNotSet.Clone(); + break; + case ValueOneofCase.BinaryOperator: + BinaryOperator = other.BinaryOperator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator Clone() { + return new AiKeyQueryOperator(this); + } + + /// Field number for the "IsSet" field. + public const int IsSetFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsSet IsSet { + get { return valueCase_ == ValueOneofCase.IsSet ? (global::Cfg.AiIsSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsSet; + } + } + + /// Field number for the "IsNotSet" field. + public const int IsNotSetFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsNotSet IsNotSet { + get { return valueCase_ == ValueOneofCase.IsNotSet ? (global::Cfg.AiIsNotSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsNotSet; + } + } + + /// Field number for the "BinaryOperator" field. + public const int BinaryOperatorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBinaryOperator BinaryOperator { + get { return valueCase_ == ValueOneofCase.BinaryOperator ? (global::Cfg.AiBinaryOperator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BinaryOperator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + IsSet = 1, + IsNotSet = 2, + BinaryOperator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyQueryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyQueryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IsSet, other.IsSet)) return false; + if (!object.Equals(IsNotSet, other.IsNotSet)) return false; + if (!object.Equals(BinaryOperator, other.BinaryOperator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.IsSet) hash ^= IsSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsNotSet) hash ^= IsNotSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.BinaryOperator) hash ^= BinaryOperator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.IsSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryOperator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyQueryOperator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + if (IsSet == null) { + IsSet = new global::Cfg.AiIsSet(); + } + IsSet.MergeFrom(other.IsSet); + break; + case ValueOneofCase.IsNotSet: + if (IsNotSet == null) { + IsNotSet = new global::Cfg.AiIsNotSet(); + } + IsNotSet.MergeFrom(other.IsNotSet); + break; + case ValueOneofCase.BinaryOperator: + if (BinaryOperator == null) { + BinaryOperator = new global::Cfg.AiBinaryOperator(); + } + BinaryOperator.MergeFrom(other.BinaryOperator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet(AiIsSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet Clone() { + return new AiIsSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiIsNotSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsNotSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet(AiIsNotSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet Clone() { + return new AiIsNotSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsNotSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsNotSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsNotSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiBinaryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBinaryOperator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator(AiBinaryOperator other) : this() { + _hasBits0 = other._hasBits0; + oper_ = other.oper_; + data_ = other.data_ != null ? other.data_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator Clone() { + return new AiBinaryOperator(this); + } + + /// Field number for the "oper" field. + public const int OperFieldNumber = 1; + private readonly static global::Cfg.AiEOperator OperDefaultValue = global::Cfg.AiEOperator.IsEqualTo; + + private global::Cfg.AiEOperator oper_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEOperator Oper { + get { if ((_hasBits0 & 1) != 0) { return oper_; } else { return OperDefaultValue; } } + set { + _hasBits0 |= 1; + oper_ = value; + } + } + /// Gets whether the "oper" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOper { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "oper" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOper() { + _hasBits0 &= ~1; + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private global::Cfg.AiKeyData data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyData Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBinaryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBinaryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Oper != other.Oper) return false; + if (!object.Equals(Data, other.Data)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasOper) hash ^= Oper.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasOper) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Oper); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBinaryOperator other) { + if (other == null) { + return; + } + if (other.HasOper) { + Oper = other.Oper; + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + Data.MergeFrom(other.Data); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData(AiKeyData other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + FloatKeyData = other.FloatKeyData.Clone(); + break; + case ValueOneofCase.IntKeyData: + IntKeyData = other.IntKeyData.Clone(); + break; + case ValueOneofCase.StringKeyData: + StringKeyData = other.StringKeyData.Clone(); + break; + case ValueOneofCase.BlackboardKeyData: + BlackboardKeyData = other.BlackboardKeyData.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData Clone() { + return new AiKeyData(this); + } + + /// Field number for the "FloatKeyData" field. + public const int FloatKeyDataFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFloatKeyData FloatKeyData { + get { return valueCase_ == ValueOneofCase.FloatKeyData ? (global::Cfg.AiFloatKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.FloatKeyData; + } + } + + /// Field number for the "IntKeyData" field. + public const int IntKeyDataFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIntKeyData IntKeyData { + get { return valueCase_ == ValueOneofCase.IntKeyData ? (global::Cfg.AiIntKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IntKeyData; + } + } + + /// Field number for the "StringKeyData" field. + public const int StringKeyDataFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiStringKeyData StringKeyData { + get { return valueCase_ == ValueOneofCase.StringKeyData ? (global::Cfg.AiStringKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.StringKeyData; + } + } + + /// Field number for the "BlackboardKeyData" field. + public const int BlackboardKeyDataFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBlackboardKeyData BlackboardKeyData { + get { return valueCase_ == ValueOneofCase.BlackboardKeyData ? (global::Cfg.AiBlackboardKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlackboardKeyData; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + FloatKeyData = 1, + IntKeyData = 2, + StringKeyData = 3, + BlackboardKeyData = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FloatKeyData, other.FloatKeyData)) return false; + if (!object.Equals(IntKeyData, other.IntKeyData)) return false; + if (!object.Equals(StringKeyData, other.StringKeyData)) return false; + if (!object.Equals(BlackboardKeyData, other.BlackboardKeyData)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.FloatKeyData) hash ^= FloatKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.IntKeyData) hash ^= IntKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.StringKeyData) hash ^= StringKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) hash ^= BlackboardKeyData.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.FloatKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlackboardKeyData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyData other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + if (FloatKeyData == null) { + FloatKeyData = new global::Cfg.AiFloatKeyData(); + } + FloatKeyData.MergeFrom(other.FloatKeyData); + break; + case ValueOneofCase.IntKeyData: + if (IntKeyData == null) { + IntKeyData = new global::Cfg.AiIntKeyData(); + } + IntKeyData.MergeFrom(other.IntKeyData); + break; + case ValueOneofCase.StringKeyData: + if (StringKeyData == null) { + StringKeyData = new global::Cfg.AiStringKeyData(); + } + StringKeyData.MergeFrom(other.StringKeyData); + break; + case ValueOneofCase.BlackboardKeyData: + if (BlackboardKeyData == null) { + BlackboardKeyData = new global::Cfg.AiBlackboardKeyData(); + } + BlackboardKeyData.MergeFrom(other.BlackboardKeyData); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFloatKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFloatKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData(AiFloatKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData Clone() { + return new AiFloatKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static float ValueDefaultValue = 0F; + + private float value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFloatKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFloatKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFloatKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIntKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIntKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData(AiIntKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData Clone() { + return new AiIntKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIntKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIntKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIntKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiStringKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiStringKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData(AiStringKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData Clone() { + return new AiStringKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiStringKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiStringKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiStringKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData(AiBlackboardKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData Clone() { + return new AiBlackboardKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeForceSuccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeForceSuccess()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess(AiUeForceSuccess other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess Clone() { + return new AiUeForceSuccess(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeForceSuccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeForceSuccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeForceSuccess other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsAtLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsAtLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation(AiIsAtLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + acceptableRadius_ = other.acceptableRadius_; + keyboardKey_ = other.keyboardKey_; + inverseCondition_ = other.inverseCondition_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation Clone() { + return new AiIsAtLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 4; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 5; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + /// Field number for the "inverse_condition" field. + public const int InverseConditionFieldNumber = 6; + private readonly static bool InverseConditionDefaultValue = false; + + private bool inverseCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InverseCondition { + get { if ((_hasBits0 & 8) != 0) { return inverseCondition_; } else { return InverseConditionDefaultValue; } } + set { + _hasBits0 |= 8; + inverseCondition_ = value; + } + } + /// Gets whether the "inverse_condition" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInverseCondition { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "inverse_condition" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInverseCondition() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsAtLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsAtLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + if (KeyboardKey != other.KeyboardKey) return false; + if (InverseCondition != other.InverseCondition) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (HasInverseCondition) hash ^= InverseCondition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (HasInverseCondition) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsAtLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + if (other.HasInverseCondition) { + InverseCondition = other.InverseCondition; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDistanceLessThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDistanceLessThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan(AiDistanceLessThan other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + actor1Key_ = other.actor1Key_; + actor2Key_ = other.actor2Key_; + distance_ = other.distance_; + reverseResult_ = other.reverseResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan Clone() { + return new AiDistanceLessThan(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "actor1_key" field. + public const int Actor1KeyFieldNumber = 4; + private readonly static string Actor1KeyDefaultValue = ""; + + private string actor1Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor1Key { + get { return actor1Key_ ?? Actor1KeyDefaultValue; } + set { + actor1Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor1_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor1Key { + get { return actor1Key_ != null; } + } + /// Clears the value of the "actor1_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor1Key() { + actor1Key_ = null; + } + + /// Field number for the "actor2_key" field. + public const int Actor2KeyFieldNumber = 5; + private readonly static string Actor2KeyDefaultValue = ""; + + private string actor2Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor2Key { + get { return actor2Key_ ?? Actor2KeyDefaultValue; } + set { + actor2Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor2_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor2Key { + get { return actor2Key_ != null; } + } + /// Clears the value of the "actor2_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor2Key() { + actor2Key_ = null; + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 6; + private readonly static float DistanceDefaultValue = 0F; + + private float distance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Distance { + get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } + set { + _hasBits0 |= 4; + distance_ = value; + } + } + /// Gets whether the "distance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "distance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistance() { + _hasBits0 &= ~4; + } + + /// Field number for the "reverse_result" field. + public const int ReverseResultFieldNumber = 7; + private readonly static bool ReverseResultDefaultValue = false; + + private bool reverseResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReverseResult { + get { if ((_hasBits0 & 8) != 0) { return reverseResult_; } else { return ReverseResultDefaultValue; } } + set { + _hasBits0 |= 8; + reverseResult_ = value; + } + } + /// Gets whether the "reverse_result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverseResult { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "reverse_result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverseResult() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDistanceLessThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDistanceLessThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (Actor1Key != other.Actor1Key) return false; + if (Actor2Key != other.Actor2Key) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; + if (ReverseResult != other.ReverseResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasActor1Key) hash ^= Actor1Key.GetHashCode(); + if (HasActor2Key) hash ^= Actor2Key.GetHashCode(); + if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); + if (HasReverseResult) hash ^= ReverseResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasActor1Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor1Key); + } + if (HasActor2Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor2Key); + } + if (HasDistance) { + size += 1 + 4; + } + if (HasReverseResult) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDistanceLessThan other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasActor1Key) { + Actor1Key = other.Actor1Key; + } + if (other.HasActor2Key) { + Actor2Key = other.Actor2Key; + } + if (other.HasDistance) { + Distance = other.Distance; + } + if (other.HasReverseResult) { + ReverseResult = other.ReverseResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFlowNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFlowNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode(AiFlowNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode Clone() { + return new AiFlowNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFlowNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFlowNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFlowNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiComposeNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiComposeNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode(AiComposeNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode Clone() { + return new AiComposeNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiComposeNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiComposeNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiComposeNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSequence()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence(AiSequence other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence Clone() { + return new AiSequence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSequence other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSelector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSelector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector(AiSelector other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector Clone() { + return new AiSelector(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSelector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSelector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSelector other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSimpleParallel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSimpleParallel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel(AiSimpleParallel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + finishMode_ = other.finishMode_; + mainTask_ = other.mainTask_ != null ? other.mainTask_.Clone() : null; + backgroundNode_ = other.backgroundNode_ != null ? other.backgroundNode_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel Clone() { + return new AiSimpleParallel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "finish_mode" field. + public const int FinishModeFieldNumber = 5; + private readonly static global::Cfg.AiEFinishMode FinishModeDefaultValue = global::Cfg.AiEFinishMode.Immediate; + + private global::Cfg.AiEFinishMode finishMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFinishMode FinishMode { + get { if ((_hasBits0 & 2) != 0) { return finishMode_; } else { return FinishModeDefaultValue; } } + set { + _hasBits0 |= 2; + finishMode_ = value; + } + } + /// Gets whether the "finish_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFinishMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "finish_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFinishMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "main_task" field. + public const int MainTaskFieldNumber = 6; + private global::Cfg.AiTask mainTask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiTask MainTask { + get { return mainTask_; } + set { + mainTask_ = value; + } + } + + /// Field number for the "background_node" field. + public const int BackgroundNodeFieldNumber = 7; + private global::Cfg.AiFlowNode backgroundNode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFlowNode BackgroundNode { + get { return backgroundNode_; } + set { + backgroundNode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSimpleParallel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSimpleParallel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (FinishMode != other.FinishMode) return false; + if (!object.Equals(MainTask, other.MainTask)) return false; + if (!object.Equals(BackgroundNode, other.BackgroundNode)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasFinishMode) hash ^= FinishMode.GetHashCode(); + if (mainTask_ != null) hash ^= MainTask.GetHashCode(); + if (backgroundNode_ != null) hash ^= BackgroundNode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasFinishMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinishMode); + } + if (mainTask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainTask); + } + if (backgroundNode_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundNode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSimpleParallel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasFinishMode) { + FinishMode = other.FinishMode; + } + if (other.mainTask_ != null) { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + MainTask.MergeFrom(other.MainTask); + } + if (other.backgroundNode_ != null) { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + BackgroundNode.MergeFrom(other.BackgroundNode); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTask : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTask()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask(AiTask other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask Clone() { + return new AiTask(this); + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTask); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTask other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTask other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWait : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWait()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait(AiUeWait other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + waitTime_ = other.waitTime_; + randomDeviation_ = other.randomDeviation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait Clone() { + return new AiUeWait(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "wait_time" field. + public const int WaitTimeFieldNumber = 6; + private readonly static float WaitTimeDefaultValue = 0F; + + private float waitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WaitTime { + get { if ((_hasBits0 & 4) != 0) { return waitTime_; } else { return WaitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + waitTime_ = value; + } + } + /// Gets whether the "wait_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWaitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "wait_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWaitTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "random_deviation" field. + public const int RandomDeviationFieldNumber = 7; + private readonly static float RandomDeviationDefaultValue = 0F; + + private float randomDeviation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RandomDeviation { + get { if ((_hasBits0 & 8) != 0) { return randomDeviation_; } else { return RandomDeviationDefaultValue; } } + set { + _hasBits0 |= 8; + randomDeviation_ = value; + } + } + /// Gets whether the "random_deviation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRandomDeviation { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "random_deviation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRandomDeviation() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWait); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWait other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WaitTime, other.WaitTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RandomDeviation, other.RandomDeviation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasWaitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WaitTime); + if (HasRandomDeviation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RandomDeviation); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasWaitTime) { + size += 1 + 4; + } + if (HasRandomDeviation) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWait other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasWaitTime) { + WaitTime = other.WaitTime; + } + if (other.HasRandomDeviation) { + RandomDeviation = other.RandomDeviation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWaitBlackboardTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWaitBlackboardTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime(AiUeWaitBlackboardTime other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + blackboardKey_ = other.blackboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime Clone() { + return new AiUeWaitBlackboardTime(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 6; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWaitBlackboardTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWaitBlackboardTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (BlackboardKey != other.BlackboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWaitBlackboardTime other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget(AiMoveToTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget Clone() { + return new AiMoveToTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseSkill()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill(AiChooseSkill other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + resultSkillIdKey_ = other.resultSkillIdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill Clone() { + return new AiChooseSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "result_skill_id_key" field. + public const int ResultSkillIdKeyFieldNumber = 7; + private readonly static string ResultSkillIdKeyDefaultValue = ""; + + private string resultSkillIdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultSkillIdKey { + get { return resultSkillIdKey_ ?? ResultSkillIdKeyDefaultValue; } + set { + resultSkillIdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_skill_id_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultSkillIdKey { + get { return resultSkillIdKey_ != null; } + } + /// Clears the value of the "result_skill_id_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultSkillIdKey() { + resultSkillIdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (ResultSkillIdKey != other.ResultSkillIdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasResultSkillIdKey) hash ^= ResultSkillIdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasResultSkillIdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultSkillIdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseSkill other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasResultSkillIdKey) { + ResultSkillIdKey = other.ResultSkillIdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToRandomLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToRandomLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation(AiMoveToRandomLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + originPositionKey_ = other.originPositionKey_; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation Clone() { + return new AiMoveToRandomLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "origin_position_key" field. + public const int OriginPositionKeyFieldNumber = 6; + private readonly static string OriginPositionKeyDefaultValue = ""; + + private string originPositionKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OriginPositionKey { + get { return originPositionKey_ ?? OriginPositionKeyDefaultValue; } + set { + originPositionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "origin_position_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOriginPositionKey { + get { return originPositionKey_ != null; } + } + /// Clears the value of the "origin_position_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOriginPositionKey() { + originPositionKey_ = null; + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 7; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 4) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 4; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToRandomLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToRandomLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (OriginPositionKey != other.OriginPositionKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasOriginPositionKey) hash ^= OriginPositionKey.GetHashCode(); + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasOriginPositionKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginPositionKey); + } + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToRandomLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasOriginPositionKey) { + OriginPositionKey = other.OriginPositionKey; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation(AiMoveToLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + location_ = other.location_ != null ? other.location_.Clone() : null; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation Clone() { + return new AiMoveToLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 6; + private global::Cfg.Vector3 location_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 Location { + get { return location_; } + set { + location_ = value; + } + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!object.Equals(Location, other.Location)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (location_ != null) hash ^= Location.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (location_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Location); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (location_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Location); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (location_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.location_ != null) { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + Location.MergeFrom(other.Location); + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + input.ReadMessage(Location); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + if (location_ == null) { + Location = new global::Cfg.Vector3(); + } + input.ReadMessage(Location); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDebugPrint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDebugPrint()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint(AiDebugPrint other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint Clone() { + return new AiDebugPrint(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 6; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDebugPrint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDebugPrint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDebugPrint other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz(BlueprintClazz other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Interface: + Interface = other.Interface.Clone(); + break; + case ValueOneofCase.NormalClazz: + NormalClazz = other.NormalClazz.Clone(); + break; + case ValueOneofCase.EnumClazz: + EnumClazz = other.EnumClazz.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintClazz Clone() { + return new BlueprintClazz(this); + } + + /// Field number for the "Interface" field. + public const int InterfaceFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintInterface Interface { + get { return valueCase_ == ValueOneofCase.Interface ? (global::Cfg.BlueprintInterface) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Interface; + } + } + + /// Field number for the "NormalClazz" field. + public const int NormalClazzFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintNormalClazz NormalClazz { + get { return valueCase_ == ValueOneofCase.NormalClazz ? (global::Cfg.BlueprintNormalClazz) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.NormalClazz; + } + } + + /// Field number for the "EnumClazz" field. + public const int EnumClazzFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintEnumClazz EnumClazz { + get { return valueCase_ == ValueOneofCase.EnumClazz ? (global::Cfg.BlueprintEnumClazz) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.EnumClazz; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Interface = 1, + NormalClazz = 2, + EnumClazz = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Interface, other.Interface)) return false; + if (!object.Equals(NormalClazz, other.NormalClazz)) return false; + if (!object.Equals(EnumClazz, other.EnumClazz)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Interface) hash ^= Interface.GetHashCode(); + if (valueCase_ == ValueOneofCase.NormalClazz) hash ^= NormalClazz.GetHashCode(); + if (valueCase_ == ValueOneofCase.EnumClazz) hash ^= EnumClazz.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Interface) { + output.WriteRawTag(10); + output.WriteMessage(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + output.WriteRawTag(18); + output.WriteMessage(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + output.WriteRawTag(26); + output.WriteMessage(EnumClazz); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Interface) { + output.WriteRawTag(10); + output.WriteMessage(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + output.WriteRawTag(18); + output.WriteMessage(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + output.WriteRawTag(26); + output.WriteMessage(EnumClazz); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Interface) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Interface); + } + if (valueCase_ == ValueOneofCase.NormalClazz) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NormalClazz); + } + if (valueCase_ == ValueOneofCase.EnumClazz) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnumClazz); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintClazz other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Interface: + if (Interface == null) { + Interface = new global::Cfg.BlueprintInterface(); + } + Interface.MergeFrom(other.Interface); + break; + case ValueOneofCase.NormalClazz: + if (NormalClazz == null) { + NormalClazz = new global::Cfg.BlueprintNormalClazz(); + } + NormalClazz.MergeFrom(other.NormalClazz); + break; + case ValueOneofCase.EnumClazz: + if (EnumClazz == null) { + EnumClazz = new global::Cfg.BlueprintEnumClazz(); + } + EnumClazz.MergeFrom(other.EnumClazz); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BlueprintInterface subBuilder = new global::Cfg.BlueprintInterface(); + if (valueCase_ == ValueOneofCase.Interface) { + subBuilder.MergeFrom(Interface); + } + input.ReadMessage(subBuilder); + Interface = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintNormalClazz subBuilder = new global::Cfg.BlueprintNormalClazz(); + if (valueCase_ == ValueOneofCase.NormalClazz) { + subBuilder.MergeFrom(NormalClazz); + } + input.ReadMessage(subBuilder); + NormalClazz = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintEnumClazz subBuilder = new global::Cfg.BlueprintEnumClazz(); + if (valueCase_ == ValueOneofCase.EnumClazz) { + subBuilder.MergeFrom(EnumClazz); + } + input.ReadMessage(subBuilder); + EnumClazz = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BlueprintInterface subBuilder = new global::Cfg.BlueprintInterface(); + if (valueCase_ == ValueOneofCase.Interface) { + subBuilder.MergeFrom(Interface); + } + input.ReadMessage(subBuilder); + Interface = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintNormalClazz subBuilder = new global::Cfg.BlueprintNormalClazz(); + if (valueCase_ == ValueOneofCase.NormalClazz) { + subBuilder.MergeFrom(NormalClazz); + } + input.ReadMessage(subBuilder); + NormalClazz = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintEnumClazz subBuilder = new global::Cfg.BlueprintEnumClazz(); + if (valueCase_ == ValueOneofCase.EnumClazz) { + subBuilder.MergeFrom(EnumClazz); + } + input.ReadMessage(subBuilder); + EnumClazz = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintMethod()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod(BlueprintMethod other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.AbstraceMethod: + AbstraceMethod = other.AbstraceMethod.Clone(); + break; + case ValueOneofCase.ExternalMethod: + ExternalMethod = other.ExternalMethod.Clone(); + break; + case ValueOneofCase.BlueprintMethod_: + BlueprintMethod_ = other.BlueprintMethod_.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintMethod Clone() { + return new BlueprintMethod(this); + } + + /// Field number for the "AbstraceMethod" field. + public const int AbstraceMethodFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintAbstraceMethod AbstraceMethod { + get { return valueCase_ == ValueOneofCase.AbstraceMethod ? (global::Cfg.BlueprintAbstraceMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.AbstraceMethod; + } + } + + /// Field number for the "ExternalMethod" field. + public const int ExternalMethodFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintExternalMethod ExternalMethod { + get { return valueCase_ == ValueOneofCase.ExternalMethod ? (global::Cfg.BlueprintExternalMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExternalMethod; + } + } + + /// Field number for the "BlueprintMethod" field. + public const int BlueprintMethod_FieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BlueprintBlueprintMethod BlueprintMethod_ { + get { return valueCase_ == ValueOneofCase.BlueprintMethod_ ? (global::Cfg.BlueprintBlueprintMethod) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlueprintMethod_; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + AbstraceMethod = 1, + ExternalMethod = 2, + BlueprintMethod_ = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AbstraceMethod, other.AbstraceMethod)) return false; + if (!object.Equals(ExternalMethod, other.ExternalMethod)) return false; + if (!object.Equals(BlueprintMethod_, other.BlueprintMethod_)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.AbstraceMethod) hash ^= AbstraceMethod.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExternalMethod) hash ^= ExternalMethod.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) hash ^= BlueprintMethod_.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + output.WriteRawTag(10); + output.WriteMessage(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + output.WriteRawTag(18); + output.WriteMessage(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + output.WriteRawTag(26); + output.WriteMessage(BlueprintMethod_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + output.WriteRawTag(10); + output.WriteMessage(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + output.WriteRawTag(18); + output.WriteMessage(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + output.WriteRawTag(26); + output.WriteMessage(BlueprintMethod_); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbstraceMethod); + } + if (valueCase_ == ValueOneofCase.ExternalMethod) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalMethod); + } + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlueprintMethod_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintMethod other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.AbstraceMethod: + if (AbstraceMethod == null) { + AbstraceMethod = new global::Cfg.BlueprintAbstraceMethod(); + } + AbstraceMethod.MergeFrom(other.AbstraceMethod); + break; + case ValueOneofCase.ExternalMethod: + if (ExternalMethod == null) { + ExternalMethod = new global::Cfg.BlueprintExternalMethod(); + } + ExternalMethod.MergeFrom(other.ExternalMethod); + break; + case ValueOneofCase.BlueprintMethod_: + if (BlueprintMethod_ == null) { + BlueprintMethod_ = new global::Cfg.BlueprintBlueprintMethod(); + } + BlueprintMethod_.MergeFrom(other.BlueprintMethod_); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BlueprintAbstraceMethod subBuilder = new global::Cfg.BlueprintAbstraceMethod(); + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + subBuilder.MergeFrom(AbstraceMethod); + } + input.ReadMessage(subBuilder); + AbstraceMethod = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintExternalMethod subBuilder = new global::Cfg.BlueprintExternalMethod(); + if (valueCase_ == ValueOneofCase.ExternalMethod) { + subBuilder.MergeFrom(ExternalMethod); + } + input.ReadMessage(subBuilder); + ExternalMethod = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintBlueprintMethod subBuilder = new global::Cfg.BlueprintBlueprintMethod(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + subBuilder.MergeFrom(BlueprintMethod_); + } + input.ReadMessage(subBuilder); + BlueprintMethod_ = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BlueprintAbstraceMethod subBuilder = new global::Cfg.BlueprintAbstraceMethod(); + if (valueCase_ == ValueOneofCase.AbstraceMethod) { + subBuilder.MergeFrom(AbstraceMethod); + } + input.ReadMessage(subBuilder); + AbstraceMethod = subBuilder; + break; + } + case 18: { + global::Cfg.BlueprintExternalMethod subBuilder = new global::Cfg.BlueprintExternalMethod(); + if (valueCase_ == ValueOneofCase.ExternalMethod) { + subBuilder.MergeFrom(ExternalMethod); + } + input.ReadMessage(subBuilder); + ExternalMethod = subBuilder; + break; + } + case 26: { + global::Cfg.BlueprintBlueprintMethod subBuilder = new global::Cfg.BlueprintBlueprintMethod(); + if (valueCase_ == ValueOneofCase.BlueprintMethod_) { + subBuilder.MergeFrom(BlueprintMethod_); + } + input.ReadMessage(subBuilder); + BlueprintMethod_ = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintParamInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintParamInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo(BlueprintParamInfo other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + type_ = other.type_; + isRef_ = other.isRef_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintParamInfo Clone() { + return new BlueprintParamInfo(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + type_ = null; + } + + /// Field number for the "is_ref" field. + public const int IsRefFieldNumber = 3; + private readonly static bool IsRefDefaultValue = false; + + private bool isRef_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsRef { + get { if ((_hasBits0 & 1) != 0) { return isRef_; } else { return IsRefDefaultValue; } } + set { + _hasBits0 |= 1; + isRef_ = value; + } + } + /// Gets whether the "is_ref" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsRef { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_ref" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsRef() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintParamInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintParamInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (IsRef != other.IsRef) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasIsRef) hash ^= IsRef.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasIsRef) { + output.WriteRawTag(24); + output.WriteBool(IsRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasIsRef) { + output.WriteRawTag(24); + output.WriteBool(IsRef); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasIsRef) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintParamInfo other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasIsRef) { + IsRef = other.IsRef; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 24: { + IsRef = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 24: { + IsRef = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintAbstraceMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintAbstraceMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod(BlueprintAbstraceMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintAbstraceMethod Clone() { + return new BlueprintAbstraceMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintAbstraceMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintAbstraceMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintAbstraceMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintExternalMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintExternalMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod(BlueprintExternalMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintExternalMethod Clone() { + return new BlueprintExternalMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintExternalMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintExternalMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintExternalMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintBlueprintMethod : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintBlueprintMethod()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod(BlueprintBlueprintMethod other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + returnType_ = other.returnType_; + parameters_ = other.parameters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintBlueprintMethod Clone() { + return new BlueprintBlueprintMethod(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_type" field. + public const int ReturnTypeFieldNumber = 4; + private readonly static string ReturnTypeDefaultValue = ""; + + private string returnType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ReturnType { + get { return returnType_ ?? ReturnTypeDefaultValue; } + set { + returnType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "return_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReturnType { + get { return returnType_ != null; } + } + /// Clears the value of the "return_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReturnType() { + returnType_ = null; + } + + /// Field number for the "parameters" field. + public const int ParametersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_parameters_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintParamInfo.Parser); + private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parameters { + get { return parameters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintBlueprintMethod); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintBlueprintMethod other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (ReturnType != other.ReturnType) return false; + if(!parameters_.Equals(other.parameters_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasReturnType) hash ^= ReturnType.GetHashCode(); + hash ^= parameters_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasReturnType) { + output.WriteRawTag(34); + output.WriteString(ReturnType); + } + parameters_.WriteTo(ref output, _repeated_parameters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasReturnType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnType); + } + size += parameters_.CalculateSize(_repeated_parameters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintBlueprintMethod other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasReturnType) { + ReturnType = other.ReturnType; + } + parameters_.Add(other.parameters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(input, _repeated_parameters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 34: { + ReturnType = input.ReadString(); + break; + } + case 42: { + parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintInterface : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintInterface()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface(BlueprintInterface other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintInterface Clone() { + return new BlueprintInterface(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintInterface); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintInterface other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintInterface other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintNormalClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintNormalClazz()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz(BlueprintNormalClazz other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + isAbstract_ = other.isAbstract_; + fields_ = other.fields_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintNormalClazz Clone() { + return new BlueprintNormalClazz(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + /// Field number for the "is_abstract" field. + public const int IsAbstractFieldNumber = 5; + private readonly static bool IsAbstractDefaultValue = false; + + private bool isAbstract_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAbstract { + get { if ((_hasBits0 & 1) != 0) { return isAbstract_; } else { return IsAbstractDefaultValue; } } + set { + _hasBits0 |= 1; + isAbstract_ = value; + } + } + /// Gets whether the "is_abstract" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsAbstract { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_abstract" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsAbstract() { + _hasBits0 &= ~1; + } + + /// Field number for the "fields" field. + public const int FieldsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_fields_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.BlueprintField.Parser); + private readonly pbc::RepeatedField fields_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fields { + get { return fields_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintNormalClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintNormalClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + if (IsAbstract != other.IsAbstract) return false; + if(!fields_.Equals(other.fields_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + if (HasIsAbstract) hash ^= IsAbstract.GetHashCode(); + hash ^= fields_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + if (HasIsAbstract) { + output.WriteRawTag(40); + output.WriteBool(IsAbstract); + } + fields_.WriteTo(output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + if (HasIsAbstract) { + output.WriteRawTag(40); + output.WriteBool(IsAbstract); + } + fields_.WriteTo(ref output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + if (HasIsAbstract) { + size += 1 + 1; + } + size += fields_.CalculateSize(_repeated_fields_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintNormalClazz other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + if (other.HasIsAbstract) { + IsAbstract = other.IsAbstract; + } + fields_.Add(other.fields_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + case 40: { + IsAbstract = input.ReadBool(); + break; + } + case 50: { + fields_.AddEntriesFrom(input, _repeated_fields_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + case 40: { + IsAbstract = input.ReadBool(); + break; + } + case 50: { + fields_.AddEntriesFrom(ref input, _repeated_fields_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintField : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintField()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField(BlueprintField other) : this() { + name_ = other.name_; + type_ = other.type_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintField Clone() { + return new BlueprintField(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static string TypeDefaultValue = ""; + + private string type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_ ?? TypeDefaultValue; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return type_ != null; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + type_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintField); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintField other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasType) { + output.WriteRawTag(18); + output.WriteString(Type); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintField other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Type = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintEnumClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintEnumClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz(BlueprintEnumClazz other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parents_ = other.parents_.Clone(); + methods_ = other.methods_.Clone(); + enums_ = other.enums_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumClazz Clone() { + return new BlueprintEnumClazz(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parents" field. + public const int ParentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_parents_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField parents_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Parents { + get { return parents_; } + } + + /// Field number for the "methods" field. + public const int MethodsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_methods_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.BlueprintMethod.Parser); + private readonly pbc::RepeatedField methods_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Methods { + get { return methods_; } + } + + /// Field number for the "enums" field. + public const int EnumsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_enums_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.BlueprintEnumField.Parser); + private readonly pbc::RepeatedField enums_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Enums { + get { return enums_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintEnumClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintEnumClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if(!parents_.Equals(other.parents_)) return false; + if(!methods_.Equals(other.methods_)) return false; + if(!enums_.Equals(other.enums_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= parents_.GetHashCode(); + hash ^= methods_.GetHashCode(); + hash ^= enums_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(output, _repeated_parents_codec); + methods_.WriteTo(output, _repeated_methods_codec); + enums_.WriteTo(output, _repeated_enums_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + parents_.WriteTo(ref output, _repeated_parents_codec); + methods_.WriteTo(ref output, _repeated_methods_codec); + enums_.WriteTo(ref output, _repeated_enums_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += parents_.CalculateSize(_repeated_parents_codec); + size += methods_.CalculateSize(_repeated_methods_codec); + size += enums_.CalculateSize(_repeated_enums_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintEnumClazz other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + parents_.Add(other.parents_); + methods_.Add(other.methods_); + enums_.Add(other.enums_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(input, _repeated_methods_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(input, _repeated_enums_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + parents_.AddEntriesFrom(ref input, _repeated_parents_codec); + break; + } + case 34: { + methods_.AddEntriesFrom(ref input, _repeated_methods_codec); + break; + } + case 42: { + enums_.AddEntriesFrom(ref input, _repeated_enums_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintEnumField : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintEnumField()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField(BlueprintEnumField other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintEnumField Clone() { + return new BlueprintEnumField(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintEnumField); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintEnumField other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintEnumField other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusDropInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusDropInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo(BonusDropInfo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + desc_ = other.desc_; + clientShowItems_ = other.clientShowItems_.Clone(); + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropInfo Clone() { + return new BonusDropInfo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "client_show_items" field. + public const int ClientShowItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_clientShowItems_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.BonusShowItemInfo.Parser); + private readonly pbc::RepeatedField clientShowItems_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClientShowItems { + get { return clientShowItems_; } + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 4; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusDropInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusDropInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if(!clientShowItems_.Equals(other.clientShowItems_)) return false; + if (!object.Equals(Bonus, other.Bonus)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + hash ^= clientShowItems_.GetHashCode(); + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + clientShowItems_.WriteTo(output, _repeated_clientShowItems_codec); + if (bonus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Bonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + clientShowItems_.WriteTo(ref output, _repeated_clientShowItems_codec); + if (bonus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Bonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + size += clientShowItems_.CalculateSize(_repeated_clientShowItems_codec); + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusDropInfo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasDesc) { + Desc = other.Desc; + } + clientShowItems_.Add(other.clientShowItems_); + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + clientShowItems_.AddEntriesFrom(input, _repeated_clientShowItems_codec); + break; + } + case 34: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + clientShowItems_.AddEntriesFrom(ref input, _repeated_clientShowItems_codec); + break; + } + case 34: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusShowItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusShowItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo(BonusShowItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + itemNum_ = other.itemNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusShowItemInfo Clone() { + return new BonusShowItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "item_num" field. + public const int ItemNumFieldNumber = 2; + private readonly static long ItemNumDefaultValue = 0L; + + private long itemNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ItemNum { + get { if ((_hasBits0 & 2) != 0) { return itemNum_; } else { return ItemNumDefaultValue; } } + set { + _hasBits0 |= 2; + itemNum_ = value; + } + } + /// Gets whether the "item_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "item_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemNum() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusShowItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusShowItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (ItemNum != other.ItemNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasItemNum) hash ^= ItemNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasItemNum) { + output.WriteRawTag(16); + output.WriteInt64(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasItemNum) { + output.WriteRawTag(16); + output.WriteInt64(ItemNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasItemNum) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ItemNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusShowItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasItemNum) { + ItemNum = other.ItemNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + ItemNum = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + ItemNum = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus(BonusBonus other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.OneItem: + OneItem = other.OneItem.Clone(); + break; + case ValueOneofCase.OneItems: + OneItems = other.OneItems.Clone(); + break; + case ValueOneofCase.Item: + Item = other.Item.Clone(); + break; + case ValueOneofCase.Items: + Items = other.Items.Clone(); + break; + case ValueOneofCase.CoefficientItem: + CoefficientItem = other.CoefficientItem.Clone(); + break; + case ValueOneofCase.WeightItems: + WeightItems = other.WeightItems.Clone(); + break; + case ValueOneofCase.ProbabilityItems: + ProbabilityItems = other.ProbabilityItems.Clone(); + break; + case ValueOneofCase.MultiBonus: + MultiBonus = other.MultiBonus.Clone(); + break; + case ValueOneofCase.ProbabilityBonus: + ProbabilityBonus = other.ProbabilityBonus.Clone(); + break; + case ValueOneofCase.WeightBonus: + WeightBonus = other.WeightBonus.Clone(); + break; + case ValueOneofCase.DropBonus: + DropBonus = other.DropBonus.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusBonus Clone() { + return new BonusBonus(this); + } + + /// Field number for the "OneItem" field. + public const int OneItemFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusOneItem OneItem { + get { return valueCase_ == ValueOneofCase.OneItem ? (global::Cfg.BonusOneItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.OneItem; + } + } + + /// Field number for the "OneItems" field. + public const int OneItemsFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusOneItems OneItems { + get { return valueCase_ == ValueOneofCase.OneItems ? (global::Cfg.BonusOneItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.OneItems; + } + } + + /// Field number for the "Item" field. + public const int ItemFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItem Item { + get { return valueCase_ == ValueOneofCase.Item ? (global::Cfg.BonusItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Item; + } + } + + /// Field number for the "Items" field. + public const int ItemsFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItems Items { + get { return valueCase_ == ValueOneofCase.Items ? (global::Cfg.BonusItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Items; + } + } + + /// Field number for the "CoefficientItem" field. + public const int CoefficientItemFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusCoefficientItem CoefficientItem { + get { return valueCase_ == ValueOneofCase.CoefficientItem ? (global::Cfg.BonusCoefficientItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CoefficientItem; + } + } + + /// Field number for the "WeightItems" field. + public const int WeightItemsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusWeightItems WeightItems { + get { return valueCase_ == ValueOneofCase.WeightItems ? (global::Cfg.BonusWeightItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.WeightItems; + } + } + + /// Field number for the "ProbabilityItems" field. + public const int ProbabilityItemsFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusProbabilityItems ProbabilityItems { + get { return valueCase_ == ValueOneofCase.ProbabilityItems ? (global::Cfg.BonusProbabilityItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ProbabilityItems; + } + } + + /// Field number for the "MultiBonus" field. + public const int MultiBonusFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusMultiBonus MultiBonus { + get { return valueCase_ == ValueOneofCase.MultiBonus ? (global::Cfg.BonusMultiBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiBonus; + } + } + + /// Field number for the "ProbabilityBonus" field. + public const int ProbabilityBonusFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusProbabilityBonus ProbabilityBonus { + get { return valueCase_ == ValueOneofCase.ProbabilityBonus ? (global::Cfg.BonusProbabilityBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ProbabilityBonus; + } + } + + /// Field number for the "WeightBonus" field. + public const int WeightBonusFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusWeightBonus WeightBonus { + get { return valueCase_ == ValueOneofCase.WeightBonus ? (global::Cfg.BonusWeightBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.WeightBonus; + } + } + + /// Field number for the "DropBonus" field. + public const int DropBonusFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusDropBonus DropBonus { + get { return valueCase_ == ValueOneofCase.DropBonus ? (global::Cfg.BonusDropBonus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DropBonus; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + OneItem = 1, + OneItems = 2, + Item = 3, + Items = 4, + CoefficientItem = 5, + WeightItems = 6, + ProbabilityItems = 7, + MultiBonus = 8, + ProbabilityBonus = 9, + WeightBonus = 10, + DropBonus = 11, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OneItem, other.OneItem)) return false; + if (!object.Equals(OneItems, other.OneItems)) return false; + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(Items, other.Items)) return false; + if (!object.Equals(CoefficientItem, other.CoefficientItem)) return false; + if (!object.Equals(WeightItems, other.WeightItems)) return false; + if (!object.Equals(ProbabilityItems, other.ProbabilityItems)) return false; + if (!object.Equals(MultiBonus, other.MultiBonus)) return false; + if (!object.Equals(ProbabilityBonus, other.ProbabilityBonus)) return false; + if (!object.Equals(WeightBonus, other.WeightBonus)) return false; + if (!object.Equals(DropBonus, other.DropBonus)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.OneItem) hash ^= OneItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.OneItems) hash ^= OneItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.Item) hash ^= Item.GetHashCode(); + if (valueCase_ == ValueOneofCase.Items) hash ^= Items.GetHashCode(); + if (valueCase_ == ValueOneofCase.CoefficientItem) hash ^= CoefficientItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.WeightItems) hash ^= WeightItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) hash ^= ProbabilityItems.GetHashCode(); + if (valueCase_ == ValueOneofCase.MultiBonus) hash ^= MultiBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) hash ^= ProbabilityBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.WeightBonus) hash ^= WeightBonus.GetHashCode(); + if (valueCase_ == ValueOneofCase.DropBonus) hash ^= DropBonus.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.OneItem) { + output.WriteRawTag(10); + output.WriteMessage(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + output.WriteRawTag(18); + output.WriteMessage(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(26); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + output.WriteRawTag(34); + output.WriteMessage(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + output.WriteRawTag(42); + output.WriteMessage(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + output.WriteRawTag(50); + output.WriteMessage(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + output.WriteRawTag(58); + output.WriteMessage(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + output.WriteRawTag(66); + output.WriteMessage(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + output.WriteRawTag(74); + output.WriteMessage(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + output.WriteRawTag(82); + output.WriteMessage(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + output.WriteRawTag(90); + output.WriteMessage(DropBonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.OneItem) { + output.WriteRawTag(10); + output.WriteMessage(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + output.WriteRawTag(18); + output.WriteMessage(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(26); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + output.WriteRawTag(34); + output.WriteMessage(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + output.WriteRawTag(42); + output.WriteMessage(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + output.WriteRawTag(50); + output.WriteMessage(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + output.WriteRawTag(58); + output.WriteMessage(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + output.WriteRawTag(66); + output.WriteMessage(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + output.WriteRawTag(74); + output.WriteMessage(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + output.WriteRawTag(82); + output.WriteMessage(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + output.WriteRawTag(90); + output.WriteMessage(DropBonus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.OneItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OneItem); + } + if (valueCase_ == ValueOneofCase.OneItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OneItems); + } + if (valueCase_ == ValueOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (valueCase_ == ValueOneofCase.Items) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Items); + } + if (valueCase_ == ValueOneofCase.CoefficientItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoefficientItem); + } + if (valueCase_ == ValueOneofCase.WeightItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WeightItems); + } + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProbabilityItems); + } + if (valueCase_ == ValueOneofCase.MultiBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiBonus); + } + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProbabilityBonus); + } + if (valueCase_ == ValueOneofCase.WeightBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WeightBonus); + } + if (valueCase_ == ValueOneofCase.DropBonus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DropBonus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusBonus other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.OneItem: + if (OneItem == null) { + OneItem = new global::Cfg.BonusOneItem(); + } + OneItem.MergeFrom(other.OneItem); + break; + case ValueOneofCase.OneItems: + if (OneItems == null) { + OneItems = new global::Cfg.BonusOneItems(); + } + OneItems.MergeFrom(other.OneItems); + break; + case ValueOneofCase.Item: + if (Item == null) { + Item = new global::Cfg.BonusItem(); + } + Item.MergeFrom(other.Item); + break; + case ValueOneofCase.Items: + if (Items == null) { + Items = new global::Cfg.BonusItems(); + } + Items.MergeFrom(other.Items); + break; + case ValueOneofCase.CoefficientItem: + if (CoefficientItem == null) { + CoefficientItem = new global::Cfg.BonusCoefficientItem(); + } + CoefficientItem.MergeFrom(other.CoefficientItem); + break; + case ValueOneofCase.WeightItems: + if (WeightItems == null) { + WeightItems = new global::Cfg.BonusWeightItems(); + } + WeightItems.MergeFrom(other.WeightItems); + break; + case ValueOneofCase.ProbabilityItems: + if (ProbabilityItems == null) { + ProbabilityItems = new global::Cfg.BonusProbabilityItems(); + } + ProbabilityItems.MergeFrom(other.ProbabilityItems); + break; + case ValueOneofCase.MultiBonus: + if (MultiBonus == null) { + MultiBonus = new global::Cfg.BonusMultiBonus(); + } + MultiBonus.MergeFrom(other.MultiBonus); + break; + case ValueOneofCase.ProbabilityBonus: + if (ProbabilityBonus == null) { + ProbabilityBonus = new global::Cfg.BonusProbabilityBonus(); + } + ProbabilityBonus.MergeFrom(other.ProbabilityBonus); + break; + case ValueOneofCase.WeightBonus: + if (WeightBonus == null) { + WeightBonus = new global::Cfg.BonusWeightBonus(); + } + WeightBonus.MergeFrom(other.WeightBonus); + break; + case ValueOneofCase.DropBonus: + if (DropBonus == null) { + DropBonus = new global::Cfg.BonusDropBonus(); + } + DropBonus.MergeFrom(other.DropBonus); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.BonusOneItem subBuilder = new global::Cfg.BonusOneItem(); + if (valueCase_ == ValueOneofCase.OneItem) { + subBuilder.MergeFrom(OneItem); + } + input.ReadMessage(subBuilder); + OneItem = subBuilder; + break; + } + case 18: { + global::Cfg.BonusOneItems subBuilder = new global::Cfg.BonusOneItems(); + if (valueCase_ == ValueOneofCase.OneItems) { + subBuilder.MergeFrom(OneItems); + } + input.ReadMessage(subBuilder); + OneItems = subBuilder; + break; + } + case 26: { + global::Cfg.BonusItem subBuilder = new global::Cfg.BonusItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 34: { + global::Cfg.BonusItems subBuilder = new global::Cfg.BonusItems(); + if (valueCase_ == ValueOneofCase.Items) { + subBuilder.MergeFrom(Items); + } + input.ReadMessage(subBuilder); + Items = subBuilder; + break; + } + case 42: { + global::Cfg.BonusCoefficientItem subBuilder = new global::Cfg.BonusCoefficientItem(); + if (valueCase_ == ValueOneofCase.CoefficientItem) { + subBuilder.MergeFrom(CoefficientItem); + } + input.ReadMessage(subBuilder); + CoefficientItem = subBuilder; + break; + } + case 50: { + global::Cfg.BonusWeightItems subBuilder = new global::Cfg.BonusWeightItems(); + if (valueCase_ == ValueOneofCase.WeightItems) { + subBuilder.MergeFrom(WeightItems); + } + input.ReadMessage(subBuilder); + WeightItems = subBuilder; + break; + } + case 58: { + global::Cfg.BonusProbabilityItems subBuilder = new global::Cfg.BonusProbabilityItems(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + subBuilder.MergeFrom(ProbabilityItems); + } + input.ReadMessage(subBuilder); + ProbabilityItems = subBuilder; + break; + } + case 66: { + global::Cfg.BonusMultiBonus subBuilder = new global::Cfg.BonusMultiBonus(); + if (valueCase_ == ValueOneofCase.MultiBonus) { + subBuilder.MergeFrom(MultiBonus); + } + input.ReadMessage(subBuilder); + MultiBonus = subBuilder; + break; + } + case 74: { + global::Cfg.BonusProbabilityBonus subBuilder = new global::Cfg.BonusProbabilityBonus(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + subBuilder.MergeFrom(ProbabilityBonus); + } + input.ReadMessage(subBuilder); + ProbabilityBonus = subBuilder; + break; + } + case 82: { + global::Cfg.BonusWeightBonus subBuilder = new global::Cfg.BonusWeightBonus(); + if (valueCase_ == ValueOneofCase.WeightBonus) { + subBuilder.MergeFrom(WeightBonus); + } + input.ReadMessage(subBuilder); + WeightBonus = subBuilder; + break; + } + case 90: { + global::Cfg.BonusDropBonus subBuilder = new global::Cfg.BonusDropBonus(); + if (valueCase_ == ValueOneofCase.DropBonus) { + subBuilder.MergeFrom(DropBonus); + } + input.ReadMessage(subBuilder); + DropBonus = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.BonusOneItem subBuilder = new global::Cfg.BonusOneItem(); + if (valueCase_ == ValueOneofCase.OneItem) { + subBuilder.MergeFrom(OneItem); + } + input.ReadMessage(subBuilder); + OneItem = subBuilder; + break; + } + case 18: { + global::Cfg.BonusOneItems subBuilder = new global::Cfg.BonusOneItems(); + if (valueCase_ == ValueOneofCase.OneItems) { + subBuilder.MergeFrom(OneItems); + } + input.ReadMessage(subBuilder); + OneItems = subBuilder; + break; + } + case 26: { + global::Cfg.BonusItem subBuilder = new global::Cfg.BonusItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 34: { + global::Cfg.BonusItems subBuilder = new global::Cfg.BonusItems(); + if (valueCase_ == ValueOneofCase.Items) { + subBuilder.MergeFrom(Items); + } + input.ReadMessage(subBuilder); + Items = subBuilder; + break; + } + case 42: { + global::Cfg.BonusCoefficientItem subBuilder = new global::Cfg.BonusCoefficientItem(); + if (valueCase_ == ValueOneofCase.CoefficientItem) { + subBuilder.MergeFrom(CoefficientItem); + } + input.ReadMessage(subBuilder); + CoefficientItem = subBuilder; + break; + } + case 50: { + global::Cfg.BonusWeightItems subBuilder = new global::Cfg.BonusWeightItems(); + if (valueCase_ == ValueOneofCase.WeightItems) { + subBuilder.MergeFrom(WeightItems); + } + input.ReadMessage(subBuilder); + WeightItems = subBuilder; + break; + } + case 58: { + global::Cfg.BonusProbabilityItems subBuilder = new global::Cfg.BonusProbabilityItems(); + if (valueCase_ == ValueOneofCase.ProbabilityItems) { + subBuilder.MergeFrom(ProbabilityItems); + } + input.ReadMessage(subBuilder); + ProbabilityItems = subBuilder; + break; + } + case 66: { + global::Cfg.BonusMultiBonus subBuilder = new global::Cfg.BonusMultiBonus(); + if (valueCase_ == ValueOneofCase.MultiBonus) { + subBuilder.MergeFrom(MultiBonus); + } + input.ReadMessage(subBuilder); + MultiBonus = subBuilder; + break; + } + case 74: { + global::Cfg.BonusProbabilityBonus subBuilder = new global::Cfg.BonusProbabilityBonus(); + if (valueCase_ == ValueOneofCase.ProbabilityBonus) { + subBuilder.MergeFrom(ProbabilityBonus); + } + input.ReadMessage(subBuilder); + ProbabilityBonus = subBuilder; + break; + } + case 82: { + global::Cfg.BonusWeightBonus subBuilder = new global::Cfg.BonusWeightBonus(); + if (valueCase_ == ValueOneofCase.WeightBonus) { + subBuilder.MergeFrom(WeightBonus); + } + input.ReadMessage(subBuilder); + WeightBonus = subBuilder; + break; + } + case 90: { + global::Cfg.BonusDropBonus subBuilder = new global::Cfg.BonusDropBonus(); + if (valueCase_ == ValueOneofCase.DropBonus) { + subBuilder.MergeFrom(DropBonus); + } + input.ReadMessage(subBuilder); + DropBonus = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusOneItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusOneItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem(BonusOneItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItem Clone() { + return new BonusOneItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusOneItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusOneItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusOneItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusOneItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusOneItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[59]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems(BonusOneItems other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusOneItems Clone() { + return new BonusOneItems(this); + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusOneItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusOneItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusOneItems other) { + if (other == null) { + return; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem(BonusItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItem Clone() { + return new BonusItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private readonly static int AmountDefaultValue = 0; + + private int amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Amount { + get { if ((_hasBits0 & 2) != 0) { return amount_; } else { return AmountDefaultValue; } } + set { + _hasBits0 |= 2; + amount_ = value; + } + } + /// Gets whether the "amount" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAmount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "amount" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAmount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasAmount) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasAmount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasAmount) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems(BonusItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusItems Clone() { + return new BonusItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusItem.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusCoefficientItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusCoefficientItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem(BonusCoefficientItem other) : this() { + _hasBits0 = other._hasBits0; + bonusId_ = other.bonusId_; + bonusList_ = other.bonusList_ != null ? other.bonusList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusCoefficientItem Clone() { + return new BonusCoefficientItem(this); + } + + /// Field number for the "bonus_id" field. + public const int BonusIdFieldNumber = 1; + private readonly static int BonusIdDefaultValue = 0; + + private int bonusId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BonusId { + get { if ((_hasBits0 & 1) != 0) { return bonusId_; } else { return BonusIdDefaultValue; } } + set { + _hasBits0 |= 1; + bonusId_ = value; + } + } + /// Gets whether the "bonus_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBonusId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bonus_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBonusId() { + _hasBits0 &= ~1; + } + + /// Field number for the "bonus_list" field. + public const int BonusListFieldNumber = 2; + private global::Cfg.BonusItems bonusList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusItems BonusList { + get { return bonusList_; } + set { + bonusList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusCoefficientItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusCoefficientItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BonusId != other.BonusId) return false; + if (!object.Equals(BonusList, other.BonusList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBonusId) hash ^= BonusId.GetHashCode(); + if (bonusList_ != null) hash ^= BonusList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBonusId) { + output.WriteRawTag(8); + output.WriteInt32(BonusId); + } + if (bonusList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BonusList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBonusId) { + output.WriteRawTag(8); + output.WriteInt32(BonusId); + } + if (bonusList_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BonusList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBonusId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BonusId); + } + if (bonusList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BonusList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusCoefficientItem other) { + if (other == null) { + return; + } + if (other.HasBonusId) { + BonusId = other.BonusId; + } + if (other.bonusList_ != null) { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + BonusList.MergeFrom(other.BonusList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BonusId = input.ReadInt32(); + break; + } + case 18: { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + input.ReadMessage(BonusList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BonusId = input.ReadInt32(); + break; + } + case 18: { + if (bonusList_ == null) { + BonusList = new global::Cfg.BonusItems(); + } + input.ReadMessage(BonusList); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems(BonusWeightItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItems Clone() { + return new BonusWeightItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusWeightItemInfo.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo(BonusWeightItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + weight_ = other.weight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightItemInfo Clone() { + return new BonusWeightItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 3; + private readonly static int WeightDefaultValue = 0; + + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { if ((_hasBits0 & 4) != 0) { return weight_; } else { return WeightDefaultValue; } } + set { + _hasBits0 |= 4; + weight_ = value; + } + } + /// Gets whether the "weight" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWeight { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "weight" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWeight() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (Weight != other.Weight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasWeight) hash ^= Weight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasWeight) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasWeight) { + output.WriteRawTag(24); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasWeight) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasWeight) { + Weight = other.Weight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Weight = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems(BonusProbabilityItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItems Clone() { + return new BonusProbabilityItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusProbabilityItemInfo.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityItemInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityItemInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo(BonusProbabilityItemInfo other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + probability_ = other.probability_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityItemInfo Clone() { + return new BonusProbabilityItemInfo(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "probability" field. + public const int ProbabilityFieldNumber = 3; + private readonly static float ProbabilityDefaultValue = 0F; + + private float probability_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Probability { + get { if ((_hasBits0 & 4) != 0) { return probability_; } else { return ProbabilityDefaultValue; } } + set { + _hasBits0 |= 4; + probability_ = value; + } + } + /// Gets whether the "probability" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProbability { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "probability" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProbability() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityItemInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityItemInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Probability, other.Probability)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasProbability) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Probability); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasProbability) { + output.WriteRawTag(29); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasProbability) { + output.WriteRawTag(29); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasProbability) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityItemInfo other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasProbability) { + Probability = other.Probability; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 29: { + Probability = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 29: { + Probability = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusMultiBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusMultiBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus(BonusMultiBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusMultiBonus Clone() { + return new BonusMultiBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusBonus.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusMultiBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusMultiBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusMultiBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus(BonusProbabilityBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonus Clone() { + return new BonusProbabilityBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusProbabilityBonusInfo.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusProbabilityBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusProbabilityBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo(BonusProbabilityBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + probability_ = other.probability_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusProbabilityBonusInfo Clone() { + return new BonusProbabilityBonusInfo(this); + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 1; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + /// Field number for the "probability" field. + public const int ProbabilityFieldNumber = 2; + private readonly static float ProbabilityDefaultValue = 0F; + + private float probability_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Probability { + get { if ((_hasBits0 & 1) != 0) { return probability_; } else { return ProbabilityDefaultValue; } } + set { + _hasBits0 |= 1; + probability_ = value; + } + } + /// Gets whether the "probability" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProbability { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "probability" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProbability() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusProbabilityBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusProbabilityBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Bonus, other.Bonus)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Probability, other.Probability)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (HasProbability) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Probability); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasProbability) { + output.WriteRawTag(21); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasProbability) { + output.WriteRawTag(21); + output.WriteFloat(Probability); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (HasProbability) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusProbabilityBonusInfo other) { + if (other == null) { + return; + } + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + if (other.HasProbability) { + Probability = other.Probability; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 21: { + Probability = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 21: { + Probability = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightBonus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus(BonusWeightBonus other) : this() { + bonuses_ = other.bonuses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonus Clone() { + return new BonusWeightBonus(this); + } + + /// Field number for the "bonuses" field. + public const int BonusesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_bonuses_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusWeightBonusInfo.Parser); + private readonly pbc::RepeatedField bonuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Bonuses { + get { return bonuses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!bonuses_.Equals(other.bonuses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= bonuses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + bonuses_.WriteTo(output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + bonuses_.WriteTo(ref output, _repeated_bonuses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += bonuses_.CalculateSize(_repeated_bonuses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightBonus other) { + if (other == null) { + return; + } + bonuses_.Add(other.bonuses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + bonuses_.AddEntriesFrom(input, _repeated_bonuses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + bonuses_.AddEntriesFrom(ref input, _repeated_bonuses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusWeightBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusWeightBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[71]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo(BonusWeightBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + bonus_ = other.bonus_ != null ? other.bonus_.Clone() : null; + weight_ = other.weight_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusWeightBonusInfo Clone() { + return new BonusWeightBonusInfo(this); + } + + /// Field number for the "bonus" field. + public const int BonusFieldNumber = 1; + private global::Cfg.BonusBonus bonus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.BonusBonus Bonus { + get { return bonus_; } + set { + bonus_ = value; + } + } + + /// Field number for the "weight" field. + public const int WeightFieldNumber = 2; + private readonly static int WeightDefaultValue = 0; + + private int weight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Weight { + get { if ((_hasBits0 & 1) != 0) { return weight_; } else { return WeightDefaultValue; } } + set { + _hasBits0 |= 1; + weight_ = value; + } + } + /// Gets whether the "weight" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWeight { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "weight" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWeight() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusWeightBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusWeightBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Bonus, other.Bonus)) return false; + if (Weight != other.Weight) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (bonus_ != null) hash ^= Bonus.GetHashCode(); + if (HasWeight) hash ^= Weight.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasWeight) { + output.WriteRawTag(16); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bonus_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bonus); + } + if (HasWeight) { + output.WriteRawTag(16); + output.WriteInt32(Weight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bonus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bonus); + } + if (HasWeight) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusWeightBonusInfo other) { + if (other == null) { + return; + } + if (other.bonus_ != null) { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + Bonus.MergeFrom(other.Bonus); + } + if (other.HasWeight) { + Weight = other.Weight; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 16: { + Weight = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (bonus_ == null) { + Bonus = new global::Cfg.BonusBonus(); + } + input.ReadMessage(Bonus); + break; + } + case 16: { + Weight = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusDropBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusDropBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[72]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus(BonusDropBonus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusDropBonus Clone() { + return new BonusDropBonus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusDropBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusDropBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusDropBonus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[73]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig(CommonGlobalConfig other) : this() { + _hasBits0 = other._hasBits0; + bagCapacity_ = other.bagCapacity_; + bagCapacitySpecial_ = other.bagCapacitySpecial_; + bagTempExpendableCapacity_ = other.bagTempExpendableCapacity_; + bagTempToolCapacity_ = other.bagTempToolCapacity_; + bagInitCapacity_ = other.bagInitCapacity_; + quickBagCapacity_ = other.quickBagCapacity_; + clothBagCapacity_ = other.clothBagCapacity_; + clothBagInitCapacity_ = other.clothBagInitCapacity_; + clothBagCapacitySpecial_ = other.clothBagCapacitySpecial_; + bagInitItemsDropId_ = other.bagInitItemsDropId_; + mailBoxCapacity_ = other.mailBoxCapacity_; + damageParamC_ = other.damageParamC_; + damageParamE_ = other.damageParamE_; + damageParamF_ = other.damageParamF_; + damageParamD_ = other.damageParamD_; + roleSpeed_ = other.roleSpeed_; + monsterSpeed_ = other.monsterSpeed_; + initEnergy_ = other.initEnergy_; + initViality_ = other.initViality_; + maxViality_ = other.maxViality_; + perVialityRecoveryTime_ = other.perVialityRecoveryTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig Clone() { + return new CommonGlobalConfig(this); + } + + /// Field number for the "bag_capacity" field. + public const int BagCapacityFieldNumber = 1; + private readonly static int BagCapacityDefaultValue = 0; + + private int bagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacity { + get { if ((_hasBits0 & 1) != 0) { return bagCapacity_; } else { return BagCapacityDefaultValue; } } + set { + _hasBits0 |= 1; + bagCapacity_ = value; + } + } + /// Gets whether the "bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacity { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacity() { + _hasBits0 &= ~1; + } + + /// Field number for the "bag_capacity_special" field. + public const int BagCapacitySpecialFieldNumber = 2; + private readonly static int BagCapacitySpecialDefaultValue = 0; + + private int bagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacitySpecial { + get { if ((_hasBits0 & 2) != 0) { return bagCapacitySpecial_; } else { return BagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 2; + bagCapacitySpecial_ = value; + } + } + /// Gets whether the "bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacitySpecial { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacitySpecial() { + _hasBits0 &= ~2; + } + + /// Field number for the "bag_temp_expendable_capacity" field. + public const int BagTempExpendableCapacityFieldNumber = 3; + private readonly static int BagTempExpendableCapacityDefaultValue = 0; + + private int bagTempExpendableCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempExpendableCapacity { + get { if ((_hasBits0 & 4) != 0) { return bagTempExpendableCapacity_; } else { return BagTempExpendableCapacityDefaultValue; } } + set { + _hasBits0 |= 4; + bagTempExpendableCapacity_ = value; + } + } + /// Gets whether the "bag_temp_expendable_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempExpendableCapacity { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "bag_temp_expendable_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempExpendableCapacity() { + _hasBits0 &= ~4; + } + + /// Field number for the "bag_temp_tool_capacity" field. + public const int BagTempToolCapacityFieldNumber = 4; + private readonly static int BagTempToolCapacityDefaultValue = 0; + + private int bagTempToolCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempToolCapacity { + get { if ((_hasBits0 & 8) != 0) { return bagTempToolCapacity_; } else { return BagTempToolCapacityDefaultValue; } } + set { + _hasBits0 |= 8; + bagTempToolCapacity_ = value; + } + } + /// Gets whether the "bag_temp_tool_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempToolCapacity { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bag_temp_tool_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempToolCapacity() { + _hasBits0 &= ~8; + } + + /// Field number for the "bag_init_capacity" field. + public const int BagInitCapacityFieldNumber = 5; + private readonly static int BagInitCapacityDefaultValue = 0; + + private int bagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitCapacity { + get { if ((_hasBits0 & 16) != 0) { return bagInitCapacity_; } else { return BagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 16; + bagInitCapacity_ = value; + } + } + /// Gets whether the "bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitCapacity { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitCapacity() { + _hasBits0 &= ~16; + } + + /// Field number for the "quick_bag_capacity" field. + public const int QuickBagCapacityFieldNumber = 6; + private readonly static int QuickBagCapacityDefaultValue = 0; + + private int quickBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuickBagCapacity { + get { if ((_hasBits0 & 32) != 0) { return quickBagCapacity_; } else { return QuickBagCapacityDefaultValue; } } + set { + _hasBits0 |= 32; + quickBagCapacity_ = value; + } + } + /// Gets whether the "quick_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuickBagCapacity { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "quick_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuickBagCapacity() { + _hasBits0 &= ~32; + } + + /// Field number for the "cloth_bag_capacity" field. + public const int ClothBagCapacityFieldNumber = 7; + private readonly static int ClothBagCapacityDefaultValue = 0; + + private int clothBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacity { + get { if ((_hasBits0 & 64) != 0) { return clothBagCapacity_; } else { return ClothBagCapacityDefaultValue; } } + set { + _hasBits0 |= 64; + clothBagCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacity { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "cloth_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacity() { + _hasBits0 &= ~64; + } + + /// Field number for the "cloth_bag_init_capacity" field. + public const int ClothBagInitCapacityFieldNumber = 8; + private readonly static int ClothBagInitCapacityDefaultValue = 0; + + private int clothBagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagInitCapacity { + get { if ((_hasBits0 & 128) != 0) { return clothBagInitCapacity_; } else { return ClothBagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 128; + clothBagInitCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagInitCapacity { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "cloth_bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagInitCapacity() { + _hasBits0 &= ~128; + } + + /// Field number for the "cloth_bag_capacity_special" field. + public const int ClothBagCapacitySpecialFieldNumber = 9; + private readonly static int ClothBagCapacitySpecialDefaultValue = 0; + + private int clothBagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacitySpecial { + get { if ((_hasBits0 & 256) != 0) { return clothBagCapacitySpecial_; } else { return ClothBagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 256; + clothBagCapacitySpecial_ = value; + } + } + /// Gets whether the "cloth_bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacitySpecial { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "cloth_bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacitySpecial() { + _hasBits0 &= ~256; + } + + /// Field number for the "bag_init_items_drop_id" field. + public const int BagInitItemsDropIdFieldNumber = 10; + private readonly static int BagInitItemsDropIdDefaultValue = 0; + + private int bagInitItemsDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitItemsDropId { + get { if ((_hasBits0 & 512) != 0) { return bagInitItemsDropId_; } else { return BagInitItemsDropIdDefaultValue; } } + set { + _hasBits0 |= 512; + bagInitItemsDropId_ = value; + } + } + /// Gets whether the "bag_init_items_drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitItemsDropId { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "bag_init_items_drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitItemsDropId() { + _hasBits0 &= ~512; + } + + /// Field number for the "mail_box_capacity" field. + public const int MailBoxCapacityFieldNumber = 11; + private readonly static int MailBoxCapacityDefaultValue = 0; + + private int mailBoxCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MailBoxCapacity { + get { if ((_hasBits0 & 1024) != 0) { return mailBoxCapacity_; } else { return MailBoxCapacityDefaultValue; } } + set { + _hasBits0 |= 1024; + mailBoxCapacity_ = value; + } + } + /// Gets whether the "mail_box_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMailBoxCapacity { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "mail_box_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMailBoxCapacity() { + _hasBits0 &= ~1024; + } + + /// Field number for the "damage_param_c" field. + public const int DamageParamCFieldNumber = 12; + private readonly static float DamageParamCDefaultValue = 0F; + + private float damageParamC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamC { + get { if ((_hasBits0 & 2048) != 0) { return damageParamC_; } else { return DamageParamCDefaultValue; } } + set { + _hasBits0 |= 2048; + damageParamC_ = value; + } + } + /// Gets whether the "damage_param_c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamC { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "damage_param_c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamC() { + _hasBits0 &= ~2048; + } + + /// Field number for the "damage_param_e" field. + public const int DamageParamEFieldNumber = 13; + private readonly static float DamageParamEDefaultValue = 0F; + + private float damageParamE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamE { + get { if ((_hasBits0 & 4096) != 0) { return damageParamE_; } else { return DamageParamEDefaultValue; } } + set { + _hasBits0 |= 4096; + damageParamE_ = value; + } + } + /// Gets whether the "damage_param_e" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamE { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "damage_param_e" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamE() { + _hasBits0 &= ~4096; + } + + /// Field number for the "damage_param_f" field. + public const int DamageParamFFieldNumber = 14; + private readonly static float DamageParamFDefaultValue = 0F; + + private float damageParamF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamF { + get { if ((_hasBits0 & 8192) != 0) { return damageParamF_; } else { return DamageParamFDefaultValue; } } + set { + _hasBits0 |= 8192; + damageParamF_ = value; + } + } + /// Gets whether the "damage_param_f" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamF { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "damage_param_f" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamF() { + _hasBits0 &= ~8192; + } + + /// Field number for the "damage_param_d" field. + public const int DamageParamDFieldNumber = 15; + private readonly static float DamageParamDDefaultValue = 0F; + + private float damageParamD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamD { + get { if ((_hasBits0 & 16384) != 0) { return damageParamD_; } else { return DamageParamDDefaultValue; } } + set { + _hasBits0 |= 16384; + damageParamD_ = value; + } + } + /// Gets whether the "damage_param_d" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamD { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "damage_param_d" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamD() { + _hasBits0 &= ~16384; + } + + /// Field number for the "role_speed" field. + public const int RoleSpeedFieldNumber = 16; + private readonly static float RoleSpeedDefaultValue = 0F; + + private float roleSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RoleSpeed { + get { if ((_hasBits0 & 32768) != 0) { return roleSpeed_; } else { return RoleSpeedDefaultValue; } } + set { + _hasBits0 |= 32768; + roleSpeed_ = value; + } + } + /// Gets whether the "role_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleSpeed { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "role_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleSpeed() { + _hasBits0 &= ~32768; + } + + /// Field number for the "monster_speed" field. + public const int MonsterSpeedFieldNumber = 17; + private readonly static float MonsterSpeedDefaultValue = 0F; + + private float monsterSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float MonsterSpeed { + get { if ((_hasBits0 & 65536) != 0) { return monsterSpeed_; } else { return MonsterSpeedDefaultValue; } } + set { + _hasBits0 |= 65536; + monsterSpeed_ = value; + } + } + /// Gets whether the "monster_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMonsterSpeed { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "monster_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMonsterSpeed() { + _hasBits0 &= ~65536; + } + + /// Field number for the "init_energy" field. + public const int InitEnergyFieldNumber = 18; + private readonly static int InitEnergyDefaultValue = 0; + + private int initEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitEnergy { + get { if ((_hasBits0 & 131072) != 0) { return initEnergy_; } else { return InitEnergyDefaultValue; } } + set { + _hasBits0 |= 131072; + initEnergy_ = value; + } + } + /// Gets whether the "init_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitEnergy { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "init_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitEnergy() { + _hasBits0 &= ~131072; + } + + /// Field number for the "init_viality" field. + public const int InitVialityFieldNumber = 19; + private readonly static int InitVialityDefaultValue = 0; + + private int initViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitViality { + get { if ((_hasBits0 & 262144) != 0) { return initViality_; } else { return InitVialityDefaultValue; } } + set { + _hasBits0 |= 262144; + initViality_ = value; + } + } + /// Gets whether the "init_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitViality { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "init_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitViality() { + _hasBits0 &= ~262144; + } + + /// Field number for the "max_viality" field. + public const int MaxVialityFieldNumber = 20; + private readonly static int MaxVialityDefaultValue = 0; + + private int maxViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxViality { + get { if ((_hasBits0 & 524288) != 0) { return maxViality_; } else { return MaxVialityDefaultValue; } } + set { + _hasBits0 |= 524288; + maxViality_ = value; + } + } + /// Gets whether the "max_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxViality { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "max_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxViality() { + _hasBits0 &= ~524288; + } + + /// Field number for the "per_viality_recovery_time" field. + public const int PerVialityRecoveryTimeFieldNumber = 21; + private readonly static int PerVialityRecoveryTimeDefaultValue = 0; + + private int perVialityRecoveryTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerVialityRecoveryTime { + get { if ((_hasBits0 & 1048576) != 0) { return perVialityRecoveryTime_; } else { return PerVialityRecoveryTimeDefaultValue; } } + set { + _hasBits0 |= 1048576; + perVialityRecoveryTime_ = value; + } + } + /// Gets whether the "per_viality_recovery_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPerVialityRecoveryTime { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "per_viality_recovery_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPerVialityRecoveryTime() { + _hasBits0 &= ~1048576; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BagCapacity != other.BagCapacity) return false; + if (BagCapacitySpecial != other.BagCapacitySpecial) return false; + if (BagTempExpendableCapacity != other.BagTempExpendableCapacity) return false; + if (BagTempToolCapacity != other.BagTempToolCapacity) return false; + if (BagInitCapacity != other.BagInitCapacity) return false; + if (QuickBagCapacity != other.QuickBagCapacity) return false; + if (ClothBagCapacity != other.ClothBagCapacity) return false; + if (ClothBagInitCapacity != other.ClothBagInitCapacity) return false; + if (ClothBagCapacitySpecial != other.ClothBagCapacitySpecial) return false; + if (BagInitItemsDropId != other.BagInitItemsDropId) return false; + if (MailBoxCapacity != other.MailBoxCapacity) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamC, other.DamageParamC)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamE, other.DamageParamE)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamF, other.DamageParamF)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamD, other.DamageParamD)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RoleSpeed, other.RoleSpeed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MonsterSpeed, other.MonsterSpeed)) return false; + if (InitEnergy != other.InitEnergy) return false; + if (InitViality != other.InitViality) return false; + if (MaxViality != other.MaxViality) return false; + if (PerVialityRecoveryTime != other.PerVialityRecoveryTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBagCapacity) hash ^= BagCapacity.GetHashCode(); + if (HasBagCapacitySpecial) hash ^= BagCapacitySpecial.GetHashCode(); + if (HasBagTempExpendableCapacity) hash ^= BagTempExpendableCapacity.GetHashCode(); + if (HasBagTempToolCapacity) hash ^= BagTempToolCapacity.GetHashCode(); + if (HasBagInitCapacity) hash ^= BagInitCapacity.GetHashCode(); + if (HasQuickBagCapacity) hash ^= QuickBagCapacity.GetHashCode(); + if (HasClothBagCapacity) hash ^= ClothBagCapacity.GetHashCode(); + if (HasClothBagInitCapacity) hash ^= ClothBagInitCapacity.GetHashCode(); + if (HasClothBagCapacitySpecial) hash ^= ClothBagCapacitySpecial.GetHashCode(); + if (HasBagInitItemsDropId) hash ^= BagInitItemsDropId.GetHashCode(); + if (HasMailBoxCapacity) hash ^= MailBoxCapacity.GetHashCode(); + if (HasDamageParamC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamC); + if (HasDamageParamE) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamE); + if (HasDamageParamF) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamF); + if (HasDamageParamD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamD); + if (HasRoleSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RoleSpeed); + if (HasMonsterSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MonsterSpeed); + if (HasInitEnergy) hash ^= InitEnergy.GetHashCode(); + if (HasInitViality) hash ^= InitViality.GetHashCode(); + if (HasMaxViality) hash ^= MaxViality.GetHashCode(); + if (HasPerVialityRecoveryTime) hash ^= PerVialityRecoveryTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacity); + } + if (HasBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitCapacity); + } + if (HasQuickBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuickBagCapacity); + } + if (HasClothBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MailBoxCapacity); + } + if (HasDamageParamC) { + size += 1 + 4; + } + if (HasDamageParamE) { + size += 1 + 4; + } + if (HasDamageParamF) { + size += 1 + 4; + } + if (HasDamageParamD) { + size += 1 + 4; + } + if (HasRoleSpeed) { + size += 2 + 4; + } + if (HasMonsterSpeed) { + size += 2 + 4; + } + if (HasInitEnergy) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitEnergy); + } + if (HasInitViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitViality); + } + if (HasMaxViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxViality); + } + if (HasPerVialityRecoveryTime) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonGlobalConfig other) { + if (other == null) { + return; + } + if (other.HasBagCapacity) { + BagCapacity = other.BagCapacity; + } + if (other.HasBagCapacitySpecial) { + BagCapacitySpecial = other.BagCapacitySpecial; + } + if (other.HasBagTempExpendableCapacity) { + BagTempExpendableCapacity = other.BagTempExpendableCapacity; + } + if (other.HasBagTempToolCapacity) { + BagTempToolCapacity = other.BagTempToolCapacity; + } + if (other.HasBagInitCapacity) { + BagInitCapacity = other.BagInitCapacity; + } + if (other.HasQuickBagCapacity) { + QuickBagCapacity = other.QuickBagCapacity; + } + if (other.HasClothBagCapacity) { + ClothBagCapacity = other.ClothBagCapacity; + } + if (other.HasClothBagInitCapacity) { + ClothBagInitCapacity = other.ClothBagInitCapacity; + } + if (other.HasClothBagCapacitySpecial) { + ClothBagCapacitySpecial = other.ClothBagCapacitySpecial; + } + if (other.HasBagInitItemsDropId) { + BagInitItemsDropId = other.BagInitItemsDropId; + } + if (other.HasMailBoxCapacity) { + MailBoxCapacity = other.MailBoxCapacity; + } + if (other.HasDamageParamC) { + DamageParamC = other.DamageParamC; + } + if (other.HasDamageParamE) { + DamageParamE = other.DamageParamE; + } + if (other.HasDamageParamF) { + DamageParamF = other.DamageParamF; + } + if (other.HasDamageParamD) { + DamageParamD = other.DamageParamD; + } + if (other.HasRoleSpeed) { + RoleSpeed = other.RoleSpeed; + } + if (other.HasMonsterSpeed) { + MonsterSpeed = other.MonsterSpeed; + } + if (other.HasInitEnergy) { + InitEnergy = other.InitEnergy; + } + if (other.HasInitViality) { + InitViality = other.InitViality; + } + if (other.HasMaxViality) { + MaxViality = other.MaxViality; + } + if (other.HasPerVialityRecoveryTime) { + PerVialityRecoveryTime = other.PerVialityRecoveryTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[74]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo(ErrorErrorInfo other) : this() { + code_ = other.code_; + desc_ = other.desc_; + style_ = other.style_ != null ? other.style_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorInfo Clone() { + return new ErrorErrorInfo(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private readonly static string CodeDefaultValue = ""; + + private string code_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Code { + get { return code_ ?? CodeDefaultValue; } + set { + code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return code_ != null; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + code_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "style" field. + public const int StyleFieldNumber = 3; + private global::Cfg.ErrorErrorStyle style_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyle Style { + get { return style_; } + set { + style_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Desc != other.Desc) return false; + if (!object.Equals(Style, other.Style)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCode) hash ^= Code.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (style_ != null) hash ^= Style.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCode) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (style_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Style); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCode) { + output.WriteRawTag(10); + output.WriteString(Code); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (style_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Style); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCode) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (style_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Style); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorInfo other) { + if (other == null) { + return; + } + if (other.HasCode) { + Code = other.Code; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.style_ != null) { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + Style.MergeFrom(other.Style); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Code = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + input.ReadMessage(Style); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Code = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + if (style_ == null) { + Style = new global::Cfg.ErrorErrorStyle(); + } + input.ReadMessage(Style); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[75]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle(ErrorErrorStyle other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.ErrorStyleTip: + ErrorStyleTip = other.ErrorStyleTip.Clone(); + break; + case ValueOneofCase.ErrorStyleMsgbox: + ErrorStyleMsgbox = other.ErrorStyleMsgbox.Clone(); + break; + case ValueOneofCase.ErrorStyleDlgOk: + ErrorStyleDlgOk = other.ErrorStyleDlgOk.Clone(); + break; + case ValueOneofCase.ErrorStyleDlgOkCancel: + ErrorStyleDlgOkCancel = other.ErrorStyleDlgOkCancel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyle Clone() { + return new ErrorErrorStyle(this); + } + + /// Field number for the "ErrorStyleTip" field. + public const int ErrorStyleTipFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleTip ErrorStyleTip { + get { return valueCase_ == ValueOneofCase.ErrorStyleTip ? (global::Cfg.ErrorErrorStyleTip) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleTip; + } + } + + /// Field number for the "ErrorStyleMsgbox" field. + public const int ErrorStyleMsgboxFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleMsgbox ErrorStyleMsgbox { + get { return valueCase_ == ValueOneofCase.ErrorStyleMsgbox ? (global::Cfg.ErrorErrorStyleMsgbox) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleMsgbox; + } + } + + /// Field number for the "ErrorStyleDlgOk" field. + public const int ErrorStyleDlgOkFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleDlgOk ErrorStyleDlgOk { + get { return valueCase_ == ValueOneofCase.ErrorStyleDlgOk ? (global::Cfg.ErrorErrorStyleDlgOk) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleDlgOk; + } + } + + /// Field number for the "ErrorStyleDlgOkCancel" field. + public const int ErrorStyleDlgOkCancelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorErrorStyleDlgOkCancel ErrorStyleDlgOkCancel { + get { return valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel ? (global::Cfg.ErrorErrorStyleDlgOkCancel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ErrorStyleDlgOkCancel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + ErrorStyleTip = 1, + ErrorStyleMsgbox = 2, + ErrorStyleDlgOk = 3, + ErrorStyleDlgOkCancel = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ErrorStyleTip, other.ErrorStyleTip)) return false; + if (!object.Equals(ErrorStyleMsgbox, other.ErrorStyleMsgbox)) return false; + if (!object.Equals(ErrorStyleDlgOk, other.ErrorStyleDlgOk)) return false; + if (!object.Equals(ErrorStyleDlgOkCancel, other.ErrorStyleDlgOkCancel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.ErrorStyleTip) hash ^= ErrorStyleTip.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) hash ^= ErrorStyleMsgbox.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) hash ^= ErrorStyleDlgOk.GetHashCode(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) hash ^= ErrorStyleDlgOkCancel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + output.WriteRawTag(10); + output.WriteMessage(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + output.WriteRawTag(18); + output.WriteMessage(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + output.WriteRawTag(26); + output.WriteMessage(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + output.WriteRawTag(34); + output.WriteMessage(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + output.WriteRawTag(10); + output.WriteMessage(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + output.WriteRawTag(18); + output.WriteMessage(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + output.WriteRawTag(26); + output.WriteMessage(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + output.WriteRawTag(34); + output.WriteMessage(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleTip); + } + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleMsgbox); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleDlgOk); + } + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorStyleDlgOkCancel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyle other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.ErrorStyleTip: + if (ErrorStyleTip == null) { + ErrorStyleTip = new global::Cfg.ErrorErrorStyleTip(); + } + ErrorStyleTip.MergeFrom(other.ErrorStyleTip); + break; + case ValueOneofCase.ErrorStyleMsgbox: + if (ErrorStyleMsgbox == null) { + ErrorStyleMsgbox = new global::Cfg.ErrorErrorStyleMsgbox(); + } + ErrorStyleMsgbox.MergeFrom(other.ErrorStyleMsgbox); + break; + case ValueOneofCase.ErrorStyleDlgOk: + if (ErrorStyleDlgOk == null) { + ErrorStyleDlgOk = new global::Cfg.ErrorErrorStyleDlgOk(); + } + ErrorStyleDlgOk.MergeFrom(other.ErrorStyleDlgOk); + break; + case ValueOneofCase.ErrorStyleDlgOkCancel: + if (ErrorStyleDlgOkCancel == null) { + ErrorStyleDlgOkCancel = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + } + ErrorStyleDlgOkCancel.MergeFrom(other.ErrorStyleDlgOkCancel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ErrorErrorStyleTip subBuilder = new global::Cfg.ErrorErrorStyleTip(); + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + subBuilder.MergeFrom(ErrorStyleTip); + } + input.ReadMessage(subBuilder); + ErrorStyleTip = subBuilder; + break; + } + case 18: { + global::Cfg.ErrorErrorStyleMsgbox subBuilder = new global::Cfg.ErrorErrorStyleMsgbox(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + subBuilder.MergeFrom(ErrorStyleMsgbox); + } + input.ReadMessage(subBuilder); + ErrorStyleMsgbox = subBuilder; + break; + } + case 26: { + global::Cfg.ErrorErrorStyleDlgOk subBuilder = new global::Cfg.ErrorErrorStyleDlgOk(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + subBuilder.MergeFrom(ErrorStyleDlgOk); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOk = subBuilder; + break; + } + case 34: { + global::Cfg.ErrorErrorStyleDlgOkCancel subBuilder = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + subBuilder.MergeFrom(ErrorStyleDlgOkCancel); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOkCancel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ErrorErrorStyleTip subBuilder = new global::Cfg.ErrorErrorStyleTip(); + if (valueCase_ == ValueOneofCase.ErrorStyleTip) { + subBuilder.MergeFrom(ErrorStyleTip); + } + input.ReadMessage(subBuilder); + ErrorStyleTip = subBuilder; + break; + } + case 18: { + global::Cfg.ErrorErrorStyleMsgbox subBuilder = new global::Cfg.ErrorErrorStyleMsgbox(); + if (valueCase_ == ValueOneofCase.ErrorStyleMsgbox) { + subBuilder.MergeFrom(ErrorStyleMsgbox); + } + input.ReadMessage(subBuilder); + ErrorStyleMsgbox = subBuilder; + break; + } + case 26: { + global::Cfg.ErrorErrorStyleDlgOk subBuilder = new global::Cfg.ErrorErrorStyleDlgOk(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOk) { + subBuilder.MergeFrom(ErrorStyleDlgOk); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOk = subBuilder; + break; + } + case 34: { + global::Cfg.ErrorErrorStyleDlgOkCancel subBuilder = new global::Cfg.ErrorErrorStyleDlgOkCancel(); + if (valueCase_ == ValueOneofCase.ErrorStyleDlgOkCancel) { + subBuilder.MergeFrom(ErrorStyleDlgOkCancel); + } + input.ReadMessage(subBuilder); + ErrorStyleDlgOkCancel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleTip : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleTip()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip(ErrorErrorStyleTip other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleTip Clone() { + return new ErrorErrorStyleTip(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleTip); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleTip other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleTip other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleMsgbox : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleMsgbox()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox(ErrorErrorStyleMsgbox other) : this() { + _hasBits0 = other._hasBits0; + btnName_ = other.btnName_; + operation_ = other.operation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleMsgbox Clone() { + return new ErrorErrorStyleMsgbox(this); + } + + /// Field number for the "btn_name" field. + public const int BtnNameFieldNumber = 1; + private readonly static string BtnNameDefaultValue = ""; + + private string btnName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BtnName { + get { return btnName_ ?? BtnNameDefaultValue; } + set { + btnName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtnName { + get { return btnName_ != null; } + } + /// Clears the value of the "btn_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtnName() { + btnName_ = null; + } + + /// Field number for the "operation" field. + public const int OperationFieldNumber = 2; + private readonly static global::Cfg.ErrorEOperation OperationDefaultValue = global::Cfg.ErrorEOperation.Logout; + + private global::Cfg.ErrorEOperation operation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorEOperation Operation { + get { if ((_hasBits0 & 1) != 0) { return operation_; } else { return OperationDefaultValue; } } + set { + _hasBits0 |= 1; + operation_ = value; + } + } + /// Gets whether the "operation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOperation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "operation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOperation() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleMsgbox); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleMsgbox other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BtnName != other.BtnName) return false; + if (Operation != other.Operation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtnName) hash ^= BtnName.GetHashCode(); + if (HasOperation) hash ^= Operation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (HasOperation) { + output.WriteRawTag(16); + output.WriteEnum((int) Operation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (HasOperation) { + output.WriteRawTag(16); + output.WriteEnum((int) Operation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtnName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BtnName); + } + if (HasOperation) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleMsgbox other) { + if (other == null) { + return; + } + if (other.HasBtnName) { + BtnName = other.BtnName; + } + if (other.HasOperation) { + Operation = other.Operation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + case 16: { + Operation = (global::Cfg.ErrorEOperation) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + case 16: { + Operation = (global::Cfg.ErrorEOperation) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleDlgOk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleDlgOk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk(ErrorErrorStyleDlgOk other) : this() { + btnName_ = other.btnName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOk Clone() { + return new ErrorErrorStyleDlgOk(this); + } + + /// Field number for the "btn_name" field. + public const int BtnNameFieldNumber = 1; + private readonly static string BtnNameDefaultValue = ""; + + private string btnName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BtnName { + get { return btnName_ ?? BtnNameDefaultValue; } + set { + btnName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtnName { + get { return btnName_ != null; } + } + /// Clears the value of the "btn_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtnName() { + btnName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleDlgOk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleDlgOk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BtnName != other.BtnName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtnName) hash ^= BtnName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtnName) { + output.WriteRawTag(10); + output.WriteString(BtnName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtnName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BtnName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleDlgOk other) { + if (other == null) { + return; + } + if (other.HasBtnName) { + BtnName = other.BtnName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + BtnName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorErrorStyleDlgOkCancel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorErrorStyleDlgOkCancel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel(ErrorErrorStyleDlgOkCancel other) : this() { + btn1Name_ = other.btn1Name_; + btn2Name_ = other.btn2Name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorErrorStyleDlgOkCancel Clone() { + return new ErrorErrorStyleDlgOkCancel(this); + } + + /// Field number for the "btn1_name" field. + public const int Btn1NameFieldNumber = 1; + private readonly static string Btn1NameDefaultValue = ""; + + private string btn1Name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Btn1Name { + get { return btn1Name_ ?? Btn1NameDefaultValue; } + set { + btn1Name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn1_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtn1Name { + get { return btn1Name_ != null; } + } + /// Clears the value of the "btn1_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtn1Name() { + btn1Name_ = null; + } + + /// Field number for the "btn2_name" field. + public const int Btn2NameFieldNumber = 2; + private readonly static string Btn2NameDefaultValue = ""; + + private string btn2Name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Btn2Name { + get { return btn2Name_ ?? Btn2NameDefaultValue; } + set { + btn2Name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "btn2_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBtn2Name { + get { return btn2Name_ != null; } + } + /// Clears the value of the "btn2_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBtn2Name() { + btn2Name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorErrorStyleDlgOkCancel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorErrorStyleDlgOkCancel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Btn1Name != other.Btn1Name) return false; + if (Btn2Name != other.Btn2Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBtn1Name) hash ^= Btn1Name.GetHashCode(); + if (HasBtn2Name) hash ^= Btn2Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBtn1Name) { + output.WriteRawTag(10); + output.WriteString(Btn1Name); + } + if (HasBtn2Name) { + output.WriteRawTag(18); + output.WriteString(Btn2Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBtn1Name) { + output.WriteRawTag(10); + output.WriteString(Btn1Name); + } + if (HasBtn2Name) { + output.WriteRawTag(18); + output.WriteString(Btn2Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBtn1Name) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Btn1Name); + } + if (HasBtn2Name) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Btn2Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorErrorStyleDlgOkCancel other) { + if (other == null) { + return; + } + if (other.HasBtn1Name) { + Btn1Name = other.Btn1Name; + } + if (other.HasBtn2Name) { + Btn2Name = other.Btn2Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Btn1Name = input.ReadString(); + break; + } + case 18: { + Btn2Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Btn1Name = input.ReadString(); + break; + } + case 18: { + Btn2Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorCodeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorCodeInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo(ErrorCodeInfo other) : this() { + _hasBits0 = other._hasBits0; + code_ = other.code_; + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorCodeInfo Clone() { + return new ErrorCodeInfo(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private readonly static global::Cfg.ErrorEErrorCode CodeDefaultValue = global::Cfg.ErrorEErrorCode.Ok; + + private global::Cfg.ErrorEErrorCode code_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ErrorEErrorCode Code { + get { if ((_hasBits0 & 1) != 0) { return code_; } else { return CodeDefaultValue; } } + set { + _hasBits0 |= 1; + code_ = value; + } + } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + _hasBits0 &= ~1; + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 2; + private readonly static string KeyDefaultValue = ""; + + private string key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Key { + get { return key_ ?? KeyDefaultValue; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the "key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKey() { + key_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorCodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorCodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Key != other.Key) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCode) hash ^= Code.GetHashCode(); + if (HasKey) hash ^= Key.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCode) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCode) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (HasKey) { + output.WriteRawTag(18); + output.WriteString(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorCodeInfo other) { + if (other == null) { + return; + } + if (other.HasCode) { + Code = other.Code; + } + if (other.HasKey) { + Key = other.Key; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Code = (global::Cfg.ErrorEErrorCode) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Code = (global::Cfg.ErrorEErrorCode) input.ReadEnum(); + break; + } + case 18: { + Key = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem(ItemItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + majorType_ = other.majorType_; + minorType_ = other.minorType_; + maxPileNum_ = other.maxPileNum_; + quality_ = other.quality_; + icon_ = other.icon_; + iconBackgroud_ = other.iconBackgroud_; + iconMask_ = other.iconMask_; + desc_ = other.desc_; + showOrder_ = other.showOrder_; + quantifier_ = other.quantifier_; + showInBag_ = other.showInBag_; + minShowLevel_ = other.minShowLevel_; + batchUsable_ = other.batchUsable_; + progressTimeWhenUse_ = other.progressTimeWhenUse_; + showHintWhenUse_ = other.showHintWhenUse_; + droppable_ = other.droppable_; + price_ = other.price_; + useType_ = other.useType_; + levelUpId_ = other.levelUpId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem Clone() { + return new ItemItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "major_type" field. + public const int MajorTypeFieldNumber = 3; + private readonly static global::Cfg.ItemEMajorType MajorTypeDefaultValue = global::Cfg.ItemEMajorType.Currency; + + private global::Cfg.ItemEMajorType majorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMajorType MajorType { + get { if ((_hasBits0 & 2) != 0) { return majorType_; } else { return MajorTypeDefaultValue; } } + set { + _hasBits0 |= 2; + majorType_ = value; + } + } + /// Gets whether the "major_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMajorType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "major_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMajorType() { + _hasBits0 &= ~2; + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 4; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 4) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 4; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~4; + } + + /// Field number for the "max_pile_num" field. + public const int MaxPileNumFieldNumber = 5; + private readonly static int MaxPileNumDefaultValue = 0; + + private int maxPileNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxPileNum { + get { if ((_hasBits0 & 8) != 0) { return maxPileNum_; } else { return MaxPileNumDefaultValue; } } + set { + _hasBits0 |= 8; + maxPileNum_ = value; + } + } + /// Gets whether the "max_pile_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxPileNum { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "max_pile_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxPileNum() { + _hasBits0 &= ~8; + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 6; + private readonly static global::Cfg.ItemEItemQuality QualityDefaultValue = global::Cfg.ItemEItemQuality.White; + + private global::Cfg.ItemEItemQuality quality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemQuality Quality { + get { if ((_hasBits0 & 16) != 0) { return quality_; } else { return QualityDefaultValue; } } + set { + _hasBits0 |= 16; + quality_ = value; + } + } + /// Gets whether the "quality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuality { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "quality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuality() { + _hasBits0 &= ~16; + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 7; + private readonly static string IconDefaultValue = ""; + + private string icon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_ ?? IconDefaultValue; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIcon { + get { return icon_ != null; } + } + /// Clears the value of the "icon" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIcon() { + icon_ = null; + } + + /// Field number for the "icon_backgroud" field. + public const int IconBackgroudFieldNumber = 8; + private readonly static string IconBackgroudDefaultValue = ""; + + private string iconBackgroud_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBackgroud { + get { return iconBackgroud_ ?? IconBackgroudDefaultValue; } + set { + iconBackgroud_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_backgroud" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconBackgroud { + get { return iconBackgroud_ != null; } + } + /// Clears the value of the "icon_backgroud" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconBackgroud() { + iconBackgroud_ = null; + } + + /// Field number for the "icon_mask" field. + public const int IconMaskFieldNumber = 9; + private readonly static string IconMaskDefaultValue = ""; + + private string iconMask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconMask { + get { return iconMask_ ?? IconMaskDefaultValue; } + set { + iconMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_mask" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconMask { + get { return iconMask_ != null; } + } + /// Clears the value of the "icon_mask" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconMask() { + iconMask_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 10; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "show_order" field. + public const int ShowOrderFieldNumber = 11; + private readonly static int ShowOrderDefaultValue = 0; + + private int showOrder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowOrder { + get { if ((_hasBits0 & 32) != 0) { return showOrder_; } else { return ShowOrderDefaultValue; } } + set { + _hasBits0 |= 32; + showOrder_ = value; + } + } + /// Gets whether the "show_order" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowOrder { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "show_order" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowOrder() { + _hasBits0 &= ~32; + } + + /// Field number for the "quantifier" field. + public const int QuantifierFieldNumber = 12; + private readonly static string QuantifierDefaultValue = ""; + + private string quantifier_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Quantifier { + get { return quantifier_ ?? QuantifierDefaultValue; } + set { + quantifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "quantifier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuantifier { + get { return quantifier_ != null; } + } + /// Clears the value of the "quantifier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuantifier() { + quantifier_ = null; + } + + /// Field number for the "show_in_bag" field. + public const int ShowInBagFieldNumber = 13; + private readonly static bool ShowInBagDefaultValue = false; + + private bool showInBag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShowInBag { + get { if ((_hasBits0 & 64) != 0) { return showInBag_; } else { return ShowInBagDefaultValue; } } + set { + _hasBits0 |= 64; + showInBag_ = value; + } + } + /// Gets whether the "show_in_bag" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowInBag { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "show_in_bag" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowInBag() { + _hasBits0 &= ~64; + } + + /// Field number for the "min_show_level" field. + public const int MinShowLevelFieldNumber = 14; + private readonly static int MinShowLevelDefaultValue = 0; + + private int minShowLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinShowLevel { + get { if ((_hasBits0 & 128) != 0) { return minShowLevel_; } else { return MinShowLevelDefaultValue; } } + set { + _hasBits0 |= 128; + minShowLevel_ = value; + } + } + /// Gets whether the "min_show_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinShowLevel { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "min_show_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinShowLevel() { + _hasBits0 &= ~128; + } + + /// Field number for the "batch_usable" field. + public const int BatchUsableFieldNumber = 15; + private readonly static bool BatchUsableDefaultValue = false; + + private bool batchUsable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BatchUsable { + get { if ((_hasBits0 & 256) != 0) { return batchUsable_; } else { return BatchUsableDefaultValue; } } + set { + _hasBits0 |= 256; + batchUsable_ = value; + } + } + /// Gets whether the "batch_usable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBatchUsable { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "batch_usable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBatchUsable() { + _hasBits0 &= ~256; + } + + /// Field number for the "progress_time_when_use" field. + public const int ProgressTimeWhenUseFieldNumber = 16; + private readonly static float ProgressTimeWhenUseDefaultValue = 0F; + + private float progressTimeWhenUse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ProgressTimeWhenUse { + get { if ((_hasBits0 & 512) != 0) { return progressTimeWhenUse_; } else { return ProgressTimeWhenUseDefaultValue; } } + set { + _hasBits0 |= 512; + progressTimeWhenUse_ = value; + } + } + /// Gets whether the "progress_time_when_use" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProgressTimeWhenUse { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "progress_time_when_use" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProgressTimeWhenUse() { + _hasBits0 &= ~512; + } + + /// Field number for the "show_hint_when_use" field. + public const int ShowHintWhenUseFieldNumber = 17; + private readonly static bool ShowHintWhenUseDefaultValue = false; + + private bool showHintWhenUse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShowHintWhenUse { + get { if ((_hasBits0 & 1024) != 0) { return showHintWhenUse_; } else { return ShowHintWhenUseDefaultValue; } } + set { + _hasBits0 |= 1024; + showHintWhenUse_ = value; + } + } + /// Gets whether the "show_hint_when_use" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowHintWhenUse { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "show_hint_when_use" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowHintWhenUse() { + _hasBits0 &= ~1024; + } + + /// Field number for the "droppable" field. + public const int DroppableFieldNumber = 18; + private readonly static bool DroppableDefaultValue = false; + + private bool droppable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Droppable { + get { if ((_hasBits0 & 2048) != 0) { return droppable_; } else { return DroppableDefaultValue; } } + set { + _hasBits0 |= 2048; + droppable_ = value; + } + } + /// Gets whether the "droppable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDroppable { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "droppable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDroppable() { + _hasBits0 &= ~2048; + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 19; + private readonly static int PriceDefaultValue = 0; + + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { if ((_hasBits0 & 4096) != 0) { return price_; } else { return PriceDefaultValue; } } + set { + _hasBits0 |= 4096; + price_ = value; + } + } + /// Gets whether the "price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPrice { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPrice() { + _hasBits0 &= ~4096; + } + + /// Field number for the "use_type" field. + public const int UseTypeFieldNumber = 20; + private readonly static global::Cfg.ItemEUseType UseTypeDefaultValue = global::Cfg.ItemEUseType.Manual; + + private global::Cfg.ItemEUseType useType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEUseType UseType { + get { if ((_hasBits0 & 8192) != 0) { return useType_; } else { return UseTypeDefaultValue; } } + set { + _hasBits0 |= 8192; + useType_ = value; + } + } + /// Gets whether the "use_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUseType { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "use_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUseType() { + _hasBits0 &= ~8192; + } + + /// Field number for the "level_up_id" field. + public const int LevelUpIdFieldNumber = 21; + private readonly static int LevelUpIdDefaultValue = 0; + + private int levelUpId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int LevelUpId { + get { if ((_hasBits0 & 16384) != 0) { return levelUpId_; } else { return LevelUpIdDefaultValue; } } + set { + _hasBits0 |= 16384; + levelUpId_ = value; + } + } + /// Gets whether the "level_up_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevelUpId { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "level_up_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevelUpId() { + _hasBits0 &= ~16384; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MajorType != other.MajorType) return false; + if (MinorType != other.MinorType) return false; + if (MaxPileNum != other.MaxPileNum) return false; + if (Quality != other.Quality) return false; + if (Icon != other.Icon) return false; + if (IconBackgroud != other.IconBackgroud) return false; + if (IconMask != other.IconMask) return false; + if (Desc != other.Desc) return false; + if (ShowOrder != other.ShowOrder) return false; + if (Quantifier != other.Quantifier) return false; + if (ShowInBag != other.ShowInBag) return false; + if (MinShowLevel != other.MinShowLevel) return false; + if (BatchUsable != other.BatchUsable) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ProgressTimeWhenUse, other.ProgressTimeWhenUse)) return false; + if (ShowHintWhenUse != other.ShowHintWhenUse) return false; + if (Droppable != other.Droppable) return false; + if (Price != other.Price) return false; + if (UseType != other.UseType) return false; + if (LevelUpId != other.LevelUpId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMajorType) hash ^= MajorType.GetHashCode(); + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasMaxPileNum) hash ^= MaxPileNum.GetHashCode(); + if (HasQuality) hash ^= Quality.GetHashCode(); + if (HasIcon) hash ^= Icon.GetHashCode(); + if (HasIconBackgroud) hash ^= IconBackgroud.GetHashCode(); + if (HasIconMask) hash ^= IconMask.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasShowOrder) hash ^= ShowOrder.GetHashCode(); + if (HasQuantifier) hash ^= Quantifier.GetHashCode(); + if (HasShowInBag) hash ^= ShowInBag.GetHashCode(); + if (HasMinShowLevel) hash ^= MinShowLevel.GetHashCode(); + if (HasBatchUsable) hash ^= BatchUsable.GetHashCode(); + if (HasProgressTimeWhenUse) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ProgressTimeWhenUse); + if (HasShowHintWhenUse) hash ^= ShowHintWhenUse.GetHashCode(); + if (HasDroppable) hash ^= Droppable.GetHashCode(); + if (HasPrice) hash ^= Price.GetHashCode(); + if (HasUseType) hash ^= UseType.GetHashCode(); + if (HasLevelUpId) hash ^= LevelUpId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (HasQuantifier) { + output.WriteRawTag(98); + output.WriteString(Quantifier); + } + if (HasShowInBag) { + output.WriteRawTag(104); + output.WriteBool(ShowInBag); + } + if (HasMinShowLevel) { + output.WriteRawTag(112); + output.WriteInt32(MinShowLevel); + } + if (HasBatchUsable) { + output.WriteRawTag(120); + output.WriteBool(BatchUsable); + } + if (HasProgressTimeWhenUse) { + output.WriteRawTag(133, 1); + output.WriteFloat(ProgressTimeWhenUse); + } + if (HasShowHintWhenUse) { + output.WriteRawTag(136, 1); + output.WriteBool(ShowHintWhenUse); + } + if (HasDroppable) { + output.WriteRawTag(144, 1); + output.WriteBool(Droppable); + } + if (HasPrice) { + output.WriteRawTag(152, 1); + output.WriteInt32(Price); + } + if (HasUseType) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) UseType); + } + if (HasLevelUpId) { + output.WriteRawTag(168, 1); + output.WriteInt32(LevelUpId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (HasQuantifier) { + output.WriteRawTag(98); + output.WriteString(Quantifier); + } + if (HasShowInBag) { + output.WriteRawTag(104); + output.WriteBool(ShowInBag); + } + if (HasMinShowLevel) { + output.WriteRawTag(112); + output.WriteInt32(MinShowLevel); + } + if (HasBatchUsable) { + output.WriteRawTag(120); + output.WriteBool(BatchUsable); + } + if (HasProgressTimeWhenUse) { + output.WriteRawTag(133, 1); + output.WriteFloat(ProgressTimeWhenUse); + } + if (HasShowHintWhenUse) { + output.WriteRawTag(136, 1); + output.WriteBool(ShowHintWhenUse); + } + if (HasDroppable) { + output.WriteRawTag(144, 1); + output.WriteBool(Droppable); + } + if (HasPrice) { + output.WriteRawTag(152, 1); + output.WriteInt32(Price); + } + if (HasUseType) { + output.WriteRawTag(160, 1); + output.WriteEnum((int) UseType); + } + if (HasLevelUpId) { + output.WriteRawTag(168, 1); + output.WriteInt32(LevelUpId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMajorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MajorType); + } + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasMaxPileNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxPileNum); + } + if (HasQuality) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } + if (HasIcon) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (HasIconBackgroud) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBackgroud); + } + if (HasIconMask) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconMask); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasShowOrder) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowOrder); + } + if (HasQuantifier) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Quantifier); + } + if (HasShowInBag) { + size += 1 + 1; + } + if (HasMinShowLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinShowLevel); + } + if (HasBatchUsable) { + size += 1 + 1; + } + if (HasProgressTimeWhenUse) { + size += 2 + 4; + } + if (HasShowHintWhenUse) { + size += 2 + 1; + } + if (HasDroppable) { + size += 2 + 1; + } + if (HasPrice) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (HasUseType) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) UseType); + } + if (HasLevelUpId) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LevelUpId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMajorType) { + MajorType = other.MajorType; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasMaxPileNum) { + MaxPileNum = other.MaxPileNum; + } + if (other.HasQuality) { + Quality = other.Quality; + } + if (other.HasIcon) { + Icon = other.Icon; + } + if (other.HasIconBackgroud) { + IconBackgroud = other.IconBackgroud; + } + if (other.HasIconMask) { + IconMask = other.IconMask; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasShowOrder) { + ShowOrder = other.ShowOrder; + } + if (other.HasQuantifier) { + Quantifier = other.Quantifier; + } + if (other.HasShowInBag) { + ShowInBag = other.ShowInBag; + } + if (other.HasMinShowLevel) { + MinShowLevel = other.MinShowLevel; + } + if (other.HasBatchUsable) { + BatchUsable = other.BatchUsable; + } + if (other.HasProgressTimeWhenUse) { + ProgressTimeWhenUse = other.ProgressTimeWhenUse; + } + if (other.HasShowHintWhenUse) { + ShowHintWhenUse = other.ShowHintWhenUse; + } + if (other.HasDroppable) { + Droppable = other.Droppable; + } + if (other.HasPrice) { + Price = other.Price; + } + if (other.HasUseType) { + UseType = other.UseType; + } + if (other.HasLevelUpId) { + LevelUpId = other.LevelUpId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + case 98: { + Quantifier = input.ReadString(); + break; + } + case 104: { + ShowInBag = input.ReadBool(); + break; + } + case 112: { + MinShowLevel = input.ReadInt32(); + break; + } + case 120: { + BatchUsable = input.ReadBool(); + break; + } + case 133: { + ProgressTimeWhenUse = input.ReadFloat(); + break; + } + case 136: { + ShowHintWhenUse = input.ReadBool(); + break; + } + case 144: { + Droppable = input.ReadBool(); + break; + } + case 152: { + Price = input.ReadInt32(); + break; + } + case 160: { + UseType = (global::Cfg.ItemEUseType) input.ReadEnum(); + break; + } + case 168: { + LevelUpId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + case 98: { + Quantifier = input.ReadString(); + break; + } + case 104: { + ShowInBag = input.ReadBool(); + break; + } + case 112: { + MinShowLevel = input.ReadInt32(); + break; + } + case 120: { + BatchUsable = input.ReadBool(); + break; + } + case 133: { + ProgressTimeWhenUse = input.ReadFloat(); + break; + } + case 136: { + ShowHintWhenUse = input.ReadBool(); + break; + } + case 144: { + Droppable = input.ReadBool(); + break; + } + case 152: { + Price = input.ReadInt32(); + break; + } + case 160: { + UseType = (global::Cfg.ItemEUseType) input.ReadEnum(); + break; + } + case 168: { + LevelUpId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItemFunction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItemFunction()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[82]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction(ItemItemFunction other) : this() { + _hasBits0 = other._hasBits0; + minorType_ = other.minorType_; + funcType_ = other.funcType_; + method_ = other.method_; + closeBagUi_ = other.closeBagUi_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemFunction Clone() { + return new ItemItemFunction(this); + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 1; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 1) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 1; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~1; + } + + /// Field number for the "func_type" field. + public const int FuncTypeFieldNumber = 2; + private readonly static global::Cfg.ItemEItemFunctionType FuncTypeDefaultValue = global::Cfg.ItemEItemFunctionType.ReplaceHandheld; + + private global::Cfg.ItemEItemFunctionType funcType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemFunctionType FuncType { + get { if ((_hasBits0 & 2) != 0) { return funcType_; } else { return FuncTypeDefaultValue; } } + set { + _hasBits0 |= 2; + funcType_ = value; + } + } + /// Gets whether the "func_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFuncType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "func_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFuncType() { + _hasBits0 &= ~2; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 3; + private readonly static string MethodDefaultValue = ""; + + private string method_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_ ?? MethodDefaultValue; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "method" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMethod { + get { return method_ != null; } + } + /// Clears the value of the "method" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMethod() { + method_ = null; + } + + /// Field number for the "close_bag_ui" field. + public const int CloseBagUiFieldNumber = 4; + private readonly static bool CloseBagUiDefaultValue = false; + + private bool closeBagUi_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CloseBagUi { + get { if ((_hasBits0 & 4) != 0) { return closeBagUi_; } else { return CloseBagUiDefaultValue; } } + set { + _hasBits0 |= 4; + closeBagUi_ = value; + } + } + /// Gets whether the "close_bag_ui" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCloseBagUi { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "close_bag_ui" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCloseBagUi() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItemFunction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItemFunction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinorType != other.MinorType) return false; + if (FuncType != other.FuncType) return false; + if (Method != other.Method) return false; + if (CloseBagUi != other.CloseBagUi) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasFuncType) hash ^= FuncType.GetHashCode(); + if (HasMethod) hash ^= Method.GetHashCode(); + if (HasCloseBagUi) hash ^= CloseBagUi.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMinorType) { + output.WriteRawTag(8); + output.WriteEnum((int) MinorType); + } + if (HasFuncType) { + output.WriteRawTag(16); + output.WriteEnum((int) FuncType); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasCloseBagUi) { + output.WriteRawTag(32); + output.WriteBool(CloseBagUi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMinorType) { + output.WriteRawTag(8); + output.WriteEnum((int) MinorType); + } + if (HasFuncType) { + output.WriteRawTag(16); + output.WriteEnum((int) FuncType); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasCloseBagUi) { + output.WriteRawTag(32); + output.WriteBool(CloseBagUi); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasFuncType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FuncType); + } + if (HasMethod) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + if (HasCloseBagUi) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItemFunction other) { + if (other == null) { + return; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasFuncType) { + FuncType = other.FuncType; + } + if (other.HasMethod) { + Method = other.Method; + } + if (other.HasCloseBagUi) { + CloseBagUi = other.CloseBagUi; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 16: { + FuncType = (global::Cfg.ItemEItemFunctionType) input.ReadEnum(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 32: { + CloseBagUi = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 16: { + FuncType = (global::Cfg.ItemEItemFunctionType) input.ReadEnum(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 32: { + CloseBagUi = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItemExtra : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItemExtra()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[83]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra(ItemItemExtra other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.TreasureBox: + TreasureBox = other.TreasureBox.Clone(); + break; + case ValueOneofCase.InteractionItem: + InteractionItem = other.InteractionItem.Clone(); + break; + case ValueOneofCase.Clothes: + Clothes = other.Clothes.Clone(); + break; + case ValueOneofCase.DesignDrawing: + DesignDrawing = other.DesignDrawing.Clone(); + break; + case ValueOneofCase.Dymmy: + Dymmy = other.Dymmy.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItemExtra Clone() { + return new ItemItemExtra(this); + } + + /// Field number for the "TreasureBox" field. + public const int TreasureBoxFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemTreasureBox TreasureBox { + get { return valueCase_ == ValueOneofCase.TreasureBox ? (global::Cfg.ItemTreasureBox) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TreasureBox; + } + } + + /// Field number for the "InteractionItem" field. + public const int InteractionItemFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemInteractionItem InteractionItem { + get { return valueCase_ == ValueOneofCase.InteractionItem ? (global::Cfg.ItemInteractionItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.InteractionItem; + } + } + + /// Field number for the "Clothes" field. + public const int ClothesFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemClothes Clothes { + get { return valueCase_ == ValueOneofCase.Clothes ? (global::Cfg.ItemClothes) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Clothes; + } + } + + /// Field number for the "DesignDrawing" field. + public const int DesignDrawingFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemDesignDrawing DesignDrawing { + get { return valueCase_ == ValueOneofCase.DesignDrawing ? (global::Cfg.ItemDesignDrawing) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DesignDrawing; + } + } + + /// Field number for the "Dymmy" field. + public const int DymmyFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemDymmy Dymmy { + get { return valueCase_ == ValueOneofCase.Dymmy ? (global::Cfg.ItemDymmy) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Dymmy; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + TreasureBox = 1, + InteractionItem = 2, + Clothes = 3, + DesignDrawing = 4, + Dymmy = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItemExtra); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItemExtra other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TreasureBox, other.TreasureBox)) return false; + if (!object.Equals(InteractionItem, other.InteractionItem)) return false; + if (!object.Equals(Clothes, other.Clothes)) return false; + if (!object.Equals(DesignDrawing, other.DesignDrawing)) return false; + if (!object.Equals(Dymmy, other.Dymmy)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.TreasureBox) hash ^= TreasureBox.GetHashCode(); + if (valueCase_ == ValueOneofCase.InteractionItem) hash ^= InteractionItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.Clothes) hash ^= Clothes.GetHashCode(); + if (valueCase_ == ValueOneofCase.DesignDrawing) hash ^= DesignDrawing.GetHashCode(); + if (valueCase_ == ValueOneofCase.Dymmy) hash ^= Dymmy.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.TreasureBox) { + output.WriteRawTag(10); + output.WriteMessage(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + output.WriteRawTag(18); + output.WriteMessage(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + output.WriteRawTag(26); + output.WriteMessage(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + output.WriteRawTag(34); + output.WriteMessage(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + output.WriteRawTag(42); + output.WriteMessage(Dymmy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.TreasureBox) { + output.WriteRawTag(10); + output.WriteMessage(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + output.WriteRawTag(18); + output.WriteMessage(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + output.WriteRawTag(26); + output.WriteMessage(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + output.WriteRawTag(34); + output.WriteMessage(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + output.WriteRawTag(42); + output.WriteMessage(Dymmy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.TreasureBox) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TreasureBox); + } + if (valueCase_ == ValueOneofCase.InteractionItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InteractionItem); + } + if (valueCase_ == ValueOneofCase.Clothes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Clothes); + } + if (valueCase_ == ValueOneofCase.DesignDrawing) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignDrawing); + } + if (valueCase_ == ValueOneofCase.Dymmy) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dymmy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItemExtra other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.TreasureBox: + if (TreasureBox == null) { + TreasureBox = new global::Cfg.ItemTreasureBox(); + } + TreasureBox.MergeFrom(other.TreasureBox); + break; + case ValueOneofCase.InteractionItem: + if (InteractionItem == null) { + InteractionItem = new global::Cfg.ItemInteractionItem(); + } + InteractionItem.MergeFrom(other.InteractionItem); + break; + case ValueOneofCase.Clothes: + if (Clothes == null) { + Clothes = new global::Cfg.ItemClothes(); + } + Clothes.MergeFrom(other.Clothes); + break; + case ValueOneofCase.DesignDrawing: + if (DesignDrawing == null) { + DesignDrawing = new global::Cfg.ItemDesignDrawing(); + } + DesignDrawing.MergeFrom(other.DesignDrawing); + break; + case ValueOneofCase.Dymmy: + if (Dymmy == null) { + Dymmy = new global::Cfg.ItemDymmy(); + } + Dymmy.MergeFrom(other.Dymmy); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ItemTreasureBox subBuilder = new global::Cfg.ItemTreasureBox(); + if (valueCase_ == ValueOneofCase.TreasureBox) { + subBuilder.MergeFrom(TreasureBox); + } + input.ReadMessage(subBuilder); + TreasureBox = subBuilder; + break; + } + case 18: { + global::Cfg.ItemInteractionItem subBuilder = new global::Cfg.ItemInteractionItem(); + if (valueCase_ == ValueOneofCase.InteractionItem) { + subBuilder.MergeFrom(InteractionItem); + } + input.ReadMessage(subBuilder); + InteractionItem = subBuilder; + break; + } + case 26: { + global::Cfg.ItemClothes subBuilder = new global::Cfg.ItemClothes(); + if (valueCase_ == ValueOneofCase.Clothes) { + subBuilder.MergeFrom(Clothes); + } + input.ReadMessage(subBuilder); + Clothes = subBuilder; + break; + } + case 34: { + global::Cfg.ItemDesignDrawing subBuilder = new global::Cfg.ItemDesignDrawing(); + if (valueCase_ == ValueOneofCase.DesignDrawing) { + subBuilder.MergeFrom(DesignDrawing); + } + input.ReadMessage(subBuilder); + DesignDrawing = subBuilder; + break; + } + case 42: { + global::Cfg.ItemDymmy subBuilder = new global::Cfg.ItemDymmy(); + if (valueCase_ == ValueOneofCase.Dymmy) { + subBuilder.MergeFrom(Dymmy); + } + input.ReadMessage(subBuilder); + Dymmy = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ItemTreasureBox subBuilder = new global::Cfg.ItemTreasureBox(); + if (valueCase_ == ValueOneofCase.TreasureBox) { + subBuilder.MergeFrom(TreasureBox); + } + input.ReadMessage(subBuilder); + TreasureBox = subBuilder; + break; + } + case 18: { + global::Cfg.ItemInteractionItem subBuilder = new global::Cfg.ItemInteractionItem(); + if (valueCase_ == ValueOneofCase.InteractionItem) { + subBuilder.MergeFrom(InteractionItem); + } + input.ReadMessage(subBuilder); + InteractionItem = subBuilder; + break; + } + case 26: { + global::Cfg.ItemClothes subBuilder = new global::Cfg.ItemClothes(); + if (valueCase_ == ValueOneofCase.Clothes) { + subBuilder.MergeFrom(Clothes); + } + input.ReadMessage(subBuilder); + Clothes = subBuilder; + break; + } + case 34: { + global::Cfg.ItemDesignDrawing subBuilder = new global::Cfg.ItemDesignDrawing(); + if (valueCase_ == ValueOneofCase.DesignDrawing) { + subBuilder.MergeFrom(DesignDrawing); + } + input.ReadMessage(subBuilder); + DesignDrawing = subBuilder; + break; + } + case 42: { + global::Cfg.ItemDymmy subBuilder = new global::Cfg.ItemDymmy(); + if (valueCase_ == ValueOneofCase.Dymmy) { + subBuilder.MergeFrom(Dymmy); + } + input.ReadMessage(subBuilder); + Dymmy = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTreasureBox : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTreasureBox()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[84]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox(ItemTreasureBox other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + keyItemId_ = other.keyItemId_; + openLevel_ = other.openLevel_ != null ? other.openLevel_.Clone() : null; + useOnObtain_ = other.useOnObtain_; + dropIds_ = other.dropIds_.Clone(); + chooseList_ = other.chooseList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTreasureBox Clone() { + return new ItemTreasureBox(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "key_item_id" field. + public const int KeyItemIdFieldNumber = 2; + private readonly static int KeyItemIdDefaultValue = 0; + + private int keyItemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyItemId { + get { if ((_hasBits0 & 2) != 0) { return keyItemId_; } else { return KeyItemIdDefaultValue; } } + set { + _hasBits0 |= 2; + keyItemId_ = value; + } + } + /// Gets whether the "key_item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyItemId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "key_item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyItemId() { + _hasBits0 &= ~2; + } + + /// Field number for the "open_level" field. + public const int OpenLevelFieldNumber = 3; + private global::Cfg.ConditionMinLevel openLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel OpenLevel { + get { return openLevel_; } + set { + openLevel_ = value; + } + } + + /// Field number for the "use_on_obtain" field. + public const int UseOnObtainFieldNumber = 4; + private readonly static bool UseOnObtainDefaultValue = false; + + private bool useOnObtain_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UseOnObtain { + get { if ((_hasBits0 & 4) != 0) { return useOnObtain_; } else { return UseOnObtainDefaultValue; } } + set { + _hasBits0 |= 4; + useOnObtain_ = value; + } + } + /// Gets whether the "use_on_obtain" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUseOnObtain { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "use_on_obtain" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUseOnObtain() { + _hasBits0 &= ~4; + } + + /// Field number for the "drop_ids" field. + public const int DropIdsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_dropIds_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField dropIds_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DropIds { + get { return dropIds_; } + } + + /// Field number for the "choose_list" field. + public const int ChooseListFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_chooseList_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.ItemChooseOneBonus.Parser); + private readonly pbc::RepeatedField chooseList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChooseList { + get { return chooseList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTreasureBox); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTreasureBox other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (KeyItemId != other.KeyItemId) return false; + if (!object.Equals(OpenLevel, other.OpenLevel)) return false; + if (UseOnObtain != other.UseOnObtain) return false; + if(!dropIds_.Equals(other.dropIds_)) return false; + if(!chooseList_.Equals(other.chooseList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasKeyItemId) hash ^= KeyItemId.GetHashCode(); + if (openLevel_ != null) hash ^= OpenLevel.GetHashCode(); + if (HasUseOnObtain) hash ^= UseOnObtain.GetHashCode(); + hash ^= dropIds_.GetHashCode(); + hash ^= chooseList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasKeyItemId) { + output.WriteRawTag(16); + output.WriteInt32(KeyItemId); + } + if (openLevel_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OpenLevel); + } + if (HasUseOnObtain) { + output.WriteRawTag(32); + output.WriteBool(UseOnObtain); + } + dropIds_.WriteTo(output, _repeated_dropIds_codec); + chooseList_.WriteTo(output, _repeated_chooseList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasKeyItemId) { + output.WriteRawTag(16); + output.WriteInt32(KeyItemId); + } + if (openLevel_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OpenLevel); + } + if (HasUseOnObtain) { + output.WriteRawTag(32); + output.WriteBool(UseOnObtain); + } + dropIds_.WriteTo(ref output, _repeated_dropIds_codec); + chooseList_.WriteTo(ref output, _repeated_chooseList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasKeyItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyItemId); + } + if (openLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OpenLevel); + } + if (HasUseOnObtain) { + size += 1 + 1; + } + size += dropIds_.CalculateSize(_repeated_dropIds_codec); + size += chooseList_.CalculateSize(_repeated_chooseList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTreasureBox other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasKeyItemId) { + KeyItemId = other.KeyItemId; + } + if (other.openLevel_ != null) { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + OpenLevel.MergeFrom(other.OpenLevel); + } + if (other.HasUseOnObtain) { + UseOnObtain = other.UseOnObtain; + } + dropIds_.Add(other.dropIds_); + chooseList_.Add(other.chooseList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + KeyItemId = input.ReadInt32(); + break; + } + case 26: { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + input.ReadMessage(OpenLevel); + break; + } + case 32: { + UseOnObtain = input.ReadBool(); + break; + } + case 42: + case 40: { + dropIds_.AddEntriesFrom(input, _repeated_dropIds_codec); + break; + } + case 50: { + chooseList_.AddEntriesFrom(input, _repeated_chooseList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + KeyItemId = input.ReadInt32(); + break; + } + case 26: { + if (openLevel_ == null) { + OpenLevel = new global::Cfg.ConditionMinLevel(); + } + input.ReadMessage(OpenLevel); + break; + } + case 32: { + UseOnObtain = input.ReadBool(); + break; + } + case 42: + case 40: { + dropIds_.AddEntriesFrom(ref input, _repeated_dropIds_codec); + break; + } + case 50: { + chooseList_.AddEntriesFrom(ref input, _repeated_chooseList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[85]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition(ConditionCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.TimeRange: + TimeRange = other.TimeRange.Clone(); + break; + case ValueOneofCase.MultiRoleCondition: + MultiRoleCondition = other.MultiRoleCondition.Clone(); + break; + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + case ValueOneofCase.ContainsItem: + ContainsItem = other.ContainsItem.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionCondition Clone() { + return new ConditionCondition(this); + } + + /// Field number for the "TimeRange" field. + public const int TimeRangeFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange TimeRange { + get { return valueCase_ == ValueOneofCase.TimeRange ? (global::Cfg.ConditionTimeRange) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.TimeRange; + } + } + + /// Field number for the "MultiRoleCondition" field. + public const int MultiRoleConditionFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMultiRoleCondition MultiRoleCondition { + get { return valueCase_ == ValueOneofCase.MultiRoleCondition ? (global::Cfg.ConditionMultiRoleCondition) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiRoleCondition; + } + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + /// Field number for the "ContainsItem" field. + public const int ContainsItemFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionContainsItem ContainsItem { + get { return valueCase_ == ValueOneofCase.ContainsItem ? (global::Cfg.ConditionContainsItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ContainsItem; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + TimeRange = 1, + MultiRoleCondition = 2, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + ContainsItem = 8, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TimeRange, other.TimeRange)) return false; + if (!object.Equals(MultiRoleCondition, other.MultiRoleCondition)) return false; + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (!object.Equals(ContainsItem, other.ContainsItem)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.TimeRange) hash ^= TimeRange.GetHashCode(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) hash ^= MultiRoleCondition.GetHashCode(); + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.ContainsItem) hash ^= ContainsItem.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.TimeRange) { + output.WriteRawTag(10); + output.WriteMessage(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.TimeRange) { + output.WriteRawTag(10); + output.WriteMessage(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.TimeRange) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeRange); + } + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainsItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.TimeRange: + if (TimeRange == null) { + TimeRange = new global::Cfg.ConditionTimeRange(); + } + TimeRange.MergeFrom(other.TimeRange); + break; + case ValueOneofCase.MultiRoleCondition: + if (MultiRoleCondition == null) { + MultiRoleCondition = new global::Cfg.ConditionMultiRoleCondition(); + } + MultiRoleCondition.MergeFrom(other.MultiRoleCondition); + break; + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + case ValueOneofCase.ContainsItem: + if (ContainsItem == null) { + ContainsItem = new global::Cfg.ConditionContainsItem(); + } + ContainsItem.MergeFrom(other.ContainsItem); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.ConditionTimeRange subBuilder = new global::Cfg.ConditionTimeRange(); + if (valueCase_ == ValueOneofCase.TimeRange) { + subBuilder.MergeFrom(TimeRange); + } + input.ReadMessage(subBuilder); + TimeRange = subBuilder; + break; + } + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.ConditionTimeRange subBuilder = new global::Cfg.ConditionTimeRange(); + if (valueCase_ == ValueOneofCase.TimeRange) { + subBuilder.MergeFrom(TimeRange); + } + input.ReadMessage(subBuilder); + TimeRange = subBuilder; + break; + } + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionTimeRange()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[86]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange(ConditionTimeRange other) : this() { + dateTimeRange_ = other.dateTimeRange_ != null ? other.dateTimeRange_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionTimeRange Clone() { + return new ConditionTimeRange(this); + } + + /// Field number for the "date_time_range" field. + public const int DateTimeRangeFieldNumber = 1; + private global::Cfg.CommonDateTimeRange dateTimeRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CommonDateTimeRange DateTimeRange { + get { return dateTimeRange_; } + set { + dateTimeRange_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DateTimeRange, other.DateTimeRange)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (dateTimeRange_ != null) hash ^= DateTimeRange.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (dateTimeRange_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DateTimeRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (dateTimeRange_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DateTimeRange); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (dateTimeRange_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DateTimeRange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionTimeRange other) { + if (other == null) { + return; + } + if (other.dateTimeRange_ != null) { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + DateTimeRange.MergeFrom(other.DateTimeRange); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + input.ReadMessage(DateTimeRange); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (dateTimeRange_ == null) { + DateTimeRange = new global::Cfg.CommonDateTimeRange(); + } + input.ReadMessage(DateTimeRange); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[87]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange(CommonDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonDateTimeRange Clone() { + return new CommonDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static int StartTimeDefaultValue = 0; + + private int startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static int EndTimeDefaultValue = 0; + + private int endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[88]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition(ConditionRoleCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.MultiRoleCondition: + MultiRoleCondition = other.MultiRoleCondition.Clone(); + break; + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + case ValueOneofCase.ContainsItem: + ContainsItem = other.ContainsItem.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionRoleCondition Clone() { + return new ConditionRoleCondition(this); + } + + /// Field number for the "MultiRoleCondition" field. + public const int MultiRoleConditionFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMultiRoleCondition MultiRoleCondition { + get { return valueCase_ == ValueOneofCase.MultiRoleCondition ? (global::Cfg.ConditionMultiRoleCondition) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MultiRoleCondition; + } + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + /// Field number for the "ContainsItem" field. + public const int ContainsItemFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionContainsItem ContainsItem { + get { return valueCase_ == ValueOneofCase.ContainsItem ? (global::Cfg.ConditionContainsItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ContainsItem; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + MultiRoleCondition = 2, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + ContainsItem = 8, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MultiRoleCondition, other.MultiRoleCondition)) return false; + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (!object.Equals(ContainsItem, other.ContainsItem)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.MultiRoleCondition) hash ^= MultiRoleCondition.GetHashCode(); + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.ContainsItem) hash ^= ContainsItem.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + output.WriteRawTag(18); + output.WriteMessage(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + output.WriteRawTag(66); + output.WriteMessage(ContainsItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiRoleCondition); + } + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (valueCase_ == ValueOneofCase.ContainsItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContainsItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionRoleCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.MultiRoleCondition: + if (MultiRoleCondition == null) { + MultiRoleCondition = new global::Cfg.ConditionMultiRoleCondition(); + } + MultiRoleCondition.MergeFrom(other.MultiRoleCondition); + break; + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + case ValueOneofCase.ContainsItem: + if (ContainsItem == null) { + ContainsItem = new global::Cfg.ConditionContainsItem(); + } + ContainsItem.MergeFrom(other.ContainsItem); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.ConditionMultiRoleCondition subBuilder = new global::Cfg.ConditionMultiRoleCondition(); + if (valueCase_ == ValueOneofCase.MultiRoleCondition) { + subBuilder.MergeFrom(MultiRoleCondition); + } + input.ReadMessage(subBuilder); + MultiRoleCondition = subBuilder; + break; + } + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + case 66: { + global::Cfg.ConditionContainsItem subBuilder = new global::Cfg.ConditionContainsItem(); + if (valueCase_ == ValueOneofCase.ContainsItem) { + subBuilder.MergeFrom(ContainsItem); + } + input.ReadMessage(subBuilder); + ContainsItem = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMultiRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMultiRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[89]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition(ConditionMultiRoleCondition other) : this() { + conditions_ = other.conditions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMultiRoleCondition Clone() { + return new ConditionMultiRoleCondition(this); + } + + /// Field number for the "conditions" field. + public const int ConditionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_conditions_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ConditionRoleCondition.Parser); + private readonly pbc::RepeatedField conditions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Conditions { + get { return conditions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMultiRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMultiRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!conditions_.Equals(other.conditions_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= conditions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + conditions_.WriteTo(output, _repeated_conditions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + conditions_.WriteTo(ref output, _repeated_conditions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += conditions_.CalculateSize(_repeated_conditions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMultiRoleCondition other) { + if (other == null) { + return; + } + conditions_.Add(other.conditions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + conditions_.AddEntriesFrom(input, _repeated_conditions_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + conditions_.AddEntriesFrom(ref input, _repeated_conditions_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionBoolRoleCondition : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionBoolRoleCondition()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[90]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition(ConditionBoolRoleCondition other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.GenderLimit: + GenderLimit = other.GenderLimit.Clone(); + break; + case ValueOneofCase.MinLevel: + MinLevel = other.MinLevel.Clone(); + break; + case ValueOneofCase.MaxLevel: + MaxLevel = other.MaxLevel.Clone(); + break; + case ValueOneofCase.MinMaxLevel: + MinMaxLevel = other.MinMaxLevel.Clone(); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + ClothesPropertyScoreGreaterThan = other.ClothesPropertyScoreGreaterThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionBoolRoleCondition Clone() { + return new ConditionBoolRoleCondition(this); + } + + /// Field number for the "GenderLimit" field. + public const int GenderLimitFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionGenderLimit GenderLimit { + get { return valueCase_ == ValueOneofCase.GenderLimit ? (global::Cfg.ConditionGenderLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GenderLimit; + } + } + + /// Field number for the "MinLevel" field. + public const int MinLevelFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinLevel MinLevel { + get { return valueCase_ == ValueOneofCase.MinLevel ? (global::Cfg.ConditionMinLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinLevel; + } + } + + /// Field number for the "MaxLevel" field. + public const int MaxLevelFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMaxLevel MaxLevel { + get { return valueCase_ == ValueOneofCase.MaxLevel ? (global::Cfg.ConditionMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MaxLevel; + } + } + + /// Field number for the "MinMaxLevel" field. + public const int MinMaxLevelFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return valueCase_ == ValueOneofCase.MinMaxLevel ? (global::Cfg.ConditionMinMaxLevel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MinMaxLevel; + } + } + + /// Field number for the "ClothesPropertyScoreGreaterThan" field. + public const int ClothesPropertyScoreGreaterThanFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionClothesPropertyScoreGreaterThan ClothesPropertyScoreGreaterThan { + get { return valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan ? (global::Cfg.ConditionClothesPropertyScoreGreaterThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ClothesPropertyScoreGreaterThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + GenderLimit = 3, + MinLevel = 4, + MaxLevel = 5, + MinMaxLevel = 6, + ClothesPropertyScoreGreaterThan = 7, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionBoolRoleCondition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionBoolRoleCondition other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GenderLimit, other.GenderLimit)) return false; + if (!object.Equals(MinLevel, other.MinLevel)) return false; + if (!object.Equals(MaxLevel, other.MaxLevel)) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(ClothesPropertyScoreGreaterThan, other.ClothesPropertyScoreGreaterThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.GenderLimit) hash ^= GenderLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinLevel) hash ^= MinLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MaxLevel) hash ^= MaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) hash ^= MinMaxLevel.GetHashCode(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) hash ^= ClothesPropertyScoreGreaterThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.GenderLimit) { + output.WriteRawTag(26); + output.WriteMessage(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + output.WriteRawTag(34); + output.WriteMessage(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + output.WriteRawTag(42); + output.WriteMessage(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + output.WriteRawTag(50); + output.WriteMessage(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + output.WriteRawTag(58); + output.WriteMessage(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.GenderLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenderLimit); + } + if (valueCase_ == ValueOneofCase.MinLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinLevel); + } + if (valueCase_ == ValueOneofCase.MaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxLevel); + } + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClothesPropertyScoreGreaterThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionBoolRoleCondition other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.GenderLimit: + if (GenderLimit == null) { + GenderLimit = new global::Cfg.ConditionGenderLimit(); + } + GenderLimit.MergeFrom(other.GenderLimit); + break; + case ValueOneofCase.MinLevel: + if (MinLevel == null) { + MinLevel = new global::Cfg.ConditionMinLevel(); + } + MinLevel.MergeFrom(other.MinLevel); + break; + case ValueOneofCase.MaxLevel: + if (MaxLevel == null) { + MaxLevel = new global::Cfg.ConditionMaxLevel(); + } + MaxLevel.MergeFrom(other.MaxLevel); + break; + case ValueOneofCase.MinMaxLevel: + if (MinMaxLevel == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + break; + case ValueOneofCase.ClothesPropertyScoreGreaterThan: + if (ClothesPropertyScoreGreaterThan == null) { + ClothesPropertyScoreGreaterThan = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + } + ClothesPropertyScoreGreaterThan.MergeFrom(other.ClothesPropertyScoreGreaterThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 26: { + global::Cfg.ConditionGenderLimit subBuilder = new global::Cfg.ConditionGenderLimit(); + if (valueCase_ == ValueOneofCase.GenderLimit) { + subBuilder.MergeFrom(GenderLimit); + } + input.ReadMessage(subBuilder); + GenderLimit = subBuilder; + break; + } + case 34: { + global::Cfg.ConditionMinLevel subBuilder = new global::Cfg.ConditionMinLevel(); + if (valueCase_ == ValueOneofCase.MinLevel) { + subBuilder.MergeFrom(MinLevel); + } + input.ReadMessage(subBuilder); + MinLevel = subBuilder; + break; + } + case 42: { + global::Cfg.ConditionMaxLevel subBuilder = new global::Cfg.ConditionMaxLevel(); + if (valueCase_ == ValueOneofCase.MaxLevel) { + subBuilder.MergeFrom(MaxLevel); + } + input.ReadMessage(subBuilder); + MaxLevel = subBuilder; + break; + } + case 50: { + global::Cfg.ConditionMinMaxLevel subBuilder = new global::Cfg.ConditionMinMaxLevel(); + if (valueCase_ == ValueOneofCase.MinMaxLevel) { + subBuilder.MergeFrom(MinMaxLevel); + } + input.ReadMessage(subBuilder); + MinMaxLevel = subBuilder; + break; + } + case 58: { + global::Cfg.ConditionClothesPropertyScoreGreaterThan subBuilder = new global::Cfg.ConditionClothesPropertyScoreGreaterThan(); + if (valueCase_ == ValueOneofCase.ClothesPropertyScoreGreaterThan) { + subBuilder.MergeFrom(ClothesPropertyScoreGreaterThan); + } + input.ReadMessage(subBuilder); + ClothesPropertyScoreGreaterThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionGenderLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionGenderLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[91]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit(ConditionGenderLimit other) : this() { + _hasBits0 = other._hasBits0; + gender_ = other.gender_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionGenderLimit Clone() { + return new ConditionGenderLimit(this); + } + + /// Field number for the "gender" field. + public const int GenderFieldNumber = 1; + private readonly static global::Cfg.RoleEGenderType GenderDefaultValue = global::Cfg.RoleEGenderType.Male; + + private global::Cfg.RoleEGenderType gender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.RoleEGenderType Gender { + get { if ((_hasBits0 & 1) != 0) { return gender_; } else { return GenderDefaultValue; } } + set { + _hasBits0 |= 1; + gender_ = value; + } + } + /// Gets whether the "gender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasGender { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "gender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearGender() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionGenderLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionGenderLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Gender != other.Gender) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasGender) hash ^= Gender.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasGender) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasGender) { + output.WriteRawTag(8); + output.WriteEnum((int) Gender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasGender) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Gender); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionGenderLimit other) { + if (other == null) { + return; + } + if (other.HasGender) { + Gender = other.Gender; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Gender = (global::Cfg.RoleEGenderType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Gender = (global::Cfg.RoleEGenderType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMinLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMinLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[92]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel(ConditionMinLevel other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinLevel Clone() { + return new ConditionMinLevel(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMinLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMinLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMinLevel other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMaxLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMaxLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[93]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel(ConditionMaxLevel other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMaxLevel Clone() { + return new ConditionMaxLevel(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMaxLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMaxLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMaxLevel other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionMinMaxLevel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionMinMaxLevel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[94]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel(ConditionMinMaxLevel other) : this() { + _hasBits0 = other._hasBits0; + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionMinMaxLevel Clone() { + return new ConditionMinMaxLevel(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private readonly static int MinDefaultValue = 0; + + private int min_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Min { + get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } } + set { + _hasBits0 |= 1; + min_ = value; + } + } + /// Gets whether the "min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private readonly static int MaxDefaultValue = 0; + + private int max_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Max { + get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } } + set { + _hasBits0 |= 2; + max_ = value; + } + } + /// Gets whether the "max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionMinMaxLevel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionMinMaxLevel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Min != other.Min) return false; + if (Max != other.Max) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMin) hash ^= Min.GetHashCode(); + if (HasMax) hash ^= Max.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt32(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt32(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt32(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt32(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMin) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Min); + } + if (HasMax) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Max); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionMinMaxLevel other) { + if (other == null) { + return; + } + if (other.HasMin) { + Min = other.Min; + } + if (other.HasMax) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Min = input.ReadInt32(); + break; + } + case 16: { + Max = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Min = input.ReadInt32(); + break; + } + case 16: { + Max = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionClothesPropertyScoreGreaterThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionClothesPropertyScoreGreaterThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[95]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan(ConditionClothesPropertyScoreGreaterThan other) : this() { + _hasBits0 = other._hasBits0; + prop_ = other.prop_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionClothesPropertyScoreGreaterThan Clone() { + return new ConditionClothesPropertyScoreGreaterThan(this); + } + + /// Field number for the "prop" field. + public const int PropFieldNumber = 1; + private readonly static global::Cfg.ItemEClothesPropertyType PropDefaultValue = global::Cfg.ItemEClothesPropertyType.JianYue; + + private global::Cfg.ItemEClothesPropertyType prop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEClothesPropertyType Prop { + get { if ((_hasBits0 & 1) != 0) { return prop_; } else { return PropDefaultValue; } } + set { + _hasBits0 |= 1; + prop_ = value; + } + } + /// Gets whether the "prop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "prop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProp() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionClothesPropertyScoreGreaterThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionClothesPropertyScoreGreaterThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Prop != other.Prop) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasProp) hash ^= Prop.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasProp) { + output.WriteRawTag(8); + output.WriteEnum((int) Prop); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasProp) { + output.WriteRawTag(8); + output.WriteEnum((int) Prop); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasProp) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Prop); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionClothesPropertyScoreGreaterThan other) { + if (other == null) { + return; + } + if (other.HasProp) { + Prop = other.Prop; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Prop = (global::Cfg.ItemEClothesPropertyType) input.ReadEnum(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Prop = (global::Cfg.ItemEClothesPropertyType) input.ReadEnum(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConditionContainsItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConditionContainsItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[96]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem(ConditionContainsItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + num_ = other.num_; + reverse_ = other.reverse_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConditionContainsItem Clone() { + return new ConditionContainsItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "reverse" field. + public const int ReverseFieldNumber = 3; + private readonly static bool ReverseDefaultValue = false; + + private bool reverse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Reverse { + get { if ((_hasBits0 & 4) != 0) { return reverse_; } else { return ReverseDefaultValue; } } + set { + _hasBits0 |= 4; + reverse_ = value; + } + } + /// Gets whether the "reverse" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverse { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "reverse" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverse() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConditionContainsItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConditionContainsItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Num != other.Num) return false; + if (Reverse != other.Reverse) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasReverse) hash ^= Reverse.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasReverse) { + output.WriteRawTag(24); + output.WriteBool(Reverse); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (HasReverse) { + output.WriteRawTag(24); + output.WriteBool(Reverse); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasReverse) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConditionContainsItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasReverse) { + Reverse = other.Reverse; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Reverse = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + case 24: { + Reverse = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemChooseOneBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemChooseOneBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[97]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus(ItemChooseOneBonus other) : this() { + _hasBits0 = other._hasBits0; + dropId_ = other.dropId_; + isUnique_ = other.isUnique_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemChooseOneBonus Clone() { + return new ItemChooseOneBonus(this); + } + + /// Field number for the "drop_id" field. + public const int DropIdFieldNumber = 1; + private readonly static int DropIdDefaultValue = 0; + + private int dropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DropId { + get { if ((_hasBits0 & 1) != 0) { return dropId_; } else { return DropIdDefaultValue; } } + set { + _hasBits0 |= 1; + dropId_ = value; + } + } + /// Gets whether the "drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDropId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDropId() { + _hasBits0 &= ~1; + } + + /// Field number for the "is_unique" field. + public const int IsUniqueFieldNumber = 2; + private readonly static bool IsUniqueDefaultValue = false; + + private bool isUnique_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnique { + get { if ((_hasBits0 & 2) != 0) { return isUnique_; } else { return IsUniqueDefaultValue; } } + set { + _hasBits0 |= 2; + isUnique_ = value; + } + } + /// Gets whether the "is_unique" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsUnique { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "is_unique" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsUnique() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemChooseOneBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemChooseOneBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DropId != other.DropId) return false; + if (IsUnique != other.IsUnique) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasDropId) hash ^= DropId.GetHashCode(); + if (HasIsUnique) hash ^= IsUnique.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasDropId) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (HasIsUnique) { + output.WriteRawTag(16); + output.WriteBool(IsUnique); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasDropId) { + output.WriteRawTag(8); + output.WriteInt32(DropId); + } + if (HasIsUnique) { + output.WriteRawTag(16); + output.WriteBool(IsUnique); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DropId); + } + if (HasIsUnique) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemChooseOneBonus other) { + if (other == null) { + return; + } + if (other.HasDropId) { + DropId = other.DropId; + } + if (other.HasIsUnique) { + IsUnique = other.IsUnique; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + IsUnique = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DropId = input.ReadInt32(); + break; + } + case 16: { + IsUnique = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemInteractionItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemInteractionItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[98]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem(ItemInteractionItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + attackNum_ = other.attackNum_; + holdingStaticMesh_ = other.holdingStaticMesh_; + holdingStaticMeshMat_ = other.holdingStaticMeshMat_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemInteractionItem Clone() { + return new ItemInteractionItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attack_num" field. + public const int AttackNumFieldNumber = 2; + private readonly static int AttackNumDefaultValue = 0; + + private int attackNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AttackNum { + get { if ((_hasBits0 & 2) != 0) { return attackNum_; } else { return AttackNumDefaultValue; } } + set { + _hasBits0 |= 2; + attackNum_ = value; + } + } + /// Gets whether the "attack_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttackNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attack_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttackNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "holding_static_mesh" field. + public const int HoldingStaticMeshFieldNumber = 3; + private readonly static string HoldingStaticMeshDefaultValue = ""; + + private string holdingStaticMesh_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HoldingStaticMesh { + get { return holdingStaticMesh_ ?? HoldingStaticMeshDefaultValue; } + set { + holdingStaticMesh_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "holding_static_mesh" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHoldingStaticMesh { + get { return holdingStaticMesh_ != null; } + } + /// Clears the value of the "holding_static_mesh" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHoldingStaticMesh() { + holdingStaticMesh_ = null; + } + + /// Field number for the "holding_static_mesh_mat" field. + public const int HoldingStaticMeshMatFieldNumber = 4; + private readonly static string HoldingStaticMeshMatDefaultValue = ""; + + private string holdingStaticMeshMat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HoldingStaticMeshMat { + get { return holdingStaticMeshMat_ ?? HoldingStaticMeshMatDefaultValue; } + set { + holdingStaticMeshMat_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "holding_static_mesh_mat" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHoldingStaticMeshMat { + get { return holdingStaticMeshMat_ != null; } + } + /// Clears the value of the "holding_static_mesh_mat" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHoldingStaticMeshMat() { + holdingStaticMeshMat_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemInteractionItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemInteractionItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AttackNum != other.AttackNum) return false; + if (HoldingStaticMesh != other.HoldingStaticMesh) return false; + if (HoldingStaticMeshMat != other.HoldingStaticMeshMat) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAttackNum) hash ^= AttackNum.GetHashCode(); + if (HasHoldingStaticMesh) hash ^= HoldingStaticMesh.GetHashCode(); + if (HasHoldingStaticMeshMat) hash ^= HoldingStaticMeshMat.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttackNum) { + output.WriteRawTag(16); + output.WriteInt32(AttackNum); + } + if (HasHoldingStaticMesh) { + output.WriteRawTag(26); + output.WriteString(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + output.WriteRawTag(34); + output.WriteString(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttackNum) { + output.WriteRawTag(16); + output.WriteInt32(AttackNum); + } + if (HasHoldingStaticMesh) { + output.WriteRawTag(26); + output.WriteString(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + output.WriteRawTag(34); + output.WriteString(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAttackNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AttackNum); + } + if (HasHoldingStaticMesh) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HoldingStaticMesh); + } + if (HasHoldingStaticMeshMat) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HoldingStaticMeshMat); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemInteractionItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAttackNum) { + AttackNum = other.AttackNum; + } + if (other.HasHoldingStaticMesh) { + HoldingStaticMesh = other.HoldingStaticMesh; + } + if (other.HasHoldingStaticMeshMat) { + HoldingStaticMeshMat = other.HoldingStaticMeshMat; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttackNum = input.ReadInt32(); + break; + } + case 26: { + HoldingStaticMesh = input.ReadString(); + break; + } + case 34: { + HoldingStaticMeshMat = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AttackNum = input.ReadInt32(); + break; + } + case 26: { + HoldingStaticMesh = input.ReadString(); + break; + } + case 34: { + HoldingStaticMeshMat = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemClothes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemClothes()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[99]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes(ItemClothes other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + attack_ = other.attack_; + hp_ = other.hp_; + energyLimit_ = other.energyLimit_; + energyResume_ = other.energyResume_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemClothes Clone() { + return new ItemClothes(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "attack" field. + public const int AttackFieldNumber = 2; + private readonly static int AttackDefaultValue = 0; + + private int attack_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attack { + get { if ((_hasBits0 & 2) != 0) { return attack_; } else { return AttackDefaultValue; } } + set { + _hasBits0 |= 2; + attack_ = value; + } + } + /// Gets whether the "attack" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttack { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attack" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttack() { + _hasBits0 &= ~2; + } + + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private readonly static long HpDefaultValue = 0L; + + private long hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Hp { + get { if ((_hasBits0 & 4) != 0) { return hp_; } else { return HpDefaultValue; } } + set { + _hasBits0 |= 4; + hp_ = value; + } + } + /// Gets whether the "hp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHp { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "hp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHp() { + _hasBits0 &= ~4; + } + + /// Field number for the "energy_limit" field. + public const int EnergyLimitFieldNumber = 4; + private readonly static int EnergyLimitDefaultValue = 0; + + private int energyLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyLimit { + get { if ((_hasBits0 & 8) != 0) { return energyLimit_; } else { return EnergyLimitDefaultValue; } } + set { + _hasBits0 |= 8; + energyLimit_ = value; + } + } + /// Gets whether the "energy_limit" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLimit { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "energy_limit" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLimit() { + _hasBits0 &= ~8; + } + + /// Field number for the "energy_resume" field. + public const int EnergyResumeFieldNumber = 5; + private readonly static int EnergyResumeDefaultValue = 0; + + private int energyResume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EnergyResume { + get { if ((_hasBits0 & 16) != 0) { return energyResume_; } else { return EnergyResumeDefaultValue; } } + set { + _hasBits0 |= 16; + energyResume_ = value; + } + } + /// Gets whether the "energy_resume" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyResume { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "energy_resume" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyResume() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemClothes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemClothes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Attack != other.Attack) return false; + if (Hp != other.Hp) return false; + if (EnergyLimit != other.EnergyLimit) return false; + if (EnergyResume != other.EnergyResume) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAttack) hash ^= Attack.GetHashCode(); + if (HasHp) hash ^= Hp.GetHashCode(); + if (HasEnergyLimit) hash ^= EnergyLimit.GetHashCode(); + if (HasEnergyResume) hash ^= EnergyResume.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttack) { + output.WriteRawTag(16); + output.WriteInt32(Attack); + } + if (HasHp) { + output.WriteRawTag(24); + output.WriteInt64(Hp); + } + if (HasEnergyLimit) { + output.WriteRawTag(32); + output.WriteInt32(EnergyLimit); + } + if (HasEnergyResume) { + output.WriteRawTag(40); + output.WriteInt32(EnergyResume); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAttack) { + output.WriteRawTag(16); + output.WriteInt32(Attack); + } + if (HasHp) { + output.WriteRawTag(24); + output.WriteInt64(Hp); + } + if (HasEnergyLimit) { + output.WriteRawTag(32); + output.WriteInt32(EnergyLimit); + } + if (HasEnergyResume) { + output.WriteRawTag(40); + output.WriteInt32(EnergyResume); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAttack) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attack); + } + if (HasHp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Hp); + } + if (HasEnergyLimit) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyLimit); + } + if (HasEnergyResume) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EnergyResume); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemClothes other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAttack) { + Attack = other.Attack; + } + if (other.HasHp) { + Hp = other.Hp; + } + if (other.HasEnergyLimit) { + EnergyLimit = other.EnergyLimit; + } + if (other.HasEnergyResume) { + EnergyResume = other.EnergyResume; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attack = input.ReadInt32(); + break; + } + case 24: { + Hp = input.ReadInt64(); + break; + } + case 32: { + EnergyLimit = input.ReadInt32(); + break; + } + case 40: { + EnergyResume = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Attack = input.ReadInt32(); + break; + } + case 24: { + Hp = input.ReadInt64(); + break; + } + case 32: { + EnergyLimit = input.ReadInt32(); + break; + } + case 40: { + EnergyResume = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemDesignDrawing : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemDesignDrawing()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[100]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing(ItemDesignDrawing other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + learnComponentId_ = other.learnComponentId_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDesignDrawing Clone() { + return new ItemDesignDrawing(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "learn_component_id" field. + public const int LearnComponentIdFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_learnComponentId_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField learnComponentId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LearnComponentId { + get { return learnComponentId_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemDesignDrawing); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemDesignDrawing other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!learnComponentId_.Equals(other.learnComponentId_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= learnComponentId_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + learnComponentId_.WriteTo(output, _repeated_learnComponentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + learnComponentId_.WriteTo(ref output, _repeated_learnComponentId_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += learnComponentId_.CalculateSize(_repeated_learnComponentId_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemDesignDrawing other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + learnComponentId_.Add(other.learnComponentId_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + learnComponentId_.AddEntriesFrom(input, _repeated_learnComponentId_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + learnComponentId_.AddEntriesFrom(ref input, _repeated_learnComponentId_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemDymmy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemDymmy()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[101]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy(ItemDymmy other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + cost_ = other.cost_ != null ? other.cost_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemDymmy Clone() { + return new ItemDymmy(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "cost" field. + public const int CostFieldNumber = 2; + private global::Cfg.CostCost cost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCost Cost { + get { return cost_; } + set { + cost_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemDymmy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemDymmy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Cost, other.Cost)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (cost_ != null) hash ^= Cost.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (cost_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Cost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (cost_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Cost); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (cost_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cost); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemDymmy other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.cost_ != null) { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + Cost.MergeFrom(other.Cost); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + input.ReadMessage(Cost); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (cost_ == null) { + Cost = new global::Cfg.CostCost(); + } + input.ReadMessage(Cost); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCost : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCost()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[102]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost(CostCost other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.CostCurrency: + CostCurrency = other.CostCurrency.Clone(); + break; + case ValueOneofCase.CostCurrencies: + CostCurrencies = other.CostCurrencies.Clone(); + break; + case ValueOneofCase.CostOneItem: + CostOneItem = other.CostOneItem.Clone(); + break; + case ValueOneofCase.CostItem: + CostItem = other.CostItem.Clone(); + break; + case ValueOneofCase.CostItems: + CostItems = other.CostItems.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCost Clone() { + return new CostCost(this); + } + + /// Field number for the "CostCurrency" field. + public const int CostCurrencyFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostCurrency CostCurrency { + get { return valueCase_ == ValueOneofCase.CostCurrency ? (global::Cfg.CostCostCurrency) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostCurrency; + } + } + + /// Field number for the "CostCurrencies" field. + public const int CostCurrenciesFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostCurrencies CostCurrencies { + get { return valueCase_ == ValueOneofCase.CostCurrencies ? (global::Cfg.CostCostCurrencies) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostCurrencies; + } + } + + /// Field number for the "CostOneItem" field. + public const int CostOneItemFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostOneItem CostOneItem { + get { return valueCase_ == ValueOneofCase.CostOneItem ? (global::Cfg.CostCostOneItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostOneItem; + } + } + + /// Field number for the "CostItem" field. + public const int CostItemFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostItem CostItem { + get { return valueCase_ == ValueOneofCase.CostItem ? (global::Cfg.CostCostItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostItem; + } + } + + /// Field number for the "CostItems" field. + public const int CostItemsFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.CostCostItems CostItems { + get { return valueCase_ == ValueOneofCase.CostItems ? (global::Cfg.CostCostItems) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.CostItems; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + CostCurrency = 1, + CostCurrencies = 2, + CostOneItem = 3, + CostItem = 4, + CostItems = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCost); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCost other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CostCurrency, other.CostCurrency)) return false; + if (!object.Equals(CostCurrencies, other.CostCurrencies)) return false; + if (!object.Equals(CostOneItem, other.CostOneItem)) return false; + if (!object.Equals(CostItem, other.CostItem)) return false; + if (!object.Equals(CostItems, other.CostItems)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.CostCurrency) hash ^= CostCurrency.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostCurrencies) hash ^= CostCurrencies.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostOneItem) hash ^= CostOneItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostItem) hash ^= CostItem.GetHashCode(); + if (valueCase_ == ValueOneofCase.CostItems) hash ^= CostItems.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.CostCurrency) { + output.WriteRawTag(10); + output.WriteMessage(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + output.WriteRawTag(18); + output.WriteMessage(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + output.WriteRawTag(26); + output.WriteMessage(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + output.WriteRawTag(34); + output.WriteMessage(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + output.WriteRawTag(42); + output.WriteMessage(CostItems); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.CostCurrency) { + output.WriteRawTag(10); + output.WriteMessage(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + output.WriteRawTag(18); + output.WriteMessage(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + output.WriteRawTag(26); + output.WriteMessage(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + output.WriteRawTag(34); + output.WriteMessage(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + output.WriteRawTag(42); + output.WriteMessage(CostItems); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.CostCurrency) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostCurrency); + } + if (valueCase_ == ValueOneofCase.CostCurrencies) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostCurrencies); + } + if (valueCase_ == ValueOneofCase.CostOneItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostOneItem); + } + if (valueCase_ == ValueOneofCase.CostItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostItem); + } + if (valueCase_ == ValueOneofCase.CostItems) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostItems); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCost other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.CostCurrency: + if (CostCurrency == null) { + CostCurrency = new global::Cfg.CostCostCurrency(); + } + CostCurrency.MergeFrom(other.CostCurrency); + break; + case ValueOneofCase.CostCurrencies: + if (CostCurrencies == null) { + CostCurrencies = new global::Cfg.CostCostCurrencies(); + } + CostCurrencies.MergeFrom(other.CostCurrencies); + break; + case ValueOneofCase.CostOneItem: + if (CostOneItem == null) { + CostOneItem = new global::Cfg.CostCostOneItem(); + } + CostOneItem.MergeFrom(other.CostOneItem); + break; + case ValueOneofCase.CostItem: + if (CostItem == null) { + CostItem = new global::Cfg.CostCostItem(); + } + CostItem.MergeFrom(other.CostItem); + break; + case ValueOneofCase.CostItems: + if (CostItems == null) { + CostItems = new global::Cfg.CostCostItems(); + } + CostItems.MergeFrom(other.CostItems); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.CostCostCurrency subBuilder = new global::Cfg.CostCostCurrency(); + if (valueCase_ == ValueOneofCase.CostCurrency) { + subBuilder.MergeFrom(CostCurrency); + } + input.ReadMessage(subBuilder); + CostCurrency = subBuilder; + break; + } + case 18: { + global::Cfg.CostCostCurrencies subBuilder = new global::Cfg.CostCostCurrencies(); + if (valueCase_ == ValueOneofCase.CostCurrencies) { + subBuilder.MergeFrom(CostCurrencies); + } + input.ReadMessage(subBuilder); + CostCurrencies = subBuilder; + break; + } + case 26: { + global::Cfg.CostCostOneItem subBuilder = new global::Cfg.CostCostOneItem(); + if (valueCase_ == ValueOneofCase.CostOneItem) { + subBuilder.MergeFrom(CostOneItem); + } + input.ReadMessage(subBuilder); + CostOneItem = subBuilder; + break; + } + case 34: { + global::Cfg.CostCostItem subBuilder = new global::Cfg.CostCostItem(); + if (valueCase_ == ValueOneofCase.CostItem) { + subBuilder.MergeFrom(CostItem); + } + input.ReadMessage(subBuilder); + CostItem = subBuilder; + break; + } + case 42: { + global::Cfg.CostCostItems subBuilder = new global::Cfg.CostCostItems(); + if (valueCase_ == ValueOneofCase.CostItems) { + subBuilder.MergeFrom(CostItems); + } + input.ReadMessage(subBuilder); + CostItems = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.CostCostCurrency subBuilder = new global::Cfg.CostCostCurrency(); + if (valueCase_ == ValueOneofCase.CostCurrency) { + subBuilder.MergeFrom(CostCurrency); + } + input.ReadMessage(subBuilder); + CostCurrency = subBuilder; + break; + } + case 18: { + global::Cfg.CostCostCurrencies subBuilder = new global::Cfg.CostCostCurrencies(); + if (valueCase_ == ValueOneofCase.CostCurrencies) { + subBuilder.MergeFrom(CostCurrencies); + } + input.ReadMessage(subBuilder); + CostCurrencies = subBuilder; + break; + } + case 26: { + global::Cfg.CostCostOneItem subBuilder = new global::Cfg.CostCostOneItem(); + if (valueCase_ == ValueOneofCase.CostOneItem) { + subBuilder.MergeFrom(CostOneItem); + } + input.ReadMessage(subBuilder); + CostOneItem = subBuilder; + break; + } + case 34: { + global::Cfg.CostCostItem subBuilder = new global::Cfg.CostCostItem(); + if (valueCase_ == ValueOneofCase.CostItem) { + subBuilder.MergeFrom(CostItem); + } + input.ReadMessage(subBuilder); + CostItem = subBuilder; + break; + } + case 42: { + global::Cfg.CostCostItems subBuilder = new global::Cfg.CostCostItems(); + if (valueCase_ == ValueOneofCase.CostItems) { + subBuilder.MergeFrom(CostItems); + } + input.ReadMessage(subBuilder); + CostItems = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostCurrency : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostCurrency()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[103]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency(CostCostCurrency other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + num_ = other.num_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrency Clone() { + return new CostCostCurrency(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static global::Cfg.ItemECurrencyType TypeDefaultValue = global::Cfg.ItemECurrencyType.Diamond; + + private global::Cfg.ItemECurrencyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemECurrencyType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 2; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostCurrency); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostCurrency other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Num != other.Num) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasNum) { + output.WriteRawTag(16); + output.WriteInt32(Num); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostCurrency other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasNum) { + Num = other.Num; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 16: { + Num = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostCurrencies : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostCurrencies()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[104]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies(CostCostCurrencies other) : this() { + currencies_ = other.currencies_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostCurrencies Clone() { + return new CostCostCurrencies(this); + } + + /// Field number for the "currencies" field. + public const int CurrenciesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_currencies_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CostCostCurrency.Parser); + private readonly pbc::RepeatedField currencies_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Currencies { + get { return currencies_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostCurrencies); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostCurrencies other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!currencies_.Equals(other.currencies_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= currencies_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + currencies_.WriteTo(output, _repeated_currencies_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + currencies_.WriteTo(ref output, _repeated_currencies_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += currencies_.CalculateSize(_repeated_currencies_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostCurrencies other) { + if (other == null) { + return; + } + currencies_.Add(other.currencies_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + currencies_.AddEntriesFrom(input, _repeated_currencies_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + currencies_.AddEntriesFrom(ref input, _repeated_currencies_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostOneItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostOneItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[105]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem(CostCostOneItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostOneItem Clone() { + return new CostCostOneItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostOneItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostOneItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostOneItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[106]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem(CostCostItem other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItem Clone() { + return new CostCostItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "item_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "item_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private readonly static int AmountDefaultValue = 0; + + private int amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Amount { + get { if ((_hasBits0 & 2) != 0) { return amount_; } else { return AmountDefaultValue; } } + set { + _hasBits0 |= 2; + amount_ = value; + } + } + /// Gets whether the "amount" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAmount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "amount" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAmount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasAmount) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasAmount) { + output.WriteRawTag(16); + output.WriteInt32(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasAmount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostItem other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasAmount) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Amount = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CostCostItems : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostCostItems()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[107]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems(CostCostItems other) : this() { + itemList_ = other.itemList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CostCostItems Clone() { + return new CostCostItems(this); + } + + /// Field number for the "item_list" field. + public const int ItemListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_itemList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CostCostItem.Parser); + private readonly pbc::RepeatedField itemList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ItemList { + get { return itemList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CostCostItems); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CostCostItems other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!itemList_.Equals(other.itemList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= itemList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + itemList_.WriteTo(output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + itemList_.WriteTo(ref output, _repeated_itemList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += itemList_.CalculateSize(_repeated_itemList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CostCostItems other) { + if (other == null) { + return; + } + itemList_.Add(other.itemList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + itemList_.AddEntriesFrom(input, _repeated_itemList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[108]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo(L10nL10NDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo Clone() { + return new L10nL10NDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nL10NDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[109]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo(L10nPatchDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo Clone() { + return new L10nPatchDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nPatchDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailSystemMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailSystemMail()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[110]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail(MailSystemMail other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + title_ = other.title_; + sender_ = other.sender_; + content_ = other.content_; + award_ = other.award_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailSystemMail Clone() { + return new MailSystemMail(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private readonly static string TitleDefaultValue = ""; + + private string title_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_ ?? TitleDefaultValue; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "title" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTitle { + get { return title_ != null; } + } + /// Clears the value of the "title" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTitle() { + title_ = null; + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 3; + private readonly static string SenderDefaultValue = ""; + + private string sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sender { + get { return sender_ ?? SenderDefaultValue; } + set { + sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSender { + get { return sender_ != null; } + } + /// Clears the value of the "sender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSender() { + sender_ = null; + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 4; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "award" field. + public const int AwardFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_award_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField award_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Award { + get { return award_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailSystemMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailSystemMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Sender != other.Sender) return false; + if (Content != other.Content) return false; + if(!award_.Equals(other.award_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasTitle) hash ^= Title.GetHashCode(); + if (HasSender) hash ^= Sender.GetHashCode(); + if (HasContent) hash ^= Content.GetHashCode(); + hash ^= award_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(output, _repeated_award_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(ref output, _repeated_award_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasTitle) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HasSender) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); + } + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += award_.CalculateSize(_repeated_award_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailSystemMail other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasTitle) { + Title = other.Title; + } + if (other.HasSender) { + Sender = other.Sender; + } + if (other.HasContent) { + Content = other.Content; + } + award_.Add(other.award_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(input, _repeated_award_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(ref input, _repeated_award_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailGlobalMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailGlobalMail()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[111]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail(MailGlobalMail other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + title_ = other.title_; + sender_ = other.sender_; + content_ = other.content_; + award_ = other.award_.Clone(); + allServer_ = other.allServer_; + serverList_ = other.serverList_.Clone(); + platform_ = other.platform_; + channel_ = other.channel_; + minMaxLevel_ = other.minMaxLevel_ != null ? other.minMaxLevel_.Clone() : null; + registerTime_ = other.registerTime_ != null ? other.registerTime_.Clone() : null; + mailTime_ = other.mailTime_ != null ? other.mailTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailGlobalMail Clone() { + return new MailGlobalMail(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 2; + private readonly static string TitleDefaultValue = ""; + + private string title_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_ ?? TitleDefaultValue; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "title" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTitle { + get { return title_ != null; } + } + /// Clears the value of the "title" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTitle() { + title_ = null; + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 3; + private readonly static string SenderDefaultValue = ""; + + private string sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sender { + get { return sender_ ?? SenderDefaultValue; } + set { + sender_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSender { + get { return sender_ != null; } + } + /// Clears the value of the "sender" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSender() { + sender_ = null; + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 4; + private readonly static string ContentDefaultValue = ""; + + private string content_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_ ?? ContentDefaultValue; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "content" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasContent { + get { return content_ != null; } + } + /// Clears the value of the "content" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearContent() { + content_ = null; + } + + /// Field number for the "award" field. + public const int AwardFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_award_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField award_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Award { + get { return award_; } + } + + /// Field number for the "all_server" field. + public const int AllServerFieldNumber = 6; + private readonly static bool AllServerDefaultValue = false; + + private bool allServer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllServer { + get { if ((_hasBits0 & 2) != 0) { return allServer_; } else { return AllServerDefaultValue; } } + set { + _hasBits0 |= 2; + allServer_ = value; + } + } + /// Gets whether the "all_server" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAllServer { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "all_server" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAllServer() { + _hasBits0 &= ~2; + } + + /// Field number for the "server_list" field. + public const int ServerListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_serverList_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField serverList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServerList { + get { return serverList_; } + } + + /// Field number for the "platform" field. + public const int PlatformFieldNumber = 8; + private readonly static string PlatformDefaultValue = ""; + + private string platform_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Platform { + get { return platform_ ?? PlatformDefaultValue; } + set { + platform_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "platform" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlatform { + get { return platform_ != null; } + } + /// Clears the value of the "platform" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlatform() { + platform_ = null; + } + + /// Field number for the "channel" field. + public const int ChannelFieldNumber = 9; + private readonly static string ChannelDefaultValue = ""; + + private string channel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Channel { + get { return channel_ ?? ChannelDefaultValue; } + set { + channel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "channel" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasChannel { + get { return channel_ != null; } + } + /// Clears the value of the "channel" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearChannel() { + channel_ = null; + } + + /// Field number for the "min_max_level" field. + public const int MinMaxLevelFieldNumber = 10; + private global::Cfg.ConditionMinMaxLevel minMaxLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionMinMaxLevel MinMaxLevel { + get { return minMaxLevel_; } + set { + minMaxLevel_ = value; + } + } + + /// Field number for the "register_time" field. + public const int RegisterTimeFieldNumber = 11; + private global::Cfg.ConditionTimeRange registerTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange RegisterTime { + get { return registerTime_; } + set { + registerTime_ = value; + } + } + + /// Field number for the "mail_time" field. + public const int MailTimeFieldNumber = 12; + private global::Cfg.ConditionTimeRange mailTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ConditionTimeRange MailTime { + get { return mailTime_; } + set { + mailTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailGlobalMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailGlobalMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Title != other.Title) return false; + if (Sender != other.Sender) return false; + if (Content != other.Content) return false; + if(!award_.Equals(other.award_)) return false; + if (AllServer != other.AllServer) return false; + if(!serverList_.Equals(other.serverList_)) return false; + if (Platform != other.Platform) return false; + if (Channel != other.Channel) return false; + if (!object.Equals(MinMaxLevel, other.MinMaxLevel)) return false; + if (!object.Equals(RegisterTime, other.RegisterTime)) return false; + if (!object.Equals(MailTime, other.MailTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasTitle) hash ^= Title.GetHashCode(); + if (HasSender) hash ^= Sender.GetHashCode(); + if (HasContent) hash ^= Content.GetHashCode(); + hash ^= award_.GetHashCode(); + if (HasAllServer) hash ^= AllServer.GetHashCode(); + hash ^= serverList_.GetHashCode(); + if (HasPlatform) hash ^= Platform.GetHashCode(); + if (HasChannel) hash ^= Channel.GetHashCode(); + if (minMaxLevel_ != null) hash ^= MinMaxLevel.GetHashCode(); + if (registerTime_ != null) hash ^= RegisterTime.GetHashCode(); + if (mailTime_ != null) hash ^= MailTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(output, _repeated_award_codec); + if (HasAllServer) { + output.WriteRawTag(48); + output.WriteBool(AllServer); + } + serverList_.WriteTo(output, _repeated_serverList_codec); + if (HasPlatform) { + output.WriteRawTag(66); + output.WriteString(Platform); + } + if (HasChannel) { + output.WriteRawTag(74); + output.WriteString(Channel); + } + if (minMaxLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MinMaxLevel); + } + if (registerTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RegisterTime); + } + if (mailTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MailTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasTitle) { + output.WriteRawTag(18); + output.WriteString(Title); + } + if (HasSender) { + output.WriteRawTag(26); + output.WriteString(Sender); + } + if (HasContent) { + output.WriteRawTag(34); + output.WriteString(Content); + } + award_.WriteTo(ref output, _repeated_award_codec); + if (HasAllServer) { + output.WriteRawTag(48); + output.WriteBool(AllServer); + } + serverList_.WriteTo(ref output, _repeated_serverList_codec); + if (HasPlatform) { + output.WriteRawTag(66); + output.WriteString(Platform); + } + if (HasChannel) { + output.WriteRawTag(74); + output.WriteString(Channel); + } + if (minMaxLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(MinMaxLevel); + } + if (registerTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RegisterTime); + } + if (mailTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(MailTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasTitle) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (HasSender) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sender); + } + if (HasContent) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + size += award_.CalculateSize(_repeated_award_codec); + if (HasAllServer) { + size += 1 + 1; + } + size += serverList_.CalculateSize(_repeated_serverList_codec); + if (HasPlatform) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Platform); + } + if (HasChannel) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Channel); + } + if (minMaxLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinMaxLevel); + } + if (registerTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegisterTime); + } + if (mailTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MailTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailGlobalMail other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasTitle) { + Title = other.Title; + } + if (other.HasSender) { + Sender = other.Sender; + } + if (other.HasContent) { + Content = other.Content; + } + award_.Add(other.award_); + if (other.HasAllServer) { + AllServer = other.AllServer; + } + serverList_.Add(other.serverList_); + if (other.HasPlatform) { + Platform = other.Platform; + } + if (other.HasChannel) { + Channel = other.Channel; + } + if (other.minMaxLevel_ != null) { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + MinMaxLevel.MergeFrom(other.MinMaxLevel); + } + if (other.registerTime_ != null) { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + RegisterTime.MergeFrom(other.RegisterTime); + } + if (other.mailTime_ != null) { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + MailTime.MergeFrom(other.MailTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(input, _repeated_award_codec); + break; + } + case 48: { + AllServer = input.ReadBool(); + break; + } + case 58: + case 56: { + serverList_.AddEntriesFrom(input, _repeated_serverList_codec); + break; + } + case 66: { + Platform = input.ReadString(); + break; + } + case 74: { + Channel = input.ReadString(); + break; + } + case 82: { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + input.ReadMessage(MinMaxLevel); + break; + } + case 90: { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(RegisterTime); + break; + } + case 98: { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(MailTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Title = input.ReadString(); + break; + } + case 26: { + Sender = input.ReadString(); + break; + } + case 34: { + Content = input.ReadString(); + break; + } + case 42: + case 40: { + award_.AddEntriesFrom(ref input, _repeated_award_codec); + break; + } + case 48: { + AllServer = input.ReadBool(); + break; + } + case 58: + case 56: { + serverList_.AddEntriesFrom(ref input, _repeated_serverList_codec); + break; + } + case 66: { + Platform = input.ReadString(); + break; + } + case 74: { + Channel = input.ReadString(); + break; + } + case 82: { + if (minMaxLevel_ == null) { + MinMaxLevel = new global::Cfg.ConditionMinMaxLevel(); + } + input.ReadMessage(MinMaxLevel); + break; + } + case 90: { + if (registerTime_ == null) { + RegisterTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(RegisterTime); + break; + } + case 98: { + if (mailTime_ == null) { + MailTime = new global::Cfg.ConditionTimeRange(); + } + input.ReadMessage(MailTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleLevelExpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleLevelExpAttr()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[112]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr(RoleLevelExpAttr other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + needExp_ = other.needExp_; + clothesAttrs_ = other.clothesAttrs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelExpAttr Clone() { + return new RoleLevelExpAttr(this); + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private readonly static int LevelDefaultValue = 0; + + private int level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Level { + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } + set { + _hasBits0 |= 1; + level_ = value; + } + } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "need_exp" field. + public const int NeedExpFieldNumber = 2; + private readonly static long NeedExpDefaultValue = 0L; + + private long needExp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NeedExp { + get { if ((_hasBits0 & 2) != 0) { return needExp_; } else { return NeedExpDefaultValue; } } + set { + _hasBits0 |= 2; + needExp_ = value; + } + } + /// Gets whether the "need_exp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNeedExp { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "need_exp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNeedExp() { + _hasBits0 &= ~2; + } + + /// Field number for the "clothes_attrs" field. + public const int ClothesAttrsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_clothesAttrs_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField clothesAttrs_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClothesAttrs { + get { return clothesAttrs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleLevelExpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleLevelExpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Level != other.Level) return false; + if (NeedExp != other.NeedExp) return false; + if(!clothesAttrs_.Equals(other.clothesAttrs_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLevel) hash ^= Level.GetHashCode(); + if (HasNeedExp) hash ^= NeedExp.GetHashCode(); + hash ^= clothesAttrs_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (HasNeedExp) { + output.WriteRawTag(16); + output.WriteInt64(NeedExp); + } + clothesAttrs_.WriteTo(output, _repeated_clothesAttrs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasLevel) { + output.WriteRawTag(8); + output.WriteInt32(Level); + } + if (HasNeedExp) { + output.WriteRawTag(16); + output.WriteInt64(NeedExp); + } + clothesAttrs_.WriteTo(ref output, _repeated_clothesAttrs_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level); + } + if (HasNeedExp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NeedExp); + } + size += clothesAttrs_.CalculateSize(_repeated_clothesAttrs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleLevelExpAttr other) { + if (other == null) { + return; + } + if (other.HasLevel) { + Level = other.Level; + } + if (other.HasNeedExp) { + NeedExp = other.NeedExp; + } + clothesAttrs_.Add(other.clothesAttrs_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + case 16: { + NeedExp = input.ReadInt64(); + break; + } + case 26: + case 24: { + clothesAttrs_.AddEntriesFrom(input, _repeated_clothesAttrs_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Level = input.ReadInt32(); + break; + } + case 16: { + NeedExp = input.ReadInt64(); + break; + } + case 26: + case 24: { + clothesAttrs_.AddEntriesFrom(ref input, _repeated_clothesAttrs_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleLevelBonus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleLevelBonus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[113]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus(RoleLevelBonus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + distinctBonusInfos_ = other.distinctBonusInfos_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleLevelBonus Clone() { + return new RoleLevelBonus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "distinct_bonus_infos" field. + public const int DistinctBonusInfosFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_distinctBonusInfos_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.RoleDistinctBonusInfos.Parser); + private readonly pbc::RepeatedField distinctBonusInfos_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DistinctBonusInfos { + get { return distinctBonusInfos_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleLevelBonus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleLevelBonus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!distinctBonusInfos_.Equals(other.distinctBonusInfos_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= distinctBonusInfos_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + distinctBonusInfos_.WriteTo(output, _repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + distinctBonusInfos_.WriteTo(ref output, _repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += distinctBonusInfos_.CalculateSize(_repeated_distinctBonusInfos_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleLevelBonus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + distinctBonusInfos_.Add(other.distinctBonusInfos_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + distinctBonusInfos_.AddEntriesFrom(input, _repeated_distinctBonusInfos_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + distinctBonusInfos_.AddEntriesFrom(ref input, _repeated_distinctBonusInfos_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleDistinctBonusInfos : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleDistinctBonusInfos()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[114]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos(RoleDistinctBonusInfos other) : this() { + _hasBits0 = other._hasBits0; + effectiveLevel_ = other.effectiveLevel_; + bonusInfo_ = other.bonusInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleDistinctBonusInfos Clone() { + return new RoleDistinctBonusInfos(this); + } + + /// Field number for the "effective_level" field. + public const int EffectiveLevelFieldNumber = 1; + private readonly static int EffectiveLevelDefaultValue = 0; + + private int effectiveLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EffectiveLevel { + get { if ((_hasBits0 & 1) != 0) { return effectiveLevel_; } else { return EffectiveLevelDefaultValue; } } + set { + _hasBits0 |= 1; + effectiveLevel_ = value; + } + } + /// Gets whether the "effective_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEffectiveLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "effective_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEffectiveLevel() { + _hasBits0 &= ~1; + } + + /// Field number for the "bonus_info" field. + public const int BonusInfoFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_bonusInfo_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.RoleBonusInfo.Parser); + private readonly pbc::RepeatedField bonusInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField BonusInfo { + get { return bonusInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleDistinctBonusInfos); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleDistinctBonusInfos other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EffectiveLevel != other.EffectiveLevel) return false; + if(!bonusInfo_.Equals(other.bonusInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasEffectiveLevel) hash ^= EffectiveLevel.GetHashCode(); + hash ^= bonusInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasEffectiveLevel) { + output.WriteRawTag(8); + output.WriteInt32(EffectiveLevel); + } + bonusInfo_.WriteTo(output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasEffectiveLevel) { + output.WriteRawTag(8); + output.WriteInt32(EffectiveLevel); + } + bonusInfo_.WriteTo(ref output, _repeated_bonusInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasEffectiveLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectiveLevel); + } + size += bonusInfo_.CalculateSize(_repeated_bonusInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleDistinctBonusInfos other) { + if (other == null) { + return; + } + if (other.HasEffectiveLevel) { + EffectiveLevel = other.EffectiveLevel; + } + bonusInfo_.Add(other.bonusInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + EffectiveLevel = input.ReadInt32(); + break; + } + case 18: { + bonusInfo_.AddEntriesFrom(input, _repeated_bonusInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EffectiveLevel = input.ReadInt32(); + break; + } + case 18: { + bonusInfo_.AddEntriesFrom(ref input, _repeated_bonusInfo_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleBonusInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleBonusInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[115]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo(RoleBonusInfo other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + coefficient_ = other.coefficient_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleBonusInfo Clone() { + return new RoleBonusInfo(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static global::Cfg.ItemECurrencyType TypeDefaultValue = global::Cfg.ItemECurrencyType.Diamond; + + private global::Cfg.ItemECurrencyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemECurrencyType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "coefficient" field. + public const int CoefficientFieldNumber = 2; + private readonly static float CoefficientDefaultValue = 0F; + + private float coefficient_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Coefficient { + get { if ((_hasBits0 & 2) != 0) { return coefficient_; } else { return CoefficientDefaultValue; } } + set { + _hasBits0 |= 2; + coefficient_ = value; + } + } + /// Gets whether the "coefficient" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCoefficient { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "coefficient" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCoefficient() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleBonusInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleBonusInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Coefficient, other.Coefficient)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasCoefficient) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Coefficient); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasCoefficient) { + output.WriteRawTag(21); + output.WriteFloat(Coefficient); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (HasCoefficient) { + output.WriteRawTag(21); + output.WriteFloat(Coefficient); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasCoefficient) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleBonusInfo other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasCoefficient) { + Coefficient = other.Coefficient; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 21: { + Coefficient = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::Cfg.ItemECurrencyType) input.ReadEnum(); + break; + } + case 21: { + Coefficient = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTestTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[116]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag(TagTestTag other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag Clone() { + return new TagTestTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTestTag other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[117]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2(TestDemoType2 other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + x80_ = other.x80_; + x8_ = other.x8_; + x9_ = other.x9_; + x10_ = other.x10_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + s1_ = other.s1_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k5_ = other.k5_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2 Clone() { + return new TestDemoType2(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "x8_0" field. + public const int X80FieldNumber = 8; + private readonly static int X80DefaultValue = 0; + + private int x80_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X80 { + get { if ((_hasBits0 & 128) != 0) { return x80_; } else { return X80DefaultValue; } } + set { + _hasBits0 |= 128; + x80_ = value; + } + } + /// Gets whether the "x8_0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX80 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "x8_0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX80() { + _hasBits0 &= ~128; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 9; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 256) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 256; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~256; + } + + /// Field number for the "x9" field. + public const int X9FieldNumber = 10; + private readonly static long X9DefaultValue = 0L; + + private long x9_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X9 { + get { if ((_hasBits0 & 512) != 0) { return x9_; } else { return X9DefaultValue; } } + set { + _hasBits0 |= 512; + x9_ = value; + } + } + /// Gets whether the "x9" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX9 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "x9" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX9() { + _hasBits0 &= ~512; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 11; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 12; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 13; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 1024) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 1024; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~1024; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 14; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 15; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 16; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 17; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 18; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 19; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 2048) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 2048; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~2048; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 20; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(162); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 21; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(170); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k5" field. + public const int K5FieldNumber = 22; + private static readonly pb::FieldCodec _repeated_k5_codec + = pb::FieldCodec.ForInt32(178); + private readonly pbc::RepeatedField k5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K5 { + get { return k5_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 23; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 186); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 24; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(194, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 25; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(202, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (X80 != other.X80) return false; + if (X8 != other.X8) return false; + if (X9 != other.X9) return false; + if (X10 != other.X10) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (S1 != other.S1) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if(!k5_.Equals(other.k5_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasX80) hash ^= X80.GetHashCode(); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX9) hash ^= X9.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= k5_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(77); + output.WriteSFixed32(X8); + } + if (HasX9) { + output.WriteRawTag(81); + output.WriteSFixed64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (v2_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(152, 1); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k5_.WriteTo(output, _repeated_k5_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(77); + output.WriteSFixed32(X8); + } + if (HasX9) { + output.WriteRawTag(81); + output.WriteSFixed64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (v2_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(152, 1); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k5_.WriteTo(ref output, _repeated_k5_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasX80) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X80); + } + if (HasX8) { + size += 1 + 4; + } + if (HasX9) { + size += 1 + 8; + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (v2_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k5_.CalculateSize(_repeated_k5_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType2 other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasX80) { + X80 = other.X80; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX9) { + X9 = other.X9; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k5_.Add(other.k5_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 77: { + X8 = input.ReadSFixed32(); + break; + } + case 81: { + X9 = input.ReadSFixed64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 130: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 138: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 146: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 152: { + T1 = input.ReadInt32(); + break; + } + case 162: + case 160: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 170: + case 168: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 178: + case 176: { + k5_.AddEntriesFrom(input, _repeated_k5_codec); + break; + } + case 186: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 194: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 202: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 77: { + X8 = input.ReadSFixed32(); + break; + } + case 81: { + X9 = input.ReadSFixed64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 130: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 138: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 146: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 152: { + T1 = input.ReadInt32(); + break; + } + case 162: + case 160: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 170: + case 168: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 178: + case 176: { + k5_.AddEntriesFrom(ref input, _repeated_k5_codec); + break; + } + case 186: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 194: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 202: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[118]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1(TestDemoType1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1 Clone() { + return new TestDemoType1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoDynamic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoDynamic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[119]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic(TestDemoDynamic other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + DemoD2 = other.DemoD2.Clone(); + break; + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.DemoD5: + DemoD5 = other.DemoD5.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic Clone() { + return new TestDemoDynamic(this); + } + + /// Field number for the "DemoD2" field. + public const int DemoD2FieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD2 DemoD2 { + get { return valueCase_ == ValueOneofCase.DemoD2 ? (global::Cfg.TestDemoD2) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD2; + } + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "DemoD5" field. + public const int DemoD5FieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD5 DemoD5 { + get { return valueCase_ == ValueOneofCase.DemoD5 ? (global::Cfg.TestDemoD5) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD5; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoD2 = 1, + DemoE1 = 2, + DemoD5 = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoDynamic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoDynamic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoD2, other.DemoD2)) return false; + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(DemoD5, other.DemoD5)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoD2) hash ^= DemoD2.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoD5) hash ^= DemoD5.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(26); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(26); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoD2) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoDynamic other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + if (DemoD2 == null) { + DemoD2 = new global::Cfg.TestDemoD2(); + } + DemoD2.MergeFrom(other.DemoD2); + break; + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.DemoD5: + if (DemoD5 == null) { + DemoD5 = new global::Cfg.TestDemoD5(); + } + DemoD5.MergeFrom(other.DemoD5); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[120]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2(TestDemoD2 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2 Clone() { + return new TestDemoD2(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD2 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[121]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3(TestDemoD3 other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3 Clone() { + return new TestDemoD3(this); + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoE1 = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD3 other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[122]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1(TestDemoE1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1 Clone() { + return new TestDemoE1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 3; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD5 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD5()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[123]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5(TestDemoD5 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5 Clone() { + return new TestDemoD5(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Cfg.TestDateTimeRange time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDateTimeRange Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD5); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD5 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (!object.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD5 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + Time.MergeFrom(other.Time); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[124]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange(TestDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange Clone() { + return new TestDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static int StartTimeDefaultValue = 0; + + private int startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static int EndTimeDefaultValue = 0; + + private int endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt32(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt32(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt32(); + break; + } + case 16: { + EndTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[125]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2(TestDemoE2 other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2 Clone() { + return new TestDemoE2(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static bool Y2DefaultValue = false; + + private bool y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE2 other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoSingletonType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoSingletonType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[126]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType(TestDemoSingletonType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + date_ = other.date_ != null ? other.date_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType Clone() { + return new TestDemoSingletonType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 3; + private global::Cfg.TestDemoDynamic date_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic Date { + get { return date_; } + set { + date_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoSingletonType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoSingletonType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(Date, other.Date)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (date_ != null) hash ^= Date.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoSingletonType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + Date.MergeFrom(other.Date); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[127]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList(TestNotIndexList other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList Clone() { + return new TestNotIndexList(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestNotIndexList other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[128]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList(TestMultiUnionIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList Clone() { + return new TestMultiUnionIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiUnionIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[129]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList(TestMultiIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList Clone() { + return new TestMultiIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[130]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord(TestMultiRowRecord other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + oneRows_ = other.oneRows_.Clone(); + multiRows1_ = other.multiRows1_.Clone(); + multiRows2_ = other.multiRows2_.Clone(); + multiRows4_ = other.multiRows4_.Clone(); + multiRows5_ = other.multiRows5_.Clone(); + multiRows6_ = other.multiRows6_.Clone(); + multiRows7_ = other.multiRows7_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord Clone() { + return new TestMultiRowRecord(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "one_rows" field. + public const int OneRowsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_oneRows_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField oneRows_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OneRows { + get { return oneRows_; } + } + + /// Field number for the "multi_rows1" field. + public const int MultiRows1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_multiRows1_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows1 { + get { return multiRows1_; } + } + + /// Field number for the "multi_rows2" field. + public const int MultiRows2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_multiRows2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows2 { + get { return multiRows2_; } + } + + /// Field number for the "multi_rows4" field. + public const int MultiRows4FieldNumber = 6; + private static readonly pbc::MapField.Codec _map_multiRows4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 50); + private readonly pbc::MapField multiRows4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows4 { + get { return multiRows4_; } + } + + /// Field number for the "multi_rows5" field. + public const int MultiRows5FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_multiRows5_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestMultiRowType3.Parser); + private readonly pbc::RepeatedField multiRows5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows5 { + get { return multiRows5_; } + } + + /// Field number for the "multi_rows6" field. + public const int MultiRows6FieldNumber = 8; + private static readonly pbc::MapField.Codec _map_multiRows6_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 66); + private readonly pbc::MapField multiRows6_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows6 { + get { return multiRows6_; } + } + + /// Field number for the "multi_rows7" field. + public const int MultiRows7FieldNumber = 9; + private static readonly pbc::MapField.Codec _map_multiRows7_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 74); + private readonly pbc::MapField multiRows7_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows7 { + get { return multiRows7_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!oneRows_.Equals(other.oneRows_)) return false; + if(!multiRows1_.Equals(other.multiRows1_)) return false; + if(!multiRows2_.Equals(other.multiRows2_)) return false; + if (!MultiRows4.Equals(other.MultiRows4)) return false; + if(!multiRows5_.Equals(other.multiRows5_)) return false; + if (!MultiRows6.Equals(other.MultiRows6)) return false; + if (!MultiRows7.Equals(other.MultiRows7)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + hash ^= oneRows_.GetHashCode(); + hash ^= multiRows1_.GetHashCode(); + hash ^= multiRows2_.GetHashCode(); + hash ^= MultiRows4.GetHashCode(); + hash ^= multiRows5_.GetHashCode(); + hash ^= MultiRows6.GetHashCode(); + hash ^= MultiRows7.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(output, _repeated_oneRows_codec); + multiRows1_.WriteTo(output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(output, _map_multiRows4_codec); + multiRows5_.WriteTo(output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(output, _map_multiRows6_codec); + multiRows7_.WriteTo(output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(ref output, _repeated_oneRows_codec); + multiRows1_.WriteTo(ref output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(ref output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(ref output, _map_multiRows4_codec); + multiRows5_.WriteTo(ref output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(ref output, _map_multiRows6_codec); + multiRows7_.WriteTo(ref output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += oneRows_.CalculateSize(_repeated_oneRows_codec); + size += multiRows1_.CalculateSize(_repeated_multiRows1_codec); + size += multiRows2_.CalculateSize(_repeated_multiRows2_codec); + size += multiRows4_.CalculateSize(_map_multiRows4_codec); + size += multiRows5_.CalculateSize(_repeated_multiRows5_codec); + size += multiRows6_.CalculateSize(_map_multiRows6_codec); + size += multiRows7_.CalculateSize(_map_multiRows7_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowRecord other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + oneRows_.Add(other.oneRows_); + multiRows1_.Add(other.multiRows1_); + multiRows2_.Add(other.multiRows2_); + multiRows4_.Add(other.multiRows4_); + multiRows5_.Add(other.multiRows5_); + multiRows6_.Add(other.multiRows6_); + multiRows7_.Add(other.multiRows7_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(input, _map_multiRows7_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(ref input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(ref input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(ref input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(ref input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(ref input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(ref input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(ref input, _map_multiRows7_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[131]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1(TestMultiRowType1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1 Clone() { + return new TestMultiRowType1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[132]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2(TestMultiRowType2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2 Clone() { + return new TestMultiRowType2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[133]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3(TestMultiRowType3 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3 Clone() { + return new TestMultiRowType3(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType3 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[134]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle(TestMultiRowTitle other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x20_ = other.x20_ != null ? other.x20_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle Clone() { + return new TestMultiRowTitle(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2_0" field. + public const int X20FieldNumber = 4; + private global::Cfg.TestH2 x20_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 X20 { + get { return x20_; } + set { + x20_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(X1, other.X1)) return false; + if (!object.Equals(X20, other.X20)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + if (x20_ != null) hash ^= X20.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + if (x20_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X20); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowTitle other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + if (other.x20_ != null) { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + X20.MergeFrom(other.X20); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[135]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1(TestH1 other) : this() { + _hasBits0 = other._hasBits0; + y2_ = other.y2_ != null ? other.y2_.Clone() : null; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1 Clone() { + return new TestH1(this); + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 1; + private global::Cfg.TestH2 y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 Y2 { + get { return y2_; } + set { + y2_ = value; + } + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 2; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 1) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 1; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Y2, other.Y2)) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (y2_ != null) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (y2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH1 other) { + if (other == null) { + return; + } + if (other.y2_ != null) { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + Y2.MergeFrom(other.Y2); + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[136]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2(TestH2 other) : this() { + _hasBits0 = other._hasBits0; + z2_ = other.z2_; + z3_ = other.z3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2 Clone() { + return new TestH2(this); + } + + /// Field number for the "z2" field. + public const int Z2FieldNumber = 1; + private readonly static int Z2DefaultValue = 0; + + private int z2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z2 { + get { if ((_hasBits0 & 1) != 0) { return z2_; } else { return Z2DefaultValue; } } + set { + _hasBits0 |= 1; + z2_ = value; + } + } + /// Gets whether the "z2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ2 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "z2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ2() { + _hasBits0 &= ~1; + } + + /// Field number for the "z3" field. + public const int Z3FieldNumber = 2; + private readonly static int Z3DefaultValue = 0; + + private int z3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z3 { + get { if ((_hasBits0 & 2) != 0) { return z3_; } else { return Z3DefaultValue; } } + set { + _hasBits0 |= 2; + z3_ = value; + } + } + /// Gets whether the "z3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "z3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ3() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Z2 != other.Z2) return false; + if (Z3 != other.Z3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasZ2) hash ^= Z2.GetHashCode(); + if (HasZ3) hash ^= Z3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasZ2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z2); + } + if (HasZ3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH2 other) { + if (other == null) { + return; + } + if (other.HasZ2) { + Z2 = other.Z2; + } + if (other.HasZ3) { + Z3 = other.Z3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestNull()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[137]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull(TestTestNull other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_ != null ? other.x4_.Clone() : null; + s1_ = other.s1_; + s2_ = other.s2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull Clone() { + return new TestTestNull(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static global::Cfg.TestDemoEnum X2DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestDemoType1 x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private global::Cfg.TestDemoDynamic x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X4 { + get { return x4_; } + set { + x4_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 6; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 7; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (!object.Equals(X3, other.X3)) return false; + if (!object.Equals(X4, other.X4)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + if (x4_ != null) hash ^= X4.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + if (x4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X4); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestNull other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + X3.MergeFrom(other.X3); + } + if (other.x4_ != null) { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + X4.MergeFrom(other.X4); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoPrimitiveTypesTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoPrimitiveTypesTable()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[138]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable(TestDemoPrimitiveTypesTable other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable Clone() { + return new TestDemoPrimitiveTypesTable(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 4) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 4; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~4; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 8) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 8; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 8; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 9; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 10; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 11; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 12; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 13; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoPrimitiveTypesTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoPrimitiveTypesTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt32(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt32(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoPrimitiveTypesTable other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[139]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString(TestTestString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s1_ = other.s1_; + cs1_ = other.cs1_ != null ? other.cs1_.Clone() : null; + cs2_ = other.cs2_ != null ? other.cs2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString Clone() { + return new TestTestString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 2; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "cs1" field. + public const int Cs1FieldNumber = 3; + private global::Cfg.TestCompactString cs1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs1 { + get { return cs1_; } + set { + cs1_ = value; + } + } + + /// Field number for the "cs2" field. + public const int Cs2FieldNumber = 4; + private global::Cfg.TestCompactString cs2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs2 { + get { return cs2_; } + set { + cs2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S1 != other.S1) return false; + if (!object.Equals(Cs1, other.Cs1)) return false; + if (!object.Equals(Cs2, other.Cs2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (cs1_ != null) hash ^= Cs1.GetHashCode(); + if (cs2_ != null) hash ^= Cs2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (cs1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs1); + } + if (cs2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.cs1_ != null) { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + Cs1.MergeFrom(other.Cs1); + } + if (other.cs2_ != null) { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + Cs2.MergeFrom(other.Cs2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompactString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompactString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[140]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString(TestCompactString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s2_ = other.s2_; + s3_ = other.s3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString Clone() { + return new TestCompactString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 2; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "s3" field. + public const int S3FieldNumber = 3; + private readonly static string S3DefaultValue = ""; + + private string s3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S3 { + get { return s3_ ?? S3DefaultValue; } + set { + s3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS3 { + get { return s3_ != null; } + } + /// Clears the value of the "s3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS3() { + s3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompactString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompactString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S2 != other.S2) return false; + if (S3 != other.S3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasS3) hash ^= S3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasS3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompactString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasS3) { + S3 = other.S3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[141]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup(TestDemoGroup other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_ != null ? other.x5_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup Clone() { + return new TestDemoGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 16) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 16; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~16; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private global::Cfg.TestInnerGroup x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestInnerGroup X5 { + get { return x5_; } + set { + x5_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (!object.Equals(X5, other.X5)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (x5_ != null) hash ^= X5.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (x5_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoGroup other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.x5_ != null) { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + X5.MergeFrom(other.X5); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestInnerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestInnerGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[142]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup(TestInnerGroup other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + y4_ = other.y4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup Clone() { + return new TestInnerGroup(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + /// Field number for the "y4" field. + public const int Y4FieldNumber = 4; + private readonly static int Y4DefaultValue = 0; + + private int y4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y4 { + get { if ((_hasBits0 & 8) != 0) { return y4_; } else { return Y4DefaultValue; } } + set { + _hasBits0 |= 8; + y4_ = value; + } + } + /// Gets whether the "y4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "y4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY4() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestInnerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestInnerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + if (Y4 != other.Y4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (HasY4) hash ^= Y4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (HasY4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestInnerGroup other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + if (other.HasY4) { + Y4 = other.Y4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[143]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal(TestTestGlobal other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal Clone() { + return new TestTestGlobal(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestGlobal other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[144]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef(TestTestBeRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef Clone() { + return new TestTestBeRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private readonly static int CountDefaultValue = 0; + + private int count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Count { + get { if ((_hasBits0 & 2) != 0) { return count_; } else { return CountDefaultValue; } } + set { + _hasBits0 |= 2; + count_ = value; + } + } + /// Gets whether the "count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestBeRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasCount) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[145]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef(TestTestRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x12_ = other.x12_; + x2_ = other.x2_; + x3_ = other.x3_; + a1_ = other.a1_.Clone(); + a2_ = other.a2_.Clone(); + b1_ = other.b1_.Clone(); + b2_ = other.b2_.Clone(); + c1_ = other.c1_.Clone(); + c2_ = other.c2_.Clone(); + d1_ = other.d1_.Clone(); + d2_ = other.d2_.Clone(); + e1_ = other.e1_; + e2_ = other.e2_; + e3_ = other.e3_; + f1_ = other.f1_; + f2_ = other.f2_; + f3_ = other.f3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef Clone() { + return new TestTestRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x1_2" field. + public const int X12FieldNumber = 3; + private readonly static int X12DefaultValue = 0; + + private int x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X12 { + get { if ((_hasBits0 & 4) != 0) { return x12_; } else { return X12DefaultValue; } } + set { + _hasBits0 |= 4; + x12_ = value; + } + } + /// Gets whether the "x1_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX12 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x1_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX12() { + _hasBits0 &= ~4; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 8) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 8; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~8; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 16) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 16; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~16; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_a1_codec + = pb::FieldCodec.ForInt32(50); + private readonly pbc::RepeatedField a1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A1 { + get { return a1_; } + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_a2_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField a2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A2 { + get { return a2_; } + } + + /// Field number for the "b1" field. + public const int B1FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_b1_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField b1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B1 { + get { return b1_; } + } + + /// Field number for the "b2" field. + public const int B2FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_b2_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField b2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B2 { + get { return b2_; } + } + + /// Field number for the "c1" field. + public const int C1FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_c1_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField c1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C1 { + get { return c1_; } + } + + /// Field number for the "c2" field. + public const int C2FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_c2_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField c2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C2 { + get { return c2_; } + } + + /// Field number for the "d1" field. + public const int D1FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_d1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField d1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D1 { + get { return d1_; } + } + + /// Field number for the "d2" field. + public const int D2FieldNumber = 13; + private static readonly pbc::MapField.Codec _map_d2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 106); + private readonly pbc::MapField d2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D2 { + get { return d2_; } + } + + /// Field number for the "e1" field. + public const int E1FieldNumber = 14; + private readonly static int E1DefaultValue = 0; + + private int e1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int E1 { + get { if ((_hasBits0 & 32) != 0) { return e1_; } else { return E1DefaultValue; } } + set { + _hasBits0 |= 32; + e1_ = value; + } + } + /// Gets whether the "e1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE1 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "e1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE1() { + _hasBits0 &= ~32; + } + + /// Field number for the "e2" field. + public const int E2FieldNumber = 15; + private readonly static long E2DefaultValue = 0L; + + private long e2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long E2 { + get { if ((_hasBits0 & 64) != 0) { return e2_; } else { return E2DefaultValue; } } + set { + _hasBits0 |= 64; + e2_ = value; + } + } + /// Gets whether the "e2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE2 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "e2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE2() { + _hasBits0 &= ~64; + } + + /// Field number for the "e3" field. + public const int E3FieldNumber = 16; + private readonly static string E3DefaultValue = ""; + + private string e3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string E3 { + get { return e3_ ?? E3DefaultValue; } + set { + e3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "e3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE3 { + get { return e3_ != null; } + } + /// Clears the value of the "e3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE3() { + e3_ = null; + } + + /// Field number for the "f1" field. + public const int F1FieldNumber = 17; + private readonly static int F1DefaultValue = 0; + + private int f1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int F1 { + get { if ((_hasBits0 & 128) != 0) { return f1_; } else { return F1DefaultValue; } } + set { + _hasBits0 |= 128; + f1_ = value; + } + } + /// Gets whether the "f1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "f1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF1() { + _hasBits0 &= ~128; + } + + /// Field number for the "f2" field. + public const int F2FieldNumber = 18; + private readonly static long F2DefaultValue = 0L; + + private long f2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long F2 { + get { if ((_hasBits0 & 256) != 0) { return f2_; } else { return F2DefaultValue; } } + set { + _hasBits0 |= 256; + f2_ = value; + } + } + /// Gets whether the "f2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF2 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "f2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF2() { + _hasBits0 &= ~256; + } + + /// Field number for the "f3" field. + public const int F3FieldNumber = 19; + private readonly static string F3DefaultValue = ""; + + private string f3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string F3 { + get { return f3_ ?? F3DefaultValue; } + set { + f3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "f3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF3 { + get { return f3_ != null; } + } + /// Clears the value of the "f3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF3() { + f3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X12 != other.X12) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if(!a1_.Equals(other.a1_)) return false; + if(!a2_.Equals(other.a2_)) return false; + if(!b1_.Equals(other.b1_)) return false; + if(!b2_.Equals(other.b2_)) return false; + if(!c1_.Equals(other.c1_)) return false; + if(!c2_.Equals(other.c2_)) return false; + if (!D1.Equals(other.D1)) return false; + if (!D2.Equals(other.D2)) return false; + if (E1 != other.E1) return false; + if (E2 != other.E2) return false; + if (E3 != other.E3) return false; + if (F1 != other.F1) return false; + if (F2 != other.F2) return false; + if (F3 != other.F3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX12) hash ^= X12.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + hash ^= a1_.GetHashCode(); + hash ^= a2_.GetHashCode(); + hash ^= b1_.GetHashCode(); + hash ^= b2_.GetHashCode(); + hash ^= c1_.GetHashCode(); + hash ^= c2_.GetHashCode(); + hash ^= D1.GetHashCode(); + hash ^= D2.GetHashCode(); + if (HasE1) hash ^= E1.GetHashCode(); + if (HasE2) hash ^= E2.GetHashCode(); + if (HasE3) hash ^= E3.GetHashCode(); + if (HasF1) hash ^= F1.GetHashCode(); + if (HasF2) hash ^= F2.GetHashCode(); + if (HasF3) hash ^= F3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + a1_.WriteTo(output, _repeated_a1_codec); + a2_.WriteTo(output, _repeated_a2_codec); + b1_.WriteTo(output, _repeated_b1_codec); + b2_.WriteTo(output, _repeated_b2_codec); + c1_.WriteTo(output, _repeated_c1_codec); + c2_.WriteTo(output, _repeated_c2_codec); + d1_.WriteTo(output, _map_d1_codec); + d2_.WriteTo(output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(112); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(120); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(130, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(136, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(144, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(154, 1); + output.WriteString(F3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + a1_.WriteTo(ref output, _repeated_a1_codec); + a2_.WriteTo(ref output, _repeated_a2_codec); + b1_.WriteTo(ref output, _repeated_b1_codec); + b2_.WriteTo(ref output, _repeated_b2_codec); + c1_.WriteTo(ref output, _repeated_c1_codec); + c2_.WriteTo(ref output, _repeated_c2_codec); + d1_.WriteTo(ref output, _map_d1_codec); + d2_.WriteTo(ref output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(112); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(120); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(130, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(136, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(144, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(154, 1); + output.WriteString(F3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX12) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X12); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + size += a1_.CalculateSize(_repeated_a1_codec); + size += a2_.CalculateSize(_repeated_a2_codec); + size += b1_.CalculateSize(_repeated_b1_codec); + size += b2_.CalculateSize(_repeated_b2_codec); + size += c1_.CalculateSize(_repeated_c1_codec); + size += c2_.CalculateSize(_repeated_c2_codec); + size += d1_.CalculateSize(_map_d1_codec); + size += d2_.CalculateSize(_map_d2_codec); + if (HasE1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(E1); + } + if (HasE2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(E2); + } + if (HasE3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(E3); + } + if (HasF1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(F1); + } + if (HasF2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(F2); + } + if (HasF3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(F3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX12) { + X12 = other.X12; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + a1_.Add(other.a1_); + a2_.Add(other.a2_); + b1_.Add(other.b1_); + b2_.Add(other.b2_); + c1_.Add(other.c1_); + c2_.Add(other.c2_); + d1_.Add(other.d1_); + d2_.Add(other.d2_); + if (other.HasE1) { + E1 = other.E1; + } + if (other.HasE2) { + E2 = other.E2; + } + if (other.HasE3) { + E3 = other.E3; + } + if (other.HasF1) { + F1 = other.F1; + } + if (other.HasF2) { + F2 = other.F2; + } + if (other.HasF3) { + F3 = other.F3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 50: + case 48: { + a1_.AddEntriesFrom(input, _repeated_a1_codec); + break; + } + case 58: + case 56: { + a2_.AddEntriesFrom(input, _repeated_a2_codec); + break; + } + case 66: + case 64: { + b1_.AddEntriesFrom(input, _repeated_b1_codec); + break; + } + case 74: + case 72: { + b2_.AddEntriesFrom(input, _repeated_b2_codec); + break; + } + case 82: + case 80: { + c1_.AddEntriesFrom(input, _repeated_c1_codec); + break; + } + case 90: + case 88: { + c2_.AddEntriesFrom(input, _repeated_c2_codec); + break; + } + case 98: { + d1_.AddEntriesFrom(input, _map_d1_codec); + break; + } + case 106: { + d2_.AddEntriesFrom(input, _map_d2_codec); + break; + } + case 112: { + E1 = input.ReadInt32(); + break; + } + case 120: { + E2 = input.ReadInt64(); + break; + } + case 130: { + E3 = input.ReadString(); + break; + } + case 136: { + F1 = input.ReadInt32(); + break; + } + case 144: { + F2 = input.ReadInt64(); + break; + } + case 154: { + F3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 50: + case 48: { + a1_.AddEntriesFrom(ref input, _repeated_a1_codec); + break; + } + case 58: + case 56: { + a2_.AddEntriesFrom(ref input, _repeated_a2_codec); + break; + } + case 66: + case 64: { + b1_.AddEntriesFrom(ref input, _repeated_b1_codec); + break; + } + case 74: + case 72: { + b2_.AddEntriesFrom(ref input, _repeated_b2_codec); + break; + } + case 82: + case 80: { + c1_.AddEntriesFrom(ref input, _repeated_c1_codec); + break; + } + case 90: + case 88: { + c2_.AddEntriesFrom(ref input, _repeated_c2_codec); + break; + } + case 98: { + d1_.AddEntriesFrom(ref input, _map_d1_codec); + break; + } + case 106: { + d2_.AddEntriesFrom(ref input, _map_d2_codec); + break; + } + case 112: { + E1 = input.ReadInt32(); + break; + } + case 120: { + E2 = input.ReadInt64(); + break; + } + case 130: { + E3 = input.ReadString(); + break; + } + case 136: { + F1 = input.ReadInt32(); + break; + } + case 144: { + F2 = input.ReadInt64(); + break; + } + case 154: { + F3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSize()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[146]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize(TestTestSize other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize Clone() { + return new TestTestSize(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSize other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[147]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet(TestTestSet other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet Clone() { + return new TestTestSet(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt64(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForEnum(40, x => (int) x, x => (global::Cfg.TestDemoEnum) x); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSet other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: + case 40: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: + case 40: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDetectEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDetectEncoding()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[148]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding(TestDetectEncoding other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding Clone() { + return new TestDetectEncoding(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDetectEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDetectEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDetectEncoding other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[149]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel(TestDefineFromExcel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel Clone() { + return new TestDefineFromExcel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestETestQuality X13DefaultValue = global::Cfg.TestETestQuality.A; + + private global::Cfg.TestETestQuality x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestETestQuality X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 8; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 9; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 64) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 64; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~64; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcelOne : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcelOne()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[150]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne(TestDefineFromExcelOne other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + defaultAvatar_ = other.defaultAvatar_; + defaultItem_ = other.defaultItem_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcelOne Clone() { + return new TestDefineFromExcelOne(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + /// Field number for the "default_avatar" field. + public const int DefaultAvatarFieldNumber = 3; + private readonly static string DefaultAvatarDefaultValue = ""; + + private string defaultAvatar_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DefaultAvatar { + get { return defaultAvatar_ ?? DefaultAvatarDefaultValue; } + set { + defaultAvatar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "default_avatar" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDefaultAvatar { + get { return defaultAvatar_ != null; } + } + /// Clears the value of the "default_avatar" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDefaultAvatar() { + defaultAvatar_ = null; + } + + /// Field number for the "default_item" field. + public const int DefaultItemFieldNumber = 4; + private readonly static string DefaultItemDefaultValue = ""; + + private string defaultItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DefaultItem { + get { return defaultItem_ ?? DefaultItemDefaultValue; } + set { + defaultItem_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "default_item" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDefaultItem { + get { return defaultItem_ != null; } + } + /// Clears the value of the "default_item" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDefaultItem() { + defaultItem_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcelOne); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcelOne other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + if (DefaultAvatar != other.DefaultAvatar) return false; + if (DefaultItem != other.DefaultItem) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (HasDefaultAvatar) hash ^= DefaultAvatar.GetHashCode(); + if (HasDefaultItem) hash ^= DefaultItem.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (HasDefaultAvatar) { + output.WriteRawTag(26); + output.WriteString(DefaultAvatar); + } + if (HasDefaultItem) { + output.WriteRawTag(34); + output.WriteString(DefaultItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (HasDefaultAvatar) { + output.WriteRawTag(26); + output.WriteString(DefaultAvatar); + } + if (HasDefaultItem) { + output.WriteRawTag(34); + output.WriteString(DefaultItem); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (HasDefaultAvatar) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultAvatar); + } + if (HasDefaultItem) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultItem); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcelOne other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + if (other.HasDefaultAvatar) { + DefaultAvatar = other.DefaultAvatar; + } + if (other.HasDefaultItem) { + DefaultItem = other.DefaultItem; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + case 26: { + DefaultAvatar = input.ReadString(); + break; + } + case 34: { + DefaultItem = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + case 26: { + DefaultAvatar = input.ReadString(); + break; + } + case 34: { + DefaultItem = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestIndex()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[151]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex(TestTestIndex other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + eles_ = other.eles_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex Clone() { + return new TestTestIndex(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "eles" field. + public const int ElesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_eles_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestDemoType1.Parser); + private readonly pbc::RepeatedField eles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Eles { + get { return eles_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!eles_.Equals(other.eles_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= eles_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(ref output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += eles_.CalculateSize(_repeated_eles_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestIndex other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + eles_.Add(other.eles_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(input, _repeated_eles_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(ref input, _repeated_eles_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[152]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap(TestTestMap other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap Clone() { + return new TestTestMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pbc::MapField.Codec _map_x1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 18); + private readonly pbc::MapField x1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pbc::MapField.Codec _map_x2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt32(16, 0), 26); + private readonly pbc::MapField x2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pbc::MapField.Codec _map_x3_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 34); + private readonly pbc::MapField x3_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!X1.Equals(other.X1)) return false; + if (!X2.Equals(other.X2)) return false; + if (!X3.Equals(other.X3)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= X1.GetHashCode(); + hash ^= X2.GetHashCode(); + hash ^= X3.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _map_x1_codec); + x2_.WriteTo(output, _map_x2_codec); + x3_.WriteTo(output, _map_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _map_x1_codec); + x2_.WriteTo(ref output, _map_x2_codec); + x3_.WriteTo(ref output, _map_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_map_x1_codec); + size += x2_.CalculateSize(_map_x2_codec); + size += x3_.CalculateSize(_map_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMap other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(ref input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(ref input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[153]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson(TestExcelFromJson other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson Clone() { + return new TestExcelFromJson(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 5; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 6; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 7; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 8; + private global::Cfg.Vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 9; + private global::Cfg.Vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 16) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 16; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~16; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 11; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 12; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.A; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 13; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 15; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 122); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 16; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(130, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(138, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(66); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + if (x12_ != null) { + output.WriteRawTag(90); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(96); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(106); + output.WriteMessage(X14); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(66); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + if (x12_ != null) { + output.WriteRawTag(90); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(96); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(106); + output.WriteMessage(X14); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJson other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 58: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 66: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 74: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 96: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 106: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 114: + case 112: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 138: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 58: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 66: { + if (v3_ == null) { + V3 = new global::Cfg.Vector3(); + } + input.ReadMessage(V3); + break; + } + case 74: { + if (v4_ == null) { + V4 = new global::Cfg.Vector4(); + } + input.ReadMessage(V4); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 96: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 106: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 114: + case 112: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 138: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[154]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1(TestCompositeJsonTable1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1 Clone() { + return new TestCompositeJsonTable1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static string XDefaultValue = ""; + + private string x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X { + get { return x_ ?? XDefaultValue; } + set { + x_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return x_ != null; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + x_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[155]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2(TestCompositeJsonTable2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2 Clone() { + return new TestCompositeJsonTable2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[156]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3(TestCompositeJsonTable3 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3 Clone() { + return new TestCompositeJsonTable3(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable3 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[157]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow(TestExcelFromJsonMultiRow other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow Clone() { + return new TestExcelFromJsonMultiRow(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestTestRow.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[158]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow(TestTestRow other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow Clone() { + return new TestTestRow(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static bool YDefaultValue = false; + + private bool y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static string ZDefaultValue = ""; + + private string z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Z { + get { return z_ ?? ZDefaultValue; } + set { + z_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return z_ != null; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + z_ = null; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private global::Cfg.TestTest3 a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestTest3 A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_b_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField b_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B { + get { return b_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + if (!object.Equals(A, other.A)) return false; + if(!b_.Equals(other.b_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + hash ^= b_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(ref output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 1; + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Z); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + size += b_.CalculateSize(_repeated_b_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRow other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + A.MergeFrom(other.A); + } + b_.Add(other.b_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(input, _repeated_b_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(ref input, _repeated_b_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTest3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTest3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[159]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3(TestTest3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3 Clone() { + return new TestTest3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTest3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTest3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTest3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSep()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[160]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep(TestTestSep other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_ != null ? other.x2_.Clone() : null; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_.Clone(); + x5_ = other.x5_.Clone(); + x6_ = other.x6_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSep Clone() { + return new TestTestSep(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static string X1DefaultValue = ""; + + private string x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X1 { + get { return x1_ ?? X1DefaultValue; } + set { + x1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return x1_ != null; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + x1_ = null; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private global::Cfg.TestSepBean1 x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestSepBean1 X2 { + get { return x2_; } + set { + x2_ = value; + } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestSepVector x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestSepVector X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestSepVector.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x5_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestSepBean1.Parser); + private readonly pbc::RepeatedField x5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X5 { + get { return x5_; } + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x6_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestSepBean1.Parser); + private readonly pbc::RepeatedField x6_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X6 { + get { return x6_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (!object.Equals(X2, other.X2)) return false; + if (!object.Equals(X3, other.X3)) return false; + if(!x4_.Equals(other.x4_)) return false; + if(!x5_.Equals(other.x5_)) return false; + if(!x6_.Equals(other.x6_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (x2_ != null) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + hash ^= x4_.GetHashCode(); + hash ^= x5_.GetHashCode(); + hash ^= x6_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(18); + output.WriteString(X1); + } + if (x2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + x4_.WriteTo(output, _repeated_x4_codec); + x5_.WriteTo(output, _repeated_x5_codec); + x6_.WriteTo(output, _repeated_x6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(18); + output.WriteString(X1); + } + if (x2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + x4_.WriteTo(ref output, _repeated_x4_codec); + x5_.WriteTo(ref output, _repeated_x5_codec); + x6_.WriteTo(ref output, _repeated_x6_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X1); + } + if (x2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + size += x4_.CalculateSize(_repeated_x4_codec); + size += x5_.CalculateSize(_repeated_x5_codec); + size += x6_.CalculateSize(_repeated_x6_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSep other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.x2_ != null) { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + X2.MergeFrom(other.X2); + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + X3.MergeFrom(other.X3); + } + x4_.Add(other.x4_); + x5_.Add(other.x5_); + x6_.Add(other.x6_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X1 = input.ReadString(); + break; + } + case 26: { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + input.ReadMessage(X2); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + input.ReadMessage(X3); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + case 50: { + x5_.AddEntriesFrom(input, _repeated_x5_codec); + break; + } + case 58: { + x6_.AddEntriesFrom(input, _repeated_x6_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X1 = input.ReadString(); + break; + } + case 26: { + if (x2_ == null) { + X2 = new global::Cfg.TestSepBean1(); + } + input.ReadMessage(X2); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestSepVector(); + } + input.ReadMessage(X3); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + case 50: { + x5_.AddEntriesFrom(ref input, _repeated_x5_codec); + break; + } + case 58: { + x6_.AddEntriesFrom(ref input, _repeated_x6_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestSepBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSepBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[161]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1(TestSepBean1 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + c_ = other.c_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepBean1 Clone() { + return new TestSepBean1(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + /// Field number for the "c" field. + public const int CFieldNumber = 3; + private readonly static string CDefaultValue = ""; + + private string c_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string C { + get { return c_ ?? CDefaultValue; } + set { + c_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasC { + get { return c_ != null; } + } + /// Clears the value of the "c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearC() { + c_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestSepBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestSepBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + if (C != other.C) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (HasC) hash ^= C.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (HasC) { + output.WriteRawTag(26); + output.WriteString(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (HasC) { + output.WriteRawTag(26); + output.WriteString(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (HasC) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(C); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestSepBean1 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + if (other.HasC) { + C = other.C; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + case 26: { + C = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + case 26: { + C = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestSepVector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSepVector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[162]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector(TestSepVector other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestSepVector Clone() { + return new TestSepVector(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static int ZDefaultValue = 0; + + private int z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestSepVector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestSepVector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestSepVector other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + case 24: { + Z = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + case 24: { + Z = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestExternalType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExternalType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[163]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType(TestTestExternalType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + audioType_ = other.audioType_; + color_ = other.color_ != null ? other.color_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExternalType Clone() { + return new TestTestExternalType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "audio_type" field. + public const int AudioTypeFieldNumber = 2; + private readonly static global::Cfg.TestAudioType AudioTypeDefaultValue = global::Cfg.TestAudioType.Unknown; + + private global::Cfg.TestAudioType audioType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestAudioType AudioType { + get { if ((_hasBits0 & 2) != 0) { return audioType_; } else { return AudioTypeDefaultValue; } } + set { + _hasBits0 |= 2; + audioType_ = value; + } + } + /// Gets whether the "audio_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "audio_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioType() { + _hasBits0 &= ~2; + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 3; + private global::Cfg.TestColor color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestColor Color { + get { return color_; } + set { + color_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExternalType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExternalType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AudioType != other.AudioType) return false; + if (!object.Equals(Color, other.Color)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAudioType) hash ^= AudioType.GetHashCode(); + if (color_ != null) hash ^= Color.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (color_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (color_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAudioType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AudioType); + } + if (color_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExternalType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAudioType) { + AudioType = other.AudioType; + } + if (other.color_ != null) { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + Color.MergeFrom(other.Color); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.TestAudioType) input.ReadEnum(); + break; + } + case 26: { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + input.ReadMessage(Color); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.TestAudioType) input.ReadEnum(); + break; + } + case 26: { + if (color_ == null) { + Color = new global::Cfg.TestColor(); + } + input.ReadMessage(Color); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestColor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestColor()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[164]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor(TestColor other) : this() { + _hasBits0 = other._hasBits0; + r_ = other.r_; + g_ = other.g_; + b_ = other.b_; + a_ = other.a_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestColor Clone() { + return new TestColor(this); + } + + /// Field number for the "r" field. + public const int RFieldNumber = 1; + private readonly static float RDefaultValue = 0F; + + private float r_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float R { + get { if ((_hasBits0 & 1) != 0) { return r_; } else { return RDefaultValue; } } + set { + _hasBits0 |= 1; + r_ = value; + } + } + /// Gets whether the "r" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasR { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "r" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearR() { + _hasBits0 &= ~1; + } + + /// Field number for the "g" field. + public const int GFieldNumber = 2; + private readonly static float GDefaultValue = 0F; + + private float g_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float G { + get { if ((_hasBits0 & 2) != 0) { return g_; } else { return GDefaultValue; } } + set { + _hasBits0 |= 2; + g_ = value; + } + } + /// Gets whether the "g" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasG { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "g" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearG() { + _hasBits0 &= ~2; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 3; + private readonly static float BDefaultValue = 0F; + + private float b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float B { + get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 4; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~4; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private readonly static float ADefaultValue = 0F; + + private float a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float A { + get { if ((_hasBits0 & 8) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 8; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestColor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestColor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasR) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); + if (HasG) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); + if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); + if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasR) { + size += 1 + 4; + } + if (HasG) { + size += 1 + 4; + } + if (HasB) { + size += 1 + 4; + } + if (HasA) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestColor other) { + if (other == null) { + return; + } + if (other.HasR) { + R = other.R; + } + if (other.HasG) { + G = other.G; + } + if (other.HasB) { + B = other.B; + } + if (other.HasA) { + A = other.A; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[165]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2(TestDefineFromExcel2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDefineFromExcel2 Clone() { + return new TestDefineFromExcel2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestETestQuality X13DefaultValue = global::Cfg.TestETestQuality.A; + + private global::Cfg.TestETestQuality x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestETestQuality X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 8; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 9; + private global::Cfg.Vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 10; + private readonly static int T1DefaultValue = 0; + + private int t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int T1 { + get { if ((_hasBits0 & 64) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 64; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~64; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X14); + } + if (v2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(80); + output.WriteInt32(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDefineFromExcel2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k8_.Add(other.k8_); + k9_.Add(other.k9_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestETestQuality) input.ReadEnum(); + break; + } + case 66: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 74: { + if (v2_ == null) { + V2 = new global::Cfg.Vector2(); + } + input.ReadMessage(V2); + break; + } + case 80: { + T1 = input.ReadInt32(); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestExcelBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExcelBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[166]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1(TestTestExcelBean1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1 Clone() { + return new TestTestExcelBean1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static string X2DefaultValue = ""; + + private string x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X2 { + get { return x2_ ?? X2DefaultValue; } + set { + x2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return x2_ != null; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + x2_ = null; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static float X4DefaultValue = 0F; + + private float x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExcelBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExcelBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X4, other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X4); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExcelBean1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestDesc()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[167]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc(TestTestDesc other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + a1_ = other.a1_; + a2_ = other.a2_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestDesc Clone() { + return new TestTestDesc(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 3; + private readonly static int A1DefaultValue = 0; + + private int a1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A1 { + get { if ((_hasBits0 & 2) != 0) { return a1_; } else { return A1DefaultValue; } } + set { + _hasBits0 |= 2; + a1_ = value; + } + } + /// Gets whether the "a1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "a1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA1() { + _hasBits0 &= ~2; + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 4; + private readonly static int A2DefaultValue = 0; + + private int a2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A2 { + get { if ((_hasBits0 & 4) != 0) { return a2_; } else { return A2DefaultValue; } } + set { + _hasBits0 |= 4; + a2_ = value; + } + } + /// Gets whether the "a2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "a2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 5; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (A1 != other.A1) return false; + if (A2 != other.A2) return false; + if (!object.Equals(X1, other.X1)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasA1) hash ^= A1.GetHashCode(); + if (HasA2) hash ^= A2.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasA1) { + output.WriteRawTag(24); + output.WriteInt32(A1); + } + if (HasA2) { + output.WriteRawTag(32); + output.WriteInt32(A2); + } + if (x1_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X1); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasA1) { + output.WriteRawTag(24); + output.WriteInt32(A1); + } + if (HasA2) { + output.WriteRawTag(32); + output.WriteInt32(A2); + } + if (x1_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X1); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasA1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A1); + } + if (HasA2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A2); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestDesc other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasA1) { + A1 = other.A1; + } + if (other.HasA2) { + A2 = other.A2; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + A1 = input.ReadInt32(); + break; + } + case 32: { + A2 = input.ReadInt32(); + break; + } + case 42: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 50: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 58: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + A1 = input.ReadInt32(); + break; + } + case 32: { + A2 = input.ReadInt32(); + break; + } + case 42: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 50: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 58: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[168]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard(AiTbBlackboard other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard Clone() { + return new AiTbBlackboard(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBlackboard.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBlackboard other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[169]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree(AiTbBehaviorTree other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree Clone() { + return new AiTbBehaviorTree(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBehaviorTree.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBehaviorTree other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BlueprintTbClazz : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlueprintTbClazz()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[170]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz(BlueprintTbClazz other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlueprintTbClazz Clone() { + return new BlueprintTbClazz(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BlueprintClazz.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlueprintTbClazz); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlueprintTbClazz other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlueprintTbClazz other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class BonusTbDrop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BonusTbDrop()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[171]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop(BonusTbDrop other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BonusTbDrop Clone() { + return new BonusTbDrop(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.BonusDropInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BonusTbDrop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BonusTbDrop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BonusTbDrop other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonTbGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonTbGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[172]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig(CommonTbGlobalConfig other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig Clone() { + return new CommonTbGlobalConfig(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CommonGlobalConfig.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonTbGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonTbGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonTbGlobalConfig other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorTbErrorInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorTbErrorInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[173]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo(ErrorTbErrorInfo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbErrorInfo Clone() { + return new ErrorTbErrorInfo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ErrorErrorInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorTbErrorInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorTbErrorInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorTbErrorInfo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ErrorTbCodeInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorTbCodeInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[174]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo(ErrorTbCodeInfo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ErrorTbCodeInfo Clone() { + return new ErrorTbCodeInfo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ErrorCodeInfo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ErrorTbCodeInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ErrorTbCodeInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ErrorTbCodeInfo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[175]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem(ItemTbItem other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem Clone() { + return new ItemTbItem(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItem.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItem other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItemFunc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItemFunc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[176]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc(ItemTbItemFunc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemFunc Clone() { + return new ItemTbItemFunc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItemFunction.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItemFunc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItemFunc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItemFunc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItemExtra : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItemExtra()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[177]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra(ItemTbItemExtra other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItemExtra Clone() { + return new ItemTbItemExtra(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItemExtra.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItemExtra); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItemExtra other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItemExtra other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[178]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo(L10nTbL10NDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo Clone() { + return new L10nTbL10NDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nL10NDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbL10NDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[179]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo(L10nTbPatchDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo Clone() { + return new L10nTbPatchDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nPatchDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbPatchDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailTbSystemMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailTbSystemMail()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[180]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail(MailTbSystemMail other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbSystemMail Clone() { + return new MailTbSystemMail(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.MailSystemMail.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailTbSystemMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailTbSystemMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailTbSystemMail other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MailTbGlobalMail : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MailTbGlobalMail()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[181]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail(MailTbGlobalMail other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MailTbGlobalMail Clone() { + return new MailTbGlobalMail(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.MailGlobalMail.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MailTbGlobalMail); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MailTbGlobalMail other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MailTbGlobalMail other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleTbRoleLevelExpAttr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleTbRoleLevelExpAttr()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[182]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr(RoleTbRoleLevelExpAttr other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelExpAttr Clone() { + return new RoleTbRoleLevelExpAttr(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.RoleLevelExpAttr.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleTbRoleLevelExpAttr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleTbRoleLevelExpAttr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleTbRoleLevelExpAttr other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RoleTbRoleLevelBonusCoefficient : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoleTbRoleLevelBonusCoefficient()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[183]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient(RoleTbRoleLevelBonusCoefficient other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoleTbRoleLevelBonusCoefficient Clone() { + return new RoleTbRoleLevelBonusCoefficient(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.RoleLevelBonus.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoleTbRoleLevelBonusCoefficient); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoleTbRoleLevelBonusCoefficient other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoleTbRoleLevelBonusCoefficient other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTbTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTbTestTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[184]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag(TagTbTestTag other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag Clone() { + return new TagTbTestTag(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TagTestTag.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTbTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTbTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTbTestTag other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbFullTypes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbFullTypes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[185]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes(TestTbFullTypes other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes Clone() { + return new TestTbFullTypes(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbFullTypes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbFullTypes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbFullTypes other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbSingleton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbSingleton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[186]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton(TestTbSingleton other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton Clone() { + return new TestTbSingleton(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoSingletonType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbSingleton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbSingleton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbSingleton other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[187]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList(TestTbNotIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList Clone() { + return new TestTbNotIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestNotIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbNotIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[188]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList(TestTbMultiUnionIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList Clone() { + return new TestTbMultiUnionIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiUnionIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiUnionIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[189]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList(TestTbMultiIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList Clone() { + return new TestTbMultiIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDataFromMisc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDataFromMisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[190]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc(TestTbDataFromMisc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc Clone() { + return new TestTbDataFromMisc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDataFromMisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDataFromMisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDataFromMisc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[191]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord(TestTbMultiRowRecord other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord Clone() { + return new TestTbMultiRowRecord(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowRecord.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowRecord other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[192]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle(TestTbMultiRowTitle other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle Clone() { + return new TestTbMultiRowTitle(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowTitle.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowTitle other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestNull()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[193]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull(TestTbTestNull other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull Clone() { + return new TestTbTestNull(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestNull.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestNull other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoPrimitive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoPrimitive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[194]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive(TestTbDemoPrimitive other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive Clone() { + return new TestTbDemoPrimitive(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoPrimitiveTypesTable.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoPrimitive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoPrimitive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoPrimitive other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[195]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString(TestTbTestString other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString Clone() { + return new TestTbTestString(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestString.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestString other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[196]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup(TestTbDemoGroup other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup Clone() { + return new TestTbDemoGroup(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_C : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_C()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[197]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C(TestTbDemoGroup_C other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C Clone() { + return new TestTbDemoGroup_C(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_C); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_C other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_C other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_S : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_S()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[198]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S(TestTbDemoGroup_S other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S Clone() { + return new TestTbDemoGroup_S(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_S); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_S other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_S other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_E : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_E()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[199]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E(TestTbDemoGroup_E other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E Clone() { + return new TestTbDemoGroup_E(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_E); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_E other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_E other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[200]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal(TestTbTestGlobal other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal Clone() { + return new TestTbTestGlobal(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestGlobal.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestGlobal other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[201]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef(TestTbTestBeRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef Clone() { + return new TestTbTestBeRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[202]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2(TestTbTestBeRef2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2 Clone() { + return new TestTbTestBeRef2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[203]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef(TestTbTestRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef Clone() { + return new TestTbTestRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSize()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[204]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize(TestTbTestSize other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize Clone() { + return new TestTbTestSize(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSize.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSize other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[205]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet(TestTbTestSet other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet Clone() { + return new TestTbTestSet(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSet.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSet other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDetectCsvEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDetectCsvEncoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[206]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding(TestTbDetectCsvEncoding other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding Clone() { + return new TestTbDetectCsvEncoding(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDetectEncoding.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDetectCsvEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDetectCsvEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDetectCsvEncoding other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[207]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel(TestTbDefineFromExcel other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel Clone() { + return new TestTbDefineFromExcel(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcel.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcelOne : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcelOne()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[208]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne(TestTbDefineFromExcelOne other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcelOne Clone() { + return new TestTbDefineFromExcelOne(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcelOne.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcelOne); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcelOne other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcelOne other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestIndex()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[209]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex(TestTbTestIndex other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex Clone() { + return new TestTbTestIndex(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestIndex.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestIndex other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[210]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap(TestTbTestMap other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap Clone() { + return new TestTbTestMap(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMap.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMap other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[211]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson(TestTbExcelFromJson other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson Clone() { + return new TestTbExcelFromJson(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJson.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJson other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[212]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1(TestTbCompositeJsonTable1 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1 Clone() { + return new TestTbCompositeJsonTable1(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable1 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[213]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2(TestTbCompositeJsonTable2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2 Clone() { + return new TestTbCompositeJsonTable2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[214]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3(TestTbCompositeJsonTable3 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3 Clone() { + return new TestTbCompositeJsonTable3(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable3.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable3 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[215]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow(TestTbExcelFromJsonMultiRow other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow Clone() { + return new TestTbExcelFromJsonMultiRow(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJsonMultiRow.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSep : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSep()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[216]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep(TestTbTestSep other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSep Clone() { + return new TestTbTestSep(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSep.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSep); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSep other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSep other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestExternalType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestExternalType()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[217]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType(TestTbTestExternalType other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExternalType Clone() { + return new TestTbTestExternalType(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestExternalType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestExternalType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestExternalType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestExternalType other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroupDefineFromExcel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroupDefineFromExcel()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[218]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel(TestTbDemoGroupDefineFromExcel other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroupDefineFromExcel Clone() { + return new TestTbDemoGroupDefineFromExcel(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroupDefineFromExcel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroupDefineFromExcel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroupDefineFromExcel other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[219]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2(TestTbDefineFromExcel2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2 Clone() { + return new TestTbDefineFromExcel2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDefineFromExcel2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestExcelBean : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestExcelBean()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[220]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean(TestTbTestExcelBean other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestExcelBean Clone() { + return new TestTbTestExcelBean(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestExcelBean1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestExcelBean); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestExcelBean other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestExcelBean other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestDesc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestDesc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.ConfigReflection.Descriptor.MessageTypes[221]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc(TestTbTestDesc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestDesc Clone() { + return new TestTbTestDesc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestDesc.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestDesc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestDesc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestDesc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/luban_examples/Projects/Protobuf3_json/Gen/Schema.cs b/luban_examples/Projects/Protobuf3_json/Gen/Schema.cs new file mode 100644 index 00000000..0110196a --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/Gen/Schema.cs @@ -0,0 +1,49554 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Cfg { + + /// Holder for reflection information generated from schema.proto + public static partial class SchemaReflection { + + #region Descriptor + /// File descriptor for schema.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SchemaReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxzY2hlbWEucHJvdG8SA2NmZyJEChJUZXN0VGVzdEV4Y2VsQmVhbjESCgoC", + "eDEYASACKAUSCgoCeDIYAiACKAkSCgoCeDMYAyACKAUSCgoCeDQYBCACKAIi", + "ZwoMQWlCbGFja2JvYXJkEgwKBG5hbWUYASACKAkSDAoEZGVzYxgCIAIoCRIT", + "CgtwYXJlbnRfbmFtZRgDIAIoCRImCgRrZXlzGAQgAygLMhQuY2ZnLkFpQmxh", + "Y2tib2FyZEtleUICEAAieAoPQWlCbGFja2JvYXJkS2V5EgwKBG5hbWUYASAC", + "KAkSDAoEZGVzYxgCIAIoCRIRCglpc19zdGF0aWMYAyACKAgSHQoEdHlwZRgE", + "IAIoDjIPLmNmZy5BaUVLZXlUeXBlEhcKD3R5cGVfY2xhc3NfbmFtZRgFIAIo", + "CSJxCg5BaUJlaGF2aW9yVHJlZRIKCgJpZBgBIAIoBRIMCgRuYW1lGAIgAigJ", + "EgwKBGRlc2MYAyACKAkSFQoNYmxhY2tib2FyZF9pZBgEIAIoCRIgCgRyb290", + "GAUgAigLMhIuY2ZnLkFpQ29tcG9zZU5vZGUi1ggKBkFpTm9kZRI1ChFVZVNl", + "dERlZmF1bHRGb2N1cxgBIAEoCzIYLmNmZy5BaVVlU2V0RGVmYXVsdEZvY3Vz", + "SAASOwoURXhlY3V0ZVRpbWVTdGF0aXN0aWMYAiABKAsyGy5jZmcuQWlFeGVj", + "dXRlVGltZVN0YXRpc3RpY0gAEisKDENob29zZVRhcmdldBgDIAEoCzITLmNm", + "Zy5BaUNob29zZVRhcmdldEgAEi8KDktlZXBGYWNlVGFyZ2V0GAQgASgLMhUu", + "Y2ZnLkFpS2VlcEZhY2VUYXJnZXRIABIvCg5HZXRPd25lclBsYXllchgFIAEo", + "CzIVLmNmZy5BaUdldE93bmVyUGxheWVySAASQwoYVXBkYXRlRGFpbHlCZWhh", + "dmlvclByb3BzGAYgASgLMh8uY2ZnLkFpVXBkYXRlRGFpbHlCZWhhdmlvclBy", + "b3BzSAASHwoGVWVMb29wGAcgASgLMg0uY2ZnLkFpVWVMb29wSAASJwoKVWVD", + "b29sZG93bhgIIAEoCzIRLmNmZy5BaVVlQ29vbGRvd25IABIpCgtVZVRpbWVM", + "aW1pdBgJIAEoCzISLmNmZy5BaVVlVGltZUxpbWl0SAASKwoMVWVCbGFja2Jv", + "YXJkGAogASgLMhMuY2ZnLkFpVWVCbGFja2JvYXJkSAASLwoOVWVGb3JjZVN1", + "Y2Nlc3MYCyABKAsyFS5jZmcuQWlVZUZvcmNlU3VjY2Vzc0gAEisKDElzQXRM", + "b2NhdGlvbhgMIAEoCzITLmNmZy5BaUlzQXRMb2NhdGlvbkgAEjMKEERpc3Rh", + "bmNlTGVzc1RoYW4YDSABKAsyFy5jZmcuQWlEaXN0YW5jZUxlc3NUaGFuSAAS", + "IwoIU2VxdWVuY2UYDiABKAsyDy5jZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVj", + "dG9yGA8gASgLMg8uY2ZnLkFpU2VsZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxl", + "bBgQIAEoCzIVLmNmZy5BaVNpbXBsZVBhcmFsbGVsSAASHwoGVWVXYWl0GBEg", + "ASgLMg0uY2ZnLkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUY", + "EiABKAsyGy5jZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVU", + "b1RhcmdldBgTIAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29z", + "ZVNraWxsGBQgASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9S", + "YW5kb21Mb2NhdGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0", + "aW9uSAASLwoOTW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9M", + "b2NhdGlvbkgAEicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1By", + "aW50SABCBwoFdmFsdWUi3AIKCUFpU2VydmljZRI1ChFVZVNldERlZmF1bHRG", + "b2N1cxgBIAEoCzIYLmNmZy5BaVVlU2V0RGVmYXVsdEZvY3VzSAASOwoURXhl", + "Y3V0ZVRpbWVTdGF0aXN0aWMYAiABKAsyGy5jZmcuQWlFeGVjdXRlVGltZVN0", + "YXRpc3RpY0gAEisKDENob29zZVRhcmdldBgDIAEoCzITLmNmZy5BaUNob29z", + "ZVRhcmdldEgAEi8KDktlZXBGYWNlVGFyZ2V0GAQgASgLMhUuY2ZnLkFpS2Vl", + "cEZhY2VUYXJnZXRIABIvCg5HZXRPd25lclBsYXllchgFIAEoCzIVLmNmZy5B", + "aUdldE93bmVyUGxheWVySAASQwoYVXBkYXRlRGFpbHlCZWhhdmlvclByb3Bz", + "GAYgASgLMh8uY2ZnLkFpVXBkYXRlRGFpbHlCZWhhdmlvclByb3BzSABCBwoF", + "dmFsdWUiSgoTQWlVZVNldERlZmF1bHRGb2N1cxIKCgJpZBgBIAIoBRIRCglu", + "b2RlX25hbWUYAiACKAkSFAoMa2V5Ym9hcmRfa2V5GAMgAigJIjcKFkFpRXhl", + "Y3V0ZVRpbWVTdGF0aXN0aWMSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIg", + "AigJIkoKDkFpQ2hvb3NlVGFyZ2V0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFt", + "ZRgCIAIoCRIZChFyZXN1bHRfdGFyZ2V0X2tleRgDIAIoCSJLChBBaUtlZXBG", + "YWNlVGFyZ2V0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIYChB0", + "YXJnZXRfYWN0b3Jfa2V5GAMgAigJIksKEEFpR2V0T3duZXJQbGF5ZXISCgoC", + "aWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEhgKEHBsYXllcl9hY3Rvcl9r", + "ZXkYAyACKAkizAIKGkFpVXBkYXRlRGFpbHlCZWhhdmlvclByb3BzEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRITCgtzYXRpZXR5X2tleRgDIAIo", + "CRISCgplbmVyZ3lfa2V5GAQgAigJEhAKCG1vb2Rfa2V5GAUgAigJEiMKG3Nh", + "dGlldHlfbG93ZXJfdGhyZXNob2xkX2tleRgGIAIoCRIjChtzYXRpZXR5X3Vw", + "cGVyX3RocmVzaG9sZF9rZXkYByACKAkSIgoaZW5lcmd5X2xvd2VyX3RocmVz", + "aG9sZF9rZXkYCCACKAkSIgoaZW5lcmd5X3VwcGVyX3RocmVzaG9sZF9rZXkY", + "CSACKAkSIAoYbW9vZF9sb3dlcl90aHJlc2hvbGRfa2V5GAogAigJEiAKGG1v", + "b2RfdXBwZXJfdGhyZXNob2xkX2tleRgLIAIoCSLLAgoLQWlEZWNvcmF0b3IS", + "HwoGVWVMb29wGAcgASgLMg0uY2ZnLkFpVWVMb29wSAASJwoKVWVDb29sZG93", + "bhgIIAEoCzIRLmNmZy5BaVVlQ29vbGRvd25IABIpCgtVZVRpbWVMaW1pdBgJ", + "IAEoCzISLmNmZy5BaVVlVGltZUxpbWl0SAASKwoMVWVCbGFja2JvYXJkGAog", + "ASgLMhMuY2ZnLkFpVWVCbGFja2JvYXJkSAASLwoOVWVGb3JjZVN1Y2Nlc3MY", + "CyABKAsyFS5jZmcuQWlVZUZvcmNlU3VjY2Vzc0gAEisKDElzQXRMb2NhdGlv", + "bhgMIAEoCzITLmNmZy5BaUlzQXRMb2NhdGlvbkgAEjMKEERpc3RhbmNlTGVz", + "c1RoYW4YDSABKAsyFy5jZmcuQWlEaXN0YW5jZUxlc3NUaGFuSABCBwoFdmFs", + "dWUipwEKCEFpVWVMb29wEgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgCIAIo", + "CRIuCg9mbG93X2Fib3J0X21vZGUYAyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0", + "TW9kZRIRCgludW1fbG9vcHMYBCACKAUSFQoNaW5maW5pdGVfbG9vcBgFIAIo", + "CBIiChppbmZpbml0ZV9sb29wX3RpbWVvdXRfdGltZRgGIAIoAiJ0CgxBaVVl", + "Q29vbGRvd24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zs", + "b3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlEhUK", + "DWNvb2xkb3duX3RpbWUYBCACKAIicgoNQWlVZVRpbWVMaW1pdBIKCgJpZBgB", + "IAIoBRIRCglub2RlX25hbWUYAiACKAkSLgoPZmxvd19hYm9ydF9tb2RlGAMg", + "AigOMhUuY2ZnLkFpRUZsb3dBYm9ydE1vZGUSEgoKbGltaXRfdGltZRgEIAIo", + "AiLYAQoOQWlVZUJsYWNrYm9hcmQSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1l", + "GAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9kZRgDIAIoDjIVLmNmZy5BaUVGbG93", + "QWJvcnRNb2RlEjMKD25vdGlmeV9vYnNlcnZlchgEIAIoDjIaLmNmZy5BaUVO", + "b3RpZnlPYnNlcnZlck1vZGUSFgoOYmxhY2tib2FyZF9rZXkYBSACKAkSKgoJ", + "a2V5X3F1ZXJ5GAYgAigLMhcuY2ZnLkFpS2V5UXVlcnlPcGVyYXRvciKSAQoS", + "QWlLZXlRdWVyeU9wZXJhdG9yEh0KBUlzU2V0GAEgASgLMgwuY2ZnLkFpSXNT", + "ZXRIABIjCghJc05vdFNldBgCIAEoCzIPLmNmZy5BaUlzTm90U2V0SAASLwoO", + "QmluYXJ5T3BlcmF0b3IYAyABKAsyFS5jZmcuQWlCaW5hcnlPcGVyYXRvckgA", + "QgcKBXZhbHVlIgkKB0FpSXNTZXQiDAoKQWlJc05vdFNldCJQChBBaUJpbmFy", + "eU9wZXJhdG9yEh4KBG9wZXIYASACKA4yEC5jZmcuQWlFT3BlcmF0b3ISHAoE", + "ZGF0YRgCIAIoCzIOLmNmZy5BaUtleURhdGEi0AEKCUFpS2V5RGF0YRIrCgxG", + "bG9hdEtleURhdGEYASABKAsyEy5jZmcuQWlGbG9hdEtleURhdGFIABInCgpJ", + "bnRLZXlEYXRhGAIgASgLMhEuY2ZnLkFpSW50S2V5RGF0YUgAEi0KDVN0cmlu", + "Z0tleURhdGEYAyABKAsyFC5jZmcuQWlTdHJpbmdLZXlEYXRhSAASNQoRQmxh", + "Y2tib2FyZEtleURhdGEYBCABKAsyGC5jZmcuQWlCbGFja2JvYXJkS2V5RGF0", + "YUgAQgcKBXZhbHVlIh8KDkFpRmxvYXRLZXlEYXRhEg0KBXZhbHVlGAEgAigC", + "Ih0KDEFpSW50S2V5RGF0YRINCgV2YWx1ZRgBIAIoBSIgCg9BaVN0cmluZ0tl", + "eURhdGESDQoFdmFsdWUYASACKAkiJAoTQWlCbGFja2JvYXJkS2V5RGF0YRIN", + "CgV2YWx1ZRgBIAIoCSJhChBBaVVlRm9yY2VTdWNjZXNzEgoKAmlkGAEgAigF", + "EhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9mbG93X2Fib3J0X21vZGUYAyACKA4y", + "FS5jZmcuQWlFRmxvd0Fib3J0TW9kZSKrAQoOQWlJc0F0TG9jYXRpb24SCgoC", + "aWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEi4KD2Zsb3dfYWJvcnRfbW9k", + "ZRgDIAIoDjIVLmNmZy5BaUVGbG93QWJvcnRNb2RlEhkKEWFjY2VwdGFibGVf", + "cmFkaXVzGAQgAigCEhQKDGtleWJvYXJkX2tleRgFIAIoCRIZChFpbnZlcnNl", + "X2NvbmRpdGlvbhgGIAIoCCK1AQoSQWlEaXN0YW5jZUxlc3NUaGFuEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIuCg9mbG93X2Fib3J0X21vZGUY", + "AyACKA4yFS5jZmcuQWlFRmxvd0Fib3J0TW9kZRISCgphY3RvcjFfa2V5GAQg", + "AigJEhIKCmFjdG9yMl9rZXkYBSACKAkSEAoIZGlzdGFuY2UYBiACKAISFgoO", + "cmV2ZXJzZV9yZXN1bHQYByACKAgi3QMKCkFpRmxvd05vZGUSIwoIU2VxdWVu", + "Y2UYDiABKAsyDy5jZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVjdG9yGA8gASgL", + "Mg8uY2ZnLkFpU2VsZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxlbBgQIAEoCzIV", + "LmNmZy5BaVNpbXBsZVBhcmFsbGVsSAASHwoGVWVXYWl0GBEgASgLMg0uY2Zn", + "LkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUYEiABKAsyGy5j", + "ZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVUb1RhcmdldBgT", + "IAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29zZVNraWxsGBQg", + "ASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9SYW5kb21Mb2Nh", + "dGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0aW9uSAASLwoO", + "TW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9Mb2NhdGlvbkgA", + "EicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1ByaW50SABCBwoF", + "dmFsdWUikwEKDUFpQ29tcG9zZU5vZGUSIwoIU2VxdWVuY2UYDiABKAsyDy5j", + "ZmcuQWlTZXF1ZW5jZUgAEiMKCFNlbGVjdG9yGA8gASgLMg8uY2ZnLkFpU2Vs", + "ZWN0b3JIABIvCg5TaW1wbGVQYXJhbGxlbBgQIAEoCzIVLmNmZy5BaVNpbXBs", + "ZVBhcmFsbGVsSABCBwoFdmFsdWUiogEKCkFpU2VxdWVuY2USCgoCaWQYASAC", + "KAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5j", + "ZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFp", + "U2VydmljZUICEAASJQoIY2hpbGRyZW4YBSADKAsyDy5jZmcuQWlGbG93Tm9k", + "ZUICEAAiogEKCkFpU2VsZWN0b3ISCgoCaWQYASACKAUSEQoJbm9kZV9uYW1l", + "GAIgAigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JC", + "AhAAEiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASJQoI", + "Y2hpbGRyZW4YBSADKAsyDy5jZmcuQWlGbG93Tm9kZUICEAAi9AEKEEFpU2lt", + "cGxlUGFyYWxsZWwSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigK", + "CmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNl", + "cnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASJwoLZmluaXNoX21v", + "ZGUYBSACKA4yEi5jZmcuQWlFRmluaXNoTW9kZRIeCgltYWluX3Rhc2sYBiAC", + "KAsyCy5jZmcuQWlUYXNrEigKD2JhY2tncm91bmRfbm9kZRgHIAIoCzIPLmNm", + "Zy5BaUZsb3dOb2RlIt4CCgZBaVRhc2sSHwoGVWVXYWl0GBEgASgLMg0uY2Zn", + "LkFpVWVXYWl0SAASOwoUVWVXYWl0QmxhY2tib2FyZFRpbWUYEiABKAsyGy5j", + "ZmcuQWlVZVdhaXRCbGFja2JvYXJkVGltZUgAEisKDE1vdmVUb1RhcmdldBgT", + "IAEoCzITLmNmZy5BaU1vdmVUb1RhcmdldEgAEikKC0Nob29zZVNraWxsGBQg", + "ASgLMhIuY2ZnLkFpQ2hvb3NlU2tpbGxIABI7ChRNb3ZlVG9SYW5kb21Mb2Nh", + "dGlvbhgVIAEoCzIbLmNmZy5BaU1vdmVUb1JhbmRvbUxvY2F0aW9uSAASLwoO", + "TW92ZVRvTG9jYXRpb24YFiABKAsyFS5jZmcuQWlNb3ZlVG9Mb2NhdGlvbkgA", + "EicKCkRlYnVnUHJpbnQYFyABKAsyES5jZmcuQWlEZWJ1Z1ByaW50SABCBwoF", + "dmFsdWUiwwEKCEFpVWVXYWl0EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFtZRgC", + "IAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAuY2ZnLkFpRGVjb3JhdG9yQgIQ", + "ABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5BaVNlcnZpY2VCAhAAEhsKE2ln", + "bm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSEQoJd2FpdF90aW1lGAYgAigCEhgK", + "EHJhbmRvbV9kZXZpYXRpb24YByACKAIivAEKFkFpVWVXYWl0QmxhY2tib2Fy", + "ZFRpbWUSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRlY29y", + "YXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZpY2Vz", + "GAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3RhcnRf", + "c2VsZhgFIAIoCBIWCg5ibGFja2JvYXJkX2tleRgGIAIoCSLRAQoOQWlNb3Zl", + "VG9UYXJnZXQSCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIgAigJEigKCmRl", + "Y29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAAEiQKCHNlcnZp", + "Y2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdub3JlX3Jlc3Rh", + "cnRfc2VsZhgFIAIoCBIYChB0YXJnZXRfYWN0b3Jfa2V5GAYgAigJEhkKEWFj", + "Y2VwdGFibGVfcmFkaXVzGAcgAigCItIBCg1BaUNob29zZVNraWxsEgoKAmlk", + "GAEgAigFEhEKCW5vZGVfbmFtZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygL", + "MhAuY2ZnLkFpRGVjb3JhdG9yQgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNm", + "Zy5BaVNlcnZpY2VCAhAAEhsKE2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgS", + "GAoQdGFyZ2V0X2FjdG9yX2tleRgGIAIoCRIbChNyZXN1bHRfc2tpbGxfaWRf", + "a2V5GAcgAigJItEBChZBaU1vdmVUb1JhbmRvbUxvY2F0aW9uEgoKAmlkGAEg", + "AigFEhEKCW5vZGVfbmFtZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAu", + "Y2ZnLkFpRGVjb3JhdG9yQgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5B", + "aVNlcnZpY2VCAhAAEhsKE2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSGwoT", + "b3JpZ2luX3Bvc2l0aW9uX2tleRgGIAIoCRIOCgZyYWRpdXMYByACKAIiuQEK", + "EEFpTW92ZVRvTG9jYXRpb24SCgoCaWQYASACKAUSEQoJbm9kZV9uYW1lGAIg", + "AigJEigKCmRlY29yYXRvcnMYAyADKAsyEC5jZmcuQWlEZWNvcmF0b3JCAhAA", + "EiQKCHNlcnZpY2VzGAQgAygLMg4uY2ZnLkFpU2VydmljZUICEAASGwoTaWdu", + "b3JlX3Jlc3RhcnRfc2VsZhgFIAIoCBIZChFhY2NlcHRhYmxlX3JhZGl1cxgG", + "IAIoAiKoAQoMQWlEZWJ1Z1ByaW50EgoKAmlkGAEgAigFEhEKCW5vZGVfbmFt", + "ZRgCIAIoCRIoCgpkZWNvcmF0b3JzGAMgAygLMhAuY2ZnLkFpRGVjb3JhdG9y", + "QgIQABIkCghzZXJ2aWNlcxgEIAMoCzIOLmNmZy5BaVNlcnZpY2VCAhAAEhsK", + "E2lnbm9yZV9yZXN0YXJ0X3NlbGYYBSACKAgSDAoEdGV4dBgGIAIoCSLPBAoS", + "Q29tbW9uR2xvYmFsQ29uZmlnEhQKDGJhZ19jYXBhY2l0eRgBIAIoBRIcChRi", + "YWdfY2FwYWNpdHlfc3BlY2lhbBgCIAIoBRIkChxiYWdfdGVtcF9leHBlbmRh", + "YmxlX2NhcGFjaXR5GAMgAigFEh4KFmJhZ190ZW1wX3Rvb2xfY2FwYWNpdHkY", + "BCACKAUSGQoRYmFnX2luaXRfY2FwYWNpdHkYBSACKAUSGgoScXVpY2tfYmFn", + "X2NhcGFjaXR5GAYgAigFEhoKEmNsb3RoX2JhZ19jYXBhY2l0eRgHIAIoBRIf", + "ChdjbG90aF9iYWdfaW5pdF9jYXBhY2l0eRgIIAIoBRIiChpjbG90aF9iYWdf", + "Y2FwYWNpdHlfc3BlY2lhbBgJIAIoBRIeChZiYWdfaW5pdF9pdGVtc19kcm9w", + "X2lkGAogASgFEhkKEW1haWxfYm94X2NhcGFjaXR5GAsgAigFEhYKDmRhbWFn", + "ZV9wYXJhbV9jGAwgAigCEhYKDmRhbWFnZV9wYXJhbV9lGA0gAigCEhYKDmRh", + "bWFnZV9wYXJhbV9mGA4gAigCEhYKDmRhbWFnZV9wYXJhbV9kGA8gAigCEhIK", + "CnJvbGVfc3BlZWQYECACKAISFQoNbW9uc3Rlcl9zcGVlZBgRIAIoAhITCgtp", + "bml0X2VuZXJneRgSIAIoBRIUCgxpbml0X3ZpYWxpdHkYEyACKAUSEwoLbWF4", + "X3ZpYWxpdHkYFCACKAUSIQoZcGVyX3ZpYWxpdHlfcmVjb3ZlcnlfdGltZRgV", + "IAIoBSKPAgoISXRlbUl0ZW0SCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIn", + "CgptYWpvcl90eXBlGAMgAigOMhMuY2ZnLkl0ZW1FTWFqb3JUeXBlEicKCm1p", + "bm9yX3R5cGUYBCACKA4yEy5jZmcuSXRlbUVNaW5vclR5cGUSFAoMbWF4X3Bp", + "bGVfbnVtGAUgAigFEiYKB3F1YWxpdHkYBiACKA4yFS5jZmcuSXRlbUVJdGVt", + "UXVhbGl0eRIMCgRpY29uGAcgAigJEhYKDmljb25fYmFja2dyb3VkGAggAigJ", + "EhEKCWljb25fbWFzaxgJIAIoCRIMCgRkZXNjGAogAigJEhIKCnNob3dfb3Jk", + "ZXIYCyACKAUiKAoMTDEwbkwxME5EZW1vEgoKAmlkGAEgAigFEgwKBHRleHQY", + "AiACKAkiKgoNTDEwblBhdGNoRGVtbxIKCgJpZBgBIAIoBRINCgV2YWx1ZRgC", + "IAIoBSInCgpUYWdUZXN0VGFnEgoKAmlkGAEgAigFEg0KBXZhbHVlGAIgAigJ", + "It0DCg1UZXN0RGVtb1R5cGUyEgoKAng0GAEgAigFEgoKAngxGAIgAigIEgoK", + "AngyGAMgAigFEgoKAngzGAQgAigFEgoKAng1GAUgAigDEgoKAng2GAYgAigC", + "EgoKAng3GAcgAigBEgwKBHg4XzAYCCACKAUSCgoCeDgYCSACKAUSCgoCeDkY", + "CiACKAMSCwoDeDEwGAsgAigJEh8KA3gxMhgMIAIoCzISLmNmZy5UZXN0RGVt", + "b1R5cGUxEh4KA3gxMxgNIAIoDjIRLmNmZy5UZXN0RGVtb0VudW0SIQoDeDE0", + "GA4gAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIKCgJzMRgPIAIoCRIKCgJ0", + "MRgQIAIoAxIOCgJrMRgRIAMoBUICEAESDgoCazIYEiADKAVCAhABEg4KAms1", + "GBMgAygFQgIQARImCgJrOBgUIAMoCzIaLmNmZy5UZXN0RGVtb1R5cGUyLks4", + "RW50cnkSHwoCazkYFSADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASJQoDazE1", + "GBYgAygLMhQuY2ZnLlRlc3REZW1vRHluYW1pY0ICEAAaKQoHSzhFbnRyeRIL", + "CgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIhsKDVRlc3REZW1vVHlw", + "ZTESCgoCeDEYASACKAUirwEKD1Rlc3REZW1vRHluYW1pYxIhCgZEZW1vRDIY", + "ASABKAsyDy5jZmcuVGVzdERlbW9EMkgAEiEKBkRlbW9FMRgCIAEoCzIPLmNm", + "Zy5UZXN0RGVtb0UxSAASKgoIUm9sZUluZm8YAyABKAsyFi5jZmcuVGVzdExv", + "Z2luUm9sZUluZm9IABIhCgZEZW1vRDUYBCABKAsyDy5jZmcuVGVzdERlbW9E", + "NUgAQgcKBXZhbHVlIiQKClRlc3REZW1vRDISCgoCeDEYASACKAUSCgoCeDIY", + "AiACKAUiZAoKVGVzdERlbW9EMxIhCgZEZW1vRTEYAiABKAsyDy5jZmcuVGVz", + "dERlbW9FMUgAEioKCFJvbGVJbmZvGAMgASgLMhYuY2ZnLlRlc3RMb2dpblJv", + "bGVJbmZvSABCBwoFdmFsdWUiMAoKVGVzdERlbW9FMRIKCgJ4MRgBIAIoBRIK", + "CgJ4MxgCIAIoBRIKCgJ4NBgDIAIoBSI8ChFUZXN0TG9naW5Sb2xlSW5mbxIK", + "CgJ4MRgBIAIoBRIKCgJ4MxgCIAIoBRIPCgdyb2xlX2lkGAMgAigDIj4KClRl", + "c3REZW1vRDUSCgoCeDEYASACKAUSJAoEdGltZRgCIAIoCzIWLmNmZy5UZXN0", + "RGF0ZVRpbWVSYW5nZSI5ChFUZXN0RGF0ZVRpbWVSYW5nZRISCgpzdGFydF90", + "aW1lGAEgAigDEhAKCGVuZF90aW1lGAIgAigDIiQKClRlc3REZW1vRTISCgoC", + "eTEYASABKAUSCgoCeTIYAiACKAgiVQoVVGVzdERlbW9TaW5nbGV0b25UeXBl", + "EgoKAmlkGAEgAigFEgwKBG5hbWUYAiACKAkSIgoEZGF0ZRgDIAIoCzIULmNm", + "Zy5UZXN0RGVtb0R5bmFtaWMiKAoQVGVzdE5vdEluZGV4TGlzdBIJCgF4GAEg", + "AigFEgkKAXkYAiACKAUiWwoXVGVzdE11bHRpVW5pb25JbmRleExpc3QSCwoD", + "aWQxGAEgAigFEgsKA2lkMhgCIAIoAxILCgNpZDMYAyACKAkSCwoDbnVtGAQg", + "AigFEgwKBGRlc2MYBSACKAkiVgoSVGVzdE11bHRpSW5kZXhMaXN0EgsKA2lk", + "MRgBIAIoBRILCgNpZDIYAiACKAMSCwoDaWQzGAMgAigJEgsKA251bRgEIAIo", + "BRIMCgRkZXNjGAUgAigJIvIEChJUZXN0TXVsdGlSb3dSZWNvcmQSCgoCaWQY", + "ASACKAUSDAoEbmFtZRgCIAIoCRIsCghvbmVfcm93cxgDIAMoCzIWLmNmZy5U", + "ZXN0TXVsdGlSb3dUeXBlMUICEAASLwoLbXVsdGlfcm93czEYBCADKAsyFi5j", + "ZmcuVGVzdE11bHRpUm93VHlwZTFCAhAAEi8KC211bHRpX3Jvd3MyGAUgAygL", + "MhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUxQgIQABI8CgttdWx0aV9yb3dzNBgG", + "IAMoCzInLmNmZy5UZXN0TXVsdGlSb3dSZWNvcmQuTXVsdGlSb3dzNEVudHJ5", + "Ei8KC211bHRpX3Jvd3M1GAcgAygLMhYuY2ZnLlRlc3RNdWx0aVJvd1R5cGUz", + "QgIQABI8CgttdWx0aV9yb3dzNhgIIAMoCzInLmNmZy5UZXN0TXVsdGlSb3dS", + "ZWNvcmQuTXVsdGlSb3dzNkVudHJ5EjwKC211bHRpX3Jvd3M3GAkgAygLMicu", + "Y2ZnLlRlc3RNdWx0aVJvd1JlY29yZC5NdWx0aVJvd3M3RW50cnkaSQoPTXVs", + "dGlSb3dzNEVudHJ5EgsKA2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIWLmNm", + "Zy5UZXN0TXVsdGlSb3dUeXBlMjoCOAEaSQoPTXVsdGlSb3dzNkVudHJ5EgsK", + "A2tleRgBIAEoBRIlCgV2YWx1ZRgCIAEoCzIWLmNmZy5UZXN0TXVsdGlSb3dU", + "eXBlMjoCOAEaMQoPTXVsdGlSb3dzN0VudHJ5EgsKA2tleRgBIAEoBRINCgV2", + "YWx1ZRgCIAEoBToCOAEiKgoRVGVzdE11bHRpUm93VHlwZTESCgoCaWQYASAC", + "KAUSCQoBeBgCIAIoBSI1ChFUZXN0TXVsdGlSb3dUeXBlMhIKCgJpZBgBIAIo", + "BRIJCgF4GAIgAigFEgkKAXkYAyACKAIiSgoRVGVzdE11bHRpUm93VHlwZTMS", + "CgoCaWQYASACKAUSKQoFaXRlbXMYAiADKAsyFi5jZmcuVGVzdE11bHRpUm93", + "VHlwZTFCAhAAImwKE1Rlc3RUZXN0TXVsdGlDb2x1bW4SCgoCaWQYASACKAUS", + "FwoBYRgCIAIoCzIMLmNmZy5UZXN0Rm9vEhcKAWIYAyACKAsyDC5jZmcuVGVz", + "dEZvbxIXCgFjGAQgAigLMgwuY2ZnLlRlc3RGb28iLQoHVGVzdEZvbxIKCgJ5", + "MRgBIAIoBRIKCgJ5MhgCIAIoBRIKCgJ5MxgDIAIoBSK4AQoRVGVzdE11bHRp", + "Um93VGl0bGUSCgoCaWQYASACKAUSDAoEbmFtZRgCIAIoCRIXCgJ4MRgDIAIo", + "CzILLmNmZy5UZXN0SDESGQoEeDJfMBgEIAEoCzILLmNmZy5UZXN0SDISGwoC", + "eDIYBSADKAsyCy5jZmcuVGVzdEgyQgIQABIbCgJ4MxgGIAMoCzILLmNmZy5U", + "ZXN0SDJCAhAAEhsKAng0GAcgAygLMgsuY2ZnLlRlc3RIMkICEAAiLQoGVGVz", + "dEgxEhcKAnkyGAEgAigLMgsuY2ZnLlRlc3RIMhIKCgJ5MxgCIAIoBSIgCgZU", + "ZXN0SDISCgoCejIYASACKAUSCgoCejMYAiACKAUinwEKDFRlc3RUZXN0TnVs", + "bBIKCgJpZBgBIAIoBRIKCgJ4MRgCIAEoBRIdCgJ4MhgDIAEoDjIRLmNmZy5U", + "ZXN0RGVtb0VudW0SHgoCeDMYBCABKAsyEi5jZmcuVGVzdERlbW9UeXBlMRIg", + "CgJ4NBgFIAEoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWMSCgoCczEYBiABKAkS", + "CgoCczIYByABKAki4wEKG1Rlc3REZW1vUHJpbWl0aXZlVHlwZXNUYWJsZRIK", + "CgJ4MRgBIAIoCBIKCgJ4MhgCIAIoBRIKCgJ4MxgDIAIoBRIKCgJ4NBgEIAIo", + "BRIKCgJ4NRgFIAIoAxIKCgJ4NhgGIAIoAhIKCgJ4NxgHIAIoARIKCgJzMRgI", + "IAIoCRIKCgJzMhgJIAIoCRIYCgJ2MhgKIAIoCzIMLmNmZy52ZWN0b3IyEhgK", + "AnYzGAsgAigLMgwuY2ZnLnZlY3RvcjMSGAoCdjQYDCACKAsyDC5jZmcudmVj", + "dG9yNBIKCgJ0MRgNIAIoAyIfCgd2ZWN0b3IyEgkKAXgYASACKAISCQoBeRgC", + "IAIoAiIqCgd2ZWN0b3IzEgkKAXgYASACKAISCQoBeRgCIAIoAhIJCgF6GAMg", + "AigCIjUKB3ZlY3RvcjQSCQoBeBgBIAIoAhIJCgF5GAIgAigCEgkKAXoYAyAC", + "KAISCQoBdxgEIAIoAiJyCg5UZXN0VGVzdFN0cmluZxIKCgJpZBgBIAIoBRIK", + "CgJzMRgCIAIoCRIjCgNjczEYAyACKAsyFi5jZmcuVGVzdENvbXBhY3RTdHJp", + "bmcSIwoDY3MyGAQgAigLMhYuY2ZnLlRlc3RDb21wYWN0U3RyaW5nIjcKEVRl", + "c3RDb21wYWN0U3RyaW5nEgoKAmlkGAEgAigFEgoKAnMyGAIgAigJEgoKAnMz", + "GAMgAigJImwKDVRlc3REZW1vR3JvdXASCgoCaWQYASACKAUSCgoCeDEYAiAC", + "KAUSCgoCeDIYAyACKAUSCgoCeDMYBCACKAUSCgoCeDQYBSACKAUSHwoCeDUY", + "BiACKAsyEy5jZmcuVGVzdElubmVyR3JvdXAiQAoOVGVzdElubmVyR3JvdXAS", + "CgoCeTEYASACKAUSCgoCeTIYAiACKAUSCgoCeTMYAyACKAUSCgoCeTQYBCAC", + "KAUiOwoOVGVzdFRlc3RHbG9iYWwSFAoMdW5sb2NrX2VxdWlwGAEgAigFEhMK", + "C3VubG9ja19oZXJvGAIgAigFIioKDVRlc3RUZXN0QmVSZWYSCgoCaWQYASAC", + "KAUSDQoFY291bnQYAiACKAUixgMKC1Rlc3RUZXN0UmVmEgoKAmlkGAEgAigF", + "EgoKAngxGAIgAigFEgwKBHgxXzIYAyACKAUSCgoCeDIYBCACKAUSCgoCeDMY", + "BSACKAUSCgoCeDQYBiACKAUSDgoCYTEYByADKAVCAhABEg4KAmEyGAggAygF", + "QgIQARIOCgJiMRgJIAMoBUICEAESDgoCYjIYCiADKAVCAhABEg4KAmMxGAsg", + "AygFQgIQARIOCgJjMhgMIAMoBUICEAESJAoCZDEYDSADKAsyGC5jZmcuVGVz", + "dFRlc3RSZWYuRDFFbnRyeRIkCgJkMhgOIAMoCzIYLmNmZy5UZXN0VGVzdFJl", + "Zi5EMkVudHJ5EgoKAmUxGA8gAigFEgoKAmUyGBAgAigDEgoKAmUzGBEgAigJ", + "EgoKAmYxGBIgAigFEgoKAmYyGBMgAigDEgoKAmYzGBQgAigJEiMKAnMxGBUg", + "AigLMhcuY2ZnLlRlc3RSZWZEeW5hbWljQmFzZRopCgdEMUVudHJ5EgsKA2tl", + "eRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaKQoHRDJFbnRyeRILCgNrZXkY", + "ASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIkIKElRlc3RSZWZEeW5hbWljQmFz", + "ZRIjCgdSZWZCZWFuGAEgASgLMhAuY2ZnLlRlc3RSZWZCZWFuSABCBwoFdmFs", + "dWUiKQoLVGVzdFJlZkJlYW4SCQoBeBgBIAIoBRIPCgNhcnIYAiADKAVCAhAB", + "IpwBCgxUZXN0VGVzdFNpemUSCgoCaWQYASACKAUSDgoCeDEYAiADKAVCAhAB", + "Eg4KAngyGAMgAygFQgIQARIOCgJ4MxgEIAMoBUICEAESJQoCeDQYBSADKAsy", + "GS5jZmcuVGVzdFRlc3RTaXplLlg0RW50cnkaKQoHWDRFbnRyeRILCgNrZXkY", + "ASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIngKC1Rlc3RUZXN0U2V0EgoKAmlk", + "GAEgAigFEgoKAngwGAIgAigJEg4KAngxGAMgAygFQgIQARIOCgJ4MhgEIAMo", + "A0ICEAESDgoCeDMYBSADKAlCAhAAEiEKAng0GAYgAygOMhEuY2ZnLlRlc3RE", + "ZW1vRW51bUICEAAiLgoSVGVzdERldGVjdEVuY29kaW5nEgoKAmlkGAEgAigF", + "EgwKBG5hbWUYAiACKAkiiAEKDFRlc3RJdGVtQmFzZRIdCgRJdGVtGAEgASgL", + "Mg0uY2ZnLlRlc3RJdGVtSAASJwoJRXF1aXBtZW50GAIgASgLMhIuY2ZnLlRl", + "c3RFcXVpcG1lbnRIABInCglEZWNvcmF0b3IYAyABKAsyEi5jZmcuVGVzdERl", + "Y29yYXRvckgAQgcKBXZhbHVlIk4KCFRlc3RJdGVtEgoKAmlkGAEgAigFEgwK", + "BG5hbWUYAiACKAkSDAoEZGVzYxgDIAIoCRILCgNudW0YBCACKAUSDQoFcHJp", + "Y2UYBSACKAUiZwoNVGVzdEVxdWlwbWVudBIKCgJpZBgBIAIoBRIMCgRuYW1l", + "GAIgAigJEgwKBGRlc2MYAyACKAkSHwoEYXR0chgEIAIoDjIRLmNmZy5UZXN0", + "RGVtb0VudW0SDQoFdmFsdWUYBSACKAUiSQoNVGVzdERlY29yYXRvchIKCgJp", + "ZBgBIAIoBRIMCgRuYW1lGAIgAigJEgwKBGRlc2MYAyACKAkSEAoIZHVyYXRp", + "b24YBCACKAUiQQoNVGVzdFRlc3RJbmRleBIKCgJpZBgBIAIoBRIkCgRlbGVz", + "GAIgAygLMhIuY2ZnLlRlc3REZW1vVHlwZTFCAhAAIt0CCgtUZXN0VGVzdE1h", + "cBIKCgJpZBgBIAIoBRIkCgJ4MRgCIAMoCzIYLmNmZy5UZXN0VGVzdE1hcC5Y", + "MUVudHJ5EiQKAngyGAMgAygLMhguY2ZnLlRlc3RUZXN0TWFwLlgyRW50cnkS", + "JAoCeDMYBCADKAsyGC5jZmcuVGVzdFRlc3RNYXAuWDNFbnRyeRIkCgJ4NBgF", + "IAMoCzIYLmNmZy5UZXN0VGVzdE1hcC5YNEVudHJ5GikKB1gxRW50cnkSCwoD", + "a2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ARopCgdYMkVudHJ5EgsKA2tl", + "eRgBIAEoAxINCgV2YWx1ZRgCIAEoBToCOAEaKQoHWDNFbnRyeRILCgNrZXkY", + "ASABKAkSDQoFdmFsdWUYAiABKAU6AjgBGikKB1g0RW50cnkSCwoDa2V5GAEg", + "ASgFEg0KBXZhbHVlGAIgASgFOgI4ASL6AgoRVGVzdEV4Y2VsRnJvbUpzb24S", + "CgoCeDQYASACKAUSCgoCeDEYAiACKAgSCgoCeDUYAyACKAMSCgoCeDYYBCAC", + "KAISCgoCczEYBSACKAkSCgoCczIYBiACKAkSCgoCdDEYByACKAMSHwoDeDEy", + "GAggAigLMhIuY2ZnLlRlc3REZW1vVHlwZTESHgoDeDEzGAkgAigOMhEuY2Zn", + "LlRlc3REZW1vRW51bRIhCgN4MTQYCiACKAsyFC5jZmcuVGVzdERlbW9EeW5h", + "bWljEg4KAmsxGAsgAygFQgIQARIqCgJrOBgMIAMoCzIeLmNmZy5UZXN0RXhj", + "ZWxGcm9tSnNvbi5LOEVudHJ5Eh8KAms5GA0gAygLMg8uY2ZnLlRlc3REZW1v", + "RTJCAhAAEiUKA2sxNRgOIAMoCzIULmNmZy5UZXN0RGVtb0R5bmFtaWNCAhAA", + "GikKB0s4RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASIw", + "ChdUZXN0Q29tcG9zaXRlSnNvblRhYmxlMRIKCgJpZBgBIAIoBRIJCgF4GAIg", + "AigJIjAKF1Rlc3RDb21wb3NpdGVKc29uVGFibGUyEgoKAmlkGAEgAigFEgkK", + "AXkYAiACKAUiLwoXVGVzdENvbXBvc2l0ZUpzb25UYWJsZTMSCQoBYRgBIAIo", + "BRIJCgFiGAIgAigFIlcKGVRlc3RFeGNlbEZyb21Kc29uTXVsdGlSb3cSCgoC", + "aWQYASACKAUSCQoBeBgCIAIoBRIjCgVpdGVtcxgDIAMoCzIQLmNmZy5UZXN0", + "VGVzdFJvd0ICEAAiWAoLVGVzdFRlc3RSb3cSCQoBeBgBIAIoBRIJCgF5GAIg", + "AigIEgkKAXoYAyACKAkSGQoBYRgEIAIoCzIOLmNmZy5UZXN0VGVzdDMSDQoB", + "YhgFIAMoBUICEAEiIQoJVGVzdFRlc3QzEgkKAXgYASACKAUSCQoBeRgCIAIo", + "BSKdAQoYVGVzdFRlc3RTY3JpcHRhYmxlT2JqZWN0EgoKAmlkGAEgAigFEgwK", + "BGRlc2MYAiACKAkSDAoEcmF0ZRgDIAIoAhILCgNudW0YBCACKAUSGAoCdjIY", + "BSACKAsyDC5jZmcudmVjdG9yMhIYCgJ2MxgGIAIoCzIMLmNmZy52ZWN0b3Iz", + "EhgKAnY0GAcgAigLMgwuY2ZnLnZlY3RvcjQiWgoOVGVzdFRlc3RNYXBwZXIS", + "CgoCaWQYASACKAUSIgoKYXVkaW9fdHlwZRgCIAIoDjIOLmNmZy5BdWRpb1R5", + "cGUSGAoCdjIYAyACKAsyDC5jZmcudmVjdG9yMiLYAwoQRGVmaW5lRnJvbUV4", + "Y2VsMhIKCgJpZBgBIAIoBRIKCgJ4MRgCIAIoCBIKCgJ4NRgDIAIoAxIKCgJ4", + "NhgEIAIoAhIKCgJ4OBgFIAIoBRILCgN4MTAYBiACKAkSHgoDeDEzGAcgAigO", + "MhEuY2ZnLlRlc3REZW1vRW51bRIgCgV4MTNfMhgIIAIoDjIRLmNmZy5UZXN0", + "RGVtb0ZsYWcSIQoDeDE0GAkgAigLMhQuY2ZnLlRlc3REZW1vRHluYW1pYxIb", + "CgN4MTUYCiACKAsyDi5jZmcuVGVzdFNoYXBlEhgKAnYyGAsgAigLMgwuY2Zn", + "LnZlY3RvcjISCgoCdDEYDCACKAMSDgoCazEYDSADKAVCAhABEg4KAmsyGA4g", + "AygFQgIQARIpCgJrOBgPIAMoCzIdLmNmZy5EZWZpbmVGcm9tRXhjZWwyLks4", + "RW50cnkSHwoCazkYECADKAsyDy5jZmcuVGVzdERlbW9FMkICEAASHQoDazEw", + "GBEgAygLMgwuY2ZnLnZlY3RvcjNCAhAAEh0KA2sxMRgSIAMoCzIMLmNmZy52", + "ZWN0b3I0QgIQABopCgdLOEVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgC", + "IAEoBToCOAEiYQoJVGVzdFNoYXBlEiEKBkNpcmNsZRgBIAEoCzIPLmNmZy5U", + "ZXN0Q2lyY2xlSAASKAoJUmVjdGFuZ2xlGAIgASgLMhMuY2ZnLlRlc3QyUmVj", + "dGFuZ2xlSABCBwoFdmFsdWUiHAoKVGVzdENpcmNsZRIOCgZyYWRpdXMYASAC", + "KAIiLwoOVGVzdDJSZWN0YW5nbGUSDQoFd2lkdGgYASACKAISDgoGaGVpZ2h0", + "GAIgAigCIjoKDkFpVGJCbGFja2JvYXJkEigKCWRhdGFfbGlzdBgBIAMoCzIR", + "LmNmZy5BaUJsYWNrYm9hcmRCAhAAIj4KEEFpVGJCZWhhdmlvclRyZWUSKgoJ", + "ZGF0YV9saXN0GAEgAygLMhMuY2ZnLkFpQmVoYXZpb3JUcmVlQgIQACJGChRD", + "b21tb25UYkdsb2JhbENvbmZpZxIuCglkYXRhX2xpc3QYASADKAsyFy5jZmcu", + "Q29tbW9uR2xvYmFsQ29uZmlnQgIQACIyCgpJdGVtVGJJdGVtEiQKCWRhdGFf", + "bGlzdBgBIAMoCzINLmNmZy5JdGVtSXRlbUICEAAiOgoOTDEwblRiTDEwTkRl", + "bW8SKAoJZGF0YV9saXN0GAEgAygLMhEuY2ZnLkwxMG5MMTBORGVtb0ICEAAi", + "PAoPTDEwblRiUGF0Y2hEZW1vEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5M", + "MTBuUGF0Y2hEZW1vQgIQACI2CgxUYWdUYlRlc3RUYWcSJgoJZGF0YV9saXN0", + "GAEgAygLMg8uY2ZnLlRhZ1Rlc3RUYWdCAhAAIjwKD1Rlc3RUYkZ1bGxUeXBl", + "cxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9UeXBlMkICEAAi", + "RAoPVGVzdFRiU2luZ2xldG9uEjEKCWRhdGFfbGlzdBgBIAMoCzIaLmNmZy5U", + "ZXN0RGVtb1NpbmdsZXRvblR5cGVCAhAAIkIKElRlc3RUYk5vdEluZGV4TGlz", + "dBIsCglkYXRhX2xpc3QYASADKAsyFS5jZmcuVGVzdE5vdEluZGV4TGlzdEIC", + "EAAiUAoZVGVzdFRiTXVsdGlVbmlvbkluZGV4TGlzdBIzCglkYXRhX2xpc3QY", + "ASADKAsyHC5jZmcuVGVzdE11bHRpVW5pb25JbmRleExpc3RCAhAAIkYKFFRl", + "c3RUYk11bHRpSW5kZXhMaXN0Ei4KCWRhdGFfbGlzdBgBIAMoCzIXLmNmZy5U", + "ZXN0TXVsdGlJbmRleExpc3RCAhAAIj8KElRlc3RUYkRhdGFGcm9tTWlzYxIp", + "CglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9UeXBlMkICEAAiRgoU", + "VGVzdFRiTXVsdGlSb3dSZWNvcmQSLgoJZGF0YV9saXN0GAEgAygLMhcuY2Zn", + "LlRlc3RNdWx0aVJvd1JlY29yZEICEAAiSAoVVGVzdFRiVGVzdE11bHRpQ29s", + "dW1uEi8KCWRhdGFfbGlzdBgBIAMoCzIYLmNmZy5UZXN0VGVzdE11bHRpQ29s", + "dW1uQgIQACJEChNUZXN0VGJNdWx0aVJvd1RpdGxlEi0KCWRhdGFfbGlzdBgB", + "IAMoCzIWLmNmZy5UZXN0TXVsdGlSb3dUaXRsZUICEAAiOgoOVGVzdFRiVGVz", + "dE51bGwSKAoJZGF0YV9saXN0GAEgAygLMhEuY2ZnLlRlc3RUZXN0TnVsbEIC", + "EAAiTgoTVGVzdFRiRGVtb1ByaW1pdGl2ZRI3CglkYXRhX2xpc3QYASADKAsy", + "IC5jZmcuVGVzdERlbW9QcmltaXRpdmVUeXBlc1RhYmxlQgIQACI+ChBUZXN0", + "VGJUZXN0U3RyaW5nEioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5UZXN0VGVz", + "dFN0cmluZ0ICEAAiPAoPVGVzdFRiRGVtb0dyb3VwEikKCWRhdGFfbGlzdBgB", + "IAMoCzISLmNmZy5UZXN0RGVtb0dyb3VwQgIQACI+ChFUZXN0VGJEZW1vR3Jv", + "dXBfQxIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVzdERlbW9Hcm91cEIC", + "EAAiPgoRVGVzdFRiRGVtb0dyb3VwX1MSKQoJZGF0YV9saXN0GAEgAygLMhIu", + "Y2ZnLlRlc3REZW1vR3JvdXBCAhAAIj4KEVRlc3RUYkRlbW9Hcm91cF9FEikK", + "CWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0RGVtb0dyb3VwQgIQACI+ChBU", + "ZXN0VGJUZXN0R2xvYmFsEioKCWRhdGFfbGlzdBgBIAMoCzITLmNmZy5UZXN0", + "VGVzdEdsb2JhbEICEAAiPAoPVGVzdFRiVGVzdEJlUmVmEikKCWRhdGFfbGlz", + "dBgBIAMoCzISLmNmZy5UZXN0VGVzdEJlUmVmQgIQACI9ChBUZXN0VGJUZXN0", + "QmVSZWYyEikKCWRhdGFfbGlzdBgBIAMoCzISLmNmZy5UZXN0VGVzdEJlUmVm", + "QgIQACI4Cg1UZXN0VGJUZXN0UmVmEicKCWRhdGFfbGlzdBgBIAMoCzIQLmNm", + "Zy5UZXN0VGVzdFJlZkICEAAiOgoOVGVzdFRiVGVzdFNpemUSKAoJZGF0YV9s", + "aXN0GAEgAygLMhEuY2ZnLlRlc3RUZXN0U2l6ZUICEAAiOAoNVGVzdFRiVGVz", + "dFNldBInCglkYXRhX2xpc3QYASADKAsyEC5jZmcuVGVzdFRlc3RTZXRCAhAA", + "IkkKF1Rlc3RUYkRldGVjdENzdkVuY29kaW5nEi4KCWRhdGFfbGlzdBgBIAMo", + "CzIXLmNmZy5UZXN0RGV0ZWN0RW5jb2RpbmdCAhAAIjcKC1Rlc3RUYkl0ZW0y", + "EigKCWRhdGFfbGlzdBgBIAMoCzIRLmNmZy5UZXN0SXRlbUJhc2VCAhAAIjwK", + "D1Rlc3RUYlRlc3RJbmRleBIpCglkYXRhX2xpc3QYASADKAsyEi5jZmcuVGVz", + "dFRlc3RJbmRleEICEAAiOAoNVGVzdFRiVGVzdE1hcBInCglkYXRhX2xpc3QY", + "ASADKAsyEC5jZmcuVGVzdFRlc3RNYXBCAhAAIkQKE1Rlc3RUYkV4Y2VsRnJv", + "bUpzb24SLQoJZGF0YV9saXN0GAEgAygLMhYuY2ZnLlRlc3RFeGNlbEZyb21K", + "c29uQgIQACJQChlUZXN0VGJDb21wb3NpdGVKc29uVGFibGUxEjMKCWRhdGFf", + "bGlzdBgBIAMoCzIcLmNmZy5UZXN0Q29tcG9zaXRlSnNvblRhYmxlMUICEAAi", + "UAoZVGVzdFRiQ29tcG9zaXRlSnNvblRhYmxlMhIzCglkYXRhX2xpc3QYASAD", + "KAsyHC5jZmcuVGVzdENvbXBvc2l0ZUpzb25UYWJsZTJCAhAAIlAKGVRlc3RU", + "YkNvbXBvc2l0ZUpzb25UYWJsZTMSMwoJZGF0YV9saXN0GAEgAygLMhwuY2Zn", + "LlRlc3RDb21wb3NpdGVKc29uVGFibGUzQgIQACJUChtUZXN0VGJFeGNlbEZy", + "b21Kc29uTXVsdGlSb3cSNQoJZGF0YV9saXN0GAEgAygLMh4uY2ZnLlRlc3RF", + "eGNlbEZyb21Kc29uTXVsdGlSb3dCAhAAIlIKGlRlc3RUYlRlc3RTY3JpcHRh", + "YmxlT2JqZWN0EjQKCWRhdGFfbGlzdBgBIAMoCzIdLmNmZy5UZXN0VGVzdFNj", + "cmlwdGFibGVPYmplY3RCAhAAIj4KEFRlc3RUYlRlc3RNYXBwZXISKgoJZGF0", + "YV9saXN0GAEgAygLMhMuY2ZnLlRlc3RUZXN0TWFwcGVyQgIQACJGChZUZXN0", + "VGJEZWZpbmVGcm9tRXhjZWwyEiwKCWRhdGFfbGlzdBgBIAMoCzIVLmNmZy5E", + "ZWZpbmVGcm9tRXhjZWwyQgIQACo9CgtBaUVFeGVjdXRvchIWChJBaUVFeGVj", + "dXRvcl9DTElFTlQQABIWChJBaUVFeGVjdXRvcl9TRVJWRVIQASroAQoKQWlF", + "S2V5VHlwZRITCg9BaUVLZXlUeXBlX0JPT0wQARISCg5BaUVLZXlUeXBlX0lO", + "VBACEhQKEEFpRUtleVR5cGVfRkxPQVQQAxIVChFBaUVLZXlUeXBlX1NUUklO", + "RxAEEhUKEUFpRUtleVR5cGVfVkVDVE9SEAUSFgoSQWlFS2V5VHlwZV9ST1RB", + "VE9SEAYSEwoPQWlFS2V5VHlwZV9OQU1FEAcSFAoQQWlFS2V5VHlwZV9DTEFT", + "UxAIEhMKD0FpRUtleVR5cGVfRU5VTRAJEhUKEUFpRUtleVR5cGVfT0JKRUNU", + "EAoqiAEKEEFpRUZsb3dBYm9ydE1vZGUSGQoVQWlFRmxvd0Fib3J0TW9kZV9O", + "T05FEAASIwofQWlFRmxvd0Fib3J0TW9kZV9MT1dFUl9QUklPUklUWRABEhkK", + "FUFpRUZsb3dBYm9ydE1vZGVfU0VMRhACEhkKFUFpRUZsb3dBYm9ydE1vZGVf", + "Qk9USBADKkcKDUFpRUZpbmlzaE1vZGUSGwoXQWlFRmluaXNoTW9kZV9JTU1F", + "RElBVEUQABIZChVBaUVGaW5pc2hNb2RlX0RFTEFZRUQQASpuChVBaUVOb3Rp", + "ZnlPYnNlcnZlck1vZGUSKQolQWlFTm90aWZ5T2JzZXJ2ZXJNb2RlX09OX1ZB", + "TFVFX0NIQU5HRRAAEioKJkFpRU5vdGlmeU9ic2VydmVyTW9kZV9PTl9SRVNV", + "TFRfQ0hBTkdFEAEqlQIKC0FpRU9wZXJhdG9yEhsKF0FpRU9wZXJhdG9yX0lT", + "X0VRVUFMX1RPEAASHwobQWlFT3BlcmF0b3JfSVNfTk9UX0VRVUFMX1RPEAES", + "HAoYQWlFT3BlcmF0b3JfSVNfTEVTU19USEFOEAISKAokQWlFT3BlcmF0b3Jf", + "SVNfTEVTU19USEFOX09SX0VRVUFMX1RPEAMSHQoZQWlFT3BlcmF0b3JfSVNf", + "R1JFQVRfVEhBThAEEikKJUFpRU9wZXJhdG9yX0lTX0dSRUFUX1RIQU5fT1Jf", + "RVFVQUxfVE8QBRIYChRBaUVPcGVyYXRvcl9DT05UQUlOUxAGEhwKGEFpRU9w", + "ZXJhdG9yX05PVF9DT05UQUlOUxAHKkkKCUF1ZGlvVHlwZRIVChFBdWRpb1R5", + "cGVfVU5LTk9XThAAEhEKDUF1ZGlvVHlwZV9BQ0MQARISCg5BdWRpb1R5cGVf", + "QUlGRhACKk4KE0NvbW1vbkVCb29sT3BlcmF0b3ISGwoXQ29tbW9uRUJvb2xP", + "cGVyYXRvcl9BTkQQABIaChZDb21tb25FQm9vbE9wZXJhdG9yX09SEAEqnwEK", + "EEl0ZW1FSXRlbVF1YWxpdHkSGgoWSXRlbUVJdGVtUXVhbGl0eV9XSElURRAA", + "EhoKFkl0ZW1FSXRlbVF1YWxpdHlfR1JFRU4QARIZChVJdGVtRUl0ZW1RdWFs", + "aXR5X0JMVUUQAhIbChdJdGVtRUl0ZW1RdWFsaXR5X1BVUlBMRRADEhsKF0l0", + "ZW1FSXRlbVF1YWxpdHlfR09MREVOEAQqqgEKEUl0ZW1FQ3VycmVuY3lUeXBl", + "Eh0KGUl0ZW1FQ3VycmVuY3lUeXBlX0RJQU1PTkQQARIaChZJdGVtRUN1cnJl", + "bmN5VHlwZV9HT0xEEAISHAoYSXRlbUVDdXJyZW5jeVR5cGVfU0lMVkVSEAMS", + "GQoVSXRlbUVDdXJyZW5jeVR5cGVfRVhQEAQSIQodSXRlbUVDdXJyZW5jeVR5", + "cGVfUE9XRVJfUE9JTlQQBSrbAgoOSXRlbUVNYWpvclR5cGUSGwoXSXRlbUVN", + "YWpvclR5cGVfQ1VSUkVOQ1kQARIYChRJdGVtRU1ham9yVHlwZV9DTE9USBAC", + "EhgKFEl0ZW1FTWFqb3JUeXBlX1FVRVNUEAMSHgoaSXRlbUVNYWpvclR5cGVf", + "Q09OU1VNQUJMRVMQBBIfChtJdGVtRU1ham9yVHlwZV9UUkVBU1VSRV9CT1gQ", + "BRIoCiRJdGVtRU1ham9yVHlwZV9BQ0hJRVZFTUVOVF9BTkRfVElUTEUQBhId", + "ChlJdGVtRU1ham9yVHlwZV9IRUFEX0ZSQU1FEAcSGAoUSXRlbUVNYWpvclR5", + "cGVfVk9JQ0UQCBIZChVJdGVtRU1ham9yVHlwZV9BQ1RJT04QCRIcChhJdGVt", + "RU1ham9yVHlwZV9FWFBBTlNJT04QChIbChdJdGVtRU1ham9yVHlwZV9NQVRF", + "UklBTBALKo8MCg5JdGVtRU1pbm9yVHlwZRIaChZJdGVtRU1pbm9yVHlwZV9E", + "SUFNT05EEGUSFwoTSXRlbUVNaW5vclR5cGVfR09MRBBmEhkKFUl0ZW1FTWlu", + "b3JUeXBlX1NJTFZFUhBnEhYKEkl0ZW1FTWlub3JUeXBlX0VYUBBoEh4KGkl0", + "ZW1FTWlub3JUeXBlX1BPV0VSX1BPSU5UEGkSHgoZSXRlbUVNaW5vclR5cGVf", + "SEFJUl9TVFlMRRDSARIYChNJdGVtRU1pbm9yVHlwZV9DT0FUENwBEiAKG0l0", + "ZW1FTWlub3JUeXBlX1VQUEVSX0pBQ0tFVBDmARIcChdJdGVtRU1pbm9yVHlw", + "ZV9UUk9VU0VSUxDxARIZChRJdGVtRU1pbm9yVHlwZV9TS0lSVBDyARIZChRJ", + "dGVtRU1pbm9yVHlwZV9TT0NLUxD6ARIZChRJdGVtRU1pbm9yVHlwZV9TSE9F", + "UxCEAhIiCh1JdGVtRU1pbm9yVHlwZV9IQUlSX0FDQ0VTU09SWRCPAhIXChJJ", + "dGVtRU1pbm9yVHlwZV9IQVQQkAISGwoWSXRlbUVNaW5vclR5cGVfRUFSUklO", + "RxCRAhIcChdJdGVtRU1pbm9yVHlwZV9ORUNLTEFDRRCSAhIcChdJdGVtRU1p", + "bm9yVHlwZV9CUkFDRUxFVBCTAhIeChlJdGVtRU1pbm9yVHlwZV9IQUlSX0NM", + "QVNQEJQCEhkKFEl0ZW1FTWlub3JUeXBlX0dMT1ZFEJUCEiMKHkl0ZW1FTWlu", + "b3JUeXBlX0hBTkRIRUxEX09CSkVDVBCWAhIbChZJdGVtRU1pbm9yVHlwZV9T", + "UEVDSUFMEJcCEiEKHEl0ZW1FTWlub3JUeXBlX0JBU0VfQ09TTUVUSUMQmQIS", + "JAofSXRlbUVNaW5vclR5cGVfRVlFQlJPV19DT1NNRVRJQxCaAhIbChZJdGVt", + "RU1pbm9yVHlwZV9FWUVMQVNIEJsCEisKJkl0ZW1FTWlub3JUeXBlX0NPU01F", + "VElDX0NPTlRBQ1RfTEVOU0VTEJwCEiAKG0l0ZW1FTWlub3JUeXBlX0xJUF9D", + "T1NNRVRJQxCdAhIeChlJdGVtRU1pbm9yVHlwZV9TS0lOX0NPTE9SEJ4CEiMK", + "Hkl0ZW1FTWlub3JUeXBlX09ORV9QSUVDRV9EUkVTUxCiAhIoCiNJdGVtRU1p", + "bm9yVHlwZV9TV0lUQ0hfQ0xPVEhFU19TQ0VORRCjAhIZChRJdGVtRU1pbm9y", + "VHlwZV9RVUVTVBCtAhIYChNJdGVtRU1pbm9yVHlwZV9DQVNUEJEDEhkKFEl0", + "ZW1FTWlub3JUeXBlX1NXT1JEEKUDEh0KGEl0ZW1FTWlub3JUeXBlX0JPV19B", + "UlJPVxCmAxIZChRJdGVtRU1pbm9yVHlwZV9XQU5EUxCnAxIgChtJdGVtRU1p", + "bm9yVHlwZV9TUEVDSUFMX1RPT0wQqAMSGAoTSXRlbUVNaW5vclR5cGVfRk9P", + "RBCTAxIgChtJdGVtRU1pbm9yVHlwZV9UUkVBU1VSRV9CT1gQ9QMSFwoSSXRl", + "bUVNaW5vclR5cGVfS0VZEPYDEi0KKEl0ZW1FTWlub3JUeXBlX01VTFRJX0NI", + "T09TRV9UUkVBU1VSRV9CT1gQ9wMSHwoaSXRlbUVNaW5vclR5cGVfQUNISUVW", + "RU1FTlQQ2QQSGQoUSXRlbUVNaW5vclR5cGVfVElUTEUQ2gQSIAobSXRlbUVN", + "aW5vclR5cGVfQVZBVEFSX0ZSQU1FEL0FEhkKFEl0ZW1FTWlub3JUeXBlX1ZP", + "SUNFEKEGEh0KGEl0ZW1FTWlub3JUeXBlX0lETEVfUE9TRRCFBxIeChlJdGVt", + "RU1pbm9yVHlwZV9QSE9UT19QT1NFEIYHEhcKEkl0ZW1FTWlub3JUeXBlX0JB", + "RxDpBxIjCh5JdGVtRU1pbm9yVHlwZV9GUklFTkRfQ0FQQUNJVFkQ6gcSKQok", + "SXRlbUVNaW5vclR5cGVfQ09OU1RSVUNUSU9OX01BVEVSSUFMEM0IEiIKHUl0", + "ZW1FTWlub3JUeXBlX0RFU0lHTl9EUkFXSU5HEM4IKqMDChxJdGVtRUNsb3Ro", + "ZXJzU3RhclF1YWxpdHlUeXBlEiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0", + "eVR5cGVfT05FEAESJAogSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9U", + "V08QAhImCiJJdGVtRUNsb3RoZXJzU3RhclF1YWxpdHlUeXBlX1RIUkVFEAMS", + "JQohSXRlbUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9GT1VSEAQSJQohSXRl", + "bUVDbG90aGVyc1N0YXJRdWFsaXR5VHlwZV9GSVZFEAUSJAogSXRlbUVDbG90", + "aGVyc1N0YXJRdWFsaXR5VHlwZV9TSVgQBhImCiJJdGVtRUNsb3RoZXJzU3Rh", + "clF1YWxpdHlUeXBlX1NFVkVOEAcSJgoiSXRlbUVDbG90aGVyc1N0YXJRdWFs", + "aXR5VHlwZV9FSUdIVBAIEiUKIUl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5", + "cGVfTklORRAJEiQKIEl0ZW1FQ2xvdGhlcnNTdGFyUXVhbGl0eVR5cGVfVEVO", + "EAoqTwoQSXRlbUVDbG90aGVyc1RhZxIeChpJdGVtRUNsb3RoZXJzVGFnX0ZB", + "TkdfU0hBSRABEhsKF0l0ZW1FQ2xvdGhlcnNUYWdfV1VfWkhFEAIqPgoMSXRl", + "bUVVc2VUeXBlEhcKE0l0ZW1FVXNlVHlwZV9NQU5VQUwQABIVChFJdGVtRVVz", + "ZVR5cGVfQVVUTxABKtACChhJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGUSIgoe", + "SXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0NIRVNUEAASIQodSXRlbUVDbG90", + "aGVzSGlkZVBhcnRUeXBlX0hFQUQQARIoCiRJdGVtRUNsb3RoZXNIaWRlUGFy", + "dFR5cGVfU1BJTkVfVVBQRVIQAhIoCiRJdGVtRUNsb3RoZXNIaWRlUGFydFR5", + "cGVfU1BJTkVfTE9XRVIQAxIgChxJdGVtRUNsb3RoZXNIaWRlUGFydFR5cGVf", + "SElQEAQSJgoiSXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0xFR19VUFBFUhAF", + "EicKI0l0ZW1FQ2xvdGhlc0hpZGVQYXJ0VHlwZV9MRUdfTUlERExFEAYSJgoi", + "SXRlbUVDbG90aGVzSGlkZVBhcnRUeXBlX0xFR19MT1dFUhAHKpsDChhJdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGUSJQohSXRlbUVDbG90aGVzUHJvcGVydHlU", + "eXBlX0pJQU5fWVVFEAESIwofSXRlbUVDbG90aGVzUHJvcGVydHlUeXBlX0hV", + "QV9MSRACEiIKHkl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9LRV9BSRADEiYK", + "Ikl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9DSEVOR19TSFUQBBIjCh9JdGVt", + "RUNsb3RoZXNQcm9wZXJ0eVR5cGVfSFVPX1BPEAUSIwofSXRlbUVDbG90aGVz", + "UHJvcGVydHlUeXBlX1lPVV9ZQRAGEiYKIkl0ZW1FQ2xvdGhlc1Byb3BlcnR5", + "VHlwZV9RSU5HX0NIVU4QBxIlCiFJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVf", + "WElOR19HQU4QCBInCiNJdGVtRUNsb3RoZXNQcm9wZXJ0eVR5cGVfUUlOR19M", + "SUFORxAJEiUKIUl0ZW1FQ2xvdGhlc1Byb3BlcnR5VHlwZV9CQU9fTlVBThAK", + "KnUKDFRlc3REZW1vRW51bRIVChFUZXN0RGVtb0VudW1fTk9ORRAAEhIKDlRl", + "c3REZW1vRW51bV9BEAESEgoOVGVzdERlbW9FbnVtX0IQAhISCg5UZXN0RGVt", + "b0VudW1fQxAEEhIKDlRlc3REZW1vRW51bV9EEAUqXgoMVGVzdERlbW9GbGFn", + "EhIKDlRlc3REZW1vRmxhZ19BEAESEgoOVGVzdERlbW9GbGFnX0IQAhISCg5U", + "ZXN0RGVtb0ZsYWdfQxAEEhIKDlRlc3REZW1vRmxhZ19EEAgqRwoPVGVzdEVU", + "ZXN0VWVUeXBlEhkKFVRlc3RFVGVzdFVlVHlwZV9XSElURRAAEhkKFVRlc3RF", + "VGVzdFVlVHlwZV9CTEFDSxABKj4KElRlc3RFVGVzdEVtcHR5RW51bRIoCiRU", + "ZXN0RVRlc3RFbXB0eUVudW1fRU1QVFlfUExBQ0VIT0xERVIQACp+ChNUZXN0", + "RVRlc3RFbXB0eUVudW0yEicKIlRlc3RFVGVzdEVtcHR5RW51bTJfU01BTExf", + "VEhBTl8yNTYQ/wESHgoZVGVzdEVUZXN0RW1wdHlFbnVtMl9YXzI1NhCAAhIe", + "ChlUZXN0RVRlc3RFbXB0eUVudW0yX1hfMjU3EIECKnIKEFRlc3RFVGVzdFF1", + "YWxpdHkSFgoSVGVzdEVUZXN0UXVhbGl0eV9BEAESFgoSVGVzdEVUZXN0UXVh", + "bGl0eV9CEAISFgoSVGVzdEVUZXN0UXVhbGl0eV9DEAMSFgoSVGVzdEVUZXN0", + "UXVhbGl0eV9EEAQqlwEKDlRlc3RBY2Nlc3NGbGFnEhgKFFRlc3RBY2Nlc3NG", + "bGFnX1dSSVRFEAESFwoTVGVzdEFjY2Vzc0ZsYWdfUkVBRBACEhsKF1Rlc3RB", + "Y2Nlc3NGbGFnX1RSVU5DQVRFEAQSFgoSVGVzdEFjY2Vzc0ZsYWdfTkVXEAgS", + "HQoZVGVzdEFjY2Vzc0ZsYWdfUkVBRF9XUklURRAD")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Cfg.AiEExecutor), typeof(global::Cfg.AiEKeyType), typeof(global::Cfg.AiEFlowAbortMode), typeof(global::Cfg.AiEFinishMode), typeof(global::Cfg.AiENotifyObserverMode), typeof(global::Cfg.AiEOperator), typeof(global::Cfg.AudioType), typeof(global::Cfg.CommonEBoolOperator), typeof(global::Cfg.ItemEItemQuality), typeof(global::Cfg.ItemECurrencyType), typeof(global::Cfg.ItemEMajorType), typeof(global::Cfg.ItemEMinorType), typeof(global::Cfg.ItemEClothersStarQualityType), typeof(global::Cfg.ItemEClothersTag), typeof(global::Cfg.ItemEUseType), typeof(global::Cfg.ItemEClothesHidePartType), typeof(global::Cfg.ItemEClothesPropertyType), typeof(global::Cfg.TestDemoEnum), typeof(global::Cfg.TestDemoFlag), typeof(global::Cfg.TestETestUeType), typeof(global::Cfg.TestETestEmptyEnum), typeof(global::Cfg.TestETestEmptyEnum2), typeof(global::Cfg.TestETestQuality), typeof(global::Cfg.TestAccessFlag), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestExcelBean1), global::Cfg.TestTestExcelBean1.Parser, new[]{ "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboard), global::Cfg.AiBlackboard.Parser, new[]{ "Name", "Desc", "ParentName", "Keys" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKey), global::Cfg.AiBlackboardKey.Parser, new[]{ "Name", "Desc", "IsStatic", "Type", "TypeClassName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBehaviorTree), global::Cfg.AiBehaviorTree.Parser, new[]{ "Id", "Name", "Desc", "BlackboardId", "Root" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiNode), global::Cfg.AiNode.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps", "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan", "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiService), global::Cfg.AiService.Parser, new[]{ "UeSetDefaultFocus", "ExecuteTimeStatistic", "ChooseTarget", "KeepFaceTarget", "GetOwnerPlayer", "UpdateDailyBehaviorProps" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeSetDefaultFocus), global::Cfg.AiUeSetDefaultFocus.Parser, new[]{ "Id", "NodeName", "KeyboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiExecuteTimeStatistic), global::Cfg.AiExecuteTimeStatistic.Parser, new[]{ "Id", "NodeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseTarget), global::Cfg.AiChooseTarget.Parser, new[]{ "Id", "NodeName", "ResultTargetKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeepFaceTarget), global::Cfg.AiKeepFaceTarget.Parser, new[]{ "Id", "NodeName", "TargetActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiGetOwnerPlayer), global::Cfg.AiGetOwnerPlayer.Parser, new[]{ "Id", "NodeName", "PlayerActorKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUpdateDailyBehaviorProps), global::Cfg.AiUpdateDailyBehaviorProps.Parser, new[]{ "Id", "NodeName", "SatietyKey", "EnergyKey", "MoodKey", "SatietyLowerThresholdKey", "SatietyUpperThresholdKey", "EnergyLowerThresholdKey", "EnergyUpperThresholdKey", "MoodLowerThresholdKey", "MoodUpperThresholdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDecorator), global::Cfg.AiDecorator.Parser, new[]{ "UeLoop", "UeCooldown", "UeTimeLimit", "UeBlackboard", "UeForceSuccess", "IsAtLocation", "DistanceLessThan" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeLoop), global::Cfg.AiUeLoop.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NumLoops", "InfiniteLoop", "InfiniteLoopTimeoutTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeCooldown), global::Cfg.AiUeCooldown.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "CooldownTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeTimeLimit), global::Cfg.AiUeTimeLimit.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "LimitTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeBlackboard), global::Cfg.AiUeBlackboard.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "NotifyObserver", "BlackboardKey", "KeyQuery" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyQueryOperator), global::Cfg.AiKeyQueryOperator.Parser, new[]{ "IsSet", "IsNotSet", "BinaryOperator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsSet), global::Cfg.AiIsSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsNotSet), global::Cfg.AiIsNotSet.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBinaryOperator), global::Cfg.AiBinaryOperator.Parser, new[]{ "Oper", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiKeyData), global::Cfg.AiKeyData.Parser, new[]{ "FloatKeyData", "IntKeyData", "StringKeyData", "BlackboardKeyData" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFloatKeyData), global::Cfg.AiFloatKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIntKeyData), global::Cfg.AiIntKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiStringKeyData), global::Cfg.AiStringKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiBlackboardKeyData), global::Cfg.AiBlackboardKeyData.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeForceSuccess), global::Cfg.AiUeForceSuccess.Parser, new[]{ "Id", "NodeName", "FlowAbortMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiIsAtLocation), global::Cfg.AiIsAtLocation.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "AcceptableRadius", "KeyboardKey", "InverseCondition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDistanceLessThan), global::Cfg.AiDistanceLessThan.Parser, new[]{ "Id", "NodeName", "FlowAbortMode", "Actor1Key", "Actor2Key", "Distance", "ReverseResult" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiFlowNode), global::Cfg.AiFlowNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel", "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiComposeNode), global::Cfg.AiComposeNode.Parser, new[]{ "Sequence", "Selector", "SimpleParallel" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSequence), global::Cfg.AiSequence.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSelector), global::Cfg.AiSelector.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "Children" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiSimpleParallel), global::Cfg.AiSimpleParallel.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "FinishMode", "MainTask", "BackgroundNode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTask), global::Cfg.AiTask.Parser, new[]{ "UeWait", "UeWaitBlackboardTime", "MoveToTarget", "ChooseSkill", "MoveToRandomLocation", "MoveToLocation", "DebugPrint" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWait), global::Cfg.AiUeWait.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "WaitTime", "RandomDeviation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiUeWaitBlackboardTime), global::Cfg.AiUeWaitBlackboardTime.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "BlackboardKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToTarget), global::Cfg.AiMoveToTarget.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiChooseSkill), global::Cfg.AiChooseSkill.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "TargetActorKey", "ResultSkillIdKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToRandomLocation), global::Cfg.AiMoveToRandomLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "OriginPositionKey", "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiMoveToLocation), global::Cfg.AiMoveToLocation.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "AcceptableRadius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiDebugPrint), global::Cfg.AiDebugPrint.Parser, new[]{ "Id", "NodeName", "Decorators", "Services", "IgnoreRestartSelf", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonGlobalConfig), global::Cfg.CommonGlobalConfig.Parser, new[]{ "BagCapacity", "BagCapacitySpecial", "BagTempExpendableCapacity", "BagTempToolCapacity", "BagInitCapacity", "QuickBagCapacity", "ClothBagCapacity", "ClothBagInitCapacity", "ClothBagCapacitySpecial", "BagInitItemsDropId", "MailBoxCapacity", "DamageParamC", "DamageParamE", "DamageParamF", "DamageParamD", "RoleSpeed", "MonsterSpeed", "InitEnergy", "InitViality", "MaxViality", "PerVialityRecoveryTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemItem), global::Cfg.ItemItem.Parser, new[]{ "Id", "Name", "MajorType", "MinorType", "MaxPileNum", "Quality", "Icon", "IconBackgroud", "IconMask", "Desc", "ShowOrder" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nL10NDemo), global::Cfg.L10nL10NDemo.Parser, new[]{ "Id", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nPatchDemo), global::Cfg.L10nPatchDemo.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTestTag), global::Cfg.TagTestTag.Parser, new[]{ "Id", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType2), global::Cfg.TestDemoType2.Parser, new[]{ "X4", "X1", "X2", "X3", "X5", "X6", "X7", "X80", "X8", "X9", "X10", "X12", "X13", "X14", "S1", "T1", "K1", "K2", "K5", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoType1), global::Cfg.TestDemoType1.Parser, new[]{ "X1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoDynamic), global::Cfg.TestDemoDynamic.Parser, new[]{ "DemoD2", "DemoE1", "RoleInfo", "DemoD5" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD2), global::Cfg.TestDemoD2.Parser, new[]{ "X1", "X2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD3), global::Cfg.TestDemoD3.Parser, new[]{ "DemoE1", "RoleInfo" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE1), global::Cfg.TestDemoE1.Parser, new[]{ "X1", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestLoginRoleInfo), global::Cfg.TestLoginRoleInfo.Parser, new[]{ "X1", "X3", "RoleId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoD5), global::Cfg.TestDemoD5.Parser, new[]{ "X1", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDateTimeRange), global::Cfg.TestDateTimeRange.Parser, new[]{ "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoE2), global::Cfg.TestDemoE2.Parser, new[]{ "Y1", "Y2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoSingletonType), global::Cfg.TestDemoSingletonType.Parser, new[]{ "Id", "Name", "Date" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestNotIndexList), global::Cfg.TestNotIndexList.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiUnionIndexList), global::Cfg.TestMultiUnionIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiIndexList), global::Cfg.TestMultiIndexList.Parser, new[]{ "Id1", "Id2", "Id3", "Num", "Desc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowRecord), global::Cfg.TestMultiRowRecord.Parser, new[]{ "Id", "Name", "OneRows", "MultiRows1", "MultiRows2", "MultiRows4", "MultiRows5", "MultiRows6", "MultiRows7" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType1), global::Cfg.TestMultiRowType1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType2), global::Cfg.TestMultiRowType2.Parser, new[]{ "Id", "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowType3), global::Cfg.TestMultiRowType3.Parser, new[]{ "Id", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMultiColumn), global::Cfg.TestTestMultiColumn.Parser, new[]{ "Id", "A", "B", "C" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestFoo), global::Cfg.TestFoo.Parser, new[]{ "Y1", "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestMultiRowTitle), global::Cfg.TestMultiRowTitle.Parser, new[]{ "Id", "Name", "X1", "X20", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH1), global::Cfg.TestH1.Parser, new[]{ "Y2", "Y3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestH2), global::Cfg.TestH2.Parser, new[]{ "Z2", "Z3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestNull), global::Cfg.TestTestNull.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "S1", "S2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoPrimitiveTypesTable), global::Cfg.TestDemoPrimitiveTypesTable.Parser, new[]{ "X1", "X2", "X3", "X4", "X5", "X6", "X7", "S1", "S2", "V2", "V3", "V4", "T1" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector2), global::Cfg.vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector3), global::Cfg.vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.vector4), global::Cfg.vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestString), global::Cfg.TestTestString.Parser, new[]{ "Id", "S1", "Cs1", "Cs2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompactString), global::Cfg.TestCompactString.Parser, new[]{ "Id", "S2", "S3" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDemoGroup), global::Cfg.TestDemoGroup.Parser, new[]{ "Id", "X1", "X2", "X3", "X4", "X5" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestInnerGroup), global::Cfg.TestInnerGroup.Parser, new[]{ "Y1", "Y2", "Y3", "Y4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestGlobal), global::Cfg.TestTestGlobal.Parser, new[]{ "UnlockEquip", "UnlockHero" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestBeRef), global::Cfg.TestTestBeRef.Parser, new[]{ "Id", "Count" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRef), global::Cfg.TestTestRef.Parser, new[]{ "Id", "X1", "X12", "X2", "X3", "X4", "A1", "A2", "B1", "B2", "C1", "C2", "D1", "D2", "E1", "E2", "E3", "F1", "F2", "F3", "S1" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestRefDynamicBase), global::Cfg.TestRefDynamicBase.Parser, new[]{ "RefBean" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestRefBean), global::Cfg.TestRefBean.Parser, new[]{ "X", "Arr" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSize), global::Cfg.TestTestSize.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestSet), global::Cfg.TestTestSet.Parser, new[]{ "Id", "X0", "X1", "X2", "X3", "X4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDetectEncoding), global::Cfg.TestDetectEncoding.Parser, new[]{ "Id", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestItemBase), global::Cfg.TestItemBase.Parser, new[]{ "Item", "Equipment", "Decorator" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestItem), global::Cfg.TestItem.Parser, new[]{ "Id", "Name", "Desc", "Num", "Price" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestEquipment), global::Cfg.TestEquipment.Parser, new[]{ "Id", "Name", "Desc", "Attr", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestDecorator), global::Cfg.TestDecorator.Parser, new[]{ "Id", "Name", "Desc", "Duration" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestIndex), global::Cfg.TestTestIndex.Parser, new[]{ "Id", "Eles" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMap), global::Cfg.TestTestMap.Parser, new[]{ "Id", "X1", "X2", "X3", "X4" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJson), global::Cfg.TestExcelFromJson.Parser, new[]{ "X4", "X1", "X5", "X6", "S1", "S2", "T1", "X12", "X13", "X14", "K1", "K8", "K9", "K15" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable1), global::Cfg.TestCompositeJsonTable1.Parser, new[]{ "Id", "X" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable2), global::Cfg.TestCompositeJsonTable2.Parser, new[]{ "Id", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCompositeJsonTable3), global::Cfg.TestCompositeJsonTable3.Parser, new[]{ "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestExcelFromJsonMultiRow), global::Cfg.TestExcelFromJsonMultiRow.Parser, new[]{ "Id", "X", "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestRow), global::Cfg.TestTestRow.Parser, new[]{ "X", "Y", "Z", "A", "B" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTest3), global::Cfg.TestTest3.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestScriptableObject), global::Cfg.TestTestScriptableObject.Parser, new[]{ "Id", "Desc", "Rate", "Num", "V2", "V3", "V4" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTestMapper), global::Cfg.TestTestMapper.Parser, new[]{ "Id", "AudioType", "V2" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.DefineFromExcel2), global::Cfg.DefineFromExcel2.Parser, new[]{ "Id", "X1", "X5", "X6", "X8", "X10", "X13", "X132", "X14", "X15", "V2", "T1", "K1", "K2", "K8", "K9", "K10", "K11" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestShape), global::Cfg.TestShape.Parser, new[]{ "Circle", "Rectangle" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestCircle), global::Cfg.TestCircle.Parser, new[]{ "Radius" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.Test2Rectangle), global::Cfg.Test2Rectangle.Parser, new[]{ "Width", "Height" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBlackboard), global::Cfg.AiTbBlackboard.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.AiTbBehaviorTree), global::Cfg.AiTbBehaviorTree.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.CommonTbGlobalConfig), global::Cfg.CommonTbGlobalConfig.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.ItemTbItem), global::Cfg.ItemTbItem.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbL10NDemo), global::Cfg.L10nTbL10NDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.L10nTbPatchDemo), global::Cfg.L10nTbPatchDemo.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TagTbTestTag), global::Cfg.TagTbTestTag.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbFullTypes), global::Cfg.TestTbFullTypes.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbSingleton), global::Cfg.TestTbSingleton.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbNotIndexList), global::Cfg.TestTbNotIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiUnionIndexList), global::Cfg.TestTbMultiUnionIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiIndexList), global::Cfg.TestTbMultiIndexList.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDataFromMisc), global::Cfg.TestTbDataFromMisc.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowRecord), global::Cfg.TestTbMultiRowRecord.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMultiColumn), global::Cfg.TestTbTestMultiColumn.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbMultiRowTitle), global::Cfg.TestTbMultiRowTitle.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestNull), global::Cfg.TestTbTestNull.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoPrimitive), global::Cfg.TestTbDemoPrimitive.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestString), global::Cfg.TestTbTestString.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup), global::Cfg.TestTbDemoGroup.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_C), global::Cfg.TestTbDemoGroup_C.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_S), global::Cfg.TestTbDemoGroup_S.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDemoGroup_E), global::Cfg.TestTbDemoGroup_E.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestGlobal), global::Cfg.TestTbTestGlobal.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef), global::Cfg.TestTbTestBeRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestBeRef2), global::Cfg.TestTbTestBeRef2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestRef), global::Cfg.TestTbTestRef.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSize), global::Cfg.TestTbTestSize.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestSet), global::Cfg.TestTbTestSet.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDetectCsvEncoding), global::Cfg.TestTbDetectCsvEncoding.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbItem2), global::Cfg.TestTbItem2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestIndex), global::Cfg.TestTbTestIndex.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMap), global::Cfg.TestTbTestMap.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJson), global::Cfg.TestTbExcelFromJson.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable1), global::Cfg.TestTbCompositeJsonTable1.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable2), global::Cfg.TestTbCompositeJsonTable2.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbCompositeJsonTable3), global::Cfg.TestTbCompositeJsonTable3.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbExcelFromJsonMultiRow), global::Cfg.TestTbExcelFromJsonMultiRow.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestScriptableObject), global::Cfg.TestTbTestScriptableObject.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbTestMapper), global::Cfg.TestTbTestMapper.Parser, new[]{ "DataList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Cfg.TestTbDefineFromExcel2), global::Cfg.TestTbDefineFromExcel2.Parser, new[]{ "DataList" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum AiEExecutor { + [pbr::OriginalName("AiEExecutor_CLIENT")] Client = 0, + [pbr::OriginalName("AiEExecutor_SERVER")] Server = 1, + } + + public enum AiEKeyType { + [pbr::OriginalName("AiEKeyType_BOOL")] Bool = 1, + [pbr::OriginalName("AiEKeyType_INT")] Int = 2, + [pbr::OriginalName("AiEKeyType_FLOAT")] Float = 3, + [pbr::OriginalName("AiEKeyType_STRING")] String = 4, + [pbr::OriginalName("AiEKeyType_VECTOR")] Vector = 5, + [pbr::OriginalName("AiEKeyType_ROTATOR")] Rotator = 6, + [pbr::OriginalName("AiEKeyType_NAME")] Name = 7, + [pbr::OriginalName("AiEKeyType_CLASS")] Class = 8, + [pbr::OriginalName("AiEKeyType_ENUM")] Enum = 9, + [pbr::OriginalName("AiEKeyType_OBJECT")] Object = 10, + } + + public enum AiEFlowAbortMode { + [pbr::OriginalName("AiEFlowAbortMode_NONE")] None = 0, + [pbr::OriginalName("AiEFlowAbortMode_LOWER_PRIORITY")] LowerPriority = 1, + [pbr::OriginalName("AiEFlowAbortMode_SELF")] Self = 2, + [pbr::OriginalName("AiEFlowAbortMode_BOTH")] Both = 3, + } + + public enum AiEFinishMode { + [pbr::OriginalName("AiEFinishMode_IMMEDIATE")] Immediate = 0, + [pbr::OriginalName("AiEFinishMode_DELAYED")] Delayed = 1, + } + + public enum AiENotifyObserverMode { + [pbr::OriginalName("AiENotifyObserverMode_ON_VALUE_CHANGE")] OnValueChange = 0, + [pbr::OriginalName("AiENotifyObserverMode_ON_RESULT_CHANGE")] OnResultChange = 1, + } + + public enum AiEOperator { + [pbr::OriginalName("AiEOperator_IS_EQUAL_TO")] IsEqualTo = 0, + [pbr::OriginalName("AiEOperator_IS_NOT_EQUAL_TO")] IsNotEqualTo = 1, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN")] IsLessThan = 2, + [pbr::OriginalName("AiEOperator_IS_LESS_THAN_OR_EQUAL_TO")] IsLessThanOrEqualTo = 3, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN")] IsGreatThan = 4, + [pbr::OriginalName("AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO")] IsGreatThanOrEqualTo = 5, + [pbr::OriginalName("AiEOperator_CONTAINS")] Contains = 6, + [pbr::OriginalName("AiEOperator_NOT_CONTAINS")] NotContains = 7, + } + + public enum AudioType { + [pbr::OriginalName("AudioType_UNKNOWN")] Unknown = 0, + [pbr::OriginalName("AudioType_ACC")] Acc = 1, + [pbr::OriginalName("AudioType_AIFF")] Aiff = 2, + } + + public enum CommonEBoolOperator { + [pbr::OriginalName("CommonEBoolOperator_AND")] And = 0, + [pbr::OriginalName("CommonEBoolOperator_OR")] Or = 1, + } + + public enum ItemEItemQuality { + [pbr::OriginalName("ItemEItemQuality_WHITE")] White = 0, + [pbr::OriginalName("ItemEItemQuality_GREEN")] Green = 1, + [pbr::OriginalName("ItemEItemQuality_BLUE")] Blue = 2, + [pbr::OriginalName("ItemEItemQuality_PURPLE")] Purple = 3, + [pbr::OriginalName("ItemEItemQuality_GOLDEN")] Golden = 4, + } + + public enum ItemECurrencyType { + [pbr::OriginalName("ItemECurrencyType_DIAMOND")] Diamond = 1, + [pbr::OriginalName("ItemECurrencyType_GOLD")] Gold = 2, + [pbr::OriginalName("ItemECurrencyType_SILVER")] Silver = 3, + [pbr::OriginalName("ItemECurrencyType_EXP")] Exp = 4, + [pbr::OriginalName("ItemECurrencyType_POWER_POINT")] PowerPoint = 5, + } + + public enum ItemEMajorType { + [pbr::OriginalName("ItemEMajorType_CURRENCY")] Currency = 1, + [pbr::OriginalName("ItemEMajorType_CLOTH")] Cloth = 2, + [pbr::OriginalName("ItemEMajorType_QUEST")] Quest = 3, + [pbr::OriginalName("ItemEMajorType_CONSUMABLES")] Consumables = 4, + [pbr::OriginalName("ItemEMajorType_TREASURE_BOX")] TreasureBox = 5, + [pbr::OriginalName("ItemEMajorType_ACHIEVEMENT_AND_TITLE")] AchievementAndTitle = 6, + [pbr::OriginalName("ItemEMajorType_HEAD_FRAME")] HeadFrame = 7, + [pbr::OriginalName("ItemEMajorType_VOICE")] Voice = 8, + [pbr::OriginalName("ItemEMajorType_ACTION")] Action = 9, + [pbr::OriginalName("ItemEMajorType_EXPANSION")] Expansion = 10, + [pbr::OriginalName("ItemEMajorType_MATERIAL")] Material = 11, + } + + public enum ItemEMinorType { + [pbr::OriginalName("ItemEMinorType_DIAMOND")] Diamond = 101, + [pbr::OriginalName("ItemEMinorType_GOLD")] Gold = 102, + [pbr::OriginalName("ItemEMinorType_SILVER")] Silver = 103, + [pbr::OriginalName("ItemEMinorType_EXP")] Exp = 104, + [pbr::OriginalName("ItemEMinorType_POWER_POINT")] PowerPoint = 105, + [pbr::OriginalName("ItemEMinorType_HAIR_STYLE")] HairStyle = 210, + [pbr::OriginalName("ItemEMinorType_COAT")] Coat = 220, + [pbr::OriginalName("ItemEMinorType_UPPER_JACKET")] UpperJacket = 230, + [pbr::OriginalName("ItemEMinorType_TROUSERS")] Trousers = 241, + [pbr::OriginalName("ItemEMinorType_SKIRT")] Skirt = 242, + [pbr::OriginalName("ItemEMinorType_SOCKS")] Socks = 250, + [pbr::OriginalName("ItemEMinorType_SHOES")] Shoes = 260, + [pbr::OriginalName("ItemEMinorType_HAIR_ACCESSORY")] HairAccessory = 271, + [pbr::OriginalName("ItemEMinorType_HAT")] Hat = 272, + [pbr::OriginalName("ItemEMinorType_EARRING")] Earring = 273, + [pbr::OriginalName("ItemEMinorType_NECKLACE")] Necklace = 274, + [pbr::OriginalName("ItemEMinorType_BRACELET")] Bracelet = 275, + [pbr::OriginalName("ItemEMinorType_HAIR_CLASP")] HairClasp = 276, + [pbr::OriginalName("ItemEMinorType_GLOVE")] Glove = 277, + [pbr::OriginalName("ItemEMinorType_HANDHELD_OBJECT")] HandheldObject = 278, + [pbr::OriginalName("ItemEMinorType_SPECIAL")] Special = 279, + [pbr::OriginalName("ItemEMinorType_BASE_COSMETIC")] BaseCosmetic = 281, + [pbr::OriginalName("ItemEMinorType_EYEBROW_COSMETIC")] EyebrowCosmetic = 282, + [pbr::OriginalName("ItemEMinorType_EYELASH")] Eyelash = 283, + [pbr::OriginalName("ItemEMinorType_COSMETIC_CONTACT_LENSES")] CosmeticContactLenses = 284, + [pbr::OriginalName("ItemEMinorType_LIP_COSMETIC")] LipCosmetic = 285, + [pbr::OriginalName("ItemEMinorType_SKIN_COLOR")] SkinColor = 286, + [pbr::OriginalName("ItemEMinorType_ONE_PIECE_DRESS")] OnePieceDress = 290, + [pbr::OriginalName("ItemEMinorType_SWITCH_CLOTHES_SCENE")] SwitchClothesScene = 291, + [pbr::OriginalName("ItemEMinorType_QUEST")] Quest = 301, + [pbr::OriginalName("ItemEMinorType_CAST")] Cast = 401, + [pbr::OriginalName("ItemEMinorType_SWORD")] Sword = 421, + [pbr::OriginalName("ItemEMinorType_BOW_ARROW")] BowArrow = 422, + [pbr::OriginalName("ItemEMinorType_WANDS")] Wands = 423, + [pbr::OriginalName("ItemEMinorType_SPECIAL_TOOL")] SpecialTool = 424, + [pbr::OriginalName("ItemEMinorType_FOOD")] Food = 403, + [pbr::OriginalName("ItemEMinorType_TREASURE_BOX")] TreasureBox = 501, + [pbr::OriginalName("ItemEMinorType_KEY")] Key = 502, + [pbr::OriginalName("ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX")] MultiChooseTreasureBox = 503, + [pbr::OriginalName("ItemEMinorType_ACHIEVEMENT")] Achievement = 601, + [pbr::OriginalName("ItemEMinorType_TITLE")] Title = 602, + [pbr::OriginalName("ItemEMinorType_AVATAR_FRAME")] AvatarFrame = 701, + [pbr::OriginalName("ItemEMinorType_VOICE")] Voice = 801, + [pbr::OriginalName("ItemEMinorType_IDLE_POSE")] IdlePose = 901, + [pbr::OriginalName("ItemEMinorType_PHOTO_POSE")] PhotoPose = 902, + [pbr::OriginalName("ItemEMinorType_BAG")] Bag = 1001, + [pbr::OriginalName("ItemEMinorType_FRIEND_CAPACITY")] FriendCapacity = 1002, + [pbr::OriginalName("ItemEMinorType_CONSTRUCTION_MATERIAL")] ConstructionMaterial = 1101, + [pbr::OriginalName("ItemEMinorType_DESIGN_DRAWING")] DesignDrawing = 1102, + } + + public enum ItemEClothersStarQualityType { + [pbr::OriginalName("ItemEClothersStarQualityType_ONE")] One = 1, + [pbr::OriginalName("ItemEClothersStarQualityType_TWO")] Two = 2, + [pbr::OriginalName("ItemEClothersStarQualityType_THREE")] Three = 3, + [pbr::OriginalName("ItemEClothersStarQualityType_FOUR")] Four = 4, + [pbr::OriginalName("ItemEClothersStarQualityType_FIVE")] Five = 5, + [pbr::OriginalName("ItemEClothersStarQualityType_SIX")] Six = 6, + [pbr::OriginalName("ItemEClothersStarQualityType_SEVEN")] Seven = 7, + [pbr::OriginalName("ItemEClothersStarQualityType_EIGHT")] Eight = 8, + [pbr::OriginalName("ItemEClothersStarQualityType_NINE")] Nine = 9, + [pbr::OriginalName("ItemEClothersStarQualityType_TEN")] Ten = 10, + } + + public enum ItemEClothersTag { + [pbr::OriginalName("ItemEClothersTag_FANG_SHAI")] FangShai = 1, + [pbr::OriginalName("ItemEClothersTag_WU_ZHE")] WuZhe = 2, + } + + public enum ItemEUseType { + [pbr::OriginalName("ItemEUseType_MANUAL")] Manual = 0, + [pbr::OriginalName("ItemEUseType_AUTO")] Auto = 1, + } + + public enum ItemEClothesHidePartType { + [pbr::OriginalName("ItemEClothesHidePartType_CHEST")] Chest = 0, + [pbr::OriginalName("ItemEClothesHidePartType_HEAD")] Head = 1, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_UPPER")] SpineUpper = 2, + [pbr::OriginalName("ItemEClothesHidePartType_SPINE_LOWER")] SpineLower = 3, + [pbr::OriginalName("ItemEClothesHidePartType_HIP")] Hip = 4, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_UPPER")] LegUpper = 5, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_MIDDLE")] LegMiddle = 6, + [pbr::OriginalName("ItemEClothesHidePartType_LEG_LOWER")] LegLower = 7, + } + + public enum ItemEClothesPropertyType { + [pbr::OriginalName("ItemEClothesPropertyType_JIAN_YUE")] JianYue = 1, + [pbr::OriginalName("ItemEClothesPropertyType_HUA_LI")] HuaLi = 2, + [pbr::OriginalName("ItemEClothesPropertyType_KE_AI")] KeAi = 3, + [pbr::OriginalName("ItemEClothesPropertyType_CHENG_SHU")] ChengShu = 4, + [pbr::OriginalName("ItemEClothesPropertyType_HUO_PO")] HuoPo = 5, + [pbr::OriginalName("ItemEClothesPropertyType_YOU_YA")] YouYa = 6, + [pbr::OriginalName("ItemEClothesPropertyType_QING_CHUN")] QingChun = 7, + [pbr::OriginalName("ItemEClothesPropertyType_XING_GAN")] XingGan = 8, + [pbr::OriginalName("ItemEClothesPropertyType_QING_LIANG")] QingLiang = 9, + [pbr::OriginalName("ItemEClothesPropertyType_BAO_NUAN")] BaoNuan = 10, + } + + public enum TestDemoEnum { + [pbr::OriginalName("TestDemoEnum_NONE")] None = 0, + [pbr::OriginalName("TestDemoEnum_A")] A = 1, + [pbr::OriginalName("TestDemoEnum_B")] B = 2, + [pbr::OriginalName("TestDemoEnum_C")] C = 4, + [pbr::OriginalName("TestDemoEnum_D")] D = 5, + } + + public enum TestDemoFlag { + [pbr::OriginalName("TestDemoFlag_A")] A = 1, + [pbr::OriginalName("TestDemoFlag_B")] B = 2, + [pbr::OriginalName("TestDemoFlag_C")] C = 4, + [pbr::OriginalName("TestDemoFlag_D")] D = 8, + } + + public enum TestETestUeType { + [pbr::OriginalName("TestETestUeType_WHITE")] White = 0, + [pbr::OriginalName("TestETestUeType_BLACK")] Black = 1, + } + + public enum TestETestEmptyEnum { + [pbr::OriginalName("TestETestEmptyEnum_EMPTY_PLACEHOLDER")] EmptyPlaceholder = 0, + } + + public enum TestETestEmptyEnum2 { + [pbr::OriginalName("TestETestEmptyEnum2_SMALL_THAN_256")] SmallThan256 = 255, + [pbr::OriginalName("TestETestEmptyEnum2_X_256")] X256 = 256, + [pbr::OriginalName("TestETestEmptyEnum2_X_257")] X257 = 257, + } + + public enum TestETestQuality { + [pbr::OriginalName("TestETestQuality_A")] A = 1, + [pbr::OriginalName("TestETestQuality_B")] B = 2, + [pbr::OriginalName("TestETestQuality_C")] C = 3, + [pbr::OriginalName("TestETestQuality_D")] D = 4, + } + + public enum TestAccessFlag { + [pbr::OriginalName("TestAccessFlag_WRITE")] Write = 1, + [pbr::OriginalName("TestAccessFlag_READ")] Read = 2, + [pbr::OriginalName("TestAccessFlag_TRUNCATE")] Truncate = 4, + [pbr::OriginalName("TestAccessFlag_NEW")] New = 8, + [pbr::OriginalName("TestAccessFlag_READ_WRITE")] ReadWrite = 3, + } + + #endregion + + #region Messages + public sealed partial class TestTestExcelBean1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestExcelBean1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1(TestTestExcelBean1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestExcelBean1 Clone() { + return new TestTestExcelBean1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static string X2DefaultValue = ""; + + private string x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X2 { + get { return x2_ ?? X2DefaultValue; } + set { + x2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return x2_ != null; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + x2_ = null; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static float X4DefaultValue = 0F; + + private float x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestExcelBean1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestExcelBean1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X4, other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X4); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(18); + output.WriteString(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(37); + output.WriteFloat(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestExcelBean1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + X2 = input.ReadString(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 37: { + X4 = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard(AiBlackboard other) : this() { + name_ = other.name_; + desc_ = other.desc_; + parentName_ = other.parentName_; + keys_ = other.keys_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboard Clone() { + return new AiBlackboard(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "parent_name" field. + public const int ParentNameFieldNumber = 3; + private readonly static string ParentNameDefaultValue = ""; + + private string parentName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParentName { + get { return parentName_ ?? ParentNameDefaultValue; } + set { + parentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "parent_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParentName { + get { return parentName_ != null; } + } + /// Clears the value of the "parent_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParentName() { + parentName_ = null; + } + + /// Field number for the "keys" field. + public const int KeysFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_keys_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiBlackboardKey.Parser); + private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Keys { + get { return keys_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (ParentName != other.ParentName) return false; + if(!keys_.Equals(other.keys_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasParentName) hash ^= ParentName.GetHashCode(); + hash ^= keys_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasParentName) { + output.WriteRawTag(26); + output.WriteString(ParentName); + } + keys_.WriteTo(ref output, _repeated_keys_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasParentName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentName); + } + size += keys_.CalculateSize(_repeated_keys_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboard other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasParentName) { + ParentName = other.ParentName; + } + keys_.Add(other.keys_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(input, _repeated_keys_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 26: { + ParentName = input.ReadString(); + break; + } + case 34: { + keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKey()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey(AiBlackboardKey other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + desc_ = other.desc_; + isStatic_ = other.isStatic_; + type_ = other.type_; + typeClassName_ = other.typeClassName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKey Clone() { + return new AiBlackboardKey(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "is_static" field. + public const int IsStaticFieldNumber = 3; + private readonly static bool IsStaticDefaultValue = false; + + private bool isStatic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsStatic { + get { if ((_hasBits0 & 1) != 0) { return isStatic_; } else { return IsStaticDefaultValue; } } + set { + _hasBits0 |= 1; + isStatic_ = value; + } + } + /// Gets whether the "is_static" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsStatic { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "is_static" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsStatic() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private readonly static global::Cfg.AiEKeyType TypeDefaultValue = global::Cfg.AiEKeyType.Bool; + + private global::Cfg.AiEKeyType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEKeyType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "type_class_name" field. + public const int TypeClassNameFieldNumber = 5; + private readonly static string TypeClassNameDefaultValue = ""; + + private string typeClassName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TypeClassName { + get { return typeClassName_ ?? TypeClassNameDefaultValue; } + set { + typeClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "type_class_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTypeClassName { + get { return typeClassName_ != null; } + } + /// Clears the value of the "type_class_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTypeClassName() { + typeClassName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (IsStatic != other.IsStatic) return false; + if (Type != other.Type) return false; + if (TypeClassName != other.TypeClassName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasIsStatic) hash ^= IsStatic.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTypeClassName) hash ^= TypeClassName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasIsStatic) { + output.WriteRawTag(24); + output.WriteBool(IsStatic); + } + if (HasType) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + if (HasTypeClassName) { + output.WriteRawTag(42); + output.WriteString(TypeClassName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasIsStatic) { + size += 1 + 1; + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasTypeClassName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeClassName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKey other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasIsStatic) { + IsStatic = other.IsStatic; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasTypeClassName) { + TypeClassName = other.TypeClassName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 24: { + IsStatic = input.ReadBool(); + break; + } + case 32: { + Type = (global::Cfg.AiEKeyType) input.ReadEnum(); + break; + } + case 42: { + TypeClassName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree(AiBehaviorTree other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + blackboardId_ = other.blackboardId_; + root_ = other.root_ != null ? other.root_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBehaviorTree Clone() { + return new AiBehaviorTree(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "blackboard_id" field. + public const int BlackboardIdFieldNumber = 4; + private readonly static string BlackboardIdDefaultValue = ""; + + private string blackboardId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardId { + get { return blackboardId_ ?? BlackboardIdDefaultValue; } + set { + blackboardId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardId { + get { return blackboardId_ != null; } + } + /// Clears the value of the "blackboard_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardId() { + blackboardId_ = null; + } + + /// Field number for the "root" field. + public const int RootFieldNumber = 5; + private global::Cfg.AiComposeNode root_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiComposeNode Root { + get { return root_; } + set { + root_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (BlackboardId != other.BlackboardId) return false; + if (!object.Equals(Root, other.Root)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasBlackboardId) hash ^= BlackboardId.GetHashCode(); + if (root_ != null) hash ^= Root.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasBlackboardId) { + output.WriteRawTag(34); + output.WriteString(BlackboardId); + } + if (root_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Root); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasBlackboardId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardId); + } + if (root_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Root); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBehaviorTree other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasBlackboardId) { + BlackboardId = other.BlackboardId; + } + if (other.root_ != null) { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + Root.MergeFrom(other.Root); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 34: { + BlackboardId = input.ReadString(); + break; + } + case 42: { + if (root_ == null) { + Root = new global::Cfg.AiComposeNode(); + } + input.ReadMessage(Root); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode(AiNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiNode Clone() { + return new AiNode(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiService : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiService()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService(AiService other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + UeSetDefaultFocus = other.UeSetDefaultFocus.Clone(); + break; + case ValueOneofCase.ExecuteTimeStatistic: + ExecuteTimeStatistic = other.ExecuteTimeStatistic.Clone(); + break; + case ValueOneofCase.ChooseTarget: + ChooseTarget = other.ChooseTarget.Clone(); + break; + case ValueOneofCase.KeepFaceTarget: + KeepFaceTarget = other.KeepFaceTarget.Clone(); + break; + case ValueOneofCase.GetOwnerPlayer: + GetOwnerPlayer = other.GetOwnerPlayer.Clone(); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + UpdateDailyBehaviorProps = other.UpdateDailyBehaviorProps.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiService Clone() { + return new AiService(this); + } + + /// Field number for the "UeSetDefaultFocus" field. + public const int UeSetDefaultFocusFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeSetDefaultFocus UeSetDefaultFocus { + get { return valueCase_ == ValueOneofCase.UeSetDefaultFocus ? (global::Cfg.AiUeSetDefaultFocus) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeSetDefaultFocus; + } + } + + /// Field number for the "ExecuteTimeStatistic" field. + public const int ExecuteTimeStatisticFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiExecuteTimeStatistic ExecuteTimeStatistic { + get { return valueCase_ == ValueOneofCase.ExecuteTimeStatistic ? (global::Cfg.AiExecuteTimeStatistic) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ExecuteTimeStatistic; + } + } + + /// Field number for the "ChooseTarget" field. + public const int ChooseTargetFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseTarget ChooseTarget { + get { return valueCase_ == ValueOneofCase.ChooseTarget ? (global::Cfg.AiChooseTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseTarget; + } + } + + /// Field number for the "KeepFaceTarget" field. + public const int KeepFaceTargetFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeepFaceTarget KeepFaceTarget { + get { return valueCase_ == ValueOneofCase.KeepFaceTarget ? (global::Cfg.AiKeepFaceTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.KeepFaceTarget; + } + } + + /// Field number for the "GetOwnerPlayer" field. + public const int GetOwnerPlayerFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiGetOwnerPlayer GetOwnerPlayer { + get { return valueCase_ == ValueOneofCase.GetOwnerPlayer ? (global::Cfg.AiGetOwnerPlayer) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.GetOwnerPlayer; + } + } + + /// Field number for the "UpdateDailyBehaviorProps" field. + public const int UpdateDailyBehaviorPropsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps { + get { return valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps ? (global::Cfg.AiUpdateDailyBehaviorProps) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UpdateDailyBehaviorProps; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeSetDefaultFocus = 1, + ExecuteTimeStatistic = 2, + ChooseTarget = 3, + KeepFaceTarget = 4, + GetOwnerPlayer = 5, + UpdateDailyBehaviorProps = 6, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiService); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiService other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeSetDefaultFocus, other.UeSetDefaultFocus)) return false; + if (!object.Equals(ExecuteTimeStatistic, other.ExecuteTimeStatistic)) return false; + if (!object.Equals(ChooseTarget, other.ChooseTarget)) return false; + if (!object.Equals(KeepFaceTarget, other.KeepFaceTarget)) return false; + if (!object.Equals(GetOwnerPlayer, other.GetOwnerPlayer)) return false; + if (!object.Equals(UpdateDailyBehaviorProps, other.UpdateDailyBehaviorProps)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) hash ^= UeSetDefaultFocus.GetHashCode(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) hash ^= ExecuteTimeStatistic.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseTarget) hash ^= ChooseTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) hash ^= KeepFaceTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) hash ^= GetOwnerPlayer.GetHashCode(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) hash ^= UpdateDailyBehaviorProps.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + output.WriteRawTag(10); + output.WriteMessage(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + output.WriteRawTag(18); + output.WriteMessage(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + output.WriteRawTag(26); + output.WriteMessage(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + output.WriteRawTag(34); + output.WriteMessage(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + output.WriteRawTag(42); + output.WriteMessage(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + output.WriteRawTag(50); + output.WriteMessage(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeSetDefaultFocus); + } + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteTimeStatistic); + } + if (valueCase_ == ValueOneofCase.ChooseTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChooseTarget); + } + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeepFaceTarget); + } + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetOwnerPlayer); + } + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateDailyBehaviorProps); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiService other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeSetDefaultFocus: + if (UeSetDefaultFocus == null) { + UeSetDefaultFocus = new global::Cfg.AiUeSetDefaultFocus(); + } + UeSetDefaultFocus.MergeFrom(other.UeSetDefaultFocus); + break; + case ValueOneofCase.ExecuteTimeStatistic: + if (ExecuteTimeStatistic == null) { + ExecuteTimeStatistic = new global::Cfg.AiExecuteTimeStatistic(); + } + ExecuteTimeStatistic.MergeFrom(other.ExecuteTimeStatistic); + break; + case ValueOneofCase.ChooseTarget: + if (ChooseTarget == null) { + ChooseTarget = new global::Cfg.AiChooseTarget(); + } + ChooseTarget.MergeFrom(other.ChooseTarget); + break; + case ValueOneofCase.KeepFaceTarget: + if (KeepFaceTarget == null) { + KeepFaceTarget = new global::Cfg.AiKeepFaceTarget(); + } + KeepFaceTarget.MergeFrom(other.KeepFaceTarget); + break; + case ValueOneofCase.GetOwnerPlayer: + if (GetOwnerPlayer == null) { + GetOwnerPlayer = new global::Cfg.AiGetOwnerPlayer(); + } + GetOwnerPlayer.MergeFrom(other.GetOwnerPlayer); + break; + case ValueOneofCase.UpdateDailyBehaviorProps: + if (UpdateDailyBehaviorProps == null) { + UpdateDailyBehaviorProps = new global::Cfg.AiUpdateDailyBehaviorProps(); + } + UpdateDailyBehaviorProps.MergeFrom(other.UpdateDailyBehaviorProps); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiUeSetDefaultFocus subBuilder = new global::Cfg.AiUeSetDefaultFocus(); + if (valueCase_ == ValueOneofCase.UeSetDefaultFocus) { + subBuilder.MergeFrom(UeSetDefaultFocus); + } + input.ReadMessage(subBuilder); + UeSetDefaultFocus = subBuilder; + break; + } + case 18: { + global::Cfg.AiExecuteTimeStatistic subBuilder = new global::Cfg.AiExecuteTimeStatistic(); + if (valueCase_ == ValueOneofCase.ExecuteTimeStatistic) { + subBuilder.MergeFrom(ExecuteTimeStatistic); + } + input.ReadMessage(subBuilder); + ExecuteTimeStatistic = subBuilder; + break; + } + case 26: { + global::Cfg.AiChooseTarget subBuilder = new global::Cfg.AiChooseTarget(); + if (valueCase_ == ValueOneofCase.ChooseTarget) { + subBuilder.MergeFrom(ChooseTarget); + } + input.ReadMessage(subBuilder); + ChooseTarget = subBuilder; + break; + } + case 34: { + global::Cfg.AiKeepFaceTarget subBuilder = new global::Cfg.AiKeepFaceTarget(); + if (valueCase_ == ValueOneofCase.KeepFaceTarget) { + subBuilder.MergeFrom(KeepFaceTarget); + } + input.ReadMessage(subBuilder); + KeepFaceTarget = subBuilder; + break; + } + case 42: { + global::Cfg.AiGetOwnerPlayer subBuilder = new global::Cfg.AiGetOwnerPlayer(); + if (valueCase_ == ValueOneofCase.GetOwnerPlayer) { + subBuilder.MergeFrom(GetOwnerPlayer); + } + input.ReadMessage(subBuilder); + GetOwnerPlayer = subBuilder; + break; + } + case 50: { + global::Cfg.AiUpdateDailyBehaviorProps subBuilder = new global::Cfg.AiUpdateDailyBehaviorProps(); + if (valueCase_ == ValueOneofCase.UpdateDailyBehaviorProps) { + subBuilder.MergeFrom(UpdateDailyBehaviorProps); + } + input.ReadMessage(subBuilder); + UpdateDailyBehaviorProps = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeSetDefaultFocus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeSetDefaultFocus()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus(AiUeSetDefaultFocus other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + keyboardKey_ = other.keyboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeSetDefaultFocus Clone() { + return new AiUeSetDefaultFocus(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 3; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeSetDefaultFocus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeSetDefaultFocus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (KeyboardKey != other.KeyboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasKeyboardKey) { + output.WriteRawTag(26); + output.WriteString(KeyboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeSetDefaultFocus other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + KeyboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiExecuteTimeStatistic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiExecuteTimeStatistic()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic(AiExecuteTimeStatistic other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiExecuteTimeStatistic Clone() { + return new AiExecuteTimeStatistic(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiExecuteTimeStatistic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiExecuteTimeStatistic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiExecuteTimeStatistic other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget(AiChooseTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + resultTargetKey_ = other.resultTargetKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseTarget Clone() { + return new AiChooseTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "result_target_key" field. + public const int ResultTargetKeyFieldNumber = 3; + private readonly static string ResultTargetKeyDefaultValue = ""; + + private string resultTargetKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultTargetKey { + get { return resultTargetKey_ ?? ResultTargetKeyDefaultValue; } + set { + resultTargetKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_target_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultTargetKey { + get { return resultTargetKey_ != null; } + } + /// Clears the value of the "result_target_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultTargetKey() { + resultTargetKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (ResultTargetKey != other.ResultTargetKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasResultTargetKey) hash ^= ResultTargetKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasResultTargetKey) { + output.WriteRawTag(26); + output.WriteString(ResultTargetKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasResultTargetKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultTargetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasResultTargetKey) { + ResultTargetKey = other.ResultTargetKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + ResultTargetKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeepFaceTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeepFaceTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget(AiKeepFaceTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + targetActorKey_ = other.targetActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeepFaceTarget Clone() { + return new AiKeepFaceTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 3; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeepFaceTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeepFaceTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (TargetActorKey != other.TargetActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasTargetActorKey) { + output.WriteRawTag(26); + output.WriteString(TargetActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeepFaceTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + TargetActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiGetOwnerPlayer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiGetOwnerPlayer()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer(AiGetOwnerPlayer other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + playerActorKey_ = other.playerActorKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiGetOwnerPlayer Clone() { + return new AiGetOwnerPlayer(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "player_actor_key" field. + public const int PlayerActorKeyFieldNumber = 3; + private readonly static string PlayerActorKeyDefaultValue = ""; + + private string playerActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayerActorKey { + get { return playerActorKey_ ?? PlayerActorKeyDefaultValue; } + set { + playerActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "player_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerActorKey { + get { return playerActorKey_ != null; } + } + /// Clears the value of the "player_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerActorKey() { + playerActorKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiGetOwnerPlayer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiGetOwnerPlayer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (PlayerActorKey != other.PlayerActorKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasPlayerActorKey) hash ^= PlayerActorKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasPlayerActorKey) { + output.WriteRawTag(26); + output.WriteString(PlayerActorKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasPlayerActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerActorKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiGetOwnerPlayer other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasPlayerActorKey) { + PlayerActorKey = other.PlayerActorKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + PlayerActorKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUpdateDailyBehaviorProps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUpdateDailyBehaviorProps()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps(AiUpdateDailyBehaviorProps other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + satietyKey_ = other.satietyKey_; + energyKey_ = other.energyKey_; + moodKey_ = other.moodKey_; + satietyLowerThresholdKey_ = other.satietyLowerThresholdKey_; + satietyUpperThresholdKey_ = other.satietyUpperThresholdKey_; + energyLowerThresholdKey_ = other.energyLowerThresholdKey_; + energyUpperThresholdKey_ = other.energyUpperThresholdKey_; + moodLowerThresholdKey_ = other.moodLowerThresholdKey_; + moodUpperThresholdKey_ = other.moodUpperThresholdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUpdateDailyBehaviorProps Clone() { + return new AiUpdateDailyBehaviorProps(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "satiety_key" field. + public const int SatietyKeyFieldNumber = 3; + private readonly static string SatietyKeyDefaultValue = ""; + + private string satietyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyKey { + get { return satietyKey_ ?? SatietyKeyDefaultValue; } + set { + satietyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyKey { + get { return satietyKey_ != null; } + } + /// Clears the value of the "satiety_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyKey() { + satietyKey_ = null; + } + + /// Field number for the "energy_key" field. + public const int EnergyKeyFieldNumber = 4; + private readonly static string EnergyKeyDefaultValue = ""; + + private string energyKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyKey { + get { return energyKey_ ?? EnergyKeyDefaultValue; } + set { + energyKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyKey { + get { return energyKey_ != null; } + } + /// Clears the value of the "energy_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyKey() { + energyKey_ = null; + } + + /// Field number for the "mood_key" field. + public const int MoodKeyFieldNumber = 5; + private readonly static string MoodKeyDefaultValue = ""; + + private string moodKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodKey { + get { return moodKey_ ?? MoodKeyDefaultValue; } + set { + moodKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodKey { + get { return moodKey_ != null; } + } + /// Clears the value of the "mood_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodKey() { + moodKey_ = null; + } + + /// Field number for the "satiety_lower_threshold_key" field. + public const int SatietyLowerThresholdKeyFieldNumber = 6; + private readonly static string SatietyLowerThresholdKeyDefaultValue = ""; + + private string satietyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ ?? SatietyLowerThresholdKeyDefaultValue; } + set { + satietyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyLowerThresholdKey { + get { return satietyLowerThresholdKey_ != null; } + } + /// Clears the value of the "satiety_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyLowerThresholdKey() { + satietyLowerThresholdKey_ = null; + } + + /// Field number for the "satiety_upper_threshold_key" field. + public const int SatietyUpperThresholdKeyFieldNumber = 7; + private readonly static string SatietyUpperThresholdKeyDefaultValue = ""; + + private string satietyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ ?? SatietyUpperThresholdKeyDefaultValue; } + set { + satietyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "satiety_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatietyUpperThresholdKey { + get { return satietyUpperThresholdKey_ != null; } + } + /// Clears the value of the "satiety_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatietyUpperThresholdKey() { + satietyUpperThresholdKey_ = null; + } + + /// Field number for the "energy_lower_threshold_key" field. + public const int EnergyLowerThresholdKeyFieldNumber = 8; + private readonly static string EnergyLowerThresholdKeyDefaultValue = ""; + + private string energyLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ ?? EnergyLowerThresholdKeyDefaultValue; } + set { + energyLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyLowerThresholdKey { + get { return energyLowerThresholdKey_ != null; } + } + /// Clears the value of the "energy_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyLowerThresholdKey() { + energyLowerThresholdKey_ = null; + } + + /// Field number for the "energy_upper_threshold_key" field. + public const int EnergyUpperThresholdKeyFieldNumber = 9; + private readonly static string EnergyUpperThresholdKeyDefaultValue = ""; + + private string energyUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ ?? EnergyUpperThresholdKeyDefaultValue; } + set { + energyUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "energy_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnergyUpperThresholdKey { + get { return energyUpperThresholdKey_ != null; } + } + /// Clears the value of the "energy_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnergyUpperThresholdKey() { + energyUpperThresholdKey_ = null; + } + + /// Field number for the "mood_lower_threshold_key" field. + public const int MoodLowerThresholdKeyFieldNumber = 10; + private readonly static string MoodLowerThresholdKeyDefaultValue = ""; + + private string moodLowerThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodLowerThresholdKey { + get { return moodLowerThresholdKey_ ?? MoodLowerThresholdKeyDefaultValue; } + set { + moodLowerThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_lower_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodLowerThresholdKey { + get { return moodLowerThresholdKey_ != null; } + } + /// Clears the value of the "mood_lower_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodLowerThresholdKey() { + moodLowerThresholdKey_ = null; + } + + /// Field number for the "mood_upper_threshold_key" field. + public const int MoodUpperThresholdKeyFieldNumber = 11; + private readonly static string MoodUpperThresholdKeyDefaultValue = ""; + + private string moodUpperThresholdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MoodUpperThresholdKey { + get { return moodUpperThresholdKey_ ?? MoodUpperThresholdKeyDefaultValue; } + set { + moodUpperThresholdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "mood_upper_threshold_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMoodUpperThresholdKey { + get { return moodUpperThresholdKey_ != null; } + } + /// Clears the value of the "mood_upper_threshold_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMoodUpperThresholdKey() { + moodUpperThresholdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUpdateDailyBehaviorProps); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUpdateDailyBehaviorProps other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (SatietyKey != other.SatietyKey) return false; + if (EnergyKey != other.EnergyKey) return false; + if (MoodKey != other.MoodKey) return false; + if (SatietyLowerThresholdKey != other.SatietyLowerThresholdKey) return false; + if (SatietyUpperThresholdKey != other.SatietyUpperThresholdKey) return false; + if (EnergyLowerThresholdKey != other.EnergyLowerThresholdKey) return false; + if (EnergyUpperThresholdKey != other.EnergyUpperThresholdKey) return false; + if (MoodLowerThresholdKey != other.MoodLowerThresholdKey) return false; + if (MoodUpperThresholdKey != other.MoodUpperThresholdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasSatietyKey) hash ^= SatietyKey.GetHashCode(); + if (HasEnergyKey) hash ^= EnergyKey.GetHashCode(); + if (HasMoodKey) hash ^= MoodKey.GetHashCode(); + if (HasSatietyLowerThresholdKey) hash ^= SatietyLowerThresholdKey.GetHashCode(); + if (HasSatietyUpperThresholdKey) hash ^= SatietyUpperThresholdKey.GetHashCode(); + if (HasEnergyLowerThresholdKey) hash ^= EnergyLowerThresholdKey.GetHashCode(); + if (HasEnergyUpperThresholdKey) hash ^= EnergyUpperThresholdKey.GetHashCode(); + if (HasMoodLowerThresholdKey) hash ^= MoodLowerThresholdKey.GetHashCode(); + if (HasMoodUpperThresholdKey) hash ^= MoodUpperThresholdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasSatietyKey) { + output.WriteRawTag(26); + output.WriteString(SatietyKey); + } + if (HasEnergyKey) { + output.WriteRawTag(34); + output.WriteString(EnergyKey); + } + if (HasMoodKey) { + output.WriteRawTag(42); + output.WriteString(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + output.WriteRawTag(50); + output.WriteString(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + output.WriteRawTag(58); + output.WriteString(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + output.WriteRawTag(66); + output.WriteString(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + output.WriteRawTag(74); + output.WriteString(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + output.WriteRawTag(82); + output.WriteString(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + output.WriteRawTag(90); + output.WriteString(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasSatietyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyKey); + } + if (HasEnergyKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyKey); + } + if (HasMoodKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodKey); + } + if (HasSatietyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyLowerThresholdKey); + } + if (HasSatietyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SatietyUpperThresholdKey); + } + if (HasEnergyLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyLowerThresholdKey); + } + if (HasEnergyUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EnergyUpperThresholdKey); + } + if (HasMoodLowerThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodLowerThresholdKey); + } + if (HasMoodUpperThresholdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MoodUpperThresholdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUpdateDailyBehaviorProps other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasSatietyKey) { + SatietyKey = other.SatietyKey; + } + if (other.HasEnergyKey) { + EnergyKey = other.EnergyKey; + } + if (other.HasMoodKey) { + MoodKey = other.MoodKey; + } + if (other.HasSatietyLowerThresholdKey) { + SatietyLowerThresholdKey = other.SatietyLowerThresholdKey; + } + if (other.HasSatietyUpperThresholdKey) { + SatietyUpperThresholdKey = other.SatietyUpperThresholdKey; + } + if (other.HasEnergyLowerThresholdKey) { + EnergyLowerThresholdKey = other.EnergyLowerThresholdKey; + } + if (other.HasEnergyUpperThresholdKey) { + EnergyUpperThresholdKey = other.EnergyUpperThresholdKey; + } + if (other.HasMoodLowerThresholdKey) { + MoodLowerThresholdKey = other.MoodLowerThresholdKey; + } + if (other.HasMoodUpperThresholdKey) { + MoodUpperThresholdKey = other.MoodUpperThresholdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + SatietyKey = input.ReadString(); + break; + } + case 34: { + EnergyKey = input.ReadString(); + break; + } + case 42: { + MoodKey = input.ReadString(); + break; + } + case 50: { + SatietyLowerThresholdKey = input.ReadString(); + break; + } + case 58: { + SatietyUpperThresholdKey = input.ReadString(); + break; + } + case 66: { + EnergyLowerThresholdKey = input.ReadString(); + break; + } + case 74: { + EnergyUpperThresholdKey = input.ReadString(); + break; + } + case 82: { + MoodLowerThresholdKey = input.ReadString(); + break; + } + case 90: { + MoodUpperThresholdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDecorator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator(AiDecorator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + UeLoop = other.UeLoop.Clone(); + break; + case ValueOneofCase.UeCooldown: + UeCooldown = other.UeCooldown.Clone(); + break; + case ValueOneofCase.UeTimeLimit: + UeTimeLimit = other.UeTimeLimit.Clone(); + break; + case ValueOneofCase.UeBlackboard: + UeBlackboard = other.UeBlackboard.Clone(); + break; + case ValueOneofCase.UeForceSuccess: + UeForceSuccess = other.UeForceSuccess.Clone(); + break; + case ValueOneofCase.IsAtLocation: + IsAtLocation = other.IsAtLocation.Clone(); + break; + case ValueOneofCase.DistanceLessThan: + DistanceLessThan = other.DistanceLessThan.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDecorator Clone() { + return new AiDecorator(this); + } + + /// Field number for the "UeLoop" field. + public const int UeLoopFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeLoop UeLoop { + get { return valueCase_ == ValueOneofCase.UeLoop ? (global::Cfg.AiUeLoop) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeLoop; + } + } + + /// Field number for the "UeCooldown" field. + public const int UeCooldownFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeCooldown UeCooldown { + get { return valueCase_ == ValueOneofCase.UeCooldown ? (global::Cfg.AiUeCooldown) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeCooldown; + } + } + + /// Field number for the "UeTimeLimit" field. + public const int UeTimeLimitFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeTimeLimit UeTimeLimit { + get { return valueCase_ == ValueOneofCase.UeTimeLimit ? (global::Cfg.AiUeTimeLimit) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeTimeLimit; + } + } + + /// Field number for the "UeBlackboard" field. + public const int UeBlackboardFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeBlackboard UeBlackboard { + get { return valueCase_ == ValueOneofCase.UeBlackboard ? (global::Cfg.AiUeBlackboard) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeBlackboard; + } + } + + /// Field number for the "UeForceSuccess" field. + public const int UeForceSuccessFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeForceSuccess UeForceSuccess { + get { return valueCase_ == ValueOneofCase.UeForceSuccess ? (global::Cfg.AiUeForceSuccess) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeForceSuccess; + } + } + + /// Field number for the "IsAtLocation" field. + public const int IsAtLocationFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsAtLocation IsAtLocation { + get { return valueCase_ == ValueOneofCase.IsAtLocation ? (global::Cfg.AiIsAtLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsAtLocation; + } + } + + /// Field number for the "DistanceLessThan" field. + public const int DistanceLessThanFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDistanceLessThan DistanceLessThan { + get { return valueCase_ == ValueOneofCase.DistanceLessThan ? (global::Cfg.AiDistanceLessThan) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DistanceLessThan; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeLoop = 7, + UeCooldown = 8, + UeTimeLimit = 9, + UeBlackboard = 10, + UeForceSuccess = 11, + IsAtLocation = 12, + DistanceLessThan = 13, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeLoop, other.UeLoop)) return false; + if (!object.Equals(UeCooldown, other.UeCooldown)) return false; + if (!object.Equals(UeTimeLimit, other.UeTimeLimit)) return false; + if (!object.Equals(UeBlackboard, other.UeBlackboard)) return false; + if (!object.Equals(UeForceSuccess, other.UeForceSuccess)) return false; + if (!object.Equals(IsAtLocation, other.IsAtLocation)) return false; + if (!object.Equals(DistanceLessThan, other.DistanceLessThan)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeLoop) hash ^= UeLoop.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeCooldown) hash ^= UeCooldown.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) hash ^= UeTimeLimit.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeBlackboard) hash ^= UeBlackboard.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) hash ^= UeForceSuccess.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsAtLocation) hash ^= IsAtLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) hash ^= DistanceLessThan.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeLoop) { + output.WriteRawTag(58); + output.WriteMessage(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + output.WriteRawTag(66); + output.WriteMessage(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + output.WriteRawTag(74); + output.WriteMessage(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + output.WriteRawTag(82); + output.WriteMessage(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + output.WriteRawTag(90); + output.WriteMessage(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + output.WriteRawTag(98); + output.WriteMessage(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + output.WriteRawTag(106); + output.WriteMessage(DistanceLessThan); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeLoop) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeLoop); + } + if (valueCase_ == ValueOneofCase.UeCooldown) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeCooldown); + } + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeTimeLimit); + } + if (valueCase_ == ValueOneofCase.UeBlackboard) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeBlackboard); + } + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UeForceSuccess); + } + if (valueCase_ == ValueOneofCase.IsAtLocation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsAtLocation); + } + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DistanceLessThan); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDecorator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeLoop: + if (UeLoop == null) { + UeLoop = new global::Cfg.AiUeLoop(); + } + UeLoop.MergeFrom(other.UeLoop); + break; + case ValueOneofCase.UeCooldown: + if (UeCooldown == null) { + UeCooldown = new global::Cfg.AiUeCooldown(); + } + UeCooldown.MergeFrom(other.UeCooldown); + break; + case ValueOneofCase.UeTimeLimit: + if (UeTimeLimit == null) { + UeTimeLimit = new global::Cfg.AiUeTimeLimit(); + } + UeTimeLimit.MergeFrom(other.UeTimeLimit); + break; + case ValueOneofCase.UeBlackboard: + if (UeBlackboard == null) { + UeBlackboard = new global::Cfg.AiUeBlackboard(); + } + UeBlackboard.MergeFrom(other.UeBlackboard); + break; + case ValueOneofCase.UeForceSuccess: + if (UeForceSuccess == null) { + UeForceSuccess = new global::Cfg.AiUeForceSuccess(); + } + UeForceSuccess.MergeFrom(other.UeForceSuccess); + break; + case ValueOneofCase.IsAtLocation: + if (IsAtLocation == null) { + IsAtLocation = new global::Cfg.AiIsAtLocation(); + } + IsAtLocation.MergeFrom(other.IsAtLocation); + break; + case ValueOneofCase.DistanceLessThan: + if (DistanceLessThan == null) { + DistanceLessThan = new global::Cfg.AiDistanceLessThan(); + } + DistanceLessThan.MergeFrom(other.DistanceLessThan); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 58: { + global::Cfg.AiUeLoop subBuilder = new global::Cfg.AiUeLoop(); + if (valueCase_ == ValueOneofCase.UeLoop) { + subBuilder.MergeFrom(UeLoop); + } + input.ReadMessage(subBuilder); + UeLoop = subBuilder; + break; + } + case 66: { + global::Cfg.AiUeCooldown subBuilder = new global::Cfg.AiUeCooldown(); + if (valueCase_ == ValueOneofCase.UeCooldown) { + subBuilder.MergeFrom(UeCooldown); + } + input.ReadMessage(subBuilder); + UeCooldown = subBuilder; + break; + } + case 74: { + global::Cfg.AiUeTimeLimit subBuilder = new global::Cfg.AiUeTimeLimit(); + if (valueCase_ == ValueOneofCase.UeTimeLimit) { + subBuilder.MergeFrom(UeTimeLimit); + } + input.ReadMessage(subBuilder); + UeTimeLimit = subBuilder; + break; + } + case 82: { + global::Cfg.AiUeBlackboard subBuilder = new global::Cfg.AiUeBlackboard(); + if (valueCase_ == ValueOneofCase.UeBlackboard) { + subBuilder.MergeFrom(UeBlackboard); + } + input.ReadMessage(subBuilder); + UeBlackboard = subBuilder; + break; + } + case 90: { + global::Cfg.AiUeForceSuccess subBuilder = new global::Cfg.AiUeForceSuccess(); + if (valueCase_ == ValueOneofCase.UeForceSuccess) { + subBuilder.MergeFrom(UeForceSuccess); + } + input.ReadMessage(subBuilder); + UeForceSuccess = subBuilder; + break; + } + case 98: { + global::Cfg.AiIsAtLocation subBuilder = new global::Cfg.AiIsAtLocation(); + if (valueCase_ == ValueOneofCase.IsAtLocation) { + subBuilder.MergeFrom(IsAtLocation); + } + input.ReadMessage(subBuilder); + IsAtLocation = subBuilder; + break; + } + case 106: { + global::Cfg.AiDistanceLessThan subBuilder = new global::Cfg.AiDistanceLessThan(); + if (valueCase_ == ValueOneofCase.DistanceLessThan) { + subBuilder.MergeFrom(DistanceLessThan); + } + input.ReadMessage(subBuilder); + DistanceLessThan = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeLoop : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeLoop()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop(AiUeLoop other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + numLoops_ = other.numLoops_; + infiniteLoop_ = other.infiniteLoop_; + infiniteLoopTimeoutTime_ = other.infiniteLoopTimeoutTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeLoop Clone() { + return new AiUeLoop(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "num_loops" field. + public const int NumLoopsFieldNumber = 4; + private readonly static int NumLoopsDefaultValue = 0; + + private int numLoops_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NumLoops { + get { if ((_hasBits0 & 4) != 0) { return numLoops_; } else { return NumLoopsDefaultValue; } } + set { + _hasBits0 |= 4; + numLoops_ = value; + } + } + /// Gets whether the "num_loops" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumLoops { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num_loops" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumLoops() { + _hasBits0 &= ~4; + } + + /// Field number for the "infinite_loop" field. + public const int InfiniteLoopFieldNumber = 5; + private readonly static bool InfiniteLoopDefaultValue = false; + + private bool infiniteLoop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InfiniteLoop { + get { if ((_hasBits0 & 8) != 0) { return infiniteLoop_; } else { return InfiniteLoopDefaultValue; } } + set { + _hasBits0 |= 8; + infiniteLoop_ = value; + } + } + /// Gets whether the "infinite_loop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoop { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "infinite_loop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoop() { + _hasBits0 &= ~8; + } + + /// Field number for the "infinite_loop_timeout_time" field. + public const int InfiniteLoopTimeoutTimeFieldNumber = 6; + private readonly static float InfiniteLoopTimeoutTimeDefaultValue = 0F; + + private float infiniteLoopTimeoutTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float InfiniteLoopTimeoutTime { + get { if ((_hasBits0 & 16) != 0) { return infiniteLoopTimeoutTime_; } else { return InfiniteLoopTimeoutTimeDefaultValue; } } + set { + _hasBits0 |= 16; + infiniteLoopTimeoutTime_ = value; + } + } + /// Gets whether the "infinite_loop_timeout_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInfiniteLoopTimeoutTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "infinite_loop_timeout_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInfiniteLoopTimeoutTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeLoop); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeLoop other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NumLoops != other.NumLoops) return false; + if (InfiniteLoop != other.InfiniteLoop) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfiniteLoopTimeoutTime, other.InfiniteLoopTimeoutTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNumLoops) hash ^= NumLoops.GetHashCode(); + if (HasInfiniteLoop) hash ^= InfiniteLoop.GetHashCode(); + if (HasInfiniteLoopTimeoutTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfiniteLoopTimeoutTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNumLoops) { + output.WriteRawTag(32); + output.WriteInt32(NumLoops); + } + if (HasInfiniteLoop) { + output.WriteRawTag(40); + output.WriteBool(InfiniteLoop); + } + if (HasInfiniteLoopTimeoutTime) { + output.WriteRawTag(53); + output.WriteFloat(InfiniteLoopTimeoutTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNumLoops) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumLoops); + } + if (HasInfiniteLoop) { + size += 1 + 1; + } + if (HasInfiniteLoopTimeoutTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeLoop other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNumLoops) { + NumLoops = other.NumLoops; + } + if (other.HasInfiniteLoop) { + InfiniteLoop = other.InfiniteLoop; + } + if (other.HasInfiniteLoopTimeoutTime) { + InfiniteLoopTimeoutTime = other.InfiniteLoopTimeoutTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NumLoops = input.ReadInt32(); + break; + } + case 40: { + InfiniteLoop = input.ReadBool(); + break; + } + case 53: { + InfiniteLoopTimeoutTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeCooldown : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeCooldown()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown(AiUeCooldown other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + cooldownTime_ = other.cooldownTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeCooldown Clone() { + return new AiUeCooldown(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "cooldown_time" field. + public const int CooldownTimeFieldNumber = 4; + private readonly static float CooldownTimeDefaultValue = 0F; + + private float cooldownTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float CooldownTime { + get { if ((_hasBits0 & 4) != 0) { return cooldownTime_; } else { return CooldownTimeDefaultValue; } } + set { + _hasBits0 |= 4; + cooldownTime_ = value; + } + } + /// Gets whether the "cooldown_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCooldownTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "cooldown_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCooldownTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeCooldown); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeCooldown other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CooldownTime, other.CooldownTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasCooldownTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CooldownTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasCooldownTime) { + output.WriteRawTag(37); + output.WriteFloat(CooldownTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasCooldownTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeCooldown other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasCooldownTime) { + CooldownTime = other.CooldownTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + CooldownTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeTimeLimit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeTimeLimit()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit(AiUeTimeLimit other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + limitTime_ = other.limitTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeTimeLimit Clone() { + return new AiUeTimeLimit(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "limit_time" field. + public const int LimitTimeFieldNumber = 4; + private readonly static float LimitTimeDefaultValue = 0F; + + private float limitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LimitTime { + get { if ((_hasBits0 & 4) != 0) { return limitTime_; } else { return LimitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + limitTime_ = value; + } + } + /// Gets whether the "limit_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLimitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "limit_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLimitTime() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeTimeLimit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeTimeLimit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LimitTime, other.LimitTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasLimitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LimitTime); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasLimitTime) { + output.WriteRawTag(37); + output.WriteFloat(LimitTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasLimitTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeTimeLimit other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasLimitTime) { + LimitTime = other.LimitTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + LimitTime = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeBlackboard()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard(AiUeBlackboard other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + notifyObserver_ = other.notifyObserver_; + blackboardKey_ = other.blackboardKey_; + keyQuery_ = other.keyQuery_ != null ? other.keyQuery_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeBlackboard Clone() { + return new AiUeBlackboard(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "notify_observer" field. + public const int NotifyObserverFieldNumber = 4; + private readonly static global::Cfg.AiENotifyObserverMode NotifyObserverDefaultValue = global::Cfg.AiENotifyObserverMode.OnValueChange; + + private global::Cfg.AiENotifyObserverMode notifyObserver_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiENotifyObserverMode NotifyObserver { + get { if ((_hasBits0 & 4) != 0) { return notifyObserver_; } else { return NotifyObserverDefaultValue; } } + set { + _hasBits0 |= 4; + notifyObserver_ = value; + } + } + /// Gets whether the "notify_observer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNotifyObserver { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "notify_observer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNotifyObserver() { + _hasBits0 &= ~4; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 5; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + /// Field number for the "key_query" field. + public const int KeyQueryFieldNumber = 6; + private global::Cfg.AiKeyQueryOperator keyQuery_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyQueryOperator KeyQuery { + get { return keyQuery_; } + set { + keyQuery_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (NotifyObserver != other.NotifyObserver) return false; + if (BlackboardKey != other.BlackboardKey) return false; + if (!object.Equals(KeyQuery, other.KeyQuery)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasNotifyObserver) hash ^= NotifyObserver.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (keyQuery_ != null) hash ^= KeyQuery.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasNotifyObserver) { + output.WriteRawTag(32); + output.WriteEnum((int) NotifyObserver); + } + if (HasBlackboardKey) { + output.WriteRawTag(42); + output.WriteString(BlackboardKey); + } + if (keyQuery_ != null) { + output.WriteRawTag(50); + output.WriteMessage(KeyQuery); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasNotifyObserver) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NotifyObserver); + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (keyQuery_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyQuery); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeBlackboard other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasNotifyObserver) { + NotifyObserver = other.NotifyObserver; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + if (other.keyQuery_ != null) { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + KeyQuery.MergeFrom(other.KeyQuery); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 32: { + NotifyObserver = (global::Cfg.AiENotifyObserverMode) input.ReadEnum(); + break; + } + case 42: { + BlackboardKey = input.ReadString(); + break; + } + case 50: { + if (keyQuery_ == null) { + KeyQuery = new global::Cfg.AiKeyQueryOperator(); + } + input.ReadMessage(KeyQuery); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyQueryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyQueryOperator()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator(AiKeyQueryOperator other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + IsSet = other.IsSet.Clone(); + break; + case ValueOneofCase.IsNotSet: + IsNotSet = other.IsNotSet.Clone(); + break; + case ValueOneofCase.BinaryOperator: + BinaryOperator = other.BinaryOperator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyQueryOperator Clone() { + return new AiKeyQueryOperator(this); + } + + /// Field number for the "IsSet" field. + public const int IsSetFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsSet IsSet { + get { return valueCase_ == ValueOneofCase.IsSet ? (global::Cfg.AiIsSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsSet; + } + } + + /// Field number for the "IsNotSet" field. + public const int IsNotSetFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIsNotSet IsNotSet { + get { return valueCase_ == ValueOneofCase.IsNotSet ? (global::Cfg.AiIsNotSet) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IsNotSet; + } + } + + /// Field number for the "BinaryOperator" field. + public const int BinaryOperatorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBinaryOperator BinaryOperator { + get { return valueCase_ == ValueOneofCase.BinaryOperator ? (global::Cfg.AiBinaryOperator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BinaryOperator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + IsSet = 1, + IsNotSet = 2, + BinaryOperator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyQueryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyQueryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(IsSet, other.IsSet)) return false; + if (!object.Equals(IsNotSet, other.IsNotSet)) return false; + if (!object.Equals(BinaryOperator, other.BinaryOperator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.IsSet) hash ^= IsSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.IsNotSet) hash ^= IsNotSet.GetHashCode(); + if (valueCase_ == ValueOneofCase.BinaryOperator) hash ^= BinaryOperator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.IsSet) { + output.WriteRawTag(10); + output.WriteMessage(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + output.WriteRawTag(18); + output.WriteMessage(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + output.WriteRawTag(26); + output.WriteMessage(BinaryOperator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.IsSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsSet); + } + if (valueCase_ == ValueOneofCase.IsNotSet) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IsNotSet); + } + if (valueCase_ == ValueOneofCase.BinaryOperator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryOperator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyQueryOperator other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.IsSet: + if (IsSet == null) { + IsSet = new global::Cfg.AiIsSet(); + } + IsSet.MergeFrom(other.IsSet); + break; + case ValueOneofCase.IsNotSet: + if (IsNotSet == null) { + IsNotSet = new global::Cfg.AiIsNotSet(); + } + IsNotSet.MergeFrom(other.IsNotSet); + break; + case ValueOneofCase.BinaryOperator: + if (BinaryOperator == null) { + BinaryOperator = new global::Cfg.AiBinaryOperator(); + } + BinaryOperator.MergeFrom(other.BinaryOperator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiIsSet subBuilder = new global::Cfg.AiIsSet(); + if (valueCase_ == ValueOneofCase.IsSet) { + subBuilder.MergeFrom(IsSet); + } + input.ReadMessage(subBuilder); + IsSet = subBuilder; + break; + } + case 18: { + global::Cfg.AiIsNotSet subBuilder = new global::Cfg.AiIsNotSet(); + if (valueCase_ == ValueOneofCase.IsNotSet) { + subBuilder.MergeFrom(IsNotSet); + } + input.ReadMessage(subBuilder); + IsNotSet = subBuilder; + break; + } + case 26: { + global::Cfg.AiBinaryOperator subBuilder = new global::Cfg.AiBinaryOperator(); + if (valueCase_ == ValueOneofCase.BinaryOperator) { + subBuilder.MergeFrom(BinaryOperator); + } + input.ReadMessage(subBuilder); + BinaryOperator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet(AiIsSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsSet Clone() { + return new AiIsSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiIsNotSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsNotSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet(AiIsNotSet other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsNotSet Clone() { + return new AiIsNotSet(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsNotSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsNotSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsNotSet other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class AiBinaryOperator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBinaryOperator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator(AiBinaryOperator other) : this() { + _hasBits0 = other._hasBits0; + oper_ = other.oper_; + data_ = other.data_ != null ? other.data_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBinaryOperator Clone() { + return new AiBinaryOperator(this); + } + + /// Field number for the "oper" field. + public const int OperFieldNumber = 1; + private readonly static global::Cfg.AiEOperator OperDefaultValue = global::Cfg.AiEOperator.IsEqualTo; + + private global::Cfg.AiEOperator oper_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEOperator Oper { + get { if ((_hasBits0 & 1) != 0) { return oper_; } else { return OperDefaultValue; } } + set { + _hasBits0 |= 1; + oper_ = value; + } + } + /// Gets whether the "oper" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOper { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "oper" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOper() { + _hasBits0 &= ~1; + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private global::Cfg.AiKeyData data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiKeyData Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBinaryOperator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBinaryOperator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Oper != other.Oper) return false; + if (!object.Equals(Data, other.Data)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasOper) hash ^= Oper.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasOper) { + output.WriteRawTag(8); + output.WriteEnum((int) Oper); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasOper) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Oper); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBinaryOperator other) { + if (other == null) { + return; + } + if (other.HasOper) { + Oper = other.Oper; + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + Data.MergeFrom(other.Data); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Oper = (global::Cfg.AiEOperator) input.ReadEnum(); + break; + } + case 18: { + if (data_ == null) { + Data = new global::Cfg.AiKeyData(); + } + input.ReadMessage(Data); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData(AiKeyData other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + FloatKeyData = other.FloatKeyData.Clone(); + break; + case ValueOneofCase.IntKeyData: + IntKeyData = other.IntKeyData.Clone(); + break; + case ValueOneofCase.StringKeyData: + StringKeyData = other.StringKeyData.Clone(); + break; + case ValueOneofCase.BlackboardKeyData: + BlackboardKeyData = other.BlackboardKeyData.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiKeyData Clone() { + return new AiKeyData(this); + } + + /// Field number for the "FloatKeyData" field. + public const int FloatKeyDataFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFloatKeyData FloatKeyData { + get { return valueCase_ == ValueOneofCase.FloatKeyData ? (global::Cfg.AiFloatKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.FloatKeyData; + } + } + + /// Field number for the "IntKeyData" field. + public const int IntKeyDataFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiIntKeyData IntKeyData { + get { return valueCase_ == ValueOneofCase.IntKeyData ? (global::Cfg.AiIntKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.IntKeyData; + } + } + + /// Field number for the "StringKeyData" field. + public const int StringKeyDataFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiStringKeyData StringKeyData { + get { return valueCase_ == ValueOneofCase.StringKeyData ? (global::Cfg.AiStringKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.StringKeyData; + } + } + + /// Field number for the "BlackboardKeyData" field. + public const int BlackboardKeyDataFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiBlackboardKeyData BlackboardKeyData { + get { return valueCase_ == ValueOneofCase.BlackboardKeyData ? (global::Cfg.AiBlackboardKeyData) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.BlackboardKeyData; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + FloatKeyData = 1, + IntKeyData = 2, + StringKeyData = 3, + BlackboardKeyData = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FloatKeyData, other.FloatKeyData)) return false; + if (!object.Equals(IntKeyData, other.IntKeyData)) return false; + if (!object.Equals(StringKeyData, other.StringKeyData)) return false; + if (!object.Equals(BlackboardKeyData, other.BlackboardKeyData)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.FloatKeyData) hash ^= FloatKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.IntKeyData) hash ^= IntKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.StringKeyData) hash ^= StringKeyData.GetHashCode(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) hash ^= BlackboardKeyData.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.FloatKeyData) { + output.WriteRawTag(10); + output.WriteMessage(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + output.WriteRawTag(18); + output.WriteMessage(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + output.WriteRawTag(26); + output.WriteMessage(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + output.WriteRawTag(34); + output.WriteMessage(BlackboardKeyData); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.FloatKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatKeyData); + } + if (valueCase_ == ValueOneofCase.IntKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntKeyData); + } + if (valueCase_ == ValueOneofCase.StringKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringKeyData); + } + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlackboardKeyData); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiKeyData other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.FloatKeyData: + if (FloatKeyData == null) { + FloatKeyData = new global::Cfg.AiFloatKeyData(); + } + FloatKeyData.MergeFrom(other.FloatKeyData); + break; + case ValueOneofCase.IntKeyData: + if (IntKeyData == null) { + IntKeyData = new global::Cfg.AiIntKeyData(); + } + IntKeyData.MergeFrom(other.IntKeyData); + break; + case ValueOneofCase.StringKeyData: + if (StringKeyData == null) { + StringKeyData = new global::Cfg.AiStringKeyData(); + } + StringKeyData.MergeFrom(other.StringKeyData); + break; + case ValueOneofCase.BlackboardKeyData: + if (BlackboardKeyData == null) { + BlackboardKeyData = new global::Cfg.AiBlackboardKeyData(); + } + BlackboardKeyData.MergeFrom(other.BlackboardKeyData); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.AiFloatKeyData subBuilder = new global::Cfg.AiFloatKeyData(); + if (valueCase_ == ValueOneofCase.FloatKeyData) { + subBuilder.MergeFrom(FloatKeyData); + } + input.ReadMessage(subBuilder); + FloatKeyData = subBuilder; + break; + } + case 18: { + global::Cfg.AiIntKeyData subBuilder = new global::Cfg.AiIntKeyData(); + if (valueCase_ == ValueOneofCase.IntKeyData) { + subBuilder.MergeFrom(IntKeyData); + } + input.ReadMessage(subBuilder); + IntKeyData = subBuilder; + break; + } + case 26: { + global::Cfg.AiStringKeyData subBuilder = new global::Cfg.AiStringKeyData(); + if (valueCase_ == ValueOneofCase.StringKeyData) { + subBuilder.MergeFrom(StringKeyData); + } + input.ReadMessage(subBuilder); + StringKeyData = subBuilder; + break; + } + case 34: { + global::Cfg.AiBlackboardKeyData subBuilder = new global::Cfg.AiBlackboardKeyData(); + if (valueCase_ == ValueOneofCase.BlackboardKeyData) { + subBuilder.MergeFrom(BlackboardKeyData); + } + input.ReadMessage(subBuilder); + BlackboardKeyData = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFloatKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFloatKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData(AiFloatKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFloatKeyData Clone() { + return new AiFloatKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static float ValueDefaultValue = 0F; + + private float value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFloatKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFloatKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(13); + output.WriteFloat(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFloatKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Value = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIntKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIntKeyData()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData(AiIntKeyData other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIntKeyData Clone() { + return new AiIntKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIntKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIntKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(8); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIntKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiStringKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiStringKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData(AiStringKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiStringKeyData Clone() { + return new AiStringKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiStringKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiStringKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiStringKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiBlackboardKeyData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiBlackboardKeyData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData(AiBlackboardKeyData other) : this() { + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiBlackboardKeyData Clone() { + return new AiBlackboardKeyData(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiBlackboardKeyData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiBlackboardKeyData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasValue) { + output.WriteRawTag(10); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiBlackboardKeyData other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeForceSuccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeForceSuccess()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess(AiUeForceSuccess other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeForceSuccess Clone() { + return new AiUeForceSuccess(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeForceSuccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeForceSuccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeForceSuccess other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiIsAtLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiIsAtLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation(AiIsAtLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + acceptableRadius_ = other.acceptableRadius_; + keyboardKey_ = other.keyboardKey_; + inverseCondition_ = other.inverseCondition_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiIsAtLocation Clone() { + return new AiIsAtLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 4; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + /// Field number for the "keyboard_key" field. + public const int KeyboardKeyFieldNumber = 5; + private readonly static string KeyboardKeyDefaultValue = ""; + + private string keyboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyboardKey { + get { return keyboardKey_ ?? KeyboardKeyDefaultValue; } + set { + keyboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "keyboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyboardKey { + get { return keyboardKey_ != null; } + } + /// Clears the value of the "keyboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyboardKey() { + keyboardKey_ = null; + } + + /// Field number for the "inverse_condition" field. + public const int InverseConditionFieldNumber = 6; + private readonly static bool InverseConditionDefaultValue = false; + + private bool inverseCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InverseCondition { + get { if ((_hasBits0 & 8) != 0) { return inverseCondition_; } else { return InverseConditionDefaultValue; } } + set { + _hasBits0 |= 8; + inverseCondition_ = value; + } + } + /// Gets whether the "inverse_condition" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInverseCondition { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "inverse_condition" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInverseCondition() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiIsAtLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiIsAtLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + if (KeyboardKey != other.KeyboardKey) return false; + if (InverseCondition != other.InverseCondition) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (HasKeyboardKey) hash ^= KeyboardKey.GetHashCode(); + if (HasInverseCondition) hash ^= InverseCondition.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + output.WriteRawTag(37); + output.WriteFloat(AcceptableRadius); + } + if (HasKeyboardKey) { + output.WriteRawTag(42); + output.WriteString(KeyboardKey); + } + if (HasInverseCondition) { + output.WriteRawTag(48); + output.WriteBool(InverseCondition); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (HasKeyboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyboardKey); + } + if (HasInverseCondition) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiIsAtLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + if (other.HasKeyboardKey) { + KeyboardKey = other.KeyboardKey; + } + if (other.HasInverseCondition) { + InverseCondition = other.InverseCondition; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 37: { + AcceptableRadius = input.ReadFloat(); + break; + } + case 42: { + KeyboardKey = input.ReadString(); + break; + } + case 48: { + InverseCondition = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDistanceLessThan : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDistanceLessThan()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan(AiDistanceLessThan other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + flowAbortMode_ = other.flowAbortMode_; + actor1Key_ = other.actor1Key_; + actor2Key_ = other.actor2Key_; + distance_ = other.distance_; + reverseResult_ = other.reverseResult_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDistanceLessThan Clone() { + return new AiDistanceLessThan(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "flow_abort_mode" field. + public const int FlowAbortModeFieldNumber = 3; + private readonly static global::Cfg.AiEFlowAbortMode FlowAbortModeDefaultValue = global::Cfg.AiEFlowAbortMode.None; + + private global::Cfg.AiEFlowAbortMode flowAbortMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFlowAbortMode FlowAbortMode { + get { if ((_hasBits0 & 2) != 0) { return flowAbortMode_; } else { return FlowAbortModeDefaultValue; } } + set { + _hasBits0 |= 2; + flowAbortMode_ = value; + } + } + /// Gets whether the "flow_abort_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlowAbortMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "flow_abort_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlowAbortMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "actor1_key" field. + public const int Actor1KeyFieldNumber = 4; + private readonly static string Actor1KeyDefaultValue = ""; + + private string actor1Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor1Key { + get { return actor1Key_ ?? Actor1KeyDefaultValue; } + set { + actor1Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor1_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor1Key { + get { return actor1Key_ != null; } + } + /// Clears the value of the "actor1_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor1Key() { + actor1Key_ = null; + } + + /// Field number for the "actor2_key" field. + public const int Actor2KeyFieldNumber = 5; + private readonly static string Actor2KeyDefaultValue = ""; + + private string actor2Key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Actor2Key { + get { return actor2Key_ ?? Actor2KeyDefaultValue; } + set { + actor2Key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "actor2_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActor2Key { + get { return actor2Key_ != null; } + } + /// Clears the value of the "actor2_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActor2Key() { + actor2Key_ = null; + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 6; + private readonly static float DistanceDefaultValue = 0F; + + private float distance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Distance { + get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } + set { + _hasBits0 |= 4; + distance_ = value; + } + } + /// Gets whether the "distance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "distance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistance() { + _hasBits0 &= ~4; + } + + /// Field number for the "reverse_result" field. + public const int ReverseResultFieldNumber = 7; + private readonly static bool ReverseResultDefaultValue = false; + + private bool reverseResult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ReverseResult { + get { if ((_hasBits0 & 8) != 0) { return reverseResult_; } else { return ReverseResultDefaultValue; } } + set { + _hasBits0 |= 8; + reverseResult_ = value; + } + } + /// Gets whether the "reverse_result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReverseResult { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "reverse_result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReverseResult() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDistanceLessThan); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDistanceLessThan other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if (FlowAbortMode != other.FlowAbortMode) return false; + if (Actor1Key != other.Actor1Key) return false; + if (Actor2Key != other.Actor2Key) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; + if (ReverseResult != other.ReverseResult) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + if (HasFlowAbortMode) hash ^= FlowAbortMode.GetHashCode(); + if (HasActor1Key) hash ^= Actor1Key.GetHashCode(); + if (HasActor2Key) hash ^= Actor2Key.GetHashCode(); + if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); + if (HasReverseResult) hash ^= ReverseResult.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + if (HasFlowAbortMode) { + output.WriteRawTag(24); + output.WriteEnum((int) FlowAbortMode); + } + if (HasActor1Key) { + output.WriteRawTag(34); + output.WriteString(Actor1Key); + } + if (HasActor2Key) { + output.WriteRawTag(42); + output.WriteString(Actor2Key); + } + if (HasDistance) { + output.WriteRawTag(53); + output.WriteFloat(Distance); + } + if (HasReverseResult) { + output.WriteRawTag(56); + output.WriteBool(ReverseResult); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + if (HasFlowAbortMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowAbortMode); + } + if (HasActor1Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor1Key); + } + if (HasActor2Key) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor2Key); + } + if (HasDistance) { + size += 1 + 4; + } + if (HasReverseResult) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDistanceLessThan other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + if (other.HasFlowAbortMode) { + FlowAbortMode = other.FlowAbortMode; + } + if (other.HasActor1Key) { + Actor1Key = other.Actor1Key; + } + if (other.HasActor2Key) { + Actor2Key = other.Actor2Key; + } + if (other.HasDistance) { + Distance = other.Distance; + } + if (other.HasReverseResult) { + ReverseResult = other.ReverseResult; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 24: { + FlowAbortMode = (global::Cfg.AiEFlowAbortMode) input.ReadEnum(); + break; + } + case 34: { + Actor1Key = input.ReadString(); + break; + } + case 42: { + Actor2Key = input.ReadString(); + break; + } + case 53: { + Distance = input.ReadFloat(); + break; + } + case 56: { + ReverseResult = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiFlowNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiFlowNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode(AiFlowNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiFlowNode Clone() { + return new AiFlowNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiFlowNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiFlowNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiFlowNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiComposeNode : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiComposeNode()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode(AiComposeNode other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + Sequence = other.Sequence.Clone(); + break; + case ValueOneofCase.Selector: + Selector = other.Selector.Clone(); + break; + case ValueOneofCase.SimpleParallel: + SimpleParallel = other.SimpleParallel.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiComposeNode Clone() { + return new AiComposeNode(this); + } + + /// Field number for the "Sequence" field. + public const int SequenceFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSequence Sequence { + get { return valueCase_ == ValueOneofCase.Sequence ? (global::Cfg.AiSequence) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Sequence; + } + } + + /// Field number for the "Selector" field. + public const int SelectorFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSelector Selector { + get { return valueCase_ == ValueOneofCase.Selector ? (global::Cfg.AiSelector) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Selector; + } + } + + /// Field number for the "SimpleParallel" field. + public const int SimpleParallelFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiSimpleParallel SimpleParallel { + get { return valueCase_ == ValueOneofCase.SimpleParallel ? (global::Cfg.AiSimpleParallel) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SimpleParallel; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Sequence = 14, + Selector = 15, + SimpleParallel = 16, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiComposeNode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiComposeNode other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sequence, other.Sequence)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (!object.Equals(SimpleParallel, other.SimpleParallel)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Sequence) hash ^= Sequence.GetHashCode(); + if (valueCase_ == ValueOneofCase.Selector) hash ^= Selector.GetHashCode(); + if (valueCase_ == ValueOneofCase.SimpleParallel) hash ^= SimpleParallel.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Sequence) { + output.WriteRawTag(114); + output.WriteMessage(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + output.WriteRawTag(122); + output.WriteMessage(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + output.WriteRawTag(130, 1); + output.WriteMessage(SimpleParallel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Sequence) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sequence); + } + if (valueCase_ == ValueOneofCase.Selector) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (valueCase_ == ValueOneofCase.SimpleParallel) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SimpleParallel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiComposeNode other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Sequence: + if (Sequence == null) { + Sequence = new global::Cfg.AiSequence(); + } + Sequence.MergeFrom(other.Sequence); + break; + case ValueOneofCase.Selector: + if (Selector == null) { + Selector = new global::Cfg.AiSelector(); + } + Selector.MergeFrom(other.Selector); + break; + case ValueOneofCase.SimpleParallel: + if (SimpleParallel == null) { + SimpleParallel = new global::Cfg.AiSimpleParallel(); + } + SimpleParallel.MergeFrom(other.SimpleParallel); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 114: { + global::Cfg.AiSequence subBuilder = new global::Cfg.AiSequence(); + if (valueCase_ == ValueOneofCase.Sequence) { + subBuilder.MergeFrom(Sequence); + } + input.ReadMessage(subBuilder); + Sequence = subBuilder; + break; + } + case 122: { + global::Cfg.AiSelector subBuilder = new global::Cfg.AiSelector(); + if (valueCase_ == ValueOneofCase.Selector) { + subBuilder.MergeFrom(Selector); + } + input.ReadMessage(subBuilder); + Selector = subBuilder; + break; + } + case 130: { + global::Cfg.AiSimpleParallel subBuilder = new global::Cfg.AiSimpleParallel(); + if (valueCase_ == ValueOneofCase.SimpleParallel) { + subBuilder.MergeFrom(SimpleParallel); + } + input.ReadMessage(subBuilder); + SimpleParallel = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSequence : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSequence()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence(AiSequence other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSequence Clone() { + return new AiSequence(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSequence); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSequence other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSequence other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSelector : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSelector()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector(AiSelector other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + children_ = other.children_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSelector Clone() { + return new AiSelector(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "children" field. + public const int ChildrenFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_children_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.AiFlowNode.Parser); + private readonly pbc::RepeatedField children_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Children { + get { return children_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSelector); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSelector other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if(!children_.Equals(other.children_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + hash ^= children_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + children_.WriteTo(output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + children_.WriteTo(ref output, _repeated_children_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + size += children_.CalculateSize(_repeated_children_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSelector other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + children_.Add(other.children_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(input, _repeated_children_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 42: { + children_.AddEntriesFrom(ref input, _repeated_children_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiSimpleParallel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiSimpleParallel()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel(AiSimpleParallel other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + finishMode_ = other.finishMode_; + mainTask_ = other.mainTask_ != null ? other.mainTask_.Clone() : null; + backgroundNode_ = other.backgroundNode_ != null ? other.backgroundNode_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiSimpleParallel Clone() { + return new AiSimpleParallel(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "finish_mode" field. + public const int FinishModeFieldNumber = 5; + private readonly static global::Cfg.AiEFinishMode FinishModeDefaultValue = global::Cfg.AiEFinishMode.Immediate; + + private global::Cfg.AiEFinishMode finishMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiEFinishMode FinishMode { + get { if ((_hasBits0 & 2) != 0) { return finishMode_; } else { return FinishModeDefaultValue; } } + set { + _hasBits0 |= 2; + finishMode_ = value; + } + } + /// Gets whether the "finish_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFinishMode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "finish_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFinishMode() { + _hasBits0 &= ~2; + } + + /// Field number for the "main_task" field. + public const int MainTaskFieldNumber = 6; + private global::Cfg.AiTask mainTask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiTask MainTask { + get { return mainTask_; } + set { + mainTask_ = value; + } + } + + /// Field number for the "background_node" field. + public const int BackgroundNodeFieldNumber = 7; + private global::Cfg.AiFlowNode backgroundNode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiFlowNode BackgroundNode { + get { return backgroundNode_; } + set { + backgroundNode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiSimpleParallel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiSimpleParallel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (FinishMode != other.FinishMode) return false; + if (!object.Equals(MainTask, other.MainTask)) return false; + if (!object.Equals(BackgroundNode, other.BackgroundNode)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasFinishMode) hash ^= FinishMode.GetHashCode(); + if (mainTask_ != null) hash ^= MainTask.GetHashCode(); + if (backgroundNode_ != null) hash ^= BackgroundNode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasFinishMode) { + output.WriteRawTag(40); + output.WriteEnum((int) FinishMode); + } + if (mainTask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(MainTask); + } + if (backgroundNode_ != null) { + output.WriteRawTag(58); + output.WriteMessage(BackgroundNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasFinishMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinishMode); + } + if (mainTask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MainTask); + } + if (backgroundNode_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundNode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiSimpleParallel other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasFinishMode) { + FinishMode = other.FinishMode; + } + if (other.mainTask_ != null) { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + MainTask.MergeFrom(other.MainTask); + } + if (other.backgroundNode_ != null) { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + BackgroundNode.MergeFrom(other.BackgroundNode); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + FinishMode = (global::Cfg.AiEFinishMode) input.ReadEnum(); + break; + } + case 50: { + if (mainTask_ == null) { + MainTask = new global::Cfg.AiTask(); + } + input.ReadMessage(MainTask); + break; + } + case 58: { + if (backgroundNode_ == null) { + BackgroundNode = new global::Cfg.AiFlowNode(); + } + input.ReadMessage(BackgroundNode); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTask : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTask()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask(AiTask other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + UeWait = other.UeWait.Clone(); + break; + case ValueOneofCase.UeWaitBlackboardTime: + UeWaitBlackboardTime = other.UeWaitBlackboardTime.Clone(); + break; + case ValueOneofCase.MoveToTarget: + MoveToTarget = other.MoveToTarget.Clone(); + break; + case ValueOneofCase.ChooseSkill: + ChooseSkill = other.ChooseSkill.Clone(); + break; + case ValueOneofCase.MoveToRandomLocation: + MoveToRandomLocation = other.MoveToRandomLocation.Clone(); + break; + case ValueOneofCase.MoveToLocation: + MoveToLocation = other.MoveToLocation.Clone(); + break; + case ValueOneofCase.DebugPrint: + DebugPrint = other.DebugPrint.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTask Clone() { + return new AiTask(this); + } + + /// Field number for the "UeWait" field. + public const int UeWaitFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWait UeWait { + get { return valueCase_ == ValueOneofCase.UeWait ? (global::Cfg.AiUeWait) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWait; + } + } + + /// Field number for the "UeWaitBlackboardTime" field. + public const int UeWaitBlackboardTimeFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiUeWaitBlackboardTime UeWaitBlackboardTime { + get { return valueCase_ == ValueOneofCase.UeWaitBlackboardTime ? (global::Cfg.AiUeWaitBlackboardTime) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.UeWaitBlackboardTime; + } + } + + /// Field number for the "MoveToTarget" field. + public const int MoveToTargetFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToTarget MoveToTarget { + get { return valueCase_ == ValueOneofCase.MoveToTarget ? (global::Cfg.AiMoveToTarget) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToTarget; + } + } + + /// Field number for the "ChooseSkill" field. + public const int ChooseSkillFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiChooseSkill ChooseSkill { + get { return valueCase_ == ValueOneofCase.ChooseSkill ? (global::Cfg.AiChooseSkill) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.ChooseSkill; + } + } + + /// Field number for the "MoveToRandomLocation" field. + public const int MoveToRandomLocationFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToRandomLocation MoveToRandomLocation { + get { return valueCase_ == ValueOneofCase.MoveToRandomLocation ? (global::Cfg.AiMoveToRandomLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToRandomLocation; + } + } + + /// Field number for the "MoveToLocation" field. + public const int MoveToLocationFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiMoveToLocation MoveToLocation { + get { return valueCase_ == ValueOneofCase.MoveToLocation ? (global::Cfg.AiMoveToLocation) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.MoveToLocation; + } + } + + /// Field number for the "DebugPrint" field. + public const int DebugPrintFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AiDebugPrint DebugPrint { + get { return valueCase_ == ValueOneofCase.DebugPrint ? (global::Cfg.AiDebugPrint) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DebugPrint; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + UeWait = 17, + UeWaitBlackboardTime = 18, + MoveToTarget = 19, + ChooseSkill = 20, + MoveToRandomLocation = 21, + MoveToLocation = 22, + DebugPrint = 23, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTask); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTask other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UeWait, other.UeWait)) return false; + if (!object.Equals(UeWaitBlackboardTime, other.UeWaitBlackboardTime)) return false; + if (!object.Equals(MoveToTarget, other.MoveToTarget)) return false; + if (!object.Equals(ChooseSkill, other.ChooseSkill)) return false; + if (!object.Equals(MoveToRandomLocation, other.MoveToRandomLocation)) return false; + if (!object.Equals(MoveToLocation, other.MoveToLocation)) return false; + if (!object.Equals(DebugPrint, other.DebugPrint)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.UeWait) hash ^= UeWait.GetHashCode(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) hash ^= UeWaitBlackboardTime.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToTarget) hash ^= MoveToTarget.GetHashCode(); + if (valueCase_ == ValueOneofCase.ChooseSkill) hash ^= ChooseSkill.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) hash ^= MoveToRandomLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.MoveToLocation) hash ^= MoveToLocation.GetHashCode(); + if (valueCase_ == ValueOneofCase.DebugPrint) hash ^= DebugPrint.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.UeWait) { + output.WriteRawTag(138, 1); + output.WriteMessage(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + output.WriteRawTag(146, 1); + output.WriteMessage(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + output.WriteRawTag(154, 1); + output.WriteMessage(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + output.WriteRawTag(162, 1); + output.WriteMessage(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + output.WriteRawTag(170, 1); + output.WriteMessage(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + output.WriteRawTag(178, 1); + output.WriteMessage(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + output.WriteRawTag(186, 1); + output.WriteMessage(DebugPrint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.UeWait) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWait); + } + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UeWaitBlackboardTime); + } + if (valueCase_ == ValueOneofCase.MoveToTarget) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToTarget); + } + if (valueCase_ == ValueOneofCase.ChooseSkill) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChooseSkill); + } + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToRandomLocation); + } + if (valueCase_ == ValueOneofCase.MoveToLocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MoveToLocation); + } + if (valueCase_ == ValueOneofCase.DebugPrint) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DebugPrint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTask other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.UeWait: + if (UeWait == null) { + UeWait = new global::Cfg.AiUeWait(); + } + UeWait.MergeFrom(other.UeWait); + break; + case ValueOneofCase.UeWaitBlackboardTime: + if (UeWaitBlackboardTime == null) { + UeWaitBlackboardTime = new global::Cfg.AiUeWaitBlackboardTime(); + } + UeWaitBlackboardTime.MergeFrom(other.UeWaitBlackboardTime); + break; + case ValueOneofCase.MoveToTarget: + if (MoveToTarget == null) { + MoveToTarget = new global::Cfg.AiMoveToTarget(); + } + MoveToTarget.MergeFrom(other.MoveToTarget); + break; + case ValueOneofCase.ChooseSkill: + if (ChooseSkill == null) { + ChooseSkill = new global::Cfg.AiChooseSkill(); + } + ChooseSkill.MergeFrom(other.ChooseSkill); + break; + case ValueOneofCase.MoveToRandomLocation: + if (MoveToRandomLocation == null) { + MoveToRandomLocation = new global::Cfg.AiMoveToRandomLocation(); + } + MoveToRandomLocation.MergeFrom(other.MoveToRandomLocation); + break; + case ValueOneofCase.MoveToLocation: + if (MoveToLocation == null) { + MoveToLocation = new global::Cfg.AiMoveToLocation(); + } + MoveToLocation.MergeFrom(other.MoveToLocation); + break; + case ValueOneofCase.DebugPrint: + if (DebugPrint == null) { + DebugPrint = new global::Cfg.AiDebugPrint(); + } + DebugPrint.MergeFrom(other.DebugPrint); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 138: { + global::Cfg.AiUeWait subBuilder = new global::Cfg.AiUeWait(); + if (valueCase_ == ValueOneofCase.UeWait) { + subBuilder.MergeFrom(UeWait); + } + input.ReadMessage(subBuilder); + UeWait = subBuilder; + break; + } + case 146: { + global::Cfg.AiUeWaitBlackboardTime subBuilder = new global::Cfg.AiUeWaitBlackboardTime(); + if (valueCase_ == ValueOneofCase.UeWaitBlackboardTime) { + subBuilder.MergeFrom(UeWaitBlackboardTime); + } + input.ReadMessage(subBuilder); + UeWaitBlackboardTime = subBuilder; + break; + } + case 154: { + global::Cfg.AiMoveToTarget subBuilder = new global::Cfg.AiMoveToTarget(); + if (valueCase_ == ValueOneofCase.MoveToTarget) { + subBuilder.MergeFrom(MoveToTarget); + } + input.ReadMessage(subBuilder); + MoveToTarget = subBuilder; + break; + } + case 162: { + global::Cfg.AiChooseSkill subBuilder = new global::Cfg.AiChooseSkill(); + if (valueCase_ == ValueOneofCase.ChooseSkill) { + subBuilder.MergeFrom(ChooseSkill); + } + input.ReadMessage(subBuilder); + ChooseSkill = subBuilder; + break; + } + case 170: { + global::Cfg.AiMoveToRandomLocation subBuilder = new global::Cfg.AiMoveToRandomLocation(); + if (valueCase_ == ValueOneofCase.MoveToRandomLocation) { + subBuilder.MergeFrom(MoveToRandomLocation); + } + input.ReadMessage(subBuilder); + MoveToRandomLocation = subBuilder; + break; + } + case 178: { + global::Cfg.AiMoveToLocation subBuilder = new global::Cfg.AiMoveToLocation(); + if (valueCase_ == ValueOneofCase.MoveToLocation) { + subBuilder.MergeFrom(MoveToLocation); + } + input.ReadMessage(subBuilder); + MoveToLocation = subBuilder; + break; + } + case 186: { + global::Cfg.AiDebugPrint subBuilder = new global::Cfg.AiDebugPrint(); + if (valueCase_ == ValueOneofCase.DebugPrint) { + subBuilder.MergeFrom(DebugPrint); + } + input.ReadMessage(subBuilder); + DebugPrint = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWait : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWait()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait(AiUeWait other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + waitTime_ = other.waitTime_; + randomDeviation_ = other.randomDeviation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWait Clone() { + return new AiUeWait(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "wait_time" field. + public const int WaitTimeFieldNumber = 6; + private readonly static float WaitTimeDefaultValue = 0F; + + private float waitTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float WaitTime { + get { if ((_hasBits0 & 4) != 0) { return waitTime_; } else { return WaitTimeDefaultValue; } } + set { + _hasBits0 |= 4; + waitTime_ = value; + } + } + /// Gets whether the "wait_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWaitTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "wait_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWaitTime() { + _hasBits0 &= ~4; + } + + /// Field number for the "random_deviation" field. + public const int RandomDeviationFieldNumber = 7; + private readonly static float RandomDeviationDefaultValue = 0F; + + private float randomDeviation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RandomDeviation { + get { if ((_hasBits0 & 8) != 0) { return randomDeviation_; } else { return RandomDeviationDefaultValue; } } + set { + _hasBits0 |= 8; + randomDeviation_ = value; + } + } + /// Gets whether the "random_deviation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRandomDeviation { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "random_deviation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRandomDeviation() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWait); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWait other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WaitTime, other.WaitTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RandomDeviation, other.RandomDeviation)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasWaitTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WaitTime); + if (HasRandomDeviation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RandomDeviation); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasWaitTime) { + output.WriteRawTag(53); + output.WriteFloat(WaitTime); + } + if (HasRandomDeviation) { + output.WriteRawTag(61); + output.WriteFloat(RandomDeviation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasWaitTime) { + size += 1 + 4; + } + if (HasRandomDeviation) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWait other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasWaitTime) { + WaitTime = other.WaitTime; + } + if (other.HasRandomDeviation) { + RandomDeviation = other.RandomDeviation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + WaitTime = input.ReadFloat(); + break; + } + case 61: { + RandomDeviation = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiUeWaitBlackboardTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiUeWaitBlackboardTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime(AiUeWaitBlackboardTime other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + blackboardKey_ = other.blackboardKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiUeWaitBlackboardTime Clone() { + return new AiUeWaitBlackboardTime(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "blackboard_key" field. + public const int BlackboardKeyFieldNumber = 6; + private readonly static string BlackboardKeyDefaultValue = ""; + + private string blackboardKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlackboardKey { + get { return blackboardKey_ ?? BlackboardKeyDefaultValue; } + set { + blackboardKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "blackboard_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBlackboardKey { + get { return blackboardKey_ != null; } + } + /// Clears the value of the "blackboard_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBlackboardKey() { + blackboardKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiUeWaitBlackboardTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiUeWaitBlackboardTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (BlackboardKey != other.BlackboardKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasBlackboardKey) hash ^= BlackboardKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasBlackboardKey) { + output.WriteRawTag(50); + output.WriteString(BlackboardKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasBlackboardKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlackboardKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiUeWaitBlackboardTime other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasBlackboardKey) { + BlackboardKey = other.BlackboardKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + BlackboardKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToTarget : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToTarget()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget(AiMoveToTarget other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToTarget Clone() { + return new AiMoveToTarget(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 7; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToTarget); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToTarget other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasAcceptableRadius) { + output.WriteRawTag(61); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToTarget other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 61: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiChooseSkill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiChooseSkill()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill(AiChooseSkill other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + targetActorKey_ = other.targetActorKey_; + resultSkillIdKey_ = other.resultSkillIdKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiChooseSkill Clone() { + return new AiChooseSkill(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "target_actor_key" field. + public const int TargetActorKeyFieldNumber = 6; + private readonly static string TargetActorKeyDefaultValue = ""; + + private string targetActorKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetActorKey { + get { return targetActorKey_ ?? TargetActorKeyDefaultValue; } + set { + targetActorKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "target_actor_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetActorKey { + get { return targetActorKey_ != null; } + } + /// Clears the value of the "target_actor_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetActorKey() { + targetActorKey_ = null; + } + + /// Field number for the "result_skill_id_key" field. + public const int ResultSkillIdKeyFieldNumber = 7; + private readonly static string ResultSkillIdKeyDefaultValue = ""; + + private string resultSkillIdKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResultSkillIdKey { + get { return resultSkillIdKey_ ?? ResultSkillIdKeyDefaultValue; } + set { + resultSkillIdKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "result_skill_id_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResultSkillIdKey { + get { return resultSkillIdKey_ != null; } + } + /// Clears the value of the "result_skill_id_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResultSkillIdKey() { + resultSkillIdKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiChooseSkill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiChooseSkill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (TargetActorKey != other.TargetActorKey) return false; + if (ResultSkillIdKey != other.ResultSkillIdKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasTargetActorKey) hash ^= TargetActorKey.GetHashCode(); + if (HasResultSkillIdKey) hash ^= ResultSkillIdKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasTargetActorKey) { + output.WriteRawTag(50); + output.WriteString(TargetActorKey); + } + if (HasResultSkillIdKey) { + output.WriteRawTag(58); + output.WriteString(ResultSkillIdKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasTargetActorKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetActorKey); + } + if (HasResultSkillIdKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultSkillIdKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiChooseSkill other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasTargetActorKey) { + TargetActorKey = other.TargetActorKey; + } + if (other.HasResultSkillIdKey) { + ResultSkillIdKey = other.ResultSkillIdKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + TargetActorKey = input.ReadString(); + break; + } + case 58: { + ResultSkillIdKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToRandomLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToRandomLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation(AiMoveToRandomLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + originPositionKey_ = other.originPositionKey_; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToRandomLocation Clone() { + return new AiMoveToRandomLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "origin_position_key" field. + public const int OriginPositionKeyFieldNumber = 6; + private readonly static string OriginPositionKeyDefaultValue = ""; + + private string originPositionKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OriginPositionKey { + get { return originPositionKey_ ?? OriginPositionKeyDefaultValue; } + set { + originPositionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "origin_position_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOriginPositionKey { + get { return originPositionKey_ != null; } + } + /// Clears the value of the "origin_position_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOriginPositionKey() { + originPositionKey_ = null; + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 7; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 4) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 4; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToRandomLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToRandomLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (OriginPositionKey != other.OriginPositionKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasOriginPositionKey) hash ^= OriginPositionKey.GetHashCode(); + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasOriginPositionKey) { + output.WriteRawTag(50); + output.WriteString(OriginPositionKey); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasOriginPositionKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginPositionKey); + } + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToRandomLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasOriginPositionKey) { + OriginPositionKey = other.OriginPositionKey; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + OriginPositionKey = input.ReadString(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiMoveToLocation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiMoveToLocation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation(AiMoveToLocation other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + acceptableRadius_ = other.acceptableRadius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiMoveToLocation Clone() { + return new AiMoveToLocation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "acceptable_radius" field. + public const int AcceptableRadiusFieldNumber = 6; + private readonly static float AcceptableRadiusDefaultValue = 0F; + + private float acceptableRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AcceptableRadius { + get { if ((_hasBits0 & 4) != 0) { return acceptableRadius_; } else { return AcceptableRadiusDefaultValue; } } + set { + _hasBits0 |= 4; + acceptableRadius_ = value; + } + } + /// Gets whether the "acceptable_radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAcceptableRadius { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "acceptable_radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAcceptableRadius() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiMoveToLocation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiMoveToLocation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AcceptableRadius, other.AcceptableRadius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasAcceptableRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AcceptableRadius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasAcceptableRadius) { + output.WriteRawTag(53); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasAcceptableRadius) { + output.WriteRawTag(53); + output.WriteFloat(AcceptableRadius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasAcceptableRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiMoveToLocation other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasAcceptableRadius) { + AcceptableRadius = other.AcceptableRadius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 53: { + AcceptableRadius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiDebugPrint : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiDebugPrint()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint(AiDebugPrint other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + nodeName_ = other.nodeName_; + decorators_ = other.decorators_.Clone(); + services_ = other.services_.Clone(); + ignoreRestartSelf_ = other.ignoreRestartSelf_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiDebugPrint Clone() { + return new AiDebugPrint(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "node_name" field. + public const int NodeNameFieldNumber = 2; + private readonly static string NodeNameDefaultValue = ""; + + private string nodeName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NodeName { + get { return nodeName_ ?? NodeNameDefaultValue; } + set { + nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "node_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNodeName { + get { return nodeName_ != null; } + } + /// Clears the value of the "node_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNodeName() { + nodeName_ = null; + } + + /// Field number for the "decorators" field. + public const int DecoratorsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_decorators_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.AiDecorator.Parser); + private readonly pbc::RepeatedField decorators_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Decorators { + get { return decorators_; } + } + + /// Field number for the "services" field. + public const int ServicesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_services_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.AiService.Parser); + private readonly pbc::RepeatedField services_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Services { + get { return services_; } + } + + /// Field number for the "ignore_restart_self" field. + public const int IgnoreRestartSelfFieldNumber = 5; + private readonly static bool IgnoreRestartSelfDefaultValue = false; + + private bool ignoreRestartSelf_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreRestartSelf { + get { if ((_hasBits0 & 2) != 0) { return ignoreRestartSelf_; } else { return IgnoreRestartSelfDefaultValue; } } + set { + _hasBits0 |= 2; + ignoreRestartSelf_ = value; + } + } + /// Gets whether the "ignore_restart_self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIgnoreRestartSelf { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ignore_restart_self" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIgnoreRestartSelf() { + _hasBits0 &= ~2; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 6; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiDebugPrint); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiDebugPrint other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (NodeName != other.NodeName) return false; + if(!decorators_.Equals(other.decorators_)) return false; + if(!services_.Equals(other.services_)) return false; + if (IgnoreRestartSelf != other.IgnoreRestartSelf) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasNodeName) hash ^= NodeName.GetHashCode(); + hash ^= decorators_.GetHashCode(); + hash ^= services_.GetHashCode(); + if (HasIgnoreRestartSelf) hash ^= IgnoreRestartSelf.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(output, _repeated_decorators_codec); + services_.WriteTo(output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasNodeName) { + output.WriteRawTag(18); + output.WriteString(NodeName); + } + decorators_.WriteTo(ref output, _repeated_decorators_codec); + services_.WriteTo(ref output, _repeated_services_codec); + if (HasIgnoreRestartSelf) { + output.WriteRawTag(40); + output.WriteBool(IgnoreRestartSelf); + } + if (HasText) { + output.WriteRawTag(50); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasNodeName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName); + } + size += decorators_.CalculateSize(_repeated_decorators_codec); + size += services_.CalculateSize(_repeated_services_codec); + if (HasIgnoreRestartSelf) { + size += 1 + 1; + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiDebugPrint other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasNodeName) { + NodeName = other.NodeName; + } + decorators_.Add(other.decorators_); + services_.Add(other.services_); + if (other.HasIgnoreRestartSelf) { + IgnoreRestartSelf = other.IgnoreRestartSelf; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + NodeName = input.ReadString(); + break; + } + case 26: { + decorators_.AddEntriesFrom(ref input, _repeated_decorators_codec); + break; + } + case 34: { + services_.AddEntriesFrom(ref input, _repeated_services_codec); + break; + } + case 40: { + IgnoreRestartSelf = input.ReadBool(); + break; + } + case 50: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig(CommonGlobalConfig other) : this() { + _hasBits0 = other._hasBits0; + bagCapacity_ = other.bagCapacity_; + bagCapacitySpecial_ = other.bagCapacitySpecial_; + bagTempExpendableCapacity_ = other.bagTempExpendableCapacity_; + bagTempToolCapacity_ = other.bagTempToolCapacity_; + bagInitCapacity_ = other.bagInitCapacity_; + quickBagCapacity_ = other.quickBagCapacity_; + clothBagCapacity_ = other.clothBagCapacity_; + clothBagInitCapacity_ = other.clothBagInitCapacity_; + clothBagCapacitySpecial_ = other.clothBagCapacitySpecial_; + bagInitItemsDropId_ = other.bagInitItemsDropId_; + mailBoxCapacity_ = other.mailBoxCapacity_; + damageParamC_ = other.damageParamC_; + damageParamE_ = other.damageParamE_; + damageParamF_ = other.damageParamF_; + damageParamD_ = other.damageParamD_; + roleSpeed_ = other.roleSpeed_; + monsterSpeed_ = other.monsterSpeed_; + initEnergy_ = other.initEnergy_; + initViality_ = other.initViality_; + maxViality_ = other.maxViality_; + perVialityRecoveryTime_ = other.perVialityRecoveryTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonGlobalConfig Clone() { + return new CommonGlobalConfig(this); + } + + /// Field number for the "bag_capacity" field. + public const int BagCapacityFieldNumber = 1; + private readonly static int BagCapacityDefaultValue = 0; + + private int bagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacity { + get { if ((_hasBits0 & 1) != 0) { return bagCapacity_; } else { return BagCapacityDefaultValue; } } + set { + _hasBits0 |= 1; + bagCapacity_ = value; + } + } + /// Gets whether the "bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacity { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacity() { + _hasBits0 &= ~1; + } + + /// Field number for the "bag_capacity_special" field. + public const int BagCapacitySpecialFieldNumber = 2; + private readonly static int BagCapacitySpecialDefaultValue = 0; + + private int bagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagCapacitySpecial { + get { if ((_hasBits0 & 2) != 0) { return bagCapacitySpecial_; } else { return BagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 2; + bagCapacitySpecial_ = value; + } + } + /// Gets whether the "bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagCapacitySpecial { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagCapacitySpecial() { + _hasBits0 &= ~2; + } + + /// Field number for the "bag_temp_expendable_capacity" field. + public const int BagTempExpendableCapacityFieldNumber = 3; + private readonly static int BagTempExpendableCapacityDefaultValue = 0; + + private int bagTempExpendableCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempExpendableCapacity { + get { if ((_hasBits0 & 4) != 0) { return bagTempExpendableCapacity_; } else { return BagTempExpendableCapacityDefaultValue; } } + set { + _hasBits0 |= 4; + bagTempExpendableCapacity_ = value; + } + } + /// Gets whether the "bag_temp_expendable_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempExpendableCapacity { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "bag_temp_expendable_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempExpendableCapacity() { + _hasBits0 &= ~4; + } + + /// Field number for the "bag_temp_tool_capacity" field. + public const int BagTempToolCapacityFieldNumber = 4; + private readonly static int BagTempToolCapacityDefaultValue = 0; + + private int bagTempToolCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagTempToolCapacity { + get { if ((_hasBits0 & 8) != 0) { return bagTempToolCapacity_; } else { return BagTempToolCapacityDefaultValue; } } + set { + _hasBits0 |= 8; + bagTempToolCapacity_ = value; + } + } + /// Gets whether the "bag_temp_tool_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagTempToolCapacity { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bag_temp_tool_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagTempToolCapacity() { + _hasBits0 &= ~8; + } + + /// Field number for the "bag_init_capacity" field. + public const int BagInitCapacityFieldNumber = 5; + private readonly static int BagInitCapacityDefaultValue = 0; + + private int bagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitCapacity { + get { if ((_hasBits0 & 16) != 0) { return bagInitCapacity_; } else { return BagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 16; + bagInitCapacity_ = value; + } + } + /// Gets whether the "bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitCapacity { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitCapacity() { + _hasBits0 &= ~16; + } + + /// Field number for the "quick_bag_capacity" field. + public const int QuickBagCapacityFieldNumber = 6; + private readonly static int QuickBagCapacityDefaultValue = 0; + + private int quickBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int QuickBagCapacity { + get { if ((_hasBits0 & 32) != 0) { return quickBagCapacity_; } else { return QuickBagCapacityDefaultValue; } } + set { + _hasBits0 |= 32; + quickBagCapacity_ = value; + } + } + /// Gets whether the "quick_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuickBagCapacity { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "quick_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuickBagCapacity() { + _hasBits0 &= ~32; + } + + /// Field number for the "cloth_bag_capacity" field. + public const int ClothBagCapacityFieldNumber = 7; + private readonly static int ClothBagCapacityDefaultValue = 0; + + private int clothBagCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacity { + get { if ((_hasBits0 & 64) != 0) { return clothBagCapacity_; } else { return ClothBagCapacityDefaultValue; } } + set { + _hasBits0 |= 64; + clothBagCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacity { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "cloth_bag_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacity() { + _hasBits0 &= ~64; + } + + /// Field number for the "cloth_bag_init_capacity" field. + public const int ClothBagInitCapacityFieldNumber = 8; + private readonly static int ClothBagInitCapacityDefaultValue = 0; + + private int clothBagInitCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagInitCapacity { + get { if ((_hasBits0 & 128) != 0) { return clothBagInitCapacity_; } else { return ClothBagInitCapacityDefaultValue; } } + set { + _hasBits0 |= 128; + clothBagInitCapacity_ = value; + } + } + /// Gets whether the "cloth_bag_init_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagInitCapacity { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "cloth_bag_init_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagInitCapacity() { + _hasBits0 &= ~128; + } + + /// Field number for the "cloth_bag_capacity_special" field. + public const int ClothBagCapacitySpecialFieldNumber = 9; + private readonly static int ClothBagCapacitySpecialDefaultValue = 0; + + private int clothBagCapacitySpecial_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClothBagCapacitySpecial { + get { if ((_hasBits0 & 256) != 0) { return clothBagCapacitySpecial_; } else { return ClothBagCapacitySpecialDefaultValue; } } + set { + _hasBits0 |= 256; + clothBagCapacitySpecial_ = value; + } + } + /// Gets whether the "cloth_bag_capacity_special" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClothBagCapacitySpecial { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "cloth_bag_capacity_special" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClothBagCapacitySpecial() { + _hasBits0 &= ~256; + } + + /// Field number for the "bag_init_items_drop_id" field. + public const int BagInitItemsDropIdFieldNumber = 10; + private readonly static int BagInitItemsDropIdDefaultValue = 0; + + private int bagInitItemsDropId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int BagInitItemsDropId { + get { if ((_hasBits0 & 512) != 0) { return bagInitItemsDropId_; } else { return BagInitItemsDropIdDefaultValue; } } + set { + _hasBits0 |= 512; + bagInitItemsDropId_ = value; + } + } + /// Gets whether the "bag_init_items_drop_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBagInitItemsDropId { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "bag_init_items_drop_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBagInitItemsDropId() { + _hasBits0 &= ~512; + } + + /// Field number for the "mail_box_capacity" field. + public const int MailBoxCapacityFieldNumber = 11; + private readonly static int MailBoxCapacityDefaultValue = 0; + + private int mailBoxCapacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MailBoxCapacity { + get { if ((_hasBits0 & 1024) != 0) { return mailBoxCapacity_; } else { return MailBoxCapacityDefaultValue; } } + set { + _hasBits0 |= 1024; + mailBoxCapacity_ = value; + } + } + /// Gets whether the "mail_box_capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMailBoxCapacity { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "mail_box_capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMailBoxCapacity() { + _hasBits0 &= ~1024; + } + + /// Field number for the "damage_param_c" field. + public const int DamageParamCFieldNumber = 12; + private readonly static float DamageParamCDefaultValue = 0F; + + private float damageParamC_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamC { + get { if ((_hasBits0 & 2048) != 0) { return damageParamC_; } else { return DamageParamCDefaultValue; } } + set { + _hasBits0 |= 2048; + damageParamC_ = value; + } + } + /// Gets whether the "damage_param_c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamC { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "damage_param_c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamC() { + _hasBits0 &= ~2048; + } + + /// Field number for the "damage_param_e" field. + public const int DamageParamEFieldNumber = 13; + private readonly static float DamageParamEDefaultValue = 0F; + + private float damageParamE_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamE { + get { if ((_hasBits0 & 4096) != 0) { return damageParamE_; } else { return DamageParamEDefaultValue; } } + set { + _hasBits0 |= 4096; + damageParamE_ = value; + } + } + /// Gets whether the "damage_param_e" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamE { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "damage_param_e" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamE() { + _hasBits0 &= ~4096; + } + + /// Field number for the "damage_param_f" field. + public const int DamageParamFFieldNumber = 14; + private readonly static float DamageParamFDefaultValue = 0F; + + private float damageParamF_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamF { + get { if ((_hasBits0 & 8192) != 0) { return damageParamF_; } else { return DamageParamFDefaultValue; } } + set { + _hasBits0 |= 8192; + damageParamF_ = value; + } + } + /// Gets whether the "damage_param_f" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamF { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "damage_param_f" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamF() { + _hasBits0 &= ~8192; + } + + /// Field number for the "damage_param_d" field. + public const int DamageParamDFieldNumber = 15; + private readonly static float DamageParamDDefaultValue = 0F; + + private float damageParamD_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DamageParamD { + get { if ((_hasBits0 & 16384) != 0) { return damageParamD_; } else { return DamageParamDDefaultValue; } } + set { + _hasBits0 |= 16384; + damageParamD_ = value; + } + } + /// Gets whether the "damage_param_d" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDamageParamD { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "damage_param_d" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDamageParamD() { + _hasBits0 &= ~16384; + } + + /// Field number for the "role_speed" field. + public const int RoleSpeedFieldNumber = 16; + private readonly static float RoleSpeedDefaultValue = 0F; + + private float roleSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float RoleSpeed { + get { if ((_hasBits0 & 32768) != 0) { return roleSpeed_; } else { return RoleSpeedDefaultValue; } } + set { + _hasBits0 |= 32768; + roleSpeed_ = value; + } + } + /// Gets whether the "role_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleSpeed { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "role_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleSpeed() { + _hasBits0 &= ~32768; + } + + /// Field number for the "monster_speed" field. + public const int MonsterSpeedFieldNumber = 17; + private readonly static float MonsterSpeedDefaultValue = 0F; + + private float monsterSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float MonsterSpeed { + get { if ((_hasBits0 & 65536) != 0) { return monsterSpeed_; } else { return MonsterSpeedDefaultValue; } } + set { + _hasBits0 |= 65536; + monsterSpeed_ = value; + } + } + /// Gets whether the "monster_speed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMonsterSpeed { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "monster_speed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMonsterSpeed() { + _hasBits0 &= ~65536; + } + + /// Field number for the "init_energy" field. + public const int InitEnergyFieldNumber = 18; + private readonly static int InitEnergyDefaultValue = 0; + + private int initEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitEnergy { + get { if ((_hasBits0 & 131072) != 0) { return initEnergy_; } else { return InitEnergyDefaultValue; } } + set { + _hasBits0 |= 131072; + initEnergy_ = value; + } + } + /// Gets whether the "init_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitEnergy { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "init_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitEnergy() { + _hasBits0 &= ~131072; + } + + /// Field number for the "init_viality" field. + public const int InitVialityFieldNumber = 19; + private readonly static int InitVialityDefaultValue = 0; + + private int initViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitViality { + get { if ((_hasBits0 & 262144) != 0) { return initViality_; } else { return InitVialityDefaultValue; } } + set { + _hasBits0 |= 262144; + initViality_ = value; + } + } + /// Gets whether the "init_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInitViality { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "init_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInitViality() { + _hasBits0 &= ~262144; + } + + /// Field number for the "max_viality" field. + public const int MaxVialityFieldNumber = 20; + private readonly static int MaxVialityDefaultValue = 0; + + private int maxViality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxViality { + get { if ((_hasBits0 & 524288) != 0) { return maxViality_; } else { return MaxVialityDefaultValue; } } + set { + _hasBits0 |= 524288; + maxViality_ = value; + } + } + /// Gets whether the "max_viality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxViality { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "max_viality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxViality() { + _hasBits0 &= ~524288; + } + + /// Field number for the "per_viality_recovery_time" field. + public const int PerVialityRecoveryTimeFieldNumber = 21; + private readonly static int PerVialityRecoveryTimeDefaultValue = 0; + + private int perVialityRecoveryTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PerVialityRecoveryTime { + get { if ((_hasBits0 & 1048576) != 0) { return perVialityRecoveryTime_; } else { return PerVialityRecoveryTimeDefaultValue; } } + set { + _hasBits0 |= 1048576; + perVialityRecoveryTime_ = value; + } + } + /// Gets whether the "per_viality_recovery_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPerVialityRecoveryTime { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "per_viality_recovery_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPerVialityRecoveryTime() { + _hasBits0 &= ~1048576; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BagCapacity != other.BagCapacity) return false; + if (BagCapacitySpecial != other.BagCapacitySpecial) return false; + if (BagTempExpendableCapacity != other.BagTempExpendableCapacity) return false; + if (BagTempToolCapacity != other.BagTempToolCapacity) return false; + if (BagInitCapacity != other.BagInitCapacity) return false; + if (QuickBagCapacity != other.QuickBagCapacity) return false; + if (ClothBagCapacity != other.ClothBagCapacity) return false; + if (ClothBagInitCapacity != other.ClothBagInitCapacity) return false; + if (ClothBagCapacitySpecial != other.ClothBagCapacitySpecial) return false; + if (BagInitItemsDropId != other.BagInitItemsDropId) return false; + if (MailBoxCapacity != other.MailBoxCapacity) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamC, other.DamageParamC)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamE, other.DamageParamE)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamF, other.DamageParamF)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DamageParamD, other.DamageParamD)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RoleSpeed, other.RoleSpeed)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MonsterSpeed, other.MonsterSpeed)) return false; + if (InitEnergy != other.InitEnergy) return false; + if (InitViality != other.InitViality) return false; + if (MaxViality != other.MaxViality) return false; + if (PerVialityRecoveryTime != other.PerVialityRecoveryTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasBagCapacity) hash ^= BagCapacity.GetHashCode(); + if (HasBagCapacitySpecial) hash ^= BagCapacitySpecial.GetHashCode(); + if (HasBagTempExpendableCapacity) hash ^= BagTempExpendableCapacity.GetHashCode(); + if (HasBagTempToolCapacity) hash ^= BagTempToolCapacity.GetHashCode(); + if (HasBagInitCapacity) hash ^= BagInitCapacity.GetHashCode(); + if (HasQuickBagCapacity) hash ^= QuickBagCapacity.GetHashCode(); + if (HasClothBagCapacity) hash ^= ClothBagCapacity.GetHashCode(); + if (HasClothBagInitCapacity) hash ^= ClothBagInitCapacity.GetHashCode(); + if (HasClothBagCapacitySpecial) hash ^= ClothBagCapacitySpecial.GetHashCode(); + if (HasBagInitItemsDropId) hash ^= BagInitItemsDropId.GetHashCode(); + if (HasMailBoxCapacity) hash ^= MailBoxCapacity.GetHashCode(); + if (HasDamageParamC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamC); + if (HasDamageParamE) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamE); + if (HasDamageParamF) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamF); + if (HasDamageParamD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DamageParamD); + if (HasRoleSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RoleSpeed); + if (HasMonsterSpeed) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MonsterSpeed); + if (HasInitEnergy) hash ^= InitEnergy.GetHashCode(); + if (HasInitViality) hash ^= InitViality.GetHashCode(); + if (HasMaxViality) hash ^= MaxViality.GetHashCode(); + if (HasPerVialityRecoveryTime) hash ^= PerVialityRecoveryTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBagCapacity) { + output.WriteRawTag(8); + output.WriteInt32(BagCapacity); + } + if (HasBagCapacitySpecial) { + output.WriteRawTag(16); + output.WriteInt32(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + output.WriteRawTag(24); + output.WriteInt32(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + output.WriteRawTag(32); + output.WriteInt32(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + output.WriteRawTag(40); + output.WriteInt32(BagInitCapacity); + } + if (HasQuickBagCapacity) { + output.WriteRawTag(48); + output.WriteInt32(QuickBagCapacity); + } + if (HasClothBagCapacity) { + output.WriteRawTag(56); + output.WriteInt32(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + output.WriteRawTag(64); + output.WriteInt32(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + output.WriteRawTag(72); + output.WriteInt32(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + output.WriteRawTag(80); + output.WriteInt32(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + output.WriteRawTag(88); + output.WriteInt32(MailBoxCapacity); + } + if (HasDamageParamC) { + output.WriteRawTag(101); + output.WriteFloat(DamageParamC); + } + if (HasDamageParamE) { + output.WriteRawTag(109); + output.WriteFloat(DamageParamE); + } + if (HasDamageParamF) { + output.WriteRawTag(117); + output.WriteFloat(DamageParamF); + } + if (HasDamageParamD) { + output.WriteRawTag(125); + output.WriteFloat(DamageParamD); + } + if (HasRoleSpeed) { + output.WriteRawTag(133, 1); + output.WriteFloat(RoleSpeed); + } + if (HasMonsterSpeed) { + output.WriteRawTag(141, 1); + output.WriteFloat(MonsterSpeed); + } + if (HasInitEnergy) { + output.WriteRawTag(144, 1); + output.WriteInt32(InitEnergy); + } + if (HasInitViality) { + output.WriteRawTag(152, 1); + output.WriteInt32(InitViality); + } + if (HasMaxViality) { + output.WriteRawTag(160, 1); + output.WriteInt32(MaxViality); + } + if (HasPerVialityRecoveryTime) { + output.WriteRawTag(168, 1); + output.WriteInt32(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacity); + } + if (HasBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagCapacitySpecial); + } + if (HasBagTempExpendableCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempExpendableCapacity); + } + if (HasBagTempToolCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagTempToolCapacity); + } + if (HasBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitCapacity); + } + if (HasQuickBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(QuickBagCapacity); + } + if (HasClothBagCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacity); + } + if (HasClothBagInitCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagInitCapacity); + } + if (HasClothBagCapacitySpecial) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClothBagCapacitySpecial); + } + if (HasBagInitItemsDropId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BagInitItemsDropId); + } + if (HasMailBoxCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MailBoxCapacity); + } + if (HasDamageParamC) { + size += 1 + 4; + } + if (HasDamageParamE) { + size += 1 + 4; + } + if (HasDamageParamF) { + size += 1 + 4; + } + if (HasDamageParamD) { + size += 1 + 4; + } + if (HasRoleSpeed) { + size += 2 + 4; + } + if (HasMonsterSpeed) { + size += 2 + 4; + } + if (HasInitEnergy) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitEnergy); + } + if (HasInitViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitViality); + } + if (HasMaxViality) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxViality); + } + if (HasPerVialityRecoveryTime) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(PerVialityRecoveryTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonGlobalConfig other) { + if (other == null) { + return; + } + if (other.HasBagCapacity) { + BagCapacity = other.BagCapacity; + } + if (other.HasBagCapacitySpecial) { + BagCapacitySpecial = other.BagCapacitySpecial; + } + if (other.HasBagTempExpendableCapacity) { + BagTempExpendableCapacity = other.BagTempExpendableCapacity; + } + if (other.HasBagTempToolCapacity) { + BagTempToolCapacity = other.BagTempToolCapacity; + } + if (other.HasBagInitCapacity) { + BagInitCapacity = other.BagInitCapacity; + } + if (other.HasQuickBagCapacity) { + QuickBagCapacity = other.QuickBagCapacity; + } + if (other.HasClothBagCapacity) { + ClothBagCapacity = other.ClothBagCapacity; + } + if (other.HasClothBagInitCapacity) { + ClothBagInitCapacity = other.ClothBagInitCapacity; + } + if (other.HasClothBagCapacitySpecial) { + ClothBagCapacitySpecial = other.ClothBagCapacitySpecial; + } + if (other.HasBagInitItemsDropId) { + BagInitItemsDropId = other.BagInitItemsDropId; + } + if (other.HasMailBoxCapacity) { + MailBoxCapacity = other.MailBoxCapacity; + } + if (other.HasDamageParamC) { + DamageParamC = other.DamageParamC; + } + if (other.HasDamageParamE) { + DamageParamE = other.DamageParamE; + } + if (other.HasDamageParamF) { + DamageParamF = other.DamageParamF; + } + if (other.HasDamageParamD) { + DamageParamD = other.DamageParamD; + } + if (other.HasRoleSpeed) { + RoleSpeed = other.RoleSpeed; + } + if (other.HasMonsterSpeed) { + MonsterSpeed = other.MonsterSpeed; + } + if (other.HasInitEnergy) { + InitEnergy = other.InitEnergy; + } + if (other.HasInitViality) { + InitViality = other.InitViality; + } + if (other.HasMaxViality) { + MaxViality = other.MaxViality; + } + if (other.HasPerVialityRecoveryTime) { + PerVialityRecoveryTime = other.PerVialityRecoveryTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + BagCapacity = input.ReadInt32(); + break; + } + case 16: { + BagCapacitySpecial = input.ReadInt32(); + break; + } + case 24: { + BagTempExpendableCapacity = input.ReadInt32(); + break; + } + case 32: { + BagTempToolCapacity = input.ReadInt32(); + break; + } + case 40: { + BagInitCapacity = input.ReadInt32(); + break; + } + case 48: { + QuickBagCapacity = input.ReadInt32(); + break; + } + case 56: { + ClothBagCapacity = input.ReadInt32(); + break; + } + case 64: { + ClothBagInitCapacity = input.ReadInt32(); + break; + } + case 72: { + ClothBagCapacitySpecial = input.ReadInt32(); + break; + } + case 80: { + BagInitItemsDropId = input.ReadInt32(); + break; + } + case 88: { + MailBoxCapacity = input.ReadInt32(); + break; + } + case 101: { + DamageParamC = input.ReadFloat(); + break; + } + case 109: { + DamageParamE = input.ReadFloat(); + break; + } + case 117: { + DamageParamF = input.ReadFloat(); + break; + } + case 125: { + DamageParamD = input.ReadFloat(); + break; + } + case 133: { + RoleSpeed = input.ReadFloat(); + break; + } + case 141: { + MonsterSpeed = input.ReadFloat(); + break; + } + case 144: { + InitEnergy = input.ReadInt32(); + break; + } + case 152: { + InitViality = input.ReadInt32(); + break; + } + case 160: { + MaxViality = input.ReadInt32(); + break; + } + case 168: { + PerVialityRecoveryTime = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem(ItemItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + majorType_ = other.majorType_; + minorType_ = other.minorType_; + maxPileNum_ = other.maxPileNum_; + quality_ = other.quality_; + icon_ = other.icon_; + iconBackgroud_ = other.iconBackgroud_; + iconMask_ = other.iconMask_; + desc_ = other.desc_; + showOrder_ = other.showOrder_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemItem Clone() { + return new ItemItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "major_type" field. + public const int MajorTypeFieldNumber = 3; + private readonly static global::Cfg.ItemEMajorType MajorTypeDefaultValue = global::Cfg.ItemEMajorType.Currency; + + private global::Cfg.ItemEMajorType majorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMajorType MajorType { + get { if ((_hasBits0 & 2) != 0) { return majorType_; } else { return MajorTypeDefaultValue; } } + set { + _hasBits0 |= 2; + majorType_ = value; + } + } + /// Gets whether the "major_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMajorType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "major_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMajorType() { + _hasBits0 &= ~2; + } + + /// Field number for the "minor_type" field. + public const int MinorTypeFieldNumber = 4; + private readonly static global::Cfg.ItemEMinorType MinorTypeDefaultValue = global::Cfg.ItemEMinorType.Diamond; + + private global::Cfg.ItemEMinorType minorType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEMinorType MinorType { + get { if ((_hasBits0 & 4) != 0) { return minorType_; } else { return MinorTypeDefaultValue; } } + set { + _hasBits0 |= 4; + minorType_ = value; + } + } + /// Gets whether the "minor_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMinorType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "minor_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMinorType() { + _hasBits0 &= ~4; + } + + /// Field number for the "max_pile_num" field. + public const int MaxPileNumFieldNumber = 5; + private readonly static int MaxPileNumDefaultValue = 0; + + private int maxPileNum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxPileNum { + get { if ((_hasBits0 & 8) != 0) { return maxPileNum_; } else { return MaxPileNumDefaultValue; } } + set { + _hasBits0 |= 8; + maxPileNum_ = value; + } + } + /// Gets whether the "max_pile_num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxPileNum { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "max_pile_num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxPileNum() { + _hasBits0 &= ~8; + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 6; + private readonly static global::Cfg.ItemEItemQuality QualityDefaultValue = global::Cfg.ItemEItemQuality.White; + + private global::Cfg.ItemEItemQuality quality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.ItemEItemQuality Quality { + get { if ((_hasBits0 & 16) != 0) { return quality_; } else { return QualityDefaultValue; } } + set { + _hasBits0 |= 16; + quality_ = value; + } + } + /// Gets whether the "quality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuality { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "quality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuality() { + _hasBits0 &= ~16; + } + + /// Field number for the "icon" field. + public const int IconFieldNumber = 7; + private readonly static string IconDefaultValue = ""; + + private string icon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_ ?? IconDefaultValue; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIcon { + get { return icon_ != null; } + } + /// Clears the value of the "icon" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIcon() { + icon_ = null; + } + + /// Field number for the "icon_backgroud" field. + public const int IconBackgroudFieldNumber = 8; + private readonly static string IconBackgroudDefaultValue = ""; + + private string iconBackgroud_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconBackgroud { + get { return iconBackgroud_ ?? IconBackgroudDefaultValue; } + set { + iconBackgroud_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_backgroud" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconBackgroud { + get { return iconBackgroud_ != null; } + } + /// Clears the value of the "icon_backgroud" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconBackgroud() { + iconBackgroud_ = null; + } + + /// Field number for the "icon_mask" field. + public const int IconMaskFieldNumber = 9; + private readonly static string IconMaskDefaultValue = ""; + + private string iconMask_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IconMask { + get { return iconMask_ ?? IconMaskDefaultValue; } + set { + iconMask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "icon_mask" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIconMask { + get { return iconMask_ != null; } + } + /// Clears the value of the "icon_mask" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIconMask() { + iconMask_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 10; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "show_order" field. + public const int ShowOrderFieldNumber = 11; + private readonly static int ShowOrderDefaultValue = 0; + + private int showOrder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ShowOrder { + get { if ((_hasBits0 & 32) != 0) { return showOrder_; } else { return ShowOrderDefaultValue; } } + set { + _hasBits0 |= 32; + showOrder_ = value; + } + } + /// Gets whether the "show_order" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasShowOrder { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "show_order" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearShowOrder() { + _hasBits0 &= ~32; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (MajorType != other.MajorType) return false; + if (MinorType != other.MinorType) return false; + if (MaxPileNum != other.MaxPileNum) return false; + if (Quality != other.Quality) return false; + if (Icon != other.Icon) return false; + if (IconBackgroud != other.IconBackgroud) return false; + if (IconMask != other.IconMask) return false; + if (Desc != other.Desc) return false; + if (ShowOrder != other.ShowOrder) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMajorType) hash ^= MajorType.GetHashCode(); + if (HasMinorType) hash ^= MinorType.GetHashCode(); + if (HasMaxPileNum) hash ^= MaxPileNum.GetHashCode(); + if (HasQuality) hash ^= Quality.GetHashCode(); + if (HasIcon) hash ^= Icon.GetHashCode(); + if (HasIconBackgroud) hash ^= IconBackgroud.GetHashCode(); + if (HasIconMask) hash ^= IconMask.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasShowOrder) hash ^= ShowOrder.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMajorType) { + output.WriteRawTag(24); + output.WriteEnum((int) MajorType); + } + if (HasMinorType) { + output.WriteRawTag(32); + output.WriteEnum((int) MinorType); + } + if (HasMaxPileNum) { + output.WriteRawTag(40); + output.WriteInt32(MaxPileNum); + } + if (HasQuality) { + output.WriteRawTag(48); + output.WriteEnum((int) Quality); + } + if (HasIcon) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (HasIconBackgroud) { + output.WriteRawTag(66); + output.WriteString(IconBackgroud); + } + if (HasIconMask) { + output.WriteRawTag(74); + output.WriteString(IconMask); + } + if (HasDesc) { + output.WriteRawTag(82); + output.WriteString(Desc); + } + if (HasShowOrder) { + output.WriteRawTag(88); + output.WriteInt32(ShowOrder); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMajorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MajorType); + } + if (HasMinorType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinorType); + } + if (HasMaxPileNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxPileNum); + } + if (HasQuality) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } + if (HasIcon) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (HasIconBackgroud) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconBackgroud); + } + if (HasIconMask) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IconMask); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasShowOrder) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShowOrder); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMajorType) { + MajorType = other.MajorType; + } + if (other.HasMinorType) { + MinorType = other.MinorType; + } + if (other.HasMaxPileNum) { + MaxPileNum = other.MaxPileNum; + } + if (other.HasQuality) { + Quality = other.Quality; + } + if (other.HasIcon) { + Icon = other.Icon; + } + if (other.HasIconBackgroud) { + IconBackgroud = other.IconBackgroud; + } + if (other.HasIconMask) { + IconMask = other.IconMask; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasShowOrder) { + ShowOrder = other.ShowOrder; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + MajorType = (global::Cfg.ItemEMajorType) input.ReadEnum(); + break; + } + case 32: { + MinorType = (global::Cfg.ItemEMinorType) input.ReadEnum(); + break; + } + case 40: { + MaxPileNum = input.ReadInt32(); + break; + } + case 48: { + Quality = (global::Cfg.ItemEItemQuality) input.ReadEnum(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + IconBackgroud = input.ReadString(); + break; + } + case 74: { + IconMask = input.ReadString(); + break; + } + case 82: { + Desc = input.ReadString(); + break; + } + case 88: { + ShowOrder = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo(L10nL10NDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nL10NDemo Clone() { + return new L10nL10NDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nL10NDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasText) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo(L10nPatchDemo other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nPatchDemo Clone() { + return new L10nPatchDemo(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 2) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 2; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(16); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nPatchDemo other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTestTag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag(TagTestTag other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTestTag Clone() { + return new TagTestTag(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static string ValueDefaultValue = ""; + + private string value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_ ?? ValueDefaultValue; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return value_ != null; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasValue) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTestTag other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2(TestDemoType2 other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + x80_ = other.x80_; + x8_ = other.x8_; + x9_ = other.x9_; + x10_ = other.x10_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + s1_ = other.s1_; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k5_ = other.k5_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType2 Clone() { + return new TestDemoType2(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "x8_0" field. + public const int X80FieldNumber = 8; + private readonly static int X80DefaultValue = 0; + + private int x80_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X80 { + get { if ((_hasBits0 & 128) != 0) { return x80_; } else { return X80DefaultValue; } } + set { + _hasBits0 |= 128; + x80_ = value; + } + } + /// Gets whether the "x8_0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX80 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "x8_0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX80() { + _hasBits0 &= ~128; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 9; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 256) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 256; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~256; + } + + /// Field number for the "x9" field. + public const int X9FieldNumber = 10; + private readonly static long X9DefaultValue = 0L; + + private long x9_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X9 { + get { if ((_hasBits0 & 512) != 0) { return x9_; } else { return X9DefaultValue; } } + set { + _hasBits0 |= 512; + x9_ = value; + } + } + /// Gets whether the "x9" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX9 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "x9" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX9() { + _hasBits0 &= ~512; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 11; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 12; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 13; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 1024) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 1024; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~1024; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 14; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 15; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 16; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 2048) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 2048; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~2048; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(138); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 18; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(146); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k5" field. + public const int K5FieldNumber = 19; + private static readonly pb::FieldCodec _repeated_k5_codec + = pb::FieldCodec.ForInt32(154); + private readonly pbc::RepeatedField k5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K5 { + get { return k5_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 20; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 162); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 21; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(170, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 22; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(178, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (X80 != other.X80) return false; + if (X8 != other.X8) return false; + if (X9 != other.X9) return false; + if (X10 != other.X10) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if (S1 != other.S1) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if(!k5_.Equals(other.k5_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasX80) hash ^= X80.GetHashCode(); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX9) hash ^= X9.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= k5_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(72); + output.WriteInt32(X8); + } + if (HasX9) { + output.WriteRawTag(80); + output.WriteInt64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (HasT1) { + output.WriteRawTag(128, 1); + output.WriteInt64(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k5_.WriteTo(output, _repeated_k5_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasX80) { + output.WriteRawTag(64); + output.WriteInt32(X80); + } + if (HasX8) { + output.WriteRawTag(72); + output.WriteInt32(X8); + } + if (HasX9) { + output.WriteRawTag(80); + output.WriteInt64(X9); + } + if (HasX10) { + output.WriteRawTag(90); + output.WriteString(X10); + } + if (x12_ != null) { + output.WriteRawTag(98); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(104); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(114); + output.WriteMessage(X14); + } + if (HasS1) { + output.WriteRawTag(122); + output.WriteString(S1); + } + if (HasT1) { + output.WriteRawTag(128, 1); + output.WriteInt64(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k5_.WriteTo(ref output, _repeated_k5_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasX80) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X80); + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX9) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X9); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasT1) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k5_.CalculateSize(_repeated_k5_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType2 other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasX80) { + X80 = other.X80; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX9) { + X9 = other.X9; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k5_.Add(other.k5_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 72: { + X8 = input.ReadInt32(); + break; + } + case 80: { + X9 = input.ReadInt64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 128: { + T1 = input.ReadInt64(); + break; + } + case 138: + case 136: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 146: + case 144: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 154: + case 152: { + k5_.AddEntriesFrom(input, _repeated_k5_codec); + break; + } + case 162: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 170: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 178: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 64: { + X80 = input.ReadInt32(); + break; + } + case 72: { + X8 = input.ReadInt32(); + break; + } + case 80: { + X9 = input.ReadInt64(); + break; + } + case 90: { + X10 = input.ReadString(); + break; + } + case 98: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 104: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 114: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 122: { + S1 = input.ReadString(); + break; + } + case 128: { + T1 = input.ReadInt64(); + break; + } + case 138: + case 136: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 146: + case 144: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 154: + case 152: { + k5_.AddEntriesFrom(ref input, _repeated_k5_codec); + break; + } + case 162: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 170: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 178: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[48]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1(TestDemoType1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoType1 Clone() { + return new TestDemoType1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoType1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoDynamic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoDynamic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[49]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic(TestDemoDynamic other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + DemoD2 = other.DemoD2.Clone(); + break; + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.RoleInfo: + RoleInfo = other.RoleInfo.Clone(); + break; + case ValueOneofCase.DemoD5: + DemoD5 = other.DemoD5.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoDynamic Clone() { + return new TestDemoDynamic(this); + } + + /// Field number for the "DemoD2" field. + public const int DemoD2FieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD2 DemoD2 { + get { return valueCase_ == ValueOneofCase.DemoD2 ? (global::Cfg.TestDemoD2) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD2; + } + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "RoleInfo" field. + public const int RoleInfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestLoginRoleInfo RoleInfo { + get { return valueCase_ == ValueOneofCase.RoleInfo ? (global::Cfg.TestLoginRoleInfo) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RoleInfo; + } + } + + /// Field number for the "DemoD5" field. + public const int DemoD5FieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoD5 DemoD5 { + get { return valueCase_ == ValueOneofCase.DemoD5 ? (global::Cfg.TestDemoD5) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoD5; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoD2 = 1, + DemoE1 = 2, + RoleInfo = 3, + DemoD5 = 4, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoDynamic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoDynamic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoD2, other.DemoD2)) return false; + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(RoleInfo, other.RoleInfo)) return false; + if (!object.Equals(DemoD5, other.DemoD5)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoD2) hash ^= DemoD2.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.RoleInfo) hash ^= RoleInfo.GetHashCode(); + if (valueCase_ == ValueOneofCase.DemoD5) hash ^= DemoD5.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(34); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoD2) { + output.WriteRawTag(10); + output.WriteMessage(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + output.WriteRawTag(34); + output.WriteMessage(DemoD5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoD2) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD2); + } + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleInfo); + } + if (valueCase_ == ValueOneofCase.DemoD5) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoD5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoDynamic other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoD2: + if (DemoD2 == null) { + DemoD2 = new global::Cfg.TestDemoD2(); + } + DemoD2.MergeFrom(other.DemoD2); + break; + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.RoleInfo: + if (RoleInfo == null) { + RoleInfo = new global::Cfg.TestLoginRoleInfo(); + } + RoleInfo.MergeFrom(other.RoleInfo); + break; + case ValueOneofCase.DemoD5: + if (DemoD5 == null) { + DemoD5 = new global::Cfg.TestDemoD5(); + } + DemoD5.MergeFrom(other.DemoD5); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + case 34: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestDemoD2 subBuilder = new global::Cfg.TestDemoD2(); + if (valueCase_ == ValueOneofCase.DemoD2) { + subBuilder.MergeFrom(DemoD2); + } + input.ReadMessage(subBuilder); + DemoD2 = subBuilder; + break; + } + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + case 34: { + global::Cfg.TestDemoD5 subBuilder = new global::Cfg.TestDemoD5(); + if (valueCase_ == ValueOneofCase.DemoD5) { + subBuilder.MergeFrom(DemoD5); + } + input.ReadMessage(subBuilder); + DemoD5 = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2(TestDemoD2 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD2 Clone() { + return new TestDemoD2(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD2 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3(TestDemoD3 other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + DemoE1 = other.DemoE1.Clone(); + break; + case ValueOneofCase.RoleInfo: + RoleInfo = other.RoleInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD3 Clone() { + return new TestDemoD3(this); + } + + /// Field number for the "DemoE1" field. + public const int DemoE1FieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoE1 DemoE1 { + get { return valueCase_ == ValueOneofCase.DemoE1 ? (global::Cfg.TestDemoE1) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.DemoE1; + } + } + + /// Field number for the "RoleInfo" field. + public const int RoleInfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestLoginRoleInfo RoleInfo { + get { return valueCase_ == ValueOneofCase.RoleInfo ? (global::Cfg.TestLoginRoleInfo) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RoleInfo; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + DemoE1 = 2, + RoleInfo = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DemoE1, other.DemoE1)) return false; + if (!object.Equals(RoleInfo, other.RoleInfo)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.DemoE1) hash ^= DemoE1.GetHashCode(); + if (valueCase_ == ValueOneofCase.RoleInfo) hash ^= RoleInfo.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.DemoE1) { + output.WriteRawTag(18); + output.WriteMessage(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + output.WriteRawTag(26); + output.WriteMessage(RoleInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.DemoE1) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DemoE1); + } + if (valueCase_ == ValueOneofCase.RoleInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoleInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD3 other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.DemoE1: + if (DemoE1 == null) { + DemoE1 = new global::Cfg.TestDemoE1(); + } + DemoE1.MergeFrom(other.DemoE1); + break; + case ValueOneofCase.RoleInfo: + if (RoleInfo == null) { + RoleInfo = new global::Cfg.TestLoginRoleInfo(); + } + RoleInfo.MergeFrom(other.RoleInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + global::Cfg.TestDemoE1 subBuilder = new global::Cfg.TestDemoE1(); + if (valueCase_ == ValueOneofCase.DemoE1) { + subBuilder.MergeFrom(DemoE1); + } + input.ReadMessage(subBuilder); + DemoE1 = subBuilder; + break; + } + case 26: { + global::Cfg.TestLoginRoleInfo subBuilder = new global::Cfg.TestLoginRoleInfo(); + if (valueCase_ == ValueOneofCase.RoleInfo) { + subBuilder.MergeFrom(RoleInfo); + } + input.ReadMessage(subBuilder); + RoleInfo = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[52]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1(TestDemoE1 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + x4_ = other.x4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE1 Clone() { + return new TestDemoE1(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 3; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 4) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 4; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(24); + output.WriteInt32(X4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE1 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + X4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestLoginRoleInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestLoginRoleInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[53]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo(TestLoginRoleInfo other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x3_ = other.x3_; + roleId_ = other.roleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestLoginRoleInfo Clone() { + return new TestLoginRoleInfo(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 2; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 2) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 2; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~2; + } + + /// Field number for the "role_id" field. + public const int RoleIdFieldNumber = 3; + private readonly static long RoleIdDefaultValue = 0L; + + private long roleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long RoleId { + get { if ((_hasBits0 & 4) != 0) { return roleId_; } else { return RoleIdDefaultValue; } } + set { + _hasBits0 |= 4; + roleId_ = value; + } + } + /// Gets whether the "role_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "role_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleId() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestLoginRoleInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestLoginRoleInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X3 != other.X3) return false; + if (RoleId != other.RoleId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasRoleId) hash ^= RoleId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasRoleId) { + output.WriteRawTag(24); + output.WriteInt64(RoleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (HasX3) { + output.WriteRawTag(16); + output.WriteInt32(X3); + } + if (HasRoleId) { + output.WriteRawTag(24); + output.WriteInt64(RoleId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasRoleId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestLoginRoleInfo other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasRoleId) { + RoleId = other.RoleId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + RoleId = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 16: { + X3 = input.ReadInt32(); + break; + } + case 24: { + RoleId = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoD5 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoD5()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[54]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5(TestDemoD5 other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + time_ = other.time_ != null ? other.time_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoD5 Clone() { + return new TestDemoD5(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 2; + private global::Cfg.TestDateTimeRange time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDateTimeRange Time { + get { return time_; } + set { + time_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoD5); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoD5 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (!object.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteInt32(X1); + } + if (time_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoD5 other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + Time.MergeFrom(other.Time); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadInt32(); + break; + } + case 18: { + if (time_ == null) { + Time = new global::Cfg.TestDateTimeRange(); + } + input.ReadMessage(Time); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDateTimeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDateTimeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[55]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange(TestDateTimeRange other) : this() { + _hasBits0 = other._hasBits0; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDateTimeRange Clone() { + return new TestDateTimeRange(this); + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private readonly static long StartTimeDefaultValue = 0L; + + private long startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 2; + private readonly static long EndTimeDefaultValue = 0L; + + private long endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDateTimeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDateTimeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasStartTime) { + output.WriteRawTag(8); + output.WriteInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(16); + output.WriteInt64(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDateTimeRange other) { + if (other == null) { + return; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + StartTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + StartTime = input.ReadInt64(); + break; + } + case 16: { + EndTime = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoE2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoE2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[56]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2(TestDemoE2 other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoE2 Clone() { + return new TestDemoE2(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static bool Y2DefaultValue = false; + + private bool y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoE2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoE2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteBool(Y2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoE2 other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoSingletonType : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoSingletonType()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[57]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType(TestDemoSingletonType other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + date_ = other.date_ != null ? other.date_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoSingletonType Clone() { + return new TestDemoSingletonType(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "date" field. + public const int DateFieldNumber = 3; + private global::Cfg.TestDemoDynamic date_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic Date { + get { return date_; } + set { + date_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoSingletonType); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoSingletonType other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(Date, other.Date)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (date_ != null) hash ^= Date.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (date_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Date); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (date_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Date); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoSingletonType other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.date_ != null) { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + Date.MergeFrom(other.Date); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (date_ == null) { + Date = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(Date); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[58]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList(TestNotIndexList other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestNotIndexList Clone() { + return new TestNotIndexList(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestNotIndexList other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[59]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList(TestMultiUnionIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiUnionIndexList Clone() { + return new TestMultiUnionIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiUnionIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList(TestMultiIndexList other) : this() { + _hasBits0 = other._hasBits0; + id1_ = other.id1_; + id2_ = other.id2_; + id3_ = other.id3_; + num_ = other.num_; + desc_ = other.desc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiIndexList Clone() { + return new TestMultiIndexList(this); + } + + /// Field number for the "id1" field. + public const int Id1FieldNumber = 1; + private readonly static int Id1DefaultValue = 0; + + private int id1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id1 { + get { if ((_hasBits0 & 1) != 0) { return id1_; } else { return Id1DefaultValue; } } + set { + _hasBits0 |= 1; + id1_ = value; + } + } + /// Gets whether the "id1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId1() { + _hasBits0 &= ~1; + } + + /// Field number for the "id2" field. + public const int Id2FieldNumber = 2; + private readonly static long Id2DefaultValue = 0L; + + private long id2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Id2 { + get { if ((_hasBits0 & 2) != 0) { return id2_; } else { return Id2DefaultValue; } } + set { + _hasBits0 |= 2; + id2_ = value; + } + } + /// Gets whether the "id2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId2() { + _hasBits0 &= ~2; + } + + /// Field number for the "id3" field. + public const int Id3FieldNumber = 3; + private readonly static string Id3DefaultValue = ""; + + private string id3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id3 { + get { return id3_ ?? Id3DefaultValue; } + set { + id3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId3 { + get { return id3_ != null; } + } + /// Clears the value of the "id3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId3() { + id3_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 5; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id1 != other.Id1) return false; + if (Id2 != other.Id2) return false; + if (Id3 != other.Id3) return false; + if (Num != other.Num) return false; + if (Desc != other.Desc) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId1) hash ^= Id1.GetHashCode(); + if (HasId2) hash ^= Id2.GetHashCode(); + if (HasId3) hash ^= Id3.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId1) { + output.WriteRawTag(8); + output.WriteInt32(Id1); + } + if (HasId2) { + output.WriteRawTag(16); + output.WriteInt64(Id2); + } + if (HasId3) { + output.WriteRawTag(26); + output.WriteString(Id3); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasDesc) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id1); + } + if (HasId2) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id2); + } + if (HasId3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id3); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiIndexList other) { + if (other == null) { + return; + } + if (other.HasId1) { + Id1 = other.Id1; + } + if (other.HasId2) { + Id2 = other.Id2; + } + if (other.HasId3) { + Id3 = other.Id3; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasDesc) { + Desc = other.Desc; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id1 = input.ReadInt32(); + break; + } + case 16: { + Id2 = input.ReadInt64(); + break; + } + case 26: { + Id3 = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord(TestMultiRowRecord other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + oneRows_ = other.oneRows_.Clone(); + multiRows1_ = other.multiRows1_.Clone(); + multiRows2_ = other.multiRows2_.Clone(); + multiRows4_ = other.multiRows4_.Clone(); + multiRows5_ = other.multiRows5_.Clone(); + multiRows6_ = other.multiRows6_.Clone(); + multiRows7_ = other.multiRows7_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowRecord Clone() { + return new TestMultiRowRecord(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "one_rows" field. + public const int OneRowsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_oneRows_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField oneRows_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField OneRows { + get { return oneRows_; } + } + + /// Field number for the "multi_rows1" field. + public const int MultiRows1FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_multiRows1_codec + = pb::FieldCodec.ForMessage(34, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows1 { + get { return multiRows1_; } + } + + /// Field number for the "multi_rows2" field. + public const int MultiRows2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_multiRows2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField multiRows2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows2 { + get { return multiRows2_; } + } + + /// Field number for the "multi_rows4" field. + public const int MultiRows4FieldNumber = 6; + private static readonly pbc::MapField.Codec _map_multiRows4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 50); + private readonly pbc::MapField multiRows4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows4 { + get { return multiRows4_; } + } + + /// Field number for the "multi_rows5" field. + public const int MultiRows5FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_multiRows5_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestMultiRowType3.Parser); + private readonly pbc::RepeatedField multiRows5_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MultiRows5 { + get { return multiRows5_; } + } + + /// Field number for the "multi_rows6" field. + public const int MultiRows6FieldNumber = 8; + private static readonly pbc::MapField.Codec _map_multiRows6_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType2.Parser), 66); + private readonly pbc::MapField multiRows6_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows6 { + get { return multiRows6_; } + } + + /// Field number for the "multi_rows7" field. + public const int MultiRows7FieldNumber = 9; + private static readonly pbc::MapField.Codec _map_multiRows7_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 74); + private readonly pbc::MapField multiRows7_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField MultiRows7 { + get { return multiRows7_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if(!oneRows_.Equals(other.oneRows_)) return false; + if(!multiRows1_.Equals(other.multiRows1_)) return false; + if(!multiRows2_.Equals(other.multiRows2_)) return false; + if (!MultiRows4.Equals(other.MultiRows4)) return false; + if(!multiRows5_.Equals(other.multiRows5_)) return false; + if (!MultiRows6.Equals(other.MultiRows6)) return false; + if (!MultiRows7.Equals(other.MultiRows7)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + hash ^= oneRows_.GetHashCode(); + hash ^= multiRows1_.GetHashCode(); + hash ^= multiRows2_.GetHashCode(); + hash ^= MultiRows4.GetHashCode(); + hash ^= multiRows5_.GetHashCode(); + hash ^= MultiRows6.GetHashCode(); + hash ^= MultiRows7.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(output, _repeated_oneRows_codec); + multiRows1_.WriteTo(output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(output, _map_multiRows4_codec); + multiRows5_.WriteTo(output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(output, _map_multiRows6_codec); + multiRows7_.WriteTo(output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + oneRows_.WriteTo(ref output, _repeated_oneRows_codec); + multiRows1_.WriteTo(ref output, _repeated_multiRows1_codec); + multiRows2_.WriteTo(ref output, _repeated_multiRows2_codec); + multiRows4_.WriteTo(ref output, _map_multiRows4_codec); + multiRows5_.WriteTo(ref output, _repeated_multiRows5_codec); + multiRows6_.WriteTo(ref output, _map_multiRows6_codec); + multiRows7_.WriteTo(ref output, _map_multiRows7_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += oneRows_.CalculateSize(_repeated_oneRows_codec); + size += multiRows1_.CalculateSize(_repeated_multiRows1_codec); + size += multiRows2_.CalculateSize(_repeated_multiRows2_codec); + size += multiRows4_.CalculateSize(_map_multiRows4_codec); + size += multiRows5_.CalculateSize(_repeated_multiRows5_codec); + size += multiRows6_.CalculateSize(_map_multiRows6_codec); + size += multiRows7_.CalculateSize(_map_multiRows7_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowRecord other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + oneRows_.Add(other.oneRows_); + multiRows1_.Add(other.multiRows1_); + multiRows2_.Add(other.multiRows2_); + multiRows4_.MergeFrom(other.multiRows4_); + multiRows5_.Add(other.multiRows5_); + multiRows6_.MergeFrom(other.multiRows6_); + multiRows7_.MergeFrom(other.multiRows7_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(input, _map_multiRows7_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + oneRows_.AddEntriesFrom(ref input, _repeated_oneRows_codec); + break; + } + case 34: { + multiRows1_.AddEntriesFrom(ref input, _repeated_multiRows1_codec); + break; + } + case 42: { + multiRows2_.AddEntriesFrom(ref input, _repeated_multiRows2_codec); + break; + } + case 50: { + multiRows4_.AddEntriesFrom(ref input, _map_multiRows4_codec); + break; + } + case 58: { + multiRows5_.AddEntriesFrom(ref input, _repeated_multiRows5_codec); + break; + } + case 66: { + multiRows6_.AddEntriesFrom(ref input, _map_multiRows6_codec); + break; + } + case 74: { + multiRows7_.AddEntriesFrom(ref input, _map_multiRows7_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1(TestMultiRowType1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType1 Clone() { + return new TestMultiRowType1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2(TestMultiRowType2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType2 Clone() { + return new TestMultiRowType2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowType3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowType3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3(TestMultiRowType3 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowType3 Clone() { + return new TestMultiRowType3(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestMultiRowType1.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowType3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowType3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowType3 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMultiColumn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMultiColumn()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn(TestTestMultiColumn other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_ != null ? other.b_.Clone() : null; + c_ = other.c_ != null ? other.c_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMultiColumn Clone() { + return new TestTestMultiColumn(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 2; + private global::Cfg.TestFoo a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 3; + private global::Cfg.TestFoo b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo B { + get { return b_; } + set { + b_ = value; + } + } + + /// Field number for the "c" field. + public const int CFieldNumber = 4; + private global::Cfg.TestFoo c_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestFoo C { + get { return c_; } + set { + c_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMultiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMultiColumn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(A, other.A)) return false; + if (!object.Equals(B, other.B)) return false; + if (!object.Equals(C, other.C)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + if (b_ != null) hash ^= B.GetHashCode(); + if (c_ != null) hash ^= C.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (a_ != null) { + output.WriteRawTag(18); + output.WriteMessage(A); + } + if (b_ != null) { + output.WriteRawTag(26); + output.WriteMessage(B); + } + if (c_ != null) { + output.WriteRawTag(34); + output.WriteMessage(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (a_ != null) { + output.WriteRawTag(18); + output.WriteMessage(A); + } + if (b_ != null) { + output.WriteRawTag(26); + output.WriteMessage(B); + } + if (c_ != null) { + output.WriteRawTag(34); + output.WriteMessage(C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + if (b_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(B); + } + if (c_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(C); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMultiColumn other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + A.MergeFrom(other.A); + } + if (other.b_ != null) { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + B.MergeFrom(other.B); + } + if (other.c_ != null) { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + C.MergeFrom(other.C); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + input.ReadMessage(A); + break; + } + case 26: { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + input.ReadMessage(B); + break; + } + case 34: { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + input.ReadMessage(C); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + if (a_ == null) { + A = new global::Cfg.TestFoo(); + } + input.ReadMessage(A); + break; + } + case 26: { + if (b_ == null) { + B = new global::Cfg.TestFoo(); + } + input.ReadMessage(B); + break; + } + case 34: { + if (c_ == null) { + C = new global::Cfg.TestFoo(); + } + input.ReadMessage(C); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestFoo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestFoo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo(TestFoo other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestFoo Clone() { + return new TestFoo(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestFoo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestFoo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestFoo other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle(TestMultiRowTitle other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + x1_ = other.x1_ != null ? other.x1_.Clone() : null; + x20_ = other.x20_ != null ? other.x20_.Clone() : null; + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestMultiRowTitle Clone() { + return new TestMultiRowTitle(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private global::Cfg.TestH1 x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH1 X1 { + get { return x1_; } + set { + x1_ = value; + } + } + + /// Field number for the "x2_0" field. + public const int X20FieldNumber = 4; + private global::Cfg.TestH2 x20_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 X20 { + get { return x20_; } + set { + x20_ = value; + } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForMessage(42, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForMessage(50, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForMessage(58, global::Cfg.TestH2.Parser); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (!object.Equals(X1, other.X1)) return false; + if (!object.Equals(X20, other.X20)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (x1_ != null) hash ^= X1.GetHashCode(); + if (x20_ != null) hash ^= X20.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (x1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(X1); + } + if (x20_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X20); + } + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (x1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X1); + } + if (x20_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X20); + } + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestMultiRowTitle other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.x1_ != null) { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + X1.MergeFrom(other.X1); + } + if (other.x20_ != null) { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + X20.MergeFrom(other.X20); + } + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + if (x1_ == null) { + X1 = new global::Cfg.TestH1(); + } + input.ReadMessage(X1); + break; + } + case 34: { + if (x20_ == null) { + X20 = new global::Cfg.TestH2(); + } + input.ReadMessage(X20); + break; + } + case 42: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 50: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 58: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1(TestH1 other) : this() { + _hasBits0 = other._hasBits0; + y2_ = other.y2_ != null ? other.y2_.Clone() : null; + y3_ = other.y3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH1 Clone() { + return new TestH1(this); + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 1; + private global::Cfg.TestH2 y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestH2 Y2 { + get { return y2_; } + set { + y2_ = value; + } + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 2; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 1) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 1; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Y2, other.Y2)) return false; + if (Y3 != other.Y3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (y2_ != null) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (y2_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Y2); + } + if (HasY3) { + output.WriteRawTag(16); + output.WriteInt32(Y3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (y2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH1 other) { + if (other == null) { + return; + } + if (other.y2_ != null) { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + Y2.MergeFrom(other.Y2); + } + if (other.HasY3) { + Y3 = other.Y3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (y2_ == null) { + Y2 = new global::Cfg.TestH2(); + } + input.ReadMessage(Y2); + break; + } + case 16: { + Y3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestH2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestH2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2(TestH2 other) : this() { + _hasBits0 = other._hasBits0; + z2_ = other.z2_; + z3_ = other.z3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestH2 Clone() { + return new TestH2(this); + } + + /// Field number for the "z2" field. + public const int Z2FieldNumber = 1; + private readonly static int Z2DefaultValue = 0; + + private int z2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z2 { + get { if ((_hasBits0 & 1) != 0) { return z2_; } else { return Z2DefaultValue; } } + set { + _hasBits0 |= 1; + z2_ = value; + } + } + /// Gets whether the "z2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ2 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "z2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ2() { + _hasBits0 &= ~1; + } + + /// Field number for the "z3" field. + public const int Z3FieldNumber = 2; + private readonly static int Z3DefaultValue = 0; + + private int z3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Z3 { + get { if ((_hasBits0 & 2) != 0) { return z3_; } else { return Z3DefaultValue; } } + set { + _hasBits0 |= 2; + z3_ = value; + } + } + /// Gets whether the "z3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ3 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "z3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ3() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestH2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestH2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Z2 != other.Z2) return false; + if (Z3 != other.Z3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasZ2) hash ^= Z2.GetHashCode(); + if (HasZ3) hash ^= Z3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasZ2) { + output.WriteRawTag(8); + output.WriteInt32(Z2); + } + if (HasZ3) { + output.WriteRawTag(16); + output.WriteInt32(Z3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasZ2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z2); + } + if (HasZ3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Z3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestH2 other) { + if (other == null) { + return; + } + if (other.HasZ2) { + Z2 = other.Z2; + } + if (other.HasZ3) { + Z3 = other.Z3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Z2 = input.ReadInt32(); + break; + } + case 16: { + Z3 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestNull()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull(TestTestNull other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_ != null ? other.x3_.Clone() : null; + x4_ = other.x4_ != null ? other.x4_.Clone() : null; + s1_ = other.s1_; + s2_ = other.s2_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestNull Clone() { + return new TestTestNull(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static global::Cfg.TestDemoEnum X2DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private global::Cfg.TestDemoType1 x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X3 { + get { return x3_; } + set { + x3_ = value; + } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private global::Cfg.TestDemoDynamic x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X4 { + get { return x4_; } + set { + x4_ = value; + } + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 6; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 7; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (!object.Equals(X3, other.X3)) return false; + if (!object.Equals(X4, other.X4)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (x3_ != null) hash ^= X3.GetHashCode(); + if (x4_ != null) hash ^= X4.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteEnum((int) X2); + } + if (x3_ != null) { + output.WriteRawTag(34); + output.WriteMessage(X3); + } + if (x4_ != null) { + output.WriteRawTag(42); + output.WriteMessage(X4); + } + if (HasS1) { + output.WriteRawTag(50); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(58); + output.WriteString(S2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X2); + } + if (x3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X3); + } + if (x4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X4); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestNull other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.x3_ != null) { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + X3.MergeFrom(other.X3); + } + if (other.x4_ != null) { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + X4.MergeFrom(other.X4); + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 34: { + if (x3_ == null) { + X3 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X3); + break; + } + case 42: { + if (x4_ == null) { + X4 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X4); + break; + } + case 50: { + S1 = input.ReadString(); + break; + } + case 58: { + S2 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoPrimitiveTypesTable : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoPrimitiveTypesTable()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[71]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable(TestDemoPrimitiveTypesTable other) : this() { + _hasBits0 = other._hasBits0; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_; + x6_ = other.x6_; + x7_ = other.x7_; + s1_ = other.s1_; + s2_ = other.s2_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + t1_ = other.t1_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoPrimitiveTypesTable Clone() { + return new TestDemoPrimitiveTypesTable(this); + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 1; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 1) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 1; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~1; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 2; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 2) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 2; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~2; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 3; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 4) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 4; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~4; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 4; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 8) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 8; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~8; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 5; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 16) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 16; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~16; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 6; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 32) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 32; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~32; + } + + /// Field number for the "x7" field. + public const int X7FieldNumber = 7; + private readonly static double X7DefaultValue = 0D; + + private double x7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double X7 { + get { if ((_hasBits0 & 64) != 0) { return x7_; } else { return X7DefaultValue; } } + set { + _hasBits0 |= 64; + x7_ = value; + } + } + /// Gets whether the "x7" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX7 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x7" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX7() { + _hasBits0 &= ~64; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 8; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 9; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 10; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 11; + private global::Cfg.vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 12; + private global::Cfg.vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 13; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoPrimitiveTypesTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoPrimitiveTypesTable other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X7, other.X7)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + if (T1 != other.T1) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX7) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X7); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt64(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX1) { + output.WriteRawTag(8); + output.WriteBool(X1); + } + if (HasX2) { + output.WriteRawTag(16); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(24); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(32); + output.WriteInt32(X4); + } + if (HasX5) { + output.WriteRawTag(40); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(53); + output.WriteFloat(X6); + } + if (HasX7) { + output.WriteRawTag(57); + output.WriteDouble(X7); + } + if (HasS1) { + output.WriteRawTag(66); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(74); + output.WriteString(S2); + } + if (v2_ != null) { + output.WriteRawTag(82); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(98); + output.WriteMessage(V4); + } + if (HasT1) { + output.WriteRawTag(104); + output.WriteInt64(T1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX1) { + size += 1 + 1; + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX7) { + size += 1 + 8; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoPrimitiveTypesTable other) { + if (other == null) { + return; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX7) { + X7 = other.X7; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + V4.MergeFrom(other.V4); + } + if (other.HasT1) { + T1 = other.T1; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X1 = input.ReadBool(); + break; + } + case 16: { + X2 = input.ReadInt32(); + break; + } + case 24: { + X3 = input.ReadInt32(); + break; + } + case 32: { + X4 = input.ReadInt32(); + break; + } + case 40: { + X5 = input.ReadInt64(); + break; + } + case 53: { + X6 = input.ReadFloat(); + break; + } + case 57: { + X7 = input.ReadDouble(); + break; + } + case 66: { + S1 = input.ReadString(); + break; + } + case 74: { + S2 = input.ReadString(); + break; + } + case 82: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 90: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 98: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + case 104: { + T1 = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[72]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2(vector2 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector2 Clone() { + return new vector2(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector2 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[73]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3(vector3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector3 Clone() { + return new vector3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class vector4 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new vector4()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[74]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4(vector4 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + w_ = other.w_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public vector4 Clone() { + return new vector4(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + /// Field number for the "w" field. + public const int WFieldNumber = 4; + private readonly static float WDefaultValue = 0F; + + private float w_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float W { + get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } + set { + _hasBits0 |= 8; + w_ = value; + } + } + /// Gets whether the "w" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasW { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "w" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearW() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as vector4); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(vector4 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (HasW) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(vector4 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.HasW) { + W = other.W; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[75]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString(TestTestString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s1_ = other.s1_; + cs1_ = other.cs1_ != null ? other.cs1_.Clone() : null; + cs2_ = other.cs2_ != null ? other.cs2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestString Clone() { + return new TestTestString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 2; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "cs1" field. + public const int Cs1FieldNumber = 3; + private global::Cfg.TestCompactString cs1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs1 { + get { return cs1_; } + set { + cs1_ = value; + } + } + + /// Field number for the "cs2" field. + public const int Cs2FieldNumber = 4; + private global::Cfg.TestCompactString cs2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCompactString Cs2 { + get { return cs2_; } + set { + cs2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S1 != other.S1) return false; + if (!object.Equals(Cs1, other.Cs1)) return false; + if (!object.Equals(Cs2, other.Cs2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS1) hash ^= S1.GetHashCode(); + if (cs1_ != null) hash ^= Cs1.GetHashCode(); + if (cs2_ != null) hash ^= Cs2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS1) { + output.WriteRawTag(18); + output.WriteString(S1); + } + if (cs1_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cs1); + } + if (cs2_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Cs2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (cs1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs1); + } + if (cs2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cs2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.cs1_ != null) { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + Cs1.MergeFrom(other.Cs1); + } + if (other.cs2_ != null) { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + Cs2.MergeFrom(other.Cs2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S1 = input.ReadString(); + break; + } + case 26: { + if (cs1_ == null) { + Cs1 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs1); + break; + } + case 34: { + if (cs2_ == null) { + Cs2 = new global::Cfg.TestCompactString(); + } + input.ReadMessage(Cs2); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompactString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompactString()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[76]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString(TestCompactString other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + s2_ = other.s2_; + s3_ = other.s3_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompactString Clone() { + return new TestCompactString(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 2; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "s3" field. + public const int S3FieldNumber = 3; + private readonly static string S3DefaultValue = ""; + + private string s3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S3 { + get { return s3_ ?? S3DefaultValue; } + set { + s3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS3 { + get { return s3_ != null; } + } + /// Clears the value of the "s3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS3() { + s3_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompactString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompactString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (S2 != other.S2) return false; + if (S3 != other.S3) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasS3) hash ^= S3.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasS2) { + output.WriteRawTag(18); + output.WriteString(S2); + } + if (HasS3) { + output.WriteRawTag(26); + output.WriteString(S3); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasS3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S3); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompactString other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasS3) { + S3 = other.S3; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + S2 = input.ReadString(); + break; + } + case 26: { + S3 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[77]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup(TestDemoGroup other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + x5_ = other.x5_ != null ? other.x5_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDemoGroup Clone() { + return new TestDemoGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 4) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 4; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~4; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 8) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 8; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~8; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 16) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 16; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~16; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 6; + private global::Cfg.TestInnerGroup x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestInnerGroup X5 { + get { return x5_; } + set { + x5_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if (!object.Equals(X5, other.X5)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + if (x5_ != null) hash ^= X5.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX2) { + output.WriteRawTag(24); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(32); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(40); + output.WriteInt32(X4); + } + if (x5_ != null) { + output.WriteRawTag(50); + output.WriteMessage(X5); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (x5_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X5); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDemoGroup other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.x5_ != null) { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + X5.MergeFrom(other.X5); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X2 = input.ReadInt32(); + break; + } + case 32: { + X3 = input.ReadInt32(); + break; + } + case 40: { + X4 = input.ReadInt32(); + break; + } + case 50: { + if (x5_ == null) { + X5 = new global::Cfg.TestInnerGroup(); + } + input.ReadMessage(X5); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestInnerGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestInnerGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[78]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup(TestInnerGroup other) : this() { + _hasBits0 = other._hasBits0; + y1_ = other.y1_; + y2_ = other.y2_; + y3_ = other.y3_; + y4_ = other.y4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestInnerGroup Clone() { + return new TestInnerGroup(this); + } + + /// Field number for the "y1" field. + public const int Y1FieldNumber = 1; + private readonly static int Y1DefaultValue = 0; + + private int y1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y1 { + get { if ((_hasBits0 & 1) != 0) { return y1_; } else { return Y1DefaultValue; } } + set { + _hasBits0 |= 1; + y1_ = value; + } + } + /// Gets whether the "y1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY1 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "y1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY1() { + _hasBits0 &= ~1; + } + + /// Field number for the "y2" field. + public const int Y2FieldNumber = 2; + private readonly static int Y2DefaultValue = 0; + + private int y2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y2 { + get { if ((_hasBits0 & 2) != 0) { return y2_; } else { return Y2DefaultValue; } } + set { + _hasBits0 |= 2; + y2_ = value; + } + } + /// Gets whether the "y2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY2 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY2() { + _hasBits0 &= ~2; + } + + /// Field number for the "y3" field. + public const int Y3FieldNumber = 3; + private readonly static int Y3DefaultValue = 0; + + private int y3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y3 { + get { if ((_hasBits0 & 4) != 0) { return y3_; } else { return Y3DefaultValue; } } + set { + _hasBits0 |= 4; + y3_ = value; + } + } + /// Gets whether the "y3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY3 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY3() { + _hasBits0 &= ~4; + } + + /// Field number for the "y4" field. + public const int Y4FieldNumber = 4; + private readonly static int Y4DefaultValue = 0; + + private int y4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y4 { + get { if ((_hasBits0 & 8) != 0) { return y4_; } else { return Y4DefaultValue; } } + set { + _hasBits0 |= 8; + y4_ = value; + } + } + /// Gets whether the "y4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY4 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "y4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY4() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestInnerGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestInnerGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Y1 != other.Y1) return false; + if (Y2 != other.Y2) return false; + if (Y3 != other.Y3) return false; + if (Y4 != other.Y4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasY1) hash ^= Y1.GetHashCode(); + if (HasY2) hash ^= Y2.GetHashCode(); + if (HasY3) hash ^= Y3.GetHashCode(); + if (HasY4) hash ^= Y4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasY1) { + output.WriteRawTag(8); + output.WriteInt32(Y1); + } + if (HasY2) { + output.WriteRawTag(16); + output.WriteInt32(Y2); + } + if (HasY3) { + output.WriteRawTag(24); + output.WriteInt32(Y3); + } + if (HasY4) { + output.WriteRawTag(32); + output.WriteInt32(Y4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasY1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y1); + } + if (HasY2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y2); + } + if (HasY3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y3); + } + if (HasY4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestInnerGroup other) { + if (other == null) { + return; + } + if (other.HasY1) { + Y1 = other.Y1; + } + if (other.HasY2) { + Y2 = other.Y2; + } + if (other.HasY3) { + Y3 = other.Y3; + } + if (other.HasY4) { + Y4 = other.Y4; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Y1 = input.ReadInt32(); + break; + } + case 16: { + Y2 = input.ReadInt32(); + break; + } + case 24: { + Y3 = input.ReadInt32(); + break; + } + case 32: { + Y4 = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[79]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal(TestTestGlobal other) : this() { + _hasBits0 = other._hasBits0; + unlockEquip_ = other.unlockEquip_; + unlockHero_ = other.unlockHero_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestGlobal Clone() { + return new TestTestGlobal(this); + } + + /// Field number for the "unlock_equip" field. + public const int UnlockEquipFieldNumber = 1; + private readonly static int UnlockEquipDefaultValue = 0; + + private int unlockEquip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockEquip { + get { if ((_hasBits0 & 1) != 0) { return unlockEquip_; } else { return UnlockEquipDefaultValue; } } + set { + _hasBits0 |= 1; + unlockEquip_ = value; + } + } + /// Gets whether the "unlock_equip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockEquip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "unlock_equip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockEquip() { + _hasBits0 &= ~1; + } + + /// Field number for the "unlock_hero" field. + public const int UnlockHeroFieldNumber = 2; + private readonly static int UnlockHeroDefaultValue = 0; + + private int unlockHero_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UnlockHero { + get { if ((_hasBits0 & 2) != 0) { return unlockHero_; } else { return UnlockHeroDefaultValue; } } + set { + _hasBits0 |= 2; + unlockHero_ = value; + } + } + /// Gets whether the "unlock_hero" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUnlockHero { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "unlock_hero" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUnlockHero() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UnlockEquip != other.UnlockEquip) return false; + if (UnlockHero != other.UnlockHero) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUnlockEquip) hash ^= UnlockEquip.GetHashCode(); + if (HasUnlockHero) hash ^= UnlockHero.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUnlockEquip) { + output.WriteRawTag(8); + output.WriteInt32(UnlockEquip); + } + if (HasUnlockHero) { + output.WriteRawTag(16); + output.WriteInt32(UnlockHero); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUnlockEquip) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockEquip); + } + if (HasUnlockHero) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockHero); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestGlobal other) { + if (other == null) { + return; + } + if (other.HasUnlockEquip) { + UnlockEquip = other.UnlockEquip; + } + if (other.HasUnlockHero) { + UnlockHero = other.UnlockHero; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UnlockEquip = input.ReadInt32(); + break; + } + case 16: { + UnlockHero = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[80]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef(TestTestBeRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestBeRef Clone() { + return new TestTestBeRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private readonly static int CountDefaultValue = 0; + + private int count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Count { + get { if ((_hasBits0 & 2) != 0) { return count_; } else { return CountDefaultValue; } } + set { + _hasBits0 |= 2; + count_ = value; + } + } + /// Gets whether the "count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCount { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCount() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasCount) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasCount) { + output.WriteRawTag(16); + output.WriteInt32(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestBeRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasCount) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Count = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRef()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[81]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef(TestTestRef other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x12_ = other.x12_; + x2_ = other.x2_; + x3_ = other.x3_; + x4_ = other.x4_; + a1_ = other.a1_.Clone(); + a2_ = other.a2_.Clone(); + b1_ = other.b1_.Clone(); + b2_ = other.b2_.Clone(); + c1_ = other.c1_.Clone(); + c2_ = other.c2_.Clone(); + d1_ = other.d1_.Clone(); + d2_ = other.d2_.Clone(); + e1_ = other.e1_; + e2_ = other.e2_; + e3_ = other.e3_; + f1_ = other.f1_; + f2_ = other.f2_; + f3_ = other.f3_; + s1_ = other.s1_ != null ? other.s1_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRef Clone() { + return new TestTestRef(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static int X1DefaultValue = 0; + + private int x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x1_2" field. + public const int X12FieldNumber = 3; + private readonly static int X12DefaultValue = 0; + + private int x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X12 { + get { if ((_hasBits0 & 4) != 0) { return x12_; } else { return X12DefaultValue; } } + set { + _hasBits0 |= 4; + x12_ = value; + } + } + /// Gets whether the "x1_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX12 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x1_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX12() { + _hasBits0 &= ~4; + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private readonly static int X2DefaultValue = 0; + + private int x2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X2 { + get { if ((_hasBits0 & 8) != 0) { return x2_; } else { return X2DefaultValue; } } + set { + _hasBits0 |= 8; + x2_ = value; + } + } + /// Gets whether the "x2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX2 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX2() { + _hasBits0 &= ~8; + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private readonly static int X3DefaultValue = 0; + + private int x3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X3 { + get { if ((_hasBits0 & 16) != 0) { return x3_; } else { return X3DefaultValue; } } + set { + _hasBits0 |= 16; + x3_ = value; + } + } + /// Gets whether the "x3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX3 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX3() { + _hasBits0 &= ~16; + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 6; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 32) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 32; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~32; + } + + /// Field number for the "a1" field. + public const int A1FieldNumber = 7; + private static readonly pb::FieldCodec _repeated_a1_codec + = pb::FieldCodec.ForInt32(58); + private readonly pbc::RepeatedField a1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A1 { + get { return a1_; } + } + + /// Field number for the "a2" field. + public const int A2FieldNumber = 8; + private static readonly pb::FieldCodec _repeated_a2_codec + = pb::FieldCodec.ForInt32(66); + private readonly pbc::RepeatedField a2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField A2 { + get { return a2_; } + } + + /// Field number for the "b1" field. + public const int B1FieldNumber = 9; + private static readonly pb::FieldCodec _repeated_b1_codec + = pb::FieldCodec.ForInt32(74); + private readonly pbc::RepeatedField b1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B1 { + get { return b1_; } + } + + /// Field number for the "b2" field. + public const int B2FieldNumber = 10; + private static readonly pb::FieldCodec _repeated_b2_codec + = pb::FieldCodec.ForInt32(82); + private readonly pbc::RepeatedField b2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B2 { + get { return b2_; } + } + + /// Field number for the "c1" field. + public const int C1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_c1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField c1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C1 { + get { return c1_; } + } + + /// Field number for the "c2" field. + public const int C2FieldNumber = 12; + private static readonly pb::FieldCodec _repeated_c2_codec + = pb::FieldCodec.ForInt32(98); + private readonly pbc::RepeatedField c2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField C2 { + get { return c2_; } + } + + /// Field number for the "d1" field. + public const int D1FieldNumber = 13; + private static readonly pbc::MapField.Codec _map_d1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 106); + private readonly pbc::MapField d1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D1 { + get { return d1_; } + } + + /// Field number for the "d2" field. + public const int D2FieldNumber = 14; + private static readonly pbc::MapField.Codec _map_d2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 114); + private readonly pbc::MapField d2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField D2 { + get { return d2_; } + } + + /// Field number for the "e1" field. + public const int E1FieldNumber = 15; + private readonly static int E1DefaultValue = 0; + + private int e1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int E1 { + get { if ((_hasBits0 & 64) != 0) { return e1_; } else { return E1DefaultValue; } } + set { + _hasBits0 |= 64; + e1_ = value; + } + } + /// Gets whether the "e1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE1 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "e1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE1() { + _hasBits0 &= ~64; + } + + /// Field number for the "e2" field. + public const int E2FieldNumber = 16; + private readonly static long E2DefaultValue = 0L; + + private long e2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long E2 { + get { if ((_hasBits0 & 128) != 0) { return e2_; } else { return E2DefaultValue; } } + set { + _hasBits0 |= 128; + e2_ = value; + } + } + /// Gets whether the "e2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE2 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "e2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE2() { + _hasBits0 &= ~128; + } + + /// Field number for the "e3" field. + public const int E3FieldNumber = 17; + private readonly static string E3DefaultValue = ""; + + private string e3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string E3 { + get { return e3_ ?? E3DefaultValue; } + set { + e3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "e3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasE3 { + get { return e3_ != null; } + } + /// Clears the value of the "e3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearE3() { + e3_ = null; + } + + /// Field number for the "f1" field. + public const int F1FieldNumber = 18; + private readonly static int F1DefaultValue = 0; + + private int f1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int F1 { + get { if ((_hasBits0 & 256) != 0) { return f1_; } else { return F1DefaultValue; } } + set { + _hasBits0 |= 256; + f1_ = value; + } + } + /// Gets whether the "f1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF1 { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "f1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF1() { + _hasBits0 &= ~256; + } + + /// Field number for the "f2" field. + public const int F2FieldNumber = 19; + private readonly static long F2DefaultValue = 0L; + + private long f2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long F2 { + get { if ((_hasBits0 & 512) != 0) { return f2_; } else { return F2DefaultValue; } } + set { + _hasBits0 |= 512; + f2_ = value; + } + } + /// Gets whether the "f2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF2 { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "f2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF2() { + _hasBits0 &= ~512; + } + + /// Field number for the "f3" field. + public const int F3FieldNumber = 20; + private readonly static string F3DefaultValue = ""; + + private string f3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string F3 { + get { return f3_ ?? F3DefaultValue; } + set { + f3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "f3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasF3 { + get { return f3_ != null; } + } + /// Clears the value of the "f3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearF3() { + f3_ = null; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 21; + private global::Cfg.TestRefDynamicBase s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestRefDynamicBase S1 { + get { return s1_; } + set { + s1_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X12 != other.X12) return false; + if (X2 != other.X2) return false; + if (X3 != other.X3) return false; + if (X4 != other.X4) return false; + if(!a1_.Equals(other.a1_)) return false; + if(!a2_.Equals(other.a2_)) return false; + if(!b1_.Equals(other.b1_)) return false; + if(!b2_.Equals(other.b2_)) return false; + if(!c1_.Equals(other.c1_)) return false; + if(!c2_.Equals(other.c2_)) return false; + if (!D1.Equals(other.D1)) return false; + if (!D2.Equals(other.D2)) return false; + if (E1 != other.E1) return false; + if (E2 != other.E2) return false; + if (E3 != other.E3) return false; + if (F1 != other.F1) return false; + if (F2 != other.F2) return false; + if (F3 != other.F3) return false; + if (!object.Equals(S1, other.S1)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX12) hash ^= X12.GetHashCode(); + if (HasX2) hash ^= X2.GetHashCode(); + if (HasX3) hash ^= X3.GetHashCode(); + if (HasX4) hash ^= X4.GetHashCode(); + hash ^= a1_.GetHashCode(); + hash ^= a2_.GetHashCode(); + hash ^= b1_.GetHashCode(); + hash ^= b2_.GetHashCode(); + hash ^= c1_.GetHashCode(); + hash ^= c2_.GetHashCode(); + hash ^= D1.GetHashCode(); + hash ^= D2.GetHashCode(); + if (HasE1) hash ^= E1.GetHashCode(); + if (HasE2) hash ^= E2.GetHashCode(); + if (HasE3) hash ^= E3.GetHashCode(); + if (HasF1) hash ^= F1.GetHashCode(); + if (HasF2) hash ^= F2.GetHashCode(); + if (HasF3) hash ^= F3.GetHashCode(); + if (s1_ != null) hash ^= S1.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(48); + output.WriteInt32(X4); + } + a1_.WriteTo(output, _repeated_a1_codec); + a2_.WriteTo(output, _repeated_a2_codec); + b1_.WriteTo(output, _repeated_b1_codec); + b2_.WriteTo(output, _repeated_b2_codec); + c1_.WriteTo(output, _repeated_c1_codec); + c2_.WriteTo(output, _repeated_c2_codec); + d1_.WriteTo(output, _map_d1_codec); + d2_.WriteTo(output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(120); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(128, 1); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(138, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(144, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(152, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(162, 1); + output.WriteString(F3); + } + if (s1_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(S1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteInt32(X1); + } + if (HasX12) { + output.WriteRawTag(24); + output.WriteInt32(X12); + } + if (HasX2) { + output.WriteRawTag(32); + output.WriteInt32(X2); + } + if (HasX3) { + output.WriteRawTag(40); + output.WriteInt32(X3); + } + if (HasX4) { + output.WriteRawTag(48); + output.WriteInt32(X4); + } + a1_.WriteTo(ref output, _repeated_a1_codec); + a2_.WriteTo(ref output, _repeated_a2_codec); + b1_.WriteTo(ref output, _repeated_b1_codec); + b2_.WriteTo(ref output, _repeated_b2_codec); + c1_.WriteTo(ref output, _repeated_c1_codec); + c2_.WriteTo(ref output, _repeated_c2_codec); + d1_.WriteTo(ref output, _map_d1_codec); + d2_.WriteTo(ref output, _map_d2_codec); + if (HasE1) { + output.WriteRawTag(120); + output.WriteInt32(E1); + } + if (HasE2) { + output.WriteRawTag(128, 1); + output.WriteInt64(E2); + } + if (HasE3) { + output.WriteRawTag(138, 1); + output.WriteString(E3); + } + if (HasF1) { + output.WriteRawTag(144, 1); + output.WriteInt32(F1); + } + if (HasF2) { + output.WriteRawTag(152, 1); + output.WriteInt64(F2); + } + if (HasF3) { + output.WriteRawTag(162, 1); + output.WriteString(F3); + } + if (s1_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(S1); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X1); + } + if (HasX12) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X12); + } + if (HasX2) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X2); + } + if (HasX3) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X3); + } + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + size += a1_.CalculateSize(_repeated_a1_codec); + size += a2_.CalculateSize(_repeated_a2_codec); + size += b1_.CalculateSize(_repeated_b1_codec); + size += b2_.CalculateSize(_repeated_b2_codec); + size += c1_.CalculateSize(_repeated_c1_codec); + size += c2_.CalculateSize(_repeated_c2_codec); + size += d1_.CalculateSize(_map_d1_codec); + size += d2_.CalculateSize(_map_d2_codec); + if (HasE1) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(E1); + } + if (HasE2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(E2); + } + if (HasE3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(E3); + } + if (HasF1) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(F1); + } + if (HasF2) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(F2); + } + if (HasF3) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(F3); + } + if (s1_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(S1); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRef other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX12) { + X12 = other.X12; + } + if (other.HasX2) { + X2 = other.X2; + } + if (other.HasX3) { + X3 = other.X3; + } + if (other.HasX4) { + X4 = other.X4; + } + a1_.Add(other.a1_); + a2_.Add(other.a2_); + b1_.Add(other.b1_); + b2_.Add(other.b2_); + c1_.Add(other.c1_); + c2_.Add(other.c2_); + d1_.MergeFrom(other.d1_); + d2_.MergeFrom(other.d2_); + if (other.HasE1) { + E1 = other.E1; + } + if (other.HasE2) { + E2 = other.E2; + } + if (other.HasE3) { + E3 = other.E3; + } + if (other.HasF1) { + F1 = other.F1; + } + if (other.HasF2) { + F2 = other.F2; + } + if (other.HasF3) { + F3 = other.F3; + } + if (other.s1_ != null) { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + S1.MergeFrom(other.S1); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 48: { + X4 = input.ReadInt32(); + break; + } + case 58: + case 56: { + a1_.AddEntriesFrom(input, _repeated_a1_codec); + break; + } + case 66: + case 64: { + a2_.AddEntriesFrom(input, _repeated_a2_codec); + break; + } + case 74: + case 72: { + b1_.AddEntriesFrom(input, _repeated_b1_codec); + break; + } + case 82: + case 80: { + b2_.AddEntriesFrom(input, _repeated_b2_codec); + break; + } + case 90: + case 88: { + c1_.AddEntriesFrom(input, _repeated_c1_codec); + break; + } + case 98: + case 96: { + c2_.AddEntriesFrom(input, _repeated_c2_codec); + break; + } + case 106: { + d1_.AddEntriesFrom(input, _map_d1_codec); + break; + } + case 114: { + d2_.AddEntriesFrom(input, _map_d2_codec); + break; + } + case 120: { + E1 = input.ReadInt32(); + break; + } + case 128: { + E2 = input.ReadInt64(); + break; + } + case 138: { + E3 = input.ReadString(); + break; + } + case 144: { + F1 = input.ReadInt32(); + break; + } + case 152: { + F2 = input.ReadInt64(); + break; + } + case 162: { + F3 = input.ReadString(); + break; + } + case 170: { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + input.ReadMessage(S1); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadInt32(); + break; + } + case 24: { + X12 = input.ReadInt32(); + break; + } + case 32: { + X2 = input.ReadInt32(); + break; + } + case 40: { + X3 = input.ReadInt32(); + break; + } + case 48: { + X4 = input.ReadInt32(); + break; + } + case 58: + case 56: { + a1_.AddEntriesFrom(ref input, _repeated_a1_codec); + break; + } + case 66: + case 64: { + a2_.AddEntriesFrom(ref input, _repeated_a2_codec); + break; + } + case 74: + case 72: { + b1_.AddEntriesFrom(ref input, _repeated_b1_codec); + break; + } + case 82: + case 80: { + b2_.AddEntriesFrom(ref input, _repeated_b2_codec); + break; + } + case 90: + case 88: { + c1_.AddEntriesFrom(ref input, _repeated_c1_codec); + break; + } + case 98: + case 96: { + c2_.AddEntriesFrom(ref input, _repeated_c2_codec); + break; + } + case 106: { + d1_.AddEntriesFrom(ref input, _map_d1_codec); + break; + } + case 114: { + d2_.AddEntriesFrom(ref input, _map_d2_codec); + break; + } + case 120: { + E1 = input.ReadInt32(); + break; + } + case 128: { + E2 = input.ReadInt64(); + break; + } + case 138: { + E3 = input.ReadString(); + break; + } + case 144: { + F1 = input.ReadInt32(); + break; + } + case 152: { + F2 = input.ReadInt64(); + break; + } + case 162: { + F3 = input.ReadString(); + break; + } + case 170: { + if (s1_ == null) { + S1 = new global::Cfg.TestRefDynamicBase(); + } + input.ReadMessage(S1); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestRefDynamicBase : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestRefDynamicBase()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[82]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase(TestRefDynamicBase other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.RefBean: + RefBean = other.RefBean.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefDynamicBase Clone() { + return new TestRefDynamicBase(this); + } + + /// Field number for the "RefBean" field. + public const int RefBeanFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestRefBean RefBean { + get { return valueCase_ == ValueOneofCase.RefBean ? (global::Cfg.TestRefBean) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.RefBean; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + RefBean = 1, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestRefDynamicBase); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestRefDynamicBase other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RefBean, other.RefBean)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.RefBean) hash ^= RefBean.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.RefBean) { + output.WriteRawTag(10); + output.WriteMessage(RefBean); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.RefBean) { + output.WriteRawTag(10); + output.WriteMessage(RefBean); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.RefBean) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RefBean); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestRefDynamicBase other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.RefBean: + if (RefBean == null) { + RefBean = new global::Cfg.TestRefBean(); + } + RefBean.MergeFrom(other.RefBean); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestRefBean subBuilder = new global::Cfg.TestRefBean(); + if (valueCase_ == ValueOneofCase.RefBean) { + subBuilder.MergeFrom(RefBean); + } + input.ReadMessage(subBuilder); + RefBean = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestRefBean subBuilder = new global::Cfg.TestRefBean(); + if (valueCase_ == ValueOneofCase.RefBean) { + subBuilder.MergeFrom(RefBean); + } + input.ReadMessage(subBuilder); + RefBean = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestRefBean : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestRefBean()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[83]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean(TestRefBean other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + arr_ = other.arr_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestRefBean Clone() { + return new TestRefBean(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "arr" field. + public const int ArrFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_arr_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField arr_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Arr { + get { return arr_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestRefBean); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestRefBean other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if(!arr_.Equals(other.arr_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + hash ^= arr_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + arr_.WriteTo(output, _repeated_arr_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + arr_.WriteTo(ref output, _repeated_arr_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += arr_.CalculateSize(_repeated_arr_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestRefBean other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + arr_.Add(other.arr_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 18: + case 16: { + arr_.AddEntriesFrom(input, _repeated_arr_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 18: + case 16: { + arr_.AddEntriesFrom(ref input, _repeated_arr_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSize()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[84]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize(TestTestSize other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSize Clone() { + return new TestTestSize(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForInt32(34); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSize other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.MergeFrom(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: + case 16: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 26: + case 24: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 34: + case 32: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestSet()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[85]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet(TestTestSet other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x0_ = other.x0_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestSet Clone() { + return new TestTestSet(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x0" field. + public const int X0FieldNumber = 2; + private readonly static string X0DefaultValue = ""; + + private string x0_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X0 { + get { return x0_ ?? X0DefaultValue; } + set { + x0_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x0" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX0 { + get { return x0_ != null; } + } + /// Clears the value of the "x0" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX0() { + x0_ = null; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 3; + private static readonly pb::FieldCodec _repeated_x1_codec + = pb::FieldCodec.ForInt32(26); + private readonly pbc::RepeatedField x1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 4; + private static readonly pb::FieldCodec _repeated_x2_codec + = pb::FieldCodec.ForInt64(34); + private readonly pbc::RepeatedField x2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 5; + private static readonly pb::FieldCodec _repeated_x3_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField x3_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_x4_codec + = pb::FieldCodec.ForEnum(48, x => (int) x, x => (global::Cfg.TestDemoEnum) x); + private readonly pbc::RepeatedField x4_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X0 != other.X0) return false; + if(!x1_.Equals(other.x1_)) return false; + if(!x2_.Equals(other.x2_)) return false; + if(!x3_.Equals(other.x3_)) return false; + if(!x4_.Equals(other.x4_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX0) hash ^= X0.GetHashCode(); + hash ^= x1_.GetHashCode(); + hash ^= x2_.GetHashCode(); + hash ^= x3_.GetHashCode(); + hash ^= x4_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX0) { + output.WriteRawTag(18); + output.WriteString(X0); + } + x1_.WriteTo(output, _repeated_x1_codec); + x2_.WriteTo(output, _repeated_x2_codec); + x3_.WriteTo(output, _repeated_x3_codec); + x4_.WriteTo(output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX0) { + output.WriteRawTag(18); + output.WriteString(X0); + } + x1_.WriteTo(ref output, _repeated_x1_codec); + x2_.WriteTo(ref output, _repeated_x2_codec); + x3_.WriteTo(ref output, _repeated_x3_codec); + x4_.WriteTo(ref output, _repeated_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X0); + } + size += x1_.CalculateSize(_repeated_x1_codec); + size += x2_.CalculateSize(_repeated_x2_codec); + size += x3_.CalculateSize(_repeated_x3_codec); + size += x4_.CalculateSize(_repeated_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestSet other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX0) { + X0 = other.X0; + } + x1_.Add(other.x1_); + x2_.Add(other.x2_); + x3_.Add(other.x3_); + x4_.Add(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X0 = input.ReadString(); + break; + } + case 26: + case 24: { + x1_.AddEntriesFrom(input, _repeated_x1_codec); + break; + } + case 34: + case 32: { + x2_.AddEntriesFrom(input, _repeated_x2_codec); + break; + } + case 42: { + x3_.AddEntriesFrom(input, _repeated_x3_codec); + break; + } + case 50: + case 48: { + x4_.AddEntriesFrom(input, _repeated_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X0 = input.ReadString(); + break; + } + case 26: + case 24: { + x1_.AddEntriesFrom(ref input, _repeated_x1_codec); + break; + } + case 34: + case 32: { + x2_.AddEntriesFrom(ref input, _repeated_x2_codec); + break; + } + case 42: { + x3_.AddEntriesFrom(ref input, _repeated_x3_codec); + break; + } + case 50: + case 48: { + x4_.AddEntriesFrom(ref input, _repeated_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDetectEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDetectEncoding()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[86]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding(TestDetectEncoding other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDetectEncoding Clone() { + return new TestDetectEncoding(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDetectEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDetectEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDetectEncoding other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestItemBase : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestItemBase()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[87]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase(TestItemBase other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Item: + Item = other.Item.Clone(); + break; + case ValueOneofCase.Equipment: + Equipment = other.Equipment.Clone(); + break; + case ValueOneofCase.Decorator: + Decorator = other.Decorator.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItemBase Clone() { + return new TestItemBase(this); + } + + /// Field number for the "Item" field. + public const int ItemFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestItem Item { + get { return valueCase_ == ValueOneofCase.Item ? (global::Cfg.TestItem) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Item; + } + } + + /// Field number for the "Equipment" field. + public const int EquipmentFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestEquipment Equipment { + get { return valueCase_ == ValueOneofCase.Equipment ? (global::Cfg.TestEquipment) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Equipment; + } + } + + /// Field number for the "Decorator" field. + public const int DecoratorFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDecorator Decorator { + get { return valueCase_ == ValueOneofCase.Decorator ? (global::Cfg.TestDecorator) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Decorator; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Item = 1, + Equipment = 2, + Decorator = 3, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestItemBase); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestItemBase other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(Equipment, other.Equipment)) return false; + if (!object.Equals(Decorator, other.Decorator)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Item) hash ^= Item.GetHashCode(); + if (valueCase_ == ValueOneofCase.Equipment) hash ^= Equipment.GetHashCode(); + if (valueCase_ == ValueOneofCase.Decorator) hash ^= Decorator.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + output.WriteRawTag(18); + output.WriteMessage(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + output.WriteRawTag(26); + output.WriteMessage(Decorator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Item) { + output.WriteRawTag(10); + output.WriteMessage(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + output.WriteRawTag(18); + output.WriteMessage(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + output.WriteRawTag(26); + output.WriteMessage(Decorator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (valueCase_ == ValueOneofCase.Equipment) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Equipment); + } + if (valueCase_ == ValueOneofCase.Decorator) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Decorator); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestItemBase other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Item: + if (Item == null) { + Item = new global::Cfg.TestItem(); + } + Item.MergeFrom(other.Item); + break; + case ValueOneofCase.Equipment: + if (Equipment == null) { + Equipment = new global::Cfg.TestEquipment(); + } + Equipment.MergeFrom(other.Equipment); + break; + case ValueOneofCase.Decorator: + if (Decorator == null) { + Decorator = new global::Cfg.TestDecorator(); + } + Decorator.MergeFrom(other.Decorator); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestItem subBuilder = new global::Cfg.TestItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 18: { + global::Cfg.TestEquipment subBuilder = new global::Cfg.TestEquipment(); + if (valueCase_ == ValueOneofCase.Equipment) { + subBuilder.MergeFrom(Equipment); + } + input.ReadMessage(subBuilder); + Equipment = subBuilder; + break; + } + case 26: { + global::Cfg.TestDecorator subBuilder = new global::Cfg.TestDecorator(); + if (valueCase_ == ValueOneofCase.Decorator) { + subBuilder.MergeFrom(Decorator); + } + input.ReadMessage(subBuilder); + Decorator = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestItem subBuilder = new global::Cfg.TestItem(); + if (valueCase_ == ValueOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 18: { + global::Cfg.TestEquipment subBuilder = new global::Cfg.TestEquipment(); + if (valueCase_ == ValueOneofCase.Equipment) { + subBuilder.MergeFrom(Equipment); + } + input.ReadMessage(subBuilder); + Equipment = subBuilder; + break; + } + case 26: { + global::Cfg.TestDecorator subBuilder = new global::Cfg.TestDecorator(); + if (valueCase_ == ValueOneofCase.Decorator) { + subBuilder.MergeFrom(Decorator); + } + input.ReadMessage(subBuilder); + Decorator = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestItem()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[88]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem(TestItem other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + num_ = other.num_; + price_ = other.price_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestItem Clone() { + return new TestItem(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 2) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 2; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~2; + } + + /// Field number for the "price" field. + public const int PriceFieldNumber = 5; + private readonly static int PriceDefaultValue = 0; + + private int price_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Price { + get { if ((_hasBits0 & 4) != 0) { return price_; } else { return PriceDefaultValue; } } + set { + _hasBits0 |= 4; + price_ = value; + } + } + /// Gets whether the "price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPrice { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPrice() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Num != other.Num) return false; + if (Price != other.Price) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasNum) hash ^= Num.GetHashCode(); + if (HasPrice) hash ^= Price.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasPrice) { + output.WriteRawTag(40); + output.WriteInt32(Price); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (HasPrice) { + output.WriteRawTag(40); + output.WriteInt32(Price); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (HasPrice) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestItem other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.HasPrice) { + Price = other.Price; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 40: { + Price = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 40: { + Price = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestEquipment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestEquipment()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[89]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment(TestEquipment other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + attr_ = other.attr_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestEquipment Clone() { + return new TestEquipment(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "attr" field. + public const int AttrFieldNumber = 4; + private readonly static global::Cfg.TestDemoEnum AttrDefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum attr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum Attr { + get { if ((_hasBits0 & 2) != 0) { return attr_; } else { return AttrDefaultValue; } } + set { + _hasBits0 |= 2; + attr_ = value; + } + } + /// Gets whether the "attr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAttr { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "attr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAttr() { + _hasBits0 &= ~2; + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 5; + private readonly static int ValueDefaultValue = 0; + + private int value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Value { + get { if ((_hasBits0 & 4) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 4; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestEquipment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestEquipment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Attr != other.Attr) return false; + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasAttr) hash ^= Attr.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasAttr) { + output.WriteRawTag(32); + output.WriteEnum((int) Attr); + } + if (HasValue) { + output.WriteRawTag(40); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasAttr) { + output.WriteRawTag(32); + output.WriteEnum((int) Attr); + } + if (HasValue) { + output.WriteRawTag(40); + output.WriteInt32(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasAttr) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Attr); + } + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestEquipment other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasAttr) { + Attr = other.Attr; + } + if (other.HasValue) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Attr = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 40: { + Value = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Attr = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 40: { + Value = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestDecorator : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestDecorator()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[90]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator(TestDecorator other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + name_ = other.name_; + desc_ = other.desc_; + duration_ = other.duration_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestDecorator Clone() { + return new TestDecorator(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 3; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "duration" field. + public const int DurationFieldNumber = 4; + private readonly static int DurationDefaultValue = 0; + + private int duration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Duration { + get { if ((_hasBits0 & 2) != 0) { return duration_; } else { return DurationDefaultValue; } } + set { + _hasBits0 |= 2; + duration_ = value; + } + } + /// Gets whether the "duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDuration { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDuration() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestDecorator); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestDecorator other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Name != other.Name) return false; + if (Desc != other.Desc) return false; + if (Duration != other.Duration) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasDuration) hash ^= Duration.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasDuration) { + output.WriteRawTag(32); + output.WriteInt32(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasDesc) { + output.WriteRawTag(26); + output.WriteString(Desc); + } + if (HasDuration) { + output.WriteRawTag(32); + output.WriteInt32(Duration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasDuration) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Duration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestDecorator other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasDuration) { + Duration = other.Duration; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Duration = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Desc = input.ReadString(); + break; + } + case 32: { + Duration = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestIndex()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[91]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex(TestTestIndex other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + eles_ = other.eles_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestIndex Clone() { + return new TestTestIndex(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "eles" field. + public const int ElesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_eles_codec + = pb::FieldCodec.ForMessage(18, global::Cfg.TestDemoType1.Parser); + private readonly pbc::RepeatedField eles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Eles { + get { return eles_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!eles_.Equals(other.eles_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= eles_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + eles_.WriteTo(ref output, _repeated_eles_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += eles_.CalculateSize(_repeated_eles_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestIndex other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + eles_.Add(other.eles_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(input, _repeated_eles_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + eles_.AddEntriesFrom(ref input, _repeated_eles_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[92]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap(TestTestMap other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_.Clone(); + x2_ = other.x2_.Clone(); + x3_ = other.x3_.Clone(); + x4_ = other.x4_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMap Clone() { + return new TestTestMap(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private static readonly pbc::MapField.Codec _map_x1_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 18); + private readonly pbc::MapField x1_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X1 { + get { return x1_; } + } + + /// Field number for the "x2" field. + public const int X2FieldNumber = 3; + private static readonly pbc::MapField.Codec _map_x2_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt32(16, 0), 26); + private readonly pbc::MapField x2_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X2 { + get { return x2_; } + } + + /// Field number for the "x3" field. + public const int X3FieldNumber = 4; + private static readonly pbc::MapField.Codec _map_x3_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 34); + private readonly pbc::MapField x3_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X3 { + get { return x3_; } + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 5; + private static readonly pbc::MapField.Codec _map_x4_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); + private readonly pbc::MapField x4_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField X4 { + get { return x4_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!X1.Equals(other.X1)) return false; + if (!X2.Equals(other.X2)) return false; + if (!X3.Equals(other.X3)) return false; + if (!X4.Equals(other.X4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= X1.GetHashCode(); + hash ^= X2.GetHashCode(); + hash ^= X3.GetHashCode(); + hash ^= X4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(output, _map_x1_codec); + x2_.WriteTo(output, _map_x2_codec); + x3_.WriteTo(output, _map_x3_codec); + x4_.WriteTo(output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + x1_.WriteTo(ref output, _map_x1_codec); + x2_.WriteTo(ref output, _map_x2_codec); + x3_.WriteTo(ref output, _map_x3_codec); + x4_.WriteTo(ref output, _map_x4_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + size += x1_.CalculateSize(_map_x1_codec); + size += x2_.CalculateSize(_map_x2_codec); + size += x3_.CalculateSize(_map_x3_codec); + size += x4_.CalculateSize(_map_x4_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMap other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + x1_.MergeFrom(other.x1_); + x2_.MergeFrom(other.x2_); + x3_.MergeFrom(other.x3_); + x4_.MergeFrom(other.x4_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(input, _map_x4_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + x1_.AddEntriesFrom(ref input, _map_x1_codec); + break; + } + case 26: { + x2_.AddEntriesFrom(ref input, _map_x2_codec); + break; + } + case 34: { + x3_.AddEntriesFrom(ref input, _map_x3_codec); + break; + } + case 42: { + x4_.AddEntriesFrom(ref input, _map_x4_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[93]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson(TestExcelFromJson other) : this() { + _hasBits0 = other._hasBits0; + x4_ = other.x4_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + s1_ = other.s1_; + s2_ = other.s2_; + t1_ = other.t1_; + x12_ = other.x12_ != null ? other.x12_.Clone() : null; + x13_ = other.x13_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + k1_ = other.k1_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k15_ = other.k15_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJson Clone() { + return new TestExcelFromJson(this); + } + + /// Field number for the "x4" field. + public const int X4FieldNumber = 1; + private readonly static int X4DefaultValue = 0; + + private int x4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X4 { + get { if ((_hasBits0 & 1) != 0) { return x4_; } else { return X4DefaultValue; } } + set { + _hasBits0 |= 1; + x4_ = value; + } + } + /// Gets whether the "x4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX4 { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX4() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "s1" field. + public const int S1FieldNumber = 5; + private readonly static string S1DefaultValue = ""; + + private string s1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S1 { + get { return s1_ ?? S1DefaultValue; } + set { + s1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS1 { + get { return s1_ != null; } + } + /// Clears the value of the "s1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS1() { + s1_ = null; + } + + /// Field number for the "s2" field. + public const int S2FieldNumber = 6; + private readonly static string S2DefaultValue = ""; + + private string s2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string S2 { + get { return s2_ ?? S2DefaultValue; } + set { + s2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "s2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasS2 { + get { return s2_ != null; } + } + /// Clears the value of the "s2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearS2() { + s2_ = null; + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 7; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 16) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 16; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~16; + } + + /// Field number for the "x12" field. + public const int X12FieldNumber = 8; + private global::Cfg.TestDemoType1 x12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoType1 X12 { + get { return x12_; } + set { + x12_ = value; + } + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 9; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 10; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 11; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(90); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 12; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 98); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(106, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k15" field. + public const int K15FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k15_codec + = pb::FieldCodec.ForMessage(114, global::Cfg.TestDemoDynamic.Parser); + private readonly pbc::RepeatedField k15_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K15 { + get { return k15_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X4 != other.X4) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (S1 != other.S1) return false; + if (S2 != other.S2) return false; + if (T1 != other.T1) return false; + if (!object.Equals(X12, other.X12)) return false; + if (X13 != other.X13) return false; + if (!object.Equals(X14, other.X14)) return false; + if(!k1_.Equals(other.k1_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k15_.Equals(other.k15_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX4) hash ^= X4.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasS1) hash ^= S1.GetHashCode(); + if (HasS2) hash ^= S2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + if (x12_ != null) hash ^= X12.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k15_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (HasT1) { + output.WriteRawTag(56); + output.WriteInt64(T1); + } + if (x12_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(72); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X14); + } + k1_.WriteTo(output, _repeated_k1_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k15_.WriteTo(output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX4) { + output.WriteRawTag(8); + output.WriteInt32(X4); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasS1) { + output.WriteRawTag(42); + output.WriteString(S1); + } + if (HasS2) { + output.WriteRawTag(50); + output.WriteString(S2); + } + if (HasT1) { + output.WriteRawTag(56); + output.WriteInt64(T1); + } + if (x12_ != null) { + output.WriteRawTag(66); + output.WriteMessage(X12); + } + if (HasX13) { + output.WriteRawTag(72); + output.WriteEnum((int) X13); + } + if (x14_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X14); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k15_.WriteTo(ref output, _repeated_k15_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX4) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X4); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasS1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S1); + } + if (HasS2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(S2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + if (x12_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X12); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k15_.CalculateSize(_repeated_k15_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJson other) { + if (other == null) { + return; + } + if (other.HasX4) { + X4 = other.X4; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasS1) { + S1 = other.S1; + } + if (other.HasS2) { + S2 = other.S2; + } + if (other.HasT1) { + T1 = other.T1; + } + if (other.x12_ != null) { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + X12.MergeFrom(other.X12); + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + k1_.Add(other.k1_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k15_.Add(other.k15_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 56: { + T1 = input.ReadInt64(); + break; + } + case 66: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 72: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 82: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 114: { + k15_.AddEntriesFrom(input, _repeated_k15_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X4 = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 42: { + S1 = input.ReadString(); + break; + } + case 50: { + S2 = input.ReadString(); + break; + } + case 56: { + T1 = input.ReadInt64(); + break; + } + case 66: { + if (x12_ == null) { + X12 = new global::Cfg.TestDemoType1(); + } + input.ReadMessage(X12); + break; + } + case 72: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 82: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 90: + case 88: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 98: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 106: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 114: { + k15_.AddEntriesFrom(ref input, _repeated_k15_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[94]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1(TestCompositeJsonTable1 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable1 Clone() { + return new TestCompositeJsonTable1(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static string XDefaultValue = ""; + + private string x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X { + get { return x_ ?? XDefaultValue; } + set { + x_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return x_ != null; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + x_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(18); + output.WriteString(X); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable1 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + X = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[95]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2(TestCompositeJsonTable2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable2 Clone() { + return new TestCompositeJsonTable2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[96]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3(TestCompositeJsonTable3 other) : this() { + _hasBits0 = other._hasBits0; + a_ = other.a_; + b_ = other.b_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCompositeJsonTable3 Clone() { + return new TestCompositeJsonTable3(this); + } + + /// Field number for the "a" field. + public const int AFieldNumber = 1; + private readonly static int ADefaultValue = 0; + + private int a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int A { + get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 1; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~1; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 2; + private readonly static int BDefaultValue = 0; + + private int b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int B { + get { if ((_hasBits0 & 2) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 2; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (A != other.A) return false; + if (B != other.B) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasA) hash ^= A.GetHashCode(); + if (HasB) hash ^= B.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasA) { + output.WriteRawTag(8); + output.WriteInt32(A); + } + if (HasB) { + output.WriteRawTag(16); + output.WriteInt32(B); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasA) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(A); + } + if (HasB) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(B); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCompositeJsonTable3 other) { + if (other == null) { + return; + } + if (other.HasA) { + A = other.A; + } + if (other.HasB) { + B = other.B; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + A = input.ReadInt32(); + break; + } + case 16: { + B = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[97]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow(TestExcelFromJsonMultiRow other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x_ = other.x_; + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestExcelFromJsonMultiRow Clone() { + return new TestExcelFromJsonMultiRow(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(26, global::Cfg.TestTestRow.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X != other.X) return false; + if(!items_.Equals(other.items_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX) hash ^= X.GetHashCode(); + hash ^= items_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX) { + output.WriteRawTag(16); + output.WriteInt32(X); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + size += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX) { + X = other.X; + } + items_.Add(other.items_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X = input.ReadInt32(); + break; + } + case 26: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestRow()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[98]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow(TestTestRow other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + a_ = other.a_ != null ? other.a_.Clone() : null; + b_ = other.b_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestRow Clone() { + return new TestTestRow(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static bool YDefaultValue = false; + + private bool y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static string ZDefaultValue = ""; + + private string z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Z { + get { return z_ ?? ZDefaultValue; } + set { + z_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return z_ != null; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + z_ = null; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private global::Cfg.TestTest3 a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestTest3 A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "b" field. + public const int BFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_b_codec + = pb::FieldCodec.ForInt32(42); + private readonly pbc::RepeatedField b_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField B { + get { return b_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + if (!object.Equals(A, other.A)) return false; + if(!b_.Equals(other.b_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (a_ != null) hash ^= A.GetHashCode(); + hash ^= b_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteBool(Y); + } + if (HasZ) { + output.WriteRawTag(26); + output.WriteString(Z); + } + if (a_ != null) { + output.WriteRawTag(34); + output.WriteMessage(A); + } + b_.WriteTo(ref output, _repeated_b_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + 1; + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Z); + } + if (a_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(A); + } + size += b_.CalculateSize(_repeated_b_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestRow other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.a_ != null) { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + A.MergeFrom(other.A); + } + b_.Add(other.b_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(input, _repeated_b_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadBool(); + break; + } + case 26: { + Z = input.ReadString(); + break; + } + case 34: { + if (a_ == null) { + A = new global::Cfg.TestTest3(); + } + input.ReadMessage(A); + break; + } + case 42: + case 40: { + b_.AddEntriesFrom(ref input, _repeated_b_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTest3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTest3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[99]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3(TestTest3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTest3 Clone() { + return new TestTest3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static int XDefaultValue = 0; + + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static int YDefaultValue = 0; + + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTest3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTest3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTest3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadInt32(); + break; + } + case 16: { + Y = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestScriptableObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestScriptableObject()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[100]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject(TestTestScriptableObject other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + desc_ = other.desc_; + rate_ = other.rate_; + num_ = other.num_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + v3_ = other.v3_ != null ? other.v3_.Clone() : null; + v4_ = other.v4_ != null ? other.v4_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestScriptableObject Clone() { + return new TestTestScriptableObject(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "desc" field. + public const int DescFieldNumber = 2; + private readonly static string DescDefaultValue = ""; + + private string desc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_ ?? DescDefaultValue; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "desc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDesc { + get { return desc_ != null; } + } + /// Clears the value of the "desc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDesc() { + desc_ = null; + } + + /// Field number for the "rate" field. + public const int RateFieldNumber = 3; + private readonly static float RateDefaultValue = 0F; + + private float rate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Rate { + get { if ((_hasBits0 & 2) != 0) { return rate_; } else { return RateDefaultValue; } } + set { + _hasBits0 |= 2; + rate_ = value; + } + } + /// Gets whether the "rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRate { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRate() { + _hasBits0 &= ~2; + } + + /// Field number for the "num" field. + public const int NumFieldNumber = 4; + private readonly static int NumDefaultValue = 0; + + private int num_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Num { + get { if ((_hasBits0 & 4) != 0) { return num_; } else { return NumDefaultValue; } } + set { + _hasBits0 |= 4; + num_ = value; + } + } + /// Gets whether the "num" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNum { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNum() { + _hasBits0 &= ~4; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 5; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "v3" field. + public const int V3FieldNumber = 6; + private global::Cfg.vector3 v3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector3 V3 { + get { return v3_; } + set { + v3_ = value; + } + } + + /// Field number for the "v4" field. + public const int V4FieldNumber = 7; + private global::Cfg.vector4 v4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector4 V4 { + get { return v4_; } + set { + v4_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestScriptableObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestScriptableObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Desc != other.Desc) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rate, other.Rate)) return false; + if (Num != other.Num) return false; + if (!object.Equals(V2, other.V2)) return false; + if (!object.Equals(V3, other.V3)) return false; + if (!object.Equals(V4, other.V4)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasDesc) hash ^= Desc.GetHashCode(); + if (HasRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rate); + if (HasNum) hash ^= Num.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (v3_ != null) hash ^= V3.GetHashCode(); + if (v4_ != null) hash ^= V4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasRate) { + output.WriteRawTag(29); + output.WriteFloat(Rate); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (v2_ != null) { + output.WriteRawTag(42); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(50); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasDesc) { + output.WriteRawTag(18); + output.WriteString(Desc); + } + if (HasRate) { + output.WriteRawTag(29); + output.WriteFloat(Rate); + } + if (HasNum) { + output.WriteRawTag(32); + output.WriteInt32(Num); + } + if (v2_ != null) { + output.WriteRawTag(42); + output.WriteMessage(V2); + } + if (v3_ != null) { + output.WriteRawTag(50); + output.WriteMessage(V3); + } + if (v4_ != null) { + output.WriteRawTag(58); + output.WriteMessage(V4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasDesc) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (HasRate) { + size += 1 + 4; + } + if (HasNum) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (v3_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V3); + } + if (v4_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestScriptableObject other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasDesc) { + Desc = other.Desc; + } + if (other.HasRate) { + Rate = other.Rate; + } + if (other.HasNum) { + Num = other.Num; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.v3_ != null) { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + V3.MergeFrom(other.V3); + } + if (other.v4_ != null) { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + V4.MergeFrom(other.V4); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 29: { + Rate = input.ReadFloat(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 50: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 58: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 18: { + Desc = input.ReadString(); + break; + } + case 29: { + Rate = input.ReadFloat(); + break; + } + case 32: { + Num = input.ReadInt32(); + break; + } + case 42: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 50: { + if (v3_ == null) { + V3 = new global::Cfg.vector3(); + } + input.ReadMessage(V3); + break; + } + case 58: { + if (v4_ == null) { + V4 = new global::Cfg.vector4(); + } + input.ReadMessage(V4); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTestMapper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTestMapper()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[101]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper(TestTestMapper other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + audioType_ = other.audioType_; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTestMapper Clone() { + return new TestTestMapper(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "audio_type" field. + public const int AudioTypeFieldNumber = 2; + private readonly static global::Cfg.AudioType AudioTypeDefaultValue = global::Cfg.AudioType.Unknown; + + private global::Cfg.AudioType audioType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.AudioType AudioType { + get { if ((_hasBits0 & 2) != 0) { return audioType_; } else { return AudioTypeDefaultValue; } } + set { + _hasBits0 |= 2; + audioType_ = value; + } + } + /// Gets whether the "audio_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "audio_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioType() { + _hasBits0 &= ~2; + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 3; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTestMapper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTestMapper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (AudioType != other.AudioType) return false; + if (!object.Equals(V2, other.V2)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasAudioType) hash ^= AudioType.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (v2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(V2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasAudioType) { + output.WriteRawTag(16); + output.WriteEnum((int) AudioType); + } + if (v2_ != null) { + output.WriteRawTag(26); + output.WriteMessage(V2); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasAudioType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AudioType); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTestMapper other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasAudioType) { + AudioType = other.AudioType; + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.AudioType) input.ReadEnum(); + break; + } + case 26: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + AudioType = (global::Cfg.AudioType) input.ReadEnum(); + break; + } + case 26: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + } + } + } + #endif + + } + + public sealed partial class DefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[102]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2(DefineFromExcel2 other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + x1_ = other.x1_; + x5_ = other.x5_; + x6_ = other.x6_; + x8_ = other.x8_; + x10_ = other.x10_; + x13_ = other.x13_; + x132_ = other.x132_; + x14_ = other.x14_ != null ? other.x14_.Clone() : null; + x15_ = other.x15_ != null ? other.x15_.Clone() : null; + v2_ = other.v2_ != null ? other.v2_.Clone() : null; + t1_ = other.t1_; + k1_ = other.k1_.Clone(); + k2_ = other.k2_.Clone(); + k8_ = other.k8_.Clone(); + k9_ = other.k9_.Clone(); + k10_ = other.k10_.Clone(); + k11_ = other.k11_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DefineFromExcel2 Clone() { + return new DefineFromExcel2(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static int IdDefaultValue = 0; + + private int id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "x1" field. + public const int X1FieldNumber = 2; + private readonly static bool X1DefaultValue = false; + + private bool x1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool X1 { + get { if ((_hasBits0 & 2) != 0) { return x1_; } else { return X1DefaultValue; } } + set { + _hasBits0 |= 2; + x1_ = value; + } + } + /// Gets whether the "x1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX1 { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX1() { + _hasBits0 &= ~2; + } + + /// Field number for the "x5" field. + public const int X5FieldNumber = 3; + private readonly static long X5DefaultValue = 0L; + + private long x5_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long X5 { + get { if ((_hasBits0 & 4) != 0) { return x5_; } else { return X5DefaultValue; } } + set { + _hasBits0 |= 4; + x5_ = value; + } + } + /// Gets whether the "x5" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX5 { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x5" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX5() { + _hasBits0 &= ~4; + } + + /// Field number for the "x6" field. + public const int X6FieldNumber = 4; + private readonly static float X6DefaultValue = 0F; + + private float x6_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X6 { + get { if ((_hasBits0 & 8) != 0) { return x6_; } else { return X6DefaultValue; } } + set { + _hasBits0 |= 8; + x6_ = value; + } + } + /// Gets whether the "x6" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX6 { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "x6" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX6() { + _hasBits0 &= ~8; + } + + /// Field number for the "x8" field. + public const int X8FieldNumber = 5; + private readonly static int X8DefaultValue = 0; + + private int x8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int X8 { + get { if ((_hasBits0 & 16) != 0) { return x8_; } else { return X8DefaultValue; } } + set { + _hasBits0 |= 16; + x8_ = value; + } + } + /// Gets whether the "x8" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX8 { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "x8" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX8() { + _hasBits0 &= ~16; + } + + /// Field number for the "x10" field. + public const int X10FieldNumber = 6; + private readonly static string X10DefaultValue = ""; + + private string x10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string X10 { + get { return x10_ ?? X10DefaultValue; } + set { + x10_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "x10" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX10 { + get { return x10_ != null; } + } + /// Clears the value of the "x10" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX10() { + x10_ = null; + } + + /// Field number for the "x13" field. + public const int X13FieldNumber = 7; + private readonly static global::Cfg.TestDemoEnum X13DefaultValue = global::Cfg.TestDemoEnum.None; + + private global::Cfg.TestDemoEnum x13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoEnum X13 { + get { if ((_hasBits0 & 32) != 0) { return x13_; } else { return X13DefaultValue; } } + set { + _hasBits0 |= 32; + x13_ = value; + } + } + /// Gets whether the "x13" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX13 { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "x13" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX13() { + _hasBits0 &= ~32; + } + + /// Field number for the "x13_2" field. + public const int X132FieldNumber = 8; + private readonly static global::Cfg.TestDemoFlag X132DefaultValue = global::Cfg.TestDemoFlag.A; + + private global::Cfg.TestDemoFlag x132_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoFlag X132 { + get { if ((_hasBits0 & 64) != 0) { return x132_; } else { return X132DefaultValue; } } + set { + _hasBits0 |= 64; + x132_ = value; + } + } + /// Gets whether the "x13_2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX132 { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "x13_2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX132() { + _hasBits0 &= ~64; + } + + /// Field number for the "x14" field. + public const int X14FieldNumber = 9; + private global::Cfg.TestDemoDynamic x14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestDemoDynamic X14 { + get { return x14_; } + set { + x14_ = value; + } + } + + /// Field number for the "x15" field. + public const int X15FieldNumber = 10; + private global::Cfg.TestShape x15_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestShape X15 { + get { return x15_; } + set { + x15_ = value; + } + } + + /// Field number for the "v2" field. + public const int V2FieldNumber = 11; + private global::Cfg.vector2 v2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.vector2 V2 { + get { return v2_; } + set { + v2_ = value; + } + } + + /// Field number for the "t1" field. + public const int T1FieldNumber = 12; + private readonly static long T1DefaultValue = 0L; + + private long t1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long T1 { + get { if ((_hasBits0 & 128) != 0) { return t1_; } else { return T1DefaultValue; } } + set { + _hasBits0 |= 128; + t1_ = value; + } + } + /// Gets whether the "t1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasT1 { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "t1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearT1() { + _hasBits0 &= ~128; + } + + /// Field number for the "k1" field. + public const int K1FieldNumber = 13; + private static readonly pb::FieldCodec _repeated_k1_codec + = pb::FieldCodec.ForInt32(106); + private readonly pbc::RepeatedField k1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K1 { + get { return k1_; } + } + + /// Field number for the "k2" field. + public const int K2FieldNumber = 14; + private static readonly pb::FieldCodec _repeated_k2_codec + = pb::FieldCodec.ForInt32(114); + private readonly pbc::RepeatedField k2_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K2 { + get { return k2_; } + } + + /// Field number for the "k8" field. + public const int K8FieldNumber = 15; + private static readonly pbc::MapField.Codec _map_k8_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 122); + private readonly pbc::MapField k8_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField K8 { + get { return k8_; } + } + + /// Field number for the "k9" field. + public const int K9FieldNumber = 16; + private static readonly pb::FieldCodec _repeated_k9_codec + = pb::FieldCodec.ForMessage(130, global::Cfg.TestDemoE2.Parser); + private readonly pbc::RepeatedField k9_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K9 { + get { return k9_; } + } + + /// Field number for the "k10" field. + public const int K10FieldNumber = 17; + private static readonly pb::FieldCodec _repeated_k10_codec + = pb::FieldCodec.ForMessage(138, global::Cfg.vector3.Parser); + private readonly pbc::RepeatedField k10_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K10 { + get { return k10_; } + } + + /// Field number for the "k11" field. + public const int K11FieldNumber = 18; + private static readonly pb::FieldCodec _repeated_k11_codec + = pb::FieldCodec.ForMessage(146, global::Cfg.vector4.Parser); + private readonly pbc::RepeatedField k11_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField K11 { + get { return k11_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (X1 != other.X1) return false; + if (X5 != other.X5) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X6, other.X6)) return false; + if (X8 != other.X8) return false; + if (X10 != other.X10) return false; + if (X13 != other.X13) return false; + if (X132 != other.X132) return false; + if (!object.Equals(X14, other.X14)) return false; + if (!object.Equals(X15, other.X15)) return false; + if (!object.Equals(V2, other.V2)) return false; + if (T1 != other.T1) return false; + if(!k1_.Equals(other.k1_)) return false; + if(!k2_.Equals(other.k2_)) return false; + if (!K8.Equals(other.K8)) return false; + if(!k9_.Equals(other.k9_)) return false; + if(!k10_.Equals(other.k10_)) return false; + if(!k11_.Equals(other.k11_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasX1) hash ^= X1.GetHashCode(); + if (HasX5) hash ^= X5.GetHashCode(); + if (HasX6) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X6); + if (HasX8) hash ^= X8.GetHashCode(); + if (HasX10) hash ^= X10.GetHashCode(); + if (HasX13) hash ^= X13.GetHashCode(); + if (HasX132) hash ^= X132.GetHashCode(); + if (x14_ != null) hash ^= X14.GetHashCode(); + if (x15_ != null) hash ^= X15.GetHashCode(); + if (v2_ != null) hash ^= V2.GetHashCode(); + if (HasT1) hash ^= T1.GetHashCode(); + hash ^= k1_.GetHashCode(); + hash ^= k2_.GetHashCode(); + hash ^= K8.GetHashCode(); + hash ^= k9_.GetHashCode(); + hash ^= k10_.GetHashCode(); + hash ^= k11_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (HasX132) { + output.WriteRawTag(64); + output.WriteEnum((int) X132); + } + if (x14_ != null) { + output.WriteRawTag(74); + output.WriteMessage(X14); + } + if (x15_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X15); + } + if (v2_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(96); + output.WriteInt64(T1); + } + k1_.WriteTo(output, _repeated_k1_codec); + k2_.WriteTo(output, _repeated_k2_codec); + k8_.WriteTo(output, _map_k8_codec); + k9_.WriteTo(output, _repeated_k9_codec); + k10_.WriteTo(output, _repeated_k10_codec); + k11_.WriteTo(output, _repeated_k11_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteInt32(Id); + } + if (HasX1) { + output.WriteRawTag(16); + output.WriteBool(X1); + } + if (HasX5) { + output.WriteRawTag(24); + output.WriteInt64(X5); + } + if (HasX6) { + output.WriteRawTag(37); + output.WriteFloat(X6); + } + if (HasX8) { + output.WriteRawTag(40); + output.WriteInt32(X8); + } + if (HasX10) { + output.WriteRawTag(50); + output.WriteString(X10); + } + if (HasX13) { + output.WriteRawTag(56); + output.WriteEnum((int) X13); + } + if (HasX132) { + output.WriteRawTag(64); + output.WriteEnum((int) X132); + } + if (x14_ != null) { + output.WriteRawTag(74); + output.WriteMessage(X14); + } + if (x15_ != null) { + output.WriteRawTag(82); + output.WriteMessage(X15); + } + if (v2_ != null) { + output.WriteRawTag(90); + output.WriteMessage(V2); + } + if (HasT1) { + output.WriteRawTag(96); + output.WriteInt64(T1); + } + k1_.WriteTo(ref output, _repeated_k1_codec); + k2_.WriteTo(ref output, _repeated_k2_codec); + k8_.WriteTo(ref output, _map_k8_codec); + k9_.WriteTo(ref output, _repeated_k9_codec); + k10_.WriteTo(ref output, _repeated_k10_codec); + k11_.WriteTo(ref output, _repeated_k11_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + } + if (HasX1) { + size += 1 + 1; + } + if (HasX5) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(X5); + } + if (HasX6) { + size += 1 + 4; + } + if (HasX8) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X8); + } + if (HasX10) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(X10); + } + if (HasX13) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X13); + } + if (HasX132) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) X132); + } + if (x14_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X14); + } + if (x15_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(X15); + } + if (v2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(V2); + } + if (HasT1) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(T1); + } + size += k1_.CalculateSize(_repeated_k1_codec); + size += k2_.CalculateSize(_repeated_k2_codec); + size += k8_.CalculateSize(_map_k8_codec); + size += k9_.CalculateSize(_repeated_k9_codec); + size += k10_.CalculateSize(_repeated_k10_codec); + size += k11_.CalculateSize(_repeated_k11_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DefineFromExcel2 other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasX1) { + X1 = other.X1; + } + if (other.HasX5) { + X5 = other.X5; + } + if (other.HasX6) { + X6 = other.X6; + } + if (other.HasX8) { + X8 = other.X8; + } + if (other.HasX10) { + X10 = other.X10; + } + if (other.HasX13) { + X13 = other.X13; + } + if (other.HasX132) { + X132 = other.X132; + } + if (other.x14_ != null) { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + X14.MergeFrom(other.X14); + } + if (other.x15_ != null) { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + X15.MergeFrom(other.X15); + } + if (other.v2_ != null) { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + V2.MergeFrom(other.V2); + } + if (other.HasT1) { + T1 = other.T1; + } + k1_.Add(other.k1_); + k2_.Add(other.k2_); + k8_.MergeFrom(other.k8_); + k9_.Add(other.k9_); + k10_.Add(other.k10_); + k11_.Add(other.k11_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 64: { + X132 = (global::Cfg.TestDemoFlag) input.ReadEnum(); + break; + } + case 74: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 82: { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + input.ReadMessage(X15); + break; + } + case 90: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 96: { + T1 = input.ReadInt64(); + break; + } + case 106: + case 104: { + k1_.AddEntriesFrom(input, _repeated_k1_codec); + break; + } + case 114: + case 112: { + k2_.AddEntriesFrom(input, _repeated_k2_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(input, _repeated_k9_codec); + break; + } + case 138: { + k10_.AddEntriesFrom(input, _repeated_k10_codec); + break; + } + case 146: { + k11_.AddEntriesFrom(input, _repeated_k11_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadInt32(); + break; + } + case 16: { + X1 = input.ReadBool(); + break; + } + case 24: { + X5 = input.ReadInt64(); + break; + } + case 37: { + X6 = input.ReadFloat(); + break; + } + case 40: { + X8 = input.ReadInt32(); + break; + } + case 50: { + X10 = input.ReadString(); + break; + } + case 56: { + X13 = (global::Cfg.TestDemoEnum) input.ReadEnum(); + break; + } + case 64: { + X132 = (global::Cfg.TestDemoFlag) input.ReadEnum(); + break; + } + case 74: { + if (x14_ == null) { + X14 = new global::Cfg.TestDemoDynamic(); + } + input.ReadMessage(X14); + break; + } + case 82: { + if (x15_ == null) { + X15 = new global::Cfg.TestShape(); + } + input.ReadMessage(X15); + break; + } + case 90: { + if (v2_ == null) { + V2 = new global::Cfg.vector2(); + } + input.ReadMessage(V2); + break; + } + case 96: { + T1 = input.ReadInt64(); + break; + } + case 106: + case 104: { + k1_.AddEntriesFrom(ref input, _repeated_k1_codec); + break; + } + case 114: + case 112: { + k2_.AddEntriesFrom(ref input, _repeated_k2_codec); + break; + } + case 122: { + k8_.AddEntriesFrom(ref input, _map_k8_codec); + break; + } + case 130: { + k9_.AddEntriesFrom(ref input, _repeated_k9_codec); + break; + } + case 138: { + k10_.AddEntriesFrom(ref input, _repeated_k10_codec); + break; + } + case 146: { + k11_.AddEntriesFrom(ref input, _repeated_k11_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestShape : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestShape()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[103]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape(TestShape other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.Circle: + Circle = other.Circle.Clone(); + break; + case ValueOneofCase.Rectangle: + Rectangle = other.Rectangle.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestShape Clone() { + return new TestShape(this); + } + + /// Field number for the "Circle" field. + public const int CircleFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.TestCircle Circle { + get { return valueCase_ == ValueOneofCase.Circle ? (global::Cfg.TestCircle) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Circle; + } + } + + /// Field number for the "Rectangle" field. + public const int RectangleFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Cfg.Test2Rectangle Rectangle { + get { return valueCase_ == ValueOneofCase.Rectangle ? (global::Cfg.Test2Rectangle) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Rectangle; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + Circle = 1, + Rectangle = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestShape); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestShape other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Circle, other.Circle)) return false; + if (!object.Equals(Rectangle, other.Rectangle)) return false; + if (ValueCase != other.ValueCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (valueCase_ == ValueOneofCase.Circle) hash ^= Circle.GetHashCode(); + if (valueCase_ == ValueOneofCase.Rectangle) hash ^= Rectangle.GetHashCode(); + hash ^= (int) valueCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (valueCase_ == ValueOneofCase.Circle) { + output.WriteRawTag(10); + output.WriteMessage(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + output.WriteRawTag(18); + output.WriteMessage(Rectangle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (valueCase_ == ValueOneofCase.Circle) { + output.WriteRawTag(10); + output.WriteMessage(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + output.WriteRawTag(18); + output.WriteMessage(Rectangle); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (valueCase_ == ValueOneofCase.Circle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Circle); + } + if (valueCase_ == ValueOneofCase.Rectangle) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rectangle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestShape other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.Circle: + if (Circle == null) { + Circle = new global::Cfg.TestCircle(); + } + Circle.MergeFrom(other.Circle); + break; + case ValueOneofCase.Rectangle: + if (Rectangle == null) { + Rectangle = new global::Cfg.Test2Rectangle(); + } + Rectangle.MergeFrom(other.Rectangle); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Cfg.TestCircle subBuilder = new global::Cfg.TestCircle(); + if (valueCase_ == ValueOneofCase.Circle) { + subBuilder.MergeFrom(Circle); + } + input.ReadMessage(subBuilder); + Circle = subBuilder; + break; + } + case 18: { + global::Cfg.Test2Rectangle subBuilder = new global::Cfg.Test2Rectangle(); + if (valueCase_ == ValueOneofCase.Rectangle) { + subBuilder.MergeFrom(Rectangle); + } + input.ReadMessage(subBuilder); + Rectangle = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Cfg.TestCircle subBuilder = new global::Cfg.TestCircle(); + if (valueCase_ == ValueOneofCase.Circle) { + subBuilder.MergeFrom(Circle); + } + input.ReadMessage(subBuilder); + Circle = subBuilder; + break; + } + case 18: { + global::Cfg.Test2Rectangle subBuilder = new global::Cfg.Test2Rectangle(); + if (valueCase_ == ValueOneofCase.Rectangle) { + subBuilder.MergeFrom(Rectangle); + } + input.ReadMessage(subBuilder); + Rectangle = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class TestCircle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCircle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[104]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle(TestCircle other) : this() { + _hasBits0 = other._hasBits0; + radius_ = other.radius_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestCircle Clone() { + return new TestCircle(this); + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 1; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 1) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 1; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestCircle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestCircle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasRadius) { + output.WriteRawTag(13); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasRadius) { + output.WriteRawTag(13); + output.WriteFloat(Radius); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasRadius) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestCircle other) { + if (other == null) { + return; + } + if (other.HasRadius) { + Radius = other.Radius; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Radius = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Radius = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Test2Rectangle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Test2Rectangle()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[105]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle(Test2Rectangle other) : this() { + _hasBits0 = other._hasBits0; + width_ = other.width_; + height_ = other.height_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Test2Rectangle Clone() { + return new Test2Rectangle(this); + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private readonly static float WidthDefaultValue = 0F; + + private float width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Width { + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 1; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private readonly static float HeightDefaultValue = 0F; + + private float height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Height { + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 2; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Test2Rectangle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Test2Rectangle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Width, other.Width)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Height, other.Height)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Width); + if (HasHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasWidth) { + output.WriteRawTag(13); + output.WriteFloat(Width); + } + if (HasHeight) { + output.WriteRawTag(21); + output.WriteFloat(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasWidth) { + output.WriteRawTag(13); + output.WriteFloat(Width); + } + if (HasHeight) { + output.WriteRawTag(21); + output.WriteFloat(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasWidth) { + size += 1 + 4; + } + if (HasHeight) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Test2Rectangle other) { + if (other == null) { + return; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Width = input.ReadFloat(); + break; + } + case 21: { + Height = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Width = input.ReadFloat(); + break; + } + case 21: { + Height = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBlackboard : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBlackboard()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[106]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard(AiTbBlackboard other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBlackboard Clone() { + return new AiTbBlackboard(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBlackboard.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBlackboard); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBlackboard other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBlackboard other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AiTbBehaviorTree : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AiTbBehaviorTree()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[107]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree(AiTbBehaviorTree other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AiTbBehaviorTree Clone() { + return new AiTbBehaviorTree(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.AiBehaviorTree.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AiTbBehaviorTree); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AiTbBehaviorTree other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AiTbBehaviorTree other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class CommonTbGlobalConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommonTbGlobalConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[108]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig(CommonTbGlobalConfig other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CommonTbGlobalConfig Clone() { + return new CommonTbGlobalConfig(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.CommonGlobalConfig.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CommonTbGlobalConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CommonTbGlobalConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CommonTbGlobalConfig other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ItemTbItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTbItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[109]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem(ItemTbItem other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ItemTbItem Clone() { + return new ItemTbItem(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.ItemItem.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ItemTbItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ItemTbItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ItemTbItem other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbL10NDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbL10NDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[110]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo(L10nTbL10NDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbL10NDemo Clone() { + return new L10nTbL10NDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nL10NDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbL10NDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbL10NDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbL10NDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class L10nTbPatchDemo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new L10nTbPatchDemo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[111]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo(L10nTbPatchDemo other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public L10nTbPatchDemo Clone() { + return new L10nTbPatchDemo(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.L10nPatchDemo.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as L10nTbPatchDemo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(L10nTbPatchDemo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(L10nTbPatchDemo other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TagTbTestTag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagTbTestTag()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[112]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag(TagTbTestTag other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TagTbTestTag Clone() { + return new TagTbTestTag(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TagTestTag.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TagTbTestTag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TagTbTestTag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TagTbTestTag other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbFullTypes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbFullTypes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[113]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes(TestTbFullTypes other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbFullTypes Clone() { + return new TestTbFullTypes(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbFullTypes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbFullTypes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbFullTypes other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbSingleton : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbSingleton()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[114]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton(TestTbSingleton other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbSingleton Clone() { + return new TestTbSingleton(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoSingletonType.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbSingleton); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbSingleton other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbSingleton other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbNotIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbNotIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[115]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList(TestTbNotIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbNotIndexList Clone() { + return new TestTbNotIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestNotIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbNotIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbNotIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbNotIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiUnionIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiUnionIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[116]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList(TestTbMultiUnionIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiUnionIndexList Clone() { + return new TestTbMultiUnionIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiUnionIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiUnionIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiUnionIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiUnionIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiIndexList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiIndexList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[117]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList(TestTbMultiIndexList other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiIndexList Clone() { + return new TestTbMultiIndexList(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiIndexList.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiIndexList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiIndexList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiIndexList other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDataFromMisc : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDataFromMisc()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[118]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc(TestTbDataFromMisc other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDataFromMisc Clone() { + return new TestTbDataFromMisc(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoType2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDataFromMisc); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDataFromMisc other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDataFromMisc other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowRecord : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowRecord()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[119]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord(TestTbMultiRowRecord other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowRecord Clone() { + return new TestTbMultiRowRecord(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowRecord.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowRecord); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowRecord other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowRecord other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMultiColumn : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMultiColumn()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[120]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn(TestTbTestMultiColumn other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMultiColumn Clone() { + return new TestTbTestMultiColumn(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMultiColumn.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMultiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMultiColumn other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMultiColumn other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbMultiRowTitle : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbMultiRowTitle()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[121]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle(TestTbMultiRowTitle other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbMultiRowTitle Clone() { + return new TestTbMultiRowTitle(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestMultiRowTitle.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbMultiRowTitle); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbMultiRowTitle other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbMultiRowTitle other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestNull : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestNull()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[122]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull(TestTbTestNull other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestNull Clone() { + return new TestTbTestNull(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestNull.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestNull); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestNull other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestNull other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoPrimitive : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoPrimitive()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[123]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive(TestTbDemoPrimitive other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoPrimitive Clone() { + return new TestTbDemoPrimitive(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoPrimitiveTypesTable.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoPrimitive); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoPrimitive other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoPrimitive other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestString : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestString()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[124]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString(TestTbTestString other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestString Clone() { + return new TestTbTestString(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestString.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestString); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestString other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestString other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[125]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup(TestTbDemoGroup other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup Clone() { + return new TestTbDemoGroup(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_C : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_C()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[126]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C(TestTbDemoGroup_C other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_C Clone() { + return new TestTbDemoGroup_C(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_C); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_C other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_C other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_S : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_S()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[127]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S(TestTbDemoGroup_S other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_S Clone() { + return new TestTbDemoGroup_S(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_S); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_S other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_S other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDemoGroup_E : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDemoGroup_E()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[128]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E(TestTbDemoGroup_E other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDemoGroup_E Clone() { + return new TestTbDemoGroup_E(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDemoGroup.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDemoGroup_E); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDemoGroup_E other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDemoGroup_E other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestGlobal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestGlobal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[129]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal(TestTbTestGlobal other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestGlobal Clone() { + return new TestTbTestGlobal(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestGlobal.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestGlobal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestGlobal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestGlobal other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[130]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef(TestTbTestBeRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef Clone() { + return new TestTbTestBeRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestBeRef2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestBeRef2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[131]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2(TestTbTestBeRef2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestBeRef2 Clone() { + return new TestTbTestBeRef2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestBeRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestBeRef2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestBeRef2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestBeRef2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[132]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef(TestTbTestRef other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestRef Clone() { + return new TestTbTestRef(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestRef.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestRef other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSize : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSize()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[133]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize(TestTbTestSize other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSize Clone() { + return new TestTbTestSize(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSize.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSize); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSize other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSize other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[134]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet(TestTbTestSet other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestSet Clone() { + return new TestTbTestSet(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestSet.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestSet other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDetectCsvEncoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDetectCsvEncoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[135]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding(TestTbDetectCsvEncoding other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDetectCsvEncoding Clone() { + return new TestTbDetectCsvEncoding(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestDetectEncoding.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDetectCsvEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDetectCsvEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDetectCsvEncoding other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbItem2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbItem2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[136]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2(TestTbItem2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbItem2 Clone() { + return new TestTbItem2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestItemBase.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbItem2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbItem2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbItem2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestIndex : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestIndex()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[137]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex(TestTbTestIndex other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestIndex Clone() { + return new TestTbTestIndex(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestIndex.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestIndex); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestIndex other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestIndex other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[138]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap(TestTbTestMap other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMap Clone() { + return new TestTbTestMap(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMap.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMap other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJson : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJson()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[139]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson(TestTbExcelFromJson other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJson Clone() { + return new TestTbExcelFromJson(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJson.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJson); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJson other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJson other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable1 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable1()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[140]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1(TestTbCompositeJsonTable1 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable1 Clone() { + return new TestTbCompositeJsonTable1(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable1.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable1); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable1 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable1 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[141]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2(TestTbCompositeJsonTable2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable2 Clone() { + return new TestTbCompositeJsonTable2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbCompositeJsonTable3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbCompositeJsonTable3()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[142]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3(TestTbCompositeJsonTable3 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbCompositeJsonTable3 Clone() { + return new TestTbCompositeJsonTable3(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestCompositeJsonTable3.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbCompositeJsonTable3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbCompositeJsonTable3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbCompositeJsonTable3 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbExcelFromJsonMultiRow : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbExcelFromJsonMultiRow()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[143]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow(TestTbExcelFromJsonMultiRow other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbExcelFromJsonMultiRow Clone() { + return new TestTbExcelFromJsonMultiRow(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestExcelFromJsonMultiRow.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbExcelFromJsonMultiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbExcelFromJsonMultiRow other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbExcelFromJsonMultiRow other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestScriptableObject : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestScriptableObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[144]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject(TestTbTestScriptableObject other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestScriptableObject Clone() { + return new TestTbTestScriptableObject(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestScriptableObject.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestScriptableObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestScriptableObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestScriptableObject other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbTestMapper : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbTestMapper()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[145]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper(TestTbTestMapper other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbTestMapper Clone() { + return new TestTbTestMapper(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.TestTestMapper.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbTestMapper); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbTestMapper other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbTestMapper other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TestTbDefineFromExcel2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestTbDefineFromExcel2()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Cfg.SchemaReflection.Descriptor.MessageTypes[146]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2(TestTbDefineFromExcel2 other) : this() { + dataList_ = other.dataList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestTbDefineFromExcel2 Clone() { + return new TestTbDefineFromExcel2(this); + } + + /// Field number for the "data_list" field. + public const int DataListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dataList_codec + = pb::FieldCodec.ForMessage(10, global::Cfg.DefineFromExcel2.Parser); + private readonly pbc::RepeatedField dataList_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DataList { + get { return dataList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestTbDefineFromExcel2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestTbDefineFromExcel2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dataList_.Equals(other.dataList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dataList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dataList_.WriteTo(output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dataList_.WriteTo(ref output, _repeated_dataList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dataList_.CalculateSize(_repeated_dataList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestTbDefineFromExcel2 other) { + if (other == null) { + return; + } + dataList_.Add(other.dataList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dataList_.AddEntriesFrom(input, _repeated_dataList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dataList_.AddEntriesFrom(ref input, _repeated_dataList_codec); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/luban_examples/Projects/Protobuf3_json/Program.cs b/luban_examples/Projects/Protobuf3_json/Program.cs new file mode 100644 index 00000000..cdce2ef1 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/Program.cs @@ -0,0 +1,76 @@ + +using Google.Protobuf; + +class Program +{ + + + public static void Main(string[] args) + { + // See https://aka.ms/new-console-template for more information + Console.WriteLine("Hello, World!"); + + + + TestFullTypes(); + + TestNullable(); + } + + private static void TestNullable() + { + var file = "../../../pb_datas/test_tbtestnull.bytes"; + + var bytes = File.ReadAllBytes(file); + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + var tbTestNull = Cfg.TestTbTestNull.Parser.ParseFrom(File.OpenRead(file)); + + Console.WriteLine(tbTestNull); + } + + private static void TestFullTypes() + { + //var bytes = File.ReadAllBytes("../../../pb_datas/item_tbitem.pb"); + + //Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + //var tbItem = Cfg.ItemTbItem.Parser.ParseFrom(File.OpenRead("../../../pb_datas/item_tbitem.pb")); + + //Console.WriteLine(tbItem); + + var file = "../../../pb_datas/test_tbfulltypes.bytes"; + + var bytes = File.ReadAllBytes(file); + + //var ft = new Cfg.TestDemoType2(); + //ft.X4 = 1; + //ft.X14 = new Cfg.TestDemoDynamic(); + //ft.X14.DemoD2 = new Cfg.TestDemoD2() + //{ + // X1 = 1, + // X2 = 2 + //}; + + + //var mm = new MemoryStream(); + //var cos = new CodedOutputStream(mm); + + //ft.WriteTo(cos); + //cos.Flush(); + + //mm.Seek(0, SeekOrigin.Begin); + + //var b2 = new byte[mm.Length]; + //mm.Read(b2, 0, (int)mm.Length); + + //Console.WriteLine(string.Join(',', b2.Select(b => b.ToString()))); + + Console.WriteLine(string.Join(',', bytes.Select(b => b.ToString()))); + var tbFullTypes = Cfg.TestTbFullTypes.Parser.ParseFrom(File.OpenRead(file)); + + Console.WriteLine(tbFullTypes); + } +} + + + + diff --git a/luban_examples/Projects/Protobuf3_json/ProtobufProj.csproj b/luban_examples/Projects/Protobuf3_json/ProtobufProj.csproj new file mode 100644 index 00000000..4573a52e --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/ProtobufProj.csproj @@ -0,0 +1,26 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Protobuf3_json/ProtobufProj.sln b/luban_examples/Projects/Protobuf3_json/ProtobufProj.sln new file mode 100644 index 00000000..84987b91 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/ProtobufProj.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31912.275 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProtobufProj", "ProtobufProj.csproj", "{8CF30F39-435B-4BEF-B13F-74604B3AEDAA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CF30F39-435B-4BEF-B13F-74604B3AEDAA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CED486A9-FCBD-414B-B917-4EF26E03EC5B} + EndGlobalSection +EndGlobal diff --git a/luban_examples/Projects/Protobuf3_json/bytes/ai_tbbehaviortree.bytes b/luban_examples/Projects/Protobuf3_json/bytes/ai_tbbehaviortree.bytes new file mode 100644 index 00000000..bef52bac Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/ai_tbbehaviortree.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/ai_tbblackboard.bytes b/luban_examples/Projects/Protobuf3_json/bytes/ai_tbblackboard.bytes new file mode 100644 index 00000000..8d0d220f Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/ai_tbblackboard.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/common_tbglobalconfig.bytes b/luban_examples/Projects/Protobuf3_json/bytes/common_tbglobalconfig.bytes new file mode 100644 index 00000000..d9a8dcd6 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/common_tbglobalconfig.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/item_tbitem.bytes b/luban_examples/Projects/Protobuf3_json/bytes/item_tbitem.bytes new file mode 100644 index 00000000..46c9e0d3 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/item_tbitem.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/l10n_tbl10ndemo.bytes b/luban_examples/Projects/Protobuf3_json/bytes/l10n_tbl10ndemo.bytes new file mode 100644 index 00000000..86753292 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/l10n_tbl10ndemo.bytes @@ -0,0 +1,17 @@ + + + /apple + + /apple + + /apple + +/apple + +/apple + +/apple + +/apple + +/apple \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/l10n_tbpatchdemo.bytes b/luban_examples/Projects/Protobuf3_json/bytes/l10n_tbpatchdemo.bytes new file mode 100644 index 00000000..e0b6d08d --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/l10n_tbpatchdemo.bytes @@ -0,0 +1,9 @@ + +  +  +  + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/tag_tbtesttag.bytes b/luban_examples/Projects/Protobuf3_json/bytes/tag_tbtesttag.bytes new file mode 100644 index 00000000..02bdc449 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/tag_tbtesttag.bytes @@ -0,0 +1,29 @@ + + 导出 +any + test + +d导出 + +导出 + +导出 + +导出 + +导出 + + 测试 + + +测试 + any + + 导出 + + 导出 +hany +ftest + export +any + test \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable1.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable1.bytes new file mode 100644 index 00000000..2f999cff --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable1.bytes @@ -0,0 +1,5 @@ + +aaa1 +xx2 +  aaa11 + xx12 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable2.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable2.bytes new file mode 100644 index 00000000..6f292300 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable2.bytes @@ -0,0 +1,3 @@ + +d + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable3.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable3.bytes new file mode 100644 index 00000000..804d07a9 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbcompositejsontable3.bytes @@ -0,0 +1,2 @@ + +o \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdatafrommisc.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdatafrommisc.bytes new file mode 100644 index 00000000..c132b925 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdatafrommisc.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdefinefromexcel2.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdefinefromexcel2.bytes new file mode 100644 index 00000000..2ed61719 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdefinefromexcel2.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_c.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_c.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_c.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_e.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_e.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_e.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_s.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_s.bytes new file mode 100644 index 00000000..5124e6fb --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemogroup_s.bytes @@ -0,0 +1,9 @@ + + (2 + ( + (2 + ( + (2 + ( + (2 + ( \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemoprimitive.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemoprimitive.bytes new file mode 100644 index 00000000..e610a780 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdemoprimitive.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbdetectcsvencoding.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdetectcsvencoding.bytes new file mode 100644 index 00000000..d05a79d4 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbdetectcsvencoding.bytes @@ -0,0 +1,13 @@ + + 测试编码 +还果园国要 +工枯加盟仍 +  测试编码 + 还果园国要 + 工枯加盟仍 + 测试编码 + 还果园国要 +!工枯加盟仍 + 测试编码 +还果园国要 +工枯加盟仍 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbexcelfromjson.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbexcelfromjson.bytes new file mode 100644 index 00000000..591f5d2d Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbexcelfromjson.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbexcelfromjsonmultirow.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbexcelfromjsonmultirow.bytes new file mode 100644 index 00000000..a9d1f030 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbexcelfromjsonmultirow.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbfulltypes.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbfulltypes.bytes new file mode 100644 index 00000000..5aeccdb0 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbfulltypes.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbitem2.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbitem2.bytes new file mode 100644 index 00000000..aff5d4a2 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbitem2.bytes @@ -0,0 +1,13 @@ + +ݸ 道具1道具1 d( +ݸ 道具2道具1 ( + 装备1装备1 (d +" 装备2 +装备2好 ( + 耳环耳环 d + 耳环耳环 d +!ݸ 道具10道具10 d( + +" 装备20 装备好 ( + + 帽子帽子 d \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultiindexlist.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultiindexlist.bytes new file mode 100644 index 00000000..c782a27a --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultiindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab3 *desc3 +ab4 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultirowrecord.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultirowrecord.bytes new file mode 100644 index 00000000..101bcaa7 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultirowrecord.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultirowtitle.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultirowtitle.bytes new file mode 100644 index 00000000..03763341 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultirowtitle.bytes @@ -0,0 +1,5 @@ + +;xxx +**22:  :: ! +C yyy +  "*  * 2  2 :pq:z{: \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultiunionindexlist.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultiunionindexlist.bytes new file mode 100644 index 00000000..1adf52ec --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbmultiunionindexlist.bytes @@ -0,0 +1,14 @@ + +ab1 *desc1 +ab2 *desc2 +ab1 *desc3 +ab1 *desc4 + ab5 *desc5 + ab6 *desc6 + ab7 *desc7 +ab8 *desc8 + ab9 *desc9 + +ab10 +*desc10 + ab11 *desc11 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbnotindexlist.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbnotindexlist.bytes new file mode 100644 index 00000000..bc5b3e49 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbnotindexlist.bytes @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbsingleton.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbsingleton.bytes new file mode 100644 index 00000000..ca1f4c25 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbsingleton.bytes @@ -0,0 +1,2 @@ + +#key_name" ھ \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestberef.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestberef.bytes new file mode 100644 index 00000000..dbf12607 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestberef.bytes @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + +  + + + diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestberef2.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestberef2.bytes new file mode 100644 index 00000000..57b70d64 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestberef2.bytes @@ -0,0 +1,20 @@ + +  + +  + +  + + + + + + + + + + + + + + diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestglobal.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestglobal.bytes new file mode 100644 index 00000000..fc7f5643 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestglobal.bytes @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestindex.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestindex.bytes new file mode 100644 index 00000000..0d4bd1d6 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestindex.bytes @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmap.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmap.bytes new file mode 100644 index 00000000..6127220b --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmap.bytes @@ -0,0 +1,4 @@ + +8" +aaa" +bbb** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmapper.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmapper.bytes new file mode 100644 index 00000000..dd2f03cf Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmapper.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmulticolumn.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmulticolumn.bytes new file mode 100644 index 00000000..00b03f37 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestmulticolumn.bytes @@ -0,0 +1,3 @@ + +" ! +" ! \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestnull.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestnull.bytes new file mode 100644 index 00000000..6fd0826b Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestnull.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestref.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestref.bytes new file mode 100644 index 00000000..403c6a53 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestref.bytes @@ -0,0 +1,7 @@ + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZbjjrrx ab5 ab5 + +d (0:BJRZ b jjrrx ab5 ab5 + \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestscriptableobject.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestscriptableobject.bytes new file mode 100644 index 00000000..cd397970 Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestscriptableobject.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestset.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestset.bytes new file mode 100644 index 00000000..fdb89222 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestset.bytes @@ -0,0 +1,3 @@ + +ab"*ab*cd00 +cd"*ab*cd0 \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestsize.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestsize.bytes new file mode 100644 index 00000000..cbeca07e --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/bytes/test_tbtestsize.bytes @@ -0,0 +1,2 @@ + +"** \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/bytes/test_tbteststring.bytes b/luban_examples/Projects/Protobuf3_json/bytes/test_tbteststring.bytes new file mode 100644 index 00000000..392ce38e Binary files /dev/null and b/luban_examples/Projects/Protobuf3_json/bytes/test_tbteststring.bytes differ diff --git a/luban_examples/Projects/Protobuf3_json/gen_pb_code.bat b/luban_examples/Projects/Protobuf3_json/gen_pb_code.bat new file mode 100644 index 00000000..81a5baec --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/gen_pb_code.bat @@ -0,0 +1,5 @@ + + +protoc\bin\protoc -I=pb_schemas --csharp_out=Gen pb_schemas\schema.proto + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/gen_pb_schema_data.bat b/luban_examples/Projects/Protobuf3_json/gen_pb_schema_data.bat new file mode 100644 index 00000000..1d29ba63 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/gen_pb_schema_data.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c protobuf3 ^ + -d protobuf-json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=pb_schemas ^ + -x outputDataDir=pb_datas ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/ai_tbbehaviortree.json b/luban_examples/Projects/Protobuf3_json/pb_datas/ai_tbbehaviortree.json new file mode 100644 index 00000000..baeee017 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/ai_tbbehaviortree.json @@ -0,0 +1,49 @@ +{ + "data_list": [ + { + "id": 10002, + "name": "random move", + "desc": "demo behaviour tree haha", + "blackboard_id": "demo", + "root": { + "@type": "AiSequence", + "id": 1, + "node_name": "test", + "decorators": [ + { + "@type": "AiUeLoop", + "id": 3, + "node_name": "", + "flow_abort_mode": 2, + "num_loops": 0, + "infinite_loop": true, + "infinite_loop_timeout_time": -1 + } + ], + "services": [], + "children": [ + { + "@type": "AiUeWait", + "id": 30, + "node_name": "", + "decorators": [], + "services": [], + "ignore_restart_self": false, + "wait_time": 1, + "random_deviation": 0.5 + }, + { + "@type": "AiMoveToRandomLocation", + "id": 75, + "node_name": "", + "decorators": [], + "services": [], + "ignore_restart_self": false, + "origin_position_key": "x5", + "radius": 30 + } + ] + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/ai_tbblackboard.json b/luban_examples/Projects/Protobuf3_json/pb_datas/ai_tbblackboard.json new file mode 100644 index 00000000..33c17a9c --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/ai_tbblackboard.json @@ -0,0 +1,130 @@ +{ + "data_list": [ + { + "name": "attack_or_patrol", + "desc": "demo hahaha", + "parent_name": "", + "keys": [ + { + "name": "OriginPosition", + "desc": "", + "is_static": false, + "type": 5, + "type_class_name": "" + }, + { + "name": "TargetActor", + "desc": "x2 haha", + "is_static": false, + "type": 10, + "type_class_name": "" + }, + { + "name": "AcceptableRadius", + "desc": "x3 haha", + "is_static": false, + "type": 3, + "type_class_name": "" + }, + { + "name": "CurChooseSkillId", + "desc": "x4 haha", + "is_static": false, + "type": 2, + "type_class_name": "" + } + ] + }, + { + "name": "demo", + "desc": "demo hahaha", + "parent_name": "demo_parent", + "keys": [ + { + "name": "x1", + "desc": "x1 haha", + "is_static": false, + "type": 1, + "type_class_name": "" + }, + { + "name": "x2", + "desc": "x2 haha", + "is_static": false, + "type": 2, + "type_class_name": "" + }, + { + "name": "x3", + "desc": "x3 haha", + "is_static": false, + "type": 3, + "type_class_name": "" + }, + { + "name": "x4", + "desc": "x4 haha", + "is_static": false, + "type": 4, + "type_class_name": "" + }, + { + "name": "x5", + "desc": "x5 haha", + "is_static": false, + "type": 5, + "type_class_name": "" + }, + { + "name": "x6", + "desc": "x6 haha", + "is_static": false, + "type": 6, + "type_class_name": "" + }, + { + "name": "x7", + "desc": "x7 haha", + "is_static": false, + "type": 7, + "type_class_name": "" + }, + { + "name": "x8", + "desc": "x8 haha", + "is_static": false, + "type": 8, + "type_class_name": "" + }, + { + "name": "x9", + "desc": "x9 haha", + "is_static": false, + "type": 9, + "type_class_name": "ABC" + }, + { + "name": "x10", + "desc": "x10 haha", + "is_static": false, + "type": 10, + "type_class_name": "OBJECT" + } + ] + }, + { + "name": "demo_parent", + "desc": "demo parent", + "parent_name": "", + "keys": [ + { + "name": "v1", + "desc": "v1 haha", + "is_static": false, + "type": 1, + "type_class_name": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/common_tbglobalconfig.json b/luban_examples/Projects/Protobuf3_json/pb_datas/common_tbglobalconfig.json new file mode 100644 index 00000000..172b1532 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/common_tbglobalconfig.json @@ -0,0 +1,18 @@ +{ + "data_list": [ + { + "x1": 1101001101, + "x2": 150, + "x3": 500, + "x4": 50, + "x5": 10, + "x6": 4, + "x7": [ + 1, + 2, + 3, + 4 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/item_tbitem.json b/luban_examples/Projects/Protobuf3_json/pb_datas/item_tbitem.json new file mode 100644 index 00000000..c51fed8b --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/item_tbitem.json @@ -0,0 +1,164 @@ +{ + "data_list": [ + { + "id": 1, + "name": "钻石", + "minor_type": 101, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "rmb兑换的主要货币", + "show_order": 1 + }, + { + "id": 2, + "name": "金币", + "minor_type": 102, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "主要的高级流通代币", + "show_order": 2 + }, + { + "id": 3, + "name": "银币", + "minor_type": 103, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "主要的流通代币", + "show_order": 3 + }, + { + "id": 4, + "name": "经验", + "minor_type": 104, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "人物升级需要的经验", + "show_order": 4 + }, + { + "id": 5, + "name": "能量点", + "minor_type": 105, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "人物变身需要的能量点", + "show_order": 5 + }, + { + "id": 1020100001, + "name": "初始发型", + "minor_type": 210, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始发型", + "show_order": 6 + }, + { + "id": 1020200001, + "name": "初始外套", + "minor_type": 220, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始外套", + "show_order": 7 + }, + { + "id": 1020300001, + "name": "初始上衣", + "minor_type": 230, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始上衣", + "show_order": 8 + }, + { + "id": 1020400001, + "name": "初始裤子", + "minor_type": 242, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始下装", + "show_order": 9 + }, + { + "id": 1020500001, + "name": "初始袜子", + "minor_type": 250, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始袜子", + "show_order": 10 + }, + { + "id": 1020600001, + "name": "初始鞋子", + "minor_type": 260, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始鞋子", + "show_order": 11 + }, + { + "id": 1020700001, + "name": "初始发饰", + "minor_type": 271, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始发饰", + "show_order": 12 + }, + { + "id": 1022490000, + "name": "测试数据-包子", + "minor_type": 403, + "quality": 2, + "icon_backgroud": "", + "icon_mask": "", + "desc": "包子", + "show_order": 29 + }, + { + "id": 1022490001, + "name": "测试数据-铲子", + "minor_type": 424, + "quality": 3, + "icon_backgroud": "", + "icon_mask": "", + "desc": "一把铲子", + "show_order": 30 + }, + { + "id": 1021490001, + "name": "测试数据-不要动", + "minor_type": 278, + "quality": 0, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始手持物", + "show_order": 19 + }, + { + "id": 1022490002, + "name": "测试数据-不要动", + "minor_type": 290, + "quality": 2, + "icon_backgroud": "", + "icon_mask": "", + "desc": "初始套装", + "show_order": 26 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/l10n_tbl10ndemo.json b/luban_examples/Projects/Protobuf3_json/pb_datas/l10n_tbl10ndemo.json new file mode 100644 index 00000000..4fda391e --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/l10n_tbl10ndemo.json @@ -0,0 +1,36 @@ +{ + "data_list": [ + { + "id": 11, + "text": "/apple" + }, + { + "id": 12, + "text": "/apple" + }, + { + "id": 13, + "text": "/apple" + }, + { + "id": 14, + "text": "/apple" + }, + { + "id": 15, + "text": "/apple" + }, + { + "id": 16, + "text": "/apple" + }, + { + "id": 17, + "text": "/apple" + }, + { + "id": 18, + "text": "/apple" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/l10n_tbpatchdemo.json b/luban_examples/Projects/Protobuf3_json/pb_datas/l10n_tbpatchdemo.json new file mode 100644 index 00000000..211d1031 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/l10n_tbpatchdemo.json @@ -0,0 +1,36 @@ +{ + "data_list": [ + { + "id": 11, + "value": 1 + }, + { + "id": 12, + "value": 2 + }, + { + "id": 13, + "value": 3 + }, + { + "id": 14, + "value": 4 + }, + { + "id": 15, + "value": 5 + }, + { + "id": 16, + "value": 6 + }, + { + "id": 17, + "value": 7 + }, + { + "id": 18, + "value": 8 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/tag_tbtesttag.json b/luban_examples/Projects/Protobuf3_json/pb_datas/tag_tbtesttag.json new file mode 100644 index 00000000..20956995 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/tag_tbtesttag.json @@ -0,0 +1,76 @@ +{ + "data_list": [ + { + "id": 2001, + "value": "导出" + }, + { + "id": 2004, + "value": "any" + }, + { + "id": 2003, + "value": "test" + }, + { + "id": 100, + "value": "导出" + }, + { + "id": 1, + "value": "导出" + }, + { + "id": 2, + "value": "导出" + }, + { + "id": 6, + "value": "导出" + }, + { + "id": 7, + "value": "导出" + }, + { + "id": 9, + "value": "测试" + }, + { + "id": 10, + "value": "测试" + }, + { + "id": 11, + "value": "any" + }, + { + "id": 12, + "value": "导出" + }, + { + "id": 13, + "value": "导出" + }, + { + "id": 104, + "value": "any" + }, + { + "id": 102, + "value": "test" + }, + { + "id": 3001, + "value": "export" + }, + { + "id": 3004, + "value": "any" + }, + { + "id": 3003, + "value": "test" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable1.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable1.json new file mode 100644 index 00000000..a95f35c6 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable1.json @@ -0,0 +1,20 @@ +{ + "data_list": [ + { + "id": 1, + "x": "aaa1" + }, + { + "id": 2, + "x": "xx2" + }, + { + "id": 11, + "x": "aaa11" + }, + { + "id": 12, + "x": "xx12" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable2.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable2.json new file mode 100644 index 00000000..2da35ca2 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable2.json @@ -0,0 +1,12 @@ +{ + "data_list": [ + { + "id": 1, + "y": 100 + }, + { + "id": 3, + "y": 300 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable3.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable3.json new file mode 100644 index 00000000..4294f41b --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbcompositejsontable3.json @@ -0,0 +1,8 @@ +{ + "data_list": [ + { + "a": 111, + "b": 222 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdatafrommisc.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdatafrommisc.json new file mode 100644 index 00000000..eca99010 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdatafrommisc.json @@ -0,0 +1,382 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/def", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 11, + "x1": true, + "x2": 4, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1112232.43123, + "x8_0": 123, + "x8": 112233, + "x9": 112334, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 1, + 2 + ], + "k5": [ + 1, + 2 + ], + "k8": [ + [ + "2", + 10 + ], + [ + "3", + 30 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 2, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 12, + "x1": true, + "x2": 4, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1112232.43123, + "x8_0": 123, + "x8": 112233, + "x9": 112334, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 1, + 2 + ], + "k5": [ + 1, + 2 + ], + "k8": [ + [ + "2", + 10 + ], + [ + "3", + 30 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 40, + "x1": true, + "x2": 3, + "x3": 128, + "x5": 11223344, + "x6": 1.2, + "x7": 1.23432, + "x8_0": 12312, + "x8": 112233, + "x9": 223344, + "x10": "hq", + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 6 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + } + ] + }, + { + "x4": 22, + "x1": false, + "x2": 2, + "x3": 128, + "x5": 112233445566, + "x6": 1.3, + "x7": 1122, + "x8_0": 13, + "x8": 12, + "x9": 123, + "x10": "yf", + "x12": { + "x1": 1 + }, + "x13": 5, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 3 + }, + "s1": "/apple", + "t1": -28800, + "k1": [ + 1, + 2 + ], + "k2": [ + 2, + 3 + ], + "k5": [ + 1, + 3 + ], + "k8": [ + [ + "2", + 10 + ], + [ + "3", + 12 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 10, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 3 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdefinefromexcel2.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdefinefromexcel2.json new file mode 100644 index 00000000..9eb95a3b --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdefinefromexcel2.json @@ -0,0 +1,820 @@ +{ + "data_list": [ + { + "id": 10000, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 3, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "TestCircle", + "radius": 1 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 3 + }, + { + "x": 2, + "y": 3, + "z": 4 + }, + { + "x": 1, + "y": 2, + "z": 4 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 4 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 5 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + } + ] + }, + { + "id": 10001, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 5, + "x10": "huang", + "x13": 1, + "x13_2": 3, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 20 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 4 + }, + { + "x": 2, + "y": 3, + "z": 5 + }, + { + "x": 1, + "y": 2, + "z": 5 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 5 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + } + ] + }, + { + "id": 10002, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 6, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 21 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 5 + }, + { + "x": 2, + "y": 3, + "z": 6 + }, + { + "x": 1, + "y": 2, + "z": 6 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 6 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + } + ] + }, + { + "id": 10003, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 3, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 22 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 933732549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 6 + }, + { + "x": 2, + "y": 3, + "z": 7 + }, + { + "x": 1, + "y": 2, + "z": 7 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 7 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + } + ] + }, + { + "id": 10004, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 4, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 23 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 7 + }, + { + "x": 2, + "y": 3, + "z": 8 + }, + { + "x": 1, + "y": 2, + "z": 8 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 8 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + } + ] + }, + { + "id": 10005, + "x1": true, + "x5": 13234234234, + "x6": 1.28, + "x8": 5, + "x10": "huang", + "x13": 1, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 24 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 8 + }, + { + "x": 2, + "y": 3, + "z": 9 + }, + { + "x": 1, + "y": 2, + "z": 9 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 9 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + } + ] + }, + { + "id": 10006, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 6, + "x10": "", + "x13": 2, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 25 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 9 + }, + { + "x": 2, + "y": 3, + "z": 10 + }, + { + "x": 1, + "y": 2, + "z": 10 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 10 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + } + ] + }, + { + "id": 10007, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 4, + "x10": "xxx", + "x13": 2, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 26 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 10 + }, + { + "x": 2, + "y": 3, + "z": 11 + }, + { + "x": 1, + "y": 2, + "z": 11 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 11 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 13 + } + ] + }, + { + "id": 10008, + "x1": true, + "x5": 10, + "x6": 1.28, + "x8": 3, + "x10": "xxx", + "x13": 2, + "x13_2": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "x15": { + "@type": "Test2Rectangle", + "width": 10, + "height": 27 + }, + "v2": { + "x": 1, + "y": 2 + }, + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k10": [ + { + "x": 1, + "y": 2, + "z": 11 + }, + { + "x": 2, + "y": 3, + "z": 12 + }, + { + "x": 1, + "y": 2, + "z": 12 + } + ], + "k11": [ + { + "x": 1, + "y": 2, + "z": 3, + "w": 12 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 13 + }, + { + "x": 1, + "y": 2, + "z": 3, + "w": 14 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdemogroup.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdemogroup.json new file mode 100644 index 00000000..14b72fa2 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdemogroup.json @@ -0,0 +1,28 @@ +{ + "data_list": [ + { + "id": 1, + "x5": { + "y1": 10 + } + }, + { + "id": 2, + "x5": { + "y1": 10 + } + }, + { + "id": 3, + "x5": { + "y1": 10 + } + }, + { + "id": 4, + "x5": { + "y1": 10 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdemoprimitive.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdemoprimitive.json new file mode 100644 index 00000000..b0618828 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdemoprimitive.json @@ -0,0 +1,112 @@ +{ + "data_list": [ + { + "x1": false, + "x2": 1, + "x3": 2, + "x4": 3, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "hello", + "s2": "/apple", + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 2, + "y": 3, + "z": 4 + }, + "v4": { + "x": 4, + "y": 5, + "z": 6, + "w": 7 + }, + "t1": 946742700 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 4, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "world", + "s2": "/apple", + "v2": { + "x": 2, + "y": 3 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.4 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.7, + "w": 8.8 + }, + "t1": 946829099 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 5, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "nihao", + "s2": "/apple", + "v2": { + "x": 4, + "y": 5 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.5 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.8, + "w": 9.9 + }, + "t1": 946915499 + }, + { + "x1": true, + "x2": 1, + "x3": 2, + "x4": 6, + "x5": 4, + "x6": 5, + "x7": 6, + "s1": "shijie", + "s2": "/apple", + "v2": { + "x": 6, + "y": 7 + }, + "v3": { + "x": 2.2, + "y": 2.3, + "z": 3.6 + }, + "v4": { + "x": 4.5, + "y": 5.6, + "z": 6.9, + "w": 123 + }, + "t1": 947001899 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdetectcsvencoding.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdetectcsvencoding.json new file mode 100644 index 00000000..0224eedd --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbdetectcsvencoding.json @@ -0,0 +1,52 @@ +{ + "data_list": [ + { + "id": 21, + "name": "测试编码" + }, + { + "id": 22, + "name": "还果园国要" + }, + { + "id": 23, + "name": "工枯加盟仍" + }, + { + "id": 11, + "name": "测试编码" + }, + { + "id": 12, + "name": "还果园国要" + }, + { + "id": 13, + "name": "工枯加盟仍" + }, + { + "id": 31, + "name": "测试编码" + }, + { + "id": 32, + "name": "还果园国要" + }, + { + "id": 33, + "name": "工枯加盟仍" + }, + { + "id": 1, + "name": "测试编码" + }, + { + "id": 2, + "name": "还果园国要" + }, + { + "id": 3, + "name": "工枯加盟仍" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbexcelfromjson.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbexcelfromjson.json new file mode 100644 index 00000000..c8aec118 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbexcelfromjson.json @@ -0,0 +1,163 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + } + ] + }, + { + "x4": 2, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + } + ] + }, + { + "x4": 3, + "x1": true, + "x5": 100, + "x6": 1.2, + "s1": "hq", + "s2": "/abc", + "t1": 631123200, + "x12": { + "x1": 10 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "k1": [ + 12 + ], + "k8": [ + [ + "2", + 2 + ], + [ + "4", + 10 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbexcelfromjsonmultirow.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbexcelfromjsonmultirow.json new file mode 100644 index 00000000..f6927d6e --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbexcelfromjsonmultirow.json @@ -0,0 +1,83 @@ +{ + "data_list": [ + { + "id": 1, + "x": 5, + "items": [ + { + "x": 1, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 100 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 2, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] + }, + { + "id": 2, + "x": 9, + "items": [ + { + "x": 2, + "y": true, + "z": "abcd", + "a": { + "x": 10, + "y": 11 + }, + "b": [ + 1, + 3, + 5 + ] + }, + { + "x": 4, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + }, + { + "x": 5, + "y": false, + "z": "abcd", + "a": { + "x": 22, + "y": 33 + }, + "b": [ + 4, + 5 + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbfulltypes.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbfulltypes.json new file mode 100644 index 00000000..a39e4486 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbfulltypes.json @@ -0,0 +1,869 @@ +{ + "data_list": [ + { + "x4": 1, + "x1": true, + "x2": 5, + "x3": 1, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas[10000]", + "x12": { + "x1": 1988 + }, + "x13": 0, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 2, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 3 + } + ] + }, + { + "x4": 2, + "x1": false, + "x2": 0, + "x3": 2, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 3, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 4 + } + ] + }, + { + "x4": 3, + "x1": false, + "x2": 0, + "x3": 3, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 4, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 5 + } + ] + }, + { + "x4": 4, + "x1": false, + "x2": 5, + "x3": 4, + "x5": 0, + "x6": 0, + "x7": 0, + "x8_0": 0, + "x8": 0, + "x9": 0, + "x10": "", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 933732549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 5, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 6 + } + ] + }, + { + "x4": 5, + "x1": false, + "x2": 5, + "x3": 6, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas[20000]", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 6, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 7 + } + ] + }, + { + "x4": 6, + "x1": true, + "x2": 5, + "x3": 7, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 7, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 8 + } + ] + }, + { + "x4": 7, + "x1": true, + "x2": 5, + "x3": 8, + "x5": 1213123, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 1577808000, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 8, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 9 + } + ] + }, + { + "x4": 8, + "x1": true, + "x2": 5, + "x3": 9, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 2, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 9, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 10 + } + ] + }, + { + "x4": 9, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1988 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "t1": 935460549, + "k1": [ + 1, + 2, + 3 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 10, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 11 + } + ] + }, + { + "x4": 10, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1989 + }, + "x13": 1, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 3 + }, + "s1": "/apple", + "t1": 935460550, + "k1": [ + 1, + 2, + 4 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 5 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 11, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 12 + } + ] + }, + { + "x4": 12, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1990 + }, + "x13": 2, + "x14": { + "@type": "TestLoginRoleInfo", + "x1": 1, + "x3": 4, + "role_id": 10000 + }, + "s1": "/apple", + "t1": 935460551, + "k1": [ + 1, + 2, + 5 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 6 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 12, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 13 + } + ] + }, + { + "x4": 30, + "x1": true, + "x2": 5, + "x3": 128, + "x5": 13234234234, + "x6": 1.28, + "x7": 1.23457891, + "x8_0": 1234, + "x8": 1234, + "x9": 111111111, + "x10": "Assets/GoodsIcon/GoodsIcon.spriteatlas", + "x12": { + "x1": 1991 + }, + "x13": 4, + "x14": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 5 + }, + "s1": "/apple", + "t1": 935460552, + "k1": [ + 1, + 2, + 6 + ], + "k2": [ + 1, + 2, + 4 + ], + "k5": [ + 1, + 2, + 7 + ], + "k8": [ + [ + "1", + 2 + ], + [ + "3", + 7 + ] + ], + "k9": [ + { + "y1": 1, + "y2": true + }, + { + "y1": 13, + "y2": false + } + ], + "k15": [ + { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + { + "@type": "TestDemoE1", + "x1": 1, + "x3": 2, + "x4": 14 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbitem2.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbitem2.json new file mode 100644 index 00000000..153b6944 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbitem2.json @@ -0,0 +1,73 @@ +{ + "data_list": [ + { + "@type": "TestItem", + "id": 1001, + "name": "道具1", + "desc": "道具1", + "num": 100, + "price": 15 + }, + { + "@type": "TestItem", + "id": 1002, + "name": "道具2", + "desc": "道具1", + "num": 20, + "price": 30 + }, + { + "@type": "TestEquipment", + "id": 2001, + "name": "装备1", + "desc": "装备1", + "attr": 1, + "value": 100 + }, + { + "@type": "TestEquipment", + "id": 2002, + "name": "装备2", + "desc": "装备2好", + "attr": 2, + "value": 15 + }, + { + "@type": "TestDecorator", + "id": 3001, + "name": "耳环", + "desc": "耳环", + "duration": 100 + }, + { + "@type": "TestDecorator", + "id": 3002, + "name": "耳环", + "desc": "耳环", + "duration": 100 + }, + { + "@type": "TestItem", + "id": 1010, + "name": "道具10", + "desc": "道具10", + "num": 100, + "price": 10 + }, + { + "@type": "TestEquipment", + "id": 2010, + "name": "装备20", + "desc": "装备好", + "attr": 4, + "value": 10 + }, + { + "@type": "TestDecorator", + "id": 3010, + "name": "帽子", + "desc": "帽子", + "duration": 100 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultiindexlist.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultiindexlist.json new file mode 100644 index 00000000..acd219d0 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultiindexlist.json @@ -0,0 +1,81 @@ +{ + "data_list": [ + { + "id1": 1, + "id2": 1, + "id3": "ab1", + "num": 1, + "desc": "desc1" + }, + { + "id1": 2, + "id2": 3, + "id3": "ab2", + "num": 2, + "desc": "desc2" + }, + { + "id1": 3, + "id2": 5, + "id3": "ab3", + "num": 3, + "desc": "desc3" + }, + { + "id1": 4, + "id2": 7, + "id3": "ab4", + "num": 4, + "desc": "desc4" + }, + { + "id1": 5, + "id2": 9, + "id3": "ab5", + "num": 5, + "desc": "desc5" + }, + { + "id1": 6, + "id2": 11, + "id3": "ab6", + "num": 6, + "desc": "desc6" + }, + { + "id1": 7, + "id2": 13, + "id3": "ab7", + "num": 7, + "desc": "desc7" + }, + { + "id1": 8, + "id2": 15, + "id3": "ab8", + "num": 8, + "desc": "desc8" + }, + { + "id1": 9, + "id2": 17, + "id3": "ab9", + "num": 9, + "desc": "desc9" + }, + { + "id1": 10, + "id2": 19, + "id3": "ab10", + "num": 10, + "desc": "desc10" + }, + { + "id1": 11, + "id2": 21, + "id3": "ab11", + "num": 11, + "desc": "desc11" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultirowrecord.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultirowrecord.json new file mode 100644 index 00000000..baee84b5 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultirowrecord.json @@ -0,0 +1,334 @@ +{ + "data_list": [ + { + "id": 1, + "name": "xxx", + "one_rows": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows1": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows2": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows4": [ + [ + "1", + { + "id": 1, + "x": 2, + "y": 3 + } + ] + ], + "multi_rows5": [ + { + "id": 1, + "items": [ + { + "id": 100, + "x": 1 + } + ] + } + ], + "multi_rows6": [], + "multi_rows7": [ + [ + "1", + 10 + ], + [ + "2", + 10 + ], + [ + "3", + 30 + ], + [ + "4", + 40 + ] + ] + }, + { + "id": 2, + "name": "xxx", + "one_rows": [ + { + "id": 2, + "x": 4 + } + ], + "multi_rows1": [ + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + }, + { + "id": 2, + "x": 4 + } + ], + "multi_rows2": [ + { + "id": 3, + "x": 4 + }, + { + "id": 3, + "x": 4 + } + ], + "multi_rows4": [ + [ + "2", + { + "id": 4, + "x": 5, + "y": 4 + } + ] + ], + "multi_rows5": [ + { + "id": 2, + "items": [ + { + "id": 100, + "x": 1 + }, + { + "id": 200, + "x": 2 + } + ] + }, + { + "id": 3, + "items": [ + { + "id": 300, + "x": 3 + } + ] + }, + { + "id": 4, + "items": [ + { + "id": 400, + "x": 4 + }, + { + "id": 500, + "x": 5 + }, + { + "id": 600, + "x": 6 + } + ] + } + ], + "multi_rows6": [ + [ + "2", + { + "id": 2, + "x": 2, + "y": 2 + } + ], + [ + "22", + { + "id": 22, + "x": 22, + "y": 22 + } + ], + [ + "222", + { + "id": 3, + "x": 3, + "y": 3 + } + ], + [ + "2222", + { + "id": 4, + "x": 4, + "y": 4 + } + ] + ], + "multi_rows7": [ + [ + "1", + 100 + ], + [ + "2", + 200 + ] + ] + }, + { + "id": 3, + "name": "ds", + "one_rows": [ + { + "id": 1, + "x": 2 + } + ], + "multi_rows1": [ + { + "id": 1, + "x": 2 + }, + { + "id": 2, + "x": 4 + } + ], + "multi_rows2": [ + { + "id": 3, + "x": 4 + }, + { + "id": 3, + "x": 4 + } + ], + "multi_rows4": [ + [ + "1", + { + "id": 1, + "x": 2, + "y": 3 + } + ], + [ + "2", + { + "id": 4, + "x": 5, + "y": 4 + } + ], + [ + "3", + { + "id": 4, + "x": 5, + "y": 4 + } + ] + ], + "multi_rows5": [ + { + "id": 5, + "items": [ + { + "id": 100, + "x": 1 + }, + { + "id": 200, + "x": 2 + }, + { + "id": 300, + "x": 3 + }, + { + "id": 400, + "x": 4 + } + ] + } + ], + "multi_rows6": [ + [ + "1", + { + "id": 2, + "x": 3, + "y": 4 + } + ], + [ + "10", + { + "id": 20, + "x": 3, + "y": 40 + } + ], + [ + "100", + { + "id": 200, + "x": 4, + "y": 400 + } + ], + [ + "1000", + { + "id": 2000, + "x": 5, + "y": 4000 + } + ] + ], + "multi_rows7": [ + [ + "1", + 1 + ], + [ + "2", + 2 + ], + [ + "4", + 4 + ] + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultirowtitle.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultirowtitle.json new file mode 100644 index 00000000..cc85b730 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultirowtitle.json @@ -0,0 +1,98 @@ +{ + "data_list": [ + { + "id": 1, + "name": "xxx", + "x1": { + "y2": { + "z2": 2, + "z3": 3 + }, + "y3": 4 + }, + "x2": [ + { + "z2": 1, + "z3": 2 + }, + { + "z2": 3, + "z3": 4 + } + ], + "x3": [ + { + "z2": 1, + "z3": 2 + }, + { + "z2": 3, + "z3": 4 + } + ], + "x4": [ + { + "z2": 12, + "z3": 13 + }, + { + "z2": 22, + "z3": 23 + }, + { + "z2": 32, + "z3": 33 + } + ] + }, + { + "id": 11, + "name": "yyy", + "x1": { + "y2": { + "z2": 12, + "z3": 13 + }, + "y3": 14 + }, + "x2_0": { + "z2": 1, + "z3": 2 + }, + "x2": [ + { + "z2": 11, + "z3": 12 + }, + { + "z2": 13, + "z3": 14 + } + ], + "x3": [ + { + "z2": 11, + "z3": 12 + }, + { + "z2": 13, + "z3": 14 + } + ], + "x4": [ + { + "z2": 112, + "z3": 113 + }, + { + "z2": 122, + "z3": 123 + }, + { + "z2": 132, + "z3": 133 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultiunionindexlist.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultiunionindexlist.json new file mode 100644 index 00000000..6c0d6549 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbmultiunionindexlist.json @@ -0,0 +1,81 @@ +{ + "data_list": [ + { + "id1": 1, + "id2": 1, + "id3": "ab1", + "num": 1, + "desc": "desc1" + }, + { + "id1": 1, + "id2": 1, + "id3": "ab2", + "num": 2, + "desc": "desc2" + }, + { + "id1": 1, + "id2": 5, + "id3": "ab1", + "num": 3, + "desc": "desc3" + }, + { + "id1": 4, + "id2": 5, + "id3": "ab1", + "num": 4, + "desc": "desc4" + }, + { + "id1": 5, + "id2": 9, + "id3": "ab5", + "num": 5, + "desc": "desc5" + }, + { + "id1": 6, + "id2": 11, + "id3": "ab6", + "num": 6, + "desc": "desc6" + }, + { + "id1": 7, + "id2": 13, + "id3": "ab7", + "num": 7, + "desc": "desc7" + }, + { + "id1": 8, + "id2": 15, + "id3": "ab8", + "num": 8, + "desc": "desc8" + }, + { + "id1": 9, + "id2": 17, + "id3": "ab9", + "num": 9, + "desc": "desc9" + }, + { + "id1": 10, + "id2": 19, + "id3": "ab10", + "num": 10, + "desc": "desc10" + }, + { + "id1": 11, + "id2": 21, + "id3": "ab11", + "num": 11, + "desc": "desc11" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbnotindexlist.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbnotindexlist.json new file mode 100644 index 00000000..ffda7157 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbnotindexlist.json @@ -0,0 +1,24 @@ +{ + "data_list": [ + { + "x": 1, + "y": 2 + }, + { + "x": 1, + "y": 2 + }, + { + "x": 2, + "y": 3 + }, + { + "x": 3, + "y": 4 + }, + { + "x": 2, + "y": 3 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbsingleton.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbsingleton.json new file mode 100644 index 00000000..a6821cc8 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbsingleton.json @@ -0,0 +1,16 @@ +{ + "data_list": [ + { + "id": 5, + "name": "key_name", + "date": { + "@type": "TestDemoD5", + "x1": 1, + "time": { + "start_time": 398966400, + "end_time": 936806400 + } + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestberef.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestberef.json new file mode 100644 index 00000000..af631a82 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestberef.json @@ -0,0 +1,44 @@ +{ + "data_list": [ + { + "id": 1, + "count": 10 + }, + { + "id": 2, + "count": 10 + }, + { + "id": 3, + "count": 10 + }, + { + "id": 4, + "count": 10 + }, + { + "id": 5, + "count": 10 + }, + { + "id": 6, + "count": 10 + }, + { + "id": 7, + "count": 10 + }, + { + "id": 8, + "count": 10 + }, + { + "id": 9, + "count": 10 + }, + { + "id": 10, + "count": 10 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestberef2.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestberef2.json new file mode 100644 index 00000000..0886c622 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestberef2.json @@ -0,0 +1,44 @@ +{ + "data_list": [ + { + "id": 11, + "count": 10 + }, + { + "id": 12, + "count": 10 + }, + { + "id": 13, + "count": 10 + }, + { + "id": 14, + "count": 10 + }, + { + "id": 15, + "count": 10 + }, + { + "id": 16, + "count": 10 + }, + { + "id": 17, + "count": 10 + }, + { + "id": 18, + "count": 10 + }, + { + "id": 19, + "count": 10 + }, + { + "id": 20, + "count": 10 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestglobal.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestglobal.json new file mode 100644 index 00000000..45d0f4e6 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestglobal.json @@ -0,0 +1,8 @@ +{ + "data_list": [ + { + "unlock_equip": 10, + "unlock_hero": 20 + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestindex.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestindex.json new file mode 100644 index 00000000..69c7dab2 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestindex.json @@ -0,0 +1,84 @@ +{ + "data_list": [ + { + "id": 1, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 2, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 3, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + }, + { + "id": 4, + "eles": [ + { + "x1": 1 + }, + { + "x1": 2 + }, + { + "x1": 3 + }, + { + "x1": 4 + }, + { + "x1": 5 + } + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmap.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmap.json new file mode 100644 index 00000000..36caa53b --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmap.json @@ -0,0 +1,47 @@ +{ + "data_list": [ + { + "id": 1, + "x1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "x2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "x3": [ + [ + "\"aaa\"", + 1 + ], + [ + "\"bbb\"", + 2 + ] + ], + "x4": [ + [ + "1", + 1 + ], + [ + "2", + 20 + ] + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmapper.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmapper.json new file mode 100644 index 00000000..a009e49c --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmapper.json @@ -0,0 +1,20 @@ +{ + "data_list": [ + { + "id": 1, + "audio_type": 1, + "v2": { + "x": 1, + "y": 2 + } + }, + { + "id": 2, + "audio_type": 1, + "v2": { + "x": 1, + "y": 3 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmulticolumn.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmulticolumn.json new file mode 100644 index 00000000..751a636d --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestmulticolumn.json @@ -0,0 +1,40 @@ +{ + "data_list": [ + { + "id": 1, + "a": { + "y1": 1, + "y2": 2, + "y3": 3 + }, + "b": { + "y1": 21, + "y2": 221, + "y3": 23 + }, + "c": { + "y1": 31, + "y2": 32, + "y3": 33 + } + }, + { + "id": 2, + "a": { + "y1": 1, + "y2": 2, + "y3": 3 + }, + "b": { + "y1": 21, + "y2": 221, + "y3": 23 + }, + "c": { + "y1": 31, + "y2": 32, + "y3": 33 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestnull.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestnull.json new file mode 100644 index 00000000..c0afe376 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestnull.json @@ -0,0 +1,92 @@ +{ + "data_list": [ + { + "id": 10 + }, + { + "id": 11 + }, + { + "id": 12, + "x1": 1, + "x2": 1, + "x3": { + "x1": 1 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 2, + "x2": 3 + }, + "s1": "asf", + "s2": "/abc" + }, + { + "id": 20 + }, + { + "id": 21 + }, + { + "id": 22, + "x1": 1, + "x2": 2, + "x3": { + "x1": 3 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "asfs", + "s2": "/abc" + }, + { + "id": 30, + "x1": 1, + "x2": 1, + "x3": { + "x1": 1 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 22 + }, + "s1": "/apple", + "s2": "/apple" + }, + { + "id": 31 + }, + { + "id": 1 + }, + { + "id": 2, + "x1": 1, + "x2": 1, + "x3": { + "x1": 3 + }, + "x4": { + "@type": "TestDemoD2", + "x1": 1, + "x2": 2 + }, + "s1": "/apple", + "s2": "/apple" + }, + { + "id": 3, + "s1": "", + "s2": "" + }, + { + "id": 4, + "s1": "/apple", + "s2": "/apple" + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestref.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestref.json new file mode 100644 index 00000000..83e4694c --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestref.json @@ -0,0 +1,205 @@ +{ + "data_list": [ + { + "id": 1, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 1, + "x4": 3001, + "a1": [ + 1, + 2 + ], + "a2": [ + 2, + 3 + ], + "b1": [ + 3, + 4 + ], + "b2": [ + 4, + 5 + ], + "c1": [ + 5, + 6, + 7 + ], + "c2": [ + 6, + 7 + ], + "d1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "d2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1": { + "@type": "TestRefBean", + "x": 1, + "arr": [ + 1, + 4 + ] + } + }, + { + "id": 2, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 20, + "x4": 3001, + "a1": [ + 1, + 3 + ], + "a2": [ + 2, + 4 + ], + "b1": [ + 3, + 5 + ], + "b2": [ + 4, + 6 + ], + "c1": [ + 5, + 6, + 8 + ], + "c2": [ + 6, + 8 + ], + "d1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "d2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1": { + "@type": "TestRefBean", + "x": 1, + "arr": [ + 1, + 3 + ] + } + }, + { + "id": 3, + "x1": 1, + "x1_2": 1, + "x2": 2, + "x3": 19, + "x4": 3001, + "a1": [ + 1, + 4 + ], + "a2": [ + 2, + 5 + ], + "b1": [ + 3, + 6 + ], + "b2": [ + 4, + 7 + ], + "c1": [ + 5, + 6, + 9 + ], + "c2": [ + 6, + 9 + ], + "d1": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "d2": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ], + "e1": 1, + "e2": 11, + "e3": "ab5", + "f1": 1, + "f2": 11, + "f3": "ab5", + "s1": { + "@type": "TestRefBean", + "x": 1, + "arr": [ + 2, + 3 + ] + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestscriptableobject.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestscriptableobject.json new file mode 100644 index 00000000..54b2a2d2 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestscriptableobject.json @@ -0,0 +1,46 @@ +{ + "data_list": [ + { + "id": 1, + "desc": "aaaa", + "rate": 0.45, + "num": 12131, + "v2": { + "x": 1, + "y": 1 + }, + "v3": { + "x": 2, + "y": 2, + "z": 2 + }, + "v4": { + "x": 3, + "y": 3, + "z": 4, + "w": 4 + } + }, + { + "id": 2, + "desc": "bbbbb", + "rate": 0.8, + "num": 1111, + "v2": { + "x": 1, + "y": 2 + }, + "v3": { + "x": 1, + "y": 2, + "z": 3 + }, + "v4": { + "x": 1, + "y": 2, + "z": 3, + "w": 4 + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestset.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestset.json new file mode 100644 index 00000000..9de8d951 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestset.json @@ -0,0 +1,45 @@ +{ + "data_list": [ + { + "id": 1, + "x0": "ab", + "x1": [ + 1, + 2, + 3 + ], + "x2": [ + 2, + 3, + 4 + ], + "x3": [ + "ab", + "cd" + ], + "x4": [ + 1, + 2 + ] + }, + { + "id": 2, + "x0": "cd", + "x1": [ + 1, + 2 + ], + "x2": [ + 2, + 3 + ], + "x3": [ + "ab", + "cd" + ], + "x4": [ + 1 + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestsize.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestsize.json new file mode 100644 index 00000000..0413fef8 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbtestsize.json @@ -0,0 +1,29 @@ +{ + "data_list": [ + { + "id": 1, + "x1": [ + 1, + 2 + ], + "x2": [ + 3, + 4 + ], + "x3": [ + 5, + 6 + ], + "x4": [ + [ + "1", + 2 + ], + [ + "3", + 4 + ] + ] + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbteststring.json b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbteststring.json new file mode 100644 index 00000000..72d51f67 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_datas/test_tbteststring.json @@ -0,0 +1,79 @@ +{ + "data_list": [ + { + "id": "\\a", + "s1": "asfas", + "s2": "aaa\nbbb", + "cs1": { + "id": 1, + "s2": "asf", + "s3": "aaa" + }, + "cs2": { + "id": 1, + "s2": "asf", + "s3": "aaa" + } + }, + { + "id": "2", + "s1": "aaa\\nbbb", + "s2": "aaa\t\tbbb", + "cs1": { + "id": 2, + "s2": "", + "s3": "bbb" + }, + "cs2": { + "id": 2, + "s2": "", + "s3": "bbb" + } + }, + { + "id": "3", + "s1": "升级到10级\"\"", + "s2": "cccc", + "cs1": { + "id": 3, + "s2": "asdfas", + "s3": "" + }, + "cs2": { + "id": 3, + "s2": "asdfas", + "s3": "" + } + }, + { + "id": "4", + "s1": "\\abc", + "s2": "", + "cs1": { + "id": 4, + "s2": "", + "s3": "" + }, + "cs2": { + "id": 4, + "s2": "", + "s3": "" + } + }, + { + "id": "5", + "s1": "升级到10级\nabc", + "s2": "", + "cs1": { + "id": 3, + "s2": "asdfas", + "s3": "" + }, + "cs2": { + "id": 3, + "s2": "asdfas", + "s3": "" + } + } + ] +} \ No newline at end of file diff --git a/luban_examples/Projects/Protobuf3_json/pb_schemas/schema.proto b/luban_examples/Projects/Protobuf3_json/pb_schemas/schema.proto new file mode 100644 index 00000000..a457b9df --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/pb_schemas/schema.proto @@ -0,0 +1,1054 @@ +syntax = "proto3"; + +package cfg; + +enum AiEExecutor { + AiEExecutor_CLIENT = 0; + AiEExecutor_SERVER = 1; +} +enum AiEKeyType { + AiEKeyType_BOOL = 1; + AiEKeyType_INT = 2; + AiEKeyType_FLOAT = 3; + AiEKeyType_STRING = 4; + AiEKeyType_VECTOR = 5; + AiEKeyType_ROTATOR = 6; + AiEKeyType_NAME = 7; + AiEKeyType_CLASS = 8; + AiEKeyType_ENUM = 9; + AiEKeyType_OBJECT = 10; +} +enum AiEFlowAbortMode { + AiEFlowAbortMode_NONE = 0; + AiEFlowAbortMode_LOWER_PRIORITY = 1; + AiEFlowAbortMode_SELF = 2; + AiEFlowAbortMode_BOTH = 3; +} +enum AiEFinishMode { + AiEFinishMode_IMMEDIATE = 0; + AiEFinishMode_DELAYED = 1; +} +enum AiENotifyObserverMode { + AiENotifyObserverMode_ON_VALUE_CHANGE = 0; + AiENotifyObserverMode_ON_RESULT_CHANGE = 1; +} +enum AiEOperator { + AiEOperator_IS_EQUAL_TO = 0; + AiEOperator_IS_NOT_EQUAL_TO = 1; + AiEOperator_IS_LESS_THAN = 2; + AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3; + AiEOperator_IS_GREAT_THAN = 4; + AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5; + AiEOperator_CONTAINS = 6; + AiEOperator_NOT_CONTAINS = 7; +} +enum AudioType { + AudioType_UNKNOWN = 0; + AudioType_ACC = 1; + AudioType_AIFF = 2; +} +enum CommonEBoolOperator { + CommonEBoolOperator_AND = 0; + CommonEBoolOperator_OR = 1; +} +enum ItemEItemQuality { + ItemEItemQuality_WHITE = 0; + ItemEItemQuality_GREEN = 1; + ItemEItemQuality_BLUE = 2; + ItemEItemQuality_PURPLE = 3; + ItemEItemQuality_GOLDEN = 4; +} +enum ItemECurrencyType { + ItemECurrencyType_DIAMOND = 1; + ItemECurrencyType_GOLD = 2; + ItemECurrencyType_SILVER = 3; + ItemECurrencyType_EXP = 4; + ItemECurrencyType_POWER_POINT = 5; +} +enum ItemEMajorType { + ItemEMajorType_CURRENCY = 1; + ItemEMajorType_CLOTH = 2; + ItemEMajorType_QUEST = 3; + ItemEMajorType_CONSUMABLES = 4; + ItemEMajorType_TREASURE_BOX = 5; + ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6; + ItemEMajorType_HEAD_FRAME = 7; + ItemEMajorType_VOICE = 8; + ItemEMajorType_ACTION = 9; + ItemEMajorType_EXPANSION = 10; + ItemEMajorType_MATERIAL = 11; +} +enum ItemEMinorType { + ItemEMinorType_DIAMOND = 101; + ItemEMinorType_GOLD = 102; + ItemEMinorType_SILVER = 103; + ItemEMinorType_EXP = 104; + ItemEMinorType_POWER_POINT = 105; + ItemEMinorType_HAIR_STYLE = 210; + ItemEMinorType_COAT = 220; + ItemEMinorType_UPPER_JACKET = 230; + ItemEMinorType_TROUSERS = 241; + ItemEMinorType_SKIRT = 242; + ItemEMinorType_SOCKS = 250; + ItemEMinorType_SHOES = 260; + ItemEMinorType_HAIR_ACCESSORY = 271; + ItemEMinorType_HAT = 272; + ItemEMinorType_EARRING = 273; + ItemEMinorType_NECKLACE = 274; + ItemEMinorType_BRACELET = 275; + ItemEMinorType_HAIR_CLASP = 276; + ItemEMinorType_GLOVE = 277; + ItemEMinorType_HANDHELD_OBJECT = 278; + ItemEMinorType_SPECIAL = 279; + ItemEMinorType_BASE_COSMETIC = 281; + ItemEMinorType_EYEBROW_COSMETIC = 282; + ItemEMinorType_EYELASH = 283; + ItemEMinorType_COSMETIC_CONTACT_LENSES = 284; + ItemEMinorType_LIP_COSMETIC = 285; + ItemEMinorType_SKIN_COLOR = 286; + ItemEMinorType_ONE_PIECE_DRESS = 290; + ItemEMinorType_SWITCH_CLOTHES_SCENE = 291; + ItemEMinorType_QUEST = 301; + ItemEMinorType_CAST = 401; + ItemEMinorType_SWORD = 421; + ItemEMinorType_BOW_ARROW = 422; + ItemEMinorType_WANDS = 423; + ItemEMinorType_SPECIAL_TOOL = 424; + ItemEMinorType_FOOD = 403; + ItemEMinorType_TREASURE_BOX = 501; + ItemEMinorType_KEY = 502; + ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503; + ItemEMinorType_ACHIEVEMENT = 601; + ItemEMinorType_TITLE = 602; + ItemEMinorType_AVATAR_FRAME = 701; + ItemEMinorType_VOICE = 801; + ItemEMinorType_IDLE_POSE = 901; + ItemEMinorType_PHOTO_POSE = 902; + ItemEMinorType_BAG = 1001; + ItemEMinorType_FRIEND_CAPACITY = 1002; + ItemEMinorType_CONSTRUCTION_MATERIAL = 1101; + ItemEMinorType_DESIGN_DRAWING = 1102; +} +enum ItemEClothersStarQualityType { + ItemEClothersStarQualityType_ONE = 1; + ItemEClothersStarQualityType_TWO = 2; + ItemEClothersStarQualityType_THREE = 3; + ItemEClothersStarQualityType_FOUR = 4; + ItemEClothersStarQualityType_FIVE = 5; + ItemEClothersStarQualityType_SIX = 6; + ItemEClothersStarQualityType_SEVEN = 7; + ItemEClothersStarQualityType_EIGHT = 8; + ItemEClothersStarQualityType_NINE = 9; + ItemEClothersStarQualityType_TEN = 10; +} +enum ItemEClothersTag { + ItemEClothersTag_FANG_SHAI = 1; + ItemEClothersTag_WU_ZHE = 2; +} +enum ItemEUseType { + ItemEUseType_MANUAL = 0; + ItemEUseType_AUTO = 1; +} +enum ItemEClothesHidePartType { + ItemEClothesHidePartType_CHEST = 0; + ItemEClothesHidePartType_HEAD = 1; + ItemEClothesHidePartType_SPINE_UPPER = 2; + ItemEClothesHidePartType_SPINE_LOWER = 3; + ItemEClothesHidePartType_HIP = 4; + ItemEClothesHidePartType_LEG_UPPER = 5; + ItemEClothesHidePartType_LEG_MIDDLE = 6; + ItemEClothesHidePartType_LEG_LOWER = 7; +} +enum ItemEClothesPropertyType { + ItemEClothesPropertyType_JIAN_YUE = 1; + ItemEClothesPropertyType_HUA_LI = 2; + ItemEClothesPropertyType_KE_AI = 3; + ItemEClothesPropertyType_CHENG_SHU = 4; + ItemEClothesPropertyType_HUO_PO = 5; + ItemEClothesPropertyType_YOU_YA = 6; + ItemEClothesPropertyType_QING_CHUN = 7; + ItemEClothesPropertyType_XING_GAN = 8; + ItemEClothesPropertyType_QING_LIANG = 9; + ItemEClothesPropertyType_BAO_NUAN = 10; +} +enum TestDemoEnum { + TestDemoEnum_NONE = 0; + TestDemoEnum_A = 1; + TestDemoEnum_B = 2; + TestDemoEnum_C = 4; + TestDemoEnum_D = 5; +} +enum TestDemoFlag { + TestDemoFlag_A = 1; + TestDemoFlag_B = 2; + TestDemoFlag_C = 4; + TestDemoFlag_D = 8; +} +enum TestETestUeType { + TestETestUeType_WHITE = 0; + TestETestUeType_BLACK = 1; +} +enum TestETestEmptyEnum { + + TestETestEmptyEnum_EMPTY_PLACEHOLDER = 0; +} +enum TestETestEmptyEnum2 { + TestETestEmptyEnum2_SMALL_THAN_256 = 255; + TestETestEmptyEnum2_X_256 = 256; + TestETestEmptyEnum2_X_257 = 257; +} +enum TestETestQuality { + TestETestQuality_A = 1; + TestETestQuality_B = 2; + TestETestQuality_C = 3; + TestETestQuality_D = 4; +} +enum TestAccessFlag { + TestAccessFlag_WRITE = 1; + TestAccessFlag_READ = 2; + TestAccessFlag_TRUNCATE = 4; + TestAccessFlag_NEW = 8; + TestAccessFlag_READ_WRITE = 3; +} + +message AiBlackboard { + string name = 1 ; + string desc = 2 ; + string parent_name = 3 ; + repeated AiBlackboardKey keys = 4 [packed = false]; +} +message AiBlackboardKey { + string name = 1 ; + string desc = 2 ; + bool is_static = 3 ; + AiEKeyType type = 4 ; + string type_class_name = 5 ; +} +message AiBehaviorTree { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + string blackboard_id = 4 ; + AiComposeNode root = 5 ; +} +message AiNode { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiService { + oneof value { + AiUeSetDefaultFocus UeSetDefaultFocus = 1; + AiExecuteTimeStatistic ExecuteTimeStatistic = 2; + AiChooseTarget ChooseTarget = 3; + AiKeepFaceTarget KeepFaceTarget = 4; + AiGetOwnerPlayer GetOwnerPlayer = 5; + AiUpdateDailyBehaviorProps UpdateDailyBehaviorProps = 6; + } +} +message AiUeSetDefaultFocus { + int32 id = 1 ; + string node_name = 2 ; + string keyboard_key = 3 ; +} +message AiExecuteTimeStatistic { + int32 id = 1 ; + string node_name = 2 ; +} +message AiChooseTarget { + int32 id = 1 ; + string node_name = 2 ; + string result_target_key = 3 ; +} +message AiKeepFaceTarget { + int32 id = 1 ; + string node_name = 2 ; + string target_actor_key = 3 ; +} +message AiGetOwnerPlayer { + int32 id = 1 ; + string node_name = 2 ; + string player_actor_key = 3 ; +} +message AiUpdateDailyBehaviorProps { + int32 id = 1 ; + string node_name = 2 ; + string satiety_key = 3 ; + string energy_key = 4 ; + string mood_key = 5 ; + string satiety_lower_threshold_key = 6 ; + string satiety_upper_threshold_key = 7 ; + string energy_lower_threshold_key = 8 ; + string energy_upper_threshold_key = 9 ; + string mood_lower_threshold_key = 10 ; + string mood_upper_threshold_key = 11 ; +} +message AiDecorator { + oneof value { + AiUeLoop UeLoop = 7; + AiUeCooldown UeCooldown = 8; + AiUeTimeLimit UeTimeLimit = 9; + AiUeBlackboard UeBlackboard = 10; + AiUeForceSuccess UeForceSuccess = 11; + AiIsAtLocation IsAtLocation = 12; + AiDistanceLessThan DistanceLessThan = 13; + } +} +message AiUeLoop { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + int32 num_loops = 4 ; + bool infinite_loop = 5 ; + float infinite_loop_timeout_time = 6 ; +} +message AiUeCooldown { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + float cooldown_time = 4 ; +} +message AiUeTimeLimit { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + float limit_time = 4 ; +} +message AiUeBlackboard { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + AiENotifyObserverMode notify_observer = 4 ; + string blackboard_key = 5 ; + AiKeyQueryOperator key_query = 6 ; +} +message AiKeyQueryOperator { + oneof value { + AiIsSet IsSet = 1; + AiIsNotSet IsNotSet = 2; + AiBinaryOperator BinaryOperator = 3; + } +} +message AiIsSet { +} +message AiIsNotSet { +} +message AiBinaryOperator { + AiEOperator oper = 1 ; + AiKeyData data = 2 ; +} +message AiKeyData { + oneof value { + AiFloatKeyData FloatKeyData = 1; + AiIntKeyData IntKeyData = 2; + AiStringKeyData StringKeyData = 3; + AiBlackboardKeyData BlackboardKeyData = 4; + } +} +message AiFloatKeyData { + float value = 1 ; +} +message AiIntKeyData { + int32 value = 1 ; +} +message AiStringKeyData { + string value = 1 ; +} +message AiBlackboardKeyData { + string value = 1 ; +} +message AiUeForceSuccess { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; +} +message AiIsAtLocation { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + float acceptable_radius = 4 ; + string keyboard_key = 5 ; + bool inverse_condition = 6 ; +} +message AiDistanceLessThan { + int32 id = 1 ; + string node_name = 2 ; + AiEFlowAbortMode flow_abort_mode = 3 ; + string actor1_key = 4 ; + string actor2_key = 5 ; + float distance = 6 ; + bool reverse_result = 7 ; +} +message AiFlowNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiComposeNode { + oneof value { + AiSequence Sequence = 14; + AiSelector Selector = 15; + AiSimpleParallel SimpleParallel = 16; + } +} +message AiSequence { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSelector { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + repeated AiFlowNode children = 5 [packed = false]; +} +message AiSimpleParallel { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + AiEFinishMode finish_mode = 5 ; + AiTask main_task = 6 ; + AiFlowNode background_node = 7 ; +} +message AiTask { + oneof value { + AiUeWait UeWait = 17; + AiUeWaitBlackboardTime UeWaitBlackboardTime = 18; + AiMoveToTarget MoveToTarget = 19; + AiChooseSkill ChooseSkill = 20; + AiMoveToRandomLocation MoveToRandomLocation = 21; + AiMoveToLocation MoveToLocation = 22; + AiDebugPrint DebugPrint = 23; + } +} +message AiUeWait { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + float wait_time = 6 ; + float random_deviation = 7 ; +} +message AiUeWaitBlackboardTime { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string blackboard_key = 6 ; +} +message AiMoveToTarget { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string target_actor_key = 6 ; + float acceptable_radius = 7 ; +} +message AiChooseSkill { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string target_actor_key = 6 ; + string result_skill_id_key = 7 ; +} +message AiMoveToRandomLocation { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string origin_position_key = 6 ; + float radius = 7 ; +} +message AiMoveToLocation { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + float acceptable_radius = 6 ; +} +message AiDebugPrint { + int32 id = 1 ; + string node_name = 2 ; + repeated AiDecorator decorators = 3 [packed = false]; + repeated AiService services = 4 [packed = false]; + bool ignore_restart_self = 5 ; + string text = 6 ; +} +message CommonGlobalConfig { + int32 x1 = 1 ; + int32 x2 = 2 ; + int32 x3 = 3 ; + int32 x4 = 4 ; + int32 x5 = 5 ; + int32 x6 = 6 ; + repeated int32 x7 = 7 [packed = true]; +} +message ItemItem { + int32 id = 1 ; + string name = 2 ; + ItemEMinorType minor_type = 4 ; + ItemEItemQuality quality = 6 ; + string icon_backgroud = 8 ; + string icon_mask = 9 ; + string desc = 10 ; + int32 show_order = 11 ; +} +message L10nL10NDemo { + int32 id = 1 ; + string text = 2 ; +} +message L10nPatchDemo { + int32 id = 1 ; + int32 value = 2 ; +} +message TagTestTag { + int32 id = 1 ; + string value = 2 ; +} +message TestDemoType2 { + int32 x4 = 1 ; + bool x1 = 2 ; + int32 x2 = 3 ; + int32 x3 = 4 ; + int64 x5 = 5 ; + float x6 = 6 ; + double x7 = 7 ; + int32 x8_0 = 8 ; + int32 x8 = 9 ; + int64 x9 = 10 ; + string x10 = 11 ; + TestDemoType1 x12 = 12 ; + TestDemoEnum x13 = 13 ; + TestDemoDynamic x14 = 14 ; + string s1 = 15 ; + int64 t1 = 16 ; + repeated int32 k1 = 17 [packed = true]; + repeated int32 k2 = 18 [packed = true]; + repeated int32 k5 = 19 [packed = true]; + map k8 = 20 ; + repeated TestDemoE2 k9 = 21 [packed = false]; + repeated TestDemoDynamic k15 = 22 [packed = false]; +} +message TestDemoType1 { + int32 x1 = 1 ; +} +message TestDemoDynamic { + oneof value { + TestDemoD2 DemoD2 = 1; + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + TestDemoD5 DemoD5 = 4; + } +} +message TestDemoD2 { + int32 x1 = 1 ; + int32 x2 = 2 ; +} +message TestDemoD3 { + oneof value { + TestDemoE1 DemoE1 = 2; + TestLoginRoleInfo RoleInfo = 3; + } +} +message TestDemoE1 { + int32 x1 = 1 ; + int32 x3 = 2 ; + int32 x4 = 3 ; +} +message TestLoginRoleInfo { + int32 x1 = 1 ; + int32 x3 = 2 ; + int64 role_id = 3 ; +} +message TestDemoD5 { + int32 x1 = 1 ; + TestDateTimeRange time = 2 ; +} +message TestDateTimeRange { + int64 start_time = 1 ; + int64 end_time = 2 ; +} +message TestDemoE2 { + optional int32 y1 = 1 ; + bool y2 = 2 ; +} +message TestDemoSingletonType { + int32 id = 1 ; + string name = 2 ; + TestDemoDynamic date = 3 ; +} +message TestNotIndexList { + int32 x = 1 ; + int32 y = 2 ; +} +message TestMultiUnionIndexList { + int32 id1 = 1 ; + int64 id2 = 2 ; + string id3 = 3 ; + int32 num = 4 ; + string desc = 5 ; +} +message TestMultiIndexList { + int32 id1 = 1 ; + int64 id2 = 2 ; + string id3 = 3 ; + int32 num = 4 ; + string desc = 5 ; +} +message TestMultiRowRecord { + int32 id = 1 ; + string name = 2 ; + repeated TestMultiRowType1 one_rows = 3 [packed = false]; + repeated TestMultiRowType1 multi_rows1 = 4 [packed = false]; + repeated TestMultiRowType1 multi_rows2 = 5 [packed = false]; + map multi_rows4 = 6 ; + repeated TestMultiRowType3 multi_rows5 = 7 [packed = false]; + map multi_rows6 = 8 ; + map multi_rows7 = 9 ; +} +message TestMultiRowType1 { + int32 id = 1 ; + int32 x = 2 ; +} +message TestMultiRowType2 { + int32 id = 1 ; + int32 x = 2 ; + float y = 3 ; +} +message TestMultiRowType3 { + int32 id = 1 ; + repeated TestMultiRowType1 items = 2 [packed = false]; +} +message TestTestMultiColumn { + int32 id = 1 ; + TestFoo a = 2 ; + TestFoo b = 3 ; + TestFoo c = 4 ; +} +message TestFoo { + int32 y1 = 1 ; + int32 y2 = 2 ; + int32 y3 = 3 ; +} +message TestMultiRowTitle { + int32 id = 1 ; + string name = 2 ; + TestH1 x1 = 3 ; + optional TestH2 x2_0 = 4 ; + repeated TestH2 x2 = 5 [packed = false]; + repeated TestH2 x3 = 6 [packed = false]; + repeated TestH2 x4 = 7 [packed = false]; +} +message TestH1 { + TestH2 y2 = 1 ; + int32 y3 = 2 ; +} +message TestH2 { + int32 z2 = 1 ; + int32 z3 = 2 ; +} +message TestTestNull { + int32 id = 1 ; + optional int32 x1 = 2 ; + optional TestDemoEnum x2 = 3 ; + optional TestDemoType1 x3 = 4 ; + optional TestDemoDynamic x4 = 5 ; + optional string s1 = 6 ; + optional string s2 = 7 ; +} +message TestDemoPrimitiveTypesTable { + bool x1 = 1 ; + int32 x2 = 2 ; + int32 x3 = 3 ; + int32 x4 = 4 ; + int64 x5 = 5 ; + float x6 = 6 ; + double x7 = 7 ; + string s1 = 8 ; + string s2 = 9 ; + vec2 v2 = 10 ; + vec3 v3 = 11 ; + vec4 v4 = 12 ; + int64 t1 = 13 ; +} +message vec2 { + float x = 1 ; + float y = 2 ; +} +message vec3 { + float x = 1 ; + float y = 2 ; + float z = 3 ; +} +message vec4 { + float x = 1 ; + float y = 2 ; + float z = 3 ; + float w = 4 ; +} +message TestTestString { + string id = 1 ; + string s1 = 2 ; + string s2 = 3 ; + TestCompactString cs1 = 4 ; + TestCompactString cs2 = 5 ; +} +message TestCompactString { + int32 id = 1 ; + string s2 = 2 ; + string s3 = 3 ; +} +message TestDemoGroup { + int32 id = 1 ; + TestInnerGroup x5 = 6 ; +} +message TestInnerGroup { + int32 y1 = 1 ; +} +message TestTestGlobal { + int32 unlock_equip = 1 ; + int32 unlock_hero = 2 ; +} +message TestTestBeRef { + int32 id = 1 ; + int32 count = 2 ; +} +message TestTestRef { + int32 id = 1 ; + int32 x1 = 2 ; + int32 x1_2 = 3 ; + int32 x2 = 4 ; + int32 x3 = 5 ; + int32 x4 = 6 ; + repeated int32 a1 = 7 [packed = true]; + repeated int32 a2 = 8 [packed = true]; + repeated int32 b1 = 9 [packed = true]; + repeated int32 b2 = 10 [packed = true]; + repeated int32 c1 = 11 [packed = true]; + repeated int32 c2 = 12 [packed = true]; + map d1 = 13 ; + map d2 = 14 ; + int32 e1 = 15 ; + int64 e2 = 16 ; + string e3 = 17 ; + int32 f1 = 18 ; + int64 f2 = 19 ; + string f3 = 20 ; + TestRefDynamicBase s1 = 21 ; +} +message TestRefDynamicBase { + oneof value { + TestRefBean RefBean = 1; + } +} +message TestRefBean { + int32 x = 1 ; + repeated int32 arr = 2 [packed = true]; +} +message TestTestSize { + int32 id = 1 ; + repeated int32 x1 = 2 [packed = true]; + repeated int32 x2 = 3 [packed = true]; + repeated int32 x3 = 4 [packed = true]; + map x4 = 5 ; +} +message TestTestSet { + int32 id = 1 ; + string x0 = 2 ; + repeated int32 x1 = 3 [packed = true]; + repeated int64 x2 = 4 [packed = true]; + repeated string x3 = 5 [packed = false]; + repeated TestDemoEnum x4 = 6 [packed = false]; +} +message TestDetectEncoding { + int32 id = 1 ; + string name = 2 ; +} +message TestItemBase { + oneof value { + TestItem Item = 1; + TestEquipment Equipment = 2; + TestDecorator Decorator = 3; + } +} +message TestItem { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + int32 num = 4 ; + int32 price = 5 ; +} +message TestEquipment { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + TestDemoEnum attr = 4 ; + int32 value = 5 ; +} +message TestDecorator { + int32 id = 1 ; + string name = 2 ; + string desc = 3 ; + int32 duration = 4 ; +} +message TestTestIndex { + int32 id = 1 ; + repeated TestDemoType1 eles = 2 [packed = false]; +} +message TestTestMap { + int32 id = 1 ; + map x1 = 2 ; + map x2 = 3 ; + map x3 = 4 ; + map x4 = 5 ; +} +message TestExcelFromJson { + int32 x4 = 1 ; + bool x1 = 2 ; + int64 x5 = 3 ; + float x6 = 4 ; + string s1 = 5 ; + string s2 = 6 ; + int64 t1 = 7 ; + TestDemoType1 x12 = 8 ; + TestDemoEnum x13 = 9 ; + TestDemoDynamic x14 = 10 ; + repeated int32 k1 = 11 [packed = true]; + map k8 = 12 ; + repeated TestDemoE2 k9 = 13 [packed = false]; + repeated TestDemoDynamic k15 = 14 [packed = false]; +} +message TestCompositeJsonTable1 { + int32 id = 1 ; + string x = 2 ; +} +message TestCompositeJsonTable2 { + int32 id = 1 ; + int32 y = 2 ; +} +message TestCompositeJsonTable3 { + int32 a = 1 ; + int32 b = 2 ; +} +message TestExcelFromJsonMultiRow { + int32 id = 1 ; + int32 x = 2 ; + repeated TestTestRow items = 3 [packed = false]; +} +message TestTestRow { + int32 x = 1 ; + bool y = 2 ; + string z = 3 ; + TestTest3 a = 4 ; + repeated int32 b = 5 [packed = true]; +} +message TestTest3 { + int32 x = 1 ; + int32 y = 2 ; +} +message TestTestScriptableObject { + int32 id = 1 ; + string desc = 2 ; + float rate = 3 ; + int32 num = 4 ; + vec2 v2 = 5 ; + vec3 v3 = 6 ; + vec4 v4 = 7 ; +} +message TestTestMapper { + int32 id = 1 ; + AudioType audio_type = 2 ; + vec2 v2 = 3 ; +} +message DefineFromExcel2 { + int32 id = 1 ; + bool x1 = 2 ; + int64 x5 = 3 ; + float x6 = 4 ; + int32 x8 = 5 ; + string x10 = 6 ; + TestDemoEnum x13 = 7 ; + TestDemoFlag x13_2 = 8 ; + TestDemoDynamic x14 = 9 ; + TestShape x15 = 10 ; + vec2 v2 = 11 ; + int64 t1 = 12 ; + repeated int32 k1 = 13 [packed = true]; + repeated int32 k2 = 14 [packed = true]; + map k8 = 15 ; + repeated TestDemoE2 k9 = 16 [packed = false]; + repeated vec3 k10 = 17 [packed = false]; + repeated vec4 k11 = 18 [packed = false]; +} +message TestShape { + oneof value { + TestCircle Circle = 1; + Test2Rectangle Rectangle = 2; + } +} +message TestCircle { + float radius = 1 ; +} +message Test2Rectangle { + float width = 1 ; + float height = 2 ; +} + +message AiTbBlackboard { + repeated AiBlackboard data_list = 1 [packed = false]; +} +message AiTbBehaviorTree { + repeated AiBehaviorTree data_list = 1 [packed = false]; +} +message CommonTbGlobalConfig { + repeated CommonGlobalConfig data_list = 1 [packed = false]; +} +message ItemTbItem { + repeated ItemItem data_list = 1 [packed = false]; +} +message L10nTbL10NDemo { + repeated L10nL10NDemo data_list = 1 [packed = false]; +} +message L10nTbPatchDemo { + repeated L10nPatchDemo data_list = 1 [packed = false]; +} +message TagTbTestTag { + repeated TagTestTag data_list = 1 [packed = false]; +} +message TestTbFullTypes { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbSingleton { + repeated TestDemoSingletonType data_list = 1 [packed = false]; +} +message TestTbNotIndexList { + repeated TestNotIndexList data_list = 1 [packed = false]; +} +message TestTbMultiUnionIndexList { + repeated TestMultiUnionIndexList data_list = 1 [packed = false]; +} +message TestTbMultiIndexList { + repeated TestMultiIndexList data_list = 1 [packed = false]; +} +message TestTbDataFromMisc { + repeated TestDemoType2 data_list = 1 [packed = false]; +} +message TestTbMultiRowRecord { + repeated TestMultiRowRecord data_list = 1 [packed = false]; +} +message TestTbTestMultiColumn { + repeated TestTestMultiColumn data_list = 1 [packed = false]; +} +message TestTbMultiRowTitle { + repeated TestMultiRowTitle data_list = 1 [packed = false]; +} +message TestTbTestNull { + repeated TestTestNull data_list = 1 [packed = false]; +} +message TestTbDemoPrimitive { + repeated TestDemoPrimitiveTypesTable data_list = 1 [packed = false]; +} +message TestTbTestString { + repeated TestTestString data_list = 1 [packed = false]; +} +message TestTbDemoGroup { + repeated TestDemoGroup data_list = 1 [packed = false]; +} +message TestTbTestGlobal { + repeated TestTestGlobal data_list = 1 [packed = false]; +} +message TestTbTestBeRef { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestBeRef2 { + repeated TestTestBeRef data_list = 1 [packed = false]; +} +message TestTbTestRef { + repeated TestTestRef data_list = 1 [packed = false]; +} +message TestTbTestSize { + repeated TestTestSize data_list = 1 [packed = false]; +} +message TestTbTestSet { + repeated TestTestSet data_list = 1 [packed = false]; +} +message TestTbDetectCsvEncoding { + repeated TestDetectEncoding data_list = 1 [packed = false]; +} +message TestTbItem2 { + repeated TestItemBase data_list = 1 [packed = false]; +} +message TestTbTestIndex { + repeated TestTestIndex data_list = 1 [packed = false]; +} +message TestTbTestMap { + repeated TestTestMap data_list = 1 [packed = false]; +} +message TestTbExcelFromJson { + repeated TestExcelFromJson data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable1 { + repeated TestCompositeJsonTable1 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable2 { + repeated TestCompositeJsonTable2 data_list = 1 [packed = false]; +} +message TestTbCompositeJsonTable3 { + repeated TestCompositeJsonTable3 data_list = 1 [packed = false]; +} +message TestTbExcelFromJsonMultiRow { + repeated TestExcelFromJsonMultiRow data_list = 1 [packed = false]; +} +message TestTbTestScriptableObject { + repeated TestTestScriptableObject data_list = 1 [packed = false]; +} +message TestTbTestMapper { + repeated TestTestMapper data_list = 1 [packed = false]; +} +message TestTbDefineFromExcel2 { + repeated DefineFromExcel2 data_list = 1 [packed = false]; +} + + diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/any.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/any.proto new file mode 100644 index 00000000..eff44e50 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/any.proto @@ -0,0 +1,162 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/known/anypb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "AnyProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// `Any` contains an arbitrary serialized protocol buffer message along with a +// URL that describes the type of the serialized message. +// +// Protobuf library provides support to pack/unpack Any values in the form +// of utility functions or additional generated methods of the Any type. +// +// Example 1: Pack and unpack a message in C++. +// +// Foo foo = ...; +// Any any; +// any.PackFrom(foo); +// ... +// if (any.UnpackTo(&foo)) { +// ... +// } +// +// Example 2: Pack and unpack a message in Java. +// +// Foo foo = ...; +// Any any = Any.pack(foo); +// ... +// if (any.is(Foo.class)) { +// foo = any.unpack(Foo.class); +// } +// // or ... +// if (any.isSameTypeAs(Foo.getDefaultInstance())) { +// foo = any.unpack(Foo.getDefaultInstance()); +// } +// +// Example 3: Pack and unpack a message in Python. +// +// foo = Foo(...) +// any = Any() +// any.Pack(foo) +// ... +// if any.Is(Foo.DESCRIPTOR): +// any.Unpack(foo) +// ... +// +// Example 4: Pack and unpack a message in Go +// +// foo := &pb.Foo{...} +// any, err := anypb.New(foo) +// if err != nil { +// ... +// } +// ... +// foo := &pb.Foo{} +// if err := any.UnmarshalTo(foo); err != nil { +// ... +// } +// +// The pack methods provided by protobuf library will by default use +// 'type.googleapis.com/full.type.name' as the type URL and the unpack +// methods only use the fully qualified type name after the last '/' +// in the type URL, for example "foo.bar.com/x/y.z" will yield type +// name "y.z". +// +// JSON +// ==== +// The JSON representation of an `Any` value uses the regular +// representation of the deserialized, embedded message, with an +// additional field `@type` which contains the type URL. Example: +// +// package google.profile; +// message Person { +// string first_name = 1; +// string last_name = 2; +// } +// +// { +// "@type": "type.googleapis.com/google.profile.Person", +// "firstName": , +// "lastName": +// } +// +// If the embedded message type is well-known and has a custom JSON +// representation, that representation will be embedded adding a field +// `value` which holds the custom JSON in addition to the `@type` +// field. Example (for message [google.protobuf.Duration][]): +// +// { +// "@type": "type.googleapis.com/google.protobuf.Duration", +// "value": "1.212s" +// } +// +message Any { + // A URL/resource name that uniquely identifies the type of the serialized + // protocol buffer message. This string must contain at least + // one "/" character. The last segment of the URL's path must represent + // the fully qualified name of the type (as in + // `path/google.protobuf.Duration`). The name should be in a canonical form + // (e.g., leading "." is not accepted). + // + // In practice, teams usually precompile into the binary all types that they + // expect it to use in the context of Any. However, for URLs which use the + // scheme `http`, `https`, or no scheme, one can optionally set up a type + // server that maps type URLs to message definitions as follows: + // + // * If no scheme is provided, `https` is assumed. + // * An HTTP GET on the URL must yield a [google.protobuf.Type][] + // value in binary format, or produce an error. + // * Applications are allowed to cache lookup results based on the + // URL, or have them precompiled into a binary to avoid any + // lookup. Therefore, binary compatibility needs to be preserved + // on changes to types. (Use versioned type names to manage + // breaking changes.) + // + // Note: this functionality is not currently available in the official + // protobuf release, and it is not used for type URLs beginning with + // type.googleapis.com. As of May 2023, there are no widely used type server + // implementations and no plans to implement one. + // + // Schemes other than `http`, `https` (or the empty scheme) might be + // used with implementation specific semantics. + // + string type_url = 1; + + // Must be a valid serialized protocol buffer of the above specified type. + bytes value = 2; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/api.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/api.proto new file mode 100644 index 00000000..42223516 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/api.proto @@ -0,0 +1,207 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +import "google/protobuf/source_context.proto"; +import "google/protobuf/type.proto"; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "ApiProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/apipb"; + +// Api is a light-weight descriptor for an API Interface. +// +// Interfaces are also described as "protocol buffer services" in some contexts, +// such as by the "service" keyword in a .proto file, but they are different +// from API Services, which represent a concrete implementation of an interface +// as opposed to simply a description of methods and bindings. They are also +// sometimes simply referred to as "APIs" in other contexts, such as the name of +// this message itself. See https://cloud.google.com/apis/design/glossary for +// detailed terminology. +message Api { + // The fully qualified name of this interface, including package name + // followed by the interface's simple name. + string name = 1; + + // The methods of this interface, in unspecified order. + repeated Method methods = 2; + + // Any metadata attached to the interface. + repeated Option options = 3; + + // A version string for this interface. If specified, must have the form + // `major-version.minor-version`, as in `1.10`. If the minor version is + // omitted, it defaults to zero. If the entire version field is empty, the + // major version is derived from the package name, as outlined below. If the + // field is not empty, the version in the package name will be verified to be + // consistent with what is provided here. + // + // The versioning schema uses [semantic + // versioning](http://semver.org) where the major version number + // indicates a breaking change and the minor version an additive, + // non-breaking change. Both version numbers are signals to users + // what to expect from different versions, and should be carefully + // chosen based on the product plan. + // + // The major version is also reflected in the package name of the + // interface, which must end in `v`, as in + // `google.feature.v1`. For major versions 0 and 1, the suffix can + // be omitted. Zero major versions must only be used for + // experimental, non-GA interfaces. + // + string version = 4; + + // Source context for the protocol buffer service represented by this + // message. + SourceContext source_context = 5; + + // Included interfaces. See [Mixin][]. + repeated Mixin mixins = 6; + + // The source syntax of the service. + Syntax syntax = 7; +} + +// Method represents a method of an API interface. +message Method { + // The simple name of this method. + string name = 1; + + // A URL of the input message type. + string request_type_url = 2; + + // If true, the request is streamed. + bool request_streaming = 3; + + // The URL of the output message type. + string response_type_url = 4; + + // If true, the response is streamed. + bool response_streaming = 5; + + // Any metadata attached to the method. + repeated Option options = 6; + + // The source syntax of this method. + Syntax syntax = 7; +} + +// Declares an API Interface to be included in this interface. The including +// interface must redeclare all the methods from the included interface, but +// documentation and options are inherited as follows: +// +// - If after comment and whitespace stripping, the documentation +// string of the redeclared method is empty, it will be inherited +// from the original method. +// +// - Each annotation belonging to the service config (http, +// visibility) which is not set in the redeclared method will be +// inherited. +// +// - If an http annotation is inherited, the path pattern will be +// modified as follows. Any version prefix will be replaced by the +// version of the including interface plus the [root][] path if +// specified. +// +// Example of a simple mixin: +// +// package google.acl.v1; +// service AccessControl { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v1/{resource=**}:getAcl"; +// } +// } +// +// package google.storage.v2; +// service Storage { +// rpc GetAcl(GetAclRequest) returns (Acl); +// +// // Get a data record. +// rpc GetData(GetDataRequest) returns (Data) { +// option (google.api.http).get = "/v2/{resource=**}"; +// } +// } +// +// Example of a mixin configuration: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// +// The mixin construct implies that all methods in `AccessControl` are +// also declared with same name and request/response types in +// `Storage`. A documentation generator or annotation processor will +// see the effective `Storage.GetAcl` method after inherting +// documentation and annotations as follows: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/{resource=**}:getAcl"; +// } +// ... +// } +// +// Note how the version in the path pattern changed from `v1` to `v2`. +// +// If the `root` field in the mixin is specified, it should be a +// relative path under which inherited HTTP paths are placed. Example: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// root: acls +// +// This implies the following inherited HTTP annotation: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; +// } +// ... +// } +message Mixin { + // The fully qualified name of the interface which is included. + string name = 1; + + // If non-empty specifies a path under which inherited HTTP paths + // are rooted. + string root = 2; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/compiler/plugin.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/compiler/plugin.proto new file mode 100644 index 00000000..1a809868 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/compiler/plugin.proto @@ -0,0 +1,191 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// +// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is +// just a program that reads a CodeGeneratorRequest from stdin and writes a +// CodeGeneratorResponse to stdout. +// +// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead +// of dealing with the raw protocol defined here. +// +// A plugin executable needs only to be placed somewhere in the path. The +// plugin should be named "protoc-gen-$NAME", and will then be used when the +// flag "--${NAME}_out" is passed to protoc. + +syntax = "proto2"; + +package google.protobuf.compiler; +option java_package = "com.google.protobuf.compiler"; +option java_outer_classname = "PluginProtos"; + +option csharp_namespace = "Google.Protobuf.Compiler"; +option go_package = "google.golang.org/protobuf/types/pluginpb"; + +import "google/protobuf/descriptor.proto"; + +// The version number of protocol compiler. +message Version { + optional int32 major = 1; + optional int32 minor = 2; + optional int32 patch = 3; + // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should + // be empty for mainline stable releases. + optional string suffix = 4; +} + +// An encoded CodeGeneratorRequest is written to the plugin's stdin. +message CodeGeneratorRequest { + // The .proto files that were explicitly listed on the command-line. The + // code generator should generate code only for these files. Each file's + // descriptor will be included in proto_file, below. + repeated string file_to_generate = 1; + + // The generator parameter passed on the command-line. + optional string parameter = 2; + + // FileDescriptorProtos for all files in files_to_generate and everything + // they import. The files will appear in topological order, so each file + // appears before any file that imports it. + // + // Note: the files listed in files_to_generate will include runtime-retention + // options only, but all other files will include source-retention options. + // The source_file_descriptors field below is available in case you need + // source-retention options for files_to_generate. + // + // protoc guarantees that all proto_files will be written after + // the fields above, even though this is not technically guaranteed by the + // protobuf wire format. This theoretically could allow a plugin to stream + // in the FileDescriptorProtos and handle them one by one rather than read + // the entire set into memory at once. However, as of this writing, this + // is not similarly optimized on protoc's end -- it will store all fields in + // memory at once before sending them to the plugin. + // + // Type names of fields and extensions in the FileDescriptorProto are always + // fully qualified. + repeated FileDescriptorProto proto_file = 15; + + // File descriptors with all options, including source-retention options. + // These descriptors are only provided for the files listed in + // files_to_generate. + repeated FileDescriptorProto source_file_descriptors = 17; + + // The version number of protocol compiler. + optional Version compiler_version = 3; +} + +// The plugin writes an encoded CodeGeneratorResponse to stdout. +message CodeGeneratorResponse { + // Error message. If non-empty, code generation failed. The plugin process + // should exit with status code zero even if it reports an error in this way. + // + // This should be used to indicate errors in .proto files which prevent the + // code generator from generating correct code. Errors which indicate a + // problem in protoc itself -- such as the input CodeGeneratorRequest being + // unparseable -- should be reported by writing a message to stderr and + // exiting with a non-zero status code. + optional string error = 1; + + // A bitmask of supported features that the code generator supports. + // This is a bitwise "or" of values from the Feature enum. + optional uint64 supported_features = 2; + + // Sync with code_generator.h. + enum Feature { + FEATURE_NONE = 0; + FEATURE_PROTO3_OPTIONAL = 1; + FEATURE_SUPPORTS_EDITIONS = 2; + } + + // Represents a single generated file. + message File { + // The file name, relative to the output directory. The name must not + // contain "." or ".." components and must be relative, not be absolute (so, + // the file cannot lie outside the output directory). "/" must be used as + // the path separator, not "\". + // + // If the name is omitted, the content will be appended to the previous + // file. This allows the generator to break large files into small chunks, + // and allows the generated text to be streamed back to protoc so that large + // files need not reside completely in memory at one time. Note that as of + // this writing protoc does not optimize for this -- it will read the entire + // CodeGeneratorResponse before writing files to disk. + optional string name = 1; + + // If non-empty, indicates that the named file should already exist, and the + // content here is to be inserted into that file at a defined insertion + // point. This feature allows a code generator to extend the output + // produced by another code generator. The original generator may provide + // insertion points by placing special annotations in the file that look + // like: + // @@protoc_insertion_point(NAME) + // The annotation can have arbitrary text before and after it on the line, + // which allows it to be placed in a comment. NAME should be replaced with + // an identifier naming the point -- this is what other generators will use + // as the insertion_point. Code inserted at this point will be placed + // immediately above the line containing the insertion point (thus multiple + // insertions to the same point will come out in the order they were added). + // The double-@ is intended to make it unlikely that the generated code + // could contain things that look like insertion points by accident. + // + // For example, the C++ code generator places the following line in the + // .pb.h files that it generates: + // // @@protoc_insertion_point(namespace_scope) + // This line appears within the scope of the file's package namespace, but + // outside of any particular class. Another plugin can then specify the + // insertion_point "namespace_scope" to generate additional classes or + // other declarations that should be placed in this scope. + // + // Note that if the line containing the insertion point begins with + // whitespace, the same whitespace will be added to every line of the + // inserted text. This is useful for languages like Python, where + // indentation matters. In these languages, the insertion point comment + // should be indented the same amount as any inserted code will need to be + // in order to work correctly in that context. + // + // The code generator that generates the initial file and the one which + // inserts into it must both run as part of a single invocation of protoc. + // Code generators are executed in the order in which they appear on the + // command line. + // + // If |insertion_point| is present, |name| must also be present. + optional string insertion_point = 2; + + // The file contents. + optional string content = 15; + + // Information describing the file content being inserted. If an insertion + // point is used, this information will be appropriately offset and inserted + // into the code generation metadata for the generated files. + optional GeneratedCodeInfo generated_code_info = 16; + } + repeated File file = 15; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/descriptor.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/descriptor.proto new file mode 100644 index 00000000..5f148224 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/descriptor.proto @@ -0,0 +1,1157 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). + +syntax = "proto2"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/descriptorpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DescriptorProtos"; +option csharp_namespace = "Google.Protobuf.Reflection"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; + +// descriptor.proto must be optimized for speed because reflection-based +// algorithms don't work during bootstrapping. +option optimize_for = SPEED; + +// The protocol compiler can output a FileDescriptorSet containing the .proto +// files it parses. +message FileDescriptorSet { + repeated FileDescriptorProto file = 1; +} + +// Describes a complete .proto file. +message FileDescriptorProto { + optional string name = 1; // file name, relative to root of source tree + optional string package = 2; // e.g. "foo", "foo.bar", etc. + + // Names of files imported by this file. + repeated string dependency = 3; + // Indexes of the public imported files in the dependency list above. + repeated int32 public_dependency = 10; + // Indexes of the weak imported files in the dependency list. + // For Google-internal migration only. Do not use. + repeated int32 weak_dependency = 11; + + // All top-level definitions in this file. + repeated DescriptorProto message_type = 4; + repeated EnumDescriptorProto enum_type = 5; + repeated ServiceDescriptorProto service = 6; + repeated FieldDescriptorProto extension = 7; + + optional FileOptions options = 8; + + // This field contains optional information about the original source code. + // You may safely remove this entire field without harming runtime + // functionality of the descriptors -- the information is needed only by + // development tools. + optional SourceCodeInfo source_code_info = 9; + + // The syntax of the proto file. + // The supported values are "proto2", "proto3", and "editions". + // + // If `edition` is present, this value must be "editions". + optional string syntax = 12; + + // The edition of the proto file, which is an opaque string. + optional string edition = 13; +} + +// Describes a message type. +message DescriptorProto { + optional string name = 1; + + repeated FieldDescriptorProto field = 2; + repeated FieldDescriptorProto extension = 6; + + repeated DescriptorProto nested_type = 3; + repeated EnumDescriptorProto enum_type = 4; + + message ExtensionRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Exclusive. + + optional ExtensionRangeOptions options = 3; + } + repeated ExtensionRange extension_range = 5; + + repeated OneofDescriptorProto oneof_decl = 8; + + optional MessageOptions options = 7; + + // Range of reserved tag numbers. Reserved tag numbers may not be used by + // fields or extension ranges in the same message. Reserved ranges may + // not overlap. + message ReservedRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Exclusive. + } + repeated ReservedRange reserved_range = 9; + // Reserved field names, which may not be used by fields in the same message. + // A given name may only be reserved once. + repeated string reserved_name = 10; +} + +message ExtensionRangeOptions { + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + message Declaration { + // The extension number declared within the extension range. + optional int32 number = 1; + + // The fully-qualified name of the extension field. There must be a leading + // dot in front of the full name. + optional string full_name = 2; + + // The fully-qualified type name of the extension field. Unlike + // Metadata.type, Declaration.type must have a leading dot for messages + // and enums. + optional string type = 3; + + // If true, indicates that the number is reserved in the extension range, + // and any extension field with the number will fail to compile. Set this + // when a declared extension field is deleted. + optional bool reserved = 5; + + // If true, indicates that the extension must be defined as repeated. + // Otherwise the extension must be defined as optional. + optional bool repeated = 6; + + reserved 4; // removed is_repeated + } + + // For external users: DO NOT USE. We are in the process of open sourcing + // extension declaration and executing internal cleanups before it can be + // used externally. + repeated Declaration declaration = 2 [retention = RETENTION_SOURCE]; + + // Any features defined in the specific edition. + optional FeatureSet features = 50; + + // The verification state of the extension range. + enum VerificationState { + // All the extensions of the range must be declared. + DECLARATION = 0; + UNVERIFIED = 1; + } + + // The verification state of the range. + // TODO(b/278783756): flip the default to DECLARATION once all empty ranges + // are marked as UNVERIFIED. + optional VerificationState verification = 3 [default = UNVERIFIED]; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +// Describes a field within a message. +message FieldDescriptorProto { + enum Type { + // 0 is reserved for errors. + // Order is weird for historical reasons. + TYPE_DOUBLE = 1; + TYPE_FLOAT = 2; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + // negative values are likely. + TYPE_INT64 = 3; + TYPE_UINT64 = 4; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + // negative values are likely. + TYPE_INT32 = 5; + TYPE_FIXED64 = 6; + TYPE_FIXED32 = 7; + TYPE_BOOL = 8; + TYPE_STRING = 9; + // Tag-delimited aggregate. + // Group type is deprecated and not supported in proto3. However, Proto3 + // implementations should still be able to parse the group wire format and + // treat group fields as unknown fields. + TYPE_GROUP = 10; + TYPE_MESSAGE = 11; // Length-delimited aggregate. + + // New in version 2. + TYPE_BYTES = 12; + TYPE_UINT32 = 13; + TYPE_ENUM = 14; + TYPE_SFIXED32 = 15; + TYPE_SFIXED64 = 16; + TYPE_SINT32 = 17; // Uses ZigZag encoding. + TYPE_SINT64 = 18; // Uses ZigZag encoding. + } + + enum Label { + // 0 is reserved for errors + LABEL_OPTIONAL = 1; + LABEL_REQUIRED = 2; + LABEL_REPEATED = 3; + } + + optional string name = 1; + optional int32 number = 3; + optional Label label = 4; + + // If type_name is set, this need not be set. If both this and type_name + // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + optional Type type = 5; + + // For message and enum types, this is the name of the type. If the name + // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + // rules are used to find the type (i.e. first the nested types within this + // message are searched, then within the parent, on up to the root + // namespace). + optional string type_name = 6; + + // For extensions, this is the name of the type being extended. It is + // resolved in the same manner as type_name. + optional string extendee = 2; + + // For numeric types, contains the original text representation of the value. + // For booleans, "true" or "false". + // For strings, contains the default text contents (not escaped in any way). + // For bytes, contains the C escaped value. All bytes >= 128 are escaped. + optional string default_value = 7; + + // If set, gives the index of a oneof in the containing type's oneof_decl + // list. This field is a member of that oneof. + optional int32 oneof_index = 9; + + // JSON name of this field. The value is set by protocol compiler. If the + // user has set a "json_name" option on this field, that option's value + // will be used. Otherwise, it's deduced from the field's name by converting + // it to camelCase. + optional string json_name = 10; + + optional FieldOptions options = 8; + + // If true, this is a proto3 "optional". When a proto3 field is optional, it + // tracks presence regardless of field type. + // + // When proto3_optional is true, this field must be belong to a oneof to + // signal to old proto3 clients that presence is tracked for this field. This + // oneof is known as a "synthetic" oneof, and this field must be its sole + // member (each proto3 optional field gets its own synthetic oneof). Synthetic + // oneofs exist in the descriptor only, and do not generate any API. Synthetic + // oneofs must be ordered after all "real" oneofs. + // + // For message fields, proto3_optional doesn't create any semantic change, + // since non-repeated message fields always track presence. However it still + // indicates the semantic detail of whether the user wrote "optional" or not. + // This can be useful for round-tripping the .proto file. For consistency we + // give message fields a synthetic oneof also, even though it is not required + // to track presence. This is especially important because the parser can't + // tell if a field is a message or an enum, so it must always create a + // synthetic oneof. + // + // Proto2 optional fields do not set this flag, because they already indicate + // optional with `LABEL_OPTIONAL`. + optional bool proto3_optional = 17; +} + +// Describes a oneof. +message OneofDescriptorProto { + optional string name = 1; + optional OneofOptions options = 2; +} + +// Describes an enum type. +message EnumDescriptorProto { + optional string name = 1; + + repeated EnumValueDescriptorProto value = 2; + + optional EnumOptions options = 3; + + // Range of reserved numeric values. Reserved values may not be used by + // entries in the same enum. Reserved ranges may not overlap. + // + // Note that this is distinct from DescriptorProto.ReservedRange in that it + // is inclusive such that it can appropriately represent the entire int32 + // domain. + message EnumReservedRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Inclusive. + } + + // Range of reserved numeric values. Reserved numeric values may not be used + // by enum values in the same enum declaration. Reserved ranges may not + // overlap. + repeated EnumReservedRange reserved_range = 4; + + // Reserved enum value names, which may not be reused. A given name may only + // be reserved once. + repeated string reserved_name = 5; +} + +// Describes a value within an enum. +message EnumValueDescriptorProto { + optional string name = 1; + optional int32 number = 2; + + optional EnumValueOptions options = 3; +} + +// Describes a service. +message ServiceDescriptorProto { + optional string name = 1; + repeated MethodDescriptorProto method = 2; + + optional ServiceOptions options = 3; +} + +// Describes a method of a service. +message MethodDescriptorProto { + optional string name = 1; + + // Input and output type names. These are resolved in the same way as + // FieldDescriptorProto.type_name, but must refer to a message type. + optional string input_type = 2; + optional string output_type = 3; + + optional MethodOptions options = 4; + + // Identifies if client streams multiple client messages + optional bool client_streaming = 5 [default = false]; + // Identifies if server streams multiple server messages + optional bool server_streaming = 6 [default = false]; +} + +// =================================================================== +// Options + +// Each of the definitions above may have "options" attached. These are +// just annotations which may cause code to be generated slightly differently +// or may contain hints for code that manipulates protocol messages. +// +// Clients may define custom options as extensions of the *Options messages. +// These extensions may not yet be known at parsing time, so the parser cannot +// store the values in them. Instead it stores them in a field in the *Options +// message called uninterpreted_option. This field must have the same name +// across all *Options messages. We then use this field to populate the +// extensions when we build a descriptor, at which point all protos have been +// parsed and so all extensions are known. +// +// Extension numbers for custom options may be chosen as follows: +// * For options which will only be used within a single application or +// organization, or for experimental options, use field numbers 50000 +// through 99999. It is up to you to ensure that you do not use the +// same number for multiple options. +// * For options which will be published and used publicly by multiple +// independent entities, e-mail protobuf-global-extension-registry@google.com +// to reserve extension numbers. Simply provide your project name (e.g. +// Objective-C plugin) and your project website (if available) -- there's no +// need to explain how you intend to use them. Usually you only need one +// extension number. You can declare multiple options with only one extension +// number by putting them in a sub-message. See the Custom Options section of +// the docs for examples: +// https://developers.google.com/protocol-buffers/docs/proto#options +// If this turns out to be popular, a web service will be set up +// to automatically assign option numbers. + +message FileOptions { + + // Sets the Java package where classes generated from this .proto will be + // placed. By default, the proto package is used, but this is often + // inappropriate because proto packages do not normally start with backwards + // domain names. + optional string java_package = 1; + + // Controls the name of the wrapper Java class generated for the .proto file. + // That class will always contain the .proto file's getDescriptor() method as + // well as any top-level extensions defined in the .proto file. + // If java_multiple_files is disabled, then all the other classes from the + // .proto file will be nested inside the single wrapper outer class. + optional string java_outer_classname = 8; + + // If enabled, then the Java code generator will generate a separate .java + // file for each top-level message, enum, and service defined in the .proto + // file. Thus, these types will *not* be nested inside the wrapper class + // named by java_outer_classname. However, the wrapper class will still be + // generated to contain the file's getDescriptor() method as well as any + // top-level extensions defined in the file. + optional bool java_multiple_files = 10 [default = false]; + + // This option does nothing. + optional bool java_generate_equals_and_hash = 20 [deprecated=true]; + + // If set true, then the Java2 code generator will generate code that + // throws an exception whenever an attempt is made to assign a non-UTF-8 + // byte sequence to a string field. + // Message reflection will do the same. + // However, an extension field still accepts non-UTF-8 byte sequences. + // This option has no effect on when used with the lite runtime. + optional bool java_string_check_utf8 = 27 [default = false]; + + // Generated classes can be optimized for speed or code size. + enum OptimizeMode { + SPEED = 1; // Generate complete code for parsing, serialization, + // etc. + CODE_SIZE = 2; // Use ReflectionOps to implement these methods. + LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. + } + optional OptimizeMode optimize_for = 9 [default = SPEED]; + + // Sets the Go package where structs generated from this .proto will be + // placed. If omitted, the Go package will be derived from the following: + // - The basename of the package import path, if provided. + // - Otherwise, the package statement in the .proto file, if present. + // - Otherwise, the basename of the .proto file, without extension. + optional string go_package = 11; + + // Should generic services be generated in each language? "Generic" services + // are not specific to any particular RPC system. They are generated by the + // main code generators in each language (without additional plugins). + // Generic services were the only kind of service generation supported by + // early versions of google.protobuf. + // + // Generic services are now considered deprecated in favor of using plugins + // that generate code specific to your particular RPC system. Therefore, + // these default to false. Old code which depends on generic services should + // explicitly set them to true. + optional bool cc_generic_services = 16 [default = false]; + optional bool java_generic_services = 17 [default = false]; + optional bool py_generic_services = 18 [default = false]; + optional bool php_generic_services = 42 [default = false]; + + // Is this file deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for everything in the file, or it will be completely ignored; in the very + // least, this is a formalization for deprecating files. + optional bool deprecated = 23 [default = false]; + + // Enables the use of arenas for the proto messages in this file. This applies + // only to generated classes for C++. + optional bool cc_enable_arenas = 31 [default = true]; + + // Sets the objective c class prefix which is prepended to all objective c + // generated classes from this .proto. There is no default. + optional string objc_class_prefix = 36; + + // Namespace for generated classes; defaults to the package. + optional string csharp_namespace = 37; + + // By default Swift generators will take the proto package and CamelCase it + // replacing '.' with underscore and use that to prefix the types/symbols + // defined. When this options is provided, they will use this value instead + // to prefix the types/symbols defined. + optional string swift_prefix = 39; + + // Sets the php class prefix which is prepended to all php generated classes + // from this .proto. Default is empty. + optional string php_class_prefix = 40; + + // Use this option to change the namespace of php generated classes. Default + // is empty. When this option is empty, the package name will be used for + // determining the namespace. + optional string php_namespace = 41; + + // Use this option to change the namespace of php generated metadata classes. + // Default is empty. When this option is empty, the proto file name will be + // used for determining the namespace. + optional string php_metadata_namespace = 44; + + // Use this option to change the package of ruby generated classes. Default + // is empty. When this option is not set, the package name will be used for + // determining the ruby package. + optional string ruby_package = 45; + + // Any features defined in the specific edition. + optional FeatureSet features = 50; + + // The parser stores options it doesn't recognize here. + // See the documentation for the "Options" section above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. + // See the documentation for the "Options" section above. + extensions 1000 to max; + + reserved 38; +} + +message MessageOptions { + // Set true to use the old proto1 MessageSet wire format for extensions. + // This is provided for backwards-compatibility with the MessageSet wire + // format. You should not use this for any other reason: It's less + // efficient, has fewer features, and is more complicated. + // + // The message must be defined exactly as follows: + // message Foo { + // option message_set_wire_format = true; + // extensions 4 to max; + // } + // Note that the message cannot have any defined fields; MessageSets only + // have extensions. + // + // All extensions of your type must be singular messages; e.g. they cannot + // be int32s, enums, or repeated messages. + // + // Because this is an option, the above two restrictions are not enforced by + // the protocol compiler. + optional bool message_set_wire_format = 1 [default = false]; + + // Disables the generation of the standard "descriptor()" accessor, which can + // conflict with a field of the same name. This is meant to make migration + // from proto1 easier; new code should avoid fields named "descriptor". + optional bool no_standard_descriptor_accessor = 2 [default = false]; + + // Is this message deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the message, or it will be completely ignored; in the very least, + // this is a formalization for deprecating messages. + optional bool deprecated = 3 [default = false]; + + reserved 4, 5, 6; + + // NOTE: Do not set the option in .proto files. Always use the maps syntax + // instead. The option should only be implicitly set by the proto compiler + // parser. + // + // Whether the message is an automatically generated map entry type for the + // maps field. + // + // For maps fields: + // map map_field = 1; + // The parsed descriptor looks like: + // message MapFieldEntry { + // option map_entry = true; + // optional KeyType key = 1; + // optional ValueType value = 2; + // } + // repeated MapFieldEntry map_field = 1; + // + // Implementations may choose not to generate the map_entry=true message, but + // use a native map in the target language to hold the keys and values. + // The reflection APIs in such implementations still need to work as + // if the field is a repeated message field. + optional bool map_entry = 7; + + reserved 8; // javalite_serializable + reserved 9; // javanano_as_lite + + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // + // This should only be used as a temporary measure against broken builds due + // to the change in behavior for JSON field name conflicts. + // + // TODO(b/261750190) This is legacy behavior we plan to remove once downstream + // teams have had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 12; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message FieldOptions { + // The ctype option instructs the C++ code generator to use a different + // representation of the field than it normally would. See the specific + // options below. This option is only implemented to support use of + // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of + // type "bytes" in the open source release -- sorry, we'll try to include + // other types in a future version! + optional CType ctype = 1 [default = STRING]; + enum CType { + // Default mode. + STRING = 0; + + // The option [ctype=CORD] may be applied to a non-repeated field of type + // "bytes". It indicates that in C++, the data should be stored in a Cord + // instead of a string. For very large strings, this may reduce memory + // fragmentation. It may also allow better performance when parsing from a + // Cord, or when parsing with aliasing enabled, as the parsed Cord may then + // alias the original buffer. + CORD = 1; + + STRING_PIECE = 2; + } + // The packed option can be enabled for repeated primitive fields to enable + // a more efficient representation on the wire. Rather than repeatedly + // writing the tag and type for each element, the entire array is encoded as + // a single length-delimited blob. In proto3, only explicit setting it to + // false will avoid using packed encoding. + optional bool packed = 2; + + // The jstype option determines the JavaScript type used for values of the + // field. The option is permitted only for 64 bit integral and fixed types + // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + // is represented as JavaScript string, which avoids loss of precision that + // can happen when a large value is converted to a floating point JavaScript. + // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + // use the JavaScript "number" type. The behavior of the default option + // JS_NORMAL is implementation dependent. + // + // This option is an enum to permit additional types to be added, e.g. + // goog.math.Integer. + optional JSType jstype = 6 [default = JS_NORMAL]; + enum JSType { + // Use the default type. + JS_NORMAL = 0; + + // Use JavaScript strings. + JS_STRING = 1; + + // Use JavaScript numbers. + JS_NUMBER = 2; + } + + // Should this field be parsed lazily? Lazy applies only to message-type + // fields. It means that when the outer message is initially parsed, the + // inner message's contents will not be parsed but instead stored in encoded + // form. The inner message will actually be parsed when it is first accessed. + // + // This is only a hint. Implementations are free to choose whether to use + // eager or lazy parsing regardless of the value of this option. However, + // setting this option true suggests that the protocol author believes that + // using lazy parsing on this field is worth the additional bookkeeping + // overhead typically needed to implement it. + // + // This option does not affect the public interface of any generated code; + // all method signatures remain the same. Furthermore, thread-safety of the + // interface is not affected by this option; const methods remain safe to + // call from multiple threads concurrently, while non-const methods continue + // to require exclusive access. + // + // Note that implementations may choose not to check required fields within + // a lazy sub-message. That is, calling IsInitialized() on the outer message + // may return true even if the inner message has missing required fields. + // This is necessary because otherwise the inner message would have to be + // parsed in order to perform the check, defeating the purpose of lazy + // parsing. An implementation which chooses not to check required fields + // must be consistent about it. That is, for any particular sub-message, the + // implementation must either *always* check its required fields, or *never* + // check its required fields, regardless of whether or not the message has + // been parsed. + // + // As of May 2022, lazy verifies the contents of the byte stream during + // parsing. An invalid byte stream will cause the overall parsing to fail. + optional bool lazy = 5 [default = false]; + + // unverified_lazy does no correctness checks on the byte stream. This should + // only be used where lazy with verification is prohibitive for performance + // reasons. + optional bool unverified_lazy = 15 [default = false]; + + // Is this field deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for accessors, or it will be completely ignored; in the very least, this + // is a formalization for deprecating fields. + optional bool deprecated = 3 [default = false]; + + // For Google-internal migration only. Do not use. + optional bool weak = 10 [default = false]; + + // Indicate that the field value should not be printed out when using debug + // formats, e.g. when the field contains sensitive credentials. + optional bool debug_redact = 16 [default = false]; + + // If set to RETENTION_SOURCE, the option will be omitted from the binary. + // Note: as of January 2023, support for this is in progress and does not yet + // have an effect (b/264593489). + enum OptionRetention { + RETENTION_UNKNOWN = 0; + RETENTION_RUNTIME = 1; + RETENTION_SOURCE = 2; + } + + optional OptionRetention retention = 17; + + // This indicates the types of entities that the field may apply to when used + // as an option. If it is unset, then the field may be freely used as an + // option on any kind of entity. Note: as of January 2023, support for this is + // in progress and does not yet have an effect (b/264593489). + enum OptionTargetType { + TARGET_TYPE_UNKNOWN = 0; + TARGET_TYPE_FILE = 1; + TARGET_TYPE_EXTENSION_RANGE = 2; + TARGET_TYPE_MESSAGE = 3; + TARGET_TYPE_FIELD = 4; + TARGET_TYPE_ONEOF = 5; + TARGET_TYPE_ENUM = 6; + TARGET_TYPE_ENUM_ENTRY = 7; + TARGET_TYPE_SERVICE = 8; + TARGET_TYPE_METHOD = 9; + } + + repeated OptionTargetType targets = 19; + + message EditionDefault { + optional string edition = 1; + optional string value = 2; // Textproto value. + } + repeated EditionDefault edition_defaults = 20; + + // Any features defined in the specific edition. + optional FeatureSet features = 21; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; + + reserved 4; // removed jtype + reserved 18; // reserve target, target_obsolete_do_not_use +} + +message OneofOptions { + // Any features defined in the specific edition. + optional FeatureSet features = 1; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumOptions { + + // Set this option to true to allow mapping different tag names to the same + // value. + optional bool allow_alias = 2; + + // Is this enum deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum, or it will be completely ignored; in the very least, this + // is a formalization for deprecating enums. + optional bool deprecated = 3 [default = false]; + + reserved 5; // javanano_as_lite + + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // TODO(b/261750190) Remove this legacy behavior once downstream teams have + // had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 7; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumValueOptions { + // Is this enum value deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum value, or it will be completely ignored; in the very least, + // this is a formalization for deprecating enum values. + optional bool deprecated = 1 [default = false]; + + // Any features defined in the specific edition. + optional FeatureSet features = 2; + + // Indicate that fields annotated with this enum value should not be printed + // out when using debug formats, e.g. when the field contains sensitive + // credentials. + optional bool debug_redact = 3 [default = false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message ServiceOptions { + + // Any features defined in the specific edition. + optional FeatureSet features = 34; + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this service deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the service, or it will be completely ignored; in the very least, + // this is a formalization for deprecating services. + optional bool deprecated = 33 [default = false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message MethodOptions { + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this method deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the method, or it will be completely ignored; in the very least, + // this is a formalization for deprecating methods. + optional bool deprecated = 33 [default = false]; + + // Is this method side-effect-free (or safe in HTTP parlance), or idempotent, + // or neither? HTTP based RPC implementation may choose GET verb for safe + // methods, and PUT verb for idempotent methods instead of the default POST. + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0; + NO_SIDE_EFFECTS = 1; // implies idempotent + IDEMPOTENT = 2; // idempotent, but may have side effects + } + optional IdempotencyLevel idempotency_level = 34 + [default = IDEMPOTENCY_UNKNOWN]; + + // Any features defined in the specific edition. + optional FeatureSet features = 35; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +// A message representing a option the parser does not recognize. This only +// appears in options protos created by the compiler::Parser class. +// DescriptorPool resolves these when building Descriptor objects. Therefore, +// options protos in descriptor objects (e.g. returned by Descriptor::options(), +// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +// in them. +message UninterpretedOption { + // The name of the uninterpreted option. Each string represents a segment in + // a dot-separated name. is_extension is true iff a segment represents an + // extension (denoted with parentheses in options specs in .proto files). + // E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents + // "foo.(bar.baz).moo". + message NamePart { + required string name_part = 1; + required bool is_extension = 2; + } + repeated NamePart name = 2; + + // The value of the uninterpreted option, in whatever type the tokenizer + // identified it as during parsing. Exactly one of these should be set. + optional string identifier_value = 3; + optional uint64 positive_int_value = 4; + optional int64 negative_int_value = 5; + optional double double_value = 6; + optional bytes string_value = 7; + optional string aggregate_value = 8; +} + +// =================================================================== +// Features + +// TODO(b/274655146) Enums in C++ gencode (and potentially other languages) are +// not well scoped. This means that each of the feature enums below can clash +// with each other. The short names we've chosen maximize call-site +// readability, but leave us very open to this scenario. A future feature will +// be designed and implemented to handle this, hopefully before we ever hit a +// conflict here. +message FeatureSet { + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0; + EXPLICIT = 1; + IMPLICIT = 2; + LEGACY_REQUIRED = 3; + } + optional FieldPresence field_presence = 1 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "EXPLICIT" } + ]; + + enum EnumType { + ENUM_TYPE_UNKNOWN = 0; + OPEN = 1; + CLOSED = 2; + } + optional EnumType enum_type = 2 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "OPEN" } + ]; + + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0; + PACKED = 1; + EXPANDED = 2; + } + optional RepeatedFieldEncoding repeated_field_encoding = 3 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "PACKED" } + ]; + + enum StringFieldValidation { + STRING_FIELD_VALIDATION_UNKNOWN = 0; + MANDATORY = 1; + HINT = 2; + NONE = 3; + } + optional StringFieldValidation string_field_validation = 4 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "MANDATORY" } + ]; + + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0; + LENGTH_PREFIXED = 1; + DELIMITED = 2; + } + optional MessageEncoding message_encoding = 5 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "LENGTH_PREFIXED" } + ]; + + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0; + ALLOW = 1; + LEGACY_BEST_EFFORT = 2; + } + optional JsonFormat json_format = 6 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_MESSAGE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + edition_defaults = { edition: "2023", value: "ALLOW" } + ]; + + optional FeatureSet raw_features = 999 [targets = TARGET_TYPE_UNKNOWN]; + + extensions 1000; // for Protobuf C++ + extensions 1001; // for Protobuf Java + + extensions 9995 to 9999; // For internal testing +} + +// =================================================================== +// Optional source code info + +// Encapsulates information about the original source file from which a +// FileDescriptorProto was generated. +message SourceCodeInfo { + // A Location identifies a piece of source code in a .proto file which + // corresponds to a particular definition. This information is intended + // to be useful to IDEs, code indexers, documentation generators, and similar + // tools. + // + // For example, say we have a file like: + // message Foo { + // optional string foo = 1; + // } + // Let's look at just the field definition: + // optional string foo = 1; + // ^ ^^ ^^ ^ ^^^ + // a bc de f ghi + // We have the following locations: + // span path represents + // [a,i) [ 4, 0, 2, 0 ] The whole field definition. + // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + // + // Notes: + // - A location may refer to a repeated field itself (i.e. not to any + // particular index within it). This is used whenever a set of elements are + // logically enclosed in a single code segment. For example, an entire + // extend block (possibly containing multiple extension definitions) will + // have an outer location whose path refers to the "extensions" repeated + // field without an index. + // - Multiple locations may have the same path. This happens when a single + // logical declaration is spread out across multiple places. The most + // obvious example is the "extend" block again -- there may be multiple + // extend blocks in the same scope, each of which will have the same path. + // - A location's span is not always a subset of its parent's span. For + // example, the "extendee" of an extension declaration appears at the + // beginning of the "extend" block and is shared by all extensions within + // the block. + // - Just because a location's span is a subset of some other location's span + // does not mean that it is a descendant. For example, a "group" defines + // both a type and a field in a single declaration. Thus, the locations + // corresponding to the type and field and their components will overlap. + // - Code which tries to interpret locations should probably be designed to + // ignore those that it doesn't understand, as more types of locations could + // be recorded in the future. + repeated Location location = 1; + message Location { + // Identifies which part of the FileDescriptorProto was defined at this + // location. + // + // Each element is a field number or an index. They form a path from + // the root FileDescriptorProto to the place where the definition occurs. + // For example, this path: + // [ 4, 3, 2, 7, 1 ] + // refers to: + // file.message_type(3) // 4, 3 + // .field(7) // 2, 7 + // .name() // 1 + // This is because FileDescriptorProto.message_type has field number 4: + // repeated DescriptorProto message_type = 4; + // and DescriptorProto.field has field number 2: + // repeated FieldDescriptorProto field = 2; + // and FieldDescriptorProto.name has field number 1: + // optional string name = 1; + // + // Thus, the above path gives the location of a field name. If we removed + // the last element: + // [ 4, 3, 2, 7 ] + // this path refers to the whole field declaration (from the beginning + // of the label to the terminating semicolon). + repeated int32 path = 1 [packed = true]; + + // Always has exactly three or four elements: start line, start column, + // end line (optional, otherwise assumed same as start line), end column. + // These are packed into a single field for efficiency. Note that line + // and column numbers are zero-based -- typically you will want to add + // 1 to each before displaying to a user. + repeated int32 span = 2 [packed = true]; + + // If this SourceCodeInfo represents a complete declaration, these are any + // comments appearing before and after the declaration which appear to be + // attached to the declaration. + // + // A series of line comments appearing on consecutive lines, with no other + // tokens appearing on those lines, will be treated as a single comment. + // + // leading_detached_comments will keep paragraphs of comments that appear + // before (but not connected to) the current element. Each paragraph, + // separated by empty lines, will be one comment element in the repeated + // field. + // + // Only the comment content is provided; comment markers (e.g. //) are + // stripped out. For block comments, leading whitespace and an asterisk + // will be stripped from the beginning of each line other than the first. + // Newlines are included in the output. + // + // Examples: + // + // optional int32 foo = 1; // Comment attached to foo. + // // Comment attached to bar. + // optional int32 bar = 2; + // + // optional string baz = 3; + // // Comment attached to baz. + // // Another line attached to baz. + // + // // Comment attached to moo. + // // + // // Another line attached to moo. + // optional double moo = 4; + // + // // Detached comment for corge. This is not leading or trailing comments + // // to moo or corge because there are blank lines separating it from + // // both. + // + // // Detached comment for corge paragraph 2. + // + // optional string corge = 5; + // /* Block comment attached + // * to corge. Leading asterisks + // * will be removed. */ + // /* Block comment attached to + // * grault. */ + // optional int32 grault = 6; + // + // // ignored detached comments. + optional string leading_comments = 3; + optional string trailing_comments = 4; + repeated string leading_detached_comments = 6; + } +} + +// Describes the relationship between generated code and its original source +// file. A GeneratedCodeInfo message is associated with only one generated +// source file, but may contain references to different source .proto files. +message GeneratedCodeInfo { + // An Annotation connects some span of text in generated code to an element + // of its generating .proto file. + repeated Annotation annotation = 1; + message Annotation { + // Identifies the element in the original source .proto file. This field + // is formatted the same as SourceCodeInfo.Location.path. + repeated int32 path = 1 [packed = true]; + + // Identifies the filesystem path to the original source .proto. + optional string source_file = 2; + + // Identifies the starting offset in bytes in the generated code + // that relates to the identified object. + optional int32 begin = 3; + + // Identifies the ending offset in bytes in the generated code that + // relates to the identified object. The end offset should be one past + // the last relevant byte (so the length of the text = end - begin). + optional int32 end = 4; + + // Represents the identified object's effect on the element in the original + // .proto file. + enum Semantic { + // There is no effect or the effect is indescribable. + NONE = 0; + // The element is set or otherwise mutated. + SET = 1; + // An alias to the element is returned. + ALIAS = 2; + } + optional Semantic semantic = 5; + } +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/duration.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/duration.proto new file mode 100644 index 00000000..41f40c22 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/duration.proto @@ -0,0 +1,115 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/durationpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DurationProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Duration represents a signed, fixed-length span of time represented +// as a count of seconds and fractions of seconds at nanosecond +// resolution. It is independent of any calendar and concepts like "day" +// or "month". It is related to Timestamp in that the difference between +// two Timestamp values is a Duration and it can be added or subtracted +// from a Timestamp. Range is approximately +-10,000 years. +// +// # Examples +// +// Example 1: Compute Duration from two Timestamps in pseudo code. +// +// Timestamp start = ...; +// Timestamp end = ...; +// Duration duration = ...; +// +// duration.seconds = end.seconds - start.seconds; +// duration.nanos = end.nanos - start.nanos; +// +// if (duration.seconds < 0 && duration.nanos > 0) { +// duration.seconds += 1; +// duration.nanos -= 1000000000; +// } else if (duration.seconds > 0 && duration.nanos < 0) { +// duration.seconds -= 1; +// duration.nanos += 1000000000; +// } +// +// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +// +// Timestamp start = ...; +// Duration duration = ...; +// Timestamp end = ...; +// +// end.seconds = start.seconds + duration.seconds; +// end.nanos = start.nanos + duration.nanos; +// +// if (end.nanos < 0) { +// end.seconds -= 1; +// end.nanos += 1000000000; +// } else if (end.nanos >= 1000000000) { +// end.seconds += 1; +// end.nanos -= 1000000000; +// } +// +// Example 3: Compute Duration from datetime.timedelta in Python. +// +// td = datetime.timedelta(days=3, minutes=10) +// duration = Duration() +// duration.FromTimedelta(td) +// +// # JSON Mapping +// +// In JSON format, the Duration type is encoded as a string rather than an +// object, where the string ends in the suffix "s" (indicating seconds) and +// is preceded by the number of seconds, with nanoseconds expressed as +// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +// microsecond should be expressed in JSON format as "3.000001s". +// +message Duration { + // Signed seconds of the span of time. Must be from -315,576,000,000 + // to +315,576,000,000 inclusive. Note: these bounds are computed from: + // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + int64 seconds = 1; + + // Signed fractions of a second at nanosecond resolution of the span + // of time. Durations less than one second are represented with a 0 + // `seconds` field and a positive or negative `nanos` field. For durations + // of one second or more, a non-zero value for the `nanos` field must be + // of the same sign as the `seconds` field. Must be from -999,999,999 + // to +999,999,999 inclusive. + int32 nanos = 2; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/empty.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/empty.proto new file mode 100644 index 00000000..b87c89dc --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/empty.proto @@ -0,0 +1,51 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option go_package = "google.golang.org/protobuf/types/known/emptypb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "EmptyProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option cc_enable_arenas = true; + +// A generic empty message that you can re-use to avoid defining duplicated +// empty messages in your APIs. A typical example is to use it as the request +// or the response type of an API method. For instance: +// +// service Foo { +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +// } +// +message Empty {} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/field_mask.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/field_mask.proto new file mode 100644 index 00000000..b28334b9 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/field_mask.proto @@ -0,0 +1,245 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "FieldMaskProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb"; +option cc_enable_arenas = true; + +// `FieldMask` represents a set of symbolic field paths, for example: +// +// paths: "f.a" +// paths: "f.b.d" +// +// Here `f` represents a field in some root message, `a` and `b` +// fields in the message found in `f`, and `d` a field found in the +// message in `f.b`. +// +// Field masks are used to specify a subset of fields that should be +// returned by a get operation or modified by an update operation. +// Field masks also have a custom JSON encoding (see below). +// +// # Field Masks in Projections +// +// When used in the context of a projection, a response message or +// sub-message is filtered by the API to only contain those fields as +// specified in the mask. For example, if the mask in the previous +// example is applied to a response message as follows: +// +// f { +// a : 22 +// b { +// d : 1 +// x : 2 +// } +// y : 13 +// } +// z: 8 +// +// The result will not contain specific values for fields x,y and z +// (their value will be set to the default, and omitted in proto text +// output): +// +// +// f { +// a : 22 +// b { +// d : 1 +// } +// } +// +// A repeated field is not allowed except at the last position of a +// paths string. +// +// If a FieldMask object is not present in a get operation, the +// operation applies to all fields (as if a FieldMask of all fields +// had been specified). +// +// Note that a field mask does not necessarily apply to the +// top-level response message. In case of a REST get operation, the +// field mask applies directly to the response, but in case of a REST +// list operation, the mask instead applies to each individual message +// in the returned resource list. In case of a REST custom method, +// other definitions may be used. Where the mask applies will be +// clearly documented together with its declaration in the API. In +// any case, the effect on the returned resource/resources is required +// behavior for APIs. +// +// # Field Masks in Update Operations +// +// A field mask in update operations specifies which fields of the +// targeted resource are going to be updated. The API is required +// to only change the values of the fields as specified in the mask +// and leave the others untouched. If a resource is passed in to +// describe the updated values, the API ignores the values of all +// fields not covered by the mask. +// +// If a repeated field is specified for an update operation, new values will +// be appended to the existing repeated field in the target resource. Note that +// a repeated field is only allowed in the last position of a `paths` string. +// +// If a sub-message is specified in the last position of the field mask for an +// update operation, then new value will be merged into the existing sub-message +// in the target resource. +// +// For example, given the target message: +// +// f { +// b { +// d: 1 +// x: 2 +// } +// c: [1] +// } +// +// And an update message: +// +// f { +// b { +// d: 10 +// } +// c: [2] +// } +// +// then if the field mask is: +// +// paths: ["f.b", "f.c"] +// +// then the result will be: +// +// f { +// b { +// d: 10 +// x: 2 +// } +// c: [1, 2] +// } +// +// An implementation may provide options to override this default behavior for +// repeated and message fields. +// +// In order to reset a field's value to the default, the field must +// be in the mask and set to the default value in the provided resource. +// Hence, in order to reset all fields of a resource, provide a default +// instance of the resource and set all fields in the mask, or do +// not provide a mask as described below. +// +// If a field mask is not present on update, the operation applies to +// all fields (as if a field mask of all fields has been specified). +// Note that in the presence of schema evolution, this may mean that +// fields the client does not know and has therefore not filled into +// the request will be reset to their default. If this is unwanted +// behavior, a specific service may require a client to always specify +// a field mask, producing an error if not. +// +// As with get operations, the location of the resource which +// describes the updated values in the request message depends on the +// operation kind. In any case, the effect of the field mask is +// required to be honored by the API. +// +// ## Considerations for HTTP REST +// +// The HTTP kind of an update operation which uses a field mask must +// be set to PATCH instead of PUT in order to satisfy HTTP semantics +// (PUT must only be used for full updates). +// +// # JSON Encoding of Field Masks +// +// In JSON, a field mask is encoded as a single string where paths are +// separated by a comma. Fields name in each path are converted +// to/from lower-camel naming conventions. +// +// As an example, consider the following message declarations: +// +// message Profile { +// User user = 1; +// Photo photo = 2; +// } +// message User { +// string display_name = 1; +// string address = 2; +// } +// +// In proto a field mask for `Profile` may look as such: +// +// mask { +// paths: "user.display_name" +// paths: "photo" +// } +// +// In JSON, the same mask is represented as below: +// +// { +// mask: "user.displayName,photo" +// } +// +// # Field Masks and Oneof Fields +// +// Field masks treat fields in oneofs just as regular fields. Consider the +// following message: +// +// message SampleMessage { +// oneof test_oneof { +// string name = 4; +// SubMessage sub_message = 9; +// } +// } +// +// The field mask can be: +// +// mask { +// paths: "name" +// } +// +// Or: +// +// mask { +// paths: "sub_message" +// } +// +// Note that oneof type names ("test_oneof" in this case) cannot be used in +// paths. +// +// ## Field Mask Verification +// +// The implementation of any API method which has a FieldMask type field in the +// request should verify the included field paths, and return an +// `INVALID_ARGUMENT` error if any path is unmappable. +message FieldMask { + // The set of field mask paths. + repeated string paths = 1; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/source_context.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/source_context.proto new file mode 100644 index 00000000..135f50fe --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/source_context.proto @@ -0,0 +1,48 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option java_package = "com.google.protobuf"; +option java_outer_classname = "SourceContextProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb"; + +// `SourceContext` represents information about the source of a +// protobuf element, like the file in which it is defined. +message SourceContext { + // The path-qualified name of the .proto file that contained the associated + // protobuf element. For example: `"google/protobuf/source_context.proto"`. + string file_name = 1; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/struct.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/struct.proto new file mode 100644 index 00000000..1bf0c1ad --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/struct.proto @@ -0,0 +1,95 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/structpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "StructProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// `Struct` represents a structured data value, consisting of fields +// which map to dynamically typed values. In some languages, `Struct` +// might be supported by a native representation. For example, in +// scripting languages like JS a struct is represented as an +// object. The details of that representation are described together +// with the proto support for the language. +// +// The JSON representation for `Struct` is JSON object. +message Struct { + // Unordered map of dynamically typed values. + map fields = 1; +} + +// `Value` represents a dynamically typed value which can be either +// null, a number, a string, a boolean, a recursive struct value, or a +// list of values. A producer of value is expected to set one of these +// variants. Absence of any variant indicates an error. +// +// The JSON representation for `Value` is JSON value. +message Value { + // The kind of value. + oneof kind { + // Represents a null value. + NullValue null_value = 1; + // Represents a double value. + double number_value = 2; + // Represents a string value. + string string_value = 3; + // Represents a boolean value. + bool bool_value = 4; + // Represents a structured value. + Struct struct_value = 5; + // Represents a repeated `Value`. + ListValue list_value = 6; + } +} + +// `NullValue` is a singleton enumeration to represent the null value for the +// `Value` type union. +// +// The JSON representation for `NullValue` is JSON `null`. +enum NullValue { + // Null value. + NULL_VALUE = 0; +} + +// `ListValue` is a wrapper around a repeated field of values. +// +// The JSON representation for `ListValue` is JSON array. +message ListValue { + // Repeated field of dynamically typed values. + repeated Value values = 1; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/timestamp.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/timestamp.proto new file mode 100644 index 00000000..fd0bc07d --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/timestamp.proto @@ -0,0 +1,144 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/timestamppb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TimestampProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +// second table is needed for interpretation, using a [24-hour linear +// smear](https://developers.google.com/time/smear). +// +// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +// restricting to that range, we ensure that we can convert to and from [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +// +// # Examples +// +// Example 1: Compute Timestamp from POSIX `time()`. +// +// Timestamp timestamp; +// timestamp.set_seconds(time(NULL)); +// timestamp.set_nanos(0); +// +// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +// +// struct timeval tv; +// gettimeofday(&tv, NULL); +// +// Timestamp timestamp; +// timestamp.set_seconds(tv.tv_sec); +// timestamp.set_nanos(tv.tv_usec * 1000); +// +// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +// +// FILETIME ft; +// GetSystemTimeAsFileTime(&ft); +// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +// +// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +// Timestamp timestamp; +// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +// +// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +// +// long millis = System.currentTimeMillis(); +// +// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +// .setNanos((int) ((millis % 1000) * 1000000)).build(); +// +// Example 5: Compute Timestamp from Java `Instant.now()`. +// +// Instant now = Instant.now(); +// +// Timestamp timestamp = +// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) +// .setNanos(now.getNano()).build(); +// +// Example 6: Compute Timestamp from current time in Python. +// +// timestamp = Timestamp() +// timestamp.GetCurrentTime() +// +// # JSON Mapping +// +// In JSON format, the Timestamp type is encoded as a string in the +// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +// where {year} is always expressed using four digits while {month}, {day}, +// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +// is required. A proto3 JSON serializer should always use UTC (as indicated by +// "Z") when printing the Timestamp type and a proto3 JSON parser should be +// able to accept both UTC and other timezones (as indicated by an offset). +// +// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +// 01:30 UTC on January 15, 2017. +// +// In JavaScript, one can convert a Date object to this format using the +// standard +// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +// method. In Python, a standard `datetime.datetime` object can be converted +// to this format using +// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() +// ) to obtain a formatter capable of generating timestamps in this format. +// +message Timestamp { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + int64 seconds = 1; + + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + int32 nanos = 2; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/type.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/type.proto new file mode 100644 index 00000000..48cb11e7 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/type.proto @@ -0,0 +1,193 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +import "google/protobuf/any.proto"; +import "google/protobuf/source_context.proto"; + +option cc_enable_arenas = true; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TypeProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option go_package = "google.golang.org/protobuf/types/known/typepb"; + +// A protocol buffer message type. +message Type { + // The fully qualified message name. + string name = 1; + // The list of fields. + repeated Field fields = 2; + // The list of types appearing in `oneof` definitions in this type. + repeated string oneofs = 3; + // The protocol buffer options. + repeated Option options = 4; + // The source context. + SourceContext source_context = 5; + // The source syntax. + Syntax syntax = 6; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 7; +} + +// A single field of a message type. +message Field { + // Basic field types. + enum Kind { + // Field type unknown. + TYPE_UNKNOWN = 0; + // Field type double. + TYPE_DOUBLE = 1; + // Field type float. + TYPE_FLOAT = 2; + // Field type int64. + TYPE_INT64 = 3; + // Field type uint64. + TYPE_UINT64 = 4; + // Field type int32. + TYPE_INT32 = 5; + // Field type fixed64. + TYPE_FIXED64 = 6; + // Field type fixed32. + TYPE_FIXED32 = 7; + // Field type bool. + TYPE_BOOL = 8; + // Field type string. + TYPE_STRING = 9; + // Field type group. Proto2 syntax only, and deprecated. + TYPE_GROUP = 10; + // Field type message. + TYPE_MESSAGE = 11; + // Field type bytes. + TYPE_BYTES = 12; + // Field type uint32. + TYPE_UINT32 = 13; + // Field type enum. + TYPE_ENUM = 14; + // Field type sfixed32. + TYPE_SFIXED32 = 15; + // Field type sfixed64. + TYPE_SFIXED64 = 16; + // Field type sint32. + TYPE_SINT32 = 17; + // Field type sint64. + TYPE_SINT64 = 18; + } + + // Whether a field is optional, required, or repeated. + enum Cardinality { + // For fields with unknown cardinality. + CARDINALITY_UNKNOWN = 0; + // For optional fields. + CARDINALITY_OPTIONAL = 1; + // For required fields. Proto2 syntax only. + CARDINALITY_REQUIRED = 2; + // For repeated fields. + CARDINALITY_REPEATED = 3; + } + + // The field type. + Kind kind = 1; + // The field cardinality. + Cardinality cardinality = 2; + // The field number. + int32 number = 3; + // The field name. + string name = 4; + // The field type URL, without the scheme, for message or enumeration + // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. + string type_url = 6; + // The index of the field type in `Type.oneofs`, for message or enumeration + // types. The first type has index 1; zero means the type is not in the list. + int32 oneof_index = 7; + // Whether to use alternative packed wire representation. + bool packed = 8; + // The protocol buffer options. + repeated Option options = 9; + // The field JSON name. + string json_name = 10; + // The string value of the default value of this field. Proto2 syntax only. + string default_value = 11; +} + +// Enum type definition. +message Enum { + // Enum type name. + string name = 1; + // Enum value definitions. + repeated EnumValue enumvalue = 2; + // Protocol buffer options. + repeated Option options = 3; + // The source context. + SourceContext source_context = 4; + // The source syntax. + Syntax syntax = 5; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 6; +} + +// Enum value definition. +message EnumValue { + // Enum value name. + string name = 1; + // Enum value number. + int32 number = 2; + // Protocol buffer options. + repeated Option options = 3; +} + +// A protocol buffer option, which can be attached to a message, field, +// enumeration, etc. +message Option { + // The option's name. For protobuf built-in options (options defined in + // descriptor.proto), this is the short name. For example, `"map_entry"`. + // For custom options, it should be the fully-qualified name. For example, + // `"google.api.http"`. + string name = 1; + // The option's value packed in an Any message. If the value is a primitive, + // the corresponding wrapper type defined in google/protobuf/wrappers.proto + // should be used. If the value is an enum, it should be stored as an int32 + // value using the google.protobuf.Int32Value type. + Any value = 2; +} + +// The syntax in which a protocol buffer element is defined. +enum Syntax { + // Syntax `proto2`. + SYNTAX_PROTO2 = 0; + // Syntax `proto3`. + SYNTAX_PROTO3 = 1; + // Syntax `editions`. + SYNTAX_EDITIONS = 2; +} diff --git a/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/wrappers.proto b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/wrappers.proto new file mode 100644 index 00000000..1959fa55 --- /dev/null +++ b/luban_examples/Projects/Protobuf3_json/protoc/include/google/protobuf/wrappers.proto @@ -0,0 +1,123 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "WrappersProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// Wrapper message for `double`. +// +// The JSON representation for `DoubleValue` is JSON number. +message DoubleValue { + // The double value. + double value = 1; +} + +// Wrapper message for `float`. +// +// The JSON representation for `FloatValue` is JSON number. +message FloatValue { + // The float value. + float value = 1; +} + +// Wrapper message for `int64`. +// +// The JSON representation for `Int64Value` is JSON string. +message Int64Value { + // The int64 value. + int64 value = 1; +} + +// Wrapper message for `uint64`. +// +// The JSON representation for `UInt64Value` is JSON string. +message UInt64Value { + // The uint64 value. + uint64 value = 1; +} + +// Wrapper message for `int32`. +// +// The JSON representation for `Int32Value` is JSON number. +message Int32Value { + // The int32 value. + int32 value = 1; +} + +// Wrapper message for `uint32`. +// +// The JSON representation for `UInt32Value` is JSON number. +message UInt32Value { + // The uint32 value. + uint32 value = 1; +} + +// Wrapper message for `bool`. +// +// The JSON representation for `BoolValue` is JSON `true` and `false`. +message BoolValue { + // The bool value. + bool value = 1; +} + +// Wrapper message for `string`. +// +// The JSON representation for `StringValue` is JSON string. +message StringValue { + // The string value. + string value = 1; +} + +// Wrapper message for `bytes`. +// +// The JSON representation for `BytesValue` is JSON string. +message BytesValue { + // The bytes value. + bytes value = 1; +} diff --git a/luban_examples/Projects/Python_json/gen.bat b/luban_examples/Projects/Python_json/gen.bat new file mode 100644 index 00000000..468dd168 --- /dev/null +++ b/luban_examples/Projects/Python_json/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c python-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=gen ^ + -x outputDataDir=..\GenerateDatas\json ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/Python_json/gen/schema.py b/luban_examples/Projects/Python_json/gen/schema.py new file mode 100644 index 00000000..85c21dea --- /dev/null +++ b/luban_examples/Projects/Python_json/gen/schema.py @@ -0,0 +1,2200 @@ + +#-*- coding: utf-8 -*- +''' + + This code was generated by a tool. + Changes to this file may cause incorrect behavior and will be lost if + the code is regenerated. + +''' + +from enum import Enum + +class aiEExecutor(Enum): + CLIENT = 0 + SERVER = 1 + +class aiEKeyType(Enum): + BOOL = 1 + INT = 2 + FLOAT = 3 + STRING = 4 + VECTOR = 5 + ROTATOR = 6 + NAME = 7 + CLASS = 8 + ENUM = 9 + OBJECT = 10 + +class aiEFlowAbortMode(Enum): + NONE = 0 + LOWER_PRIORITY = 1 + SELF = 2 + BOTH = 3 + +class aiEFinishMode(Enum): + IMMEDIATE = 0 + DELAYED = 1 + +class aiENotifyObserverMode(Enum): + ON_VALUE_CHANGE = 0 + ON_RESULT_CHANGE = 1 + +class aiEOperator(Enum): + IS_EQUAL_TO = 0 + IS_NOT_EQUAL_TO = 1 + IS_LESS_THAN = 2 + IS_LESS_THAN_OR_EQUAL_TO = 3 + IS_GREAT_THAN = 4 + IS_GREAT_THAN_OR_EQUAL_TO = 5 + CONTAINS = 6 + NOT_CONTAINS = 7 + +class AudioType(Enum): + UNKNOWN = 0 + ACC = 1 + AIFF = 2 + +class commonEBoolOperator(Enum): + AND = 0 + OR = 1 + +''' +道具品质 +''' +class itemEItemQuality(Enum): + ''' + 白 + ''' + WHITE = 0 + ''' + 绿 + ''' + GREEN = 1 + ''' + 蓝 + ''' + BLUE = 2 + ''' + 紫 + ''' + PURPLE = 3 + ''' + 金 + ''' + GOLDEN = 4 + +class itemECurrencyType(Enum): + ''' + 钻石 + ''' + DIAMOND = 1 + ''' + 金币 + ''' + GOLD = 2 + ''' + 银币 + ''' + SILVER = 3 + ''' + 经验 + ''' + EXP = 4 + ''' + 能量点 + ''' + POWER_POINT = 5 + +class itemEMajorType(Enum): + ''' + 货币 + ''' + CURRENCY = 1 + ''' + 服装 + ''' + CLOTH = 2 + ''' + 任务 + ''' + QUEST = 3 + ''' + 消耗品 + ''' + CONSUMABLES = 4 + ''' + 宝箱 + ''' + TREASURE_BOX = 5 + ''' + 成就和称谓 + ''' + ACHIEVEMENT_AND_TITLE = 6 + ''' + 头像框 + ''' + HEAD_FRAME = 7 + ''' + 语音 + ''' + VOICE = 8 + ''' + 动作 + ''' + ACTION = 9 + ''' + 扩容道具 + ''' + EXPANSION = 10 + ''' + 制作材料 + ''' + MATERIAL = 11 + +class itemEMinorType(Enum): + ''' + 钻石 + ''' + DIAMOND = 101 + ''' + 金币 + ''' + GOLD = 102 + ''' + 银币 + ''' + SILVER = 103 + ''' + 经验 + ''' + EXP = 104 + ''' + 能量点 + ''' + POWER_POINT = 105 + ''' + 发型 + ''' + HAIR_STYLE = 210 + ''' + 外套 + ''' + COAT = 220 + ''' + 上衣 + ''' + UPPER_JACKET = 230 + ''' + 裤子 + ''' + TROUSERS = 241 + ''' + 裙子 + ''' + SKIRT = 242 + ''' + 袜子 + ''' + SOCKS = 250 + ''' + 鞋子 + ''' + SHOES = 260 + ''' + 发饰 + ''' + HAIR_ACCESSORY = 271 + ''' + 帽子 + ''' + HAT = 272 + ''' + 耳饰 + ''' + EARRING = 273 + ''' + 颈饰 + ''' + NECKLACE = 274 + ''' + 腕饰 + ''' + BRACELET = 275 + ''' + 发箍 + ''' + HAIR_CLASP = 276 + ''' + 手套 + ''' + GLOVE = 277 + ''' + 手持物 + ''' + HANDHELD_OBJECT = 278 + ''' + 特殊 + ''' + SPECIAL = 279 + ''' + 底妆 + ''' + BASE_COSMETIC = 281 + ''' + 眉妆 + ''' + EYEBROW_COSMETIC = 282 + ''' + 睫毛 + ''' + EYELASH = 283 + ''' + 美瞳 + ''' + COSMETIC_CONTACT_LENSES = 284 + ''' + 唇妆 + ''' + LIP_COSMETIC = 285 + ''' + 肤色 + ''' + SKIN_COLOR = 286 + ''' + 连衣裙 + ''' + ONE_PIECE_DRESS = 290 + ''' + 换装场景 + ''' + SWITCH_CLOTHES_SCENE = 291 + ''' + 任务道具 + ''' + QUEST = 301 + ''' + 投掷物 + ''' + CAST = 401 + ''' + 刀剑 + ''' + SWORD = 421 + ''' + 弓箭 + ''' + BOW_ARROW = 422 + ''' + 法杖 + ''' + WANDS = 423 + ''' + 特殊工具 + ''' + SPECIAL_TOOL = 424 + ''' + 食物 + ''' + FOOD = 403 + ''' + 宝箱 + ''' + TREASURE_BOX = 501 + ''' + 钥匙 + ''' + KEY = 502 + ''' + 多选一宝箱 + ''' + MULTI_CHOOSE_TREASURE_BOX = 503 + ''' + 成就相关 + ''' + ACHIEVEMENT = 601 + ''' + 称谓相关 + ''' + TITLE = 602 + ''' + 头像框 + ''' + AVATAR_FRAME = 701 + ''' + 语音 + ''' + VOICE = 801 + ''' + 特殊待机动作 + ''' + IDLE_POSE = 901 + ''' + 拍照动作 + ''' + PHOTO_POSE = 902 + ''' + 背包 + ''' + BAG = 1001 + ''' + 好友数量 + ''' + FRIEND_CAPACITY = 1002 + ''' + 制作材料 + ''' + CONSTRUCTION_MATERIAL = 1101 + ''' + 设计图纸 + ''' + DESIGN_DRAWING = 1102 + +class itemEClothersStarQualityType(Enum): + ''' + 一星 + ''' + ONE = 1 + ''' + 二星 + ''' + TWO = 2 + ''' + 三星 + ''' + THREE = 3 + ''' + 四星 + ''' + FOUR = 4 + ''' + 五星 + ''' + FIVE = 5 + ''' + 六星 + ''' + SIX = 6 + ''' + 七星 + ''' + SEVEN = 7 + ''' + 八星 + ''' + EIGHT = 8 + ''' + 九星 + ''' + NINE = 9 + ''' + 十星 + ''' + TEN = 10 + +class itemEClothersTag(Enum): + ''' + 防晒 + ''' + FANG_SHAI = 1 + ''' + 舞者 + ''' + WU_ZHE = 2 + +class itemEUseType(Enum): + ''' + 手动 + ''' + MANUAL = 0 + ''' + 自动 + ''' + AUTO = 1 + +class itemEClothesHidePartType(Enum): + ''' + 胸部 + ''' + CHEST = 0 + ''' + 手 + ''' + HEAD = 1 + ''' + 脊柱上 + ''' + SPINE_UPPER = 2 + ''' + 脊柱下 + ''' + SPINE_LOWER = 3 + ''' + 臀部 + ''' + HIP = 4 + ''' + 腿上 + ''' + LEG_UPPER = 5 + ''' + 腿中 + ''' + LEG_MIDDLE = 6 + ''' + 腿下 + ''' + LEG_LOWER = 7 + +class itemEClothesPropertyType(Enum): + ''' + 简约 + ''' + JIAN_YUE = 1 + ''' + 华丽 + ''' + HUA_LI = 2 + ''' + 可爱 + ''' + KE_AI = 3 + ''' + 成熟 + ''' + CHENG_SHU = 4 + ''' + 活泼 + ''' + HUO_PO = 5 + ''' + 优雅 + ''' + YOU_YA = 6 + ''' + 清纯 + ''' + QING_CHUN = 7 + ''' + 性感 + ''' + XING_GAN = 8 + ''' + 清凉 + ''' + QING_LIANG = 9 + ''' + 保暖 + ''' + BAO_NUAN = 10 + +class testDemoEnum(Enum): + NONE = 0 + ''' + aa + ''' + A = 1 + ''' + bb + ''' + B = 2 + ''' + cc + ''' + C = 4 + ''' + dd + ''' + D = 5 + +class testDemoFlag(Enum): + A = 1 + B = 2 + C = 4 + D = 8 + +class testETestUeType(Enum): + ''' + 白 + ''' + WHITE = 0 + BLACK = 1 + +class testETestEmptyEnum(Enum): + pass + +class testETestEmptyEnum2(Enum): + SMALL_THAN_256 = 255 + X_256 = 256 + X_257 = 257 + +class testETestQuality(Enum): + ''' + 最高品质 + ''' + A = 1 + ''' + 黑色的 + ''' + B = 2 + ''' + 蓝色的 + ''' + C = 3 + ''' + 最差品质 + ''' + D = 4 + +class testAccessFlag(Enum): + WRITE = 1 + READ = 2 + TRUNCATE = 4 + NEW = 8 + READ_WRITE = WRITE|READ + + +class aiBlackboard : + def __init__(self, _json_): + self.name = _json_['name'] + self.desc = _json_['desc'] + self.parent_name = _json_['parent_name'] + self.keys = [] + for _ele in _json_['keys']: _e = aiBlackboardKey(_ele); self.keys.append(_e) + +class aiBlackboardKey : + def __init__(self, _json_): + self.name = _json_['name'] + self.desc = _json_['desc'] + self.is_static = _json_['is_static'] + self.type = _json_['type'] + self.type_class_name = _json_['type_class_name'] + +class aiBehaviorTree : + def __init__(self, _json_): + self.id = _json_['id'] + self.name = _json_['name'] + self.desc = _json_['desc'] + self.blackboard_id = _json_['blackboard_id'] + self.root = aiComposeNode.fromJson(_json_['root']) + +class aiNode : + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiNode._childrenTypes + if not childrenTypes: + childrenTypes = aiNode._childrenTypes = { + 'UeSetDefaultFocus': aiNode, + 'ExecuteTimeStatistic': aiNode, + 'ChooseTarget': aiNode, + 'KeepFaceTarget': aiNode, + 'GetOwnerPlayer': aiNode, + 'UpdateDailyBehaviorProps': aiNode, + 'UeLoop': aiNode, + 'UeCooldown': aiNode, + 'UeTimeLimit': aiNode, + 'UeBlackboard': aiNode, + 'UeForceSuccess': aiNode, + 'IsAtLocation': aiNode, + 'DistanceLessThan': aiNode, + 'Sequence': aiNode, + 'Selector': aiNode, + 'SimpleParallel': aiNode, + 'UeWait': aiNode, + 'UeWaitBlackboardTime': aiNode, + 'MoveToTarget': aiNode, + 'ChooseSkill': aiNode, + 'MoveToRandomLocation': aiNode, + 'MoveToLocation': aiNode, + 'DebugPrint': aiNode, + } + type = _json_['$type'] + child = aiNode._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + self.id = _json_['id'] + self.node_name = _json_['node_name'] + +class aiService (aiNode): + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiService._childrenTypes + if not childrenTypes: + childrenTypes = aiService._childrenTypes = { + 'UeSetDefaultFocus': aiService, + 'ExecuteTimeStatistic': aiService, + 'ChooseTarget': aiService, + 'KeepFaceTarget': aiService, + 'GetOwnerPlayer': aiService, + 'UpdateDailyBehaviorProps': aiService, + } + type = _json_['$type'] + child = aiService._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + aiNode.__init__(self, _json_) + + pass + +class aiUeSetDefaultFocus (aiService): + def __init__(self, _json_): + aiService.__init__(self, _json_) + self.keyboard_key = _json_['keyboard_key'] + +class aiExecuteTimeStatistic (aiService): + def __init__(self, _json_): + aiService.__init__(self, _json_) + + pass + +class aiChooseTarget (aiService): + def __init__(self, _json_): + aiService.__init__(self, _json_) + self.result_target_key = _json_['result_target_key'] + +class aiKeepFaceTarget (aiService): + def __init__(self, _json_): + aiService.__init__(self, _json_) + self.target_actor_key = _json_['target_actor_key'] + +class aiGetOwnerPlayer (aiService): + def __init__(self, _json_): + aiService.__init__(self, _json_) + self.player_actor_key = _json_['player_actor_key'] + +class aiUpdateDailyBehaviorProps (aiService): + def __init__(self, _json_): + aiService.__init__(self, _json_) + self.satiety_key = _json_['satiety_key'] + self.energy_key = _json_['energy_key'] + self.mood_key = _json_['mood_key'] + self.satiety_lower_threshold_key = _json_['satiety_lower_threshold_key'] + self.satiety_upper_threshold_key = _json_['satiety_upper_threshold_key'] + self.energy_lower_threshold_key = _json_['energy_lower_threshold_key'] + self.energy_upper_threshold_key = _json_['energy_upper_threshold_key'] + self.mood_lower_threshold_key = _json_['mood_lower_threshold_key'] + self.mood_upper_threshold_key = _json_['mood_upper_threshold_key'] + +class aiDecorator (aiNode): + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiDecorator._childrenTypes + if not childrenTypes: + childrenTypes = aiDecorator._childrenTypes = { + 'UeLoop': aiDecorator, + 'UeCooldown': aiDecorator, + 'UeTimeLimit': aiDecorator, + 'UeBlackboard': aiDecorator, + 'UeForceSuccess': aiDecorator, + 'IsAtLocation': aiDecorator, + 'DistanceLessThan': aiDecorator, + } + type = _json_['$type'] + child = aiDecorator._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + aiNode.__init__(self, _json_) + self.flow_abort_mode = _json_['flow_abort_mode'] + +class aiUeLoop (aiDecorator): + def __init__(self, _json_): + aiDecorator.__init__(self, _json_) + self.num_loops = _json_['num_loops'] + self.infinite_loop = _json_['infinite_loop'] + self.infinite_loop_timeout_time = _json_['infinite_loop_timeout_time'] + +class aiUeCooldown (aiDecorator): + def __init__(self, _json_): + aiDecorator.__init__(self, _json_) + self.cooldown_time = _json_['cooldown_time'] + +class aiUeTimeLimit (aiDecorator): + def __init__(self, _json_): + aiDecorator.__init__(self, _json_) + self.limit_time = _json_['limit_time'] + +class aiUeBlackboard (aiDecorator): + def __init__(self, _json_): + aiDecorator.__init__(self, _json_) + self.notify_observer = _json_['notify_observer'] + self.blackboard_key = _json_['blackboard_key'] + self.key_query = aiKeyQueryOperator.fromJson(_json_['key_query']) + +class aiKeyQueryOperator : + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiKeyQueryOperator._childrenTypes + if not childrenTypes: + childrenTypes = aiKeyQueryOperator._childrenTypes = { + 'IsSet': aiKeyQueryOperator, + 'IsNotSet': aiKeyQueryOperator, + 'BinaryOperator': aiKeyQueryOperator, + } + type = _json_['$type'] + child = aiKeyQueryOperator._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + + pass + +class aiIsSet (aiKeyQueryOperator): + def __init__(self, _json_): + aiKeyQueryOperator.__init__(self, _json_) + + pass + +class aiIsNotSet (aiKeyQueryOperator): + def __init__(self, _json_): + aiKeyQueryOperator.__init__(self, _json_) + + pass + +class aiBinaryOperator (aiKeyQueryOperator): + def __init__(self, _json_): + aiKeyQueryOperator.__init__(self, _json_) + self.oper = _json_['oper'] + self.data = aiKeyData.fromJson(_json_['data']) + +class aiKeyData : + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiKeyData._childrenTypes + if not childrenTypes: + childrenTypes = aiKeyData._childrenTypes = { + 'FloatKeyData': aiKeyData, + 'IntKeyData': aiKeyData, + 'StringKeyData': aiKeyData, + 'BlackboardKeyData': aiKeyData, + } + type = _json_['$type'] + child = aiKeyData._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + + pass + +class aiFloatKeyData (aiKeyData): + def __init__(self, _json_): + aiKeyData.__init__(self, _json_) + self.value = _json_['value'] + +class aiIntKeyData (aiKeyData): + def __init__(self, _json_): + aiKeyData.__init__(self, _json_) + self.value = _json_['value'] + +class aiStringKeyData (aiKeyData): + def __init__(self, _json_): + aiKeyData.__init__(self, _json_) + self.value = _json_['value'] + +class aiBlackboardKeyData (aiKeyData): + def __init__(self, _json_): + aiKeyData.__init__(self, _json_) + self.value = _json_['value'] + +class aiUeForceSuccess (aiDecorator): + def __init__(self, _json_): + aiDecorator.__init__(self, _json_) + + pass + +class aiIsAtLocation (aiDecorator): + def __init__(self, _json_): + aiDecorator.__init__(self, _json_) + self.acceptable_radius = _json_['acceptable_radius'] + self.keyboard_key = _json_['keyboard_key'] + self.inverse_condition = _json_['inverse_condition'] + +class aiDistanceLessThan (aiDecorator): + def __init__(self, _json_): + aiDecorator.__init__(self, _json_) + self.actor1_key = _json_['actor1_key'] + self.actor2_key = _json_['actor2_key'] + self.distance = _json_['distance'] + self.reverse_result = _json_['reverse_result'] + +class aiFlowNode (aiNode): + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiFlowNode._childrenTypes + if not childrenTypes: + childrenTypes = aiFlowNode._childrenTypes = { + 'Sequence': aiFlowNode, + 'Selector': aiFlowNode, + 'SimpleParallel': aiFlowNode, + 'UeWait': aiFlowNode, + 'UeWaitBlackboardTime': aiFlowNode, + 'MoveToTarget': aiFlowNode, + 'ChooseSkill': aiFlowNode, + 'MoveToRandomLocation': aiFlowNode, + 'MoveToLocation': aiFlowNode, + 'DebugPrint': aiFlowNode, + } + type = _json_['$type'] + child = aiFlowNode._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + aiNode.__init__(self, _json_) + self.decorators = [] + for _ele in _json_['decorators']: _e = aiDecorator.fromJson(_ele); self.decorators.append(_e) + self.services = [] + for _ele in _json_['services']: _e = aiService.fromJson(_ele); self.services.append(_e) + +class aiComposeNode (aiFlowNode): + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiComposeNode._childrenTypes + if not childrenTypes: + childrenTypes = aiComposeNode._childrenTypes = { + 'Sequence': aiComposeNode, + 'Selector': aiComposeNode, + 'SimpleParallel': aiComposeNode, + } + type = _json_['$type'] + child = aiComposeNode._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + aiFlowNode.__init__(self, _json_) + + pass + +class aiSequence (aiComposeNode): + def __init__(self, _json_): + aiComposeNode.__init__(self, _json_) + self.children = [] + for _ele in _json_['children']: _e = aiFlowNode.fromJson(_ele); self.children.append(_e) + +class aiSelector (aiComposeNode): + def __init__(self, _json_): + aiComposeNode.__init__(self, _json_) + self.children = [] + for _ele in _json_['children']: _e = aiFlowNode.fromJson(_ele); self.children.append(_e) + +class aiSimpleParallel (aiComposeNode): + def __init__(self, _json_): + aiComposeNode.__init__(self, _json_) + self.finish_mode = _json_['finish_mode'] + self.main_task = aiTask.fromJson(_json_['main_task']) + self.background_node = aiFlowNode.fromJson(_json_['background_node']) + +class aiTask (aiFlowNode): + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = aiTask._childrenTypes + if not childrenTypes: + childrenTypes = aiTask._childrenTypes = { + 'UeWait': aiTask, + 'UeWaitBlackboardTime': aiTask, + 'MoveToTarget': aiTask, + 'ChooseSkill': aiTask, + 'MoveToRandomLocation': aiTask, + 'MoveToLocation': aiTask, + 'DebugPrint': aiTask, + } + type = _json_['$type'] + child = aiTask._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + aiFlowNode.__init__(self, _json_) + self.ignore_restart_self = _json_['ignore_restart_self'] + +class aiUeWait (aiTask): + def __init__(self, _json_): + aiTask.__init__(self, _json_) + self.wait_time = _json_['wait_time'] + self.random_deviation = _json_['random_deviation'] + +class aiUeWaitBlackboardTime (aiTask): + def __init__(self, _json_): + aiTask.__init__(self, _json_) + self.blackboard_key = _json_['blackboard_key'] + +class aiMoveToTarget (aiTask): + def __init__(self, _json_): + aiTask.__init__(self, _json_) + self.target_actor_key = _json_['target_actor_key'] + self.acceptable_radius = _json_['acceptable_radius'] + +class aiChooseSkill (aiTask): + def __init__(self, _json_): + aiTask.__init__(self, _json_) + self.target_actor_key = _json_['target_actor_key'] + self.result_skill_id_key = _json_['result_skill_id_key'] + +class aiMoveToRandomLocation (aiTask): + def __init__(self, _json_): + aiTask.__init__(self, _json_) + self.origin_position_key = _json_['origin_position_key'] + self.radius = _json_['radius'] + +class aiMoveToLocation (aiTask): + def __init__(self, _json_): + aiTask.__init__(self, _json_) + self.acceptable_radius = _json_['acceptable_radius'] + +class aiDebugPrint (aiTask): + def __init__(self, _json_): + aiTask.__init__(self, _json_) + self.text = _json_['text'] + +class commonGlobalConfig : + def __init__(self, _json_): + self.x1 = _json_['x1'] + self.x2 = _json_['x2'] + self.x3 = _json_['x3'] + self.x4 = _json_['x4'] + self.x5 = _json_['x5'] + self.x6 = _json_['x6'] + self.x7 = [] + for _ele in _json_['x7']: _e = _ele; self.x7.append(_e) + +class itemItem : + def __init__(self, _json_): + self.id = _json_['id'] + self.name = _json_['name'] + self.minor_type = _json_['minor_type'] + self.quality = _json_['quality'] + self.icon_backgroud = _json_['icon_backgroud'] + self.icon_mask = _json_['icon_mask'] + self.desc = _json_['desc'] + self.show_order = _json_['show_order'] + +class l10nL10NDemo : + def __init__(self, _json_): + self.id = _json_['id'] + self.text = _json_['text'] + +class l10nPatchDemo : + def __init__(self, _json_): + self.id = _json_['id'] + self.value = _json_['value'] + +class tagTestTag : + def __init__(self, _json_): + self.id = _json_['id'] + self.value = _json_['value'] + +class testDemoType2 : + def __init__(self, _json_): + self.x4 = _json_['x4'] + self.x1 = _json_['x1'] + self.x2 = _json_['x2'] + self.x3 = _json_['x3'] + self.x5 = _json_['x5'] + self.x6 = _json_['x6'] + self.x7 = _json_['x7'] + self.x8_0 = _json_['x8_0'] + self.x8 = _json_['x8'] + self.x9 = _json_['x9'] + self.x10 = _json_['x10'] + self.x12 = testDemoType1(_json_['x12']) + self.x13 = _json_['x13'] + self.x14 = testDemoDynamic.fromJson(_json_['x14']) + self.s1 = _json_['s1'] + self.t1 = _json_['t1'] + self.k1 = [] + for _ele in _json_['k1']: _e = _ele; self.k1.append(_e) + self.k2 = [] + for _ele in _json_['k2']: _e = _ele; self.k2.append(_e) + self.k5 = [] + for _ele in _json_['k5']: _e = _ele; self.k5.append(_e) + self.k8 = {} + for _ek, _ev in _json_['k8']: _k = _ek; _v = _ev; self.k8[_k] =_v + self.k9 = [] + for _ele in _json_['k9']: _e = testDemoE2(_ele); self.k9.append(_e) + self.k15 = [] + for _ele in _json_['k15']: _e = testDemoDynamic.fromJson(_ele); self.k15.append(_e) + +class testDemoType1 : + def __init__(self, _json_): + self.x1 = _json_['x1'] + +class testDemoDynamic : + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = testDemoDynamic._childrenTypes + if not childrenTypes: + childrenTypes = testDemoDynamic._childrenTypes = { + 'DemoD2': testDemoDynamic, + 'DemoE1': testDemoDynamic, + 'test.login.RoleInfo': testDemoDynamic, + 'DemoD5': testDemoDynamic, + } + type = _json_['$type'] + child = testDemoDynamic._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + self.x1 = _json_['x1'] + +class testDemoD2 (testDemoDynamic): + def __init__(self, _json_): + testDemoDynamic.__init__(self, _json_) + self.x2 = _json_['x2'] + +class testDemoD3 (testDemoDynamic): + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = testDemoD3._childrenTypes + if not childrenTypes: + childrenTypes = testDemoD3._childrenTypes = { + 'DemoE1': testDemoD3, + 'test.login.RoleInfo': testDemoD3, + } + type = _json_['$type'] + child = testDemoD3._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + testDemoDynamic.__init__(self, _json_) + self.x3 = _json_['x3'] + +class testDemoE1 (testDemoD3): + def __init__(self, _json_): + testDemoD3.__init__(self, _json_) + self.x4 = _json_['x4'] + +class test_loginRoleInfo (testDemoD3): + def __init__(self, _json_): + testDemoD3.__init__(self, _json_) + self.role_id = _json_['role_id'] + +class testDemoD5 (testDemoDynamic): + def __init__(self, _json_): + testDemoDynamic.__init__(self, _json_) + self.time = testDateTimeRange(_json_['time']) + +class testDateTimeRange : + def __init__(self, _json_): + self.start_time = _json_['start_time'] + self.end_time = _json_['end_time'] + +class testDemoE2 : + def __init__(self, _json_): + if _json_.get('y1') != None: self.y1 = _json_['y1'] + self.y2 = _json_['y2'] + +class testDemoSingletonType : + def __init__(self, _json_): + self.id = _json_['id'] + self.name = _json_['name'] + self.date = testDemoDynamic.fromJson(_json_['date']) + +class testNotIndexList : + def __init__(self, _json_): + self.x = _json_['x'] + self.y = _json_['y'] + +class testMultiUnionIndexList : + def __init__(self, _json_): + self.id1 = _json_['id1'] + self.id2 = _json_['id2'] + self.id3 = _json_['id3'] + self.num = _json_['num'] + self.desc = _json_['desc'] + +class testMultiIndexList : + def __init__(self, _json_): + self.id1 = _json_['id1'] + self.id2 = _json_['id2'] + self.id3 = _json_['id3'] + self.num = _json_['num'] + self.desc = _json_['desc'] + +class testMultiRowRecord : + def __init__(self, _json_): + self.id = _json_['id'] + self.name = _json_['name'] + self.one_rows = [] + for _ele in _json_['one_rows']: _e = testMultiRowType1(_ele); self.one_rows.append(_e) + self.multi_rows1 = [] + for _ele in _json_['multi_rows1']: _e = testMultiRowType1(_ele); self.multi_rows1.append(_e) + self.multi_rows2 = [] + for _ele in _json_['multi_rows2']: _e = testMultiRowType1(_ele); self.multi_rows2.append(_e) + self.multi_rows4 = {} + for _ek, _ev in _json_['multi_rows4']: _k = _ek; _v = testMultiRowType2(_ev); self.multi_rows4[_k] =_v + self.multi_rows5 = [] + for _ele in _json_['multi_rows5']: _e = testMultiRowType3(_ele); self.multi_rows5.append(_e) + self.multi_rows6 = {} + for _ek, _ev in _json_['multi_rows6']: _k = _ek; _v = testMultiRowType2(_ev); self.multi_rows6[_k] =_v + self.multi_rows7 = {} + for _ek, _ev in _json_['multi_rows7']: _k = _ek; _v = _ev; self.multi_rows7[_k] =_v + +class testMultiRowType1 : + def __init__(self, _json_): + self.id = _json_['id'] + self.x = _json_['x'] + +class testMultiRowType2 : + def __init__(self, _json_): + self.id = _json_['id'] + self.x = _json_['x'] + self.y = _json_['y'] + +class testMultiRowType3 : + def __init__(self, _json_): + self.id = _json_['id'] + self.items = [] + for _ele in _json_['items']: _e = testMultiRowType1(_ele); self.items.append(_e) + +class testTestMultiColumn : + def __init__(self, _json_): + self.id = _json_['id'] + self.a = testFoo(_json_['a']) + self.b = testFoo(_json_['b']) + self.c = testFoo(_json_['c']) + +class testFoo : + def __init__(self, _json_): + self.y1 = _json_['y1'] + self.y2 = _json_['y2'] + self.y3 = _json_['y3'] + +class testMultiRowTitle : + def __init__(self, _json_): + self.id = _json_['id'] + self.name = _json_['name'] + self.x1 = testH1(_json_['x1']) + if _json_.get('x2_0') != None: self.x2_0 = testH2(_json_['x2_0']) + self.x2 = [] + for _ele in _json_['x2']: _e = testH2(_ele); self.x2.append(_e) + self.x3 = [] + for _ele in _json_['x3']: _e = testH2(_ele); self.x3.append(_e) + self.x4 = [] + for _ele in _json_['x4']: _e = testH2(_ele); self.x4.append(_e) + +class testH1 : + def __init__(self, _json_): + self.y2 = testH2(_json_['y2']) + self.y3 = _json_['y3'] + +class testH2 : + def __init__(self, _json_): + self.z2 = _json_['z2'] + self.z3 = _json_['z3'] + +class testTestNull : + def __init__(self, _json_): + self.id = _json_['id'] + if _json_.get('x1') != None: self.x1 = _json_['x1'] + if _json_.get('x2') != None: self.x2 = _json_['x2'] + if _json_.get('x3') != None: self.x3 = testDemoType1(_json_['x3']) + if _json_.get('x4') != None: self.x4 = testDemoDynamic.fromJson(_json_['x4']) + if _json_.get('s1') != None: self.s1 = _json_['s1'] + if _json_.get('s2') != None: self.s2 = _json_['s2'] + +class testDemoPrimitiveTypesTable : + def __init__(self, _json_): + self.x1 = _json_['x1'] + self.x2 = _json_['x2'] + self.x3 = _json_['x3'] + self.x4 = _json_['x4'] + self.x5 = _json_['x5'] + self.x6 = _json_['x6'] + self.x7 = _json_['x7'] + self.s1 = _json_['s1'] + self.s2 = _json_['s2'] + self.v2 = vec2(_json_['v2']) + self.v3 = vec3(_json_['v3']) + self.v4 = vec4(_json_['v4']) + self.t1 = _json_['t1'] + +class vec2 : + def __init__(self, _json_): + self.x = _json_['x'] + self.y = _json_['y'] + +class vec3 : + def __init__(self, _json_): + self.x = _json_['x'] + self.y = _json_['y'] + self.z = _json_['z'] + +class vec4 : + def __init__(self, _json_): + self.x = _json_['x'] + self.y = _json_['y'] + self.z = _json_['z'] + self.w = _json_['w'] + +class testTestString : + def __init__(self, _json_): + self.id = _json_['id'] + self.s1 = _json_['s1'] + self.s2 = _json_['s2'] + self.cs1 = testCompactString(_json_['cs1']) + self.cs2 = testCompactString(_json_['cs2']) + +class testCompactString : + def __init__(self, _json_): + self.id = _json_['id'] + self.s2 = _json_['s2'] + self.s3 = _json_['s3'] + +class testDemoGroup : + def __init__(self, _json_): + self.id = _json_['id'] + self.x5 = testInnerGroup(_json_['x5']) + +class testInnerGroup : + def __init__(self, _json_): + self.y1 = _json_['y1'] + +class testTestGlobal : + def __init__(self, _json_): + self.unlock_equip = _json_['unlock_equip'] + self.unlock_hero = _json_['unlock_hero'] + +class testTestBeRef : + def __init__(self, _json_): + self.id = _json_['id'] + self.count = _json_['count'] + +class testTestRef : + def __init__(self, _json_): + self.id = _json_['id'] + self.x1 = _json_['x1'] + self.x1_2 = _json_['x1_2'] + self.x2 = _json_['x2'] + self.x3 = _json_['x3'] + self.x4 = _json_['x4'] + self.a1 = [] + for _ele in _json_['a1']: _e = _ele; self.a1.append(_e) + self.a2 = [] + for _ele in _json_['a2']: _e = _ele; self.a2.append(_e) + self.b1 = [] + for _ele in _json_['b1']: _e = _ele; self.b1.append(_e) + self.b2 = [] + for _ele in _json_['b2']: _e = _ele; self.b2.append(_e) + self.c1 = [] + for _ele in _json_['c1']: _e = _ele; self.c1.append(_e) + self.c2 = [] + for _ele in _json_['c2']: _e = _ele; self.c2.append(_e) + self.d1 = {} + for _ek, _ev in _json_['d1']: _k = _ek; _v = _ev; self.d1[_k] =_v + self.d2 = {} + for _ek, _ev in _json_['d2']: _k = _ek; _v = _ev; self.d2[_k] =_v + self.e1 = _json_['e1'] + self.e2 = _json_['e2'] + self.e3 = _json_['e3'] + self.f1 = _json_['f1'] + self.f2 = _json_['f2'] + self.f3 = _json_['f3'] + self.s1 = testRefDynamicBase.fromJson(_json_['s1']) + +class testRefDynamicBase : + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = testRefDynamicBase._childrenTypes + if not childrenTypes: + childrenTypes = testRefDynamicBase._childrenTypes = { + 'RefBean': testRefDynamicBase, + } + type = _json_['$type'] + child = testRefDynamicBase._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + self.x = _json_['x'] + +class testRefBean (testRefDynamicBase): + def __init__(self, _json_): + testRefDynamicBase.__init__(self, _json_) + self.arr = [] + for _ele in _json_['arr']: _e = _ele; self.arr.append(_e) + +class testTestSize : + def __init__(self, _json_): + self.id = _json_['id'] + self.x1 = [] + for _ele in _json_['x1']: _e = _ele; self.x1.append(_e) + self.x2 = [] + for _ele in _json_['x2']: _e = _ele; self.x2.append(_e) + self.x3 = [] + for _ele in _json_['x3']: _e = _ele; self.x3.append(_e) + self.x4 = {} + for _ek, _ev in _json_['x4']: _k = _ek; _v = _ev; self.x4[_k] =_v + +class testTestSet : + def __init__(self, _json_): + self.id = _json_['id'] + self.x0 = _json_['x0'] + self.x1 = [] + for _ele in _json_['x1']: _e = _ele; self.x1.append(_e) + self.x2 = [] + for _ele in _json_['x2']: _e = _ele; self.x2.append(_e) + self.x3 = [] + for _ele in _json_['x3']: _e = _ele; self.x3.append(_e) + self.x4 = [] + for _ele in _json_['x4']: _e = _ele; self.x4.append(_e) + +class testDetectEncoding : + def __init__(self, _json_): + self.id = _json_['id'] + self.name = _json_['name'] + +class testItemBase : + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = testItemBase._childrenTypes + if not childrenTypes: + childrenTypes = testItemBase._childrenTypes = { + 'Item': testItemBase, + 'Equipment': testItemBase, + 'Decorator': testItemBase, + } + type = _json_['$type'] + child = testItemBase._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + self.id = _json_['id'] + self.name = _json_['name'] + self.desc = _json_['desc'] + +class testItem (testItemBase): + def __init__(self, _json_): + testItemBase.__init__(self, _json_) + self.num = _json_['num'] + self.price = _json_['price'] + +class testEquipment (testItemBase): + def __init__(self, _json_): + testItemBase.__init__(self, _json_) + self.attr = _json_['attr'] + self.value = _json_['value'] + +class testDecorator (testItemBase): + def __init__(self, _json_): + testItemBase.__init__(self, _json_) + self.duration = _json_['duration'] + +class testTestIndex : + def __init__(self, _json_): + self.id = _json_['id'] + self.eles = [] + for _ele in _json_['eles']: _e = testDemoType1(_ele); self.eles.append(_e) + +class testTestMap : + def __init__(self, _json_): + self.id = _json_['id'] + self.x1 = {} + for _ek, _ev in _json_['x1']: _k = _ek; _v = _ev; self.x1[_k] =_v + self.x2 = {} + for _ek, _ev in _json_['x2']: _k = _ek; _v = _ev; self.x2[_k] =_v + self.x3 = {} + for _ek, _ev in _json_['x3']: _k = _ek; _v = _ev; self.x3[_k] =_v + self.x4 = {} + for _ek, _ev in _json_['x4']: _k = _ek; _v = _ev; self.x4[_k] =_v + +class testExcelFromJson : + def __init__(self, _json_): + self.x4 = _json_['x4'] + self.x1 = _json_['x1'] + self.x5 = _json_['x5'] + self.x6 = _json_['x6'] + self.s1 = _json_['s1'] + self.s2 = _json_['s2'] + self.t1 = _json_['t1'] + self.x12 = testDemoType1(_json_['x12']) + self.x13 = _json_['x13'] + self.x14 = testDemoDynamic.fromJson(_json_['x14']) + self.k1 = [] + for _ele in _json_['k1']: _e = _ele; self.k1.append(_e) + self.k8 = {} + for _ek, _ev in _json_['k8']: _k = _ek; _v = _ev; self.k8[_k] =_v + self.k9 = [] + for _ele in _json_['k9']: _e = testDemoE2(_ele); self.k9.append(_e) + self.k15 = [] + for _ele in _json_['k15']: _e = testDemoDynamic.fromJson(_ele); self.k15.append(_e) + +class testCompositeJsonTable1 : + def __init__(self, _json_): + self.id = _json_['id'] + self.x = _json_['x'] + +class testCompositeJsonTable2 : + def __init__(self, _json_): + self.id = _json_['id'] + self.y = _json_['y'] + +class testCompositeJsonTable3 : + def __init__(self, _json_): + self.a = _json_['a'] + self.b = _json_['b'] + +class testExcelFromJsonMultiRow : + def __init__(self, _json_): + self.id = _json_['id'] + self.x = _json_['x'] + self.items = [] + for _ele in _json_['items']: _e = testTestRow(_ele); self.items.append(_e) + +class testTestRow : + def __init__(self, _json_): + self.x = _json_['x'] + self.y = _json_['y'] + self.z = _json_['z'] + self.a = testTest3(_json_['a']) + self.b = [] + for _ele in _json_['b']: _e = _ele; self.b.append(_e) + +class testTest3 : + def __init__(self, _json_): + self.x = _json_['x'] + self.y = _json_['y'] + +class testTestScriptableObject : + def __init__(self, _json_): + self.id = _json_['id'] + self.desc = _json_['desc'] + self.rate = _json_['rate'] + self.num = _json_['num'] + self.v2 = vec2(_json_['v2']) + self.v3 = vec3(_json_['v3']) + self.v4 = vec4(_json_['v4']) + +class testTestMapper : + def __init__(self, _json_): + self.id = _json_['id'] + self.audio_type = _json_['audio_type'] + self.v2 = vec2(_json_['v2']) + +class DefineFromExcel2 : + def __init__(self, _json_): + self.id = _json_['id'] + self.x1 = _json_['x1'] + self.x5 = _json_['x5'] + self.x6 = _json_['x6'] + self.x8 = _json_['x8'] + self.x10 = _json_['x10'] + self.x13 = _json_['x13'] + self.x13_2 = _json_['x13_2'] + self.x14 = testDemoDynamic.fromJson(_json_['x14']) + self.x15 = testShape.fromJson(_json_['x15']) + self.v2 = vec2(_json_['v2']) + self.t1 = _json_['t1'] + self.k1 = [] + for _ele in _json_['k1']: _e = _ele; self.k1.append(_e) + self.k2 = [] + for _ele in _json_['k2']: _e = _ele; self.k2.append(_e) + self.k8 = {} + for _ek, _ev in _json_['k8']: _k = _ek; _v = _ev; self.k8[_k] =_v + self.k9 = [] + for _ele in _json_['k9']: _e = testDemoE2(_ele); self.k9.append(_e) + self.k10 = [] + for _ele in _json_['k10']: _e = vec3(_ele); self.k10.append(_e) + self.k11 = [] + for _ele in _json_['k11']: _e = vec4(_ele); self.k11.append(_e) + +class testShape : + _childrenTypes = None + @staticmethod + def fromJson(_json_): + childrenTypes = testShape._childrenTypes + if not childrenTypes: + childrenTypes = testShape._childrenTypes = { + 'Circle': testShape, + 'test2.Rectangle': testShape, + } + type = _json_['$type'] + child = testShape._childrenTypes.get(type) + if child != None: + return child(_json_) + else: + raise Exception() + def __init__(self, _json_): + + pass + +class testCircle (testShape): + def __init__(self, _json_): + testShape.__init__(self, _json_) + self.radius = _json_['radius'] + +class test2Rectangle (testShape): + def __init__(self, _json_): + testShape.__init__(self, _json_) + self.width = _json_['width'] + self.height = _json_['height'] + + +class aiTbBlackboard: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = aiBlackboard(_json2_) + self._dataList.append(_v) + self._dataMap[_v.name] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class aiTbBehaviorTree: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = aiBehaviorTree(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class commonTbGlobalConfig: + + def __init__(self, _json_): + if (len(_json_) != 1): raise Exception('table mode=one, but size != 1') + self._data = commonGlobalConfig(_json_[0]) + + def getData(self) : return self._data + + ''' + 背包容量 + ''' + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + +class itemTbItem: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = itemItem(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class l10nTbL10NDemo: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = l10nL10NDemo(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class l10nTbPatchDemo: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = l10nPatchDemo(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class tagTbTestTag: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = tagTestTag(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbFullTypes: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testDemoType2(_json2_) + self._dataList.append(_v) + self._dataMap[_v.x4] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbSingleton: + + def __init__(self, _json_): + if (len(_json_) != 1): raise Exception('table mode=one, but size != 1') + self._data = testDemoSingletonType(_json_[0]) + + def getData(self) : return self._data + + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + +class testTbNotIndexList: + + def __init__(self, _json_ ): + self._dataList = [] + + for _json2_ in _json_: + _v = testNotIndexList(_json2_) + self._dataList.append(_v) + + def getDataList(self) : return self._dataList + + def get(self, index) : return self._dataList[index] + + +class testTbMultiUnionIndexList: + + def __init__(self, _json_ ): + self._dataList = [] + + for _json2_ in _json_: + _v = testMultiUnionIndexList(_json2_) + self._dataList.append(_v) + + def getDataList(self) : return self._dataList + + def get(self, index) : return self._dataList[index] + + +class testTbMultiIndexList: + + def __init__(self, _json_ ): + self._dataList = [] + + for _json2_ in _json_: + _v = testMultiIndexList(_json2_) + self._dataList.append(_v) + + def getDataList(self) : return self._dataList + + def get(self, index) : return self._dataList[index] + + +class testTbDataFromMisc: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testDemoType2(_json2_) + self._dataList.append(_v) + self._dataMap[_v.x4] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbMultiRowRecord: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testMultiRowRecord(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestMultiColumn: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestMultiColumn(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbMultiRowTitle: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testMultiRowTitle(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestNull: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestNull(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbDemoPrimitive: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testDemoPrimitiveTypesTable(_json2_) + self._dataList.append(_v) + self._dataMap[_v.x4] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestString: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestString(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbDemoGroup: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testDemoGroup(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestGlobal: + + def __init__(self, _json_): + if (len(_json_) != 1): raise Exception('table mode=one, but size != 1') + self._data = testTestGlobal(_json_[0]) + + def getData(self) : return self._data + + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + +class testTbTestBeRef: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestBeRef(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestBeRef2: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestBeRef(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestRef: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestRef(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestSize: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestSize(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestSet: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestSet(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbDetectCsvEncoding: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testDetectEncoding(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbItem2: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testItemBase.fromJson(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestIndex: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestIndex(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestMap: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestMap(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbExcelFromJson: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testExcelFromJson(_json2_) + self._dataList.append(_v) + self._dataMap[_v.x4] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbCompositeJsonTable1: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testCompositeJsonTable1(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbCompositeJsonTable2: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testCompositeJsonTable2(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbCompositeJsonTable3: + + def __init__(self, _json_): + if (len(_json_) != 1): raise Exception('table mode=one, but size != 1') + self._data = testCompositeJsonTable3(_json_[0]) + + def getData(self) : return self._data + + def x1(self) : return self._data.x1 + def x1(self) : return self._data.x1 + +class testTbExcelFromJsonMultiRow: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testExcelFromJsonMultiRow(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestScriptableObject: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestScriptableObject(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbTestMapper: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = testTestMapper(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + +class testTbDefineFromExcel2: + + def __init__(self, _json_ ): + self._dataMap = {} + self._dataList = [] + + for _json2_ in _json_: + _v = DefineFromExcel2(_json2_) + self._dataList.append(_v) + self._dataMap[_v.id] = _v + + def getDataMap(self) : return self._dataMap + def getDataList(self) : return self._dataList + + def get(self, key) : return self._dataMap.get(key) + + + +class cfg_Tables: + def __init__(self, loader): + self.TbBlackboard = aiTbBlackboard(loader('ai_tbblackboard')); + self.TbBehaviorTree = aiTbBehaviorTree(loader('ai_tbbehaviortree')); + self.TbGlobalConfig = commonTbGlobalConfig(loader('common_tbglobalconfig')); + self.TbItem = itemTbItem(loader('item_tbitem')); + self.TbL10NDemo = l10nTbL10NDemo(loader('l10n_tbl10ndemo')); + self.TbPatchDemo = l10nTbPatchDemo(loader('l10n_tbpatchdemo')); + self.TbTestTag = tagTbTestTag(loader('tag_tbtesttag')); + self.TbFullTypes = testTbFullTypes(loader('test_tbfulltypes')); + self.TbSingleton = testTbSingleton(loader('test_tbsingleton')); + self.TbNotIndexList = testTbNotIndexList(loader('test_tbnotindexlist')); + self.TbMultiUnionIndexList = testTbMultiUnionIndexList(loader('test_tbmultiunionindexlist')); + self.TbMultiIndexList = testTbMultiIndexList(loader('test_tbmultiindexlist')); + self.TbDataFromMisc = testTbDataFromMisc(loader('test_tbdatafrommisc')); + self.TbMultiRowRecord = testTbMultiRowRecord(loader('test_tbmultirowrecord')); + self.TbTestMultiColumn = testTbTestMultiColumn(loader('test_tbtestmulticolumn')); + self.TbMultiRowTitle = testTbMultiRowTitle(loader('test_tbmultirowtitle')); + self.TbTestNull = testTbTestNull(loader('test_tbtestnull')); + self.TbDemoPrimitive = testTbDemoPrimitive(loader('test_tbdemoprimitive')); + self.TbTestString = testTbTestString(loader('test_tbteststring')); + self.TbDemoGroup = testTbDemoGroup(loader('test_tbdemogroup')); + self.TbTestGlobal = testTbTestGlobal(loader('test_tbtestglobal')); + self.TbTestBeRef = testTbTestBeRef(loader('test_tbtestberef')); + self.TbTestBeRef2 = testTbTestBeRef2(loader('test_tbtestberef2')); + self.TbTestRef = testTbTestRef(loader('test_tbtestref')); + self.TbTestSize = testTbTestSize(loader('test_tbtestsize')); + self.TbTestSet = testTbTestSet(loader('test_tbtestset')); + self.TbDetectCsvEncoding = testTbDetectCsvEncoding(loader('test_tbdetectcsvencoding')); + self.TbItem2 = testTbItem2(loader('test_tbitem2')); + self.TbTestIndex = testTbTestIndex(loader('test_tbtestindex')); + self.TbTestMap = testTbTestMap(loader('test_tbtestmap')); + self.TbExcelFromJson = testTbExcelFromJson(loader('test_tbexcelfromjson')); + self.TbCompositeJsonTable1 = testTbCompositeJsonTable1(loader('test_tbcompositejsontable1')); + self.TbCompositeJsonTable2 = testTbCompositeJsonTable2(loader('test_tbcompositejsontable2')); + self.TbCompositeJsonTable3 = testTbCompositeJsonTable3(loader('test_tbcompositejsontable3')); + self.TbExcelFromJsonMultiRow = testTbExcelFromJsonMultiRow(loader('test_tbexcelfromjsonmultirow')); + self.TbTestScriptableObject = testTbTestScriptableObject(loader('test_tbtestscriptableobject')); + self.TbTestMapper = testTbTestMapper(loader('test_tbtestmapper')); + self.TbDefineFromExcel2 = testTbDefineFromExcel2(loader('test_tbdefinefromexcel2')); + diff --git a/luban_examples/Projects/Python_json/main.py b/luban_examples/Projects/Python_json/main.py new file mode 100644 index 00000000..7a1ab028 --- /dev/null +++ b/luban_examples/Projects/Python_json/main.py @@ -0,0 +1,16 @@ +import json +import sys +import os +sys.path.append(os.path.abspath('gen')) + +import schema + +def loader(f): + return json.load(open('../GenerateDatas/json/' + f + ".json", 'r', encoding="utf-8")) + +tables = schema.cfg_Tables(loader) + +print(tables) + +r = tables.TbFullTypes.getDataList()[0].__dict__ +print(r) diff --git a/luban_examples/Projects/TypeScript_NodeJs_json/Gen/schema.ts b/luban_examples/Projects/TypeScript_NodeJs_json/Gen/schema.ts new file mode 100644 index 00000000..e4587e5c --- /dev/null +++ b/luban_examples/Projects/TypeScript_NodeJs_json/Gen/schema.ts @@ -0,0 +1,4032 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +export namespace ai { +export enum EExecutor { + CLIENT = 0, + SERVER = 1, +} + +} +export namespace ai { +export enum EKeyType { + BOOL = 1, + INT = 2, + FLOAT = 3, + STRING = 4, + VECTOR = 5, + ROTATOR = 6, + NAME = 7, + CLASS = 8, + ENUM = 9, + OBJECT = 10, +} + +} +export namespace ai { +export enum EFlowAbortMode { + NONE = 0, + LOWER_PRIORITY = 1, + SELF = 2, + BOTH = 3, +} + +} +export namespace ai { +export enum EFinishMode { + IMMEDIATE = 0, + DELAYED = 1, +} + +} +export namespace ai { +export enum ENotifyObserverMode { + ON_VALUE_CHANGE = 0, + ON_RESULT_CHANGE = 1, +} + +} +export namespace ai { +export enum EOperator { + IS_EQUAL_TO = 0, + IS_NOT_EQUAL_TO = 1, + IS_LESS_THAN = 2, + IS_LESS_THAN_OR_EQUAL_TO = 3, + IS_GREAT_THAN = 4, + IS_GREAT_THAN_OR_EQUAL_TO = 5, + CONTAINS = 6, + NOT_CONTAINS = 7, +} + +} + +export enum AudioType { + UNKNOWN = 0, + ACC = 1, + AIFF = 2, +} + + +export namespace common { +export enum EBoolOperator { + AND = 0, + OR = 1, +} + +} +export namespace item { +/** + * 道具品质 + */ +export enum EItemQuality { + /** + * 白 + */ + WHITE = 0, + /** + * 绿 + */ + GREEN = 1, + /** + * 蓝 + */ + BLUE = 2, + /** + * 紫 + */ + PURPLE = 3, + /** + * 金 + */ + GOLDEN = 4, +} + +} +export namespace item { +export enum ECurrencyType { + /** + * 钻石 + */ + DIAMOND = 1, + /** + * 金币 + */ + GOLD = 2, + /** + * 银币 + */ + SILVER = 3, + /** + * 经验 + */ + EXP = 4, + /** + * 能量点 + */ + POWER_POINT = 5, +} + +} +export namespace item { +export enum EMajorType { + /** + * 货币 + */ + CURRENCY = 1, + /** + * 服装 + */ + CLOTH = 2, + /** + * 任务 + */ + QUEST = 3, + /** + * 消耗品 + */ + CONSUMABLES = 4, + /** + * 宝箱 + */ + TREASURE_BOX = 5, + /** + * 成就和称谓 + */ + ACHIEVEMENT_AND_TITLE = 6, + /** + * 头像框 + */ + HEAD_FRAME = 7, + /** + * 语音 + */ + VOICE = 8, + /** + * 动作 + */ + ACTION = 9, + /** + * 扩容道具 + */ + EXPANSION = 10, + /** + * 制作材料 + */ + MATERIAL = 11, +} + +} +export namespace item { +export enum EMinorType { + /** + * 钻石 + */ + DIAMOND = 101, + /** + * 金币 + */ + GOLD = 102, + /** + * 银币 + */ + SILVER = 103, + /** + * 经验 + */ + EXP = 104, + /** + * 能量点 + */ + POWER_POINT = 105, + /** + * 发型 + */ + HAIR_STYLE = 210, + /** + * 外套 + */ + COAT = 220, + /** + * 上衣 + */ + UPPER_JACKET = 230, + /** + * 裤子 + */ + TROUSERS = 241, + /** + * 裙子 + */ + SKIRT = 242, + /** + * 袜子 + */ + SOCKS = 250, + /** + * 鞋子 + */ + SHOES = 260, + /** + * 发饰 + */ + HAIR_ACCESSORY = 271, + /** + * 帽子 + */ + HAT = 272, + /** + * 耳饰 + */ + EARRING = 273, + /** + * 颈饰 + */ + NECKLACE = 274, + /** + * 腕饰 + */ + BRACELET = 275, + /** + * 发箍 + */ + HAIR_CLASP = 276, + /** + * 手套 + */ + GLOVE = 277, + /** + * 手持物 + */ + HANDHELD_OBJECT = 278, + /** + * 特殊 + */ + SPECIAL = 279, + /** + * 底妆 + */ + BASE_COSMETIC = 281, + /** + * 眉妆 + */ + EYEBROW_COSMETIC = 282, + /** + * 睫毛 + */ + EYELASH = 283, + /** + * 美瞳 + */ + COSMETIC_CONTACT_LENSES = 284, + /** + * 唇妆 + */ + LIP_COSMETIC = 285, + /** + * 肤色 + */ + SKIN_COLOR = 286, + /** + * 连衣裙 + */ + ONE_PIECE_DRESS = 290, + /** + * 换装场景 + */ + SWITCH_CLOTHES_SCENE = 291, + /** + * 任务道具 + */ + QUEST = 301, + /** + * 投掷物 + */ + CAST = 401, + /** + * 刀剑 + */ + SWORD = 421, + /** + * 弓箭 + */ + BOW_ARROW = 422, + /** + * 法杖 + */ + WANDS = 423, + /** + * 特殊工具 + */ + SPECIAL_TOOL = 424, + /** + * 食物 + */ + FOOD = 403, + /** + * 宝箱 + */ + TREASURE_BOX = 501, + /** + * 钥匙 + */ + KEY = 502, + /** + * 多选一宝箱 + */ + MULTI_CHOOSE_TREASURE_BOX = 503, + /** + * 成就相关 + */ + ACHIEVEMENT = 601, + /** + * 称谓相关 + */ + TITLE = 602, + /** + * 头像框 + */ + AVATAR_FRAME = 701, + /** + * 语音 + */ + VOICE = 801, + /** + * 特殊待机动作 + */ + IDLE_POSE = 901, + /** + * 拍照动作 + */ + PHOTO_POSE = 902, + /** + * 背包 + */ + BAG = 1001, + /** + * 好友数量 + */ + FRIEND_CAPACITY = 1002, + /** + * 制作材料 + */ + CONSTRUCTION_MATERIAL = 1101, + /** + * 设计图纸 + */ + DESIGN_DRAWING = 1102, +} + +} +export namespace item { +export enum EClothersStarQualityType { + /** + * 一星 + */ + ONE = 1, + /** + * 二星 + */ + TWO = 2, + /** + * 三星 + */ + THREE = 3, + /** + * 四星 + */ + FOUR = 4, + /** + * 五星 + */ + FIVE = 5, + /** + * 六星 + */ + SIX = 6, + /** + * 七星 + */ + SEVEN = 7, + /** + * 八星 + */ + EIGHT = 8, + /** + * 九星 + */ + NINE = 9, + /** + * 十星 + */ + TEN = 10, +} + +} +export namespace item { +export enum EClothersTag { + /** + * 防晒 + */ + FANG_SHAI = 1, + /** + * 舞者 + */ + WU_ZHE = 2, +} + +} +export namespace item { +export enum EUseType { + /** + * 手动 + */ + MANUAL = 0, + /** + * 自动 + */ + AUTO = 1, +} + +} +export namespace item { +export enum EClothesHidePartType { + /** + * 胸部 + */ + CHEST = 0, + /** + * 手 + */ + HEAD = 1, + /** + * 脊柱上 + */ + SPINE_UPPER = 2, + /** + * 脊柱下 + */ + SPINE_LOWER = 3, + /** + * 臀部 + */ + HIP = 4, + /** + * 腿上 + */ + LEG_UPPER = 5, + /** + * 腿中 + */ + LEG_MIDDLE = 6, + /** + * 腿下 + */ + LEG_LOWER = 7, +} + +} +export namespace item { +export enum EClothesPropertyType { + /** + * 简约 + */ + JIAN_YUE = 1, + /** + * 华丽 + */ + HUA_LI = 2, + /** + * 可爱 + */ + KE_AI = 3, + /** + * 成熟 + */ + CHENG_SHU = 4, + /** + * 活泼 + */ + HUO_PO = 5, + /** + * 优雅 + */ + YOU_YA = 6, + /** + * 清纯 + */ + QING_CHUN = 7, + /** + * 性感 + */ + XING_GAN = 8, + /** + * 清凉 + */ + QING_LIANG = 9, + /** + * 保暖 + */ + BAO_NUAN = 10, +} + +} +export namespace test { +export enum DemoEnum { + NONE = 0, + /** + * aa + */ + A = 1, + /** + * bb + */ + B = 2, + /** + * cc + */ + C = 4, + /** + * dd + */ + D = 5, +} + +} +export namespace test { +export enum DemoFlag { + A = 1, + B = 2, + C = 4, + D = 8, +} + +} +export namespace test { +export enum ETestUeType { + /** + * 白 + */ + WHITE = 0, + BLACK = 1, +} + +} +export namespace test { +export enum ETestEmptyEnum { +} + +} +export namespace test { +export enum ETestEmptyEnum2 { + SMALL_THAN_256 = 255, + X_256 = 256, + X_257 = 257, +} + +} +export namespace test { +export enum ETestQuality { + /** + * 最高品质 + */ + A = 1, + /** + * 黑色的 + */ + B = 2, + /** + * 蓝色的 + */ + C = 3, + /** + * 最差品质 + */ + D = 4, +} + +} +export namespace test { +export enum AccessFlag { + WRITE = 1, + READ = 2, + TRUNCATE = 4, + NEW = 8, + READ_WRITE = WRITE|READ, +} + +} + + + +export namespace ai { +export class Blackboard { + + constructor(_json_: any) { + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + if (_json_.parent_name === undefined) { throw new Error() } + this.parentName = _json_.parent_name + if (_json_.keys === undefined) { throw new Error() } + { this.keys = []; for(let _ele of _json_.keys) { let _e; _e = new ai.BlackboardKey(_ele); this.keys.push(_e);}} + } + + readonly name: string + readonly desc: string + readonly parentName: string + readonly keys: ai.BlackboardKey[] +} + +} + + +export namespace ai { +export class BlackboardKey { + + constructor(_json_: any) { + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + if (_json_.is_static === undefined) { throw new Error() } + this.isStatic = _json_.is_static + if (_json_.type === undefined) { throw new Error() } + this.type = _json_.type + if (_json_.type_class_name === undefined) { throw new Error() } + this.typeClassName = _json_.type_class_name + } + + readonly name: string + readonly desc: string + readonly isStatic: boolean + readonly type: ai.EKeyType + readonly typeClassName: string +} + +} + + +export namespace ai { +export class BehaviorTree { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + if (_json_.blackboard_id === undefined) { throw new Error() } + this.blackboardId = _json_.blackboard_id + if (_json_.root === undefined) { throw new Error() } + this.root = ai.ComposeNode.constructorFrom(_json_.root) + } + + readonly id: number + readonly name: string + readonly desc: string + readonly blackboardId: string + readonly root: ai.ComposeNode +} + +} + + +export namespace ai { +export abstract class Node { + static constructorFrom(_json_: any): Node{ + switch (_json_["$type"]) { + case 'UeSetDefaultFocus': return new ai.UeSetDefaultFocus(_json_) + case 'ExecuteTimeStatistic': return new ai.ExecuteTimeStatistic(_json_) + case 'ChooseTarget': return new ai.ChooseTarget(_json_) + case 'KeepFaceTarget': return new ai.KeepFaceTarget(_json_) + case 'GetOwnerPlayer': return new ai.GetOwnerPlayer(_json_) + case 'UpdateDailyBehaviorProps': return new ai.UpdateDailyBehaviorProps(_json_) + case 'UeLoop': return new ai.UeLoop(_json_) + case 'UeCooldown': return new ai.UeCooldown(_json_) + case 'UeTimeLimit': return new ai.UeTimeLimit(_json_) + case 'UeBlackboard': return new ai.UeBlackboard(_json_) + case 'UeForceSuccess': return new ai.UeForceSuccess(_json_) + case 'IsAtLocation': return new ai.IsAtLocation(_json_) + case 'DistanceLessThan': return new ai.DistanceLessThan(_json_) + case 'Sequence': return new ai.Sequence(_json_) + case 'Selector': return new ai.Selector(_json_) + case 'SimpleParallel': return new ai.SimpleParallel(_json_) + case 'UeWait': return new ai.UeWait(_json_) + case 'UeWaitBlackboardTime': return new ai.UeWaitBlackboardTime(_json_) + case 'MoveToTarget': return new ai.MoveToTarget(_json_) + case 'ChooseSkill': return new ai.ChooseSkill(_json_) + case 'MoveToRandomLocation': return new ai.MoveToRandomLocation(_json_) + case 'MoveToLocation': return new ai.MoveToLocation(_json_) + case 'DebugPrint': return new ai.DebugPrint(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.node_name === undefined) { throw new Error() } + this.nodeName = _json_.node_name + } + + readonly id: number + readonly nodeName: string +} + +} + + +export namespace ai { +export abstract class Service extends ai.Node { + static constructorFrom(_json_: any): Service{ + switch (_json_["$type"]) { + case 'UeSetDefaultFocus': return new ai.UeSetDefaultFocus(_json_) + case 'ExecuteTimeStatistic': return new ai.ExecuteTimeStatistic(_json_) + case 'ChooseTarget': return new ai.ChooseTarget(_json_) + case 'KeepFaceTarget': return new ai.KeepFaceTarget(_json_) + case 'GetOwnerPlayer': return new ai.GetOwnerPlayer(_json_) + case 'UpdateDailyBehaviorProps': return new ai.UpdateDailyBehaviorProps(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + super(_json_) + } + +} + +} + + +export namespace ai { +export class UeSetDefaultFocus extends ai.Service { + + constructor(_json_: any) { + super(_json_) + if (_json_.keyboard_key === undefined) { throw new Error() } + this.keyboardKey = _json_.keyboard_key + } + + readonly keyboardKey: string +} + +} + + +export namespace ai { +export class ExecuteTimeStatistic extends ai.Service { + + constructor(_json_: any) { + super(_json_) + } + +} + +} + + +export namespace ai { +export class ChooseTarget extends ai.Service { + + constructor(_json_: any) { + super(_json_) + if (_json_.result_target_key === undefined) { throw new Error() } + this.resultTargetKey = _json_.result_target_key + } + + readonly resultTargetKey: string +} + +} + + +export namespace ai { +export class KeepFaceTarget extends ai.Service { + + constructor(_json_: any) { + super(_json_) + if (_json_.target_actor_key === undefined) { throw new Error() } + this.targetActorKey = _json_.target_actor_key + } + + readonly targetActorKey: string +} + +} + + +export namespace ai { +export class GetOwnerPlayer extends ai.Service { + + constructor(_json_: any) { + super(_json_) + if (_json_.player_actor_key === undefined) { throw new Error() } + this.playerActorKey = _json_.player_actor_key + } + + readonly playerActorKey: string +} + +} + + +export namespace ai { +export class UpdateDailyBehaviorProps extends ai.Service { + + constructor(_json_: any) { + super(_json_) + if (_json_.satiety_key === undefined) { throw new Error() } + this.satietyKey = _json_.satiety_key + if (_json_.energy_key === undefined) { throw new Error() } + this.energyKey = _json_.energy_key + if (_json_.mood_key === undefined) { throw new Error() } + this.moodKey = _json_.mood_key + if (_json_.satiety_lower_threshold_key === undefined) { throw new Error() } + this.satietyLowerThresholdKey = _json_.satiety_lower_threshold_key + if (_json_.satiety_upper_threshold_key === undefined) { throw new Error() } + this.satietyUpperThresholdKey = _json_.satiety_upper_threshold_key + if (_json_.energy_lower_threshold_key === undefined) { throw new Error() } + this.energyLowerThresholdKey = _json_.energy_lower_threshold_key + if (_json_.energy_upper_threshold_key === undefined) { throw new Error() } + this.energyUpperThresholdKey = _json_.energy_upper_threshold_key + if (_json_.mood_lower_threshold_key === undefined) { throw new Error() } + this.moodLowerThresholdKey = _json_.mood_lower_threshold_key + if (_json_.mood_upper_threshold_key === undefined) { throw new Error() } + this.moodUpperThresholdKey = _json_.mood_upper_threshold_key + } + + readonly satietyKey: string + readonly energyKey: string + readonly moodKey: string + readonly satietyLowerThresholdKey: string + readonly satietyUpperThresholdKey: string + readonly energyLowerThresholdKey: string + readonly energyUpperThresholdKey: string + readonly moodLowerThresholdKey: string + readonly moodUpperThresholdKey: string +} + +} + + +export namespace ai { +export abstract class Decorator extends ai.Node { + static constructorFrom(_json_: any): Decorator{ + switch (_json_["$type"]) { + case 'UeLoop': return new ai.UeLoop(_json_) + case 'UeCooldown': return new ai.UeCooldown(_json_) + case 'UeTimeLimit': return new ai.UeTimeLimit(_json_) + case 'UeBlackboard': return new ai.UeBlackboard(_json_) + case 'UeForceSuccess': return new ai.UeForceSuccess(_json_) + case 'IsAtLocation': return new ai.IsAtLocation(_json_) + case 'DistanceLessThan': return new ai.DistanceLessThan(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + super(_json_) + if (_json_.flow_abort_mode === undefined) { throw new Error() } + this.flowAbortMode = _json_.flow_abort_mode + } + + readonly flowAbortMode: ai.EFlowAbortMode +} + +} + + +export namespace ai { +export class UeLoop extends ai.Decorator { + + constructor(_json_: any) { + super(_json_) + if (_json_.num_loops === undefined) { throw new Error() } + this.numLoops = _json_.num_loops + if (_json_.infinite_loop === undefined) { throw new Error() } + this.infiniteLoop = _json_.infinite_loop + if (_json_.infinite_loop_timeout_time === undefined) { throw new Error() } + this.infiniteLoopTimeoutTime = _json_.infinite_loop_timeout_time + } + + readonly numLoops: number + readonly infiniteLoop: boolean + readonly infiniteLoopTimeoutTime: number +} + +} + + +export namespace ai { +export class UeCooldown extends ai.Decorator { + + constructor(_json_: any) { + super(_json_) + if (_json_.cooldown_time === undefined) { throw new Error() } + this.cooldownTime = _json_.cooldown_time + } + + readonly cooldownTime: number +} + +} + + +export namespace ai { +export class UeTimeLimit extends ai.Decorator { + + constructor(_json_: any) { + super(_json_) + if (_json_.limit_time === undefined) { throw new Error() } + this.limitTime = _json_.limit_time + } + + readonly limitTime: number +} + +} + + +export namespace ai { +export class UeBlackboard extends ai.Decorator { + + constructor(_json_: any) { + super(_json_) + if (_json_.notify_observer === undefined) { throw new Error() } + this.notifyObserver = _json_.notify_observer + if (_json_.blackboard_key === undefined) { throw new Error() } + this.blackboardKey = _json_.blackboard_key + if (_json_.key_query === undefined) { throw new Error() } + this.keyQuery = ai.KeyQueryOperator.constructorFrom(_json_.key_query) + } + + readonly notifyObserver: ai.ENotifyObserverMode + readonly blackboardKey: string + readonly keyQuery: ai.KeyQueryOperator +} + +} + + +export namespace ai { +export abstract class KeyQueryOperator { + static constructorFrom(_json_: any): KeyQueryOperator{ + switch (_json_["$type"]) { + case 'IsSet': return new ai.IsSet(_json_) + case 'IsNotSet': return new ai.IsNotSet(_json_) + case 'BinaryOperator': return new ai.BinaryOperator(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + } + +} + +} + + +export namespace ai { +export class IsSet extends ai.KeyQueryOperator { + + constructor(_json_: any) { + super(_json_) + } + +} + +} + + +export namespace ai { +export class IsNotSet extends ai.KeyQueryOperator { + + constructor(_json_: any) { + super(_json_) + } + +} + +} + + +export namespace ai { +export class BinaryOperator extends ai.KeyQueryOperator { + + constructor(_json_: any) { + super(_json_) + if (_json_.oper === undefined) { throw new Error() } + this.oper = _json_.oper + if (_json_.data === undefined) { throw new Error() } + this.data = ai.KeyData.constructorFrom(_json_.data) + } + + readonly oper: ai.EOperator + readonly data: ai.KeyData +} + +} + + +export namespace ai { +export abstract class KeyData { + static constructorFrom(_json_: any): KeyData{ + switch (_json_["$type"]) { + case 'FloatKeyData': return new ai.FloatKeyData(_json_) + case 'IntKeyData': return new ai.IntKeyData(_json_) + case 'StringKeyData': return new ai.StringKeyData(_json_) + case 'BlackboardKeyData': return new ai.BlackboardKeyData(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + } + +} + +} + + +export namespace ai { +export class FloatKeyData extends ai.KeyData { + + constructor(_json_: any) { + super(_json_) + if (_json_.value === undefined) { throw new Error() } + this.value = _json_.value + } + + readonly value: number +} + +} + + +export namespace ai { +export class IntKeyData extends ai.KeyData { + + constructor(_json_: any) { + super(_json_) + if (_json_.value === undefined) { throw new Error() } + this.value = _json_.value + } + + readonly value: number +} + +} + + +export namespace ai { +export class StringKeyData extends ai.KeyData { + + constructor(_json_: any) { + super(_json_) + if (_json_.value === undefined) { throw new Error() } + this.value = _json_.value + } + + readonly value: string +} + +} + + +export namespace ai { +export class BlackboardKeyData extends ai.KeyData { + + constructor(_json_: any) { + super(_json_) + if (_json_.value === undefined) { throw new Error() } + this.value = _json_.value + } + + readonly value: string +} + +} + + +export namespace ai { +export class UeForceSuccess extends ai.Decorator { + + constructor(_json_: any) { + super(_json_) + } + +} + +} + + +export namespace ai { +export class IsAtLocation extends ai.Decorator { + + constructor(_json_: any) { + super(_json_) + if (_json_.acceptable_radius === undefined) { throw new Error() } + this.acceptableRadius = _json_.acceptable_radius + if (_json_.keyboard_key === undefined) { throw new Error() } + this.keyboardKey = _json_.keyboard_key + if (_json_.inverse_condition === undefined) { throw new Error() } + this.inverseCondition = _json_.inverse_condition + } + + readonly acceptableRadius: number + readonly keyboardKey: string + readonly inverseCondition: boolean +} + +} + + +export namespace ai { +export class DistanceLessThan extends ai.Decorator { + + constructor(_json_: any) { + super(_json_) + if (_json_.actor1_key === undefined) { throw new Error() } + this.actor1Key = _json_.actor1_key + if (_json_.actor2_key === undefined) { throw new Error() } + this.actor2Key = _json_.actor2_key + if (_json_.distance === undefined) { throw new Error() } + this.distance = _json_.distance + if (_json_.reverse_result === undefined) { throw new Error() } + this.reverseResult = _json_.reverse_result + } + + readonly actor1Key: string + readonly actor2Key: string + readonly distance: number + readonly reverseResult: boolean +} + +} + + +export namespace ai { +export abstract class FlowNode extends ai.Node { + static constructorFrom(_json_: any): FlowNode{ + switch (_json_["$type"]) { + case 'Sequence': return new ai.Sequence(_json_) + case 'Selector': return new ai.Selector(_json_) + case 'SimpleParallel': return new ai.SimpleParallel(_json_) + case 'UeWait': return new ai.UeWait(_json_) + case 'UeWaitBlackboardTime': return new ai.UeWaitBlackboardTime(_json_) + case 'MoveToTarget': return new ai.MoveToTarget(_json_) + case 'ChooseSkill': return new ai.ChooseSkill(_json_) + case 'MoveToRandomLocation': return new ai.MoveToRandomLocation(_json_) + case 'MoveToLocation': return new ai.MoveToLocation(_json_) + case 'DebugPrint': return new ai.DebugPrint(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + super(_json_) + if (_json_.decorators === undefined) { throw new Error() } + { this.decorators = []; for(let _ele of _json_.decorators) { let _e; _e = ai.Decorator.constructorFrom(_ele); this.decorators.push(_e);}} + if (_json_.services === undefined) { throw new Error() } + { this.services = []; for(let _ele of _json_.services) { let _e; _e = ai.Service.constructorFrom(_ele); this.services.push(_e);}} + } + + readonly decorators: ai.Decorator[] + readonly services: ai.Service[] +} + +} + + +export namespace ai { +export abstract class ComposeNode extends ai.FlowNode { + static constructorFrom(_json_: any): ComposeNode{ + switch (_json_["$type"]) { + case 'Sequence': return new ai.Sequence(_json_) + case 'Selector': return new ai.Selector(_json_) + case 'SimpleParallel': return new ai.SimpleParallel(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + super(_json_) + } + +} + +} + + +export namespace ai { +export class Sequence extends ai.ComposeNode { + + constructor(_json_: any) { + super(_json_) + if (_json_.children === undefined) { throw new Error() } + { this.children = []; for(let _ele of _json_.children) { let _e; _e = ai.FlowNode.constructorFrom(_ele); this.children.push(_e);}} + } + + readonly children: ai.FlowNode[] +} + +} + + +export namespace ai { +export class Selector extends ai.ComposeNode { + + constructor(_json_: any) { + super(_json_) + if (_json_.children === undefined) { throw new Error() } + { this.children = []; for(let _ele of _json_.children) { let _e; _e = ai.FlowNode.constructorFrom(_ele); this.children.push(_e);}} + } + + readonly children: ai.FlowNode[] +} + +} + + +export namespace ai { +export class SimpleParallel extends ai.ComposeNode { + + constructor(_json_: any) { + super(_json_) + if (_json_.finish_mode === undefined) { throw new Error() } + this.finishMode = _json_.finish_mode + if (_json_.main_task === undefined) { throw new Error() } + this.mainTask = ai.Task.constructorFrom(_json_.main_task) + if (_json_.background_node === undefined) { throw new Error() } + this.backgroundNode = ai.FlowNode.constructorFrom(_json_.background_node) + } + + readonly finishMode: ai.EFinishMode + readonly mainTask: ai.Task + readonly backgroundNode: ai.FlowNode +} + +} + + +export namespace ai { +export abstract class Task extends ai.FlowNode { + static constructorFrom(_json_: any): Task{ + switch (_json_["$type"]) { + case 'UeWait': return new ai.UeWait(_json_) + case 'UeWaitBlackboardTime': return new ai.UeWaitBlackboardTime(_json_) + case 'MoveToTarget': return new ai.MoveToTarget(_json_) + case 'ChooseSkill': return new ai.ChooseSkill(_json_) + case 'MoveToRandomLocation': return new ai.MoveToRandomLocation(_json_) + case 'MoveToLocation': return new ai.MoveToLocation(_json_) + case 'DebugPrint': return new ai.DebugPrint(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + super(_json_) + if (_json_.ignore_restart_self === undefined) { throw new Error() } + this.ignoreRestartSelf = _json_.ignore_restart_self + } + + readonly ignoreRestartSelf: boolean +} + +} + + +export namespace ai { +export class UeWait extends ai.Task { + + constructor(_json_: any) { + super(_json_) + if (_json_.wait_time === undefined) { throw new Error() } + this.waitTime = _json_.wait_time + if (_json_.random_deviation === undefined) { throw new Error() } + this.randomDeviation = _json_.random_deviation + } + + readonly waitTime: number + readonly randomDeviation: number +} + +} + + +export namespace ai { +export class UeWaitBlackboardTime extends ai.Task { + + constructor(_json_: any) { + super(_json_) + if (_json_.blackboard_key === undefined) { throw new Error() } + this.blackboardKey = _json_.blackboard_key + } + + readonly blackboardKey: string +} + +} + + +export namespace ai { +export class MoveToTarget extends ai.Task { + + constructor(_json_: any) { + super(_json_) + if (_json_.target_actor_key === undefined) { throw new Error() } + this.targetActorKey = _json_.target_actor_key + if (_json_.acceptable_radius === undefined) { throw new Error() } + this.acceptableRadius = _json_.acceptable_radius + } + + readonly targetActorKey: string + readonly acceptableRadius: number +} + +} + + +export namespace ai { +export class ChooseSkill extends ai.Task { + + constructor(_json_: any) { + super(_json_) + if (_json_.target_actor_key === undefined) { throw new Error() } + this.targetActorKey = _json_.target_actor_key + if (_json_.result_skill_id_key === undefined) { throw new Error() } + this.resultSkillIdKey = _json_.result_skill_id_key + } + + readonly targetActorKey: string + readonly resultSkillIdKey: string +} + +} + + +export namespace ai { +export class MoveToRandomLocation extends ai.Task { + + constructor(_json_: any) { + super(_json_) + if (_json_.origin_position_key === undefined) { throw new Error() } + this.originPositionKey = _json_.origin_position_key + if (_json_.radius === undefined) { throw new Error() } + this.radius = _json_.radius + } + + readonly originPositionKey: string + readonly radius: number +} + +} + + +export namespace ai { +export class MoveToLocation extends ai.Task { + + constructor(_json_: any) { + super(_json_) + if (_json_.acceptable_radius === undefined) { throw new Error() } + this.acceptableRadius = _json_.acceptable_radius + } + + readonly acceptableRadius: number +} + +} + + +export namespace ai { +export class DebugPrint extends ai.Task { + + constructor(_json_: any) { + super(_json_) + if (_json_.text === undefined) { throw new Error() } + this.text = _json_.text + } + + readonly text: string +} + +} + + +export namespace common { +export class GlobalConfig { + + constructor(_json_: any) { + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + if (_json_.x2 === undefined) { throw new Error() } + this.x2 = _json_.x2 + if (_json_.x3 === undefined) { throw new Error() } + this.x3 = _json_.x3 + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = _json_.x4 + if (_json_.x5 === undefined) { throw new Error() } + this.x5 = _json_.x5 + if (_json_.x6 === undefined) { throw new Error() } + this.x6 = _json_.x6 + if (_json_.x7 === undefined) { throw new Error() } + { this.x7 = []; for(let _ele of _json_.x7) { let _e; _e = _ele; this.x7.push(_e);}} + } + + /** + * 背包容量 + */ + readonly x1: number + readonly x2: number + readonly x3: number + readonly x4: number + readonly x5: number + readonly x6: number + readonly x7: number[] +} + +} + + +export namespace item { +/** + * 道具 + */ +export class Item { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.minor_type === undefined) { throw new Error() } + this.minorType = _json_.minor_type + if (_json_.quality === undefined) { throw new Error() } + this.quality = _json_.quality + if (_json_.icon_backgroud === undefined) { throw new Error() } + this.iconBackgroud = _json_.icon_backgroud + if (_json_.icon_mask === undefined) { throw new Error() } + this.iconMask = _json_.icon_mask + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + if (_json_.show_order === undefined) { throw new Error() } + this.showOrder = _json_.show_order + } + + /** + * 道具id + */ + readonly id: number + readonly name: string + readonly minorType: item.EMinorType + readonly quality: item.EItemQuality + readonly iconBackgroud: string + readonly iconMask: string + readonly desc: string + readonly showOrder: number +} + +} + + +export namespace l10n { +export class L10NDemo { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.text === undefined) { throw new Error() } + this.text = _json_.text + } + + readonly id: number + readonly text: string +} + +} + + +export namespace l10n { +export class PatchDemo { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.value === undefined) { throw new Error() } + this.value = _json_.value + } + + readonly id: number + readonly value: number +} + +} + + +export namespace tag { +export class TestTag { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.value === undefined) { throw new Error() } + this.value = _json_.value + } + + readonly id: number + readonly value: string +} + +} + + +export namespace test { +export class DemoType2 { + + constructor(_json_: any) { + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = _json_.x4 + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + if (_json_.x2 === undefined) { throw new Error() } + this.x2 = _json_.x2 + if (_json_.x3 === undefined) { throw new Error() } + this.x3 = _json_.x3 + if (_json_.x5 === undefined) { throw new Error() } + this.x5 = _json_.x5 + if (_json_.x6 === undefined) { throw new Error() } + this.x6 = _json_.x6 + if (_json_.x7 === undefined) { throw new Error() } + this.x7 = _json_.x7 + if (_json_.x8_0 === undefined) { throw new Error() } + this.x80 = _json_.x8_0 + if (_json_.x8 === undefined) { throw new Error() } + this.x8 = _json_.x8 + if (_json_.x9 === undefined) { throw new Error() } + this.x9 = _json_.x9 + if (_json_.x10 === undefined) { throw new Error() } + this.x10 = _json_.x10 + if (_json_.x12 === undefined) { throw new Error() } + this.x12 = new test.DemoType1(_json_.x12) + if (_json_.x13 === undefined) { throw new Error() } + this.x13 = _json_.x13 + if (_json_.x14 === undefined) { throw new Error() } + this.x14 = test.DemoDynamic.constructorFrom(_json_.x14) + if (_json_.s1 === undefined) { throw new Error() } + this.s1 = _json_.s1 + if (_json_.t1 === undefined) { throw new Error() } + this.t1 = _json_.t1 + if (_json_.k1 === undefined) { throw new Error() } + { this.k1 = []; for(let _ele of _json_.k1) { let _e; _e = _ele; this.k1.push(_e);}} + if (_json_.k2 === undefined) { throw new Error() } + { this.k2 = []; for(let _ele of _json_.k2) { let _e; _e = _ele; this.k2.push(_e);}} + if (_json_.k5 === undefined) { throw new Error() } + this.k5 = _json_.k5 + if (_json_.k8 === undefined) { throw new Error() } + this.k8 = new Map(); for(var _entry_ of _json_.k8) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.k8.set(_k, _v); } + if (_json_.k9 === undefined) { throw new Error() } + { this.k9 = []; for(let _ele of _json_.k9) { let _e; _e = new test.DemoE2(_ele); this.k9.push(_e);}} + if (_json_.k15 === undefined) { throw new Error() } + { this.k15 = []; for(let _ele of _json_.k15) { let _e; _e = test.DemoDynamic.constructorFrom(_ele); this.k15.push(_e);}} + } + + readonly x4: number + readonly x1: boolean + readonly x2: number + readonly x3: number + readonly x5: number + readonly x6: number + readonly x7: number + readonly x80: number + readonly x8: number + readonly x9: number + readonly x10: string + readonly x12: test.DemoType1 + readonly x13: test.DemoEnum + readonly x14: test.DemoDynamic + readonly s1: string + readonly t1: number + readonly k1: number[] + readonly k2: number[] + readonly k5: Set + readonly k8: Map + readonly k9: test.DemoE2[] + readonly k15: test.DemoDynamic[] +} + +} + + +export namespace test { +export class DemoType1 { + + constructor(_json_: any) { + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + } + + readonly x1: number +} + +} + + +export namespace test { +export abstract class DemoDynamic { + static constructorFrom(_json_: any): DemoDynamic{ + switch (_json_["$type"]) { + case 'DemoD2': return new test.DemoD2(_json_) + case 'DemoE1': return new test.DemoE1(_json_) + case 'test.login.RoleInfo': return new test.login.RoleInfo(_json_) + case 'DemoD5': return new test.DemoD5(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + } + + readonly x1: number +} + +} + + +export namespace test { +export class DemoD2 extends test.DemoDynamic { + + constructor(_json_: any) { + super(_json_) + if (_json_.x2 === undefined) { throw new Error() } + this.x2 = _json_.x2 + } + + readonly x2: number +} + +} + + +export namespace test { +export abstract class DemoD3 extends test.DemoDynamic { + static constructorFrom(_json_: any): DemoD3{ + switch (_json_["$type"]) { + case 'DemoE1': return new test.DemoE1(_json_) + case 'test.login.RoleInfo': return new test.login.RoleInfo(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + super(_json_) + if (_json_.x3 === undefined) { throw new Error() } + this.x3 = _json_.x3 + } + + readonly x3: number +} + +} + + +export namespace test { +export class DemoE1 extends test.DemoD3 { + + constructor(_json_: any) { + super(_json_) + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = _json_.x4 + } + + readonly x4: number +} + +} + + +export namespace test {export namespace login { +export class RoleInfo extends test.DemoD3 { + + constructor(_json_: any) { + super(_json_) + if (_json_.role_id === undefined) { throw new Error() } + this.roleId = _json_.role_id + } + + readonly roleId: number +} + +}} + + +export namespace test { +export class DemoD5 extends test.DemoDynamic { + + constructor(_json_: any) { + super(_json_) + if (_json_.time === undefined) { throw new Error() } + this.time = new test.DateTimeRange(_json_.time) + } + + readonly time: test.DateTimeRange +} + +} + + +export namespace test { +export class DateTimeRange { + + constructor(_json_: any) { + if (_json_.start_time === undefined) { throw new Error() } + this.startTime = _json_.start_time + if (_json_.end_time === undefined) { throw new Error() } + this.endTime = _json_.end_time + } + + readonly startTime: number + readonly endTime: number +} + +} + + +export namespace test { +export class DemoE2 { + + constructor(_json_: any) { + if(_json_.y1 != undefined) { this.y1 = _json_.y1 } else { this.y1 = undefined } + if (_json_.y2 === undefined) { throw new Error() } + this.y2 = _json_.y2 + } + + readonly y1: number|undefined + readonly y2: boolean +} + +} + + +export namespace test { +export class DemoSingletonType { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.date === undefined) { throw new Error() } + this.date = test.DemoDynamic.constructorFrom(_json_.date) + } + + readonly id: number + readonly name: string + readonly date: test.DemoDynamic +} + +} + + +export namespace test { +export class NotIndexList { + + constructor(_json_: any) { + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + } + + readonly x: number + readonly y: number +} + +} + + +export namespace test { +export class MultiUnionIndexList { + + constructor(_json_: any) { + if (_json_.id1 === undefined) { throw new Error() } + this.id1 = _json_.id1 + if (_json_.id2 === undefined) { throw new Error() } + this.id2 = _json_.id2 + if (_json_.id3 === undefined) { throw new Error() } + this.id3 = _json_.id3 + if (_json_.num === undefined) { throw new Error() } + this.num = _json_.num + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + } + + readonly id1: number + readonly id2: number + readonly id3: string + readonly num: number + readonly desc: string +} + +} + + +export namespace test { +export class MultiIndexList { + + constructor(_json_: any) { + if (_json_.id1 === undefined) { throw new Error() } + this.id1 = _json_.id1 + if (_json_.id2 === undefined) { throw new Error() } + this.id2 = _json_.id2 + if (_json_.id3 === undefined) { throw new Error() } + this.id3 = _json_.id3 + if (_json_.num === undefined) { throw new Error() } + this.num = _json_.num + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + } + + readonly id1: number + readonly id2: number + readonly id3: string + readonly num: number + readonly desc: string +} + +} + + +export namespace test { +export class MultiRowRecord { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.one_rows === undefined) { throw new Error() } + { this.oneRows = []; for(let _ele of _json_.one_rows) { let _e; _e = new test.MultiRowType1(_ele); this.oneRows.push(_e);}} + if (_json_.multi_rows1 === undefined) { throw new Error() } + { this.multiRows1 = []; for(let _ele of _json_.multi_rows1) { let _e; _e = new test.MultiRowType1(_ele); this.multiRows1.push(_e);}} + if (_json_.multi_rows2 === undefined) { throw new Error() } + { this.multiRows2 = []; for(let _ele of _json_.multi_rows2) { let _e; _e = new test.MultiRowType1(_ele); this.multiRows2.push(_e);}} + if (_json_.multi_rows4 === undefined) { throw new Error() } + this.multiRows4 = new Map(); for(var _entry_ of _json_.multi_rows4) { let _k; _k = _entry_[0]; let _v; _v = new test.MultiRowType2(_entry_[1]); this.multiRows4.set(_k, _v); } + if (_json_.multi_rows5 === undefined) { throw new Error() } + { this.multiRows5 = []; for(let _ele of _json_.multi_rows5) { let _e; _e = new test.MultiRowType3(_ele); this.multiRows5.push(_e);}} + if (_json_.multi_rows6 === undefined) { throw new Error() } + this.multiRows6 = new Map(); for(var _entry_ of _json_.multi_rows6) { let _k; _k = _entry_[0]; let _v; _v = new test.MultiRowType2(_entry_[1]); this.multiRows6.set(_k, _v); } + if (_json_.multi_rows7 === undefined) { throw new Error() } + this.multiRows7 = new Map(); for(var _entry_ of _json_.multi_rows7) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.multiRows7.set(_k, _v); } + } + + readonly id: number + readonly name: string + readonly oneRows: test.MultiRowType1[] + readonly multiRows1: test.MultiRowType1[] + readonly multiRows2: test.MultiRowType1[] + readonly multiRows4: Map + readonly multiRows5: test.MultiRowType3[] + readonly multiRows6: Map + readonly multiRows7: Map +} + +} + + +export namespace test { +export class MultiRowType1 { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + } + + readonly id: number + readonly x: number +} + +} + + +export namespace test { +export class MultiRowType2 { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + } + + readonly id: number + readonly x: number + readonly y: number +} + +} + + +export namespace test { +export class MultiRowType3 { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.items === undefined) { throw new Error() } + { this.items = []; for(let _ele of _json_.items) { let _e; _e = new test.MultiRowType1(_ele); this.items.push(_e);}} + } + + readonly id: number + readonly items: test.MultiRowType1[] +} + +} + + +export namespace test { +export class TestMultiColumn { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.a === undefined) { throw new Error() } + this.a = new test.Foo(_json_.a) + if (_json_.b === undefined) { throw new Error() } + this.b = new test.Foo(_json_.b) + if (_json_.c === undefined) { throw new Error() } + this.c = new test.Foo(_json_.c) + } + + readonly id: number + readonly a: test.Foo + readonly b: test.Foo + readonly c: test.Foo +} + +} + + +export namespace test { +export class Foo { + + constructor(_json_: any) { + if (_json_.y1 === undefined) { throw new Error() } + this.y1 = _json_.y1 + if (_json_.y2 === undefined) { throw new Error() } + this.y2 = _json_.y2 + if (_json_.y3 === undefined) { throw new Error() } + this.y3 = _json_.y3 + } + + readonly y1: number + readonly y2: number + readonly y3: number +} + +} + + +export namespace test { +export class MultiRowTitle { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = new test.H1(_json_.x1) + if(_json_.x2_0 != undefined) { this.x20 = new test.H2(_json_.x2_0) } else { this.x20 = undefined } + if (_json_.x2 === undefined) { throw new Error() } + { this.x2 = []; for(let _ele of _json_.x2) { let _e; _e = new test.H2(_ele); this.x2.push(_e);}} + if (_json_.x3 === undefined) { throw new Error() } + { this.x3 = []; for(let _ele of _json_.x3) { let _e; _e = new test.H2(_ele); this.x3.push(_e);}} + if (_json_.x4 === undefined) { throw new Error() } + { this.x4 = []; for(let _ele of _json_.x4) { let _e; _e = new test.H2(_ele); this.x4.push(_e);}} + } + + readonly id: number + readonly name: string + readonly x1: test.H1 + readonly x20: test.H2|undefined + readonly x2: test.H2[] + readonly x3: test.H2[] + readonly x4: test.H2[] +} + +} + + +export namespace test { +export class H1 { + + constructor(_json_: any) { + if (_json_.y2 === undefined) { throw new Error() } + this.y2 = new test.H2(_json_.y2) + if (_json_.y3 === undefined) { throw new Error() } + this.y3 = _json_.y3 + } + + readonly y2: test.H2 + readonly y3: number +} + +} + + +export namespace test { +export class H2 { + + constructor(_json_: any) { + if (_json_.z2 === undefined) { throw new Error() } + this.z2 = _json_.z2 + if (_json_.z3 === undefined) { throw new Error() } + this.z3 = _json_.z3 + } + + readonly z2: number + readonly z3: number +} + +} + + +export namespace test { +export class TestNull { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if(_json_.x1 != undefined) { this.x1 = _json_.x1 } else { this.x1 = undefined } + if(_json_.x2 != undefined) { this.x2 = _json_.x2 } else { this.x2 = undefined } + if(_json_.x3 != undefined) { this.x3 = new test.DemoType1(_json_.x3) } else { this.x3 = undefined } + if(_json_.x4 != undefined) { this.x4 = test.DemoDynamic.constructorFrom(_json_.x4) } else { this.x4 = undefined } + if(_json_.s1 != undefined) { this.s1 = _json_.s1 } else { this.s1 = undefined } + if(_json_.s2 != undefined) { this.s2 = _json_.s2 } else { this.s2 = undefined } + } + + readonly id: number + readonly x1: number|undefined + readonly x2: test.DemoEnum|undefined + readonly x3: test.DemoType1|undefined + readonly x4: test.DemoDynamic|undefined + readonly s1: string|undefined + readonly s2: string|undefined +} + +} + + +export namespace test { +export class DemoPrimitiveTypesTable { + + constructor(_json_: any) { + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + if (_json_.x2 === undefined) { throw new Error() } + this.x2 = _json_.x2 + if (_json_.x3 === undefined) { throw new Error() } + this.x3 = _json_.x3 + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = _json_.x4 + if (_json_.x5 === undefined) { throw new Error() } + this.x5 = _json_.x5 + if (_json_.x6 === undefined) { throw new Error() } + this.x6 = _json_.x6 + if (_json_.x7 === undefined) { throw new Error() } + this.x7 = _json_.x7 + if (_json_.s1 === undefined) { throw new Error() } + this.s1 = _json_.s1 + if (_json_.s2 === undefined) { throw new Error() } + this.s2 = _json_.s2 + if (_json_.v2 === undefined) { throw new Error() } + this.v2 = new vec2(_json_.v2) + if (_json_.v3 === undefined) { throw new Error() } + this.v3 = new vec3(_json_.v3) + if (_json_.v4 === undefined) { throw new Error() } + this.v4 = new vec4(_json_.v4) + if (_json_.t1 === undefined) { throw new Error() } + this.t1 = _json_.t1 + } + + readonly x1: boolean + readonly x2: number + readonly x3: number + readonly x4: number + readonly x5: number + readonly x6: number + readonly x7: number + readonly s1: string + readonly s2: string + readonly v2: vec2 + readonly v3: vec3 + readonly v4: vec4 + readonly t1: number +} + +} + + + +export class vec2 { + + constructor(_json_: any) { + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + } + + readonly x: number + readonly y: number +} + + + + + +export class vec3 { + + constructor(_json_: any) { + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + if (_json_.z === undefined) { throw new Error() } + this.z = _json_.z + } + + readonly x: number + readonly y: number + readonly z: number +} + + + + + +export class vec4 { + + constructor(_json_: any) { + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + if (_json_.z === undefined) { throw new Error() } + this.z = _json_.z + if (_json_.w === undefined) { throw new Error() } + this.w = _json_.w + } + + readonly x: number + readonly y: number + readonly z: number + readonly w: number +} + + + + +export namespace test { +export class TestString { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.s1 === undefined) { throw new Error() } + this.s1 = _json_.s1 + if (_json_.s2 === undefined) { throw new Error() } + this.s2 = _json_.s2 + if (_json_.cs1 === undefined) { throw new Error() } + this.cs1 = new test.CompactString(_json_.cs1) + if (_json_.cs2 === undefined) { throw new Error() } + this.cs2 = new test.CompactString(_json_.cs2) + } + + readonly id: string + readonly s1: string + readonly s2: string + readonly cs1: test.CompactString + readonly cs2: test.CompactString +} + +} + + +export namespace test { +export class CompactString { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.s2 === undefined) { throw new Error() } + this.s2 = _json_.s2 + if (_json_.s3 === undefined) { throw new Error() } + this.s3 = _json_.s3 + } + + readonly id: number + readonly s2: string + readonly s3: string +} + +} + + +export namespace test { +export class DemoGroup { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x5 === undefined) { throw new Error() } + this.x5 = new test.InnerGroup(_json_.x5) + } + + readonly id: number + readonly x5: test.InnerGroup +} + +} + + +export namespace test { +export class InnerGroup { + + constructor(_json_: any) { + if (_json_.y1 === undefined) { throw new Error() } + this.y1 = _json_.y1 + } + + readonly y1: number +} + +} + + +export namespace test { +export class TestGlobal { + + constructor(_json_: any) { + if (_json_.unlock_equip === undefined) { throw new Error() } + this.unlockEquip = _json_.unlock_equip + if (_json_.unlock_hero === undefined) { throw new Error() } + this.unlockHero = _json_.unlock_hero + } + + readonly unlockEquip: number + readonly unlockHero: number +} + +} + + +export namespace test { +export class TestBeRef { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.count === undefined) { throw new Error() } + this.count = _json_.count + } + + readonly id: number + readonly count: number +} + +} + + +export namespace test { +export class TestRef { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + if (_json_.x1_2 === undefined) { throw new Error() } + this.x12 = _json_.x1_2 + if (_json_.x2 === undefined) { throw new Error() } + this.x2 = _json_.x2 + if (_json_.x3 === undefined) { throw new Error() } + this.x3 = _json_.x3 + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = _json_.x4 + if (_json_.a1 === undefined) { throw new Error() } + { this.a1 = []; for(let _ele of _json_.a1) { let _e; _e = _ele; this.a1.push(_e);}} + if (_json_.a2 === undefined) { throw new Error() } + { this.a2 = []; for(let _ele of _json_.a2) { let _e; _e = _ele; this.a2.push(_e);}} + if (_json_.b1 === undefined) { throw new Error() } + { this.b1 = []; for(let _ele of _json_.b1) { let _e; _e = _ele; this.b1.push(_e);}} + if (_json_.b2 === undefined) { throw new Error() } + { this.b2 = []; for(let _ele of _json_.b2) { let _e; _e = _ele; this.b2.push(_e);}} + if (_json_.c1 === undefined) { throw new Error() } + this.c1 = _json_.c1 + if (_json_.c2 === undefined) { throw new Error() } + this.c2 = _json_.c2 + if (_json_.d1 === undefined) { throw new Error() } + this.d1 = new Map(); for(var _entry_ of _json_.d1) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.d1.set(_k, _v); } + if (_json_.d2 === undefined) { throw new Error() } + this.d2 = new Map(); for(var _entry_ of _json_.d2) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.d2.set(_k, _v); } + if (_json_.e1 === undefined) { throw new Error() } + this.e1 = _json_.e1 + if (_json_.e2 === undefined) { throw new Error() } + this.e2 = _json_.e2 + if (_json_.e3 === undefined) { throw new Error() } + this.e3 = _json_.e3 + if (_json_.f1 === undefined) { throw new Error() } + this.f1 = _json_.f1 + if (_json_.f2 === undefined) { throw new Error() } + this.f2 = _json_.f2 + if (_json_.f3 === undefined) { throw new Error() } + this.f3 = _json_.f3 + if (_json_.s1 === undefined) { throw new Error() } + this.s1 = test.RefDynamicBase.constructorFrom(_json_.s1) + } + + readonly id: number + readonly x1: number + readonly x12: number + readonly x2: number + readonly x3: number + readonly x4: number + readonly a1: number[] + readonly a2: number[] + readonly b1: number[] + readonly b2: number[] + readonly c1: Set + readonly c2: Set + readonly d1: Map + readonly d2: Map + readonly e1: number + readonly e2: number + readonly e3: string + readonly f1: number + readonly f2: number + readonly f3: string + readonly s1: test.RefDynamicBase +} + +} + + +export namespace test { +export abstract class RefDynamicBase { + static constructorFrom(_json_: any): RefDynamicBase{ + switch (_json_["$type"]) { + case 'RefBean': return new test.RefBean(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + } + + readonly x: number +} + +} + + +export namespace test { +export class RefBean extends test.RefDynamicBase { + + constructor(_json_: any) { + super(_json_) + if (_json_.arr === undefined) { throw new Error() } + { this.arr = []; for(let _ele of _json_.arr) { let _e; _e = _ele; this.arr.push(_e);}} + } + + readonly arr: number[] +} + +} + + +export namespace test { +export class TestSize { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x1 === undefined) { throw new Error() } + { this.x1 = []; for(let _ele of _json_.x1) { let _e; _e = _ele; this.x1.push(_e);}} + if (_json_.x2 === undefined) { throw new Error() } + { this.x2 = []; for(let _ele of _json_.x2) { let _e; _e = _ele; this.x2.push(_e);}} + if (_json_.x3 === undefined) { throw new Error() } + this.x3 = _json_.x3 + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = new Map(); for(var _entry_ of _json_.x4) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.x4.set(_k, _v); } + } + + readonly id: number + readonly x1: number[] + readonly x2: number[] + readonly x3: Set + readonly x4: Map +} + +} + + +export namespace test { +export class TestSet { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x0 === undefined) { throw new Error() } + this.x0 = _json_.x0 + if (_json_.x1 === undefined) { throw new Error() } + { this.x1 = []; for(let _ele of _json_.x1) { let _e; _e = _ele; this.x1.push(_e);}} + if (_json_.x2 === undefined) { throw new Error() } + { this.x2 = []; for(let _ele of _json_.x2) { let _e; _e = _ele; this.x2.push(_e);}} + if (_json_.x3 === undefined) { throw new Error() } + { this.x3 = []; for(let _ele of _json_.x3) { let _e; _e = _ele; this.x3.push(_e);}} + if (_json_.x4 === undefined) { throw new Error() } + { this.x4 = []; for(let _ele of _json_.x4) { let _e; _e = _ele; this.x4.push(_e);}} + } + + readonly id: number + readonly x0: string + readonly x1: number[] + readonly x2: number[] + readonly x3: string[] + readonly x4: test.DemoEnum[] +} + +} + + +export namespace test { +export class DetectEncoding { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + } + + readonly id: number + readonly name: string +} + +} + + +export namespace test { +export abstract class ItemBase { + static constructorFrom(_json_: any): ItemBase{ + switch (_json_["$type"]) { + case 'Item': return new test.Item(_json_) + case 'Equipment': return new test.Equipment(_json_) + case 'Decorator': return new test.Decorator(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.name === undefined) { throw new Error() } + this.name = _json_.name + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + } + + readonly id: number + readonly name: string + readonly desc: string +} + +} + + +export namespace test { +export class Item extends test.ItemBase { + + constructor(_json_: any) { + super(_json_) + if (_json_.num === undefined) { throw new Error() } + this.num = _json_.num + if (_json_.price === undefined) { throw new Error() } + this.price = _json_.price + } + + readonly num: number + readonly price: number +} + +} + + +export namespace test { +export class Equipment extends test.ItemBase { + + constructor(_json_: any) { + super(_json_) + if (_json_.attr === undefined) { throw new Error() } + this.attr = _json_.attr + if (_json_.value === undefined) { throw new Error() } + this.value = _json_.value + } + + readonly attr: test.DemoEnum + readonly value: number +} + +} + + +export namespace test { +export class Decorator extends test.ItemBase { + + constructor(_json_: any) { + super(_json_) + if (_json_.duration === undefined) { throw new Error() } + this.duration = _json_.duration + } + + readonly duration: number +} + +} + + +export namespace test { +export class TestIndex { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.eles === undefined) { throw new Error() } + { this.eles = []; for(let _ele of _json_.eles) { let _e; _e = new test.DemoType1(_ele); this.eles.push(_e);}} + } + + readonly id: number + readonly eles: test.DemoType1[] +} + +} + + +export namespace test { +export class TestMap { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = new Map(); for(var _entry_ of _json_.x1) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.x1.set(_k, _v); } + if (_json_.x2 === undefined) { throw new Error() } + this.x2 = new Map(); for(var _entry_ of _json_.x2) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.x2.set(_k, _v); } + if (_json_.x3 === undefined) { throw new Error() } + this.x3 = new Map(); for(var _entry_ of _json_.x3) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.x3.set(_k, _v); } + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = new Map(); for(var _entry_ of _json_.x4) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.x4.set(_k, _v); } + } + + readonly id: number + readonly x1: Map + readonly x2: Map + readonly x3: Map + readonly x4: Map +} + +} + + +export namespace test { +export class ExcelFromJson { + + constructor(_json_: any) { + if (_json_.x4 === undefined) { throw new Error() } + this.x4 = _json_.x4 + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + if (_json_.x5 === undefined) { throw new Error() } + this.x5 = _json_.x5 + if (_json_.x6 === undefined) { throw new Error() } + this.x6 = _json_.x6 + if (_json_.s1 === undefined) { throw new Error() } + this.s1 = _json_.s1 + if (_json_.s2 === undefined) { throw new Error() } + this.s2 = _json_.s2 + if (_json_.t1 === undefined) { throw new Error() } + this.t1 = _json_.t1 + if (_json_.x12 === undefined) { throw new Error() } + this.x12 = new test.DemoType1(_json_.x12) + if (_json_.x13 === undefined) { throw new Error() } + this.x13 = _json_.x13 + if (_json_.x14 === undefined) { throw new Error() } + this.x14 = test.DemoDynamic.constructorFrom(_json_.x14) + if (_json_.k1 === undefined) { throw new Error() } + { this.k1 = []; for(let _ele of _json_.k1) { let _e; _e = _ele; this.k1.push(_e);}} + if (_json_.k8 === undefined) { throw new Error() } + this.k8 = new Map(); for(var _entry_ of _json_.k8) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.k8.set(_k, _v); } + if (_json_.k9 === undefined) { throw new Error() } + { this.k9 = []; for(let _ele of _json_.k9) { let _e; _e = new test.DemoE2(_ele); this.k9.push(_e);}} + if (_json_.k15 === undefined) { throw new Error() } + { this.k15 = []; for(let _ele of _json_.k15) { let _e; _e = test.DemoDynamic.constructorFrom(_ele); this.k15.push(_e);}} + } + + readonly x4: number + readonly x1: boolean + readonly x5: number + readonly x6: number + readonly s1: string + readonly s2: string + readonly t1: number + readonly x12: test.DemoType1 + readonly x13: test.DemoEnum + readonly x14: test.DemoDynamic + readonly k1: number[] + readonly k8: Map + readonly k9: test.DemoE2[] + readonly k15: test.DemoDynamic[] +} + +} + + +export namespace test { +export class CompositeJsonTable1 { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + } + + readonly id: number + readonly x: string +} + +} + + +export namespace test { +export class CompositeJsonTable2 { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + } + + readonly id: number + readonly y: number +} + +} + + +export namespace test { +export class CompositeJsonTable3 { + + constructor(_json_: any) { + if (_json_.a === undefined) { throw new Error() } + this.a = _json_.a + if (_json_.b === undefined) { throw new Error() } + this.b = _json_.b + } + + readonly a: number + readonly b: number +} + +} + + +export namespace test { +export class ExcelFromJsonMultiRow { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.items === undefined) { throw new Error() } + { this.items = []; for(let _ele of _json_.items) { let _e; _e = new test.TestRow(_ele); this.items.push(_e);}} + } + + readonly id: number + readonly x: number + readonly items: test.TestRow[] +} + +} + + +export namespace test { +export class TestRow { + + constructor(_json_: any) { + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + if (_json_.z === undefined) { throw new Error() } + this.z = _json_.z + if (_json_.a === undefined) { throw new Error() } + this.a = new test.Test3(_json_.a) + if (_json_.b === undefined) { throw new Error() } + { this.b = []; for(let _ele of _json_.b) { let _e; _e = _ele; this.b.push(_e);}} + } + + readonly x: number + readonly y: boolean + readonly z: string + readonly a: test.Test3 + readonly b: number[] +} + +} + + +export namespace test { +export class Test3 { + + constructor(_json_: any) { + if (_json_.x === undefined) { throw new Error() } + this.x = _json_.x + if (_json_.y === undefined) { throw new Error() } + this.y = _json_.y + } + + readonly x: number + readonly y: number +} + +} + + +export namespace test { +export class TestScriptableObject { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.desc === undefined) { throw new Error() } + this.desc = _json_.desc + if (_json_.rate === undefined) { throw new Error() } + this.rate = _json_.rate + if (_json_.num === undefined) { throw new Error() } + this.num = _json_.num + if (_json_.v2 === undefined) { throw new Error() } + this.v2 = new vec2(_json_.v2) + if (_json_.v3 === undefined) { throw new Error() } + this.v3 = new vec3(_json_.v3) + if (_json_.v4 === undefined) { throw new Error() } + this.v4 = new vec4(_json_.v4) + } + + readonly id: number + readonly desc: string + readonly rate: number + readonly num: number + readonly v2: vec2 + readonly v3: vec3 + readonly v4: vec4 +} + +} + + +export namespace test { +export class TestMapper { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.audio_type === undefined) { throw new Error() } + this.audioType = _json_.audio_type + if (_json_.v2 === undefined) { throw new Error() } + this.v2 = new vec2(_json_.v2) + } + + readonly id: number + readonly audioType: AudioType + readonly v2: vec2 +} + +} + + + +export class DefineFromExcel2 { + + constructor(_json_: any) { + if (_json_.id === undefined) { throw new Error() } + this.id = _json_.id + if (_json_.x1 === undefined) { throw new Error() } + this.x1 = _json_.x1 + if (_json_.x5 === undefined) { throw new Error() } + this.x5 = _json_.x5 + if (_json_.x6 === undefined) { throw new Error() } + this.x6 = _json_.x6 + if (_json_.x8 === undefined) { throw new Error() } + this.x8 = _json_.x8 + if (_json_.x10 === undefined) { throw new Error() } + this.x10 = _json_.x10 + if (_json_.x13 === undefined) { throw new Error() } + this.x13 = _json_.x13 + if (_json_.x13_2 === undefined) { throw new Error() } + this.x132 = _json_.x13_2 + if (_json_.x14 === undefined) { throw new Error() } + this.x14 = test.DemoDynamic.constructorFrom(_json_.x14) + if (_json_.x15 === undefined) { throw new Error() } + this.x15 = test.Shape.constructorFrom(_json_.x15) + if (_json_.v2 === undefined) { throw new Error() } + this.v2 = new vec2(_json_.v2) + if (_json_.t1 === undefined) { throw new Error() } + this.t1 = _json_.t1 + if (_json_.k1 === undefined) { throw new Error() } + { this.k1 = []; for(let _ele of _json_.k1) { let _e; _e = _ele; this.k1.push(_e);}} + if (_json_.k2 === undefined) { throw new Error() } + { this.k2 = []; for(let _ele of _json_.k2) { let _e; _e = _ele; this.k2.push(_e);}} + if (_json_.k8 === undefined) { throw new Error() } + this.k8 = new Map(); for(var _entry_ of _json_.k8) { let _k; _k = _entry_[0]; let _v; _v = _entry_[1]; this.k8.set(_k, _v); } + if (_json_.k9 === undefined) { throw new Error() } + { this.k9 = []; for(let _ele of _json_.k9) { let _e; _e = new test.DemoE2(_ele); this.k9.push(_e);}} + if (_json_.k10 === undefined) { throw new Error() } + { this.k10 = []; for(let _ele of _json_.k10) { let _e; _e = new vec3(_ele); this.k10.push(_e);}} + if (_json_.k11 === undefined) { throw new Error() } + { this.k11 = []; for(let _ele of _json_.k11) { let _e; _e = new vec4(_ele); this.k11.push(_e);}} + } + + /** + * 这是id + */ + readonly id: number + /** + * 字段x1 + */ + readonly x1: boolean + readonly x5: number + readonly x6: number + readonly x8: number + readonly x10: string + readonly x13: test.DemoEnum + readonly x132: test.DemoFlag + readonly x14: test.DemoDynamic + readonly x15: test.Shape + readonly v2: vec2 + readonly t1: number + readonly k1: number[] + readonly k2: number[] + readonly k8: Map + readonly k9: test.DemoE2[] + readonly k10: vec3[] + readonly k11: vec4[] +} + + + + +export namespace test { +export abstract class Shape { + static constructorFrom(_json_: any): Shape{ + switch (_json_["$type"]) { + case 'Circle': return new test.Circle(_json_) + case 'test2.Rectangle': return new test2.Rectangle(_json_) + default: throw new Error() + } + } + + constructor(_json_: any) { + } + +} + +} + + +export namespace test { +/** + * 圆 + */ +export class Circle extends test.Shape { + + constructor(_json_: any) { + super(_json_) + if (_json_.radius === undefined) { throw new Error() } + this.radius = _json_.radius + } + + /** + * 半径 + */ + readonly radius: number +} + +} + + +export namespace test2 { +/** + * 矩形 + */ +export class Rectangle extends test.Shape { + + constructor(_json_: any) { + super(_json_) + if (_json_.width === undefined) { throw new Error() } + this.width = _json_.width + if (_json_.height === undefined) { throw new Error() } + this.height = _json_.height + } + + /** + * 宽度 + */ + readonly width: number + /** + * 高度 + */ + readonly height: number +} + +} + + + +export namespace ai { +export class TbBlackboard{ + private _dataMap: Map + private _dataList: ai.Blackboard[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: ai.Blackboard + _v = new ai.Blackboard(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.name, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): ai.Blackboard[] { return this._dataList; } + + get(key: string): ai.Blackboard | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace ai { +export class TbBehaviorTree{ + private _dataMap: Map + private _dataList: ai.BehaviorTree[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: ai.BehaviorTree + _v = new ai.BehaviorTree(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): ai.BehaviorTree[] { return this._dataList; } + + get(key: number): ai.BehaviorTree | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace common { +export class TbGlobalConfig{ + + private _data: common.GlobalConfig + constructor(_json_: any) { + if (_json_.length != 1) throw new Error('table mode=one, but size != 1') + this._data = new common.GlobalConfig(_json_[0]) + } + + getData(): common.GlobalConfig { return this._data; } + + /** + * 背包容量 + */ + get x1(): number { return this._data.x1; } + get x2(): number { return this._data.x2; } + get x3(): number { return this._data.x3; } + get x4(): number { return this._data.x4; } + get x5(): number { return this._data.x5; } + get x6(): number { return this._data.x6; } + get x7(): number[] { return this._data.x7; } + + +} +} + + +export namespace item { +/** + * 道具表 + */ +export class TbItem{ + private _dataMap: Map + private _dataList: item.Item[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: item.Item + _v = new item.Item(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): item.Item[] { return this._dataList; } + + get(key: number): item.Item | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace l10n { +export class TbL10NDemo{ + private _dataMap: Map + private _dataList: l10n.L10NDemo[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: l10n.L10NDemo + _v = new l10n.L10NDemo(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): l10n.L10NDemo[] { return this._dataList; } + + get(key: number): l10n.L10NDemo | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace l10n { +export class TbPatchDemo{ + private _dataMap: Map + private _dataList: l10n.PatchDemo[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: l10n.PatchDemo + _v = new l10n.PatchDemo(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): l10n.PatchDemo[] { return this._dataList; } + + get(key: number): l10n.PatchDemo | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace tag { +export class TbTestTag{ + private _dataMap: Map + private _dataList: tag.TestTag[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: tag.TestTag + _v = new tag.TestTag(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): tag.TestTag[] { return this._dataList; } + + get(key: number): tag.TestTag | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbFullTypes{ + private _dataMap: Map + private _dataList: test.DemoType2[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.DemoType2 + _v = new test.DemoType2(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.x4, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.DemoType2[] { return this._dataList; } + + get(key: number): test.DemoType2 | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbSingleton{ + + private _data: test.DemoSingletonType + constructor(_json_: any) { + if (_json_.length != 1) throw new Error('table mode=one, but size != 1') + this._data = new test.DemoSingletonType(_json_[0]) + } + + getData(): test.DemoSingletonType { return this._data; } + + get id(): number { return this._data.id; } + get name(): string { return this._data.name; } + get date(): test.DemoDynamic { return this._data.date; } + + +} +} + + +export namespace test { +export class TbNotIndexList{ + private _dataList: test.NotIndexList[] + + constructor(_json_: any) { + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.NotIndexList + _v = new test.NotIndexList(_json2_) + this._dataList.push(_v) + } + } + + getDataList(): test.NotIndexList[] { return this._dataList } + + get(index: number): test.NotIndexList | undefined { return this._dataList[index] } + + +} +} + + +export namespace test { +export class TbMultiUnionIndexList{ + private _dataList: test.MultiUnionIndexList[] + + constructor(_json_: any) { + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.MultiUnionIndexList + _v = new test.MultiUnionIndexList(_json2_) + this._dataList.push(_v) + } + } + + getDataList(): test.MultiUnionIndexList[] { return this._dataList } + + get(index: number): test.MultiUnionIndexList | undefined { return this._dataList[index] } + + +} +} + + +export namespace test { +export class TbMultiIndexList{ + private _dataList: test.MultiIndexList[] + + constructor(_json_: any) { + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.MultiIndexList + _v = new test.MultiIndexList(_json2_) + this._dataList.push(_v) + } + } + + getDataList(): test.MultiIndexList[] { return this._dataList } + + get(index: number): test.MultiIndexList | undefined { return this._dataList[index] } + + +} +} + + +export namespace test { +export class TbDataFromMisc{ + private _dataMap: Map + private _dataList: test.DemoType2[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.DemoType2 + _v = new test.DemoType2(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.x4, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.DemoType2[] { return this._dataList; } + + get(key: number): test.DemoType2 | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbMultiRowRecord{ + private _dataMap: Map + private _dataList: test.MultiRowRecord[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.MultiRowRecord + _v = new test.MultiRowRecord(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.MultiRowRecord[] { return this._dataList; } + + get(key: number): test.MultiRowRecord | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestMultiColumn{ + private _dataMap: Map + private _dataList: test.TestMultiColumn[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestMultiColumn + _v = new test.TestMultiColumn(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestMultiColumn[] { return this._dataList; } + + get(key: number): test.TestMultiColumn | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbMultiRowTitle{ + private _dataMap: Map + private _dataList: test.MultiRowTitle[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.MultiRowTitle + _v = new test.MultiRowTitle(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.MultiRowTitle[] { return this._dataList; } + + get(key: number): test.MultiRowTitle | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestNull{ + private _dataMap: Map + private _dataList: test.TestNull[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestNull + _v = new test.TestNull(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestNull[] { return this._dataList; } + + get(key: number): test.TestNull | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbDemoPrimitive{ + private _dataMap: Map + private _dataList: test.DemoPrimitiveTypesTable[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.DemoPrimitiveTypesTable + _v = new test.DemoPrimitiveTypesTable(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.x4, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.DemoPrimitiveTypesTable[] { return this._dataList; } + + get(key: number): test.DemoPrimitiveTypesTable | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestString{ + private _dataMap: Map + private _dataList: test.TestString[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestString + _v = new test.TestString(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestString[] { return this._dataList; } + + get(key: string): test.TestString | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbDemoGroup{ + private _dataMap: Map + private _dataList: test.DemoGroup[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.DemoGroup + _v = new test.DemoGroup(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.DemoGroup[] { return this._dataList; } + + get(key: number): test.DemoGroup | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestGlobal{ + + private _data: test.TestGlobal + constructor(_json_: any) { + if (_json_.length != 1) throw new Error('table mode=one, but size != 1') + this._data = new test.TestGlobal(_json_[0]) + } + + getData(): test.TestGlobal { return this._data; } + + get unlockEquip(): number { return this._data.unlockEquip; } + get unlockHero(): number { return this._data.unlockHero; } + + +} +} + + +export namespace test { +export class TbTestBeRef{ + private _dataMap: Map + private _dataList: test.TestBeRef[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestBeRef + _v = new test.TestBeRef(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestBeRef[] { return this._dataList; } + + get(key: number): test.TestBeRef | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestBeRef2{ + private _dataMap: Map + private _dataList: test.TestBeRef[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestBeRef + _v = new test.TestBeRef(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestBeRef[] { return this._dataList; } + + get(key: number): test.TestBeRef | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestRef{ + private _dataMap: Map + private _dataList: test.TestRef[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestRef + _v = new test.TestRef(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestRef[] { return this._dataList; } + + get(key: number): test.TestRef | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestSize{ + private _dataMap: Map + private _dataList: test.TestSize[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestSize + _v = new test.TestSize(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestSize[] { return this._dataList; } + + get(key: number): test.TestSize | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestSet{ + private _dataMap: Map + private _dataList: test.TestSet[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestSet + _v = new test.TestSet(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestSet[] { return this._dataList; } + + get(key: number): test.TestSet | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbDetectCsvEncoding{ + private _dataMap: Map + private _dataList: test.DetectEncoding[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.DetectEncoding + _v = new test.DetectEncoding(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.DetectEncoding[] { return this._dataList; } + + get(key: number): test.DetectEncoding | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbItem2{ + private _dataMap: Map + private _dataList: test.ItemBase[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.ItemBase + _v = test.ItemBase.constructorFrom(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.ItemBase[] { return this._dataList; } + + get(key: number): test.ItemBase | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestIndex{ + private _dataMap: Map + private _dataList: test.TestIndex[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestIndex + _v = new test.TestIndex(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestIndex[] { return this._dataList; } + + get(key: number): test.TestIndex | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestMap{ + private _dataMap: Map + private _dataList: test.TestMap[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestMap + _v = new test.TestMap(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestMap[] { return this._dataList; } + + get(key: number): test.TestMap | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbExcelFromJson{ + private _dataMap: Map + private _dataList: test.ExcelFromJson[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.ExcelFromJson + _v = new test.ExcelFromJson(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.x4, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.ExcelFromJson[] { return this._dataList; } + + get(key: number): test.ExcelFromJson | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbCompositeJsonTable1{ + private _dataMap: Map + private _dataList: test.CompositeJsonTable1[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.CompositeJsonTable1 + _v = new test.CompositeJsonTable1(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.CompositeJsonTable1[] { return this._dataList; } + + get(key: number): test.CompositeJsonTable1 | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbCompositeJsonTable2{ + private _dataMap: Map + private _dataList: test.CompositeJsonTable2[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.CompositeJsonTable2 + _v = new test.CompositeJsonTable2(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.CompositeJsonTable2[] { return this._dataList; } + + get(key: number): test.CompositeJsonTable2 | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbCompositeJsonTable3{ + + private _data: test.CompositeJsonTable3 + constructor(_json_: any) { + if (_json_.length != 1) throw new Error('table mode=one, but size != 1') + this._data = new test.CompositeJsonTable3(_json_[0]) + } + + getData(): test.CompositeJsonTable3 { return this._data; } + + get a(): number { return this._data.a; } + get b(): number { return this._data.b; } + + +} +} + + +export namespace test { +export class TbExcelFromJsonMultiRow{ + private _dataMap: Map + private _dataList: test.ExcelFromJsonMultiRow[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.ExcelFromJsonMultiRow + _v = new test.ExcelFromJsonMultiRow(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.ExcelFromJsonMultiRow[] { return this._dataList; } + + get(key: number): test.ExcelFromJsonMultiRow | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestScriptableObject{ + private _dataMap: Map + private _dataList: test.TestScriptableObject[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestScriptableObject + _v = new test.TestScriptableObject(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestScriptableObject[] { return this._dataList; } + + get(key: number): test.TestScriptableObject | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbTestMapper{ + private _dataMap: Map + private _dataList: test.TestMapper[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: test.TestMapper + _v = new test.TestMapper(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): test.TestMapper[] { return this._dataList; } + + get(key: number): test.TestMapper | undefined { return this._dataMap.get(key); } + + +} +} + + +export namespace test { +export class TbDefineFromExcel2{ + private _dataMap: Map + private _dataList: DefineFromExcel2[] + constructor(_json_: any) { + this._dataMap = new Map() + this._dataList = [] + for(var _json2_ of _json_) { + let _v: DefineFromExcel2 + _v = new DefineFromExcel2(_json2_) + this._dataList.push(_v) + this._dataMap.set(_v.id, _v) + } + } + + getDataMap(): Map { return this._dataMap; } + getDataList(): DefineFromExcel2[] { return this._dataList; } + + get(key: number): DefineFromExcel2 | undefined { return this._dataMap.get(key); } + + +} +} + + + +type JsonLoader = (file: string) => any + +export class Tables { + private _TbBlackboard: ai.TbBlackboard + get TbBlackboard(): ai.TbBlackboard { return this._TbBlackboard;} + private _TbBehaviorTree: ai.TbBehaviorTree + get TbBehaviorTree(): ai.TbBehaviorTree { return this._TbBehaviorTree;} + private _TbGlobalConfig: common.TbGlobalConfig + get TbGlobalConfig(): common.TbGlobalConfig { return this._TbGlobalConfig;} + private _TbItem: item.TbItem + /** + * 道具表 + */ + get TbItem(): item.TbItem { return this._TbItem;} + private _TbL10NDemo: l10n.TbL10NDemo + get TbL10NDemo(): l10n.TbL10NDemo { return this._TbL10NDemo;} + private _TbPatchDemo: l10n.TbPatchDemo + get TbPatchDemo(): l10n.TbPatchDemo { return this._TbPatchDemo;} + private _TbTestTag: tag.TbTestTag + get TbTestTag(): tag.TbTestTag { return this._TbTestTag;} + private _TbFullTypes: test.TbFullTypes + get TbFullTypes(): test.TbFullTypes { return this._TbFullTypes;} + private _TbSingleton: test.TbSingleton + get TbSingleton(): test.TbSingleton { return this._TbSingleton;} + private _TbNotIndexList: test.TbNotIndexList + get TbNotIndexList(): test.TbNotIndexList { return this._TbNotIndexList;} + private _TbMultiUnionIndexList: test.TbMultiUnionIndexList + get TbMultiUnionIndexList(): test.TbMultiUnionIndexList { return this._TbMultiUnionIndexList;} + private _TbMultiIndexList: test.TbMultiIndexList + get TbMultiIndexList(): test.TbMultiIndexList { return this._TbMultiIndexList;} + private _TbDataFromMisc: test.TbDataFromMisc + get TbDataFromMisc(): test.TbDataFromMisc { return this._TbDataFromMisc;} + private _TbMultiRowRecord: test.TbMultiRowRecord + get TbMultiRowRecord(): test.TbMultiRowRecord { return this._TbMultiRowRecord;} + private _TbTestMultiColumn: test.TbTestMultiColumn + get TbTestMultiColumn(): test.TbTestMultiColumn { return this._TbTestMultiColumn;} + private _TbMultiRowTitle: test.TbMultiRowTitle + get TbMultiRowTitle(): test.TbMultiRowTitle { return this._TbMultiRowTitle;} + private _TbTestNull: test.TbTestNull + get TbTestNull(): test.TbTestNull { return this._TbTestNull;} + private _TbDemoPrimitive: test.TbDemoPrimitive + get TbDemoPrimitive(): test.TbDemoPrimitive { return this._TbDemoPrimitive;} + private _TbTestString: test.TbTestString + get TbTestString(): test.TbTestString { return this._TbTestString;} + private _TbDemoGroup: test.TbDemoGroup + get TbDemoGroup(): test.TbDemoGroup { return this._TbDemoGroup;} + private _TbTestGlobal: test.TbTestGlobal + get TbTestGlobal(): test.TbTestGlobal { return this._TbTestGlobal;} + private _TbTestBeRef: test.TbTestBeRef + get TbTestBeRef(): test.TbTestBeRef { return this._TbTestBeRef;} + private _TbTestBeRef2: test.TbTestBeRef2 + get TbTestBeRef2(): test.TbTestBeRef2 { return this._TbTestBeRef2;} + private _TbTestRef: test.TbTestRef + get TbTestRef(): test.TbTestRef { return this._TbTestRef;} + private _TbTestSize: test.TbTestSize + get TbTestSize(): test.TbTestSize { return this._TbTestSize;} + private _TbTestSet: test.TbTestSet + get TbTestSet(): test.TbTestSet { return this._TbTestSet;} + private _TbDetectCsvEncoding: test.TbDetectCsvEncoding + get TbDetectCsvEncoding(): test.TbDetectCsvEncoding { return this._TbDetectCsvEncoding;} + private _TbItem2: test.TbItem2 + get TbItem2(): test.TbItem2 { return this._TbItem2;} + private _TbTestIndex: test.TbTestIndex + get TbTestIndex(): test.TbTestIndex { return this._TbTestIndex;} + private _TbTestMap: test.TbTestMap + get TbTestMap(): test.TbTestMap { return this._TbTestMap;} + private _TbExcelFromJson: test.TbExcelFromJson + get TbExcelFromJson(): test.TbExcelFromJson { return this._TbExcelFromJson;} + private _TbCompositeJsonTable1: test.TbCompositeJsonTable1 + get TbCompositeJsonTable1(): test.TbCompositeJsonTable1 { return this._TbCompositeJsonTable1;} + private _TbCompositeJsonTable2: test.TbCompositeJsonTable2 + get TbCompositeJsonTable2(): test.TbCompositeJsonTable2 { return this._TbCompositeJsonTable2;} + private _TbCompositeJsonTable3: test.TbCompositeJsonTable3 + get TbCompositeJsonTable3(): test.TbCompositeJsonTable3 { return this._TbCompositeJsonTable3;} + private _TbExcelFromJsonMultiRow: test.TbExcelFromJsonMultiRow + get TbExcelFromJsonMultiRow(): test.TbExcelFromJsonMultiRow { return this._TbExcelFromJsonMultiRow;} + private _TbTestScriptableObject: test.TbTestScriptableObject + get TbTestScriptableObject(): test.TbTestScriptableObject { return this._TbTestScriptableObject;} + private _TbTestMapper: test.TbTestMapper + get TbTestMapper(): test.TbTestMapper { return this._TbTestMapper;} + private _TbDefineFromExcel2: test.TbDefineFromExcel2 + get TbDefineFromExcel2(): test.TbDefineFromExcel2 { return this._TbDefineFromExcel2;} + + constructor(loader: JsonLoader) { + this._TbBlackboard = new ai.TbBlackboard(loader('ai_tbblackboard')) + this._TbBehaviorTree = new ai.TbBehaviorTree(loader('ai_tbbehaviortree')) + this._TbGlobalConfig = new common.TbGlobalConfig(loader('common_tbglobalconfig')) + this._TbItem = new item.TbItem(loader('item_tbitem')) + this._TbL10NDemo = new l10n.TbL10NDemo(loader('l10n_tbl10ndemo')) + this._TbPatchDemo = new l10n.TbPatchDemo(loader('l10n_tbpatchdemo')) + this._TbTestTag = new tag.TbTestTag(loader('tag_tbtesttag')) + this._TbFullTypes = new test.TbFullTypes(loader('test_tbfulltypes')) + this._TbSingleton = new test.TbSingleton(loader('test_tbsingleton')) + this._TbNotIndexList = new test.TbNotIndexList(loader('test_tbnotindexlist')) + this._TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader('test_tbmultiunionindexlist')) + this._TbMultiIndexList = new test.TbMultiIndexList(loader('test_tbmultiindexlist')) + this._TbDataFromMisc = new test.TbDataFromMisc(loader('test_tbdatafrommisc')) + this._TbMultiRowRecord = new test.TbMultiRowRecord(loader('test_tbmultirowrecord')) + this._TbTestMultiColumn = new test.TbTestMultiColumn(loader('test_tbtestmulticolumn')) + this._TbMultiRowTitle = new test.TbMultiRowTitle(loader('test_tbmultirowtitle')) + this._TbTestNull = new test.TbTestNull(loader('test_tbtestnull')) + this._TbDemoPrimitive = new test.TbDemoPrimitive(loader('test_tbdemoprimitive')) + this._TbTestString = new test.TbTestString(loader('test_tbteststring')) + this._TbDemoGroup = new test.TbDemoGroup(loader('test_tbdemogroup')) + this._TbTestGlobal = new test.TbTestGlobal(loader('test_tbtestglobal')) + this._TbTestBeRef = new test.TbTestBeRef(loader('test_tbtestberef')) + this._TbTestBeRef2 = new test.TbTestBeRef2(loader('test_tbtestberef2')) + this._TbTestRef = new test.TbTestRef(loader('test_tbtestref')) + this._TbTestSize = new test.TbTestSize(loader('test_tbtestsize')) + this._TbTestSet = new test.TbTestSet(loader('test_tbtestset')) + this._TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader('test_tbdetectcsvencoding')) + this._TbItem2 = new test.TbItem2(loader('test_tbitem2')) + this._TbTestIndex = new test.TbTestIndex(loader('test_tbtestindex')) + this._TbTestMap = new test.TbTestMap(loader('test_tbtestmap')) + this._TbExcelFromJson = new test.TbExcelFromJson(loader('test_tbexcelfromjson')) + this._TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader('test_tbcompositejsontable1')) + this._TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader('test_tbcompositejsontable2')) + this._TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader('test_tbcompositejsontable3')) + this._TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader('test_tbexcelfromjsonmultirow')) + this._TbTestScriptableObject = new test.TbTestScriptableObject(loader('test_tbtestscriptableobject')) + this._TbTestMapper = new test.TbTestMapper(loader('test_tbtestmapper')) + this._TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader('test_tbdefinefromexcel2')) + } +} diff --git a/luban_examples/Projects/TypeScript_NodeJs_json/app.js b/luban_examples/Projects/TypeScript_NodeJs_json/app.js new file mode 100644 index 00000000..970d8b58 --- /dev/null +++ b/luban_examples/Projects/TypeScript_NodeJs_json/app.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const Types = require("./Gen/Types"); +var fs = require('fs'); +console.log('Hello world'); +function loader(file) { + let data = fs.readFileSync('config_data/' + file, 'utf8'); + return JSON.parse(data); +} +//let tables = new cfg.Tables(loader); +let tables = new Types.cfg.Tables(loader); +console.log(tables); +//# sourceMappingURL=app.js.map \ No newline at end of file diff --git a/luban_examples/Projects/TypeScript_NodeJs_json/app.js.map b/luban_examples/Projects/TypeScript_NodeJs_json/app.js.map new file mode 100644 index 00000000..cb293839 --- /dev/null +++ b/luban_examples/Projects/TypeScript_NodeJs_json/app.js.map @@ -0,0 +1 @@ +{"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":";;AACA,qCAAqC;AAErC,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAGvB,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAE3B,SAAS,MAAM,CAAC,IAAY;IACxB,IAAI,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,cAAc,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,sCAAsC;AACtC,IAAI,MAAM,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/luban_examples/Projects/TypeScript_NodeJs_json/app.ts b/luban_examples/Projects/TypeScript_NodeJs_json/app.ts new file mode 100644 index 00000000..30f3477b --- /dev/null +++ b/luban_examples/Projects/TypeScript_NodeJs_json/app.ts @@ -0,0 +1,17 @@ + +import * as cfg from "./Gen/schema"; + +var fs = require('fs'); + + +console.log('Hello world'); + +function loader(file: string): any { + let data = fs.readFileSync('../GenerateDatas/json/' + file + '.json', 'utf8'); + return JSON.parse(data); +} + +//let tables = new cfg.Tables(loader); +let tables = new cfg.Tables(loader); +console.log(tables.TbFullTypes.getDataList()[0]); + diff --git a/luban_examples/Projects/TypeScript_NodeJs_json/gen.bat b/luban_examples/Projects/TypeScript_NodeJs_json/gen.bat new file mode 100644 index 00000000..71ed39f4 --- /dev/null +++ b/luban_examples/Projects/TypeScript_NodeJs_json/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c typescript-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=Gen ^ + -x outputDataDir=..\GenerateDatas\json ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/TypeScript_NodeJs_json/package.json b/luban_examples/Projects/TypeScript_NodeJs_json/package.json new file mode 100644 index 00000000..248a52ee --- /dev/null +++ b/luban_examples/Projects/TypeScript_NodeJs_json/package.json @@ -0,0 +1,21 @@ +{ + "name": "demo-js", + "version": "0.0.0", + "description": "DemoJs", + "main": "app.js", + "author": { + "name": "" + }, + "scripts": { + "build": "tsc --build", + "clean": "tsc --build --clean" + }, + "devDependencies": { + "@types/node": "^15.14.9", + "typescript": "^3.9.7" + }, + "dependencies": { + "node": "^16.4.1", + "nodejs": "^0.0.0" + } +} diff --git a/luban_examples/Projects/TypeScript_NodeJs_json/tsconfig.json b/luban_examples/Projects/TypeScript_NodeJs_json/tsconfig.json new file mode 100644 index 00000000..27c8e17d --- /dev/null +++ b/luban_examples/Projects/TypeScript_NodeJs_json/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "module": "commonjs", + "esModuleInterop": true, + "target": "esnext", + "noImplicitAny": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "sourceMap": false, + "outDir": "dist", + "baseUrl": ".", + "paths": { + "*": ["node_modules/*"] + } + } +} diff --git a/luban_examples/Projects/java_json/build.gradle b/luban_examples/Projects/java_json/build.gradle new file mode 100644 index 00000000..1cfad127 --- /dev/null +++ b/luban_examples/Projects/java_json/build.gradle @@ -0,0 +1,35 @@ +plugins { + id 'java' +} +apply plugin: 'application' + +group 'org.example' +version '1.0-SNAPSHOT' + +repositories { + mavenCentral() +} + +dependencies { + implementation 'com.google.code.gson:gson:2.8.8' +} + +project.sourceCompatibility = '1.8' +project.targetCompatibility = '1.8' + +compileJava.options.encoding = "UTF-8" +compileTestJava.options.encoding = "UTF-8" + +sourceSets { + main { + java { + srcDir 'src/main' + srcDir 'src/gen' + srcDir 'src/corelib' + } + } +} + +test { + useJUnitPlatform() +} \ No newline at end of file diff --git a/luban_examples/Projects/java_json/gen.bat b/luban_examples/Projects/java_json/gen.bat new file mode 100644 index 00000000..edfa5997 --- /dev/null +++ b/luban_examples/Projects/java_json/gen.bat @@ -0,0 +1,16 @@ +set WORKSPACE=..\.. + +set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\DataTables + +dotnet %LUBAN_DLL% ^ + -t all ^ + -c java-json ^ + -d json ^ + --conf %CONF_ROOT%\luban.conf ^ + -x outputCodeDir=src\gen\cfg ^ + -x outputDataDir=..\GenerateDatas\json ^ + -x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^ + -x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json + +pause \ No newline at end of file diff --git a/luban_examples/Projects/java_json/gradlew b/luban_examples/Projects/java_json/gradlew new file mode 100644 index 00000000..1b6c7873 --- /dev/null +++ b/luban_examples/Projects/java_json/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/luban_examples/Projects/java_json/gradlew.bat b/luban_examples/Projects/java_json/gradlew.bat new file mode 100644 index 00000000..107acd32 --- /dev/null +++ b/luban_examples/Projects/java_json/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/luban_examples/Projects/java_json/settings.gradle b/luban_examples/Projects/java_json/settings.gradle new file mode 100644 index 00000000..5a9fe285 --- /dev/null +++ b/luban_examples/Projects/java_json/settings.gradle @@ -0,0 +1,2 @@ +rootProject.name = 'java_json' + diff --git a/luban_examples/Projects/java_json/src/corelib/luban/AbstractBean.java b/luban_examples/Projects/java_json/src/corelib/luban/AbstractBean.java new file mode 100644 index 00000000..a55490d2 --- /dev/null +++ b/luban_examples/Projects/java_json/src/corelib/luban/AbstractBean.java @@ -0,0 +1,5 @@ +package luban; + +public abstract class AbstractBean { + public abstract int getTypeId(); +} diff --git a/luban_examples/Projects/java_json/src/corelib/luban/ByteBuf.java b/luban_examples/Projects/java_json/src/corelib/luban/ByteBuf.java new file mode 100644 index 00000000..3a6109f5 --- /dev/null +++ b/luban_examples/Projects/java_json/src/corelib/luban/ByteBuf.java @@ -0,0 +1,694 @@ +package luban; + +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.Stack; + +public class ByteBuf { + + public static final byte[] EMPTY_BYTES = new byte[0]; + private static final Charset MARSHAL_CHARSET = StandardCharsets.UTF_8; + private byte[] data; + private int beginPos; + private int endPos; + private int capacity; + + public ByteBuf() { + this(EMPTY_BYTES, 0, 0); + } + + public ByteBuf(int initCapacity) { + this(new byte[initCapacity], 0, 0); + } + + public ByteBuf(byte[] data) { + this(data, 0, data.length); + } + + public ByteBuf(byte[] data, int beginPos, int endPos) { + this.data = data; + this.beginPos = beginPos; + this.endPos = endPos; + this.capacity = data.length; + } + +// public static Octets wrap(byte[] bytes) { +// return new Octets(bytes, 0, bytes.length); +// } +// +// public static Octets wrap(byte[] bytes, int beginPos, int len) { +// return new Octets(bytes, beginPos, beginPos + len); +// } + + private final static ThreadLocal> pool = ThreadLocal.withInitial(Stack::new); + public static ByteBuf alloc() { + Stack p = pool.get(); + if(!p.empty()) { + return p.pop(); + } else { + return new ByteBuf(); + } + } + + public static ByteBuf free(ByteBuf os) { + os.clear(); + return pool.get().push(os); + } + + public void replace(byte[] data, int beginPos, int endPos) { + this.data = data; + this.beginPos = beginPos; + this.endPos = endPos; + this.capacity = data.length; + } + + public void replace(byte[] data) { + this.data = data; + this.beginPos = 0; + this.endPos = this.capacity = data.length; + } + + public void sureRead(int n) { + if (beginPos + n > endPos) { + throw new SerializationException("read not enough"); + } + } + + private int chooseNewSize(int originSize, int needSize) { + int newSize = Math.max(originSize, 12); + while (newSize < needSize) { + newSize = newSize * 3 / 2; + } + return newSize; + } + + public void sureWrite(int n) { + if (endPos + n > capacity) { + int curSize = endPos - beginPos; + int needSize = curSize + n; + if (needSize > capacity) { + capacity = chooseNewSize(capacity, needSize); + byte[] newData = new byte[capacity]; + System.arraycopy(data, beginPos, newData, 0, curSize); + data = newData; + } else { + System.arraycopy(data, beginPos, data, 0, curSize); + } + beginPos = 0; + endPos = curSize; + } + } + + public void writeSize(int x) { + writeCompactUint(x); + } + + public int readSize() { + return readCompactUint(); + } + + public void writeShort(short x) { + writeCompactShort(x); + } + + public short readShort() { + return readCompactShort(); + } + + public short readCompactShort() { + sureRead(1); + int h = (data[beginPos] & 0xff); + if (h < 0x80) { + beginPos++; + return (short)h; + } else if (h < 0xc0) { + sureRead(2); + int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff); + beginPos += 2; + return (short)x; + } else if( (h == 0xff)){ + sureRead(3); + int x = ((data[beginPos + 1] & 0xff) << 8) | (data[beginPos + 2] & 0xff); + beginPos += 3; + return (short)x; + } else { + throw new SerializationException("exceed max short"); + } + } + + public void writeCompactShort(short x) { + if (x >= 0) { + if (x < 0x80) { + sureWrite(1); + data[endPos++] = (byte) x; + return; + } else if (x < 0x4000) { + sureWrite(2); + data[endPos + 1] = (byte) x; + data[endPos] = (byte) ((x >> 8) | 0x80); + endPos += 2; + return; + } + } + sureWrite(3); + data[endPos] = (byte) 0xff; + data[endPos + 2] = (byte) x; + data[endPos + 1] = (byte) (x >> 8); + endPos += 3; + } + + public int readCompactInt() { + sureRead(1); + int h = data[beginPos] & 0xff; + if (h < 0x80) { + beginPos++; + return h; + } else if (h < 0xc0) { + sureRead(2); + int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff); + beginPos += 2; + return x; + } else if (h < 0xe0) { + sureRead(3); + int x = ((h & 0x1f) << 16) | ((data[beginPos + 1] & 0xff) << 8) | (data[beginPos + 2] & 0xff); + beginPos += 3; + return x; + } else if (h < 0xf0) { + sureRead(4); + int x = ((h & 0x0f) << 24) | ((data[beginPos + 1] & 0xff) << 16) | ((data[beginPos + 2] & 0xff) << 8) | (data[beginPos + 3] & 0xff); + beginPos += 4; + return x; + } else { + sureRead(5); + int x = ((data[beginPos + 1] & 0xff) << 24) | ((data[beginPos + 2] & 0xff) << 16) | ((data[beginPos + 3] & 0xff) << 8) | (data[beginPos + 4] & 0xff); + beginPos += 5; + return x; + } + } + + public void writeCompactInt(int x) { + if (x >= 0) { + if (x < 0x80) { + sureWrite(1); + data[endPos++] = (byte) x; + return; + } else if (x < 0x4000) { + sureWrite(2); + data[endPos + 1] = (byte) x; + data[endPos] = (byte) ((x >> 8) | 0x80); + endPos += 2; + return; + } else if (x < 0x200000) { + sureWrite(3); + data[endPos + 2] = (byte) x; + data[endPos + 1] = (byte) (x >> 8); + data[endPos] = (byte) ((x >> 16) | 0xc0); + endPos += 3; + return; + } else if (x < 0x10000000) { + sureWrite(4); + data[endPos + 3] = (byte) x; + data[endPos + 2] = (byte) (x >> 8); + data[endPos + 1] = (byte) (x >> 16); + data[endPos] = (byte) ((x >> 24) | 0xe0); + endPos += 4; + return; + } + } + sureWrite(5); + data[endPos] = (byte) 0xf0; + data[endPos + 4] = (byte) x; + data[endPos + 3] = (byte) (x >> 8); + data[endPos + 2] = (byte) (x >> 16); + data[endPos + 1] = (byte) (x >> 24); + endPos += 5; + } + + public long readCompactLong() { + sureRead(1); + int h = data[beginPos] & 0xff; + if (h < 0x80) { + beginPos++; + return h; + } else if (h < 0xc0) { + sureRead(2); + int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff); + beginPos += 2; + return x; + } else if (h < 0xe0) { + sureRead(3); + int x = ((h & 0x1f) << 16) | ((data[(beginPos + 1)] & 0xff) << 8) | (data[(beginPos + 2)] & 0xff); + beginPos += 3; + return x; + } else if (h < 0xf0) { + sureRead(4); + int x = ((h & 0x0f) << 24) | ((data[(beginPos + 1)] & 0xff) << 16) | ((data[(beginPos + 2)] & 0xff) << 8) | (data[(beginPos + 3)] & 0xff); + beginPos += 4; + return x; + } else if (h < 0xf8) { + sureRead(5); + int xl = (data[(beginPos + 1)] << 24) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 8) | (data[(beginPos + 4)] & 0xff); + int xh = h & 0x07; + beginPos += 5; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else if (h < 0xfc) { + sureRead(6); + int xl = (data[(beginPos + 2)] << 24) | ((data[(beginPos + 3)] & 0xff) << 16) | ((data[(beginPos + 4)] & 0xff) << 8) | (data[(beginPos + 5)] & 0xff); + int xh = ((h & 0x03) << 8) | (data[(beginPos + 1)] & 0xff); + beginPos += 6; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else if (h < 0xfe) { + sureRead(7); + int xl = (data[(beginPos + 3)] << 24) | ((data[(beginPos + 4)] & 0xff) << 16) | ((data[(beginPos + 5)] & 0xff) << 8) | (data[(beginPos + 6)] & 0xff); + int xh = ((h & 0x01) << 16) | ((data[(beginPos + 1)] & 0xff) << 8) | (data[(beginPos + 2)] & 0xff); + beginPos += 7; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else if (h < 0xff) { + sureRead(8); + int xl = (data[(beginPos + 4)] << 24) | ((data[(beginPos + 5)] & 0xff) << 16) | ((data[(beginPos + 6)] & 0xff) << 8) | (data[(beginPos + 7)] & 0xff); + int xh = /*((h & 0x0) << 16) | */ + ((data[(beginPos + 1)] & 0xff) << 16) | ((data[(beginPos + 2)] & 0xff) << 8) | (data[(beginPos + 3)] & 0xff); + beginPos += 8; + return ((long) xh << 32) | (xl & 0xffffffffL); + } else { + sureRead(9); + int xl = (data[(beginPos + 5)] << 24) | ((data[(beginPos + 6)] & 0xff) << 16) | ((data[(beginPos + 7)] & 0xff) << 8) | (data[(beginPos + 8)] & 0xff); + int xh = (data[(beginPos + 1)] << 24) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 8) | (data[(beginPos + 4)] & 0xff); + beginPos += 9; + return ((long) xh << 32) | (xl & 0xffffffffL); + } + } + + public void writeCompactLong(long x) { + if (x >= 0) { + if (x < 0x80) { + sureWrite(1); + data[(endPos++)] = (byte) x; + return; + } else if (x < 0x4000) { + sureWrite(2); + data[(endPos + 1)] = (byte) x; + data[(endPos)] = (byte) ((x >> 8) | 0x80); + endPos += 2; + return; + } else if (x < 0x200000) { + sureWrite(3); + data[(endPos + 2)] = (byte) x; + data[(endPos + 1)] = (byte) (x >> 8); + data[(endPos)] = (byte) ((x >> 16) | 0xc0); + endPos += 3; + return; + } else if (x < 0x10000000) { + sureWrite(4); + data[(endPos + 3)] = (byte) x; + data[(endPos + 2)] = (byte) (x >> 8); + data[(endPos + 1)] = (byte) (x >> 16); + data[(endPos)] = (byte) ((x >> 24) | 0xe0); + endPos += 4; + return; + } else if (x < 0x800000000L) { + sureWrite(5); + data[(endPos + 4)] = (byte) x; + data[(endPos + 3)] = (byte) (x >> 8); + data[(endPos + 2)] = (byte) (x >> 16); + data[(endPos + 1)] = (byte) (x >> 24); + data[(endPos)] = (byte) ((x >> 32) | 0xf0); + endPos += 5; + return; + } else if (x < 0x40000000000L) { + sureWrite(6); + data[(endPos + 5)] = (byte) x; + data[(endPos + 4)] = (byte) (x >> 8); + data[(endPos + 3)] = (byte) (x >> 16); + data[(endPos + 2)] = (byte) (x >> 24); + data[(endPos + 1)] = (byte) (x >> 32); + data[(endPos)] = (byte) ((x >> 40) | 0xf8); + endPos += 6; + return; + } else if (x < 0x200000000000L) { + sureWrite(7); + data[(endPos + 6)] = (byte) x; + data[(endPos + 5)] = (byte) (x >> 8); + data[(endPos + 4)] = (byte) (x >> 16); + data[(endPos + 3)] = (byte) (x >> 24); + data[(endPos + 2)] = (byte) (x >> 32); + data[(endPos + 1)] = (byte) (x >> 40); + data[(endPos)] = (byte) ((x >> 48) | 0xfc); + endPos += 7; + return; + } else if (x < 0x100000000000000L) { + sureWrite(8); + data[(endPos + 7)] = (byte) x; + data[(endPos + 6)] = (byte) (x >> 8); + data[(endPos + 5)] = (byte) (x >> 16); + data[(endPos + 4)] = (byte) (x >> 24); + data[(endPos + 3)] = (byte) (x >> 32); + data[(endPos + 2)] = (byte) (x >> 40); + data[(endPos + 1)] = (byte) (x >> 48); + data[(endPos)] = /*(x >> 56) | */ (byte) 0xfe; + endPos += 8; + return; + } + } + sureWrite(9); + data[(endPos + 8)] = (byte) x; + data[(endPos + 7)] = (byte) (x >> 8); + data[(endPos + 6)] = (byte) (x >> 16); + data[(endPos + 5)] = (byte) (x >> 24); + data[(endPos + 4)] = (byte) (x >> 32); + data[(endPos + 3)] = (byte) (x >> 40); + data[(endPos + 2)] = (byte) (x >> 48); + data[(endPos + 1)] = (byte) (x >> 56); + data[(endPos)] = (byte) 0xff; + endPos += 9; + } + + public int readCompactUint() { + int n = readCompactInt(); + if (n >= 0) { + return n; + } else { + throw new SerializationException("unmarshal CompactUnit"); + } + } + + public void writeCompactUint(int x) { + writeCompactInt(x); + } + +// public void writeCompactUint(ByteBuf byteBuf, int x) { +// if (x >= 0) { +// if (x < 0x80) { +// byteBuf.writeByte(x); +// } else if (x < 0x4000) { +// byteBuf.writeShort(x | 0x8000); +// } else if (x < 0x200000) { +// byteBuf.writeMedium(x | 0xc00000); +// } else if (x < 0x10000000) { +// byteBuf.writeInt(x | 0xe0000000); +// } else { +// throw new RuntimeException("exceed max unit"); +// } +// } +// } + + public int readInt() { + return readCompactInt(); + } + + public void writeInt(int x) { + writeCompactInt(x); + } + + public long readLong() { + return readCompactLong(); + } + + public void writeLong(long x) { + writeCompactLong(x); + } + + public void writeSint(int x) { + writeInt((x << 1) | (x >>> 31)); + } + + public int readSint() { + int x = readInt(); + return (x >>> 1) | ((x&1) << 31); + } + + public void writeSlong(long x) { + writeLong((x << 1) | (x >>> 63)); + } + + public long readSlong() { + long x = readLong(); + return (x >>> 1) | ((x&1L) << 63); + } + public short readFshort() { + sureRead(4); + int x = (data[(beginPos)] & 0xff) | ((data[(beginPos + 1)] & 0xff) << 8); + beginPos += 2; + return (short)x; + } + + public void writeFshort(short x) { + sureWrite(2); + data[(endPos)] = (byte) (x & 0xff); + data[(endPos + 1)] = (byte) ((x >> 8) & 0xff); + endPos += 2; + } + + public int readFint() { + sureRead(4); + int x = (data[(beginPos)] & 0xff) | ((data[(beginPos + 1)] & 0xff) << 8) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 24); + beginPos += 4; + return x; + } + + public void writeFint(int x) { + sureWrite(4); + data[(endPos)] = (byte) (x & 0xff); + data[(endPos + 1)] = (byte) ((x >> 8) & 0xff); + data[(endPos + 2)] = (byte) ((x >> 16) & 0xff); + data[(endPos + 3)] = (byte) ((x >> 24) & 0xff); + endPos += 4; + } + + public long readFlong() { + sureRead(8); + long x = ((data[(beginPos + 7)] & 0xffL) << 56) | ((data[(beginPos + 6)] & 0xffL) << 48) | ((data[(beginPos + 5)] & 0xffL) << 40) | ((data[(beginPos + 4)] & 0xffL) << 32) | ((data[(beginPos + 3)] & 0xffL) << 24) | ((data[(beginPos + 2)] & 0xffL) << 16) | ((data[(beginPos + 1)] & 0xffL) << 8) | (data[(beginPos)] & 0xffL); + beginPos += 8; + return x; + } + + public void writeFlong(long x) { + sureWrite(8); + data[(endPos + 7)] = (byte) (x >> 56); + data[(endPos + 6)] = (byte) (x >> 48); + data[(endPos + 5)] = (byte) (x >> 40); + data[(endPos + 4)] = (byte) (x >> 32); + data[(endPos + 3)] = (byte) (x >> 24); + data[(endPos + 2)] = (byte) (x >> 16); + data[(endPos + 1)] = (byte) (x >> 8); + data[(endPos)] = (byte) x; + endPos += 8; + } + + public float readFloat() { + return Float.intBitsToFloat(readFint()); + } + + public void writeFloat(float z) { + writeFint(Float.floatToIntBits(z)); + } + + public double readDouble() { + return Double.longBitsToDouble(readFlong()); + } + + public void writeDouble(double z) { + writeFlong(Double.doubleToLongBits(z)); + } + + public String readString() { + int n = readSize(); + if(n > 0) { + sureRead(n); + int start = beginPos; + beginPos += n; + return new String(data, start, n, ByteBuf.MARSHAL_CHARSET); + } else { + return ""; + } + } + + public void writeString(String x) { + if(x.length() > 0) { + byte[] bytes = x.getBytes(ByteBuf.MARSHAL_CHARSET); + int n = bytes.length; + writeCompactUint(n); + sureWrite(n); + System.arraycopy(bytes, 0, data, endPos, n); + endPos += n; + } else { + writeCompactUint(0); + } + } + + public void writeOctets(ByteBuf o) { + int n = o.size(); + writeCompactUint(n); + if(n > 0) { + sureWrite(n); + System.arraycopy(o.data, o.beginPos, this.data, this.endPos, n); + this.endPos += n; + } + } + + public ByteBuf readOctets() { + int n = readSize(); + sureRead(n); + int start = beginPos; + beginPos += n; + return new ByteBuf(Arrays.copyOfRange(data, start, beginPos)); + } + + public ByteBuf readOctets(ByteBuf o) { + int n = readSize(); + sureRead(n); + int start = beginPos; + beginPos += n; + o.sureWrite(n); + System.arraycopy(data, start, o.data, o.endPos, n); + o.endPos += n; + return o; + } + + public byte[] readBytes() { + int n = readSize(); + if(n > 0) { + sureRead(n); + int start = beginPos; + beginPos += n; + return Arrays.copyOfRange(data, start, beginPos); + } else { + return EMPTY_BYTES; + } + } + + public void writeBytes(byte[] x) { + int n = x.length; + writeCompactUint(n); + if(n > 0) { + sureWrite(n); + System.arraycopy(x, 0, data, endPos, n); + endPos += n; + } + } + + public boolean readBool() { + sureRead(1); + return data[(beginPos++)] != 0; + } + + public void writeBool(boolean x) { + sureWrite(1); + data[(endPos++)] = x ? (byte) 1 : 0; + } + + public byte readByte() { + sureRead(1); + return data[(beginPos++)]; + } + + public void writeByte(byte x) { + sureWrite(1); + data[endPos++] = x; + } + +// public void writeTo(ByteBuf byteBuf) { +// int n = size(); +// writeCompactUint(byteBuf, n); +// byteBuf.writeBytes(data, beginPos, n); +// } + + public void writeTo(ByteBuf os) { + int n = size(); + os.writeCompactUint(n); + os.sureWrite(n); + System.arraycopy(data, beginPos, os.data, os.endPos, n); + os.endPos += n; + } + +// public void readFrom(ByteBuf byteBuf) { +// int n = byteBuf.readableBytes(); +// sureWrite(n); +// byteBuf.readBytes(data, endPos, n); +// endPos += n; +// } + + public void wrapRead(ByteBuf src, int size) { + this.data = src.data; + this.beginPos = src.beginPos; + this.endPos = src.beginPos += size; + this.capacity = src.capacity; + } + + public void clear() { + beginPos = 0; + endPos = 0; + } + + public int size() { + return endPos - beginPos; + } + + public boolean empty() { + return endPos == beginPos; + } + + public boolean nonEmpty() { + return endPos > beginPos; + } + + public int readerIndex() { + return beginPos; + } + + public void rollbackReadIndex(int readerMark) { + beginPos = readerMark; + } + + public void skip(int n) { + sureRead(n); + beginPos += n; + } + + public void skipBytes() { + int n = readSize(); + sureRead(n); + beginPos += n; + } + + public byte[] array() { + return data; + } + + public byte[] copyRemainData() { + return Arrays.copyOfRange(data, beginPos, endPos); + } + + public String toString() { + StringBuilder b = new StringBuilder(); + for (int i = beginPos; i < endPos; i++) { + b.append(data[i]).append(","); + } + return b.toString(); + } + + public static ByteBuf fromString(String value) { + if(value.isEmpty()) { + return new ByteBuf(); + } + String[] ss = value.split(","); + byte[] data = new byte[ss.length]; + for (int i = 0; i < data.length; i++) { + data[i] = (byte)Integer.parseInt(ss[i]); + } + return new ByteBuf(data); + } + + @Override + public boolean equals(Object x) { + if (!(x instanceof ByteBuf)) return false; + ByteBuf o = (ByteBuf) x; + if (size() != o.size()) return false; + for (int i = beginPos; i < endPos; i++) { + if (data[i] != o.data[o.beginPos + i - beginPos]) + return false; + } + return true; + } +} diff --git a/luban_examples/Projects/java_json/src/corelib/luban/SerializationException.java b/luban_examples/Projects/java_json/src/corelib/luban/SerializationException.java new file mode 100644 index 00000000..76d0f983 --- /dev/null +++ b/luban_examples/Projects/java_json/src/corelib/luban/SerializationException.java @@ -0,0 +1,23 @@ +package luban; + +public class SerializationException extends RuntimeException { + public SerializationException() { + + } + + public SerializationException(String message) { + super(message); + } + + public SerializationException(String message, Throwable cause) { + super(message, cause); + } + + public SerializationException(Throwable cause) { + super(cause); + } + + public SerializationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { + super(message, cause, enableSuppression, writableStackTrace); + } +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/AudioType.java b/luban_examples/Projects/java_json/src/gen/cfg/AudioType.java new file mode 100644 index 00000000..569aa85b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/AudioType.java @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +public final class AudioType { + public static final int UNKNOWN = 0; + public static final int ACC = 1; + public static final int AIFF = 2; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/DefineFromExcel2.java b/luban_examples/Projects/java_json/src/gen/cfg/DefineFromExcel2.java new file mode 100644 index 00000000..b33e1675 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/DefineFromExcel2.java @@ -0,0 +1,97 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DefineFromExcel2 extends AbstractBean { + public DefineFromExcel2(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x1 = _buf.get("x1").getAsBoolean(); + x5 = _buf.get("x5").getAsLong(); + x6 = _buf.get("x6").getAsFloat(); + x8 = _buf.get("x8").getAsInt(); + x10 = _buf.get("x10").getAsString(); + x13 = _buf.get("x13").getAsInt(); + x132 = _buf.get("x13_2").getAsInt(); + x14 = cfg.test.DemoDynamic.deserialize(_buf.get("x14").getAsJsonObject()); + x15 = cfg.test.Shape.deserialize(_buf.get("x15").getAsJsonObject()); + v2 = cfg.vec2.deserialize(_buf.get("v2").getAsJsonObject()); + t1 = _buf.get("t1").getAsLong(); + { com.google.gson.JsonArray _json0_ = _buf.get("k1").getAsJsonArray(); int __n0 = _json0_.size(); k1 = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); k1[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("k2").getAsJsonArray(); int __n0 = _json0_.size(); k2 = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); k2[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("k8").getAsJsonArray(); k8 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); k8.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k9").getAsJsonArray(); k9 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.DemoE2 _v0; _v0 = cfg.test.DemoE2.deserialize(_e0.getAsJsonObject()); k9.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k10").getAsJsonArray(); k10 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.vec3 _v0; _v0 = cfg.vec3.deserialize(_e0.getAsJsonObject()); k10.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k11").getAsJsonArray(); k11 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.vec4 _v0; _v0 = cfg.vec4.deserialize(_e0.getAsJsonObject()); k11.add(_v0); } } + } + + public static DefineFromExcel2 deserialize(JsonObject _buf) { + return new cfg.DefineFromExcel2(_buf); + } + + /** + * 这是id + */ + public final int id; + /** + * 字段x1 + */ + public final boolean x1; + public final long x5; + public final float x6; + public final int x8; + public final String x10; + public final int x13; + public final int x132; + public final cfg.test.DemoDynamic x14; + public final cfg.test.Shape x15; + public final cfg.vec2 v2; + public final long t1; + public final int[] k1; + public final int[] k2; + public final java.util.HashMap k8; + public final java.util.ArrayList k9; + public final java.util.ArrayList k10; + public final java.util.ArrayList k11; + + public static final int __ID__ = 482045152; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x8 + "," + + "(format_field_name __code_style field.name):" + x10 + "," + + "(format_field_name __code_style field.name):" + x13 + "," + + "(format_field_name __code_style field.name):" + x132 + "," + + "(format_field_name __code_style field.name):" + x14 + "," + + "(format_field_name __code_style field.name):" + x15 + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "(format_field_name __code_style field.name):" + k1 + "," + + "(format_field_name __code_style field.name):" + k2 + "," + + "(format_field_name __code_style field.name):" + k8 + "," + + "(format_field_name __code_style field.name):" + k9 + "," + + "(format_field_name __code_style field.name):" + k10 + "," + + "(format_field_name __code_style field.name):" + k11 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/Tables.java b/luban_examples/Projects/java_json/src/gen/cfg/Tables.java new file mode 100644 index 00000000..9686a9ee --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/Tables.java @@ -0,0 +1,152 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; +import com.google.gson.JsonElement; + +public final class Tables +{ + + public interface IJsonLoader { + JsonElement load(String file) throws java.io.IOException; + } + + private final cfg.ai.TbBlackboard _tbblackboard; + public cfg.ai.TbBlackboard getTbBlackboard() { return _tbblackboard; } + private final cfg.ai.TbBehaviorTree _tbbehaviortree; + public cfg.ai.TbBehaviorTree getTbBehaviorTree() { return _tbbehaviortree; } + private final cfg.common.TbGlobalConfig _tbglobalconfig; + public cfg.common.TbGlobalConfig getTbGlobalConfig() { return _tbglobalconfig; } + /** + * 道具表 + */ + private final cfg.item.TbItem _tbitem; + public cfg.item.TbItem getTbItem() { return _tbitem; } + private final cfg.l10n.TbL10NDemo _tbl10ndemo; + public cfg.l10n.TbL10NDemo getTbL10NDemo() { return _tbl10ndemo; } + private final cfg.l10n.TbPatchDemo _tbpatchdemo; + public cfg.l10n.TbPatchDemo getTbPatchDemo() { return _tbpatchdemo; } + private final cfg.tag.TbTestTag _tbtesttag; + public cfg.tag.TbTestTag getTbTestTag() { return _tbtesttag; } + private final cfg.test.TbFullTypes _tbfulltypes; + public cfg.test.TbFullTypes getTbFullTypes() { return _tbfulltypes; } + private final cfg.test.TbSingleton _tbsingleton; + public cfg.test.TbSingleton getTbSingleton() { return _tbsingleton; } + private final cfg.test.TbNotIndexList _tbnotindexlist; + public cfg.test.TbNotIndexList getTbNotIndexList() { return _tbnotindexlist; } + private final cfg.test.TbMultiUnionIndexList _tbmultiunionindexlist; + public cfg.test.TbMultiUnionIndexList getTbMultiUnionIndexList() { return _tbmultiunionindexlist; } + private final cfg.test.TbMultiIndexList _tbmultiindexlist; + public cfg.test.TbMultiIndexList getTbMultiIndexList() { return _tbmultiindexlist; } + private final cfg.test.TbDataFromMisc _tbdatafrommisc; + public cfg.test.TbDataFromMisc getTbDataFromMisc() { return _tbdatafrommisc; } + private final cfg.test.TbMultiRowRecord _tbmultirowrecord; + public cfg.test.TbMultiRowRecord getTbMultiRowRecord() { return _tbmultirowrecord; } + private final cfg.test.TbTestMultiColumn _tbtestmulticolumn; + public cfg.test.TbTestMultiColumn getTbTestMultiColumn() { return _tbtestmulticolumn; } + private final cfg.test.TbMultiRowTitle _tbmultirowtitle; + public cfg.test.TbMultiRowTitle getTbMultiRowTitle() { return _tbmultirowtitle; } + private final cfg.test.TbTestNull _tbtestnull; + public cfg.test.TbTestNull getTbTestNull() { return _tbtestnull; } + private final cfg.test.TbDemoPrimitive _tbdemoprimitive; + public cfg.test.TbDemoPrimitive getTbDemoPrimitive() { return _tbdemoprimitive; } + private final cfg.test.TbTestString _tbteststring; + public cfg.test.TbTestString getTbTestString() { return _tbteststring; } + private final cfg.test.TbDemoGroup _tbdemogroup; + public cfg.test.TbDemoGroup getTbDemoGroup() { return _tbdemogroup; } + private final cfg.test.TbDemoGroup_C _tbdemogroup_c; + public cfg.test.TbDemoGroup_C getTbDemoGroup_C() { return _tbdemogroup_c; } + private final cfg.test.TbDemoGroup_S _tbdemogroup_s; + public cfg.test.TbDemoGroup_S getTbDemoGroup_S() { return _tbdemogroup_s; } + private final cfg.test.TbDemoGroup_E _tbdemogroup_e; + public cfg.test.TbDemoGroup_E getTbDemoGroup_E() { return _tbdemogroup_e; } + private final cfg.test.TbTestGlobal _tbtestglobal; + public cfg.test.TbTestGlobal getTbTestGlobal() { return _tbtestglobal; } + private final cfg.test.TbTestBeRef _tbtestberef; + public cfg.test.TbTestBeRef getTbTestBeRef() { return _tbtestberef; } + private final cfg.test.TbTestBeRef2 _tbtestberef2; + public cfg.test.TbTestBeRef2 getTbTestBeRef2() { return _tbtestberef2; } + private final cfg.test.TbTestRef _tbtestref; + public cfg.test.TbTestRef getTbTestRef() { return _tbtestref; } + private final cfg.test.TbTestSize _tbtestsize; + public cfg.test.TbTestSize getTbTestSize() { return _tbtestsize; } + private final cfg.test.TbTestSet _tbtestset; + public cfg.test.TbTestSet getTbTestSet() { return _tbtestset; } + private final cfg.test.TbDetectCsvEncoding _tbdetectcsvencoding; + public cfg.test.TbDetectCsvEncoding getTbDetectCsvEncoding() { return _tbdetectcsvencoding; } + private final cfg.test.TbItem2 _tbitem2; + public cfg.test.TbItem2 getTbItem2() { return _tbitem2; } + private final cfg.test.TbTestIndex _tbtestindex; + public cfg.test.TbTestIndex getTbTestIndex() { return _tbtestindex; } + private final cfg.test.TbTestMap _tbtestmap; + public cfg.test.TbTestMap getTbTestMap() { return _tbtestmap; } + private final cfg.test.TbExcelFromJson _tbexcelfromjson; + public cfg.test.TbExcelFromJson getTbExcelFromJson() { return _tbexcelfromjson; } + private final cfg.test.TbCompositeJsonTable1 _tbcompositejsontable1; + public cfg.test.TbCompositeJsonTable1 getTbCompositeJsonTable1() { return _tbcompositejsontable1; } + private final cfg.test.TbCompositeJsonTable2 _tbcompositejsontable2; + public cfg.test.TbCompositeJsonTable2 getTbCompositeJsonTable2() { return _tbcompositejsontable2; } + private final cfg.test.TbCompositeJsonTable3 _tbcompositejsontable3; + public cfg.test.TbCompositeJsonTable3 getTbCompositeJsonTable3() { return _tbcompositejsontable3; } + private final cfg.test.TbExcelFromJsonMultiRow _tbexcelfromjsonmultirow; + public cfg.test.TbExcelFromJsonMultiRow getTbExcelFromJsonMultiRow() { return _tbexcelfromjsonmultirow; } + private final cfg.test.TbTestScriptableObject _tbtestscriptableobject; + public cfg.test.TbTestScriptableObject getTbTestScriptableObject() { return _tbtestscriptableobject; } + private final cfg.test.TbTestMapper _tbtestmapper; + public cfg.test.TbTestMapper getTbTestMapper() { return _tbtestmapper; } + private final cfg.test.TbDefineFromExcel2 _tbdefinefromexcel2; + public cfg.test.TbDefineFromExcel2 getTbDefineFromExcel2() { return _tbdefinefromexcel2; } + + public Tables(IJsonLoader loader) throws java.io.IOException { + _tbblackboard = new cfg.ai.TbBlackboard(loader.load("ai_tbblackboard")); + _tbbehaviortree = new cfg.ai.TbBehaviorTree(loader.load("ai_tbbehaviortree")); + _tbglobalconfig = new cfg.common.TbGlobalConfig(loader.load("common_tbglobalconfig")); + _tbitem = new cfg.item.TbItem(loader.load("item_tbitem")); + _tbl10ndemo = new cfg.l10n.TbL10NDemo(loader.load("l10n_tbl10ndemo")); + _tbpatchdemo = new cfg.l10n.TbPatchDemo(loader.load("l10n_tbpatchdemo")); + _tbtesttag = new cfg.tag.TbTestTag(loader.load("tag_tbtesttag")); + _tbfulltypes = new cfg.test.TbFullTypes(loader.load("test_tbfulltypes")); + _tbsingleton = new cfg.test.TbSingleton(loader.load("test_tbsingleton")); + _tbnotindexlist = new cfg.test.TbNotIndexList(loader.load("test_tbnotindexlist")); + _tbmultiunionindexlist = new cfg.test.TbMultiUnionIndexList(loader.load("test_tbmultiunionindexlist")); + _tbmultiindexlist = new cfg.test.TbMultiIndexList(loader.load("test_tbmultiindexlist")); + _tbdatafrommisc = new cfg.test.TbDataFromMisc(loader.load("test_tbdatafrommisc")); + _tbmultirowrecord = new cfg.test.TbMultiRowRecord(loader.load("test_tbmultirowrecord")); + _tbtestmulticolumn = new cfg.test.TbTestMultiColumn(loader.load("test_tbtestmulticolumn")); + _tbmultirowtitle = new cfg.test.TbMultiRowTitle(loader.load("test_tbmultirowtitle")); + _tbtestnull = new cfg.test.TbTestNull(loader.load("test_tbtestnull")); + _tbdemoprimitive = new cfg.test.TbDemoPrimitive(loader.load("test_tbdemoprimitive")); + _tbteststring = new cfg.test.TbTestString(loader.load("test_tbteststring")); + _tbdemogroup = new cfg.test.TbDemoGroup(loader.load("test_tbdemogroup")); + _tbdemogroup_c = new cfg.test.TbDemoGroup_C(loader.load("test_tbdemogroup_c")); + _tbdemogroup_s = new cfg.test.TbDemoGroup_S(loader.load("test_tbdemogroup_s")); + _tbdemogroup_e = new cfg.test.TbDemoGroup_E(loader.load("test_tbdemogroup_e")); + _tbtestglobal = new cfg.test.TbTestGlobal(loader.load("test_tbtestglobal")); + _tbtestberef = new cfg.test.TbTestBeRef(loader.load("test_tbtestberef")); + _tbtestberef2 = new cfg.test.TbTestBeRef2(loader.load("test_tbtestberef2")); + _tbtestref = new cfg.test.TbTestRef(loader.load("test_tbtestref")); + _tbtestsize = new cfg.test.TbTestSize(loader.load("test_tbtestsize")); + _tbtestset = new cfg.test.TbTestSet(loader.load("test_tbtestset")); + _tbdetectcsvencoding = new cfg.test.TbDetectCsvEncoding(loader.load("test_tbdetectcsvencoding")); + _tbitem2 = new cfg.test.TbItem2(loader.load("test_tbitem2")); + _tbtestindex = new cfg.test.TbTestIndex(loader.load("test_tbtestindex")); + _tbtestmap = new cfg.test.TbTestMap(loader.load("test_tbtestmap")); + _tbexcelfromjson = new cfg.test.TbExcelFromJson(loader.load("test_tbexcelfromjson")); + _tbcompositejsontable1 = new cfg.test.TbCompositeJsonTable1(loader.load("test_tbcompositejsontable1")); + _tbcompositejsontable2 = new cfg.test.TbCompositeJsonTable2(loader.load("test_tbcompositejsontable2")); + _tbcompositejsontable3 = new cfg.test.TbCompositeJsonTable3(loader.load("test_tbcompositejsontable3")); + _tbexcelfromjsonmultirow = new cfg.test.TbExcelFromJsonMultiRow(loader.load("test_tbexcelfromjsonmultirow")); + _tbtestscriptableobject = new cfg.test.TbTestScriptableObject(loader.load("test_tbtestscriptableobject")); + _tbtestmapper = new cfg.test.TbTestMapper(loader.load("test_tbtestmapper")); + _tbdefinefromexcel2 = new cfg.test.TbDefineFromExcel2(loader.load("test_tbdefinefromexcel2")); + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/BehaviorTree.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/BehaviorTree.java new file mode 100644 index 00000000..66ce4d5f --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/BehaviorTree.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class BehaviorTree extends AbstractBean { + public BehaviorTree(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + name = _buf.get("name").getAsString(); + desc = _buf.get("desc").getAsString(); + blackboardId = _buf.get("blackboard_id").getAsString(); + root = cfg.ai.ComposeNode.deserialize(_buf.get("root").getAsJsonObject()); + } + + public static BehaviorTree deserialize(JsonObject _buf) { + return new cfg.ai.BehaviorTree(_buf); + } + + public final int id; + public final String name; + public final String desc; + public final String blackboardId; + public final cfg.ai.ComposeNode root; + + public static final int __ID__ = 159552822; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + blackboardId + "," + + "(format_field_name __code_style field.name):" + root + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/BinaryOperator.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/BinaryOperator.java new file mode 100644 index 00000000..929a5ea6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/BinaryOperator.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class BinaryOperator extends cfg.ai.KeyQueryOperator { + public BinaryOperator(JsonObject _buf) { + super(_buf); + oper = _buf.get("oper").getAsInt(); + data = cfg.ai.KeyData.deserialize(_buf.get("data").getAsJsonObject()); + } + + public static BinaryOperator deserialize(JsonObject _buf) { + return new cfg.ai.BinaryOperator(_buf); + } + + public final int oper; + public final cfg.ai.KeyData data; + + public static final int __ID__ = -979891605; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + oper + "," + + "(format_field_name __code_style field.name):" + data + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/Blackboard.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/Blackboard.java new file mode 100644 index 00000000..c1d71349 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/Blackboard.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Blackboard extends AbstractBean { + public Blackboard(JsonObject _buf) { + name = _buf.get("name").getAsString(); + desc = _buf.get("desc").getAsString(); + parentName = _buf.get("parent_name").getAsString(); + { com.google.gson.JsonArray _json0_ = _buf.get("keys").getAsJsonArray(); keys = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.ai.BlackboardKey _v0; _v0 = cfg.ai.BlackboardKey.deserialize(_e0.getAsJsonObject()); keys.add(_v0); } } + } + + public static Blackboard deserialize(JsonObject _buf) { + return new cfg.ai.Blackboard(_buf); + } + + public final String name; + public final String desc; + public final String parentName; + public final java.util.ArrayList keys; + + public static final int __ID__ = 1576193005; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + parentName + "," + + "(format_field_name __code_style field.name):" + keys + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/BlackboardKey.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/BlackboardKey.java new file mode 100644 index 00000000..a48d6546 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/BlackboardKey.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class BlackboardKey extends AbstractBean { + public BlackboardKey(JsonObject _buf) { + name = _buf.get("name").getAsString(); + desc = _buf.get("desc").getAsString(); + isStatic = _buf.get("is_static").getAsBoolean(); + type = _buf.get("type").getAsInt(); + typeClassName = _buf.get("type_class_name").getAsString(); + } + + public static BlackboardKey deserialize(JsonObject _buf) { + return new cfg.ai.BlackboardKey(_buf); + } + + public final String name; + public final String desc; + public final boolean isStatic; + public final int type; + public final String typeClassName; + + public static final int __ID__ = -511559886; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + isStatic + "," + + "(format_field_name __code_style field.name):" + type + "," + + "(format_field_name __code_style field.name):" + typeClassName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/BlackboardKeyData.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/BlackboardKeyData.java new file mode 100644 index 00000000..4ec1370e --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/BlackboardKeyData.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class BlackboardKeyData extends cfg.ai.KeyData { + public BlackboardKeyData(JsonObject _buf) { + super(_buf); + value = _buf.get("value").getAsString(); + } + + public static BlackboardKeyData deserialize(JsonObject _buf) { + return new cfg.ai.BlackboardKeyData(_buf); + } + + public final String value; + + public static final int __ID__ = 1517269500; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/ChooseSkill.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/ChooseSkill.java new file mode 100644 index 00000000..a7260f11 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/ChooseSkill.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class ChooseSkill extends cfg.ai.Task { + public ChooseSkill(JsonObject _buf) { + super(_buf); + targetActorKey = _buf.get("target_actor_key").getAsString(); + resultSkillIdKey = _buf.get("result_skill_id_key").getAsString(); + } + + public static ChooseSkill deserialize(JsonObject _buf) { + return new cfg.ai.ChooseSkill(_buf); + } + + public final String targetActorKey; + public final String resultSkillIdKey; + + public static final int __ID__ = -918812268; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + targetActorKey + "," + + "(format_field_name __code_style field.name):" + resultSkillIdKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/ChooseTarget.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/ChooseTarget.java new file mode 100644 index 00000000..c92d7676 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/ChooseTarget.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class ChooseTarget extends cfg.ai.Service { + public ChooseTarget(JsonObject _buf) { + super(_buf); + resultTargetKey = _buf.get("result_target_key").getAsString(); + } + + public static ChooseTarget deserialize(JsonObject _buf) { + return new cfg.ai.ChooseTarget(_buf); + } + + public final String resultTargetKey; + + public static final int __ID__ = 1601247918; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + resultTargetKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/ComposeNode.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/ComposeNode.java new file mode 100644 index 00000000..c65b3bcd --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/ComposeNode.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class ComposeNode extends cfg.ai.FlowNode { + public ComposeNode(JsonObject _buf) { + super(_buf); + } + + public static ComposeNode deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "Sequence": return new cfg.ai.Sequence(_buf); + case "Selector": return new cfg.ai.Selector(_buf); + case "SimpleParallel": return new cfg.ai.SimpleParallel(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/DebugPrint.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/DebugPrint.java new file mode 100644 index 00000000..d9d275d0 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/DebugPrint.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DebugPrint extends cfg.ai.Task { + public DebugPrint(JsonObject _buf) { + super(_buf); + text = _buf.get("text").getAsString(); + } + + public static DebugPrint deserialize(JsonObject _buf) { + return new cfg.ai.DebugPrint(_buf); + } + + public final String text; + + public static final int __ID__ = 1357409728; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + text + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/Decorator.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/Decorator.java new file mode 100644 index 00000000..865124d0 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/Decorator.java @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class Decorator extends cfg.ai.Node { + public Decorator(JsonObject _buf) { + super(_buf); + flowAbortMode = _buf.get("flow_abort_mode").getAsInt(); + } + + public static Decorator deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "UeLoop": return new cfg.ai.UeLoop(_buf); + case "UeCooldown": return new cfg.ai.UeCooldown(_buf); + case "UeTimeLimit": return new cfg.ai.UeTimeLimit(_buf); + case "UeBlackboard": return new cfg.ai.UeBlackboard(_buf); + case "UeForceSuccess": return new cfg.ai.UeForceSuccess(_buf); + case "IsAtLocation": return new cfg.ai.IsAtLocation(_buf); + case "DistanceLessThan": return new cfg.ai.DistanceLessThan(_buf); + default: throw new SerializationException(); + } + } + + public final int flowAbortMode; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/DistanceLessThan.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/DistanceLessThan.java new file mode 100644 index 00000000..d3b9b3e8 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/DistanceLessThan.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DistanceLessThan extends cfg.ai.Decorator { + public DistanceLessThan(JsonObject _buf) { + super(_buf); + actor1Key = _buf.get("actor1_key").getAsString(); + actor2Key = _buf.get("actor2_key").getAsString(); + distance = _buf.get("distance").getAsFloat(); + reverseResult = _buf.get("reverse_result").getAsBoolean(); + } + + public static DistanceLessThan deserialize(JsonObject _buf) { + return new cfg.ai.DistanceLessThan(_buf); + } + + public final String actor1Key; + public final String actor2Key; + public final float distance; + public final boolean reverseResult; + + public static final int __ID__ = -1207170283; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + actor1Key + "," + + "(format_field_name __code_style field.name):" + actor2Key + "," + + "(format_field_name __code_style field.name):" + distance + "," + + "(format_field_name __code_style field.name):" + reverseResult + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/EExecutor.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/EExecutor.java new file mode 100644 index 00000000..58722354 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/EExecutor.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EExecutor { + public static final int CLIENT = 0; + public static final int SERVER = 1; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/EFinishMode.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/EFinishMode.java new file mode 100644 index 00000000..4174486f --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/EFinishMode.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EFinishMode { + public static final int IMMEDIATE = 0; + public static final int DELAYED = 1; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/EFlowAbortMode.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/EFlowAbortMode.java new file mode 100644 index 00000000..95f2c2c5 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/EFlowAbortMode.java @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EFlowAbortMode { + public static final int NONE = 0; + public static final int LOWER_PRIORITY = 1; + public static final int SELF = 2; + public static final int BOTH = 3; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/EKeyType.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/EKeyType.java new file mode 100644 index 00000000..6661e239 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/EKeyType.java @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EKeyType { + public static final int BOOL = 1; + public static final int INT = 2; + public static final int FLOAT = 3; + public static final int STRING = 4; + public static final int VECTOR = 5; + public static final int ROTATOR = 6; + public static final int NAME = 7; + public static final int CLASS = 8; + public static final int ENUM = 9; + public static final int OBJECT = 10; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/ENotifyObserverMode.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/ENotifyObserverMode.java new file mode 100644 index 00000000..0f59ec59 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/ENotifyObserverMode.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class ENotifyObserverMode { + public static final int ON_VALUE_CHANGE = 0; + public static final int ON_RESULT_CHANGE = 1; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/EOperator.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/EOperator.java new file mode 100644 index 00000000..268cc60f --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/EOperator.java @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +public final class EOperator { + public static final int IS_EQUAL_TO = 0; + public static final int IS_NOT_EQUAL_TO = 1; + public static final int IS_LESS_THAN = 2; + public static final int IS_LESS_THAN_OR_EQUAL_TO = 3; + public static final int IS_GREAT_THAN = 4; + public static final int IS_GREAT_THAN_OR_EQUAL_TO = 5; + public static final int CONTAINS = 6; + public static final int NOT_CONTAINS = 7; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/ExecuteTimeStatistic.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/ExecuteTimeStatistic.java new file mode 100644 index 00000000..3f3af0a6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/ExecuteTimeStatistic.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class ExecuteTimeStatistic extends cfg.ai.Service { + public ExecuteTimeStatistic(JsonObject _buf) { + super(_buf); + } + + public static ExecuteTimeStatistic deserialize(JsonObject _buf) { + return new cfg.ai.ExecuteTimeStatistic(_buf); + } + + + public static final int __ID__ = 990693812; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/FloatKeyData.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/FloatKeyData.java new file mode 100644 index 00000000..fc86178a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/FloatKeyData.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class FloatKeyData extends cfg.ai.KeyData { + public FloatKeyData(JsonObject _buf) { + super(_buf); + value = _buf.get("value").getAsFloat(); + } + + public static FloatKeyData deserialize(JsonObject _buf) { + return new cfg.ai.FloatKeyData(_buf); + } + + public final float value; + + public static final int __ID__ = -719747885; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/FlowNode.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/FlowNode.java new file mode 100644 index 00000000..2ec4d94c --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/FlowNode.java @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class FlowNode extends cfg.ai.Node { + public FlowNode(JsonObject _buf) { + super(_buf); + { com.google.gson.JsonArray _json0_ = _buf.get("decorators").getAsJsonArray(); decorators = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.ai.Decorator _v0; _v0 = cfg.ai.Decorator.deserialize(_e0.getAsJsonObject()); decorators.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("services").getAsJsonArray(); services = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.ai.Service _v0; _v0 = cfg.ai.Service.deserialize(_e0.getAsJsonObject()); services.add(_v0); } } + } + + public static FlowNode deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "Sequence": return new cfg.ai.Sequence(_buf); + case "Selector": return new cfg.ai.Selector(_buf); + case "SimpleParallel": return new cfg.ai.SimpleParallel(_buf); + case "UeWait": return new cfg.ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new cfg.ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new cfg.ai.MoveToTarget(_buf); + case "ChooseSkill": return new cfg.ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new cfg.ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new cfg.ai.MoveToLocation(_buf); + case "DebugPrint": return new cfg.ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public final java.util.ArrayList decorators; + public final java.util.ArrayList services; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/GetOwnerPlayer.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/GetOwnerPlayer.java new file mode 100644 index 00000000..b5da2a50 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/GetOwnerPlayer.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class GetOwnerPlayer extends cfg.ai.Service { + public GetOwnerPlayer(JsonObject _buf) { + super(_buf); + playerActorKey = _buf.get("player_actor_key").getAsString(); + } + + public static GetOwnerPlayer deserialize(JsonObject _buf) { + return new cfg.ai.GetOwnerPlayer(_buf); + } + + public final String playerActorKey; + + public static final int __ID__ = -999247644; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + playerActorKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/IntKeyData.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/IntKeyData.java new file mode 100644 index 00000000..05600f39 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/IntKeyData.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class IntKeyData extends cfg.ai.KeyData { + public IntKeyData(JsonObject _buf) { + super(_buf); + value = _buf.get("value").getAsInt(); + } + + public static IntKeyData deserialize(JsonObject _buf) { + return new cfg.ai.IntKeyData(_buf); + } + + public final int value; + + public static final int __ID__ = -342751904; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/IsAtLocation.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/IsAtLocation.java new file mode 100644 index 00000000..fba6ec85 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/IsAtLocation.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class IsAtLocation extends cfg.ai.Decorator { + public IsAtLocation(JsonObject _buf) { + super(_buf); + acceptableRadius = _buf.get("acceptable_radius").getAsFloat(); + keyboardKey = _buf.get("keyboard_key").getAsString(); + inverseCondition = _buf.get("inverse_condition").getAsBoolean(); + } + + public static IsAtLocation deserialize(JsonObject _buf) { + return new cfg.ai.IsAtLocation(_buf); + } + + public final float acceptableRadius; + public final String keyboardKey; + public final boolean inverseCondition; + + public static final int __ID__ = 1255972344; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + acceptableRadius + "," + + "(format_field_name __code_style field.name):" + keyboardKey + "," + + "(format_field_name __code_style field.name):" + inverseCondition + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/IsNotSet.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/IsNotSet.java new file mode 100644 index 00000000..a9570825 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/IsNotSet.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class IsNotSet extends cfg.ai.KeyQueryOperator { + public IsNotSet(JsonObject _buf) { + super(_buf); + } + + public static IsNotSet deserialize(JsonObject _buf) { + return new cfg.ai.IsNotSet(_buf); + } + + + public static final int __ID__ = 790736255; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/IsSet.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/IsSet.java new file mode 100644 index 00000000..bad21017 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/IsSet.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class IsSet extends cfg.ai.KeyQueryOperator { + public IsSet(JsonObject _buf) { + super(_buf); + } + + public static IsSet deserialize(JsonObject _buf) { + return new cfg.ai.IsSet(_buf); + } + + + public static final int __ID__ = 1635350898; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/KeepFaceTarget.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/KeepFaceTarget.java new file mode 100644 index 00000000..f86d08be --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/KeepFaceTarget.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class KeepFaceTarget extends cfg.ai.Service { + public KeepFaceTarget(JsonObject _buf) { + super(_buf); + targetActorKey = _buf.get("target_actor_key").getAsString(); + } + + public static KeepFaceTarget deserialize(JsonObject _buf) { + return new cfg.ai.KeepFaceTarget(_buf); + } + + public final String targetActorKey; + + public static final int __ID__ = 1195270745; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + targetActorKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/KeyData.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/KeyData.java new file mode 100644 index 00000000..acef517a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/KeyData.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class KeyData extends AbstractBean { + public KeyData(JsonObject _buf) { + } + + public static KeyData deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "FloatKeyData": return new cfg.ai.FloatKeyData(_buf); + case "IntKeyData": return new cfg.ai.IntKeyData(_buf); + case "StringKeyData": return new cfg.ai.StringKeyData(_buf); + case "BlackboardKeyData": return new cfg.ai.BlackboardKeyData(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/KeyQueryOperator.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/KeyQueryOperator.java new file mode 100644 index 00000000..d81d4b38 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/KeyQueryOperator.java @@ -0,0 +1,38 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class KeyQueryOperator extends AbstractBean { + public KeyQueryOperator(JsonObject _buf) { + } + + public static KeyQueryOperator deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "IsSet": return new cfg.ai.IsSet(_buf); + case "IsNotSet": return new cfg.ai.IsNotSet(_buf); + case "BinaryOperator": return new cfg.ai.BinaryOperator(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToLocation.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToLocation.java new file mode 100644 index 00000000..d3c46905 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToLocation.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MoveToLocation extends cfg.ai.Task { + public MoveToLocation(JsonObject _buf) { + super(_buf); + acceptableRadius = _buf.get("acceptable_radius").getAsFloat(); + } + + public static MoveToLocation deserialize(JsonObject _buf) { + return new cfg.ai.MoveToLocation(_buf); + } + + public final float acceptableRadius; + + public static final int __ID__ = -969953113; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + acceptableRadius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToRandomLocation.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToRandomLocation.java new file mode 100644 index 00000000..660997fe --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToRandomLocation.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MoveToRandomLocation extends cfg.ai.Task { + public MoveToRandomLocation(JsonObject _buf) { + super(_buf); + originPositionKey = _buf.get("origin_position_key").getAsString(); + radius = _buf.get("radius").getAsFloat(); + } + + public static MoveToRandomLocation deserialize(JsonObject _buf) { + return new cfg.ai.MoveToRandomLocation(_buf); + } + + public final String originPositionKey; + public final float radius; + + public static final int __ID__ = -2140042998; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + originPositionKey + "," + + "(format_field_name __code_style field.name):" + radius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToTarget.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToTarget.java new file mode 100644 index 00000000..f3181f7b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/MoveToTarget.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MoveToTarget extends cfg.ai.Task { + public MoveToTarget(JsonObject _buf) { + super(_buf); + targetActorKey = _buf.get("target_actor_key").getAsString(); + acceptableRadius = _buf.get("acceptable_radius").getAsFloat(); + } + + public static MoveToTarget deserialize(JsonObject _buf) { + return new cfg.ai.MoveToTarget(_buf); + } + + public final String targetActorKey; + public final float acceptableRadius; + + public static final int __ID__ = 514987779; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + targetActorKey + "," + + "(format_field_name __code_style field.name):" + acceptableRadius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/Node.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/Node.java new file mode 100644 index 00000000..459751c6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/Node.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class Node extends AbstractBean { + public Node(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + nodeName = _buf.get("node_name").getAsString(); + } + + public static Node deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "UeSetDefaultFocus": return new cfg.ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new cfg.ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new cfg.ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new cfg.ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new cfg.ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new cfg.ai.UpdateDailyBehaviorProps(_buf); + case "UeLoop": return new cfg.ai.UeLoop(_buf); + case "UeCooldown": return new cfg.ai.UeCooldown(_buf); + case "UeTimeLimit": return new cfg.ai.UeTimeLimit(_buf); + case "UeBlackboard": return new cfg.ai.UeBlackboard(_buf); + case "UeForceSuccess": return new cfg.ai.UeForceSuccess(_buf); + case "IsAtLocation": return new cfg.ai.IsAtLocation(_buf); + case "DistanceLessThan": return new cfg.ai.DistanceLessThan(_buf); + case "Sequence": return new cfg.ai.Sequence(_buf); + case "Selector": return new cfg.ai.Selector(_buf); + case "SimpleParallel": return new cfg.ai.SimpleParallel(_buf); + case "UeWait": return new cfg.ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new cfg.ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new cfg.ai.MoveToTarget(_buf); + case "ChooseSkill": return new cfg.ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new cfg.ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new cfg.ai.MoveToLocation(_buf); + case "DebugPrint": return new cfg.ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public final int id; + public final String nodeName; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/Selector.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/Selector.java new file mode 100644 index 00000000..520a881d --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/Selector.java @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Selector extends cfg.ai.ComposeNode { + public Selector(JsonObject _buf) { + super(_buf); + { com.google.gson.JsonArray _json0_ = _buf.get("children").getAsJsonArray(); children = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.ai.FlowNode _v0; _v0 = cfg.ai.FlowNode.deserialize(_e0.getAsJsonObject()); children.add(_v0); } } + } + + public static Selector deserialize(JsonObject _buf) { + return new cfg.ai.Selector(_buf); + } + + public final java.util.ArrayList children; + + public static final int __ID__ = -1946981627; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + children + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/Sequence.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/Sequence.java new file mode 100644 index 00000000..5b8e95c8 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/Sequence.java @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Sequence extends cfg.ai.ComposeNode { + public Sequence(JsonObject _buf) { + super(_buf); + { com.google.gson.JsonArray _json0_ = _buf.get("children").getAsJsonArray(); children = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.ai.FlowNode _v0; _v0 = cfg.ai.FlowNode.deserialize(_e0.getAsJsonObject()); children.add(_v0); } } + } + + public static Sequence deserialize(JsonObject _buf) { + return new cfg.ai.Sequence(_buf); + } + + public final java.util.ArrayList children; + + public static final int __ID__ = -1789006105; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + children + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/Service.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/Service.java new file mode 100644 index 00000000..000cc66e --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/Service.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class Service extends cfg.ai.Node { + public Service(JsonObject _buf) { + super(_buf); + } + + public static Service deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "UeSetDefaultFocus": return new cfg.ai.UeSetDefaultFocus(_buf); + case "ExecuteTimeStatistic": return new cfg.ai.ExecuteTimeStatistic(_buf); + case "ChooseTarget": return new cfg.ai.ChooseTarget(_buf); + case "KeepFaceTarget": return new cfg.ai.KeepFaceTarget(_buf); + case "GetOwnerPlayer": return new cfg.ai.GetOwnerPlayer(_buf); + case "UpdateDailyBehaviorProps": return new cfg.ai.UpdateDailyBehaviorProps(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/SimpleParallel.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/SimpleParallel.java new file mode 100644 index 00000000..a009a10e --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/SimpleParallel.java @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class SimpleParallel extends cfg.ai.ComposeNode { + public SimpleParallel(JsonObject _buf) { + super(_buf); + finishMode = _buf.get("finish_mode").getAsInt(); + mainTask = cfg.ai.Task.deserialize(_buf.get("main_task").getAsJsonObject()); + backgroundNode = cfg.ai.FlowNode.deserialize(_buf.get("background_node").getAsJsonObject()); + } + + public static SimpleParallel deserialize(JsonObject _buf) { + return new cfg.ai.SimpleParallel(_buf); + } + + public final int finishMode; + public final cfg.ai.Task mainTask; + public final cfg.ai.FlowNode backgroundNode; + + public static final int __ID__ = -1952582529; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + finishMode + "," + + "(format_field_name __code_style field.name):" + mainTask + "," + + "(format_field_name __code_style field.name):" + backgroundNode + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/StringKeyData.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/StringKeyData.java new file mode 100644 index 00000000..4f68ab6c --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/StringKeyData.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class StringKeyData extends cfg.ai.KeyData { + public StringKeyData(JsonObject _buf) { + super(_buf); + value = _buf.get("value").getAsString(); + } + + public static StringKeyData deserialize(JsonObject _buf) { + return new cfg.ai.StringKeyData(_buf); + } + + public final String value; + + public static final int __ID__ = -307888654; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/Task.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/Task.java new file mode 100644 index 00000000..f357be1a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/Task.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class Task extends cfg.ai.FlowNode { + public Task(JsonObject _buf) { + super(_buf); + ignoreRestartSelf = _buf.get("ignore_restart_self").getAsBoolean(); + } + + public static Task deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "UeWait": return new cfg.ai.UeWait(_buf); + case "UeWaitBlackboardTime": return new cfg.ai.UeWaitBlackboardTime(_buf); + case "MoveToTarget": return new cfg.ai.MoveToTarget(_buf); + case "ChooseSkill": return new cfg.ai.ChooseSkill(_buf); + case "MoveToRandomLocation": return new cfg.ai.MoveToRandomLocation(_buf); + case "MoveToLocation": return new cfg.ai.MoveToLocation(_buf); + case "DebugPrint": return new cfg.ai.DebugPrint(_buf); + default: throw new SerializationException(); + } + } + + public final boolean ignoreRestartSelf; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/TbBehaviorTree.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/TbBehaviorTree.java new file mode 100644 index 00000000..bb0d71d6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/TbBehaviorTree.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbBehaviorTree { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbBehaviorTree(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.ai.BehaviorTree _v; + _v = cfg.ai.BehaviorTree.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.ai.BehaviorTree get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/TbBlackboard.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/TbBlackboard.java new file mode 100644 index 00000000..fb28f5c2 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/TbBlackboard.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbBlackboard { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbBlackboard(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.ai.Blackboard _v; + _v = cfg.ai.Blackboard.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.name, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.ai.Blackboard get(String key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeBlackboard.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeBlackboard.java new file mode 100644 index 00000000..5fa399ac --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeBlackboard.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeBlackboard extends cfg.ai.Decorator { + public UeBlackboard(JsonObject _buf) { + super(_buf); + notifyObserver = _buf.get("notify_observer").getAsInt(); + blackboardKey = _buf.get("blackboard_key").getAsString(); + keyQuery = cfg.ai.KeyQueryOperator.deserialize(_buf.get("key_query").getAsJsonObject()); + } + + public static UeBlackboard deserialize(JsonObject _buf) { + return new cfg.ai.UeBlackboard(_buf); + } + + public final int notifyObserver; + public final String blackboardKey; + public final cfg.ai.KeyQueryOperator keyQuery; + + public static final int __ID__ = -315297507; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + notifyObserver + "," + + "(format_field_name __code_style field.name):" + blackboardKey + "," + + "(format_field_name __code_style field.name):" + keyQuery + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeCooldown.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeCooldown.java new file mode 100644 index 00000000..826091ac --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeCooldown.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeCooldown extends cfg.ai.Decorator { + public UeCooldown(JsonObject _buf) { + super(_buf); + cooldownTime = _buf.get("cooldown_time").getAsFloat(); + } + + public static UeCooldown deserialize(JsonObject _buf) { + return new cfg.ai.UeCooldown(_buf); + } + + public final float cooldownTime; + + public static final int __ID__ = -951439423; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + cooldownTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeForceSuccess.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeForceSuccess.java new file mode 100644 index 00000000..24316658 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeForceSuccess.java @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeForceSuccess extends cfg.ai.Decorator { + public UeForceSuccess(JsonObject _buf) { + super(_buf); + } + + public static UeForceSuccess deserialize(JsonObject _buf) { + return new cfg.ai.UeForceSuccess(_buf); + } + + + public static final int __ID__ = 195054574; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeLoop.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeLoop.java new file mode 100644 index 00000000..c277afe6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeLoop.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeLoop extends cfg.ai.Decorator { + public UeLoop(JsonObject _buf) { + super(_buf); + numLoops = _buf.get("num_loops").getAsInt(); + infiniteLoop = _buf.get("infinite_loop").getAsBoolean(); + infiniteLoopTimeoutTime = _buf.get("infinite_loop_timeout_time").getAsFloat(); + } + + public static UeLoop deserialize(JsonObject _buf) { + return new cfg.ai.UeLoop(_buf); + } + + public final int numLoops; + public final boolean infiniteLoop; + public final float infiniteLoopTimeoutTime; + + public static final int __ID__ = -513308166; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + numLoops + "," + + "(format_field_name __code_style field.name):" + infiniteLoop + "," + + "(format_field_name __code_style field.name):" + infiniteLoopTimeoutTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeSetDefaultFocus.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeSetDefaultFocus.java new file mode 100644 index 00000000..5ea04956 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeSetDefaultFocus.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeSetDefaultFocus extends cfg.ai.Service { + public UeSetDefaultFocus(JsonObject _buf) { + super(_buf); + keyboardKey = _buf.get("keyboard_key").getAsString(); + } + + public static UeSetDefaultFocus deserialize(JsonObject _buf) { + return new cfg.ai.UeSetDefaultFocus(_buf); + } + + public final String keyboardKey; + + public static final int __ID__ = 1812449155; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + keyboardKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeTimeLimit.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeTimeLimit.java new file mode 100644 index 00000000..e5f3f157 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeTimeLimit.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeTimeLimit extends cfg.ai.Decorator { + public UeTimeLimit(JsonObject _buf) { + super(_buf); + limitTime = _buf.get("limit_time").getAsFloat(); + } + + public static UeTimeLimit deserialize(JsonObject _buf) { + return new cfg.ai.UeTimeLimit(_buf); + } + + public final float limitTime; + + public static final int __ID__ = 338469720; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + flowAbortMode + "," + + "(format_field_name __code_style field.name):" + limitTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeWait.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeWait.java new file mode 100644 index 00000000..cdda896e --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeWait.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeWait extends cfg.ai.Task { + public UeWait(JsonObject _buf) { + super(_buf); + waitTime = _buf.get("wait_time").getAsFloat(); + randomDeviation = _buf.get("random_deviation").getAsFloat(); + } + + public static UeWait deserialize(JsonObject _buf) { + return new cfg.ai.UeWait(_buf); + } + + public final float waitTime; + public final float randomDeviation; + + public static final int __ID__ = -512994101; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + waitTime + "," + + "(format_field_name __code_style field.name):" + randomDeviation + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UeWaitBlackboardTime.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeWaitBlackboardTime.java new file mode 100644 index 00000000..5945dbf9 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UeWaitBlackboardTime.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UeWaitBlackboardTime extends cfg.ai.Task { + public UeWaitBlackboardTime(JsonObject _buf) { + super(_buf); + blackboardKey = _buf.get("blackboard_key").getAsString(); + } + + public static UeWaitBlackboardTime deserialize(JsonObject _buf) { + return new cfg.ai.UeWaitBlackboardTime(_buf); + } + + public final String blackboardKey; + + public static final int __ID__ = 1215378271; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + decorators + "," + + "(format_field_name __code_style field.name):" + services + "," + + "(format_field_name __code_style field.name):" + ignoreRestartSelf + "," + + "(format_field_name __code_style field.name):" + blackboardKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/ai/UpdateDailyBehaviorProps.java b/luban_examples/Projects/java_json/src/gen/cfg/ai/UpdateDailyBehaviorProps.java new file mode 100644 index 00000000..6e5c885b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/ai/UpdateDailyBehaviorProps.java @@ -0,0 +1,67 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.ai; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class UpdateDailyBehaviorProps extends cfg.ai.Service { + public UpdateDailyBehaviorProps(JsonObject _buf) { + super(_buf); + satietyKey = _buf.get("satiety_key").getAsString(); + energyKey = _buf.get("energy_key").getAsString(); + moodKey = _buf.get("mood_key").getAsString(); + satietyLowerThresholdKey = _buf.get("satiety_lower_threshold_key").getAsString(); + satietyUpperThresholdKey = _buf.get("satiety_upper_threshold_key").getAsString(); + energyLowerThresholdKey = _buf.get("energy_lower_threshold_key").getAsString(); + energyUpperThresholdKey = _buf.get("energy_upper_threshold_key").getAsString(); + moodLowerThresholdKey = _buf.get("mood_lower_threshold_key").getAsString(); + moodUpperThresholdKey = _buf.get("mood_upper_threshold_key").getAsString(); + } + + public static UpdateDailyBehaviorProps deserialize(JsonObject _buf) { + return new cfg.ai.UpdateDailyBehaviorProps(_buf); + } + + public final String satietyKey; + public final String energyKey; + public final String moodKey; + public final String satietyLowerThresholdKey; + public final String satietyUpperThresholdKey; + public final String energyLowerThresholdKey; + public final String energyUpperThresholdKey; + public final String moodLowerThresholdKey; + public final String moodUpperThresholdKey; + + public static final int __ID__ = -61887372; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + nodeName + "," + + "(format_field_name __code_style field.name):" + satietyKey + "," + + "(format_field_name __code_style field.name):" + energyKey + "," + + "(format_field_name __code_style field.name):" + moodKey + "," + + "(format_field_name __code_style field.name):" + satietyLowerThresholdKey + "," + + "(format_field_name __code_style field.name):" + satietyUpperThresholdKey + "," + + "(format_field_name __code_style field.name):" + energyLowerThresholdKey + "," + + "(format_field_name __code_style field.name):" + energyUpperThresholdKey + "," + + "(format_field_name __code_style field.name):" + moodLowerThresholdKey + "," + + "(format_field_name __code_style field.name):" + moodUpperThresholdKey + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/common/EBoolOperator.java b/luban_examples/Projects/java_json/src/gen/cfg/common/EBoolOperator.java new file mode 100644 index 00000000..1df2f090 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/common/EBoolOperator.java @@ -0,0 +1,16 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.common; + +public final class EBoolOperator { + public static final int AND = 0; + public static final int OR = 1; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/common/GlobalConfig.java b/luban_examples/Projects/java_json/src/gen/cfg/common/GlobalConfig.java new file mode 100644 index 00000000..7618f918 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/common/GlobalConfig.java @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.common; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class GlobalConfig extends AbstractBean { + public GlobalConfig(JsonObject _buf) { + x1 = _buf.get("x1").getAsInt(); + x2 = _buf.get("x2").getAsInt(); + x3 = _buf.get("x3").getAsInt(); + x4 = _buf.get("x4").getAsInt(); + x5 = _buf.get("x5").getAsInt(); + x6 = _buf.get("x6").getAsInt(); + { com.google.gson.JsonArray _json0_ = _buf.get("x7").getAsJsonArray(); x7 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); x7.add(_v0); } } + } + + public static GlobalConfig deserialize(JsonObject _buf) { + return new cfg.common.GlobalConfig(_buf); + } + + /** + * 背包容量 + */ + public final int x1; + public final int x2; + public final int x3; + public final int x4; + public final int x5; + public final int x6; + public final java.util.ArrayList x7; + + public static final int __ID__ = -848234488; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x7 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/common/TbGlobalConfig.java b/luban_examples/Projects/java_json/src/gen/cfg/common/TbGlobalConfig.java new file mode 100644 index 00000000..bfc185d1 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/common/TbGlobalConfig.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.common; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbGlobalConfig { + private final cfg.common.GlobalConfig _data; + + public final cfg.common.GlobalConfig data() { return _data; } + + public TbGlobalConfig(JsonElement _buf) { + int n = _buf.getAsJsonArray().size(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.common.GlobalConfig.deserialize(_buf.getAsJsonArray().get(0).getAsJsonObject().getAsJsonObject()); + } + + + /** + * 背包容量 + */ + public int getX1() { return _data.x1; } + public int getX2() { return _data.x2; } + public int getX3() { return _data.x3; } + public int getX4() { return _data.x4; } + public int getX5() { return _data.x5; } + public int getX6() { return _data.x6; } + public java.util.ArrayList getX7() { return _data.x7; } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EClothersStarQualityType.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothersStarQualityType.java new file mode 100644 index 00000000..d3dbc149 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothersStarQualityType.java @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothersStarQualityType { + /** + * 一星 + */ + public static final int ONE = 1; + /** + * 二星 + */ + public static final int TWO = 2; + /** + * 三星 + */ + public static final int THREE = 3; + /** + * 四星 + */ + public static final int FOUR = 4; + /** + * 五星 + */ + public static final int FIVE = 5; + /** + * 六星 + */ + public static final int SIX = 6; + /** + * 七星 + */ + public static final int SEVEN = 7; + /** + * 八星 + */ + public static final int EIGHT = 8; + /** + * 九星 + */ + public static final int NINE = 9; + /** + * 十星 + */ + public static final int TEN = 10; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EClothersTag.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothersTag.java new file mode 100644 index 00000000..761eb8e4 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothersTag.java @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothersTag { + /** + * 防晒 + */ + public static final int FANG_SHAI = 1; + /** + * 舞者 + */ + public static final int WU_ZHE = 2; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EClothesHidePartType.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothesHidePartType.java new file mode 100644 index 00000000..e0afb396 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothesHidePartType.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothesHidePartType { + /** + * 胸部 + */ + public static final int CHEST = 0; + /** + * 手 + */ + public static final int HEAD = 1; + /** + * 脊柱上 + */ + public static final int SPINE_UPPER = 2; + /** + * 脊柱下 + */ + public static final int SPINE_LOWER = 3; + /** + * 臀部 + */ + public static final int HIP = 4; + /** + * 腿上 + */ + public static final int LEG_UPPER = 5; + /** + * 腿中 + */ + public static final int LEG_MIDDLE = 6; + /** + * 腿下 + */ + public static final int LEG_LOWER = 7; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EClothesPropertyType.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothesPropertyType.java new file mode 100644 index 00000000..654bf271 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EClothesPropertyType.java @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EClothesPropertyType { + /** + * 简约 + */ + public static final int JIAN_YUE = 1; + /** + * 华丽 + */ + public static final int HUA_LI = 2; + /** + * 可爱 + */ + public static final int KE_AI = 3; + /** + * 成熟 + */ + public static final int CHENG_SHU = 4; + /** + * 活泼 + */ + public static final int HUO_PO = 5; + /** + * 优雅 + */ + public static final int YOU_YA = 6; + /** + * 清纯 + */ + public static final int QING_CHUN = 7; + /** + * 性感 + */ + public static final int XING_GAN = 8; + /** + * 清凉 + */ + public static final int QING_LIANG = 9; + /** + * 保暖 + */ + public static final int BAO_NUAN = 10; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/ECurrencyType.java b/luban_examples/Projects/java_json/src/gen/cfg/item/ECurrencyType.java new file mode 100644 index 00000000..78dfac09 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/ECurrencyType.java @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class ECurrencyType { + /** + * 钻石 + */ + public static final int DIAMOND = 1; + /** + * 金币 + */ + public static final int GOLD = 2; + /** + * 银币 + */ + public static final int SILVER = 3; + /** + * 经验 + */ + public static final int EXP = 4; + /** + * 能量点 + */ + public static final int POWER_POINT = 5; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EItemQuality.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EItemQuality.java new file mode 100644 index 00000000..a8fca1a2 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EItemQuality.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +/** + * 道具品质 + */ +public final class EItemQuality { + /** + * 白 + */ + public static final int WHITE = 0; + /** + * 绿 + */ + public static final int GREEN = 1; + /** + * 蓝 + */ + public static final int BLUE = 2; + /** + * 紫 + */ + public static final int PURPLE = 3; + /** + * 金 + */ + public static final int GOLDEN = 4; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EMajorType.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EMajorType.java new file mode 100644 index 00000000..38e30ba7 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EMajorType.java @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EMajorType { + /** + * 货币 + */ + public static final int CURRENCY = 1; + /** + * 服装 + */ + public static final int CLOTH = 2; + /** + * 任务 + */ + public static final int QUEST = 3; + /** + * 消耗品 + */ + public static final int CONSUMABLES = 4; + /** + * 宝箱 + */ + public static final int TREASURE_BOX = 5; + /** + * 成就和称谓 + */ + public static final int ACHIEVEMENT_AND_TITLE = 6; + /** + * 头像框 + */ + public static final int HEAD_FRAME = 7; + /** + * 语音 + */ + public static final int VOICE = 8; + /** + * 动作 + */ + public static final int ACTION = 9; + /** + * 扩容道具 + */ + public static final int EXPANSION = 10; + /** + * 制作材料 + */ + public static final int MATERIAL = 11; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EMinorType.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EMinorType.java new file mode 100644 index 00000000..404dac12 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EMinorType.java @@ -0,0 +1,210 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EMinorType { + /** + * 钻石 + */ + public static final int DIAMOND = 101; + /** + * 金币 + */ + public static final int GOLD = 102; + /** + * 银币 + */ + public static final int SILVER = 103; + /** + * 经验 + */ + public static final int EXP = 104; + /** + * 能量点 + */ + public static final int POWER_POINT = 105; + /** + * 发型 + */ + public static final int HAIR_STYLE = 210; + /** + * 外套 + */ + public static final int COAT = 220; + /** + * 上衣 + */ + public static final int UPPER_JACKET = 230; + /** + * 裤子 + */ + public static final int TROUSERS = 241; + /** + * 裙子 + */ + public static final int SKIRT = 242; + /** + * 袜子 + */ + public static final int SOCKS = 250; + /** + * 鞋子 + */ + public static final int SHOES = 260; + /** + * 发饰 + */ + public static final int HAIR_ACCESSORY = 271; + /** + * 帽子 + */ + public static final int HAT = 272; + /** + * 耳饰 + */ + public static final int EARRING = 273; + /** + * 颈饰 + */ + public static final int NECKLACE = 274; + /** + * 腕饰 + */ + public static final int BRACELET = 275; + /** + * 发箍 + */ + public static final int HAIR_CLASP = 276; + /** + * 手套 + */ + public static final int GLOVE = 277; + /** + * 手持物 + */ + public static final int HANDHELD_OBJECT = 278; + /** + * 特殊 + */ + public static final int SPECIAL = 279; + /** + * 底妆 + */ + public static final int BASE_COSMETIC = 281; + /** + * 眉妆 + */ + public static final int EYEBROW_COSMETIC = 282; + /** + * 睫毛 + */ + public static final int EYELASH = 283; + /** + * 美瞳 + */ + public static final int COSMETIC_CONTACT_LENSES = 284; + /** + * 唇妆 + */ + public static final int LIP_COSMETIC = 285; + /** + * 肤色 + */ + public static final int SKIN_COLOR = 286; + /** + * 连衣裙 + */ + public static final int ONE_PIECE_DRESS = 290; + /** + * 换装场景 + */ + public static final int SWITCH_CLOTHES_SCENE = 291; + /** + * 任务道具 + */ + public static final int QUEST = 301; + /** + * 投掷物 + */ + public static final int CAST = 401; + /** + * 刀剑 + */ + public static final int SWORD = 421; + /** + * 弓箭 + */ + public static final int BOW_ARROW = 422; + /** + * 法杖 + */ + public static final int WANDS = 423; + /** + * 特殊工具 + */ + public static final int SPECIAL_TOOL = 424; + /** + * 食物 + */ + public static final int FOOD = 403; + /** + * 宝箱 + */ + public static final int TREASURE_BOX = 501; + /** + * 钥匙 + */ + public static final int KEY = 502; + /** + * 多选一宝箱 + */ + public static final int MULTI_CHOOSE_TREASURE_BOX = 503; + /** + * 成就相关 + */ + public static final int ACHIEVEMENT = 601; + /** + * 称谓相关 + */ + public static final int TITLE = 602; + /** + * 头像框 + */ + public static final int AVATAR_FRAME = 701; + /** + * 语音 + */ + public static final int VOICE = 801; + /** + * 特殊待机动作 + */ + public static final int IDLE_POSE = 901; + /** + * 拍照动作 + */ + public static final int PHOTO_POSE = 902; + /** + * 背包 + */ + public static final int BAG = 1001; + /** + * 好友数量 + */ + public static final int FRIEND_CAPACITY = 1002; + /** + * 制作材料 + */ + public static final int CONSTRUCTION_MATERIAL = 1101; + /** + * 设计图纸 + */ + public static final int DESIGN_DRAWING = 1102; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/EUseType.java b/luban_examples/Projects/java_json/src/gen/cfg/item/EUseType.java new file mode 100644 index 00000000..8bd26889 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/EUseType.java @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +public final class EUseType { + /** + * 手动 + */ + public static final int MANUAL = 0; + /** + * 自动 + */ + public static final int AUTO = 1; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/Item.java b/luban_examples/Projects/java_json/src/gen/cfg/item/Item.java new file mode 100644 index 00000000..29868600 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/Item.java @@ -0,0 +1,76 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +/** + * 道具 + */ +public final class Item extends AbstractBean { + public Item(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + name = _buf.get("name").getAsString(); + majorType = _buf.get("major_type").getAsInt(); + minorType = _buf.get("minor_type").getAsInt(); + maxPileNum = _buf.get("max_pile_num").getAsInt(); + quality = _buf.get("quality").getAsInt(); + icon = _buf.get("icon").getAsString(); + iconBackgroud = _buf.get("icon_backgroud").getAsString(); + iconMask = _buf.get("icon_mask").getAsString(); + desc = _buf.get("desc").getAsString(); + showOrder = _buf.get("show_order").getAsInt(); + } + + public static Item deserialize(JsonObject _buf) { + return new cfg.item.Item(_buf); + } + + /** + * 道具id + */ + public final int id; + public final String name; + public final int majorType; + public final int minorType; + public final int maxPileNum; + public final int quality; + public final String icon; + public final String iconBackgroud; + public final String iconMask; + public final String desc; + public final int showOrder; + + public static final int __ID__ = 2107285806; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + majorType + "," + + "(format_field_name __code_style field.name):" + minorType + "," + + "(format_field_name __code_style field.name):" + maxPileNum + "," + + "(format_field_name __code_style field.name):" + quality + "," + + "(format_field_name __code_style field.name):" + icon + "," + + "(format_field_name __code_style field.name):" + iconBackgroud + "," + + "(format_field_name __code_style field.name):" + iconMask + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + showOrder + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/item/TbItem.java b/luban_examples/Projects/java_json/src/gen/cfg/item/TbItem.java new file mode 100644 index 00000000..7b4485f4 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/item/TbItem.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.item; + +import luban.*; +import com.google.gson.JsonElement; + + +/** + * 道具表 + */ +public final class TbItem { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbItem(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.item.Item _v; + _v = cfg.item.Item.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.item.Item get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/l10n/L10NDemo.java b/luban_examples/Projects/java_json/src/gen/cfg/l10n/L10NDemo.java new file mode 100644 index 00000000..5f3a89b2 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/l10n/L10NDemo.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class L10NDemo extends AbstractBean { + public L10NDemo(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + text = _buf.get("text").getAsString(); + } + + public static L10NDemo deserialize(JsonObject _buf) { + return new cfg.l10n.L10NDemo(_buf); + } + + public final int id; + public final String text; + + public static final int __ID__ = -331195887; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + text + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/l10n/PatchDemo.java b/luban_examples/Projects/java_json/src/gen/cfg/l10n/PatchDemo.java new file mode 100644 index 00000000..70a937b8 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/l10n/PatchDemo.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class PatchDemo extends AbstractBean { + public PatchDemo(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + value = _buf.get("value").getAsInt(); + } + + public static PatchDemo deserialize(JsonObject _buf) { + return new cfg.l10n.PatchDemo(_buf); + } + + public final int id; + public final int value; + + public static final int __ID__ = -1707294656; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/l10n/TbL10NDemo.java b/luban_examples/Projects/java_json/src/gen/cfg/l10n/TbL10NDemo.java new file mode 100644 index 00000000..8b684d8a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/l10n/TbL10NDemo.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbL10NDemo { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbL10NDemo(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.l10n.L10NDemo _v; + _v = cfg.l10n.L10NDemo.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.l10n.L10NDemo get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/l10n/TbPatchDemo.java b/luban_examples/Projects/java_json/src/gen/cfg/l10n/TbPatchDemo.java new file mode 100644 index 00000000..0657a9b0 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/l10n/TbPatchDemo.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.l10n; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbPatchDemo { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbPatchDemo(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.l10n.PatchDemo _v; + _v = cfg.l10n.PatchDemo.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.l10n.PatchDemo get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/tag/TbTestTag.java b/luban_examples/Projects/java_json/src/gen/cfg/tag/TbTestTag.java new file mode 100644 index 00000000..0e908ed3 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/tag/TbTestTag.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.tag; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestTag { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestTag(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.tag.TestTag _v; + _v = cfg.tag.TestTag.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.tag.TestTag get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/tag/TestTag.java b/luban_examples/Projects/java_json/src/gen/cfg/tag/TestTag.java new file mode 100644 index 00000000..85393c8c --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/tag/TestTag.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.tag; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestTag extends AbstractBean { + public TestTag(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + value = _buf.get("value").getAsString(); + } + + public static TestTag deserialize(JsonObject _buf) { + return new cfg.tag.TestTag(_buf); + } + + public final int id; + public final String value; + + public static final int __ID__ = 1742933812; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/AccessFlag.java b/luban_examples/Projects/java_json/src/gen/cfg/test/AccessFlag.java new file mode 100644 index 00000000..41cfd5b4 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/AccessFlag.java @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class AccessFlag { + public static final int WRITE = 1; + public static final int READ = 2; + public static final int TRUNCATE = 4; + public static final int NEW = 8; + public static final int READ_WRITE = 3; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/Circle.java b/luban_examples/Projects/java_json/src/gen/cfg/test/Circle.java new file mode 100644 index 00000000..2a9813bb --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/Circle.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +/** + * 圆 + */ +public final class Circle extends cfg.test.Shape { + public Circle(JsonObject _buf) { + super(_buf); + radius = _buf.get("radius").getAsFloat(); + } + + public static Circle deserialize(JsonObject _buf) { + return new cfg.test.Circle(_buf); + } + + /** + * 半径 + */ + public final float radius; + + public static final int __ID__ = 2131829196; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + radius + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/CompactString.java b/luban_examples/Projects/java_json/src/gen/cfg/test/CompactString.java new file mode 100644 index 00000000..8fe71676 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/CompactString.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class CompactString extends AbstractBean { + public CompactString(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + s2 = _buf.get("s2").getAsString(); + s3 = _buf.get("s3").getAsString(); + } + + public static CompactString deserialize(JsonObject _buf) { + return new cfg.test.CompactString(_buf); + } + + public final int id; + public final String s2; + public final String s3; + + public static final int __ID__ = 1968089240; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + s3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable1.java b/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable1.java new file mode 100644 index 00000000..c2cb74e1 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable1.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class CompositeJsonTable1 extends AbstractBean { + public CompositeJsonTable1(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x = _buf.get("x").getAsString(); + } + + public static CompositeJsonTable1 deserialize(JsonObject _buf) { + return new cfg.test.CompositeJsonTable1(_buf); + } + + public final int id; + public final String x; + + public static final int __ID__ = 1566207894; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable2.java new file mode 100644 index 00000000..4b54078b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable2.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class CompositeJsonTable2 extends AbstractBean { + public CompositeJsonTable2(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + y = _buf.get("y").getAsInt(); + } + + public static CompositeJsonTable2 deserialize(JsonObject _buf) { + return new cfg.test.CompositeJsonTable2(_buf); + } + + public final int id; + public final int y; + + public static final int __ID__ = 1566207895; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable3.java b/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable3.java new file mode 100644 index 00000000..a6e8eeb3 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/CompositeJsonTable3.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class CompositeJsonTable3 extends AbstractBean { + public CompositeJsonTable3(JsonObject _buf) { + a = _buf.get("a").getAsInt(); + b = _buf.get("b").getAsInt(); + } + + public static CompositeJsonTable3 deserialize(JsonObject _buf) { + return new cfg.test.CompositeJsonTable3(_buf); + } + + public final int a; + public final int b; + + public static final int __ID__ = 1566207896; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + a + "," + + "(format_field_name __code_style field.name):" + b + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DateTimeRange.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DateTimeRange.java new file mode 100644 index 00000000..7db6a131 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DateTimeRange.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DateTimeRange extends AbstractBean { + public DateTimeRange(JsonObject _buf) { + startTime = _buf.get("start_time").getAsLong(); + endTime = _buf.get("end_time").getAsLong(); + } + + public static DateTimeRange deserialize(JsonObject _buf) { + return new cfg.test.DateTimeRange(_buf); + } + + public final long startTime; + public final long endTime; + + public static final int __ID__ = 495315430; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + startTime + "," + + "(format_field_name __code_style field.name):" + endTime + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/Decorator.java b/luban_examples/Projects/java_json/src/gen/cfg/test/Decorator.java new file mode 100644 index 00000000..db2a38bb --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/Decorator.java @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Decorator extends cfg.test.ItemBase { + public Decorator(JsonObject _buf) { + super(_buf); + duration = _buf.get("duration").getAsInt(); + } + + public static Decorator deserialize(JsonObject _buf) { + return new cfg.test.Decorator(_buf); + } + + public final int duration; + + public static final int __ID__ = -625155649; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + duration + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD2.java new file mode 100644 index 00000000..b126e436 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD2.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoD2 extends cfg.test.DemoDynamic { + public DemoD2(JsonObject _buf) { + super(_buf); + x2 = _buf.get("x2").getAsInt(); + } + + public static DemoD2 deserialize(JsonObject _buf) { + return new cfg.test.DemoD2(_buf); + } + + public final int x2; + + public static final int __ID__ = -2138341747; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD3.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD3.java new file mode 100644 index 00000000..76033555 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD3.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class DemoD3 extends cfg.test.DemoDynamic { + public DemoD3(JsonObject _buf) { + super(_buf); + x3 = _buf.get("x3").getAsInt(); + } + + public static DemoD3 deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "DemoE1": return new cfg.test.DemoE1(_buf); + case "test.login.RoleInfo": return new cfg.test.login.RoleInfo(_buf); + default: throw new SerializationException(); + } + } + + public final int x3; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD5.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD5.java new file mode 100644 index 00000000..ccea97b5 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoD5.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoD5 extends cfg.test.DemoDynamic { + public DemoD5(JsonObject _buf) { + super(_buf); + time = cfg.test.DateTimeRange.deserialize(_buf.get("time").getAsJsonObject()); + } + + public static DemoD5 deserialize(JsonObject _buf) { + return new cfg.test.DemoD5(_buf); + } + + public final cfg.test.DateTimeRange time; + + public static final int __ID__ = -2138341744; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + time + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoDynamic.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoDynamic.java new file mode 100644 index 00000000..d10e3a66 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoDynamic.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class DemoDynamic extends AbstractBean { + public DemoDynamic(JsonObject _buf) { + x1 = _buf.get("x1").getAsInt(); + } + + public static DemoDynamic deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "DemoD2": return new cfg.test.DemoD2(_buf); + case "DemoE1": return new cfg.test.DemoE1(_buf); + case "test.login.RoleInfo": return new cfg.test.login.RoleInfo(_buf); + case "DemoD5": return new cfg.test.DemoD5(_buf); + default: throw new SerializationException(); + } + } + + public final int x1; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoE1.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoE1.java new file mode 100644 index 00000000..331278ae --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoE1.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoE1 extends cfg.test.DemoD3 { + public DemoE1(JsonObject _buf) { + super(_buf); + x4 = _buf.get("x4").getAsInt(); + } + + public static DemoE1 deserialize(JsonObject _buf) { + return new cfg.test.DemoE1(_buf); + } + + public final int x4; + + public static final int __ID__ = -2138341717; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoE2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoE2.java new file mode 100644 index 00000000..ea2ad1e3 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoE2.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoE2 extends AbstractBean { + public DemoE2(JsonObject _buf) { + { if (_buf.has("y1") && !_buf.get("y1").isJsonNull()) { y1 = _buf.get("y1").getAsInt(); } else { y1 = null; } } + y2 = _buf.get("y2").getAsBoolean(); + } + + public static DemoE2 deserialize(JsonObject _buf) { + return new cfg.test.DemoE2(_buf); + } + + public final Integer y1; + public final boolean y2; + + public static final int __ID__ = -2138341716; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y1 + "," + + "(format_field_name __code_style field.name):" + y2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoEnum.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoEnum.java new file mode 100644 index 00000000..c8327858 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoEnum.java @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class DemoEnum { + public static final int NONE = 0; + /** + * aa + */ + public static final int A = 1; + /** + * bb + */ + public static final int B = 2; + /** + * cc + */ + public static final int C = 4; + /** + * dd + */ + public static final int D = 5; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoFlag.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoFlag.java new file mode 100644 index 00000000..6da1dba8 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoFlag.java @@ -0,0 +1,18 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class DemoFlag { + public static final int A = 1; + public static final int B = 2; + public static final int C = 4; + public static final int D = 8; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoGroup.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoGroup.java new file mode 100644 index 00000000..85e6315b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoGroup.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoGroup extends AbstractBean { + public DemoGroup(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x1 = _buf.get("x1").getAsInt(); + x2 = _buf.get("x2").getAsInt(); + x3 = _buf.get("x3").getAsInt(); + x4 = _buf.get("x4").getAsInt(); + x5 = cfg.test.InnerGroup.deserialize(_buf.get("x5").getAsJsonObject()); + } + + public static DemoGroup deserialize(JsonObject _buf) { + return new cfg.test.DemoGroup(_buf); + } + + public final int id; + public final int x1; + public final int x2; + public final int x3; + public final int x4; + public final cfg.test.InnerGroup x5; + + public static final int __ID__ = -379263008; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoPrimitiveTypesTable.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoPrimitiveTypesTable.java new file mode 100644 index 00000000..120bf491 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoPrimitiveTypesTable.java @@ -0,0 +1,76 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoPrimitiveTypesTable extends AbstractBean { + public DemoPrimitiveTypesTable(JsonObject _buf) { + x1 = _buf.get("x1").getAsBoolean(); + x2 = _buf.get("x2").getAsByte(); + x3 = _buf.get("x3").getAsShort(); + x4 = _buf.get("x4").getAsInt(); + x5 = _buf.get("x5").getAsLong(); + x6 = _buf.get("x6").getAsFloat(); + x7 = _buf.get("x7").getAsDouble(); + s1 = _buf.get("s1").getAsString(); + s2 = _buf.get("s2").getAsString(); + v2 = cfg.vec2.deserialize(_buf.get("v2").getAsJsonObject()); + v3 = cfg.vec3.deserialize(_buf.get("v3").getAsJsonObject()); + v4 = cfg.vec4.deserialize(_buf.get("v4").getAsJsonObject()); + t1 = _buf.get("t1").getAsLong(); + } + + public static DemoPrimitiveTypesTable deserialize(JsonObject _buf) { + return new cfg.test.DemoPrimitiveTypesTable(_buf); + } + + public final boolean x1; + public final byte x2; + public final short x3; + public final int x4; + public final long x5; + public final float x6; + public final double x7; + public final String s1; + public final String s2; + public final cfg.vec2 v2; + public final cfg.vec3 v3; + public final cfg.vec4 v4; + public final long t1; + + public static final int __ID__ = -370934083; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x7 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "(format_field_name __code_style field.name):" + v3 + "," + + "(format_field_name __code_style field.name):" + v4 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoSingletonType.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoSingletonType.java new file mode 100644 index 00000000..313a216a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoSingletonType.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoSingletonType extends AbstractBean { + public DemoSingletonType(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + name = _buf.get("name").getAsString(); + date = cfg.test.DemoDynamic.deserialize(_buf.get("date").getAsJsonObject()); + } + + public static DemoSingletonType deserialize(JsonObject _buf) { + return new cfg.test.DemoSingletonType(_buf); + } + + public final int id; + public final String name; + public final cfg.test.DemoDynamic date; + + public static final int __ID__ = 539196998; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + date + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoType1.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoType1.java new file mode 100644 index 00000000..6c2165a5 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoType1.java @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoType1 extends AbstractBean { + public DemoType1(JsonObject _buf) { + x1 = _buf.get("x1").getAsInt(); + } + + public static DemoType1 deserialize(JsonObject _buf) { + return new cfg.test.DemoType1(_buf); + } + + public final int x1; + + public static final int __ID__ = -367048296; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DemoType2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoType2.java new file mode 100644 index 00000000..672e1c32 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DemoType2.java @@ -0,0 +1,103 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DemoType2 extends AbstractBean { + public DemoType2(JsonObject _buf) { + x4 = _buf.get("x4").getAsInt(); + x1 = _buf.get("x1").getAsBoolean(); + x2 = _buf.get("x2").getAsByte(); + x3 = _buf.get("x3").getAsShort(); + x5 = _buf.get("x5").getAsLong(); + x6 = _buf.get("x6").getAsFloat(); + x7 = _buf.get("x7").getAsDouble(); + x80 = _buf.get("x8_0").getAsShort(); + x8 = _buf.get("x8").getAsInt(); + x9 = _buf.get("x9").getAsLong(); + x10 = _buf.get("x10").getAsString(); + x12 = cfg.test.DemoType1.deserialize(_buf.get("x12").getAsJsonObject()); + x13 = _buf.get("x13").getAsInt(); + x14 = cfg.test.DemoDynamic.deserialize(_buf.get("x14").getAsJsonObject()); + s1 = _buf.get("s1").getAsString(); + t1 = _buf.get("t1").getAsLong(); + { com.google.gson.JsonArray _json0_ = _buf.get("k1").getAsJsonArray(); int __n0 = _json0_.size(); k1 = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); k1[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("k2").getAsJsonArray(); k2 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); k2.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k5").getAsJsonArray(); k5 = new java.util.HashSet(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); k5.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k8").getAsJsonArray(); k8 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); k8.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k9").getAsJsonArray(); k9 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.DemoE2 _v0; _v0 = cfg.test.DemoE2.deserialize(_e0.getAsJsonObject()); k9.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k15").getAsJsonArray(); int __n0 = _json0_.size(); k15 = new cfg.test.DemoDynamic[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.test.DemoDynamic __v0; __v0 = cfg.test.DemoDynamic.deserialize(__e0.getAsJsonObject()); k15[__index0++] = __v0; } } + } + + public static DemoType2 deserialize(JsonObject _buf) { + return new cfg.test.DemoType2(_buf); + } + + public final int x4; + public final boolean x1; + public final byte x2; + public final short x3; + public final long x5; + public final float x6; + public final double x7; + public final short x80; + public final int x8; + public final long x9; + public final String x10; + public final cfg.test.DemoType1 x12; + public final int x13; + public final cfg.test.DemoDynamic x14; + public final String s1; + public final long t1; + public final int[] k1; + public final java.util.ArrayList k2; + public final java.util.HashSet k5; + public final java.util.HashMap k8; + public final java.util.ArrayList k9; + public final cfg.test.DemoDynamic[] k15; + + public static final int __ID__ = -367048295; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + x7 + "," + + "(format_field_name __code_style field.name):" + x80 + "," + + "(format_field_name __code_style field.name):" + x8 + "," + + "(format_field_name __code_style field.name):" + x9 + "," + + "(format_field_name __code_style field.name):" + x10 + "," + + "(format_field_name __code_style field.name):" + x12 + "," + + "(format_field_name __code_style field.name):" + x13 + "," + + "(format_field_name __code_style field.name):" + x14 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "(format_field_name __code_style field.name):" + k1 + "," + + "(format_field_name __code_style field.name):" + k2 + "," + + "(format_field_name __code_style field.name):" + k5 + "," + + "(format_field_name __code_style field.name):" + k8 + "," + + "(format_field_name __code_style field.name):" + k9 + "," + + "(format_field_name __code_style field.name):" + k15 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/DetectEncoding.java b/luban_examples/Projects/java_json/src/gen/cfg/test/DetectEncoding.java new file mode 100644 index 00000000..ded157c7 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/DetectEncoding.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class DetectEncoding extends AbstractBean { + public DetectEncoding(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + name = _buf.get("name").getAsString(); + } + + public static DetectEncoding deserialize(JsonObject _buf) { + return new cfg.test.DetectEncoding(_buf); + } + + public final int id; + public final String name; + + public static final int __ID__ = -1154609646; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/ETestEmptyEnum.java b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestEmptyEnum.java new file mode 100644 index 00000000..feb65848 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestEmptyEnum.java @@ -0,0 +1,14 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestEmptyEnum { +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/ETestEmptyEnum2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestEmptyEnum2.java new file mode 100644 index 00000000..4e0e381f --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestEmptyEnum2.java @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestEmptyEnum2 { + public static final int SMALL_THAN_256 = 255; + public static final int X_256 = 256; + public static final int X_257 = 257; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/ETestQuality.java b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestQuality.java new file mode 100644 index 00000000..0af5b522 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestQuality.java @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestQuality { + /** + * 最高品质 + */ + public static final int A = 1; + /** + * 黑色的 + */ + public static final int B = 2; + /** + * 蓝色的 + */ + public static final int C = 3; + /** + * 最差品质 + */ + public static final int D = 4; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/ETestUeType.java b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestUeType.java new file mode 100644 index 00000000..d3dd0372 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/ETestUeType.java @@ -0,0 +1,19 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +public final class ETestUeType { + /** + * 白 + */ + public static final int WHITE = 0; + public static final int BLACK = 1; +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/Equipment.java b/luban_examples/Projects/java_json/src/gen/cfg/test/Equipment.java new file mode 100644 index 00000000..85d6be7e --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/Equipment.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Equipment extends cfg.test.ItemBase { + public Equipment(JsonObject _buf) { + super(_buf); + attr = _buf.get("attr").getAsInt(); + value = _buf.get("value").getAsInt(); + } + + public static Equipment deserialize(JsonObject _buf) { + return new cfg.test.Equipment(_buf); + } + + public final int attr; + public final int value; + + public static final int __ID__ = -76837102; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + attr + "," + + "(format_field_name __code_style field.name):" + value + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/ExcelFromJson.java b/luban_examples/Projects/java_json/src/gen/cfg/test/ExcelFromJson.java new file mode 100644 index 00000000..b986392b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/ExcelFromJson.java @@ -0,0 +1,79 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class ExcelFromJson extends AbstractBean { + public ExcelFromJson(JsonObject _buf) { + x4 = _buf.get("x4").getAsInt(); + x1 = _buf.get("x1").getAsBoolean(); + x5 = _buf.get("x5").getAsLong(); + x6 = _buf.get("x6").getAsFloat(); + s1 = _buf.get("s1").getAsString(); + s2 = _buf.get("s2").getAsString(); + t1 = _buf.get("t1").getAsLong(); + x12 = cfg.test.DemoType1.deserialize(_buf.get("x12").getAsJsonObject()); + x13 = _buf.get("x13").getAsInt(); + x14 = cfg.test.DemoDynamic.deserialize(_buf.get("x14").getAsJsonObject()); + { com.google.gson.JsonArray _json0_ = _buf.get("k1").getAsJsonArray(); int __n0 = _json0_.size(); k1 = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); k1[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("k8").getAsJsonArray(); k8 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); k8.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k9").getAsJsonArray(); k9 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.DemoE2 _v0; _v0 = cfg.test.DemoE2.deserialize(_e0.getAsJsonObject()); k9.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("k15").getAsJsonArray(); int __n0 = _json0_.size(); k15 = new cfg.test.DemoDynamic[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.test.DemoDynamic __v0; __v0 = cfg.test.DemoDynamic.deserialize(__e0.getAsJsonObject()); k15[__index0++] = __v0; } } + } + + public static ExcelFromJson deserialize(JsonObject _buf) { + return new cfg.test.ExcelFromJson(_buf); + } + + public final int x4; + public final boolean x1; + public final long x5; + public final float x6; + public final String s1; + public final String s2; + public final long t1; + public final cfg.test.DemoType1 x12; + public final int x13; + public final cfg.test.DemoDynamic x14; + public final int[] k1; + public final java.util.HashMap k8; + public final java.util.ArrayList k9; + public final cfg.test.DemoDynamic[] k15; + + public static final int __ID__ = -1485706483; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x5 + "," + + "(format_field_name __code_style field.name):" + x6 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + t1 + "," + + "(format_field_name __code_style field.name):" + x12 + "," + + "(format_field_name __code_style field.name):" + x13 + "," + + "(format_field_name __code_style field.name):" + x14 + "," + + "(format_field_name __code_style field.name):" + k1 + "," + + "(format_field_name __code_style field.name):" + k8 + "," + + "(format_field_name __code_style field.name):" + k9 + "," + + "(format_field_name __code_style field.name):" + k15 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/ExcelFromJsonMultiRow.java b/luban_examples/Projects/java_json/src/gen/cfg/test/ExcelFromJsonMultiRow.java new file mode 100644 index 00000000..553ac0d1 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/ExcelFromJsonMultiRow.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class ExcelFromJsonMultiRow extends AbstractBean { + public ExcelFromJsonMultiRow(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x = _buf.get("x").getAsInt(); + { com.google.gson.JsonArray _json0_ = _buf.get("items").getAsJsonArray(); items = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.TestRow _v0; _v0 = cfg.test.TestRow.deserialize(_e0.getAsJsonObject()); items.add(_v0); } } + } + + public static ExcelFromJsonMultiRow deserialize(JsonObject _buf) { + return new cfg.test.ExcelFromJsonMultiRow(_buf); + } + + public final int id; + public final int x; + public final java.util.ArrayList items; + + public static final int __ID__ = 715335694; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + items + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/Foo.java b/luban_examples/Projects/java_json/src/gen/cfg/test/Foo.java new file mode 100644 index 00000000..8f55cbeb --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/Foo.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Foo extends AbstractBean { + public Foo(JsonObject _buf) { + y1 = _buf.get("y1").getAsInt(); + y2 = _buf.get("y2").getAsInt(); + y3 = _buf.get("y3").getAsInt(); + } + + public static Foo deserialize(JsonObject _buf) { + return new cfg.test.Foo(_buf); + } + + public final int y1; + public final int y2; + public final int y3; + + public static final int __ID__ = -1147950774; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y1 + "," + + "(format_field_name __code_style field.name):" + y2 + "," + + "(format_field_name __code_style field.name):" + y3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/H1.java b/luban_examples/Projects/java_json/src/gen/cfg/test/H1.java new file mode 100644 index 00000000..31542366 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/H1.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class H1 extends AbstractBean { + public H1(JsonObject _buf) { + y2 = cfg.test.H2.deserialize(_buf.get("y2").getAsJsonObject()); + y3 = _buf.get("y3").getAsInt(); + } + + public static H1 deserialize(JsonObject _buf) { + return new cfg.test.H1(_buf); + } + + public final cfg.test.H2 y2; + public final int y3; + + public static final int __ID__ = -1422503995; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y2 + "," + + "(format_field_name __code_style field.name):" + y3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/H2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/H2.java new file mode 100644 index 00000000..75bd2a42 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/H2.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class H2 extends AbstractBean { + public H2(JsonObject _buf) { + z2 = _buf.get("z2").getAsInt(); + z3 = _buf.get("z3").getAsInt(); + } + + public static H2 deserialize(JsonObject _buf) { + return new cfg.test.H2(_buf); + } + + public final int z2; + public final int z3; + + public static final int __ID__ = -1422503994; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + z2 + "," + + "(format_field_name __code_style field.name):" + z3 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/InnerGroup.java b/luban_examples/Projects/java_json/src/gen/cfg/test/InnerGroup.java new file mode 100644 index 00000000..2fa8f272 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/InnerGroup.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class InnerGroup extends AbstractBean { + public InnerGroup(JsonObject _buf) { + y1 = _buf.get("y1").getAsInt(); + y2 = _buf.get("y2").getAsInt(); + y3 = _buf.get("y3").getAsInt(); + y4 = _buf.get("y4").getAsInt(); + } + + public static InnerGroup deserialize(JsonObject _buf) { + return new cfg.test.InnerGroup(_buf); + } + + public final int y1; + public final int y2; + public final int y3; + public final int y4; + + public static final int __ID__ = -587873083; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + y1 + "," + + "(format_field_name __code_style field.name):" + y2 + "," + + "(format_field_name __code_style field.name):" + y3 + "," + + "(format_field_name __code_style field.name):" + y4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/Item.java b/luban_examples/Projects/java_json/src/gen/cfg/test/Item.java new file mode 100644 index 00000000..be067f44 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/Item.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Item extends cfg.test.ItemBase { + public Item(JsonObject _buf) { + super(_buf); + num = _buf.get("num").getAsInt(); + price = _buf.get("price").getAsInt(); + } + + public static Item deserialize(JsonObject _buf) { + return new cfg.test.Item(_buf); + } + + public final int num; + public final int price; + + public static final int __ID__ = -1226641649; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + price + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/ItemBase.java b/luban_examples/Projects/java_json/src/gen/cfg/test/ItemBase.java new file mode 100644 index 00000000..2b5bb89a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/ItemBase.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class ItemBase extends AbstractBean { + public ItemBase(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + name = _buf.get("name").getAsString(); + desc = _buf.get("desc").getAsString(); + } + + public static ItemBase deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "Item": return new cfg.test.Item(_buf); + case "Equipment": return new cfg.test.Equipment(_buf); + case "Decorator": return new cfg.test.Decorator(_buf); + default: throw new SerializationException(); + } + } + + public final int id; + public final String name; + public final String desc; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/MultiIndexList.java b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiIndexList.java new file mode 100644 index 00000000..c71531e0 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiIndexList.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MultiIndexList extends AbstractBean { + public MultiIndexList(JsonObject _buf) { + id1 = _buf.get("id1").getAsInt(); + id2 = _buf.get("id2").getAsLong(); + id3 = _buf.get("id3").getAsString(); + num = _buf.get("num").getAsInt(); + desc = _buf.get("desc").getAsString(); + } + + public static MultiIndexList deserialize(JsonObject _buf) { + return new cfg.test.MultiIndexList(_buf); + } + + public final int id1; + public final long id2; + public final String id3; + public final int num; + public final String desc; + + public static final int __ID__ = 2016237651; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id1 + "," + + "(format_field_name __code_style field.name):" + id2 + "," + + "(format_field_name __code_style field.name):" + id3 + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowRecord.java b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowRecord.java new file mode 100644 index 00000000..dbaa0692 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowRecord.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MultiRowRecord extends AbstractBean { + public MultiRowRecord(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + name = _buf.get("name").getAsString(); + { com.google.gson.JsonArray _json0_ = _buf.get("one_rows").getAsJsonArray(); oneRows = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.MultiRowType1 _v0; _v0 = cfg.test.MultiRowType1.deserialize(_e0.getAsJsonObject()); oneRows.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("multi_rows1").getAsJsonArray(); multiRows1 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.MultiRowType1 _v0; _v0 = cfg.test.MultiRowType1.deserialize(_e0.getAsJsonObject()); multiRows1.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("multi_rows2").getAsJsonArray(); int __n0 = _json0_.size(); multiRows2 = new cfg.test.MultiRowType1[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.test.MultiRowType1 __v0; __v0 = cfg.test.MultiRowType1.deserialize(__e0.getAsJsonObject()); multiRows2[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("multi_rows4").getAsJsonArray(); multiRows4 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); cfg.test.MultiRowType2 _v0; _v0 = cfg.test.MultiRowType2.deserialize(_e0.getAsJsonArray().get(1).getAsJsonObject()); multiRows4.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("multi_rows5").getAsJsonArray(); multiRows5 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.MultiRowType3 _v0; _v0 = cfg.test.MultiRowType3.deserialize(_e0.getAsJsonObject()); multiRows5.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("multi_rows6").getAsJsonArray(); multiRows6 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); cfg.test.MultiRowType2 _v0; _v0 = cfg.test.MultiRowType2.deserialize(_e0.getAsJsonArray().get(1).getAsJsonObject()); multiRows6.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("multi_rows7").getAsJsonArray(); multiRows7 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); multiRows7.put(_k0, _v0); } } + } + + public static MultiRowRecord deserialize(JsonObject _buf) { + return new cfg.test.MultiRowRecord(_buf); + } + + public final int id; + public final String name; + public final java.util.ArrayList oneRows; + public final java.util.ArrayList multiRows1; + public final cfg.test.MultiRowType1[] multiRows2; + public final java.util.HashMap multiRows4; + public final java.util.ArrayList multiRows5; + public final java.util.HashMap multiRows6; + public final java.util.HashMap multiRows7; + + public static final int __ID__ = -501249394; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + oneRows + "," + + "(format_field_name __code_style field.name):" + multiRows1 + "," + + "(format_field_name __code_style field.name):" + multiRows2 + "," + + "(format_field_name __code_style field.name):" + multiRows4 + "," + + "(format_field_name __code_style field.name):" + multiRows5 + "," + + "(format_field_name __code_style field.name):" + multiRows6 + "," + + "(format_field_name __code_style field.name):" + multiRows7 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowTitle.java b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowTitle.java new file mode 100644 index 00000000..5c68321a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowTitle.java @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MultiRowTitle extends AbstractBean { + public MultiRowTitle(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + name = _buf.get("name").getAsString(); + x1 = cfg.test.H1.deserialize(_buf.get("x1").getAsJsonObject()); + { if (_buf.has("x2_0") && !_buf.get("x2_0").isJsonNull()) { x20 = cfg.test.H2.deserialize(_buf.get("x2_0").getAsJsonObject()); } else { x20 = null; } } + { com.google.gson.JsonArray _json0_ = _buf.get("x2").getAsJsonArray(); x2 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.H2 _v0; _v0 = cfg.test.H2.deserialize(_e0.getAsJsonObject()); x2.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x3").getAsJsonArray(); int __n0 = _json0_.size(); x3 = new cfg.test.H2[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.test.H2 __v0; __v0 = cfg.test.H2.deserialize(__e0.getAsJsonObject()); x3[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("x4").getAsJsonArray(); int __n0 = _json0_.size(); x4 = new cfg.test.H2[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.test.H2 __v0; __v0 = cfg.test.H2.deserialize(__e0.getAsJsonObject()); x4[__index0++] = __v0; } } + } + + public static MultiRowTitle deserialize(JsonObject _buf) { + return new cfg.test.MultiRowTitle(_buf); + } + + public final int id; + public final String name; + public final cfg.test.H1 x1; + public final cfg.test.H2 x20; + public final java.util.ArrayList x2; + public final cfg.test.H2[] x3; + public final cfg.test.H2[] x4; + + public static final int __ID__ = 540002427; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + name + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x20 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType1.java b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType1.java new file mode 100644 index 00000000..fb8760a0 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType1.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MultiRowType1 extends AbstractBean { + public MultiRowType1(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x = _buf.get("x").getAsInt(); + } + + public static MultiRowType1 deserialize(JsonObject _buf) { + return new cfg.test.MultiRowType1(_buf); + } + + public final int id; + public final int x; + + public static final int __ID__ = 540474970; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType2.java new file mode 100644 index 00000000..4415cb50 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType2.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MultiRowType2 extends AbstractBean { + public MultiRowType2(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x = _buf.get("x").getAsInt(); + y = _buf.get("y").getAsFloat(); + } + + public static MultiRowType2 deserialize(JsonObject _buf) { + return new cfg.test.MultiRowType2(_buf); + } + + public final int id; + public final int x; + public final float y; + + public static final int __ID__ = 540474971; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType3.java b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType3.java new file mode 100644 index 00000000..0f221a9f --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiRowType3.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MultiRowType3 extends AbstractBean { + public MultiRowType3(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + { com.google.gson.JsonArray _json0_ = _buf.get("items").getAsJsonArray(); items = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.MultiRowType1 _v0; _v0 = cfg.test.MultiRowType1.deserialize(_e0.getAsJsonObject()); items.add(_v0); } } + } + + public static MultiRowType3 deserialize(JsonObject _buf) { + return new cfg.test.MultiRowType3(_buf); + } + + public final int id; + public final java.util.ArrayList items; + + public static final int __ID__ = 540474972; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + items + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/MultiUnionIndexList.java b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiUnionIndexList.java new file mode 100644 index 00000000..91887f51 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/MultiUnionIndexList.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class MultiUnionIndexList extends AbstractBean { + public MultiUnionIndexList(JsonObject _buf) { + id1 = _buf.get("id1").getAsInt(); + id2 = _buf.get("id2").getAsLong(); + id3 = _buf.get("id3").getAsString(); + num = _buf.get("num").getAsInt(); + desc = _buf.get("desc").getAsString(); + } + + public static MultiUnionIndexList deserialize(JsonObject _buf) { + return new cfg.test.MultiUnionIndexList(_buf); + } + + public final int id1; + public final long id2; + public final String id3; + public final int num; + public final String desc; + + public static final int __ID__ = 1966847134; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id1 + "," + + "(format_field_name __code_style field.name):" + id2 + "," + + "(format_field_name __code_style field.name):" + id3 + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/NotIndexList.java b/luban_examples/Projects/java_json/src/gen/cfg/test/NotIndexList.java new file mode 100644 index 00000000..43ae0fd8 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/NotIndexList.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class NotIndexList extends AbstractBean { + public NotIndexList(JsonObject _buf) { + x = _buf.get("x").getAsInt(); + y = _buf.get("y").getAsInt(); + } + + public static NotIndexList deserialize(JsonObject _buf) { + return new cfg.test.NotIndexList(_buf); + } + + public final int x; + public final int y; + + public static final int __ID__ = -50446599; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/RefBean.java b/luban_examples/Projects/java_json/src/gen/cfg/test/RefBean.java new file mode 100644 index 00000000..2cf20346 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/RefBean.java @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class RefBean extends cfg.test.RefDynamicBase { + public RefBean(JsonObject _buf) { + super(_buf); + { com.google.gson.JsonArray _json0_ = _buf.get("arr").getAsJsonArray(); arr = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); arr.add(_v0); } } + } + + public static RefBean deserialize(JsonObject _buf) { + return new cfg.test.RefBean(_buf); + } + + public final java.util.ArrayList arr; + + public static final int __ID__ = 1963260263; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + arr + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/RefDynamicBase.java b/luban_examples/Projects/java_json/src/gen/cfg/test/RefDynamicBase.java new file mode 100644 index 00000000..8abd9659 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/RefDynamicBase.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class RefDynamicBase extends AbstractBean { + public RefDynamicBase(JsonObject _buf) { + x = _buf.get("x").getAsInt(); + } + + public static RefDynamicBase deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "RefBean": return new cfg.test.RefBean(_buf); + default: throw new SerializationException(); + } + } + + public final int x; + + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/Shape.java b/luban_examples/Projects/java_json/src/gen/cfg/test/Shape.java new file mode 100644 index 00000000..c4d16b48 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/Shape.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public abstract class Shape extends AbstractBean { + public Shape(JsonObject _buf) { + } + + public static Shape deserialize(JsonObject _buf) { + switch (_buf.get("$type").getAsString()) { + case "Circle": return new cfg.test.Circle(_buf); + case "test2.Rectangle": return new cfg.test2.Rectangle(_buf); + default: throw new SerializationException(); + } + } + + + + @Override + public String toString() { + return "{ " + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable1.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable1.java new file mode 100644 index 00000000..3c96f387 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable1.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbCompositeJsonTable1 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbCompositeJsonTable1(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.CompositeJsonTable1 _v; + _v = cfg.test.CompositeJsonTable1.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.CompositeJsonTable1 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable2.java new file mode 100644 index 00000000..c8a7cec9 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable2.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbCompositeJsonTable2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbCompositeJsonTable2(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.CompositeJsonTable2 _v; + _v = cfg.test.CompositeJsonTable2.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.CompositeJsonTable2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable3.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable3.java new file mode 100644 index 00000000..46691fa3 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbCompositeJsonTable3.java @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbCompositeJsonTable3 { + private final cfg.test.CompositeJsonTable3 _data; + + public final cfg.test.CompositeJsonTable3 data() { return _data; } + + public TbCompositeJsonTable3(JsonElement _buf) { + int n = _buf.getAsJsonArray().size(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.test.CompositeJsonTable3.deserialize(_buf.getAsJsonArray().get(0).getAsJsonObject().getAsJsonObject()); + } + + + public int getA() { return _data.a; } + public int getB() { return _data.b; } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDataFromMisc.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDataFromMisc.java new file mode 100644 index 00000000..0a837992 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDataFromMisc.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDataFromMisc { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDataFromMisc(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DemoType2 _v; + _v = cfg.test.DemoType2.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoType2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDefineFromExcel2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDefineFromExcel2.java new file mode 100644 index 00000000..3a6d0b2d --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDefineFromExcel2.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDefineFromExcel2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDefineFromExcel2(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.DefineFromExcel2 _v; + _v = cfg.DefineFromExcel2.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.DefineFromExcel2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup.java new file mode 100644 index 00000000..8919833b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDemoGroup { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDemoGroup(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DemoGroup _v; + _v = cfg.test.DemoGroup.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_C.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_C.java new file mode 100644 index 00000000..f01c0d0a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_C.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDemoGroup_C { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDemoGroup_C(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DemoGroup _v; + _v = cfg.test.DemoGroup.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_E.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_E.java new file mode 100644 index 00000000..1764a16f --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_E.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDemoGroup_E { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDemoGroup_E(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DemoGroup _v; + _v = cfg.test.DemoGroup.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_S.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_S.java new file mode 100644 index 00000000..997efc1a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoGroup_S.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDemoGroup_S { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDemoGroup_S(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DemoGroup _v; + _v = cfg.test.DemoGroup.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoGroup get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoPrimitive.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoPrimitive.java new file mode 100644 index 00000000..947945fb --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDemoPrimitive.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDemoPrimitive { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDemoPrimitive(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DemoPrimitiveTypesTable _v; + _v = cfg.test.DemoPrimitiveTypesTable.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoPrimitiveTypesTable get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbDetectCsvEncoding.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDetectCsvEncoding.java new file mode 100644 index 00000000..e1378096 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbDetectCsvEncoding.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbDetectCsvEncoding { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbDetectCsvEncoding(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DetectEncoding _v; + _v = cfg.test.DetectEncoding.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DetectEncoding get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbExcelFromJson.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbExcelFromJson.java new file mode 100644 index 00000000..da0a3dbe --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbExcelFromJson.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbExcelFromJson { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbExcelFromJson(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.ExcelFromJson _v; + _v = cfg.test.ExcelFromJson.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.ExcelFromJson get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbExcelFromJsonMultiRow.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbExcelFromJsonMultiRow.java new file mode 100644 index 00000000..adf6a94a --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbExcelFromJsonMultiRow.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbExcelFromJsonMultiRow { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbExcelFromJsonMultiRow(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.ExcelFromJsonMultiRow _v; + _v = cfg.test.ExcelFromJsonMultiRow.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.ExcelFromJsonMultiRow get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbFullTypes.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbFullTypes.java new file mode 100644 index 00000000..8bd536ff --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbFullTypes.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbFullTypes { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbFullTypes(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.DemoType2 _v; + _v = cfg.test.DemoType2.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.x4, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.DemoType2 get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbItem2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbItem2.java new file mode 100644 index 00000000..af049630 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbItem2.java @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbItem2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbItem2(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.ItemBase _v; + _v = cfg.test.ItemBase.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + @SuppressWarnings("unchecked") + public T getAs(int key) { return (T)_dataMap.get(key); } + public cfg.test.ItemBase get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiIndexList.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiIndexList.java new file mode 100644 index 00000000..78ed39fe --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiIndexList.java @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbMultiIndexList { + private final java.util.ArrayList _dataList; + + public TbMultiIndexList(JsonElement _buf) { + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.MultiIndexList _v; + _v = cfg.test.MultiIndexList.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + } + } + + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiIndexList get(int index) { return _dataList.get(index); } + + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiRowRecord.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiRowRecord.java new file mode 100644 index 00000000..17869249 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiRowRecord.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbMultiRowRecord { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbMultiRowRecord(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.MultiRowRecord _v; + _v = cfg.test.MultiRowRecord.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiRowRecord get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiRowTitle.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiRowTitle.java new file mode 100644 index 00000000..31c4764c --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiRowTitle.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbMultiRowTitle { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbMultiRowTitle(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.MultiRowTitle _v; + _v = cfg.test.MultiRowTitle.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiRowTitle get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiUnionIndexList.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiUnionIndexList.java new file mode 100644 index 00000000..e1088d75 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbMultiUnionIndexList.java @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbMultiUnionIndexList { + private final java.util.ArrayList _dataList; + + public TbMultiUnionIndexList(JsonElement _buf) { + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.MultiUnionIndexList _v; + _v = cfg.test.MultiUnionIndexList.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + } + } + + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.MultiUnionIndexList get(int index) { return _dataList.get(index); } + + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbNotIndexList.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbNotIndexList.java new file mode 100644 index 00000000..7467e64e --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbNotIndexList.java @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbNotIndexList { + private final java.util.ArrayList _dataList; + + public TbNotIndexList(JsonElement _buf) { + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.NotIndexList _v; + _v = cfg.test.NotIndexList.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + } + } + + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.NotIndexList get(int index) { return _dataList.get(index); } + + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbSingleton.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbSingleton.java new file mode 100644 index 00000000..db368860 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbSingleton.java @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbSingleton { + private final cfg.test.DemoSingletonType _data; + + public final cfg.test.DemoSingletonType data() { return _data; } + + public TbSingleton(JsonElement _buf) { + int n = _buf.getAsJsonArray().size(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.test.DemoSingletonType.deserialize(_buf.getAsJsonArray().get(0).getAsJsonObject().getAsJsonObject()); + } + + + public int getId() { return _data.id; } + public String getName() { return _data.name; } + public cfg.test.DemoDynamic getDate() { return _data.date; } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestBeRef.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestBeRef.java new file mode 100644 index 00000000..b0323790 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestBeRef.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestBeRef { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestBeRef(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestBeRef _v; + _v = cfg.test.TestBeRef.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestBeRef get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestBeRef2.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestBeRef2.java new file mode 100644 index 00000000..a4c8dd55 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestBeRef2.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestBeRef2 { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestBeRef2(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestBeRef _v; + _v = cfg.test.TestBeRef.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestBeRef get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestGlobal.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestGlobal.java new file mode 100644 index 00000000..25aa4646 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestGlobal.java @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestGlobal { + private final cfg.test.TestGlobal _data; + + public final cfg.test.TestGlobal data() { return _data; } + + public TbTestGlobal(JsonElement _buf) { + int n = _buf.getAsJsonArray().size(); + if (n != 1) throw new SerializationException("table mode=one, but size != 1"); + _data = cfg.test.TestGlobal.deserialize(_buf.getAsJsonArray().get(0).getAsJsonObject().getAsJsonObject()); + } + + + public int getUnlockEquip() { return _data.unlockEquip; } + public int getUnlockHero() { return _data.unlockHero; } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestIndex.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestIndex.java new file mode 100644 index 00000000..7dd80b11 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestIndex.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestIndex { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestIndex(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestIndex _v; + _v = cfg.test.TestIndex.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestIndex get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMap.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMap.java new file mode 100644 index 00000000..a33d86c9 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMap.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestMap { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestMap(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestMap _v; + _v = cfg.test.TestMap.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestMap get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMapper.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMapper.java new file mode 100644 index 00000000..ddb055eb --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMapper.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestMapper { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestMapper(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestMapper _v; + _v = cfg.test.TestMapper.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestMapper get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMultiColumn.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMultiColumn.java new file mode 100644 index 00000000..40673df6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestMultiColumn.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestMultiColumn { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestMultiColumn(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestMultiColumn _v; + _v = cfg.test.TestMultiColumn.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestMultiColumn get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestNull.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestNull.java new file mode 100644 index 00000000..c85dfc74 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestNull.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestNull { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestNull(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestNull _v; + _v = cfg.test.TestNull.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestNull get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestRef.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestRef.java new file mode 100644 index 00000000..fb2e2f05 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestRef.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestRef { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestRef(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestRef _v; + _v = cfg.test.TestRef.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestRef get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestScriptableObject.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestScriptableObject.java new file mode 100644 index 00000000..e344e204 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestScriptableObject.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestScriptableObject { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestScriptableObject(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestScriptableObject _v; + _v = cfg.test.TestScriptableObject.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestScriptableObject get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestSet.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestSet.java new file mode 100644 index 00000000..5cb33b70 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestSet.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestSet { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestSet(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestSet _v; + _v = cfg.test.TestSet.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestSet get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestSize.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestSize.java new file mode 100644 index 00000000..371196f0 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestSize.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestSize { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestSize(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestSize _v; + _v = cfg.test.TestSize.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestSize get(int key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestString.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestString.java new file mode 100644 index 00000000..7f60d4fd --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TbTestString.java @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; + + +public final class TbTestString { + private final java.util.HashMap _dataMap; + private final java.util.ArrayList _dataList; + + public TbTestString(JsonElement _buf) { + _dataMap = new java.util.HashMap(); + _dataList = new java.util.ArrayList(); + + for (com.google.gson.JsonElement _e_ : _buf.getAsJsonArray()) { + cfg.test.TestString _v; + _v = cfg.test.TestString.deserialize(_e_.getAsJsonObject()); + _dataList.add(_v); + _dataMap.put(_v.id, _v); + } + } + + public java.util.HashMap getDataMap() { return _dataMap; } + public java.util.ArrayList getDataList() { return _dataList; } + + public cfg.test.TestString get(String key) { return _dataMap.get(key); } + +} diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/Test3.java b/luban_examples/Projects/java_json/src/gen/cfg/test/Test3.java new file mode 100644 index 00000000..ac5130a2 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/Test3.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class Test3 extends AbstractBean { + public Test3(JsonObject _buf) { + x = _buf.get("x").getAsInt(); + y = _buf.get("y").getAsInt(); + } + + public static Test3 deserialize(JsonObject _buf) { + return new cfg.test.Test3(_buf); + } + + public final int x; + public final int y; + + public static final int __ID__ = 638540133; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestBeRef.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestBeRef.java new file mode 100644 index 00000000..33e8d3ea --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestBeRef.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestBeRef extends AbstractBean { + public TestBeRef(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + count = _buf.get("count").getAsInt(); + } + + public static TestBeRef deserialize(JsonObject _buf) { + return new cfg.test.TestBeRef(_buf); + } + + public final int id; + public final int count; + + public static final int __ID__ = 1934403938; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + count + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestExcelBean1.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestExcelBean1.java new file mode 100644 index 00000000..dfde3b82 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestExcelBean1.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +/** + * 这是个测试excel结构 + */ +public final class TestExcelBean1 extends AbstractBean { + public TestExcelBean1(JsonObject _buf) { + x1 = _buf.get("x1").getAsInt(); + x2 = _buf.get("x2").getAsString(); + x3 = _buf.get("x3").getAsInt(); + x4 = _buf.get("x4").getAsFloat(); + } + + public static TestExcelBean1 deserialize(JsonObject _buf) { + return new cfg.test.TestExcelBean1(_buf); + } + + /** + * 最高品质 + */ + public final int x1; + /** + * 黑色的 + */ + public final String x2; + /** + * 蓝色的 + */ + public final int x3; + /** + * 最差品质 + */ + public final float x4; + + public static final int __ID__ = -1738345160; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestGlobal.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestGlobal.java new file mode 100644 index 00000000..915c4c43 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestGlobal.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestGlobal extends AbstractBean { + public TestGlobal(JsonObject _buf) { + unlockEquip = _buf.get("unlock_equip").getAsInt(); + unlockHero = _buf.get("unlock_hero").getAsInt(); + } + + public static TestGlobal deserialize(JsonObject _buf) { + return new cfg.test.TestGlobal(_buf); + } + + public final int unlockEquip; + public final int unlockHero; + + public static final int __ID__ = -12548655; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + unlockEquip + "," + + "(format_field_name __code_style field.name):" + unlockHero + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestIndex.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestIndex.java new file mode 100644 index 00000000..9f35b713 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestIndex.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestIndex extends AbstractBean { + public TestIndex(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + { com.google.gson.JsonArray _json0_ = _buf.get("eles").getAsJsonArray(); eles = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { cfg.test.DemoType1 _v0; _v0 = cfg.test.DemoType1.deserialize(_e0.getAsJsonObject()); eles.add(_v0); } } + } + + public static TestIndex deserialize(JsonObject _buf) { + return new cfg.test.TestIndex(_buf); + } + + public final int id; + public final java.util.ArrayList eles; + + public static final int __ID__ = 1941154020; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + eles + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestMap.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestMap.java new file mode 100644 index 00000000..aed0b113 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestMap.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestMap extends AbstractBean { + public TestMap(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + { com.google.gson.JsonArray _json0_ = _buf.get("x1").getAsJsonArray(); x1 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); x1.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x2").getAsJsonArray(); x2 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { long _k0; _k0 = _e0.getAsJsonArray().get(0).getAsLong(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); x2.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x3").getAsJsonArray(); x3 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { String _k0; _k0 = _e0.getAsJsonArray().get(0).getAsString(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); x3.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x4").getAsJsonArray(); x4 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); x4.put(_k0, _v0); } } + } + + public static TestMap deserialize(JsonObject _buf) { + return new cfg.test.TestMap(_buf); + } + + public final int id; + public final java.util.HashMap x1; + public final java.util.HashMap x2; + public final java.util.HashMap x3; + public final java.util.HashMap x4; + + public static final int __ID__ = -543227410; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestMapper.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestMapper.java new file mode 100644 index 00000000..88e76a12 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestMapper.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestMapper extends AbstractBean { + public TestMapper(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + audioType = _buf.get("audio_type").getAsInt(); + v2 = cfg.vec2.deserialize(_buf.get("v2").getAsJsonObject()); + } + + public static TestMapper deserialize(JsonObject _buf) { + return new cfg.test.TestMapper(_buf); + } + + public final int id; + public final int audioType; + public final cfg.vec2 v2; + + public static final int __ID__ = 149110895; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + audioType + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestMultiColumn.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestMultiColumn.java new file mode 100644 index 00000000..c78428f2 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestMultiColumn.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestMultiColumn extends AbstractBean { + public TestMultiColumn(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + a = cfg.test.Foo.deserialize(_buf.get("a").getAsJsonObject()); + b = cfg.test.Foo.deserialize(_buf.get("b").getAsJsonObject()); + c = cfg.test.Foo.deserialize(_buf.get("c").getAsJsonObject()); + } + + public static TestMultiColumn deserialize(JsonObject _buf) { + return new cfg.test.TestMultiColumn(_buf); + } + + public final int id; + public final cfg.test.Foo a; + public final cfg.test.Foo b; + public final cfg.test.Foo c; + + public static final int __ID__ = -294473599; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + a + "," + + "(format_field_name __code_style field.name):" + b + "," + + "(format_field_name __code_style field.name):" + c + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestNull.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestNull.java new file mode 100644 index 00000000..983dfff6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestNull.java @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestNull extends AbstractBean { + public TestNull(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + { if (_buf.has("x1") && !_buf.get("x1").isJsonNull()) { x1 = _buf.get("x1").getAsInt(); } else { x1 = null; } } + { if (_buf.has("x2") && !_buf.get("x2").isJsonNull()) { x2 = _buf.get("x2").getAsInt(); } else { x2 = null; } } + { if (_buf.has("x3") && !_buf.get("x3").isJsonNull()) { x3 = cfg.test.DemoType1.deserialize(_buf.get("x3").getAsJsonObject()); } else { x3 = null; } } + { if (_buf.has("x4") && !_buf.get("x4").isJsonNull()) { x4 = cfg.test.DemoDynamic.deserialize(_buf.get("x4").getAsJsonObject()); } else { x4 = null; } } + { if (_buf.has("s1") && !_buf.get("s1").isJsonNull()) { s1 = _buf.get("s1").getAsString(); } else { s1 = null; } } + { if (_buf.has("s2") && !_buf.get("s2").isJsonNull()) { s2 = _buf.get("s2").getAsString(); } else { s2 = null; } } + } + + public static TestNull deserialize(JsonObject _buf) { + return new cfg.test.TestNull(_buf); + } + + public final int id; + public final Integer x1; + public final Integer x2; + public final cfg.test.DemoType1 x3; + public final cfg.test.DemoDynamic x4; + public final String s1; + public final String s2; + + public static final int __ID__ = 339868469; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestRef.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestRef.java new file mode 100644 index 00000000..9e9e75a5 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestRef.java @@ -0,0 +1,100 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestRef extends AbstractBean { + public TestRef(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x1 = _buf.get("x1").getAsInt(); + x12 = _buf.get("x1_2").getAsInt(); + x2 = _buf.get("x2").getAsInt(); + x3 = _buf.get("x3").getAsInt(); + x4 = _buf.get("x4").getAsInt(); + { com.google.gson.JsonArray _json0_ = _buf.get("a1").getAsJsonArray(); int __n0 = _json0_.size(); a1 = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); a1[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("a2").getAsJsonArray(); int __n0 = _json0_.size(); a2 = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); a2[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("b1").getAsJsonArray(); b1 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); b1.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("b2").getAsJsonArray(); b2 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); b2.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("c1").getAsJsonArray(); c1 = new java.util.HashSet(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); c1.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("c2").getAsJsonArray(); c2 = new java.util.HashSet(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); c2.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("d1").getAsJsonArray(); d1 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); d1.put(_k0, _v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("d2").getAsJsonArray(); d2 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); d2.put(_k0, _v0); } } + e1 = _buf.get("e1").getAsInt(); + e2 = _buf.get("e2").getAsLong(); + e3 = _buf.get("e3").getAsString(); + f1 = _buf.get("f1").getAsInt(); + f2 = _buf.get("f2").getAsLong(); + f3 = _buf.get("f3").getAsString(); + s1 = cfg.test.RefDynamicBase.deserialize(_buf.get("s1").getAsJsonObject()); + } + + public static TestRef deserialize(JsonObject _buf) { + return new cfg.test.TestRef(_buf); + } + + public final int id; + public final int x1; + public final int x12; + public final int x2; + public final int x3; + public final int x4; + public final int[] a1; + public final int[] a2; + public final java.util.ArrayList b1; + public final java.util.ArrayList b2; + public final java.util.HashSet c1; + public final java.util.HashSet c2; + public final java.util.HashMap d1; + public final java.util.HashMap d2; + public final int e1; + public final long e2; + public final String e3; + public final int f1; + public final long f2; + public final String f3; + public final cfg.test.RefDynamicBase s1; + + public static final int __ID__ = -543222491; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x12 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "(format_field_name __code_style field.name):" + a1 + "," + + "(format_field_name __code_style field.name):" + a2 + "," + + "(format_field_name __code_style field.name):" + b1 + "," + + "(format_field_name __code_style field.name):" + b2 + "," + + "(format_field_name __code_style field.name):" + c1 + "," + + "(format_field_name __code_style field.name):" + c2 + "," + + "(format_field_name __code_style field.name):" + d1 + "," + + "(format_field_name __code_style field.name):" + d2 + "," + + "(format_field_name __code_style field.name):" + e1 + "," + + "(format_field_name __code_style field.name):" + e2 + "," + + "(format_field_name __code_style field.name):" + e3 + "," + + "(format_field_name __code_style field.name):" + f1 + "," + + "(format_field_name __code_style field.name):" + f2 + "," + + "(format_field_name __code_style field.name):" + f3 + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestRow.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestRow.java new file mode 100644 index 00000000..4c98d1f6 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestRow.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestRow extends AbstractBean { + public TestRow(JsonObject _buf) { + x = _buf.get("x").getAsInt(); + y = _buf.get("y").getAsBoolean(); + z = _buf.get("z").getAsString(); + a = cfg.test.Test3.deserialize(_buf.get("a").getAsJsonObject()); + { com.google.gson.JsonArray _json0_ = _buf.get("b").getAsJsonArray(); b = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); b.add(_v0); } } + } + + public static TestRow deserialize(JsonObject _buf) { + return new cfg.test.TestRow(_buf); + } + + public final int x; + public final boolean y; + public final String z; + public final cfg.test.Test3 a; + public final java.util.ArrayList b; + + public static final int __ID__ = -543222164; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "(format_field_name __code_style field.name):" + z + "," + + "(format_field_name __code_style field.name):" + a + "," + + "(format_field_name __code_style field.name):" + b + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestScriptableObject.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestScriptableObject.java new file mode 100644 index 00000000..d1e93719 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestScriptableObject.java @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestScriptableObject extends AbstractBean { + public TestScriptableObject(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + desc = _buf.get("desc").getAsString(); + rate = _buf.get("rate").getAsFloat(); + num = _buf.get("num").getAsInt(); + v2 = cfg.vec2.deserialize(_buf.get("v2").getAsJsonObject()); + v3 = cfg.vec3.deserialize(_buf.get("v3").getAsJsonObject()); + v4 = cfg.vec4.deserialize(_buf.get("v4").getAsJsonObject()); + } + + public static TestScriptableObject deserialize(JsonObject _buf) { + return new cfg.test.TestScriptableObject(_buf); + } + + public final int id; + public final String desc; + public final float rate; + public final int num; + public final cfg.vec2 v2; + public final cfg.vec3 v3; + public final cfg.vec4 v4; + + public static final int __ID__ = -1896814350; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + desc + "," + + "(format_field_name __code_style field.name):" + rate + "," + + "(format_field_name __code_style field.name):" + num + "," + + "(format_field_name __code_style field.name):" + v2 + "," + + "(format_field_name __code_style field.name):" + v3 + "," + + "(format_field_name __code_style field.name):" + v4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestSet.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestSet.java new file mode 100644 index 00000000..0e3dbcba --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestSet.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestSet extends AbstractBean { + public TestSet(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + x0 = _buf.get("x0").getAsString(); + { com.google.gson.JsonArray _json0_ = _buf.get("x1").getAsJsonArray(); x1 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); x1.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x2").getAsJsonArray(); x2 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { long _v0; _v0 = _e0.getAsLong(); x2.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x3").getAsJsonArray(); x3 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { String _v0; _v0 = _e0.getAsString(); x3.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x4").getAsJsonArray(); x4 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); x4.add(_v0); } } + } + + public static TestSet deserialize(JsonObject _buf) { + return new cfg.test.TestSet(_buf); + } + + public final int id; + public final String x0; + public final java.util.ArrayList x1; + public final java.util.ArrayList x2; + public final java.util.ArrayList x3; + public final java.util.ArrayList x4; + + public static final int __ID__ = -543221516; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x0 + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestSize.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestSize.java new file mode 100644 index 00000000..359e9c56 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestSize.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestSize extends AbstractBean { + public TestSize(JsonObject _buf) { + id = _buf.get("id").getAsInt(); + { com.google.gson.JsonArray _json0_ = _buf.get("x1").getAsJsonArray(); int __n0 = _json0_.size(); x1 = new int[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { int __v0; __v0 = __e0.getAsInt(); x1[__index0++] = __v0; } } + { com.google.gson.JsonArray _json0_ = _buf.get("x2").getAsJsonArray(); x2 = new java.util.ArrayList(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); x2.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x3").getAsJsonArray(); x3 = new java.util.HashSet(_json0_.size()); for(JsonElement _e0 : _json0_) { int _v0; _v0 = _e0.getAsInt(); x3.add(_v0); } } + { com.google.gson.JsonArray _json0_ = _buf.get("x4").getAsJsonArray(); x4 = new java.util.HashMap(_json0_.size()); for(JsonElement _e0 : _json0_) { int _k0; _k0 = _e0.getAsJsonArray().get(0).getAsInt(); int _v0; _v0 = _e0.getAsJsonArray().get(1).getAsInt(); x4.put(_k0, _v0); } } + } + + public static TestSize deserialize(JsonObject _buf) { + return new cfg.test.TestSize(_buf); + } + + public final int id; + public final int[] x1; + public final java.util.ArrayList x2; + public final java.util.HashSet x3; + public final java.util.HashMap x4; + + public static final int __ID__ = 340006319; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x2 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + x4 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/TestString.java b/luban_examples/Projects/java_json/src/gen/cfg/test/TestString.java new file mode 100644 index 00000000..8f5ab47f --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/TestString.java @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg.test; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class TestString extends AbstractBean { + public TestString(JsonObject _buf) { + id = _buf.get("id").getAsString(); + s1 = _buf.get("s1").getAsString(); + s2 = _buf.get("s2").getAsString(); + cs1 = cfg.test.CompactString.deserialize(_buf.get("cs1").getAsJsonObject()); + cs2 = cfg.test.CompactString.deserialize(_buf.get("cs2").getAsJsonObject()); + } + + public static TestString deserialize(JsonObject _buf) { + return new cfg.test.TestString(_buf); + } + + public final String id; + public final String s1; + public final String s2; + public final cfg.test.CompactString cs1; + public final cfg.test.CompactString cs2; + + public static final int __ID__ = 338485823; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + s1 + "," + + "(format_field_name __code_style field.name):" + s2 + "," + + "(format_field_name __code_style field.name):" + cs1 + "," + + "(format_field_name __code_style field.name):" + cs2 + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test/login/RoleInfo.java b/luban_examples/Projects/java_json/src/gen/cfg/test/login/RoleInfo.java new file mode 100644 index 00000000..e5a107f4 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test/login/RoleInfo.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test.login; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class RoleInfo extends cfg.test.DemoD3 { + public RoleInfo(JsonObject _buf) { + super(_buf); + roleId = _buf.get("role_id").getAsLong(); + } + + public static RoleInfo deserialize(JsonObject _buf) { + return new cfg.test.login.RoleInfo(_buf); + } + + public final long roleId; + + public static final int __ID__ = -989153243; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x1 + "," + + "(format_field_name __code_style field.name):" + x3 + "," + + "(format_field_name __code_style field.name):" + roleId + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/test2/Rectangle.java b/luban_examples/Projects/java_json/src/gen/cfg/test2/Rectangle.java new file mode 100644 index 00000000..7f0ffe02 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/test2/Rectangle.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg.test2; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +/** + * 矩形 + */ +public final class Rectangle extends cfg.test.Shape { + public Rectangle(JsonObject _buf) { + super(_buf); + width = _buf.get("width").getAsFloat(); + height = _buf.get("height").getAsFloat(); + } + + public static Rectangle deserialize(JsonObject _buf) { + return new cfg.test2.Rectangle(_buf); + } + + /** + * 宽度 + */ + public final float width; + /** + * 高度 + */ + public final float height; + + public static final int __ID__ = 694982337; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + width + "," + + "(format_field_name __code_style field.name):" + height + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/vec2.java b/luban_examples/Projects/java_json/src/gen/cfg/vec2.java new file mode 100644 index 00000000..fd696ddf --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/vec2.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class vec2 extends AbstractBean { + public vec2(JsonObject _buf) { + x = _buf.get("x").getAsFloat(); + y = _buf.get("y").getAsFloat(); + } + + public static vec2 deserialize(JsonObject _buf) { + return new cfg.vec2(_buf); + } + + public final float x; + public final float y; + + public static final int __ID__ = 3615518; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/vec3.java b/luban_examples/Projects/java_json/src/gen/cfg/vec3.java new file mode 100644 index 00000000..19825f5b --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/vec3.java @@ -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. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class vec3 extends AbstractBean { + public vec3(JsonObject _buf) { + x = _buf.get("x").getAsFloat(); + y = _buf.get("y").getAsFloat(); + z = _buf.get("z").getAsFloat(); + } + + public static vec3 deserialize(JsonObject _buf) { + return new cfg.vec3(_buf); + } + + public final float x; + public final float y; + public final float z; + + public static final int __ID__ = 3615519; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "(format_field_name __code_style field.name):" + z + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/gen/cfg/vec4.java b/luban_examples/Projects/java_json/src/gen/cfg/vec4.java new file mode 100644 index 00000000..9cc4a581 --- /dev/null +++ b/luban_examples/Projects/java_json/src/gen/cfg/vec4.java @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg; + +import luban.*; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + + +public final class vec4 extends AbstractBean { + public vec4(JsonObject _buf) { + x = _buf.get("x").getAsFloat(); + y = _buf.get("y").getAsFloat(); + z = _buf.get("z").getAsFloat(); + w = _buf.get("w").getAsFloat(); + } + + public static vec4 deserialize(JsonObject _buf) { + return new cfg.vec4(_buf); + } + + public final float x; + public final float y; + public final float z; + public final float w; + + public static final int __ID__ = 3615520; + + @Override + public int getTypeId() { return __ID__; } + + @Override + public String toString() { + return "{ " + + "(format_field_name __code_style field.name):" + x + "," + + "(format_field_name __code_style field.name):" + y + "," + + "(format_field_name __code_style field.name):" + z + "," + + "(format_field_name __code_style field.name):" + w + "," + + "}"; + } +} + diff --git a/luban_examples/Projects/java_json/src/main/Main.java b/luban_examples/Projects/java_json/src/main/Main.java new file mode 100644 index 00000000..8c1d23d9 --- /dev/null +++ b/luban_examples/Projects/java_json/src/main/Main.java @@ -0,0 +1,15 @@ +import com.google.gson.Gson; +import com.google.gson.JsonParser; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; +import cfg.*; + +public class Main { + public static void main(String[] args) throws IOException { + Tables tables = new Tables(file -> JsonParser.parseString( + new String(Files.readAllBytes(Paths.get("../GenerateDatas/json", file + ".json")), "UTF-8"))); + System.out.println("== run == " + tables.getTbGlobalConfig().getX1()); + } +} diff --git a/luban_examples/README.md b/luban_examples/README.md new file mode 100644 index 00000000..85088a5f --- /dev/null +++ b/luban_examples/README.md @@ -0,0 +1,23 @@ +# luban_examples + +luban对应的示例工程,更多文档请参见 [Document](https://luban.doc.code-philosophy.com/docs/intro)。 + +示例工程包含: + +- DataTables 一个较复杂的用于测试的配置项目。 +- MiniTemplate 一个最简单的配置模板,用于快速创建一个新的配置项目 +- Projects 一些覆盖常见平台、引擎、语言的示例项目 + +Projects里的项目都已经过测试,已经包含了生成代码和数据,可以直接运行。 + +**luban经历了大规模的重构,和旧版本有一定的差异。使用旧版本luban的开发者请切换到classic分支。** + +## 下载Luban + +旧版本每次更新luban后,会同步将发布的Release版Luban复制到Tools/Luban目录。由于会明显增大仓库大小,后面luban_examples +项目不再附带Luban程序,需要自行从[release](https://github.com/focus-creative-games/luban/releases)下载。下载Luban.7z +文件,直接解压到Tools目录下即可,确保最终Luban程序的位置为`luban_examples/Tools/Luban/Luban.exe`。 + +## 支持与联系 + + 发issue不一定能及时看到,有问题请尽量加QQ群: 692890842 (Luban开发交流群) 反馈,往往能快速得到解决。 diff --git a/luban_examples/Tools/build-luban.bat b/luban_examples/Tools/build-luban.bat new file mode 100644 index 00000000..3b26f43c --- /dev/null +++ b/luban_examples/Tools/build-luban.bat @@ -0,0 +1,5 @@ +rd /s /q Luban + +dotnet build ../../luban/src/Luban/Luban.csproj -c Release -o Luban + +pause \ No newline at end of file diff --git a/luban_examples/Tools/build-luban.sh b/luban_examples/Tools/build-luban.sh new file mode 100644 index 00000000..c09a7286 --- /dev/null +++ b/luban_examples/Tools/build-luban.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +[ -d Luban ] && rm -rf Luban + +dotnet build ../../luban/src/Luban/Luban.csproj -c Release -o Luban \ No newline at end of file diff --git a/luban_examples/githooks-demo/README.md b/luban_examples/githooks-demo/README.md new file mode 100644 index 00000000..7a1596c4 --- /dev/null +++ b/luban_examples/githooks-demo/README.md @@ -0,0 +1,7 @@ + +# 设置客户端 git hook + +- 参考pre-commit文件,将文件中的'./auto_validation.sh' 修改为合适的脚本 +- 参考 auto_validation.sh 准备合适的验证脚本 +- 将pre-commit复制到仓库根目录的 .git/hooks目录。 命令类似于'cp -rf pre-commit ${仓库根目录}/.git/hooks' +- 完成设置 diff --git a/luban_examples/githooks-demo/auto_validation.sh b/luban_examples/githooks-demo/auto_validation.sh new file mode 100644 index 00000000..52a70be3 --- /dev/null +++ b/luban_examples/githooks-demo/auto_validation.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +WORKSPACE=.. + +LUBAN_DLL=$WORKSPACE/Tools/Luban/Luban.dll +CONF_ROOT=. + +dotnet $LUBAN_DLL \ + -t all \ + -f \ + --conf $CONF_ROOT/luban.conf \ + -x pathValidator.rootDir=$WORKSPACE/Projects/Csharp_Unity_bin \ + -x l10n.textProviderFile=$CONF_ROOT/Datas/l10n/texts.json \ No newline at end of file diff --git a/luban_examples/githooks-demo/pre-commit b/luban_examples/githooks-demo/pre-commit new file mode 100644 index 00000000..10b2d3ce --- /dev/null +++ b/luban_examples/githooks-demo/pre-commit @@ -0,0 +1,13 @@ +#!/bin/sh + +# 注意 git hook 默认运行位置在 Config 文件夹下 + +./auto_validation.sh + +if [ $? -ne 0 ]; then + echo "当前配置有错误, 请修复错误再进行推送!" + exit 1 +fi + +# accept +exit 0 \ No newline at end of file